• 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. If-else statement in VerilogA- Designing a memory eleme...

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 129
  • Views 2735
  • 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

If-else statement in VerilogA- Designing a memory element

Nishtha Sharma
Nishtha Sharma over 9 years ago

Hello, 

I am trying to design a memory element using VerilogA. In the case where the input voltage goes between +Vtmax and -Vtmax, the code doesn't remember the previous value of x and the control directly jumps to else statement. How can I make it remember the previous value of x? 

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 9 years ago

    It might help if you posted the entire module, not just bits of it. It's hard to see what you've done in the other definitions...

    How are you testing it too? Can you provide a simple netlist too? Everyone on these forums is doing this in their spare time, so minimising the amount of effort we need to expend to understand your problem will make it much more likely that you'll get an answer.

    Kind Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Nishtha Sharma
    Nishtha Sharma over 9 years ago

    Regards,

    Nishtha

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Nishtha Sharma
    Nishtha Sharma over 9 years ago

    Hello Andrew ,

    I fixed the issue. There was a mistake in the output assignment statement. I will attach the updated code here if anyone wants to refer to it.  Thanks!

    Best,

    Nishtha

    • 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