* SPICE netlist
VCC VCC 0 {VCC}
R85 N016 N013 {Rb}
Q9 N014 N013 N019 0 2N3904
D25 N013 N014 BAT54
Q10 N009 N008 N006 0 2N3906
D26 N009 N008 BAT54
R86 N008 N007 {Rb}
R158 VCC N005 1m
R160 BIT0 N010 1m
Q11 N011 N007 N016 0 2N3904
Q12 N018 N010 N007 0 2N3906
R168 N005 N011 1m
R169 N005 N006 1m
R170 N018 0 1m
R171 N019 0 1m
R172 N009 NAN2 1m
R173 NAN2 N014 1m
Q17 N017 N012 N007 0 2N3906
R174 BIT1 N012 1m
R175 N017 0 1m
V_BIT5 A_IN 0 PULSE(0 {VCC} 0 {rise} {rise} {1/freq/2-rise} {1/freq} {256*reps}) AC 5
A11 _B_IN 0 A_IN 0 0 _B_IN B_IN 0 DFLOP Vhigh={VCC}
A13 N002 0 B_IN 0 0 N002 C_IN 0 DFLOP Vhigh={VCC}
A15 N003 0 N001 0 0 N003 _AND_EN 0 DFLOP Vhigh={VCC}
A16 N004 0 _AND_EN 0 0 N004 _OR_EN 0 DFLOP Vhigh={VCC}
A14 _ADD_EN 0 C_IN 0 0 _ADD_EN N001 0 DFLOP Vhigh={VCC}
R107 COUT_1 _AND_EN 1m
R109 COUT_0 N001 1m
R19 N040 N038 {Rb}
Q13 N039 N038 N042 0 2N3904
D5 N038 N039 BAT54
Q19 N029 N022 N020 0 2N3906
D6 N029 N022 BAT54
R20 N022 N021 {Rb}
R21 VCC N015 1m
R23 EN N031 1m
Q20 N036 N021 N040 0 2N3904
Q21 N041 N031 N021 0 2N3906
R27 N015 N036 1m
R31 N015 N020 1m
R35 N041 0 1m
R36 N042 0 1m
R37 N029 _EN 1m
R38 _EN N039 1m
R41 N058 N071 {Rb}
Q23 N072 N071 N083 0 2N3904
D7 N071 N072 BAT54
Q24 N055 N050 N045 0 2N3906
D8 N055 N050 BAT54
R42 N050 N049 {Rb}
R43 VCC N043 1m
R44 D N062 1m
Q25 N044 N048 N058 0 2N3904
Q26 N079 N062 N048 0 2N3906
R45 N043 N044 1m
R46 N043 N045 1m
R47 N079 0 1m
R48 N083 0 1m
R49 N055 D0 1m
R50 D0 N072 1m
Q27 N078 N064 N048 0 2N3906
R51 EN N064 1m
R52 N078 0 1m
R54 _D0 N067 1m
R57 N043 N065 1m
Q30 N065 N067 N058 0 2N3904
Q31 N080 N058 N049 0 2N3906
R58 N080 0 1m
R59 N043 N048 1k
R61 N058 0 1k
R1 N093 N098 {Rb}
Q1 N099 N098 N103 0 2N3904
D1 N098 N099 BAT54
Q2 N092 N091 N088 0 2N3906
D2 N092 N091 BAT54
R2 N091 N090 {Rb}
R3 VCC N086 1m
R4 D0 N089 1m
Q3 N087 N089 N093 0 2N3904
R5 N086 N087 1m
R6 N086 N088 1m
R8 N103 0 1m
R9 N092 _D0 1m
R10 _D0 N099 1m
Q6 N101 N096 N095 0 2N3906
R13 _D N096 1m
Q7 N100 N097 N095 0 2N3906
R14 EN N097 1m
R15 N101 0 1m
R16 N100 0 1m
R17 N086 N094 1m
Q8 N094 N095 N093 0 2N3904
Q14 N102 N093 N090 0 2N3906
R18 N102 0 1m
R24 N086 N095 1k
R25 N093 0 1k
R11 B_IN D 1m
R12 _B_IN _D 1m
R26 A_IN EN 1m
A1 0 N023 N024 N027 0 N028 0 0 AND
A2 0 N028 N034 N035 0 N027 0 0 AND
A3 0 0 N026 N030 0 0 N023 0 OR
A4 0 N032 N033 0 0 0 N024 0 OR
A5 0 N025 N030 0 0 0 N034 0 OR
A6 0 N037 N033 0 0 0 N035 0 OR
A7 N037 0 0 0 0 N032 0 0 BUF
M1 N109 B1 0 0 2N7002
M2 N107 N108 0 0 2N7002
M3 N110 N106 B1 B1 2N7002
M4 N110 N106 D D 2N7002
M5 N106 EN 0 0 2N7002
R7 N104 N106 {R}
R22 N105 N107 R=R/2
R39 N105 N109 R=R/2
VB1 N104 0 {VB}
VCC1 N105 0 {VCC}
R40 B1 N107 R=R/2
R56 N109 N108 R=R/2
Q4 N063 N066 N077 0 2N3904
D3 N066 N063 BAT54
R28 N077 0 1m
R29 N043 N063 1k
R30 N066 A_IN 1k
Q5 N060 N059 N070 0 2N3904
D4 N059 N060 BAT54
R32 N070 0 1m
R33 N043 N060 1k
R34 N059 N063 1m
R53 A_IN N073 {Rb}
Q15 N074 N073 N084 0 2N3904
D9 N073 N074 BAT54
Q16 N056 N052 N046 0 2N3906
D10 N056 N052 BAT54
R55 N052 N051 {Rb}
R60 N043 N046 1m
R62 N084 0 1m
R63 N056 N068 1m
R64 N068 N074 1m
Q18 N081 A_IN N051 0 2N3906
R65 N081 0 1m
R66 N061 N075 {Rb}
Q22 N076 N075 N085 0 2N3904
D11 N075 N076 BAT54
Q28 N057 N054 N047 0 2N3906
D12 N057 N054 BAT54
R67 N054 N053 {Rb}
R68 N043 N047 1m
R69 N085 0 1m
R70 N057 N069 1m
R71 N069 N076 1m
Q29 N082 N061 N053 0 2N3906
R72 N082 0 1m
R73 N061 N068 1k
.tran {2*reps/freq}
.param VCC=2
.param freq=1k
.param rise=1n
.param reps=1
.param Rb=200
.param R=500
.param VB=7

* LTspice schematic (.asc)
Version 4.1
SHEET 1 8896 8512
WIRE -1920 -4240 -2032 -4240
WIRE -1728 -4240 -1840 -4240
WIRE -1664 -4240 -1728 -4240
WIRE -2352 -4208 -2432 -4208
WIRE -2192 -4208 -2272 -4208
WIRE -2096 -4208 -2192 -4208
WIRE -3280 -4080 -3536 -4080
WIRE -2880 -4080 -3136 -4080
WIRE -2560 -4080 -2736 -4080
WIRE -2480 -4080 -2560 -4080
WIRE -2080 -4080 -2336 -4080
WIRE -1680 -4080 -1936 -4080
WIRE -3408 -4048 -3552 -4048
WIRE -3008 -4048 -3152 -4048
WIRE -2608 -4048 -2752 -4048
WIRE -2208 -4048 -2352 -4048
WIRE -1808 -4048 -1952 -4048
WIRE -3408 -4016 -3408 -4048
WIRE -3008 -4016 -3008 -4048
WIRE -2608 -4016 -2608 -4048
WIRE -2208 -4016 -2208 -4048
WIRE -1808 -4016 -1808 -4048
WIRE -3280 -4000 -3280 -4080
WIRE -3232 -4000 -3280 -4000
WIRE -3200 -4000 -3232 -4000
WIRE -3536 -3968 -3536 -4080
WIRE -3488 -3968 -3536 -3968
WIRE -3232 -3968 -3328 -3968
WIRE -3136 -3968 -3136 -4080
WIRE -3088 -3968 -3136 -3968
WIRE -2832 -3968 -2928 -3968
WIRE -2736 -3968 -2736 -4080
WIRE -2688 -3968 -2736 -3968
WIRE -2432 -3968 -2432 -4208
WIRE -2432 -3968 -2528 -3968
WIRE -2336 -3968 -2336 -4080
WIRE -2288 -3968 -2336 -3968
WIRE -2032 -3968 -2032 -4240
WIRE -2032 -3968 -2128 -3968
WIRE -1936 -3968 -1936 -4080
WIRE -1888 -3968 -1936 -3968
WIRE -1632 -3968 -1728 -3968
WIRE -3584 -3920 -3680 -3920
WIRE -3488 -3920 -3584 -3920
WIRE -3280 -3920 -3280 -4000
WIRE -3280 -3920 -3312 -3920
WIRE -3232 -3920 -3232 -3968
WIRE -3184 -3920 -3232 -3920
WIRE -3088 -3920 -3184 -3920
WIRE -2880 -3920 -2880 -4080
WIRE -2880 -3920 -2912 -3920
WIRE -2832 -3920 -2832 -3968
WIRE -2688 -3920 -2832 -3920
WIRE -2480 -3920 -2480 -4080
WIRE -2480 -3920 -2512 -3920
WIRE -2432 -3920 -2432 -3968
WIRE -2288 -3920 -2432 -3920
WIRE -2080 -3920 -2080 -4080
WIRE -2080 -3920 -2112 -3920
WIRE -2032 -3920 -2032 -3968
WIRE -1984 -3920 -2032 -3920
WIRE -1888 -3920 -1984 -3920
WIRE -1680 -3920 -1680 -4080
WIRE -1680 -3920 -1712 -3920
WIRE -1632 -3920 -1632 -3968
WIRE -1568 -3920 -1632 -3920
WIRE -1488 -3920 -1568 -3920
WIRE -4112 -3904 -4112 -3936
WIRE -3680 -3888 -3680 -3920
WIRE -3552 -3840 -3552 -4048
WIRE -3488 -3840 -3488 -3872
WIRE -3488 -3840 -3552 -3840
WIRE -3408 -3840 -3408 -3872
WIRE -3408 -3840 -3488 -3840
WIRE -3152 -3840 -3152 -4048
WIRE -3088 -3840 -3088 -3872
WIRE -3088 -3840 -3152 -3840
WIRE -3008 -3840 -3008 -3872
WIRE -3008 -3840 -3088 -3840
WIRE -2752 -3840 -2752 -4048
WIRE -2688 -3840 -2688 -3872
WIRE -2688 -3840 -2752 -3840
WIRE -2608 -3840 -2608 -3872
WIRE -2608 -3840 -2688 -3840
WIRE -2352 -3840 -2352 -4048
WIRE -2288 -3840 -2288 -3872
WIRE -2288 -3840 -2352 -3840
WIRE -2208 -3840 -2208 -3872
WIRE -2208 -3840 -2288 -3840
WIRE -1952 -3840 -1952 -4048
WIRE -1888 -3840 -1888 -3872
WIRE -1888 -3840 -1952 -3840
WIRE -1808 -3840 -1808 -3872
WIRE -1808 -3840 -1888 -3840
WIRE -3488 -3824 -3488 -3840
WIRE -3088 -3824 -3088 -3840
WIRE -2688 -3824 -2688 -3840
WIRE -2288 -3824 -2288 -3840
WIRE -1888 -3824 -1888 -3840
WIRE -4112 -3808 -4112 -3824
WIRE -4304 -3264 -4368 -3264
WIRE -3824 -3264 -4224 -3264
WIRE -3312 -3264 -3824 -3264
WIRE -3136 -3264 -3312 -3264
WIRE -3312 -3248 -3312 -3264
WIRE -3824 -3232 -3824 -3264
WIRE -3312 -3136 -3312 -3168
WIRE -4032 -3088 -4144 -3088
WIRE -3936 -3088 -4032 -3088
WIRE -3616 -3088 -3936 -3088
WIRE -3472 -3088 -3536 -3088
WIRE -3376 -3088 -3472 -3088
WIRE -4032 -3008 -4032 -3088
WIRE -3472 -2992 -3472 -3088
WIRE -3424 -2992 -3472 -2992
WIRE -3312 -2992 -3312 -3040
WIRE -3312 -2992 -3360 -2992
WIRE -1136 -2976 -1184 -2976
WIRE -1040 -2976 -1136 -2976
WIRE -880 -2976 -960 -2976
WIRE -816 -2976 -880 -2976
WIRE -4416 -2960 -4448 -2960
WIRE -4384 -2960 -4416 -2960
WIRE -4096 -2960 -4304 -2960
WIRE -3312 -2944 -3312 -2992
WIRE -1136 -2896 -1184 -2896
WIRE -1040 -2896 -1136 -2896
WIRE -880 -2896 -960 -2896
WIRE -816 -2896 -880 -2896
WIRE -1136 -2816 -1184 -2816
WIRE -1040 -2816 -1136 -2816
WIRE -880 -2816 -960 -2816
WIRE -816 -2816 -880 -2816
WIRE -3312 -2720 -3312 -2864
WIRE -3216 -2720 -3312 -2720
WIRE -3824 -2656 -3824 -3152
WIRE -3936 -2608 -3936 -3088
WIRE -3888 -2608 -3936 -2608
WIRE -4144 -2576 -4144 -3088
WIRE -3312 -2576 -3312 -2720
WIRE -4416 -2528 -4448 -2528
WIRE -4384 -2528 -4416 -2528
WIRE -4208 -2528 -4304 -2528
WIRE -3408 -2464 -3472 -2464
WIRE -3312 -2464 -3312 -2496
WIRE -3312 -2464 -3344 -2464
WIRE -3312 -2416 -3312 -2464
WIRE -976 -2416 -1040 -2416
WIRE -496 -2416 -896 -2416
WIRE 16 -2416 -496 -2416
WIRE 192 -2416 16 -2416
WIRE 16 -2400 16 -2416
WIRE -496 -2384 -496 -2416
WIRE -3824 -2368 -3824 -2560
WIRE -3632 -2368 -3824 -2368
WIRE -3472 -2368 -3472 -2464
WIRE -3472 -2368 -3552 -2368
WIRE -3376 -2368 -3472 -2368
WIRE -4144 -2352 -4144 -2480
WIRE -4032 -2352 -4032 -2912
WIRE -3312 -2288 -3312 -2320
WIRE 16 -2288 16 -2320
WIRE -704 -2240 -816 -2240
WIRE -608 -2240 -704 -2240
WIRE -288 -2240 -608 -2240
WIRE -144 -2240 -208 -2240
WIRE -48 -2240 -144 -2240
WIRE 1904 -2192 1808 -2192
WIRE 1808 -2176 1808 -2192
WIRE 1808 -2176 1776 -2176
WIRE 1904 -2176 1840 -2176
WIRE -4144 -2160 -4144 -2272
WIRE -4144 -2160 -4432 -2160
WIRE -4032 -2160 -4032 -2272
WIRE -4032 -2160 -4144 -2160
WIRE -3312 -2160 -3312 -2208
WIRE -3312 -2160 -4032 -2160
WIRE -3136 -2160 -3312 -2160
WIRE -704 -2160 -704 -2240
WIRE 1552 -2160 1488 -2160
WIRE 1712 -2160 1632 -2160
WIRE 1904 -2160 1856 -2160
WIRE 2032 -2160 1968 -2160
WIRE 2080 -2160 2032 -2160
WIRE -144 -2144 -144 -2240
WIRE -96 -2144 -144 -2144
WIRE 16 -2144 16 -2192
WIRE 16 -2144 -32 -2144
WIRE 1712 -2144 1680 -2144
WIRE -4432 -2112 -4432 -2160
WIRE -1056 -2112 -1248 -2112
WIRE -768 -2112 -976 -2112
WIRE 1856 -2112 1856 -2160
WIRE 2032 -2112 2032 -2160
WIRE 16 -2096 16 -2144
WIRE 1712 -2064 1664 -2064
WIRE 1840 -2064 1840 -2176
WIRE 1840 -2064 1776 -2064
WIRE 1712 -2048 1696 -2048
WIRE 1856 -2032 2032 -2112
WIRE 2032 -2032 1856 -2112
WIRE 1856 -1968 1856 -2032
WIRE 1904 -1968 1856 -1968
WIRE 1904 -1952 1808 -1952
WIRE 1552 -1936 1632 -2160
WIRE 1552 -1936 1488 -1936
WIRE 1632 -1936 1552 -2160
WIRE 1648 -1936 1632 -1936
WIRE 1904 -1936 1824 -1936
WIRE 2032 -1936 2032 -2032
WIRE 2032 -1936 1968 -1936
WIRE 2080 -1936 2032 -1936
WIRE 1648 -1904 1648 -1936
WIRE 1712 -1904 1648 -1904
WIRE 1808 -1904 1808 -1952
WIRE 1808 -1904 1776 -1904
WIRE 1680 -1888 1680 -2144
WIRE 1680 -1888 1488 -1888
WIRE 1712 -1888 1680 -1888
WIRE 16 -1872 16 -2016
WIRE 416 -1872 16 -1872
WIRE 1664 -1872 1664 -2064
WIRE -496 -1808 -496 -2304
WIRE 1664 -1776 1664 -1808
WIRE 1664 -1776 1488 -1776
WIRE 1712 -1776 1664 -1776
WIRE 1824 -1776 1824 -1936
WIRE 1824 -1776 1776 -1776
WIRE -608 -1760 -608 -2240
WIRE -560 -1760 -608 -1760
WIRE 1696 -1760 1696 -2048
WIRE 1696 -1760 1488 -1760
WIRE 1712 -1760 1696 -1760
WIRE 16 -1728 16 -1872
WIRE -80 -1616 -144 -1616
WIRE 16 -1616 16 -1648
WIRE 16 -1616 -16 -1616
WIRE 16 -1568 16 -1616
WIRE -496 -1520 -496 -1712
WIRE -304 -1520 -496 -1520
WIRE -144 -1520 -144 -1616
WIRE -144 -1520 -224 -1520
WIRE -48 -1520 -144 -1520
WIRE -704 -1504 -704 -2064
WIRE 16 -1440 16 -1472
WIRE -704 -1312 -704 -1424
WIRE -704 -1312 -1104 -1312
WIRE 16 -1312 16 -1360
WIRE 16 -1312 -704 -1312
WIRE 192 -1312 16 -1312
WIRE -1104 -1280 -1104 -1312
WIRE -1408 -1248 -1440 -1248
WIRE 416 -1248 416 -1872
WIRE 416 -1248 -1408 -1248
WIRE 768 -1248 416 -1248
WIRE -1408 -1168 -1440 -1168
WIRE -1248 -1168 -1248 -2112
WIRE -1248 -1168 -1408 -1168
WIRE -1008 -1088 -1072 -1088
WIRE -704 -1088 -928 -1088
WIRE -448 -1088 -704 -1088
WIRE -272 -1088 -448 -1088
WIRE 352 -1088 -272 -1088
WIRE 1632 -1088 352 -1088
WIRE 2352 -1088 1632 -1088
WIRE 3392 -1088 2352 -1088
WIRE 4128 -1088 3392 -1088
WIRE 352 -1072 352 -1088
WIRE 3392 -1072 3392 -1088
WIRE 4128 -1072 4128 -1088
WIRE -448 -1056 -448 -1088
WIRE -272 -1056 -272 -1088
WIRE 2352 -1056 2352 -1088
WIRE -704 -1024 -704 -1088
WIRE -448 -960 -448 -976
WIRE 352 -960 352 -992
WIRE 3392 -960 3392 -992
WIRE 4128 -960 4128 -992
WIRE -704 -912 -704 -944
WIRE -704 -912 -768 -912
WIRE -656 -912 -704 -912
WIRE -512 -912 -656 -912
WIRE 48 -912 -48 -912
WIRE 192 -912 128 -912
WIRE 288 -912 192 -912
WIRE 3088 -912 2992 -912
WIRE 3232 -912 3168 -912
WIRE 3328 -912 3232 -912
WIRE 3824 -912 3728 -912
WIRE 3968 -912 3904 -912
WIRE 4064 -912 3968 -912
WIRE 1632 -864 1632 -1088
WIRE -48 -848 -48 -912
WIRE 2992 -848 2992 -912
WIRE 3728 -848 3728 -912
WIRE -656 -832 -656 -912
WIRE 192 -816 192 -912
WIRE 240 -816 192 -816
WIRE 352 -816 352 -864
WIRE 352 -816 304 -816
WIRE 3232 -816 3232 -912
WIRE 3280 -816 3232 -816
WIRE 3392 -816 3392 -864
WIRE 3392 -816 3344 -816
WIRE 3968 -816 3968 -912
WIRE 4016 -816 3968 -816
WIRE 4128 -816 4128 -864
WIRE 4128 -816 4080 -816
WIRE -112 -800 -160 -800
WIRE 2256 -800 2192 -800
WIRE 2352 -800 2352 -976
WIRE 2352 -800 2320 -800
WIRE 2928 -800 2880 -800
WIRE 3664 -800 3616 -800
WIRE -1168 -784 -1312 -784
WIRE -720 -784 -1088 -784
WIRE 352 -768 352 -816
WIRE 3392 -768 3392 -816
WIRE 4128 -768 4128 -816
WIRE 2352 -752 2352 -800
WIRE -768 -720 -768 -912
WIRE 1632 -704 1632 -784
WIRE 1888 -704 1632 -704
WIRE 2192 -704 2192 -800
WIRE 2192 -704 1968 -704
WIRE 2288 -704 2192 -704
WIRE -1248 -672 -1248 -1168
WIRE -1168 -672 -1248 -672
WIRE -832 -672 -1088 -672
WIRE -272 -640 -272 -976
WIRE 1536 -608 1472 -608
WIRE 1632 -608 1632 -704
WIRE 1632 -608 1600 -608
WIRE -1184 -592 -1216 -592
WIRE -336 -592 -1104 -592
WIRE 1632 -560 1632 -608
WIRE -1520 -544 -1568 -544
WIRE -1312 -544 -1312 -784
WIRE 352 -544 352 -688
WIRE 432 -544 352 -544
WIRE 448 -544 432 -544
WIRE 496 -544 448 -544
WIRE 2768 -544 2704 -544
WIRE 2880 -544 2880 -800
WIRE 2880 -544 2768 -544
WIRE 3392 -544 3392 -688
WIRE 3472 -544 3392 -544
WIRE 3616 -544 3616 -800
WIRE 3616 -544 3552 -544
WIRE 4128 -544 4128 -688
WIRE 4272 -544 4128 -544
WIRE 1088 -512 912 -512
WIRE 1168 -512 1088 -512
WIRE 1472 -512 1472 -608
WIRE 1472 -512 1248 -512
WIRE 1568 -512 1472 -512
WIRE 2352 -448 2352 -656
WIRE 352 -400 352 -544
WIRE 3392 -400 3392 -544
WIRE 4128 -400 4128 -544
WIRE 256 -288 192 -288
WIRE 352 -288 352 -320
WIRE 352 -288 320 -288
WIRE 3296 -288 3232 -288
WIRE 3392 -288 3392 -320
WIRE 3392 -288 3360 -288
WIRE 4032 -288 3968 -288
WIRE 4128 -288 4128 -320
WIRE 4128 -288 4096 -288
WIRE 1632 -256 1632 -464
WIRE 352 -240 352 -288
WIRE 3392 -240 3392 -288
WIRE 4128 -240 4128 -288
WIRE -448 -192 -448 -864
WIRE -272 -192 -272 -544
WIRE -272 -192 -448 -192
WIRE -160 -192 -160 -800
WIRE -160 -192 -272 -192
WIRE 32 -192 -160 -192
WIRE 192 -192 192 -288
WIRE 192 -192 112 -192
WIRE 288 -192 192 -192
WIRE 2880 -192 2880 -544
WIRE 3072 -192 2880 -192
WIRE 3232 -192 3232 -288
WIRE 3232 -192 3152 -192
WIRE 3328 -192 3232 -192
WIRE 3616 -192 3616 -544
WIRE 3808 -192 3616 -192
WIRE 3968 -192 3968 -288
WIRE 3968 -192 3888 -192
WIRE 4064 -192 3968 -192
WIRE -768 -176 -768 -624
WIRE -656 -176 -656 -736
WIRE -48 -144 -48 -752
WIRE 2992 -144 2992 -752
WIRE 3728 -144 3728 -752
WIRE -448 -112 -448 -192
WIRE 352 -112 352 -144
WIRE 3392 -112 3392 -144
WIRE 4128 -112 4128 -144
WIRE -768 16 -768 -96
WIRE -768 16 -1056 16
WIRE -656 16 -656 -96
WIRE -656 16 -768 16
WIRE -448 16 -448 -32
WIRE -448 16 -656 16
WIRE -48 16 -48 -64
WIRE -48 16 -448 16
WIRE 352 16 352 -32
WIRE 352 16 -48 16
WIRE 1632 16 1632 -176
WIRE 1632 16 352 16
WIRE 2352 16 2352 -368
WIRE 2352 16 1632 16
WIRE 2992 16 2992 -64
WIRE 2992 16 2352 16
WIRE 3392 16 3392 -32
WIRE 3392 16 2992 16
WIRE 3728 16 3728 -64
WIRE 3728 16 3392 16
WIRE 4128 16 4128 -32
WIRE 4128 16 3728 16
WIRE -1056 64 -1056 16
WIRE -1216 96 -1216 -592
WIRE 432 96 432 -544
WIRE -1216 192 432 96
WIRE 432 192 -1216 96
WIRE -1008 288 -1072 288
WIRE -896 288 -928 288
WIRE -448 288 -896 288
WIRE -272 288 -448 288
WIRE 352 288 -272 288
WIRE 1120 288 352 288
WIRE 352 304 352 288
WIRE -448 320 -448 288
WIRE -272 320 -272 288
WIRE -896 352 -896 288
WIRE -448 416 -448 400
WIRE 352 416 352 384
WIRE -1216 464 -1216 192
WIRE -1168 464 -1216 464
WIRE -512 464 -1088 464
WIRE 48 464 -48 464
WIRE 192 464 128 464
WIRE 288 464 192 464
WIRE -48 528 -48 464
WIRE 192 560 192 464
WIRE 240 560 192 560
WIRE 352 560 352 512
WIRE 352 560 304 560
WIRE -112 576 -160 576
WIRE 352 608 352 560
WIRE -272 736 -272 400
WIRE -896 784 -896 432
WIRE -896 784 -944 784
WIRE -848 784 -896 784
WIRE -336 784 -848 784
WIRE -848 816 -848 784
WIRE -1536 864 -1568 864
WIRE -1520 864 -1312 -544
WIRE -1520 864 -1536 864
WIRE -1312 864 -1520 -544
WIRE -1184 864 -1312 864
WIRE -912 864 -1104 864
WIRE 352 864 352 688
WIRE 432 864 432 192
WIRE 432 864 352 864
WIRE 448 864 432 864
WIRE 496 864 448 864
WIRE 352 976 352 864
WIRE -944 992 -944 784
WIRE -1248 1040 -1248 -672
WIRE -1184 1040 -1248 1040
WIRE -1008 1040 -1104 1040
WIRE 256 1088 192 1088
WIRE 352 1088 352 1056
WIRE 352 1088 320 1088
WIRE 352 1136 352 1088
WIRE -448 1184 -448 512
WIRE -272 1184 -272 832
WIRE -272 1184 -448 1184
WIRE -160 1184 -160 576
WIRE -160 1184 -272 1184
WIRE 32 1184 -160 1184
WIRE 192 1184 192 1088
WIRE 192 1184 112 1184
WIRE 288 1184 192 1184
WIRE -944 1200 -944 1088
WIRE -848 1200 -848 912
WIRE -48 1232 -48 624
WIRE -448 1264 -448 1184
WIRE 352 1264 352 1232
WIRE -944 1392 -944 1280
WIRE -944 1392 -1056 1392
WIRE -848 1392 -848 1280
WIRE -848 1392 -944 1392
WIRE -448 1392 -448 1344
WIRE -448 1392 -848 1392
WIRE -48 1392 -48 1312
WIRE -48 1392 -448 1392
WIRE 352 1392 352 1344
WIRE 352 1392 -48 1392
WIRE 1072 1392 352 1392
WIRE -1056 1440 -1056 1392
WIRE 4448 3200 2880 3200
WIRE 4448 3248 4448 3200
WIRE 3888 3392 3536 3392
WIRE 4144 3392 3888 3392
WIRE 3536 3456 3536 3392
WIRE 3888 3456 3888 3392
WIRE 2880 3472 2880 3200
WIRE 2880 3600 2880 3552
WIRE 3024 3600 2880 3600
WIRE 3264 3600 3024 3600
WIRE 3536 3632 3536 3536
WIRE 3584 3632 3536 3632
WIRE 3712 3632 3664 3632
WIRE 3024 3664 3024 3600
WIRE 3264 3664 3264 3600
WIRE 3792 3680 3664 3680
WIRE 3888 3680 3888 3536
WIRE 3888 3680 3872 3680
WIRE 2944 3712 2320 3712
WIRE 3008 3712 2944 3712
WIRE 3184 3712 3104 3712
WIRE 3456 3712 3280 3712
WIRE 3712 3712 3712 3632
WIRE 3712 3712 3456 3712
WIRE 4144 3728 4144 3392
WIRE 2880 3888 2880 3600
WIRE 3536 3888 3536 3632
WIRE 3888 3888 3888 3680
WIRE 2800 3968 2784 3968
WIRE 2832 3968 2800 3968
WIRE 3664 3968 3664 3680
WIRE 3664 3968 3584 3968
WIRE 3712 3968 3712 3712
WIRE 3840 3968 3712 3968
WIRE 2880 4208 2880 3984
WIRE 2880 4208 2608 4208
WIRE 3536 4208 3536 3984
WIRE 3536 4208 2880 4208
WIRE 3616 4208 3536 4208
WIRE 3888 4208 3888 3984
WIRE 3888 4208 3616 4208
WIRE 4144 4208 4144 3808
WIRE 4144 4208 3888 4208
WIRE 4448 4208 4448 3328
WIRE 4448 4208 4144 4208
WIRE 3616 4256 3616 4208
FLAG -4112 -3808 0
FLAG -4112 -3936 VCC
FLAG -4432 -2112 0
FLAG -3216 -2720 NAN2
FLAG -4416 -2960 BIT0
FLAG -4368 -3264 VCC
FLAG -4416 -2528 BIT1
FLAG -3488 -3824 0
FLAG -3680 -3808 0
FLAG -3584 -3920 A_IN
FLAG -3184 -3920 B_IN
FLAG -3088 -3824 0
FLAG -2832 -3920 C_IN
FLAG -2688 -3824 0
FLAG -2560 -4080 _ADD_EN
FLAG -2288 -3824 0
FLAG -1984 -3920 _AND_EN
FLAG -1888 -3824 0
FLAG -1568 -3920 _OR_EN
FLAG -2192 -4208 COUT_0
FLAG -1728 -4240 COUT_1
FLAG -1104 -1280 0
FLAG -1408 -1248 _EN
FLAG -1408 -1168 EN
FLAG -1040 -2416 VCC
FLAG -1056 64 0
FLAG 448 -544 D0
FLAG -1072 -1088 VCC
FLAG -1056 1440 0
FLAG 448 864 _D0
FLAG -1072 288 VCC
FLAG -1520 -544 _D
FLAG -1536 864 D
FLAG -3232 -4000 _B_IN
FLAG -880 -2976 EN
FLAG -880 -2896 _D
FLAG -880 -2816 D
FLAG -1136 -2976 A_IN
FLAG -1136 -2896 _B_IN
FLAG -1136 -2816 B_IN
FLAG 3616 4256 0
FLAG 3456 3712 B1
FLAG 2944 3712 D
FLAG 2800 3968 EN
FLAG 1088 -512 A_IN
FLAG 2768 -544 A_IN
SYMBOL voltage -4112 -3920 R0
SYMATTR InstName VCC
SYMATTR Value {VCC}
SYMBOL res -3648 -2352 R270
SYMATTR InstName R85
SYMATTR Value {Rb}
SYMBOL npn -3376 -2416 R0
SYMATTR InstName Q9
SYMATTR Value 2N3904
SYMBOL schottky -3408 -2448 R270
SYMATTR InstName D25
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL pnp -3376 -3040 M180
SYMATTR InstName Q10
SYMATTR Value 2N3906
SYMBOL schottky -3360 -3008 R90
SYMATTR InstName D26
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res -3520 -3104 R90
SYMATTR InstName R86
SYMATTR Value {Rb}
SYMBOL res -4320 -3248 R270
SYMATTR InstName R158
SYMATTR Value 1m
SYMBOL res -4400 -2944 R270
SYMATTR InstName R160
SYMATTR Value 1m
SYMBOL npn -3888 -2656 R0
SYMATTR InstName Q11
SYMATTR Value 2N3904
SYMBOL pnp -4096 -2912 M180
SYMATTR InstName Q12
SYMATTR Value 2N3906
SYMBOL res -3840 -3248 R0
SYMATTR InstName R168
SYMATTR Value 1m
SYMBOL res -3328 -3264 R0
SYMATTR InstName R169
SYMATTR Value 1m
SYMBOL res -4048 -2368 R0
SYMATTR InstName R170
SYMATTR Value 1m
SYMBOL res -3328 -2304 R0
SYMATTR InstName R171
SYMATTR Value 1m
SYMBOL res -3328 -2960 R0
SYMATTR InstName R172
SYMATTR Value 1m
SYMBOL res -3328 -2592 R0
SYMATTR InstName R173
SYMATTR Value 1m
SYMBOL pnp -4208 -2480 M180
SYMATTR InstName Q17
SYMATTR Value 2N3906
SYMBOL res -4400 -2512 R270
SYMATTR InstName R174
SYMATTR Value 1m
SYMBOL res -4160 -2368 R0
SYMATTR InstName R175
SYMATTR Value 1m
SYMBOL voltage -3680 -3904 R0
SYMATTR Value2 AC 5
SYMATTR InstName V_BIT5
SYMATTR Value PULSE(0 {VCC} 0 {rise} {rise} {1/freq/2-rise} {1/freq} {256*reps})
SYMBOL Digital\\dflop -3408 -4016 R0
SYMATTR SpiceLine Vhigh={VCC}
SYMATTR InstName A11
SYMBOL Digital\\dflop -3008 -4016 R0
SYMATTR SpiceLine Vhigh={VCC}
SYMATTR InstName A13
SYMBOL Digital\\dflop -2208 -4016 R0
SYMATTR SpiceLine Vhigh={VCC}
SYMATTR InstName A15
SYMBOL Digital\\dflop -1808 -4016 R0
SYMATTR SpiceLine Vhigh={VCC}
SYMATTR InstName A16
SYMBOL Digital\\dflop -2608 -4016 R0
SYMATTR SpiceLine Vhigh={VCC}
SYMATTR InstName A14
SYMBOL res -1824 -4256 R90
SYMATTR InstName R107
SYMATTR Value 1m
SYMBOL res -2256 -4224 R90
SYMATTR InstName R109
SYMATTR Value 1m
SYMBOL res -320 -1504 R270
SYMATTR InstName R19
SYMATTR Value {Rb}
SYMBOL npn -48 -1568 R0
SYMATTR InstName Q13
SYMATTR Value 2N3904
SYMBOL schottky -80 -1600 R270
SYMATTR InstName D5
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL pnp -48 -2192 M180
SYMATTR InstName Q19
SYMATTR Value 2N3906
SYMBOL schottky -32 -2160 R90
SYMATTR InstName D6
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res -192 -2256 R90
SYMATTR InstName R20
SYMATTR Value {Rb}
SYMBOL res -992 -2400 R270
SYMATTR InstName R21
SYMATTR Value 1m
SYMBOL res -1072 -2096 R270
SYMATTR InstName R23
SYMATTR Value 1m
SYMBOL npn -560 -1808 R0
SYMATTR InstName Q20
SYMATTR Value 2N3904
SYMBOL pnp -768 -2064 M180
SYMATTR InstName Q21
SYMATTR Value 2N3906
SYMBOL res -512 -2400 R0
SYMATTR InstName R27
SYMATTR Value 1m
SYMBOL res 0 -2416 R0
SYMATTR InstName R31
SYMATTR Value 1m
SYMBOL res -720 -1520 R0
SYMATTR InstName R35
SYMATTR Value 1m
SYMBOL res 0 -1456 R0
SYMATTR InstName R36
SYMATTR Value 1m
SYMBOL res 0 -2112 R0
SYMATTR InstName R37
SYMATTR Value 1m
SYMBOL res 0 -1744 R0
SYMATTR InstName R38
SYMATTR Value 1m
SYMBOL res 16 -176 R270
SYMATTR InstName R41
SYMATTR Value {Rb}
SYMBOL npn 288 -240 R0
SYMATTR InstName Q23
SYMATTR Value 2N3904
SYMBOL schottky 256 -272 R270
SYMATTR InstName D7
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL pnp 288 -864 M180
SYMATTR InstName Q24
SYMATTR Value 2N3906
SYMBOL schottky 304 -832 R90
SYMATTR InstName D8
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res 144 -928 R90
SYMATTR InstName R42
SYMATTR Value {Rb}
SYMBOL res -1024 -1072 R270
SYMATTR InstName R43
SYMATTR Value 1m
SYMBOL res -1184 -768 R270
SYMATTR InstName R44
SYMATTR Value 1m
SYMBOL npn -512 -960 R0
SYMATTR InstName Q25
SYMATTR Value 2N3904
SYMBOL pnp -720 -736 M180
SYMATTR InstName Q26
SYMATTR Value 2N3906
SYMBOL res -464 -1072 R0
SYMATTR InstName R45
SYMATTR Value 1m
SYMBOL res 336 -1088 R0
SYMATTR InstName R46
SYMATTR Value 1m
SYMBOL res -672 -192 R0
SYMATTR InstName R47
SYMATTR Value 1m
SYMBOL res 336 -128 R0
SYMATTR InstName R48
SYMATTR Value 1m
SYMBOL res 336 -784 R0
SYMATTR InstName R49
SYMATTR Value 1m
SYMBOL res 336 -416 R0
SYMATTR InstName R50
SYMATTR Value 1m
SYMBOL pnp -832 -624 M180
SYMATTR InstName Q27
SYMATTR Value 2N3906
SYMBOL res -1184 -656 R270
SYMATTR InstName R51
SYMATTR Value 1m
SYMBOL res -784 -192 R0
SYMATTR InstName R52
SYMATTR Value 1m
SYMBOL res -1200 -576 R270
SYMATTR InstName R54
SYMATTR Value 1m
SYMBOL res -288 -1072 R0
SYMATTR InstName R57
SYMATTR Value 1m
SYMBOL npn -336 -640 R0
SYMATTR InstName Q30
SYMATTR Value 2N3904
SYMBOL pnp -112 -752 M180
SYMATTR InstName Q31
SYMATTR Value 2N3906
SYMBOL res -64 -160 R0
SYMATTR InstName R58
SYMATTR Value 1m
SYMBOL res -720 -1040 R0
SYMATTR InstName R59
SYMATTR Value 1k
SYMBOL res -464 -128 R0
SYMATTR InstName R61
SYMATTR Value 1k
SYMBOL res 16 1200 R270
SYMATTR InstName R1
SYMATTR Value {Rb}
SYMBOL npn 288 1136 R0
SYMATTR InstName Q1
SYMATTR Value 2N3904
SYMBOL schottky 256 1104 R270
SYMATTR InstName D1
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL pnp 288 512 M180
SYMATTR InstName Q2
SYMATTR Value 2N3906
SYMBOL schottky 304 544 R90
SYMATTR InstName D2
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res 144 448 R90
SYMATTR InstName R2
SYMATTR Value {Rb}
SYMBOL res -1024 304 R270
SYMATTR InstName R3
SYMATTR Value 1m
SYMBOL res -1184 480 R270
SYMATTR InstName R4
SYMATTR Value 1m
SYMBOL npn -512 416 R0
SYMATTR InstName Q3
SYMATTR Value 2N3904
SYMBOL res -464 304 R0
SYMATTR InstName R5
SYMATTR Value 1m
SYMBOL res 336 288 R0
SYMATTR InstName R6
SYMATTR Value 1m
SYMBOL res 336 1248 R0
SYMATTR InstName R8
SYMATTR Value 1m
SYMBOL res 336 592 R0
SYMATTR InstName R9
SYMATTR Value 1m
SYMBOL res 336 960 R0
SYMATTR InstName R10
SYMATTR Value 1m
SYMBOL pnp -912 912 M180
SYMATTR InstName Q6
SYMATTR Value 2N3906
SYMBOL res -1200 880 R270
SYMATTR InstName R13
SYMATTR Value 1m
SYMBOL pnp -1008 1088 M180
SYMATTR InstName Q7
SYMATTR Value 2N3906
SYMBOL res -1200 1056 R270
SYMATTR InstName R14
SYMATTR Value 1m
SYMBOL res -864 1184 R0
SYMATTR InstName R15
SYMATTR Value 1m
SYMBOL res -960 1184 R0
SYMATTR InstName R16
SYMATTR Value 1m
SYMBOL res -288 304 R0
SYMATTR InstName R17
SYMATTR Value 1m
SYMBOL npn -336 736 R0
SYMATTR InstName Q8
SYMATTR Value 2N3904
SYMBOL pnp -112 624 M180
SYMATTR InstName Q14
SYMATTR Value 2N3906
SYMBOL res -64 1216 R0
SYMATTR InstName R18
SYMATTR Value 1m
SYMBOL res -912 336 R0
SYMATTR InstName R24
SYMATTR Value 1k
SYMBOL res -464 1248 R0
SYMATTR InstName R25
SYMATTR Value 1k
SYMBOL res -1056 -2800 R270
SYMATTR InstName R11
SYMATTR Value 1m
SYMBOL res -1056 -2880 R270
SYMATTR InstName R12
SYMATTR Value 1m
SYMBOL res -1056 -2960 R270
SYMATTR InstName R26
SYMATTR Value 1m
SYMBOL Digital\\and 1936 -2240 R0
SYMATTR InstName A1
SYMBOL Digital\\and 1936 -2016 R0
SYMATTR InstName A2
SYMBOL Digital\\or 1744 -2224 R0
SYMATTR InstName A3
SYMBOL Digital\\or 1744 -2112 R0
SYMATTR InstName A4
SYMBOL Digital\\or 1744 -1952 R0
SYMATTR InstName A5
SYMBOL Digital\\or 1744 -1824 R0
SYMATTR InstName A6
SYMBOL Digital\\inv 1600 -1808 R270
SYMATTR InstName A7
SYMBOL nmos 3840 3888 R0
SYMATTR InstName M1
SYMATTR Value 2N7002
SYMBOL nmos 3584 3888 M0
SYMATTR InstName M2
SYMATTR Value 2N7002
SYMBOL nmos 3184 3664 M90
SYMATTR InstName M3
SYMATTR Value 2N7002
SYMBOL nmos 3104 3664 R90
SYMATTR InstName M4
SYMATTR Value 2N7002
SYMBOL nmos 2832 3888 R0
SYMATTR InstName M5
SYMATTR Value 2N7002
SYMBOL res 2864 3456 R0
SYMATTR InstName R7
SYMATTR Value {R}
SYMBOL res 3520 3440 R0
SYMATTR InstName R22
SYMATTR Value R=R/2
SYMBOL res 3872 3440 R0
SYMATTR InstName R39
SYMATTR Value R=R/2
SYMBOL voltage 4448 3232 R0
SYMATTR InstName VB1
SYMATTR Value {VB}
SYMBOL voltage 4144 3712 R0
SYMATTR InstName VCC1
SYMATTR Value {VCC}
SYMBOL res 3680 3616 R90
SYMATTR InstName R40
SYMATTR Value R=R/2
SYMBOL res 3888 3664 R90
SYMATTR InstName R56
SYMATTR Value R=R/2
SYMBOL npn 1568 -560 R0
SYMATTR InstName Q4
SYMATTR Value 2N3904
SYMBOL schottky 1536 -592 R270
SYMATTR InstName D3
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res 1616 -272 R0
SYMATTR InstName R28
SYMATTR Value 1m
SYMBOL res 1616 -880 R0
SYMATTR InstName R29
SYMATTR Value 1k
SYMBOL res 1264 -528 R90
SYMATTR InstName R30
SYMATTR Value 1k
SYMBOL npn 2288 -752 R0
SYMATTR InstName Q5
SYMATTR Value 2N3904
SYMBOL schottky 2256 -784 R270
SYMATTR InstName D4
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res 2336 -464 R0
SYMATTR InstName R32
SYMATTR Value 1m
SYMBOL res 2336 -1072 R0
SYMATTR InstName R33
SYMATTR Value 1k
SYMBOL res 1984 -720 R90
SYMATTR InstName R34
SYMATTR Value 1m
SYMBOL res 3056 -176 R270
SYMATTR InstName R53
SYMATTR Value {Rb}
SYMBOL npn 3328 -240 R0
SYMATTR InstName Q15
SYMATTR Value 2N3904
SYMBOL schottky 3296 -272 R270
SYMATTR InstName D9
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL pnp 3328 -864 M180
SYMATTR InstName Q16
SYMATTR Value 2N3906
SYMBOL schottky 3344 -832 R90
SYMATTR InstName D10
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res 3184 -928 R90
SYMATTR InstName R55
SYMATTR Value {Rb}
SYMBOL res 3376 -1088 R0
SYMATTR InstName R60
SYMATTR Value 1m
SYMBOL res 3376 -128 R0
SYMATTR InstName R62
SYMATTR Value 1m
SYMBOL res 3376 -784 R0
SYMATTR InstName R63
SYMATTR Value 1m
SYMBOL res 3376 -416 R0
SYMATTR InstName R64
SYMATTR Value 1m
SYMBOL pnp 2928 -752 M180
SYMATTR InstName Q18
SYMATTR Value 2N3906
SYMBOL res 2976 -160 R0
SYMATTR InstName R65
SYMATTR Value 1m
SYMBOL res 3792 -176 R270
SYMATTR InstName R66
SYMATTR Value {Rb}
SYMBOL npn 4064 -240 R0
SYMATTR InstName Q22
SYMATTR Value 2N3904
SYMBOL schottky 4032 -272 R270
SYMATTR InstName D11
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL pnp 4064 -864 M180
SYMATTR InstName Q28
SYMATTR Value 2N3906
SYMBOL schottky 4080 -832 R90
SYMATTR InstName D12
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res 3920 -928 R90
SYMATTR InstName R67
SYMATTR Value {Rb}
SYMBOL res 4112 -1088 R0
SYMATTR InstName R68
SYMATTR Value 1m
SYMBOL res 4112 -128 R0
SYMATTR InstName R69
SYMATTR Value 1m
SYMBOL res 4112 -784 R0
SYMATTR InstName R70
SYMATTR Value 1m
SYMBOL res 4112 -416 R0
SYMATTR InstName R71
SYMATTR Value 1m
SYMBOL pnp 3664 -752 M180
SYMATTR InstName Q29
SYMATTR Value 2N3906
SYMBOL res 3712 -160 R0
SYMATTR InstName R72
SYMATTR Value 1m
SYMBOL res 3568 -560 R90
SYMATTR InstName R73
SYMATTR Value 1k