• 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. Quantizing sine wave

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 125
  • Views 14043
  • 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

Quantizing sine wave

Farhan Ali 9216
Farhan Ali 9216 over 3 years ago

Hi , 

I want my input sine wave to be quantized , example my input sine wave is of 1khz frequency and has a amplitude of 800nA. I want it to be quantized such that it has a step of 100nA. How can I do this in cadence Virtuoso.

I am using spectre simulator and my cadence virtuoso version is ICADVM 20.1-64b.500.18.

Best regards,

Farhan

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 3 years ago

    Farhan,

    I moved this to an appropriate forum (the Feedback, Suggestions and Questions forum is for issues/questions about the forum system itself, not for technical questions).

    I suggest using a Verilog-A of an N-level quantizer as found here: https://designers-guide.org/verilog-ams/index.html would make sense. You can then use this after a sine source (the test example does exactly that).

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Farhan Ali 9216
    Farhan Ali 9216 over 3 years ago in reply to Andrew Beckett

    Thanks Andrew. I did as you suggested . I got quantized sine waveform. Only problem is that it starts from zero when it should start from 800nA. 

    I have attached outputwaveform and verolog code.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • ShawnLogan
    ShawnLogan over 3 years ago in reply to Farhan Ali 9216

    Dear Farhan Ali 9216,

    Farhan Ali 9216 said:
    nly problem is that it starts from zero when it should start from 800nA. 

    If you were following the directions Andrew suggested, is there a reason you did not just add an offset of 800nA to the sinusoidal source used as the input to your veriloga code? Or, if you still want to maintain the +/-800 nA range of a zero average sinusoidal source, simply offset the phase of the input sinusoid by 90 degrees to start its amplitude at +800 nA. In Figure 1, I illustrate the insertion GUI and circle the relevant dialog boxes in which you might enter an offset voltage or initial phase to the sinusoidal source.

    I hope I understood your question correctly and this helps a bit!

    Shawn

    Figure 1

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

    I don't see that, and wouldn't expect it either. The "or initial_step" in the @cross line should take care of setting the initial output.

    Can you please show the input.scs with the instance of the clock and sine source, and also the instance of the quantizer (it does look as if you've changed the parameters in the definition of the code rather than as an instance parameter of the quantizer).

    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