* SPICE netlist
VCC VCC 0 {VCC}
V_BIT0 BIT0 0 PULSE(0 {VCC} 0 {rise} {rise} {1/freq/2-rise} {1/freq} {16*reps}) AC 5
V_BIT1 BIT1 0 PULSE(0 {VCC} 0 {rise} {rise} {2*1/freq/2-rise} {2*1/freq} {8*reps})
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 OUT N003 0 0 2N3904
D1 N003 OUT BAT54
Q1 N001 INT2 N002 0 2N3904
R3 N001 OUT 100
R1 N002 N003 220
R2 N003 0 220
R200 IN BIT0 1m
C2 OUT 0 50p
Q5 N001 INT1 N002 0 2N3904
Q7 0 BIT2 INT2 0 2N3906
Q8 0 BIT3 INT2 0 2N3906
Q9 0 BIT0 INT1 0 2N3906
Q10 0 BIT1 INT1 0 2N3906
R4 N001 INT1 520
R5 N001 INT2 520
C1 OUT_NN 0 50p
Q4 N004 INT2c N005 0 2N3904
R8 N005 0 52
Q6 N004 INT1c N005 0 2N3904
Q11 0 BIT2 INT2c 0 2N3906
Q12 0 BIT3 INT2c 0 2N3906
Q13 0 BIT0 INT1c 0 2N3906
Q14 0 BIT1 INT1c 0 2N3906
R9 N004 INT1c 520
R10 N004 INT2c 520
M1 OUTc N005 N004 N004 BSS84
M2 OUTc N005 0 0 2N7002
R6 VCC N001 1m
R7 VCC N004 1m
.tran {16*reps/freq}
.param VCC=3.3
.param freq=10Mega
.param rise=1n
.param reps=1
.step temp -25 125 25

* LTspice schematic (.asc)
Version 4.1
SHEET 1 4448 2848
WIRE -1408 -1424 -1424 -1424
WIRE -1392 -1424 -1408 -1424
WIRE -1264 -1424 -1280 -1424
WIRE -1248 -1424 -1264 -1424
WIRE -1424 -1296 -1424 -1424
WIRE -1280 -1296 -1280 -1424
WIRE 864 -1088 800 -1088
WIRE 1088 -1088 944 -1088
WIRE 1328 -1088 1088 -1088
WIRE 1616 -1088 1328 -1088
WIRE 1776 -1088 1616 -1088
WIRE 2064 -1088 1776 -1088
WIRE 1088 -1056 1088 -1088
WIRE 1328 -1056 1328 -1088
WIRE -1424 -1024 -1424 -1232
WIRE -1280 -1024 -1280 -1232
WIRE 1616 -976 1616 -1088
WIRE 1088 -928 1088 -976
WIRE 1440 -928 1088 -928
WIRE 1552 -928 1440 -928
WIRE 2064 -896 2064 -1088
WIRE 1088 -880 1088 -928
WIRE 1088 -880 960 -880
WIRE 1088 -848 1088 -880
WIRE -1360 -832 -1424 -832
WIRE -1216 -832 -1360 -832
WIRE -1056 -832 -1136 -832
WIRE -992 -832 -1056 -832
WIRE 784 -800 752 -800
WIRE 1024 -800 784 -800
WIRE 960 -672 960 -880
WIRE 784 -624 752 -624
WIRE 896 -624 784 -624
WIRE -1872 -592 -1872 -624
WIRE 1776 -528 1776 -1088
WIRE -1872 -496 -1872 -512
WIRE 1328 -480 1328 -976
WIRE 1440 -480 1328 -480
WIRE 1712 -480 1440 -480
WIRE 1328 -448 1328 -480
WIRE 1328 -448 1200 -448
WIRE 2064 -432 2064 -816
WIRE 2160 -432 2064 -432
WIRE 2224 -432 2160 -432
WIRE 1328 -416 1328 -448
WIRE 1616 -400 1616 -880
WIRE 1776 -400 1776 -432
WIRE 1776 -400 1616 -400
WIRE 1776 -384 1776 -400
WIRE 784 -368 752 -368
WIRE 1264 -368 784 -368
WIRE 1968 -320 1904 -320
WIRE 2064 -320 2064 -432
WIRE 2064 -320 2032 -320
WIRE 2064 -272 2064 -320
WIRE 1200 -240 1200 -448
WIRE 1776 -224 1776 -304
WIRE 1904 -224 1904 -320
WIRE 1904 -224 1776 -224
WIRE 2000 -224 1904 -224
WIRE 784 -192 752 -192
WIRE 1136 -192 784 -192
WIRE 1776 -160 1776 -224
WIRE 960 -32 960 -576
WIRE 960 -32 848 -32
WIRE 1088 -32 1088 -752
WIRE 1088 -32 960 -32
WIRE 1200 -32 1200 -144
WIRE 1200 -32 1088 -32
WIRE 1328 -32 1328 -320
WIRE 1328 -32 1200 -32
WIRE 1776 -32 1776 -80
WIRE 1776 -32 1328 -32
WIRE 2064 -32 2064 -176
WIRE 2064 -32 1776 -32
WIRE 2224 -32 2064 -32
WIRE 848 16 848 -32
WIRE 864 320 800 320
WIRE 1088 320 944 320
WIRE 1328 320 1088 320
WIRE 1616 320 1328 320
WIRE 1776 320 1616 320
WIRE 2064 320 1776 320
WIRE 1088 352 1088 320
WIRE 1328 352 1328 320
WIRE 1616 432 1616 320
WIRE 1088 480 1088 432
WIRE 1440 480 1088 480
WIRE 1552 480 1440 480
WIRE 1088 528 1088 480
WIRE 1088 528 960 528
WIRE 1088 560 1088 528
WIRE 784 608 752 608
WIRE 1024 608 784 608
WIRE 960 736 960 528
WIRE 784 784 752 784
WIRE 896 784 784 784
WIRE 2064 784 2064 320
WIRE 2016 800 1888 800
WIRE 1776 880 1776 320
WIRE 1328 928 1328 432
WIRE 1440 928 1328 928
WIRE 1712 928 1440 928
WIRE 1328 960 1328 928
WIRE 1328 960 1200 960
WIRE 2064 976 2064 880
WIRE 2160 976 2064 976
WIRE 2224 976 2160 976
WIRE 1328 992 1328 960
WIRE 1616 1008 1616 528
WIRE 1776 1008 1776 976
WIRE 1776 1008 1616 1008
WIRE 784 1040 752 1040
WIRE 1264 1040 784 1040
WIRE 1776 1088 1776 1008
WIRE 1888 1088 1888 800
WIRE 1888 1088 1776 1088
WIRE 2064 1136 2064 976
WIRE 1200 1168 1200 960
WIRE 784 1216 752 1216
WIRE 1136 1216 784 1216
WIRE 1888 1216 1888 1088
WIRE 2016 1216 1888 1216
WIRE 1776 1248 1776 1088
WIRE 960 1376 960 832
WIRE 960 1376 848 1376
WIRE 1088 1376 1088 656
WIRE 1088 1376 960 1376
WIRE 1200 1376 1200 1264
WIRE 1200 1376 1088 1376
WIRE 1328 1376 1328 1088
WIRE 1328 1376 1200 1376
WIRE 1776 1376 1776 1328
WIRE 1776 1376 1328 1376
WIRE 2064 1376 2064 1232
WIRE 2064 1376 1776 1376
WIRE 2224 1376 2064 1376
WIRE 848 1424 848 1376
FLAG -1872 -496 0
FLAG -992 -624 BIT0
FLAG -1872 -624 VCC
FLAG -1072 -624 0
FLAG -992 -464 BIT1
FLAG -1072 -464 0
FLAG -992 -320 BIT2
FLAG -1072 -320 0
FLAG -992 -176 BIT3
FLAG -1072 -176 0
FLAG -992 -32 BIT4
FLAG -1072 -32 0
FLAG -2208 -48 BIT0
FLAG -2208 32 0
FLAG -2048 -48 BIT1
FLAG -2048 32 0
FLAG -1888 -48 BIT2
FLAG -1888 32 0
FLAG -1728 -48 BIT3
FLAG -1728 32 0
FLAG -1568 -48 BIT4
FLAG -1568 32 0
FLAG 2160 -432 OUT
FLAG 1440 -480 INT2
FLAG 800 -1088 VCC
FLAG -1360 -832 BIT0
FLAG -1056 -832 IN
FLAG 1440 -928 INT1
FLAG -1408 -1424 OUT
FLAG -1424 -1024 0
FLAG 784 -368 BIT2
FLAG 784 -192 BIT3
FLAG 848 16 0
FLAG 784 -800 BIT0
FLAG 784 -624 BIT1
FLAG -1264 -1424 OUT_NN
FLAG -1280 -1024 0
FLAG 2160 976 OUTc
FLAG 1440 928 INT2c
FLAG 800 320 VCC
FLAG 1440 480 INT1c
FLAG 784 1040 BIT2
FLAG 784 1216 BIT3
FLAG 848 1424 0
FLAG 784 608 BIT0
FLAG 784 784 BIT1
SYMBOL voltage -1872 -608 R0
SYMATTR InstName VCC
SYMATTR Value {VCC}
SYMBOL voltage -976 -624 R90
SYMATTR Value2 AC 5
SYMATTR InstName V_BIT0
SYMATTR Value PULSE(0 {VCC} 0 {rise} {rise} {1/freq/2-rise} {1/freq} {16*reps})
SYMBOL voltage -976 -464 R90
SYMATTR InstName V_BIT1
SYMATTR Value PULSE(0 {VCC} 0 {rise} {rise} {2*1/freq/2-rise} {2*1/freq} {8*reps})
SYMBOL voltage -976 -320 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 -976 -176 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 -976 -32 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 -2224 -64 R0
SYMATTR InstName R100
SYMATTR Value 10Mega
SYMBOL res -2064 -64 R0
SYMATTR InstName R101
SYMATTR Value 10Mega
SYMBOL res -1904 -64 R0
SYMATTR InstName R102
SYMATTR Value 10Mega
SYMBOL res -1744 -64 R0
SYMATTR InstName R103
SYMATTR Value 10Mega
SYMBOL res -1584 -64 R0
SYMATTR InstName R104
SYMATTR Value 10Mega
SYMBOL npn 2000 -272 R0
SYMATTR InstName Q2
SYMATTR Value 2N3904
SYMBOL schottky 1968 -304 R270
SYMATTR InstName D1
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL npn 1712 -528 R0
SYMATTR InstName Q1
SYMATTR Value 2N3904
SYMBOL res 2048 -912 R0
SYMATTR InstName R3
SYMATTR Value 100
SYMBOL res 1760 -400 R0
SYMATTR InstName R1
SYMATTR Value 220
SYMBOL res 1760 -176 R0
SYMATTR InstName R2
SYMATTR Value 220
SYMBOL res -1120 -848 R90
SYMATTR InstName R200
SYMATTR Value 1m
SYMBOL cap -1440 -1296 R0
SYMATTR InstName C2
SYMATTR Value 50p
SYMBOL npn 1552 -976 R0
SYMATTR InstName Q5
SYMATTR Value 2N3904
SYMBOL pnp 1264 -320 M180
SYMATTR InstName Q7
SYMATTR Value 2N3906
SYMBOL pnp 1136 -144 M180
SYMATTR InstName Q8
SYMATTR Value 2N3906
SYMBOL pnp 1024 -752 M180
SYMATTR InstName Q9
SYMATTR Value 2N3906
SYMBOL pnp 896 -576 M180
SYMATTR InstName Q10
SYMATTR Value 2N3906
SYMBOL res 1072 -1072 R0
SYMATTR InstName R4
SYMATTR Value 520
SYMBOL res 1312 -1072 R0
SYMATTR InstName R5
SYMATTR Value 520
SYMBOL cap -1296 -1296 R0
SYMATTR InstName C1
SYMATTR Value 50p
SYMBOL npn 1712 880 R0
SYMATTR InstName Q4
SYMATTR Value 2N3904
SYMBOL res 1760 1232 R0
SYMATTR InstName R8
SYMATTR Value 52
SYMBOL npn 1552 432 R0
SYMATTR InstName Q6
SYMATTR Value 2N3904
SYMBOL pnp 1264 1088 M180
SYMATTR InstName Q11
SYMATTR Value 2N3906
SYMBOL pnp 1136 1264 M180
SYMATTR InstName Q12
SYMATTR Value 2N3906
SYMBOL pnp 1024 656 M180
SYMATTR InstName Q13
SYMATTR Value 2N3906
SYMBOL pnp 896 832 M180
SYMATTR InstName Q14
SYMATTR Value 2N3906
SYMBOL res 1072 336 R0
SYMATTR InstName R9
SYMATTR Value 520
SYMBOL res 1312 336 R0
SYMATTR InstName R10
SYMATTR Value 520
SYMBOL pmos 2016 880 M180
SYMATTR InstName M1
SYMATTR Value BSS84
SYMBOL nmos 2016 1136 R0
SYMATTR InstName M2
SYMATTR Value 2N7002
SYMBOL res 848 -1072 R270
SYMATTR InstName R6
SYMATTR Value 1m
SYMBOL res 848 336 R270
SYMATTR InstName R7
SYMATTR Value 1m