• 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 implement this equation in VerilogA

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 124
  • Views 15554
  • 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 implement this equation in VerilogA

princemahmmod
princemahmmod over 15 years ago

 Hi,

Anyone can you please help me how to write module the following equation in verilogA???

y = x/ (a * exp(-0.5 *((x-b)/c)^2)) +d

  • Cancel
  • Quek
    Quek over 15 years ago

    Hi princemahmmod

    Would you please start a new thread for your question? By the way, there is a verilogA manual here:

    $MMSIMHOME/doc/veriaref/veriaref.pdf


    Best regards
    Quek

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

    I split this into a new thread. I agree with Quek, it doesn't make sense to mix different subjects in the same thread - it makes it much harder to follow.

    Here's an example:

    `include "disciplines.vams"

    module equation(y,x);
    output y;
    input x;
    electrical x,y;

    parameter real a=1.0;
    parameter real b=1.0;
    parameter real c=1.0;
    parameter real d=1.0;

    analog begin
    V(y) <+ V(x)/(a*exp(-0.5*pow((V(x)-b)/c,2)))+d;
    end

    endmodule

    Note that the parameter values I just made up - I was primarily ensuring the syntax was correct.

    Regards,

    Andrew.

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

    I also posted this in response to your question on the Designer's Guide forums.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 15 years ago
    I will split this off into a new thread when I get into the office. In general, it's best not to clutter existing threads with new topics.

    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