* Z:\tmp\asc_dec_bjh7r6w2\06f6537cfe78_3-bit-flash-adc2_dec2.asc
* Generated by LTspice 26.0.1 for Windows.
A12 N004 r6 0 0 0 0 N003 0 SCHMITT Vt=0 vh=.1m tripdt=1n
R6 r3 r2 220
V2 Vref 0 5
A4 N005 N006 0 0 0 0 4 0 XOR
A10 0 7 6 5 4 0 a2 0 OR
A14 N004 r4 0 0 0 0 N006 0 SCHMITT Vt=0 vh=.1m tripdt=1n
A3 N003 N005 0 0 0 0 5 0 XOR
R1 Vref N001 2k
A16 N004 r2 0 0 0 0 N008 0 SCHMITT Vt=0 vh=.1m tripdt=1n
R7 r2 r1 220
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 2380 1240
WIRE -464 -400 -496 -400
WIRE 48 -400 -464 -400
WIRE -224 -304 -336 -304
WIRE -96 -304 -144 -304
WIRE -32 -304 -96 -304
WIRE -496 -272 -496 -400
WIRE -336 -272 -336 -304
WIRE -96 -256 -96 -304
WIRE 416 -208 416 -288
WIRE 464 -208 416 -208
WIRE 464 -192 416 -192
WIRE 576 -192 528 -192
WIRE -496 -160 -496 -192
WIRE -336 -160 -336 -192
WIRE -96 -128 -96 -176
WIRE -32 -128 -96 -128
WIRE 160 -128 -32 -128
WIRE -96 -112 -96 -128
WIRE 416 -112 416 -192
WIRE 416 -112 224 -112
WIRE 48 -96 48 -272
WIRE 160 -96 48 -96
WIRE 416 -32 416 -112
WIRE 464 -32 416 -32
WIRE 464 -16 416 -16
WIRE 576 -16 528 -16
WIRE 688 32 640 32
WIRE 800 32 752 32
WIRE -32 48 -96 48
WIRE 160 48 -32 48
WIRE 688 48 656 48
WIRE 416 64 416 -16
WIRE 416 64 224 64
WIRE 688 64 640 64
WIRE 48 80 48 -96
WIRE 160 80 48 80
WIRE 688 80 656 80
WIRE 416 144 416 64
WIRE 464 144 416 144
WIRE 688 144 640 144
WIRE 800 144 752 144
WIRE 464 160 416 160
WIRE 576 160 528 160
WIRE 688 160 656 160
WIRE 688 176 640 176
WIRE 688 192 656 192
WIRE -32 224 -96 224
WIRE 160 224 -32 224
WIRE 416 240 416 160
WIRE 416 240 224 240
WIRE 48 256 48 80
WIRE 160 256 48 256
WIRE 688 256 640 256
WIRE -96 272 -96 224
WIRE 688 272 656 272
WIRE 688 288 640 288
WIRE 688 304 656 304
WIRE 416 320 416 240
WIRE -96 400 -96 352
WIRE -32 400 -96 400
WIRE 160 400 -32 400
WIRE 416 416 224 416
WIRE 48 432 48 256
WIRE 160 432 48 432
WIRE -96 448 -96 400
WIRE -96 576 -96 528
WIRE -32 576 -96 576
WIRE 160 576 -32 576
WIRE 416 592 224 592
WIRE 48 608 48 432
WIRE 160 608 48 608
WIRE -96 624 -96 576
WIRE -96 752 -96 704
WIRE -32 752 -96 752
WIRE 160 752 -32 752
WIRE -96 768 -96 752
WIRE 416 768 224 768
WIRE 48 784 48 608
WIRE 160 784 48 784
SYMBOL Digital\\diffschmtbuf 160 -48 M180
WINDOW 3 8 -12 Left 0
SYMATTR InstName A12
SYMATTR Value Vt=0 vh=.1m
SYMATTR Value2 tripdt=1n
SYMBOL res -112 432 R0
SYMATTR InstName R6
SYMATTR Value 220
SYMBOL voltage -336 -288 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V2
SYMATTR Value 5
SYMBOL Digital\\xor 512 112 R0
SYMATTR InstName A4
SYMBOL Digital\\or 720 -16 R0
SYMATTR InstName A10
SYMBOL Digital\\diffschmtbuf 160 304 M180
WINDOW 3 8 -12 Left 0
SYMATTR InstName A14
SYMATTR Value Vt=0 vh=.1m
SYMATTR Value2 tripdt=1n
SYMBOL Digital\\xor 512 -64 R0
SYMATTR InstName A3
SYMBOL res -240 -288 R270
WINDOW 0 32 56 VTop 0
WINDOW 3 0 56 VBottom 0
SYMATTR InstName R1
SYMATTR Value 2k
SYMBOL Digital\\diffschmtbuf 160 656 M180
WINDOW 3 8 -12 Left 0
SYMATTR InstName A16
SYMATTR Value Vt=0 vh=.1m
SYMATTR Value2 tripdt=1n
SYMBOL res -112 608 R0
SYMATTR InstName R7
SYMATTR Value 220
FLAG -496 -160 0
FLAG -336 -160 0
FLAG -464 -400 Vsig
FLAG -336 -304 Vref
FLAG 576 160 4
FLAG 576 -16 5
FLAG 576 -192 6
FLAG 640 288 3
FLAG 656 272 5
FLAG 640 256 7
FLAG 656 304 1
FLAG 640 176 3
FLAG 656 160 6
FLAG 640 144 7
FLAG 656 192 2
FLAG 640 64 5
FLAG 656 48 6
FLAG 640 32 7
FLAG 656 80 4
FLAG 800 144 a1
FLAG 800 32 a2
FLAG -32 -128 r6
FLAG -32 48 r5
FLAG -32 224 r4
FLAG -32 400 r3
FLAG -32 576 r2
FLAG -32 752 r1