* SPICE netlist
Q1 N005 N010 N012 0 CA3086N7
Q2 N001 Vr N012 0 CA3086N7
Q3 VDD N005 V_NOR 0 CA3086N7
Q4 VDD N001 V_OR 0 CA3086N7
R1 N012 0 1.23k
R2 VDD N005 517
R3 VDD N001 313
R4 V_NOR 0 1.5k
R5 V_OR 0 1.5k
Q6 N008 N006 N007 0 CA3086N7
Q7 N004 N008 N013 0 CA3086N7
Q8 N002 N004 N009 0 CA3086N7
Q9 N011 N013 0 0 CA3086N7
D1 N009 N011 D
R6 VDD N006 3.9k
R7 VDD N004 1.5k
R8 VDD N002 0.1k
R9 N013 0 1.0k
M1 !A N003 0 0 RIT4007N7
M2 !A N003 VDD VDD RIT4007P7
V1 VDD 0 5
V2 N007 0 PULSE(0 5 .5ms 1ns 1ns .5ms 1ms)
V3 Vr 0 3.8
R12 N010 N011 10k
R13 VDD N010 10k
Q5 0 V_NOR N003 0 TIP117(PNP)
R10 VDD N003 1.5k
.inc CA3086.mod
.inc CMOS/CD4007.mod
.tran 3ms

* LTspice schematic (.asc)
Version 4
SHEET 1 2480 944
WIRE -264 -408 -264 -472
WIRE -264 -408 -312 -408
WIRE -136 -408 -264 -408
WIRE 24 -408 -136 -408
WIRE 136 -408 24 -408
WIRE 360 -408 136 -408
WIRE -888 -296 -888 -328
WIRE -888 -296 -1000 -296
WIRE -856 -296 -888 -296
WIRE -664 -296 -856 -296
WIRE 360 -296 360 -408
WIRE -1000 -280 -1000 -296
WIRE -136 -248 -136 -328
WIRE 296 -248 -136 -248
WIRE -664 -184 -664 -216
WIRE 1240 -168 1240 -200
WIRE 1240 -168 1160 -168
WIRE 136 -152 136 -408
WIRE 1112 -152 1064 -152
WIRE -856 -136 -856 -216
WIRE -728 -136 -856 -136
WIRE 536 -136 536 -264
WIRE -312 -104 -312 -328
WIRE 72 -104 -312 -104
WIRE -1000 -72 -1000 -200
WIRE 1224 -72 1160 -72
WIRE -856 -56 -856 -136
WIRE 1224 -40 1224 -72
WIRE -1048 -8 -1160 -8
WIRE -920 -8 -952 -8
WIRE -664 -8 -664 -88
WIRE 536 8 536 -56
WIRE 1064 8 1064 -152
WIRE 1064 8 536 8
WIRE -312 24 -312 -104
WIRE -136 24 -136 -248
WIRE 360 24 360 -200
WIRE 536 40 536 8
WIRE 1064 40 1064 8
WIRE 1176 40 1064 40
WIRE -376 72 -488 72
WIRE 136 88 136 -56
WIRE 472 88 136 88
WIRE -664 120 -664 56
WIRE -584 120 -664 120
WIRE -664 136 -664 120
WIRE -584 152 -584 120
WIRE -488 152 -584 152
WIRE -312 168 -312 120
WIRE -232 168 -312 168
WIRE -136 168 -136 120
WIRE -136 168 -232 168
WIRE -856 184 -856 40
WIRE -728 184 -856 184
WIRE 136 184 136 88
WIRE 360 184 360 24
WIRE 536 184 536 136
WIRE -856 200 -856 184
WIRE -232 216 -232 168
WIRE 1224 216 1224 56
WIRE -664 248 -664 232
WIRE -856 312 -856 280
WIRE -232 328 -232 296
WIRE -24 328 -232 328
WIRE 136 328 136 264
WIRE 136 328 -24 328
WIRE 360 328 360 264
WIRE 360 328 136 328
WIRE -24 472 -24 328
FLAG -24 472 0
FLAG -72 72 Vr
FLAG 136 88 V_NOR
FLAG 360 24 V_OR
FLAG -856 312 0
FLAG -664 248 0
FLAG -888 -328 VDD
IOPIN -1152 256 In
FLAG 1224 216 0
FLAG 1224 -72 !A
IOPIN 960 512 Out
FLAG 1240 -200 VDD
IOPIN 976 384 In
FLAG -344 -472 0
FLAG 24 -408 VDD
IOPIN -240 176 In
FLAG -1240 -8 0
FLAG -536 -232 0
FLAG -536 -312 Vr
FLAG -488 -8 VDD
IOPIN -752 576 In
FLAG 536 -264 VDD
IOPIN 272 320 In
FLAG 536 184 0
SYMBOL npn -376 24 R0
SYMATTR InstName Q1
SYMATTR Value CA3086N7
SYMBOL npn -72 24 M0
SYMATTR InstName Q2
SYMATTR Value CA3086N7
SYMBOL npn 72 -152 R0
SYMATTR InstName Q3
SYMATTR Value CA3086N7
SYMBOL npn 296 -296 R0
SYMATTR InstName Q4
SYMATTR Value CA3086N7
SYMBOL res -248 200 R0
SYMATTR InstName R1
SYMATTR Value 1.23k
SYMBOL res -328 -424 R0
SYMATTR InstName R2
SYMATTR Value 517
SYMBOL res -152 -424 R0
SYMATTR InstName R3
SYMATTR Value 313
SYMBOL res 120 168 R0
SYMATTR InstName R4
SYMATTR Value 1.5k
SYMBOL res 344 168 R0
SYMATTR InstName R5
SYMATTR Value 1.5k
SYMBOL npn -952 -72 R90
SYMATTR InstName Q6
SYMATTR Value CA3086N7
SYMBOL npn -920 -56 R0
SYMATTR InstName Q7
SYMATTR Value CA3086N7
SYMBOL npn -728 -184 R0
SYMATTR InstName Q8
SYMATTR Value CA3086N7
SYMBOL npn -728 136 R0
SYMATTR InstName Q9
SYMATTR Value CA3086N7
SYMBOL diode -680 -8 R0
SYMATTR InstName D1
SYMBOL res -1016 -296 R0
SYMATTR InstName R6
SYMATTR Value 3.9k
SYMBOL res -872 -312 R0
SYMATTR InstName R7
SYMATTR Value 1.5k
SYMBOL res -680 -312 R0
SYMATTR InstName R8
SYMATTR Value 0.1k
SYMBOL res -872 184 R0
SYMATTR InstName R9
SYMATTR Value 1.0k
SYMBOL nmos 1176 -40 R0
SYMATTR InstName M1
SYMATTR Value RIT4007N7
SYMBOL pmos 1112 -72 M180
SYMATTR InstName M2
SYMATTR Value RIT4007P7
SYMBOL voltage -248 -472 R90
SYMATTR InstName V1
SYMATTR Value 5
SYMBOL voltage -1144 -8 R90
SYMATTR InstName V2
SYMATTR Value PULSE(0 5 .5ms 1ns 1ns .5ms 1ms)
SYMBOL voltage -536 -328 R0
SYMATTR InstName V3
SYMATTR Value 3.8
SYMBOL res -504 56 R0
SYMATTR InstName R12
SYMATTR Value 10k
SYMBOL res -504 -24 R0
SYMATTR InstName R13
SYMATTR Value 10k
SYMBOL pnp 472 136 M180
SYMATTR InstName Q5
SYMATTR Value TIP117(PNP)
SYMBOL res 520 -152 R0
SYMATTR InstName R10
SYMATTR Value 1.5k