Skip to content

Instantly share code, notes, and snippets.

@kitmonisit
Last active December 10, 2015 02:48
Show Gist options
  • Save kitmonisit/4370307 to your computer and use it in GitHub Desktop.
Save kitmonisit/4370307 to your computer and use it in GitHub Desktop.
Investigating why `ngspice` cannot simulate saturation.
NETLIST: Circuit D
* NOTE: Plot of transient response is in http://i.imgur.com/QWGkj.png
* The output response is supposed to rail out at 1.2 V
* PTM model from http://ptm.asu.edu/modelcard/2006/65nm_bulk.pm
.include 65nm_bulk.pm
VD vdd 0 dc 1.2 ac pwl(0 1.2 100 1.2)
M1 drain gate 0 0 nmos w=3.00771369299e-06 l=9.5e-08
V1 gate 0 dc 0 ac sin(0.3833 0.0196 1 0 0)
ID vdd drain 3.76991118431e-05
CL drain 0 1e-13
.control
save @m1[vgs]
save @m1[vds]
save @m1[id]
save gate
save drain
save vdd
tran 1m 2.0
wrdata circuitd_95n @m1[vgs] @m1[vds] @m1[id] gate drain vdd
exit
.endc
.end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment