library[mosmodels];
library[stdfunctions];

circuit={
!ThymeBasics.thy
!Cmos4.0u25.thy
in:node; out:node; Vdd:node;
powerSupply: voltage[Vdd, Gnd]= 5.0;
?:capacitor[out,Gnd]=0.05pF;
?:PChan[in,Vdd,out,Vdd]; 
?:NChan[in,Gnd,out,Gnd];
?:OneShot[in|width ← 800ns, tDelay ← 1us, 
             tRise ← 100ns, tFall ← 100ns];
};

plot["Cmos Inverter (4 microns, 25 C)", :50ns, -1, 6, in, out];
run[tMax ← 3us];