Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics 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.

Help with variable parameters in a HSPICE simulation

Status
Not open for further replies.

Geoar

Newbie level 1
Joined
Sep 28, 2012
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,292
Hello,
I'm new to HSPICE and to the forum as well...

I need to simulate a CMOS inverter varying just the width W of both transistors for 3 cases... Then I need to plot the transfer characteristics (Vin VS Vout) of the inverter.

Is there a way to vary just the two parameters for the three cases in the same program? I think I need to use .param. Can someone explain how I vary the two parameters for each case?

Is there a way to plot Vin VS Vout for the three cases in just one plot? Thanks a lot

.temp 70
.option post
.include 'models.sp'

*------------------------------------------------
* Simulation netlist
*------------------------------------------------

Vin A gnd DC 0 1 .01
Vdd D gnd 1
M1 Y A gnd gnd CMOSN W=360n L=180n
M2 Y A D D CMOSP W=720n L=180n

.plot V(A) V(Y)
.end
 

In the schematic or netlist make the width as variable by giving some name say WM1 & WM2 and then vary these as per your requirement. You will be able to get the results in a single plot.
 

Try this (can't try it myself right now):
Code:
Vdd  D gnd  1
M1 Y A gnd gnd CMOSN W='width'   L=180n
M2 Y A  D   D  CMOSP W='2*width' L=180n
.DC Vin A gnd 0 1 0.1 SWEEP width POI 3 360n 720n 1080n
.plot V(A) V(Y)
.end

Good luck!
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top