Interactive, data-driven schematic visualization rendered with authentic KiCad aesthetics (cream canvas,
red reference designators, thin black symbols, and green Manhattan orthogonal wires with live binary logic tracing).
SELECT (S₂ S₁ S₀)
STROBE (~G)
OUTPUT (Y)
Channel D0 routed to Y
0
DATA INPUTS (D₀..D₇)
Presets:
SELECT (S₁ S₀)
STROBE (~1G)
OUTPUT (1Y)
Channel D0 routed to 1Y
0
DATA INPUTS (D₀..D₃)
Presets:
WORD A (A₃..A₀)
(Dec: 0)
WORD B (B₃..B₀)
(Dec: 0)
COMPARATOR OUTPUT
A > B
A = B
A < B
Decision: All 4 bits equal
CASCADE EXPANSION
(Tied to IA=B=1 for standalone operation per 74LS85 datasheet)
When M=0, B bits pass through XOR gates unchanged and C₀=0 (Addition: A + B). When M=1, B bits are inverted and C₀=1 (Subtraction: A + B' + 1 = A − B).
2. Carry-Out & Borrow Flag
For addition, C₄ is the carry-out (overflow). For subtraction, C₄=1 indicates no borrow (positive result); C₄=0 indicates a borrow occurred.
Contains independent Section 1 (÷2: CP0 ➔ QA) and Section 2 (÷5: CP1 ➔ QB, QC, QD). Jumpering QA to CP1 produces full 10-state BCD decade counting (0–9).
2. Asynchronous Master Reset (R0) & Preset (R9)
Internal 2-input AND gates: R₀(1)·R₀(2)=1 resets all bits to 0000. R₉(1)·R₉(2)=1 sets outputs to BCD 9 (1001). For Mod-6, feeding QC and QB to R0 resets immediately when reaching 6 (0110₂).
Contains independent Section 1 (÷2: CP0 ➔ QA) and Section 2 (÷8: CP1 ➔ QB, QC, QD ripple chain). Jumpering QA to CP1 produces a 16-state binary counter (0–15).
2. Truncation via Master Reset (R0)
R₀(1)·R₀(2)=1 asynchronously clears all flip-flops to 0000. For Mod-12 (digital clock), wiring QD and QC to R0 resets immediately at 12 (1100₂), creating a 0–11 cycle.