• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC Design
  3. Veriloga model of load behaves differently when standalone...

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 125
  • Views 6586
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Veriloga model of load behaves differently when standalone or instantiated with other circuit

unSkilled
unSkilled over 2 years ago

Virtuoso version IC6.1.8-64b.500.27

Hi all,

I have the following behavioral model of a current load:

// VerilogA for library, icustom, veriloga

`include "constants.vams"
`include "disciplines.vams"

module icustom(iload);

output iload;
electrical iload;

ground gnd;

real _load_current_array[1:20] = '{1u,2u,4u,8u,10u,20u,40u,80u,100u,200u,400u,800u,1m,2m,4m,8m,10m,20m,40m,50m};
real _iload = 0;
genvar i;

analog begin
    @(initial_step) $strobe("module initialized");
    for (i=1; i<=20; i = i+1) begin
        @(timer(500u+i*50u)) begin
            _iload = _load_current_array[i];
            $strobe("current transition at %r", $abstime);
        end
    end

    I(iload,gnd) <+ transition(_iload, 10n, 10n, 10n);
end

endmodule

I created a standalone testbench to check its behavior and it works as expected. Then I instantiated within a real circuit (a the load of an LDO) and the behavior varies, as seen in the plot below:

Some of the transitions occur as expected but other happen at different times or with different rise times. I'm having a hard time understanding why the behavior would change and I don't see any clearly wrong in the model. Any pointers are highly appreciated.

  • Cancel
  • unSkilled
    unSkilled over 2 years ago

    It seems that the issue is simulator related. The results above are from a third party vendor. When I switch to spectre, the module behaves correctly in both cases.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 2 years ago in reply to unSkilled
    unSkilled said:
    It seems that the issue is simulator related. The results above are from a third party vendor. When I switch to spectre, the module behaves correctly in both cases.

    Given that this forum is for Cadence products, it probably makes more sense to ask this on a forum for that simulator vendor or to that vendor's customer support.

    Regards,

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information