Notice: The first line in the .sp file must be a comment line or be left blank.
Notice: HSpice is case insensitive.
SPICE file: "nmos_iv_01.sp"
* nmos_iv_01.sp .lib 'hspice.lib' tt .PARAM .OPTION POST .GLOBAL gnd! vdd! Vgs g gnd! 0 Vds d gnd! 0 M1 d g gnd! gnd! Nch W=0.22um L=0.18um Vvdd vdd! 0 1.8v Vgnd gnd! 0 0v .DC Vds 0 1.8 0.05 SWEEP Vgs 0 1.8 0.3 .PROBE DC i(M1) .end |
Use CosmosScope to open the ".sw0" file and
then display the waveform of "i(m1)".
Result:
SPICE file: "nmos_iv_02.sp"
* nmos_iv_02.sp .OPTION POST M1 Vd Vg Vs 0 Nch L=1u W=10u *** MOS Model .model Nch NMOS level=1 *** voltage Vds Vd Vs Vgs Vg Vs .DC Vds 0 7 0.1 Vgs 0 5 1 .probe dc i(M1) .end |
Use CosmosScope to open the ".sw0" file and
then display the waveform of "i(m1)".
Result:
SPICE file: "nmos_iv_03.sp"
* nmos_iv_03.sp .OPTION POST M1 Vd Vg Vs 0 Nch L=1u W=10u *** MOS Model .model nch nmos (level=1 LAMBDA=0.1) *** voltage Vds Vd Vs Vgs Vg Vs .DC Vds 0 7 0.1 Vgs 0 5 1 .probe dc i(M1) .end |
Use CosmosScope to open the ".sw0" file and
then display the waveform of "i(m1)".
Result:
last update: October 23, 2009