• 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. Mixed-Signal Design
  3. timer equivalent for "DC " analysis for verilog-a

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 64
  • Views 2292
  • 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

timer equivalent for "DC " analysis for verilog-a

LDIL
LDIL over 5 years ago

Hi. If there is an "ac" or "dc" analysis, how can one add an event (such as @(cross( ) ), or @timer in transient. How can one do @( function ), which would stop when dc is, for example, 20, , say ac in 5GHz. Thanks.

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 5 years ago

    The @(cross...) is purely for time-domain events, but you can use @(above(...)) - for example:

    @(above(V(p,n))) begin
      $strobe("ABOVE = ",V(p,n));
    end

    above(x <, timetol <, abstol <, enable >>>)

    Generates an event when 'x' becomes greater than or equal to zero. An above event can be generated and detected during initialization. By contrast, a cross event can be generated and detected only after at least one transient time step is complete.

    So it's not quite what you're asking, but may be sufficient for the DC case at least. In a dc sweep the above will trigger as the x expression becomes positive. In general Verilog-A models should be written to operate in the time-domain and you should not try to write different behaviour for different analyses. In an ac analysis, the equations described in the VerilogA model are linearised and then simulated in the small-signal AC analysis. It does not then execute the code during the AC as it's simulating the small-signal linear model instead, and so you cannot have something that is triggered at a particular frequency - it makes no sense in VerilogA.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 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