Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

need help in parameter sweep in Hspice!

Status
Not open for further replies.

qslazio

Full Member level 3
Joined
May 23, 2004
Messages
176
Helped
17
Reputation
34
Reaction score
7
Trophy points
1,298
Activity points
1,420
hspice parameter sweep

Please see page34~35 in the lecture notes of my attachment.
On page 35 there is a plot which is generated by sweeping vstar and see the Ids.
Here vstar is a voltage definited by 2*Id/gm.
I'm wonder how i can plot this using Hspice or Spectre.
As we know, dc sweep can only sweep independent sources or parameters.

Can anyone help me with this? thanks

you can download the pdf also from this link:
http://rfic.eecs.berkeley.edu/~niknejad/ee240/pdf/lect4.pdf
 

jayc

Member level 3
Joined
Feb 14, 2006
Messages
64
Helped
11
Reputation
22
Reaction score
0
Trophy points
1,286
Activity points
2,007
hspice sweep parameter

This is probably most straigh-forward using HSpice.

First diode connect a transistor of any size and connect a DC source to the gate/drain. That will be your DC sweep.

Add the following lines to your spice deck.

.probe vstar = par('2*i(m1)/gmo(m1)')
.probe id = par('i(m1)')

This is assuming you have named your transistor "M1."

This creates the variables vstar and id in the choices when you go to plot the data. I believe they can be found under the "parameters" category in AWaves. I haven't done this recently, so I don't remember the exact names of the windows and such. But look around the AWaves window. You can also choose to set vstar as the x-axis, which is what you want.
 

jutek

Full Member level 4
Joined
Oct 21, 2005
Messages
211
Helped
6
Reputation
12
Reaction score
1
Trophy points
1,298
Activity points
3,140
hspice sweep

jayc said:
You can also choose to set vstar as the x-axis, which is what you want.
could you tell me how to choose vstar as the x-axis?
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top