library[Level2Model];
library[MosModels];
library[StdFunctions];
-------
circuit[Lambda←1.5u,Temp←130]={
!ThymeBasics.thy
!Level2Mosfet.thy
!Nsil3-BestCase.thy
--------
n4:node; n5:node; n6:node; n7:node; n8:node;
Vcc:node;
Vsub:node;
powerSupply: voltage[Vcc,Gnd]=4.5;
substrateSupply: voltage[Vsub,Gnd]=-2.5;
--------
t1: DEP12[n4,n4,Vcc,Vsub|l←3,w←30.86];
t2: ENH[n5,Gnd,n4,Vsub|l←2,w←164];
t3: DEP2[n4,n6,Vcc,Vsub|l←2.5,w←222];
t4: ENH[n5,Gnd,n6,Vsub|l←2,w←222];
t5: DEP2[n5,n7,Vcc,Vsub|l←2.5,w←222];
t6: ENH[n4,Gnd,n7,Vsub|l←2,w←222];
t7: ENH[n6,n8,Vcc,Vsub|l←2,w←1200];
t8: ENH[n7,Gnd,n8,Vsub|l←2,w←1200];
c8: capacitor[n8,Gnd]=100pF;
--------
vin: RectWave[n5|OffLevel←0.0, OnLevel←4.5, period←100ns, width←50ns, tRise←5ns, tFall←5ns, tDelay←10ns];
};
--------
print[:1ns, n4, n5, n6, n7, n8, powerSupply↑];
plot[:1ns, -2.0, 6.0, n4, n5, n6, n8];
plot[:1ns, -2.0, 6.0, n4, n5, n7, n8];
run[tMax←160ns];