* SPICE netlist
VCC VCC 0 {VCC}
V_BIT0 BIT0 0 PULSE(0 {VCC} 0 1n 1n 98n 200n 100) AC 5
V_BIT1 BIT1 0 PULSE(0 {VCC} 0 1n 1n 100n 204n 100)
V_BIT2 BIT2 0 PULSE(0 {VCC} 0 {rise} {rise} {4*1/freq/2-rise} {4*1/freq} {4*reps})
V_BIT3 BIT3 0 PULSE(0 {VCC} 0 {rise} {rise} {8*1/freq/2-rise} {8*1/freq} {2*reps})
V_BIT4 BIT4 0 PULSE(0 {VCC} 0 {rise} {rise} {16*1/freq/2-rise} {16*1/freq} {1*reps})
R100 BIT0 0 10Mega
R101 BIT1 0 10Mega
R102 BIT2 0 10Mega
R103 BIT3 0 10Mega
R104 BIT4 0 10Mega
Q2 _Q N003 0 0 2N3904
D1 N003 _Q BAT54
Q1 VCC N001 N002 0 2N3904
R3 VCC _Q 100
R1 N002 N003 220
R2 N003 0 220
R200 EN BIT0 1m
Q5 VCC Q N002 0 2N3904
Q7 0 IN N001 0 2N3906
Q8 0 EN N001 0 2N3906
R7 VCC N001 540
Q3 Q N008 0 0 2N3904
D2 N008 Q BAT54
Q4 VCC N004 N005 0 2N3904
R4 VCC Q 100
R5 N005 N008 220
R6 N008 0 220
Q6 VCC _Q N005 0 2N3904
Q9 0 EN N004 0 2N3906
Q10 0 _IN N004 0 2N3906
R8 VCC N004 540
Q11 _IN N007 0 0 2N3904
D3 N007 _IN BAT54
Q12 VCC IN N006 0 2N3904
R9 VCC _IN 100
R10 N006 N007 220
R11 N007 0 220
R12 IN BIT1 1m
C3 _Q 0 50p
C4 Q 0 50p
.tran 20u
.param VCC=3.3
.param freq=10Mega
.param rise=1n
.param reps=1
;.step temp -25 125 150
.temp -25

* LTspice schematic (.asc)
Version 4.1
SHEET 1 5696 1904
WIRE -1984 -936 -2048 -936
WIRE -1840 -936 -1984 -936
WIRE -1680 -936 -1760 -936
WIRE -1616 -936 -1680 -936
WIRE -1984 -808 -2048 -808
WIRE -1840 -808 -1984 -808
WIRE -1680 -808 -1760 -808
WIRE -1616 -808 -1680 -808
WIRE 512 -792 496 -792
WIRE 624 -792 512 -792
WIRE 736 -792 624 -792
WIRE 1024 -792 736 -792
WIRE 512 -744 512 -792
WIRE 624 -664 624 -792
WIRE 1024 -648 1024 -792
WIRE 560 -616 288 -616
WIRE -2496 -568 -2496 -600
WIRE 736 -552 736 -792
WIRE 512 -504 512 -664
WIRE 672 -504 512 -504
WIRE 2512 -488 2464 -488
WIRE 2608 -488 2512 -488
WIRE 2752 -488 2704 -488
WIRE 2848 -488 2752 -488
WIRE -2496 -472 -2496 -488
WIRE 1024 -456 1024 -568
WIRE 1136 -456 1024 -456
WIRE 1216 -456 1136 -456
WIRE 624 -424 624 -568
WIRE 736 -424 736 -456
WIRE 736 -424 624 -424
WIRE 736 -408 736 -424
WIRE 2512 -360 2512 -488
WIRE 2752 -360 2752 -488
WIRE 512 -344 512 -504
WIRE 512 -344 400 -344
WIRE 928 -344 864 -344
WIRE 1024 -344 1024 -456
WIRE 1024 -344 992 -344
WIRE 512 -312 512 -344
WIRE 1024 -296 1024 -344
WIRE 448 -264 -640 -264
WIRE 736 -248 736 -328
WIRE 864 -248 864 -344
WIRE 864 -248 736 -248
WIRE 960 -248 864 -248
WIRE 400 -200 400 -344
WIRE 736 -184 736 -248
WIRE 336 -152 192 -152
WIRE 2512 -88 2512 -296
WIRE 2512 -88 2448 -88
WIRE 2560 -88 2512 -88
WIRE 2752 -88 2752 -296
WIRE 2752 -88 2560 -88
WIRE 2848 -88 2752 -88
WIRE 400 -56 400 -104
WIRE 432 -56 400 -56
WIRE 512 -56 512 -216
WIRE 512 -56 432 -56
WIRE 736 -56 736 -104
WIRE 736 -56 512 -56
WIRE 1024 -56 1024 -200
WIRE 1024 -56 736 -56
WIRE 2560 -40 2560 -88
WIRE 432 -8 432 -56
WIRE 288 24 288 -616
WIRE 1136 24 1136 -456
WIRE 288 120 1136 24
WIRE 1136 120 288 24
WIRE 0 136 -80 136
WIRE 192 136 192 -152
WIRE 192 136 0 136
WIRE 512 168 496 168
WIRE 624 168 512 168
WIRE 736 168 624 168
WIRE 1024 168 736 168
WIRE 512 216 512 168
WIRE -528 248 -768 248
WIRE -240 248 -528 248
WIRE 624 296 624 168
WIRE -240 312 -240 248
WIRE 1024 312 1024 168
WIRE 288 344 288 120
WIRE 560 344 288 344
WIRE -528 408 -528 248
WIRE 736 408 736 168
WIRE -704 456 -736 456
WIRE -640 456 -640 -264
WIRE -640 456 -704 456
WIRE -592 456 -640 456
WIRE 512 456 512 296
WIRE 672 456 512 456
WIRE -240 504 -240 392
WIRE -160 504 -240 504
WIRE -48 504 -160 504
WIRE 1024 504 1024 392
WIRE 1136 504 1136 120
WIRE 1136 504 1024 504
WIRE 1248 504 1136 504
WIRE 624 536 624 392
WIRE 736 536 736 504
WIRE 736 536 624 536
WIRE -528 552 -528 504
WIRE 736 552 736 536
WIRE -336 616 -400 616
WIRE -240 616 -240 504
WIRE -240 616 -272 616
WIRE 512 616 512 456
WIRE 512 616 400 616
WIRE 928 616 864 616
WIRE 1024 616 1024 504
WIRE 1024 616 992 616
WIRE 512 648 512 616
WIRE -240 664 -240 616
WIRE 1024 664 1024 616
WIRE 192 696 192 136
WIRE 448 696 192 696
WIRE -528 712 -528 632
WIRE -400 712 -400 616
WIRE -400 712 -528 712
WIRE -304 712 -400 712
WIRE 736 712 736 632
WIRE 864 712 864 616
WIRE 864 712 736 712
WIRE 960 712 864 712
WIRE 400 760 400 616
WIRE -528 776 -528 712
WIRE 736 776 736 712
WIRE -48 808 -48 504
WIRE 336 808 -48 808
WIRE -528 904 -528 856
WIRE -528 904 -832 904
WIRE -240 904 -240 760
WIRE -240 904 -528 904
WIRE 400 904 400 856
WIRE 432 904 400 904
WIRE 512 904 512 744
WIRE 512 904 432 904
WIRE 736 904 736 856
WIRE 736 904 512 904
WIRE 1024 904 1024 760
WIRE 1024 904 736 904
WIRE -832 952 -832 904
WIRE 432 952 432 904
FLAG -2496 -472 0
FLAG -1616 -600 BIT0
FLAG -2496 -600 VCC
FLAG -1696 -600 0
FLAG -1616 -440 BIT1
FLAG -1696 -440 0
FLAG -1616 -296 BIT2
FLAG -1696 -296 0
FLAG -1616 -152 BIT3
FLAG -1696 -152 0
FLAG -1616 -8 BIT4
FLAG -1696 -8 0
FLAG -2832 -24 BIT0
FLAG -2832 56 0
FLAG -2672 -24 BIT1
FLAG -2672 56 0
FLAG -2512 -24 BIT2
FLAG -2512 56 0
FLAG -2352 -24 BIT3
FLAG -2352 56 0
FLAG -2192 -24 BIT4
FLAG -2192 56 0
FLAG 432 -8 0
FLAG 1216 -456 _Q
FLAG 496 -792 VCC
FLAG -1984 -808 BIT0
FLAG -1680 -808 EN
FLAG 432 952 0
FLAG 1248 504 Q
FLAG 496 168 VCC
FLAG -832 952 0
FLAG -704 456 IN
FLAG -768 248 VCC
FLAG -160 504 _IN
FLAG 0 136 EN
FLAG -1984 -936 BIT1
FLAG -1680 -936 IN
FLAG 2464 -488 _Q
FLAG 2704 -488 Q
FLAG 2560 -40 0
SYMBOL voltage -2496 -584 R0
SYMATTR InstName VCC
SYMATTR Value {VCC}
SYMBOL voltage -1600 -600 R90
SYMATTR Value2 AC 5
SYMATTR InstName V_BIT0
SYMATTR Value PULSE(0 {VCC} 0 1n 1n 98n 200n 100)
SYMBOL voltage -1600 -440 R90
SYMATTR InstName V_BIT1
SYMATTR Value PULSE(0 {VCC} 0 1n 1n 100n 204n 100)
SYMBOL voltage -1600 -296 R90
SYMATTR InstName V_BIT2
SYMATTR Value PULSE(0 {VCC} 0 {rise} {rise} {4*1/freq/2-rise} {4*1/freq} {4*reps})
SYMBOL voltage -1600 -152 R90
SYMATTR InstName V_BIT3
SYMATTR Value PULSE(0 {VCC} 0 {rise} {rise} {8*1/freq/2-rise} {8*1/freq} {2*reps})
SYMBOL voltage -1600 -8 R90
SYMATTR InstName V_BIT4
SYMATTR Value PULSE(0 {VCC} 0 {rise} {rise} {16*1/freq/2-rise} {16*1/freq} {1*reps})
SYMBOL res -2848 -40 R0
SYMATTR InstName R100
SYMATTR Value 10Mega
SYMBOL res -2688 -40 R0
SYMATTR InstName R101
SYMATTR Value 10Mega
SYMBOL res -2528 -40 R0
SYMATTR InstName R102
SYMATTR Value 10Mega
SYMBOL res -2368 -40 R0
SYMATTR InstName R103
SYMATTR Value 10Mega
SYMBOL res -2208 -40 R0
SYMATTR InstName R104
SYMATTR Value 10Mega
SYMBOL npn 960 -296 R0
SYMATTR InstName Q2
SYMATTR Value 2N3904
SYMBOL schottky 928 -328 R270
SYMATTR InstName D1
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL npn 672 -552 R0
SYMATTR InstName Q1
SYMATTR Value 2N3904
SYMBOL res 1008 -664 R0
SYMATTR InstName R3
SYMATTR Value 100
SYMBOL res 720 -424 R0
SYMATTR InstName R1
SYMATTR Value 220
SYMBOL res 720 -200 R0
SYMATTR InstName R2
SYMATTR Value 220
SYMBOL res -1744 -824 R90
SYMATTR InstName R200
SYMATTR Value 1m
SYMBOL npn 560 -664 R0
SYMATTR InstName Q5
SYMATTR Value 2N3904
SYMBOL pnp 448 -216 M180
SYMATTR InstName Q7
SYMATTR Value 2N3906
SYMBOL pnp 336 -104 M180
SYMATTR InstName Q8
SYMATTR Value 2N3906
SYMBOL res 496 -760 R0
SYMATTR InstName R7
SYMATTR Value 540
SYMBOL npn 960 664 R0
SYMATTR InstName Q3
SYMATTR Value 2N3904
SYMBOL schottky 928 632 R270
SYMATTR InstName D2
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL npn 672 408 R0
SYMATTR InstName Q4
SYMATTR Value 2N3904
SYMBOL res 1008 296 R0
SYMATTR InstName R4
SYMATTR Value 100
SYMBOL res 720 536 R0
SYMATTR InstName R5
SYMATTR Value 220
SYMBOL res 720 760 R0
SYMATTR InstName R6
SYMATTR Value 220
SYMBOL npn 560 296 R0
SYMATTR InstName Q6
SYMATTR Value 2N3904
SYMBOL pnp 448 744 M180
SYMATTR InstName Q9
SYMATTR Value 2N3906
SYMBOL pnp 336 856 M180
SYMATTR InstName Q10
SYMATTR Value 2N3906
SYMBOL res 496 200 R0
SYMATTR InstName R8
SYMATTR Value 540
SYMBOL npn -304 664 R0
SYMATTR InstName Q11
SYMATTR Value 2N3904
SYMBOL schottky -336 632 R270
SYMATTR InstName D3
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL npn -592 408 R0
SYMATTR InstName Q12
SYMATTR Value 2N3904
SYMBOL res -256 296 R0
SYMATTR InstName R9
SYMATTR Value 100
SYMBOL res -544 536 R0
SYMATTR InstName R10
SYMATTR Value 220
SYMBOL res -544 760 R0
SYMATTR InstName R11
SYMATTR Value 220
SYMBOL res -1744 -952 R90
SYMATTR InstName R12
SYMATTR Value 1m
SYMBOL cap 2496 -360 R0
SYMATTR InstName C3
SYMATTR Value 50p
SYMBOL cap 2736 -360 R0
SYMATTR InstName C4
SYMATTR Value 50p