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?