• 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. bidirectional wreal modeling (resistor in wreal)

Stats

  • Locked Locked
  • Replies 9
  • Subscribers 65
  • Views 22463
  • 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

bidirectional wreal modeling (resistor in wreal)

freitas
freitas over 12 years ago

Hello,

I'd like to model a resistor in verilog ams using wreal. That is, I need the equivalent of the "tran" primitive that exists in vanilla verilog.

module res (p,n);

inout p,n;

 //need a model here, something like tran t1(p,n)

endmodule 

I've tried to check the inouts for the `wrealZState to determine what port is actually actually driving and set the signal direction accordingly but I couldn't get good simulation results.

Has anyone already solved this problem?

Cheers 

  • Cancel
  • freitas
    freitas over 12 years ago

     

    Hello,

    I'd like to model a resistor in verilog ams using wreal. That is, I need the equivalent of the "tran" primitive that exists in vanilla verilog.

    module res (p,n);

    inout p,n;

     //need a model here, something like tran t1(p,n)

    endmodule 

    I've tried to check the inouts for the `wrealZState to determine what port is actually actually driving and set the signal direction accordingly but I couldn't get good simulation results.

    Has anyone already solved this problem?

    Cheers 

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    Please do not cross-post in multiple forums (the Forum Guidelines in the CIC, RF and Mixed Signal forums explicitly tell you not to do this).

    It's not that obvious what you are trying to do - modelling a resistor with wreal is not really possible unless you're prepared to compromise - since you are only modelling the potential or the flow (not both) - and a resistor would normally be implemented using a conserving approach (i.e. V=I*R). So you may have to make clear what compromise you are prepared to make.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • freitas
    freitas over 12 years ago

    I appologize. I guess we should start a AMS Verification forum, everytime I want to post something I am not sure were to place it.

    As for the resistor, all I needed was a wreal bidir net. Problem solved! I do have a continuous time view of that cell which is a conservative resistor model but sometimes I want to switch my system to discrete time (event driven) to speed up simulation. A bidir net does not care if the information (real number)  is a potential or a flow.

    Anyways, thanks!

     Regards

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    No worries. For AMS verification issues, either the Custom IC Design or Mixed Signal Design forums will be fine - take your pick! Historically the Custom IC forum is busier, but that's because it's been around longer. I'm not sure it's really worth starting another forum.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • alin mocanu
    alin mocanu over 10 years ago
    hi, can you share the model of your resistor in wreal?
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • alin mocanu
    alin mocanu over 10 years ago
    hi, no necessary,i found it.
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • P K
    P K over 10 years ago
    Hi Mocanu/ Freitas, Can you share the model of resistor in wreal ?
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • DOS SANTOS
    DOS SANTOS over 5 years ago in reply to alin mocanu

    Hello,

    it would have been appropriate to share your discoveries and your solution with the whole community.
    You ask for help and keep the answer secretly, when it could help other people, this is not the definition of mutual aid

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 5 years ago in reply to DOS SANTOS

    Why are you complaining about a response from 6 years ago?

    • 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