* SPICE netlist
Q1 Q N001 N003 0 2N2222
Q2 N003 So 0 0 2N2222
Q3 Q_Dash N002 N004 0 2N2222
Q4 N004 Ro 0 0 2N2222
V1 +Vcc 0 5
R1 +Vcc Q 100
R2 +Vcc Q_Dash 100
R3 Q_Dash N001 5k
R4 N002 Q 5k
Q5 So N005 N007 0 2N2222
Q6 N007 CLK 0 0 2N2222
Q7 Ro N006 N008 0 2N2222
Q8 N008 CLK 0 0 2N2222
V2 CLK 0 PULSE(0 3 0 0.005 0.005 2 4 10)
R5 +Vcc So 100
R7 +Vcc Ro 100
R6 N005 S 1k
R8 R N006 1k
V3 S 0 PWL(0 4 2 4 2.005 0 6 0 6.005 4 8 4 8.005 0 10 0)
V4 R 0 PWL(0 4 4 4 4.005 0 6 0 6.005 0 10 0)
.tran 10

* LTspice schematic (.asc)
Version 4
SHEET 1 1360 1104
WIRE -152 -472 -152 -536
WIRE 200 -472 200 -552
WIRE -152 -344 -152 -392
WIRE -56 -344 -152 -344
WIRE -24 -344 -56 -344
WIRE 152 -344 120 -344
WIRE 200 -344 200 -392
WIRE 200 -344 152 -344
WIRE -152 -312 -152 -344
WIRE 200 -312 200 -344
WIRE -216 -264 -280 -264
WIRE 328 -264 264 -264
WIRE -664 -248 -664 -344
WIRE -56 -184 -56 -344
WIRE 24 -184 -56 -184
WIRE 328 -184 328 -264
WIRE 328 -184 104 -184
WIRE -280 -120 -280 -264
WIRE -88 -120 -280 -120
WIRE 152 -120 152 -344
WIRE 152 -120 -8 -120
WIRE 392 -120 392 -200
WIRE -344 -104 -344 -200
WIRE -152 -40 -152 -216
WIRE 200 -40 200 -216
WIRE -664 -24 -664 -168
WIRE -344 8 -344 -24
WIRE -264 8 -264 -24
WIRE -264 8 -344 8
WIRE -216 8 -264 8
WIRE 296 8 296 -24
WIRE 296 8 264 8
WIRE 392 8 392 -40
WIRE 392 8 296 8
WIRE -344 56 -344 8
WIRE 392 56 392 8
WIRE -600 104 -680 104
WIRE -408 104 -520 104
WIRE 536 104 456 104
WIRE 680 104 616 104
WIRE -600 168 -600 104
WIRE 616 168 616 104
WIRE -152 200 -152 56
WIRE 24 200 -152 200
WIRE 200 200 200 56
WIRE 200 200 24 200
WIRE 24 264 24 200
WIRE -600 312 -600 248
WIRE 24 312 -472 312
WIRE 520 312 24 312
WIRE 616 312 616 248
WIRE -344 328 -344 152
WIRE 392 328 392 152
WIRE 24 344 24 312
WIRE -472 376 -472 312
WIRE -408 376 -472 376
WIRE 520 376 520 312
WIRE 520 376 456 376
WIRE 24 472 24 424
WIRE -344 552 -344 424
WIRE 392 552 392 424
FLAG 24 264 0
FLAG -664 -24 0
FLAG -664 -344 +Vcc
FLAG -152 -536 +Vcc
FLAG 200 -552 +Vcc
FLAG -24 -344 Q
IOPIN 48 -256 Out
FLAG 120 -344 Q_Dash
IOPIN 192 -256 Out
FLAG -344 -200 +Vcc
FLAG 392 -200 +Vcc
FLAG 24 472 0
FLAG -344 552 0
FLAG 392 552 0
FLAG -600 312 0
FLAG 616 312 0
FLAG -264 -24 So
IOPIN -192 64 In
FLAG 296 -24 Ro
IOPIN 368 64 In
FLAG -680 104 S
IOPIN -608 192 In
FLAG 680 104 R
IOPIN 752 192 In
FLAG 24 312 CLK
SYMBOL npn -216 -312 R0
SYMATTR InstName Q1
SYMATTR Value 2N2222
SYMBOL npn -216 -40 R0
SYMATTR InstName Q2
SYMATTR Value 2N2222
SYMBOL npn 264 -312 M0
SYMATTR InstName Q3
SYMATTR Value 2N2222
SYMBOL npn 264 -40 M0
SYMATTR InstName Q4
SYMATTR Value 2N2222
SYMBOL voltage -664 -264 R0
SYMATTR InstName V1
SYMATTR Value 5
SYMBOL res -168 -488 R0
SYMATTR InstName R1
SYMATTR Value 100
SYMBOL res 184 -488 R0
SYMATTR InstName R2
SYMATTR Value 100
SYMBOL res 8 -136 R90
SYMATTR InstName R3
SYMATTR Value 5k
SYMBOL res 120 -200 R90
SYMATTR InstName R4
SYMATTR Value 5k
SYMBOL npn -408 56 R0
SYMATTR InstName Q5
SYMATTR Value 2N2222
SYMBOL npn -408 328 R0
SYMATTR InstName Q6
SYMATTR Value 2N2222
SYMBOL npn 456 56 M0
SYMATTR InstName Q7
SYMATTR Value 2N2222
SYMBOL npn 456 328 M0
SYMATTR InstName Q8
SYMATTR Value 2N2222
SYMBOL voltage 24 328 R0
SYMATTR InstName V2
SYMATTR Value PULSE(0 3 0 0.005 0.005 2 4 10)
SYMBOL res -360 -120 R0
SYMATTR InstName R5
SYMATTR Value 100
SYMBOL res 376 -136 R0
SYMATTR InstName R7
SYMATTR Value 100
SYMBOL res -504 88 R90
SYMATTR InstName R6
SYMATTR Value 1k
SYMBOL res 632 88 R90
SYMATTR InstName R8
SYMATTR Value 1k
SYMBOL voltage -600 152 R0
SYMATTR InstName V3
SYMATTR Value PWL(0 4 2 4 2.005 0 6 0 6.005 4 8 4 8.005 0 10 0)
SYMBOL voltage 616 152 R0
SYMATTR InstName V4
SYMATTR Value PWL(0 4 4 4 4.005 0 6 0 6.005 0 10 0)