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.

hspice .alter in loop ?

Status
Not open for further replies.

amic

Member level 5
Joined
Aug 30, 2005
Messages
91
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
2,069
hspice alter

how do i put .alter statement in hspice in a loop to avoid writing 100 such statements for corner analysis ?
 

hspice .alter

.alter command is very useful for hspice simulation, it can replace the temp, power_val, model corner and other parameters define, below is a sample of simulation netlist:

.temp 27
.lib 'model' tt
.param pow_val=3.3

............. transistor describe

.op
.save
.tran 0.01n 10n
.opt post

.alter
.temp 0
.lib 'model' ss
.param pow_val=2.3


.atler
.temp 100
.lib 'model' 100
.param pow_val=3.6
.end


there are 3 corner groups simulation, it is tt, ss, ff corner,
the temp ,model corner, pow_val are replaced by every alter

BTW, the .alter command have to just before the .end .
best regards
 

.alter hspice

.alter is Used to re-run simulation with a modified netlist. All simulation statements between the .ALTER command line and either the next .ALTER or .END command are back-substituted in the original netlist


Examples
alter command example
r1 1 2 1k
r2 2 0 1k
c1 2 0 1n
.ac dec 10 200 1000meg
vin 1 0 ac 1
.plot ac vdb(2) (-90, 0)
.alter
r1 1 2 10k
c1 2 0 100p
.ac dec 15 200 1500meg
.end

Specifies two simulation runs. Both perform an AC analysis but certain
component values, the number of points and stop frequency of the AC analysis are
changed using the .alter command for the second run.

Salem
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top