Below is a common source MOS amplifier with current source load
for HSPICE circuit simulation.
common source MOS amplifier with current source * Title line
.option post=2 nomod * post: create gsi data file (used for viewing
* outputs on the screen)
* nomod: removes model information from the output
* file. This greatly shortens the length
* of the output file.
Vdd 1 0 dc 5v * Power Supply
Iref 2 0 dc 100uA * Current Source
Vin 3 0 dc 0v * DC input
M1 4 2 1 1 PCH W=100u L=1u
M2 2 2 1 1 PCH W=100u L=1u
M3 4 3 0 0 NCH W=20u L=1u
.Model PCH PMOS * PMOS Model Parameter
+ KP= GAMMA= LAMBDA= VTO= etc
.Model NCH NMOS * NMOS Model Parameter
+ KP= GAMMA= LAMBDA= VTO= etc
.op * Calculate the DC operation point
.dc Vin 1v 2v 0.1v * DC analysis
.end