HSpice Tutorial #4

An NMOS Amplifier


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_amp_01.sp"

* nmos_amp_01.sp
* The MOSFET Amplifier
* page 344, Figures 7.19, 7.20, 7.21, 7.22
* A. Agarwal and J. Lang, "Foundations of Analog and Digital Electronic
* Circuits," Elsevier, 2005

.OPTION POST

R1 Vs OUT 10k
M1 OUT G 0 0 NCH L=1u W=10u

.MODEL NCH NMOS (LEVEL=1 VTO=0.5)

VDD Vs 0 5V

VIN G 0

.DC VIN 0 5 0.1

.PROBE V(OUT)

.END

 

Use CosmosScope to open the ".sw0" file and then display the waveform of "v(out)".
Result:


 

SPICE file: "nmos_amp_01_tsmc.sp"  (TSMC library is used)

* nmos_amp_01_tsmc.sp
* The MOSFET Amplifier
* page 344, Figures 7.19, 7.20, 7.21, 7.22
* A. Agarwal and J. Lang, "Foundations of Analog and Digital Electronic Circuits," Elsevier, 2005

.lib 'hspice.lib' tt
.OPTION POST

R1 Vs OUT 10k
M1 OUT G 0 0 NCH L=1u W=10u

VDD Vs 0 1.8V

VIN G 0

.DC VIN 0 1.8 0.05

.PROBE V(OUT)

.END

 

Use CosmosScope to open the ".sw0" file and then display the waveform of "v(out)".
Result:

 


last update: October 30, 2009