* Z:\tmp\asc_dec_bjh7r6w2\04a8c385d606_aoi_dec1.asc
* Generated by LTspice 26.0.1 for Windows.
Q2 OUT N005 N011 0 2N3904
Q12 N017 N016 N015 0 2N3906
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})
Q9 N008 N002 INT1 0 2N3906
Q7 N010 N004 INT2 0 2N3906
Q10 N007 BIT1 INT1 0 2N3906
Q5 N001 INT1 N003 0 2N3904
R100 BIT0 0 10Mega
R3 N001 OUT 100
M2 OUTc N014 N018 N018 2N7002
Q6 N012 INT1c N013 0 2N3904
V_BIT3 BIT3 0 PULSE(0 {VCC} 0 {rise} {rise} {8*1/freq/2-rise} {8*1/freq} {2*reps})
.model NPN NPN
.model PNP PNP
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.bjt
.model NMOS NMOS
.model PMOS PMOS
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.mos
.backanno
.end

* LTspice schematic (.asc):
Version 4.1
SHEET 1 14868 10612
WIRE 2736 416 2448 416
WIRE 2896 416 2736 416
WIRE 3184 416 2896 416
WIRE 2736 528 2736 416
WIRE 2208 576 2208 528
WIRE 2560 576 2208 576
WIRE 2672 576 2560 576
WIRE 3184 608 3184 416
WIRE 2208 624 2208 576
WIRE 2208 624 2080 624
WIRE 2208 656 2208 624
WIRE 2144 704 1904 704
WIRE 2080 832 2080 624
WIRE 1904 880 1872 880
WIRE 2016 880 1904 880
WIRE 2448 1024 2448 528
WIRE 2560 1024 2448 1024
WIRE 2832 1024 2560 1024
WIRE 2448 1056 2448 1024
WIRE 2448 1056 2320 1056
WIRE 3184 1072 3184 688
WIRE 3280 1072 3184 1072
WIRE 3344 1072 3280 1072
WIRE 2448 1088 2448 1056
WIRE 2736 1104 2736 624
WIRE 2384 1136 1904 1136
WIRE 3088 1184 3024 1184
WIRE 3184 1184 3184 1072
WIRE 3184 1184 3152 1184
WIRE 3184 1232 3184 1184
WIRE 2320 1264 2320 1056
WIRE 3024 1280 3024 1184
WIRE 3024 1280 2896 1280
WIRE 3120 1280 3024 1280
WIRE 2256 1312 1904 1312
WIRE 2080 1472 2080 928
WIRE 2208 1472 2208 752
WIRE 2320 1472 2320 1360
WIRE 2448 1472 2448 1184
WIRE 3184 1472 3184 1328
WIRE 2736 1824 2448 1824
WIRE 2896 1824 2736 1824
WIRE 2736 1936 2736 1824
WIRE 2560 1984 2208 1984
WIRE 2672 1984 2560 1984
WIRE 3184 2480 3184 2384
WIRE 3280 2480 3184 2480
WIRE 3344 2480 3280 2480
WIRE 2736 2512 2736 2032
WIRE 3008 2592 3008 2304
WIRE 3008 2592 2896 2592
WIRE 3184 2640 3184 2480
WIRE 2320 2672 2320 2464
WIRE 2256 2720 1904 2720
WIRE 3008 2720 3008 2592
WIRE 3136 2720 3008 2720
WIRE 2080 2880 2080 2336
WIRE 2080 2880 1968 2880
WIRE 2208 2880 2208 2160
WIRE 2208 2880 2080 2880
WIRE 2320 2880 2320 2768
WIRE 2320 2880 2208 2880
WIRE 2448 2880 2448 2592
WIRE 2448 2880 2320 2880
WIRE 2896 2880 2448 2880
WIRE 3184 2880 3184 2736
SYMBOL npn 3120 1232 R0
SYMATTR InstName Q2
SYMATTR Value 2N3904
SYMBOL pnp 2256 2768 M180
SYMATTR InstName Q12
SYMATTR Value 2N3906
SYMBOL voltage 144 1040 R90
WINDOW 123 -77 30 VRight 2
WINDOW 39 0 0 Left 0
WINDOW 0 -51 28 VRight 2
WINDOW 3 46 -379 VRight 2
SYMATTR InstName V_BIT1
SYMATTR Value PULSE(0 {VCC} 0 {rise} {rise} {2*1/freq/2-rise} {2*1/freq} {8*reps})
SYMBOL voltage 144 1184 R90
WINDOW 123 -77 30 VRight 2
WINDOW 39 0 0 Left 0
WINDOW 0 -51 28 VRight 2
WINDOW 3 46 -379 VRight 2
SYMATTR InstName V_BIT2
SYMATTR Value PULSE(0 {VCC} 0 {rise} {rise} {4*1/freq/2-rise} {4*1/freq} {4*reps})
SYMBOL pnp 2144 752 M180
SYMATTR InstName Q9
SYMATTR Value 2N3906
SYMBOL pnp 2384 1184 M180
SYMATTR InstName Q7
SYMATTR Value 2N3906
SYMBOL pnp 2016 928 M180
SYMATTR InstName Q10
SYMATTR Value 2N3906
SYMBOL npn 2672 528 R0
SYMATTR InstName Q5
SYMATTR Value 2N3904
SYMBOL res -1104 1440 R0
SYMATTR InstName R100
SYMATTR Value 10Mega
SYMBOL res 3168 592 R0
SYMATTR InstName R3
SYMATTR Value 100
SYMBOL nmos 3136 2640 R0
SYMATTR InstName M2
SYMATTR Value 2N7002
SYMBOL npn 2672 1936 R0
SYMATTR InstName Q6
SYMATTR Value 2N3904
SYMBOL voltage 144 1328 R90
WINDOW 123 -77 30 VRight 2
WINDOW 39 0 0 Left 0
WINDOW 0 -51 28 VRight 2
WINDOW 3 46 -379 VRight 2
SYMATTR InstName V_BIT3
SYMATTR Value PULSE(0 {VCC} 0 {rise} {rise} {8*1/freq/2-rise} {8*1/freq} {2*reps})
FLAG 128 880 BIT0
FLAG 48 880 0
FLAG 128 1040 BIT1
FLAG 48 1040 0
FLAG 128 1184 BIT2
FLAG 48 1184 0
FLAG 128 1328 BIT3
FLAG 48 1328 0
FLAG 128 1472 BIT4
FLAG 48 1472 0
FLAG -1088 1456 BIT0
FLAG -1088 1536 0
FLAG -928 1456 BIT1
FLAG -928 1536 0
FLAG 3280 1072 OUT
FLAG 2560 1024 INT2
FLAG 2560 576 INT1
FLAG 1904 880 BIT1
FLAG 3280 2480 OUTc
FLAG 2560 1984 INT1c