The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Simulators >> Circuit Simulators >> How to plot sawtooth in SpectreMDL?
https://designers-guide.org/forum/YaBB.pl?num=1176932174

Message started by Boon-Siang Cheah on Apr 18th, 2007, 2:36pm

Title: How to plot sawtooth in SpectreMDL?
Post by Boon-Siang Cheah on Apr 18th, 2007, 2:36pm

Hi,
Does anybody know how to create a sawtooth waveform with SpectreMDL? I am trying to simulate receiver hysteresis noise immunities by injecting a noise pulse at the switchpoints. I would like to inject the pulse at the receiver input as shown in the attached file. Please comment or give me some suggestions on how to do this in SpectreMDL? If I have to, I can also do this in ADE.

Thank you very much.

Cordially,
Boon-Siang

Title: Re: How to plot sawtooth in SpectreMDL?
Post by Ken Kundert on Apr 18th, 2007, 3:21pm

I would recommend using Verilog-A to generate the sawtooth waveform, and then simulate the whole thing with MDL. Alternatively, you can use a PWL waveform with the conventional sources (vsource, isource, port) to produce a sawtooth.

-Ken

Title: Re: How to plot sawtooth in SpectreMDL?
Post by Boon-Siang Cheah on Apr 19th, 2007, 1:31pm

Hi Ken,

Thank you very much for the reply. I think you might have misunderstood what I wanted to do. I'm not trying to setup a circuit to create sawtooth waveform generator circuit. I am trying to create an input waveform like the previous posting attachment. I am trying to create input waveform with noise pulse (with different amplitude if possible) to determine my receiver hysteresis immunities. The attachment waveform was created with one of our in house spice simulator. I would like to know if there's a way I can replicate the same input with SpectreMDL/Spectre/Ultrasim.

Thank you very much.

Boon-Siang

Title: Re: How to plot sawtooth in SpectreMDL?
Post by Ken Kundert on Apr 20th, 2007, 9:44am

Yes, I understood what you are asking for. You can use either Verilog-A or a piecewise linear source to produce your stimulus waveform.

-Ken

Title: Re: How to plot sawtooth in SpectreMDL?
Post by Boon-Siang Cheah on Apr 20th, 2007, 12:06pm

Hi Ken,

I know how to use PWL to generate the pulse but it's quite cumbersome because I would like to change the amplitude of the pulse. Could you give me some examples on how to do it with VerilogA? Or advice me on what references to look at?

Thank you very much for your help. I really appreaciate it.

Boon-Siang

Title: Re: How to plot sawtooth in SpectreMDL?
Post by Ken Kundert on Apr 20th, 2007, 2:50pm

If you are using Spectre, you can use the scale parameter on the PWL source to adjust the waveform amplitude. If you instead want to use Verilog-A, there are a lot of different ways of doing it, and the best way will depend strongly on the details of the waveform. I'm afraid I'm not going to be able to help you with that other than suggest you learn the language by picking up a copy of my book or by studying the examples on verilog-ams.com, or both. It is definitely worthwhile taking the time to learn it.

-Ken

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.