File: [Cherry]<Thyme>Cedar5.2>Documentation>CMOSInverter.thy
Last Edited by: SChen, August 18, 1984 4:31:57 pm PDT
The following library models/functions are included by default.
There will be no harm if you still specify them.
library[mosmodels];
library[stdfunctions];
CIRCUIT[Lambda ← 2, Temp ← 25] = {
in, out, Vdd, X, Y: node;
! ThymeBasics
! CMOS2.0u25C
step: CIRCUIT[in, out] = {
X: node;
?: capacitor[X, Gnd] = 0.001pF;
U1: PETran[in, Vdd, X, Vdd | l ← 2, w ← 4, as ← 60, ad ← 60, ps ← 34, pd ← 34];
D1: NETran[in, Gnd, X, Gnd | l ← 4, w ← 2, as ← 30, ad ← 30, ps ← 32, pd ← 32];
U2: PETran[X, Vdd, out, Vdd | l ← 2, w ← 4, as ← 60, ad ← 60, ps ← 34, pd ← 34];
D2: NETran[X, Gnd, out, Gnd | l ← 4, w ← 2, as ← 30, ad ← 30, ps ← 32, pd ← 32];
};
?: capacitor[out, Gnd] = 0.001pF;
?: capacitor[X, Gnd] = 0.001pF;
?: capacitor[Y, Gnd] = 0.001pF;
S1: step[in, X];
S2: step[X, Y];
S3: step[Y, out];
};
PRINT[in, out];
PLOT["CMOS Inverter (2 microns, 25 C)", :1ns, -1, 6, powerSupply^: -1mA, in, X, out];
RUN[tMax ← 100ns];