Professional Documents
Culture Documents
Hspice Tutorial
Hspice Tutorial
Steps
1. Initialization
Library
Operating conditions
Temperature
Process
Functions (.ic, .mnlvl)
2. Circuit netlist
Naming of netlist
3. Simulation
Simulation file
Probes
1st line - Whatever there is in the first line, automatically becomes the file title.
2nd-nth line - Library
.op
Hspice Tutorial 1
V = 1.8V/3.3V
*****circuit code
vxxx n_a n_b <dc_val> <ac_val>
rxxx n_a n_b <value of the resistor>
cxxx n_a n_b <value of the capacitor>
mxxx drain gate source bulk <nch or pch> l=<#> w=<#> m=1,2,3…
.dc vxxx <v_min_tosweep> <v_max_tosweep> <spacing> ————→ .sw0
(sweep) for q point
.ac dec <scale> <step_size> <max_sweep_freq>
if you want to do transient analysis, comment out your current vin and create a
new vin
Hspice Tutorial 2
vxxx node_1 node_2 sin(<dc_level> <amplitude> <frequency>)
.trans 1u 1
Hspice Tutorial 3