|
; this is a comparator circuit : tran g s d

DEFINE COMP vb inp inm vdd gnd out1 out2
SUBCIRCUIT COMP vb inp inm vdd gnd out1 out2

mn_3 inp 3 1
mn_6 inm 3 2
mn_8 vb gnd 3

mp_2 2 vdd 1
mp_4 1 vdd 2
mn_29 2 5 1
mn_30 1 5 2
mp_26 4 1 2
mn_11 4 gnd 5
mn_32 4 3 vdd

mp_33 1 vdd out1
mn_36 1 gnd out1

mp_28 2 vdd out2
mn_35 2 gnd out2

SYM 3 = 6
SYM 2 = 4
SYM 29 = 30
SYM 33 = 28
SYM 36 = 35
