• 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. Ramp signal generator in Verilog-A

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 126
  • Views 9229
  • 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

Ramp signal generator in Verilog-A

delgsy
delgsy over 2 years ago

Hello,

I need a ramp signal that starts ramping (e.g., from 500mV to 800mV in 100ns) at the falling edge of the control signal.
Here is the snipet which gives something close to what I need but I do not like the way I wrote it, i.e., 100ns is used in the argument for transition().
The result also shows 800mV at the beginning which I do not understand why.
Maybe there is a more proper way to realize this.
the control signal in this example is NREAD_TOA.

    //RAMP
    @(cross(V(NREAD_TOA) - V(VDDA_P1V2)/2, -1))
    begin
    RAMP_START_TON = $abstime;
    RAMP_START_TOFF = RAMP_START_TON + 1n; // I do not like this because I think this is not a proper way.
    end
    @(timer(RAMP_START_TON))
    RAMP_VHIGH = 500m;
    @(timer(RAMP_START_TOFF))
    RAMP_VHIGH = 800m;    

    V(RAMP_START) <+ transition(RAMP_VHIGH, TDELAY, 100n, TFALL); // I do not like this because I think this is not a proper way.

  • Cancel
  • ShawnLogan
    ShawnLogan over 2 years ago

    Dear delgsy,

    delgsy said:
    but I do not like the way I wrote it, i.e., 100ns is used in the argument for transition().
    The result also shows 800mV at the beginning which I do not understand why.
    Maybe there is a more proper way to realize this.

    If you are interested, a couple of comments that come to mind...

    1. In general, a more common means of creating a ramp generator is to use the integration function idt(). In this fashion, you can set the slope of the ramp in lieu of using the rise time parameter of the transition filter. Hence, if you use a statement similar to:

      V(out) <+  idt(slope*1.0,ramp_init)

    and specify the value of slope as (0.80 - 0.50)/100e-09, after 100 ns it will set out to 0.80 V from an initial value of 0.50 V. You will need a second event (timer or conditional statement to monitor value of V(out)) to stop the integration when its value reaches your desired maximum value of 0.80 V.

    2. With respect to your observation that your code produces an 800 mV output value at the start of your simulation, I noted you did not include an initial_step event in your snippet. Perhaps you included it outside of your posted code? An initial_step event is executed only on the first point of the analysis and is commonly used to initialize signals and variables.

    real ramp_init = 0.50;

    analog begin
      @(initial_step) begin
       ramp = ramp_init ;
    end

    Shawn

    • 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