
Led panel 1
tmarhguy/alu
8-bit combinational ALU built from scratch with 3,488 CMOS transistors (KiCad + SPICE + Logisim + 1.24M tests

8-bit combinational ALU built from scratch with 3,488 CMOS transistors (KiCad + SPICE + Logisim + 1.24M tests
Add sub is an open-source printed circuit board by tmarhguy, from the tmarhguy/alu repository on GitHub, published under the MIT licence. It is a 2-layer board of 110 × 117 mm with 200 parts on 234 nets.
It is built around the 74HC157D and 74HC86D. Its parts include 178 transistors, 12 ICs, 6 capacitors and 4 connectors. It belongs with the retro computing and games boards of this library.
Comparison and status flag generation
Generate 4 flags for ALU status and comparison:
 Flags generation circuit
Function: Detect A == B
Logic:
EQUAL = ~((A[7] XOR B[7]) | (A[6] XOR B[6]) | ... | (A[0] XOR B[0]))Implementation:
Function: Detect A < B
Logic: Cascaded priority comparison (MSB first)
Implementation: ~120T comparator logic
Function: Detect OUT > 0
Logic:
NOT_ZERO = OUT[7] | ... | OUT[0]
POSITIVE = ~OUT[7] & NOT_ZEROFunction: Pass carry from adder
Implementation: Direct wire
Inputs:
Outputs:
Last Updated: 2026-01-16
| Qty | Value | Footprint | References |
|---|---|---|---|
| 89 | NMOS | Package_TO_SOT_SMD:TSOT-23 | Q301, Q304, Q1002, Q1502, Q1702, Q1901, Q1904, Q1906, Q2002, Q2302, Q2402, Q2502, Q2802, Q3001, Q3004, Q3006 +73 |
| 89 | PMOS | Package_TO_SOT_SMD:TSOT-23 | Q302, Q303, Q1001, Q1501, Q1701, Q1902, Q1903, Q1905, Q2001, Q2301, Q2401, Q2501, Q2801, Q3002, Q3003, Q3005 +73 |
| 6 | 100nF | Capacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mm | C201, C701, C702, C1101, C2201, C3301 |
| 6 | 74HC157 | Package_SO:SOIC-16_3.9x9.9mm_P1.27mm | U801, U802, U803, U804, U805, U806 |
| 4 | 74HC86 | Package_SO:SOIC-14_3.9x8.7mm_P1.27mm | U201, U1101, U2201, U3301 |
| 3 | Conn_01x12_Pin | Connector_Harwin:Harwin_Gecko-G125-FVX1205L0X_2x06_P1.25mm_Vertical | J101, J103, J104 |
| 2 | 74HC86 | Package_DIP:DIP-14_W7.62mm | U701, U702 |
| 1 | Conn_01x34_Pin | Connector_Harwin:Harwin_Gecko-G125-FVX3405L0X_2x17_P1.25mm_Vertical | J102 |

tmarhguy/alu
8-bit combinational ALU built from scratch with 3,488 CMOS transistors (KiCad + SPICE + Logisim + 1.24M tests

tmarhguy/alu
8-bit combinational ALU built from scratch with 3,488 CMOS transistors (KiCad + SPICE + Logisim + 1.24M tests

tmarhguy/alu
8-bit combinational ALU built from scratch with 3,488 CMOS transistors (KiCad + SPICE + Logisim + 1.24M tests

tmarhguy/alu
8-bit combinational ALU built from scratch with 3,488 CMOS transistors (KiCad + SPICE + Logisim + 1.24M tests

tmarhguy/alu
8-bit combinational ALU built from scratch with 3,488 CMOS transistors (KiCad + SPICE + Logisim + 1.24M tests

tmarhguy/alu
8-bit combinational ALU built from scratch with 3,488 CMOS transistors (KiCad + SPICE + Logisim + 1.24M tests

tmarhguy/alu
8-bit combinational ALU built from scratch with 3,488 CMOS transistors (KiCad + SPICE + Logisim + 1.24M tests

tmarhguy/alu
8-bit combinational ALU built from scratch with 3,488 CMOS transistors (KiCad + SPICE + Logisim + 1.24M tests

tmarhguy/alu
8-bit combinational ALU built from scratch with 3,488 CMOS transistors (KiCad + SPICE + Logisim + 1.24M tests

tmarhguy/alu
8-bit combinational ALU built from scratch with 3,488 CMOS transistors (KiCad + SPICE + Logisim + 1.24M tests

tmarhguy/alu
8-bit combinational ALU built from scratch with 3,488 CMOS transistors (KiCad + SPICE + Logisim + 1.24M tests

tmarhguy/alu
8-bit combinational ALU built from scratch with 3,488 CMOS transistors (KiCad + SPICE + Logisim + 1.24M tests

slu4coder/Minimal-64x4-Home-Computer
My DIY TTL home computer with VGA and PS/2 and 4x the processing power of a Commodore C64 or Apple II.




otterbox901/8-Bit_CPU
Microcoded 8-bit CPU built from 24 74HC-series ICs: a custom 10-instruction ISA, 4 general-purpose registers, and an EEPROM-driven control unit.


nailed-barnacle/Cisc-8-ttl-processor
A cut-down version of the 8080 processor using HCTTL and including a discrete ALU and instruction decoder

It measures 110 × 117 mm and has 2 copper layers, 1.6 mm thick.
200 parts, built around the 74HC157D and 74HC86D. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
From the tmarhguy/alu repository on GitHub, at the commit this page was made from: the board is schematics/kicad/boards/add_sub/add_sub.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).