• 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. is it possible to pass integer to verilog-a module?

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 125
  • Views 10904
  • 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

is it possible to pass integer to verilog-a module?

delgsy
delgsy over 3 years ago

I want to create a verilog-a module that has an integer as input and binary code as output.
it is a DAC, basically.
Later I want to be able to sweep this integer during DC analysis.

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 3 years ago

    It's an ADC, not a DAC, surely? You could easily adapt (say) adc_8bit_ideal from ahdlLib to do this, but you could also just use my bussetp component from Creating a component that allows setting a value on a bus in an analog simulation

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • delgsy
    delgsy over 3 years ago in reply to Andrew Beckett

    yes, I meant ADC.

    "You could easily adapt (say) adc_8bit_ideal from ahdlLib to do this..."
    This is my first attempt, but not sure how I can have an integer as an input instead of voltage.
    I will check your link. Thanks

    • 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