• 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. setting up stimuli

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 125
  • Views 16572
  • 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

setting up stimuli

whlinfei
whlinfei over 16 years ago

 Hi all,

I am using cadence virtuoso schematic and spectra as simulator. 

 I need a PWM signal for my simulation. The way I want to ( I know ) set up is that using a VCVS source as the output and a triangular wave and the input signal as the inputs. After comparing these two and setting the gain of this dependent source high enough( say 10000) and output maximum and minimun to a desired value, I can get PWM without delay nor distortion. 

 The problem I have right now is I don't know how I can generate a triangular waveform. There is no triangular wave stimuli in spectra.

Can anyone help me with that or is there some other way to generate PWM?

Thanks !

 

Best Regards,

whlinfei 

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 16 years ago

    You don't need a specific triangle source, because this is a form of "pulse" source:

      tri (tri 0) vsource type=pulse val1=1 val0=0 rise=10n fall=10n width=0 period=20n

    Use vsource from analogLib (or vpulse), and set the rise and fall times to be half the period, and the width to be 0. That will do what you want.

    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