* SPICE netlist
VCC VCC 0 {VCC}
V_BIT5 A_IN N004 PULSE(0 {VH-VL} 0 {rise} {rise} {1/freq/2-rise} {1/freq} {256*reps}) AC {VH}
A11 _B_IN N004 A_IN N004 N004 _B_IN B_IN N004 DFLOP Vhigh={VH-VL}
A13 _C_IN N004 B_IN N004 N004 _C_IN C_IN N004 DFLOP Vhigh={VH-VL}
A15 N002 N004 N001 N004 N004 N002 _AND_EN N004 DFLOP Vhigh={VH-VL}
A16 N003 N004 _AND_EN N004 N004 N003 _OR_EN N004 DFLOP Vhigh={VH-VL}
A14 _ADD_EN N004 C_IN N004 N004 _ADD_EN N001 N004 DFLOP Vhigh={VH-VL}
R107 COUT_1 _AND_EN 1m
R109 COUT_0 N001 1m
R11 B_IN D 1m
R12 _B_IN _D 1m
R26 A_IN EN 1m
V_IN1 N010 0 PULSE({VL} {VH} 0 1n 1n 24n 50n 1000)
VCC1 N004 0 {VL}
Q1 O2 N007 N012 0 2N3904
D1 N007 O2 BAT54
D10 N016 0 1N914
Q6 O1 N006 N011 0 2N3904
R30 N011 0 R=R_e
R31 N010 N006 R=R_b
D11 N006 O1 BAT54
R32 O1 N006 R=R_fb
R33 N005 O1 R=R_c
R34 N006 N015 R=R_d
D12 N015 0 1N914
Q2 O3 N008 N013 0 2N3904
D2 N008 O3 BAT54
D3 N017 0 1N914
Q3 O4 N009 N014 0 2N3904
D4 N009 O4 BAT54
D5 N018 0 1N914
R1 O1 N007 R=R_b
R2 O2 N008 R=R_b
R3 O3 N009 R=R_b
R4 O2 N007 R=R_fb
R5 O3 N008 R=R_fb
R6 O4 N009 R=R_fb
R7 N005 O2 R=R_c
R8 N005 O3 R=R_c
R9 N005 O4 R=R_c
R10 N007 N016 R=R_d
R13 N008 N017 R=R_d
R14 N009 N018 R=R_d
R15 N012 0 R=R_e
R16 N013 0 R=R_e
R17 N014 0 R=R_e
R18 N005 VCC 1m
.param VCC=5
.param freq=20mega
.param rise=1n
.param reps=1
.param Rb=200
.tran 500n
.step temp -25 125 25
;.step param VH 1 2.5 0.1
.param VH=5
.param VL=0.0
.param R_c=50
.param R_e=1m
.param R_b=100
.param R_fb=1mega
.param R_d=7

* LTspice schematic (.asc)
Version 4
SHEET 1 6352 3456
WIRE 2072 -1712 1960 -1712
WIRE 2264 -1712 2152 -1712
WIRE 2328 -1712 2264 -1712
WIRE 1640 -1680 1560 -1680
WIRE 1800 -1680 1720 -1680
WIRE 1896 -1680 1800 -1680
WIRE 712 -1552 456 -1552
WIRE 1064 -1552 856 -1552
WIRE 1112 -1552 1064 -1552
WIRE 1432 -1552 1256 -1552
WIRE 1512 -1552 1432 -1552
WIRE 1912 -1552 1656 -1552
WIRE 2312 -1552 2056 -1552
WIRE 584 -1520 440 -1520
WIRE 984 -1520 840 -1520
WIRE 1384 -1520 1240 -1520
WIRE 1784 -1520 1640 -1520
WIRE 2184 -1520 2040 -1520
WIRE 584 -1488 584 -1520
WIRE 984 -1488 984 -1520
WIRE 1384 -1488 1384 -1520
WIRE 1784 -1488 1784 -1520
WIRE 2184 -1488 2184 -1520
WIRE 712 -1472 712 -1552
WIRE 760 -1472 712 -1472
WIRE 792 -1472 760 -1472
WIRE 456 -1440 456 -1552
WIRE 504 -1440 456 -1440
WIRE 760 -1440 664 -1440
WIRE 856 -1440 856 -1552
WIRE 904 -1440 856 -1440
WIRE 1160 -1440 1064 -1440
WIRE 1256 -1440 1256 -1552
WIRE 1304 -1440 1256 -1440
WIRE 1560 -1440 1560 -1680
WIRE 1560 -1440 1464 -1440
WIRE 1656 -1440 1656 -1552
WIRE 1704 -1440 1656 -1440
WIRE 1960 -1440 1960 -1712
WIRE 1960 -1440 1864 -1440
WIRE 2056 -1440 2056 -1552
WIRE 2104 -1440 2056 -1440
WIRE 2360 -1440 2264 -1440
WIRE 408 -1392 312 -1392
WIRE 504 -1392 408 -1392
WIRE 712 -1392 712 -1472
WIRE 712 -1392 680 -1392
WIRE 760 -1392 760 -1440
WIRE 808 -1392 760 -1392
WIRE 904 -1392 808 -1392
WIRE 1112 -1392 1112 -1552
WIRE 1112 -1392 1080 -1392
WIRE 1160 -1392 1160 -1440
WIRE 1304 -1392 1160 -1392
WIRE 1512 -1392 1512 -1552
WIRE 1512 -1392 1480 -1392
WIRE 1560 -1392 1560 -1440
WIRE 1704 -1392 1560 -1392
WIRE 1912 -1392 1912 -1552
WIRE 1912 -1392 1880 -1392
WIRE 1960 -1392 1960 -1440
WIRE 2008 -1392 1960 -1392
WIRE 2104 -1392 2008 -1392
WIRE 2312 -1392 2312 -1552
WIRE 2312 -1392 2280 -1392
WIRE 2360 -1392 2360 -1440
WIRE 2424 -1392 2360 -1392
WIRE 2504 -1392 2424 -1392
WIRE -120 -1376 -120 -1408
WIRE 312 -1360 312 -1392
WIRE -120 -1280 -120 -1296
WIRE 312 -1264 312 -1280
WIRE 440 -1264 440 -1520
WIRE 440 -1264 312 -1264
WIRE 504 -1264 504 -1344
WIRE 504 -1264 440 -1264
WIRE 584 -1264 584 -1344
WIRE 584 -1264 504 -1264
WIRE 632 -1264 584 -1264
WIRE 840 -1264 840 -1520
WIRE 840 -1264 632 -1264
WIRE 904 -1264 904 -1344
WIRE 904 -1264 840 -1264
WIRE 984 -1264 984 -1344
WIRE 984 -1264 904 -1264
WIRE 1240 -1264 1240 -1520
WIRE 1240 -1264 984 -1264
WIRE 1304 -1264 1304 -1344
WIRE 1304 -1264 1240 -1264
WIRE 1384 -1264 1384 -1344
WIRE 1384 -1264 1304 -1264
WIRE 1640 -1264 1640 -1520
WIRE 1640 -1264 1384 -1264
WIRE 1704 -1264 1704 -1344
WIRE 1704 -1264 1640 -1264
WIRE 1784 -1264 1784 -1344
WIRE 1784 -1264 1704 -1264
WIRE 2040 -1264 2040 -1520
WIRE 2040 -1264 1784 -1264
WIRE 2104 -1264 2104 -1344
WIRE 2104 -1264 2040 -1264
WIRE 2184 -1264 2184 -1344
WIRE 2184 -1264 2104 -1264
WIRE 632 -1232 632 -1264
WIRE 2856 -448 2808 -448
WIRE 2952 -448 2856 -448
WIRE 3112 -448 3032 -448
WIRE 3176 -448 3112 -448
WIRE 2856 -368 2808 -368
WIRE 2952 -368 2856 -368
WIRE 3112 -368 3032 -368
WIRE 3176 -368 3112 -368
WIRE 2856 -288 2808 -288
WIRE 2952 -288 2856 -288
WIRE 3112 -288 3032 -288
WIRE 3176 -288 3112 -288
WIRE -2504 224 -3128 224
WIRE -2232 224 -2504 224
WIRE -1080 224 -2152 224
WIRE -216 224 -1080 224
WIRE 648 224 -216 224
WIRE 1512 224 648 224
WIRE 1912 224 1512 224
WIRE -1080 288 -1080 224
WIRE -216 288 -216 224
WIRE 648 288 648 224
WIRE 1512 288 1512 224
WIRE -1080 576 -1080 368
WIRE -1080 576 -1480 576
WIRE -1000 576 -1080 576
WIRE -936 576 -1000 576
WIRE -216 576 -216 368
WIRE -216 576 -616 576
WIRE -136 576 -216 576
WIRE -72 576 -136 576
WIRE 648 576 648 368
WIRE 648 576 248 576
WIRE 728 576 648 576
WIRE 792 576 728 576
WIRE 1512 576 1512 368
WIRE 1512 576 1112 576
WIRE 1592 576 1512 576
WIRE -1480 624 -1480 576
WIRE -616 624 -616 576
WIRE 248 624 248 576
WIRE 1112 624 1112 576
WIRE -1368 736 -1416 736
WIRE -1080 736 -1080 576
WIRE -1080 736 -1304 736
WIRE -504 736 -552 736
WIRE -216 736 -216 576
WIRE -216 736 -440 736
WIRE 360 736 312 736
WIRE 648 736 648 576
WIRE 648 736 424 736
WIRE 1224 736 1176 736
WIRE 1512 736 1512 576
WIRE 1512 736 1288 736
WIRE -1080 800 -1080 736
WIRE -216 800 -216 736
WIRE 648 800 648 736
WIRE 1512 800 1512 736
WIRE -1656 848 -1832 848
WIRE -1528 848 -1576 848
WIRE -1480 848 -1480 704
WIRE -1480 848 -1528 848
WIRE -1416 848 -1416 736
WIRE -1416 848 -1480 848
WIRE -1144 848 -1416 848
WIRE -936 848 -936 576
WIRE -792 848 -936 848
WIRE -664 848 -712 848
WIRE -616 848 -616 704
WIRE -616 848 -664 848
WIRE -552 848 -552 736
WIRE -552 848 -616 848
WIRE -280 848 -552 848
WIRE -72 848 -72 576
WIRE 72 848 -72 848
WIRE 200 848 152 848
WIRE 248 848 248 704
WIRE 248 848 200 848
WIRE 312 848 312 736
WIRE 312 848 248 848
WIRE 584 848 312 848
WIRE 792 848 792 576
WIRE 936 848 792 848
WIRE 1064 848 1016 848
WIRE 1112 848 1112 704
WIRE 1112 848 1064 848
WIRE 1176 848 1176 736
WIRE 1176 848 1112 848
WIRE 1448 848 1176 848
WIRE -1528 1056 -1528 848
WIRE -664 1056 -664 848
WIRE 200 1056 200 848
WIRE 1064 1056 1064 848
WIRE -1832 1152 -1832 848
WIRE -1080 1248 -1080 896
WIRE -216 1248 -216 896
WIRE 648 1248 648 896
WIRE 1512 1248 1512 896
WIRE -1528 1344 -1528 1136
WIRE -664 1344 -664 1136
WIRE 200 1344 200 1136
WIRE 1064 1344 1064 1136
WIRE -2056 1680 -3176 1680
WIRE -1832 1680 -1832 1232
WIRE -1832 1680 -2056 1680
WIRE -1528 1680 -1528 1408
WIRE -1528 1680 -1832 1680
WIRE -1080 1680 -1080 1328
WIRE -1080 1680 -1528 1680
WIRE -664 1680 -664 1408
WIRE -664 1680 -1080 1680
WIRE -216 1680 -216 1328
WIRE -216 1680 -664 1680
WIRE 200 1680 200 1408
WIRE 200 1680 -216 1680
WIRE 648 1680 648 1328
WIRE 648 1680 200 1680
WIRE 1064 1680 1064 1408
WIRE 1064 1680 648 1680
WIRE 1512 1680 1512 1328
WIRE 1512 1680 1064 1680
WIRE -2056 1728 -2056 1680
FLAG -120 -1280 0
FLAG -120 -1408 VCC
FLAG 408 -1392 A_IN
FLAG 808 -1392 B_IN
FLAG 1160 -1392 C_IN
FLAG 1432 -1552 _ADD_EN
FLAG 2008 -1392 _AND_EN
FLAG 2424 -1392 _OR_EN
FLAG 1800 -1680 COUT_0
FLAG 2264 -1712 COUT_1
FLAG 760 -1472 _B_IN
FLAG 3112 -448 EN
FLAG 3112 -368 _D
FLAG 3112 -288 D
FLAG 2856 -448 A_IN
FLAG 2856 -368 _B_IN
FLAG 2856 -288 B_IN
FLAG 1064 -1552 _C_IN
FLAG 632 -1152 0
FLAG -1000 576 O1
FLAG -2056 1728 0
FLAG -2504 224 VCC
FLAG -136 576 O2
FLAG 728 576 O3
FLAG 1592 576 O4
SYMBOL voltage -120 -1392 R0
SYMATTR InstName VCC
SYMATTR Value {VCC}
SYMBOL voltage 312 -1376 R0
SYMATTR Value2 AC {VH}
SYMATTR InstName V_BIT5
SYMATTR Value PULSE(0 {VH-VL} 0 {rise} {rise} {1/freq/2-rise} {1/freq} {256*reps})
SYMBOL Digital\\dflop 584 -1488 R0
SYMATTR SpiceLine Vhigh={VH-VL}
SYMATTR InstName A11
SYMBOL Digital\\dflop 984 -1488 R0
SYMATTR SpiceLine Vhigh={VH-VL}
SYMATTR InstName A13
SYMBOL Digital\\dflop 1784 -1488 R0
SYMATTR SpiceLine Vhigh={VH-VL}
SYMATTR InstName A15
SYMBOL Digital\\dflop 2184 -1488 R0
SYMATTR SpiceLine Vhigh={VH-VL}
SYMATTR InstName A16
SYMBOL Digital\\dflop 1384 -1488 R0
SYMATTR SpiceLine Vhigh={VH-VL}
SYMATTR InstName A14
SYMBOL res 2168 -1728 R90
SYMATTR InstName R107
SYMATTR Value 1m
SYMBOL res 1736 -1696 R90
SYMATTR InstName R109
SYMATTR Value 1m
SYMBOL res 2936 -272 R270
SYMATTR InstName R11
SYMATTR Value 1m
SYMBOL res 2936 -352 R270
SYMATTR InstName R12
SYMATTR Value 1m
SYMBOL res 2936 -432 R270
SYMATTR InstName R26
SYMATTR Value 1m
SYMBOL voltage -1832 1136 M0
SYMATTR InstName V_IN1
SYMATTR Value PULSE({VL} {VH} 0 1n 1n 24n 50n 1000)
SYMBOL voltage 632 -1248 R0
SYMATTR InstName VCC1
SYMATTR Value {VL}
SYMBOL npn -280 800 R0
SYMATTR InstName Q1
SYMATTR Value 2N3904
SYMBOL schottky -504 752 R270
SYMATTR InstName D1
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL diode -680 1344 R0
SYMATTR InstName D10
SYMATTR Value 1N914
SYMBOL npn -1144 800 R0
SYMATTR InstName Q6
SYMATTR Value 2N3904
SYMBOL res -1096 1232 R0
SYMATTR InstName R30
SYMATTR Value R=R_e
SYMBOL res -1672 864 R270
SYMATTR InstName R31
SYMATTR Value R=R_b
SYMBOL schottky -1368 752 R270
SYMATTR InstName D11
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res -1496 608 R0
SYMATTR InstName R32
SYMATTR Value R=R_fb
SYMBOL res -1096 272 R0
SYMATTR InstName R33
SYMATTR Value R=R_c
SYMBOL res -1544 1040 R0
SYMATTR InstName R34
SYMATTR Value R=R_d
SYMBOL diode -1544 1344 R0
SYMATTR InstName D12
SYMATTR Value 1N914
SYMBOL npn 584 800 R0
SYMATTR InstName Q2
SYMATTR Value 2N3904
SYMBOL schottky 360 752 R270
SYMATTR InstName D2
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL diode 184 1344 R0
SYMATTR InstName D3
SYMATTR Value 1N914
SYMBOL npn 1448 800 R0
SYMATTR InstName Q3
SYMATTR Value 2N3904
SYMBOL schottky 1224 752 R270
SYMATTR InstName D4
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL diode 1048 1344 R0
SYMATTR InstName D5
SYMATTR Value 1N914
SYMBOL res -808 864 R270
SYMATTR InstName R1
SYMATTR Value R=R_b
SYMBOL res 56 864 R270
SYMATTR InstName R2
SYMATTR Value R=R_b
SYMBOL res 920 864 R270
SYMATTR InstName R3
SYMATTR Value R=R_b
SYMBOL res -632 608 R0
SYMATTR InstName R4
SYMATTR Value R=R_fb
SYMBOL res 232 608 R0
SYMATTR InstName R5
SYMATTR Value R=R_fb
SYMBOL res 1096 608 R0
SYMATTR InstName R6
SYMATTR Value R=R_fb
SYMBOL res -232 272 R0
SYMATTR InstName R7
SYMATTR Value R=R_c
SYMBOL res 632 272 R0
SYMATTR InstName R8
SYMATTR Value R=R_c
SYMBOL res 1496 272 R0
SYMATTR InstName R9
SYMATTR Value R=R_c
SYMBOL res -680 1040 R0
SYMATTR InstName R10
SYMATTR Value R=R_d
SYMBOL res 184 1040 R0
SYMATTR InstName R13
SYMATTR Value R=R_d
SYMBOL res 1048 1040 R0
SYMATTR InstName R14
SYMATTR Value R=R_d
SYMBOL res -232 1232 R0
SYMATTR InstName R15
SYMATTR Value R=R_e
SYMBOL res 632 1232 R0
SYMATTR InstName R16
SYMATTR Value R=R_e
SYMBOL res 1496 1232 R0
SYMATTR InstName R17
SYMATTR Value R=R_e
SYMBOL res -2136 208 R90
SYMATTR InstName R18
SYMATTR Value 1m