• 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. How to set Vref of Opamp in adhLib

Stats

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

How to set Vref of Opamp in adhLib

tiennv
tiennv over 7 years ago

Hi everyone,

I use Opamp in adhLib to simulate the inverting voltage circuit.

with input Voltage is linear funtion in range -1 to 1 ( I use Vpwlf to make it)

My point is with input Voltage in [-1;0], the ouput of opamp is zero. And with voltage in [0;1], the ouput is inverted to [0; -1].

So I use Single Supply Voltage.

This is my circuit and results.

Can you tell me why I cannot get my point?

Thank you

  • Cancel
  • BaaB
    BaaB over 7 years ago

    Hi, 

    You should read the verilogA of the block to see how it is modeled and how to make it works. 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • tiennv
    tiennv over 7 years ago in reply to BaaB

    Yes. Thank. I simulated it on Spice, and I see it works. So I think it maynot work on Cadence.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 7 years ago in reply to tiennv

    Your circuit is connected up incorrectly. You have the vspply_n pin of the opamp connected to VSS but it should be VCC. VSS is 0V in your case, and VCC is -3.

    The model has soft limiting at the supplies, so that's why it's limiting the negative values (because you didn't have a negative supply).

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • tiennv
    tiennv over 7 years ago in reply to Andrew Beckett

    Hi. I mean is using single supply for opamp. So that why I connect to VSS.

    In Spice, there is one support single supply opamp, so I can cut negative input voltage. 

    it means that Cadence doesnot support single supply opamp.

    is it right? So how can I get single supply opamp in Cadence?

    Thanks. 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 7 years ago in reply to tiennv

    It's still not clear what you want, and after this response I'm giving up trying to guess. The behaviour is dependent upon the soft limiting in the opamp; if you don't like that, you can change the model (rewrite it; it's VerilogA, so you copy the opamp and alter the code). So it's not a matter of "Cadence" (there's no tool called Cadence) not supporting "single supply opamp"; you can model whatever you like, and probably adjust the parameters of even this opamp model to suit your needs, if you know what your needs are.

    For example, if I leave the supplies as VSS and VDD, and just change the vsoft parameter on the instance of the opamp to (say) -5 (something lower than the default value of 0.5), then that turns off the soft limiting for this range of input voltage.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • tiennv
    tiennv over 7 years ago in reply to Andrew Beckett

    Hi. This is What I want in Spice. with negative input voltage, the output is inverted. with positive input voltage, the ouput is zeros.

    This is what I get in Cadence. 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 7 years ago in reply to tiennv

    It would have been easier if you'd explained that (and provided pictures) in the first place.

    The main issue is that the opamp model in ahdlLib implements soft limiting - and the vsoft parameter inside the model defaults to 0.5V. If you set the value to 0, then you'll see the flattening, but that soft limiting kicks in at 0V and limits the output to slightly less than 0V - but the curve is broadly what you want. I'm sure you could play with the other parameters (look at the model code to see what it is doing) to make that limit closer to 0.

    You could always just use a vcvs (voltage controlled voltage source) from analogLib with some limits set on that:

    This produces exactly the response you want - limiting at 0 V

    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