Tuesday, March 7, 2017

HSPICE CODE FOR AND GATE

CMOS AND GATE
.GLOBAL 1
VDD 1 0 5

VINA A 0 PULSE 0 5 0 1N 1N 20N 40N
VINB B 0 PULSE 0 5 0 1N 1N 40N 80N


.MACRO INVERTER IN OUT
MP3 OUT IN 1 1 PM L=1U W=3U
MN3 OUT IN 0 0 NM L=1U W=1U
.EOM


MP1 OUT1 A 1 1 PM L=1U W=3U
MN1 OUT1 A 2 2 NM L=1U W=1U
MP2 OUT1 B 1 1 PM L=1U W=3U
MN2 2 B 0 0 NM L=1U W=1U


X11 OUT1 OUT INVERTER


.OP ALL
.MODEL PM PMOS
.MODEL NM NMOS
.TRAN 200P 80N
.PRINT TRAN V(A) V(B) V(OUT)
.END

No comments:

Post a Comment