
Add sub
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
Flags 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 41 × 35.5 mm with 26 parts on 51 nets.
Its parts include 24 transistors and 2 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 |
|---|---|---|---|
| 12 | NMOS | Package_TO_SOT_SMD:TSOT-23 | Q201, Q210, Q211, Q212, Q213, Q214, Q215, Q216, Q301, Q304, Q401, Q404 |
| 12 | PMOS | Package_TO_SOT_SMD:TSOT-23 | Q202, Q203, Q204, Q205, Q206, Q207, Q208, Q209, Q302, Q303, Q402, Q403 |
| 1 | Conn_01x12_Pin | Connector_Harwin:Harwin_Gecko-G125-FVX1205L0X_2x06_P1.25mm_Vertical | J101 |
| 1 | Conn_01x16_Pin | Connector_Harwin:Harwin_Gecko-G125-MVX1605L0X_2x08_P1.25mm_Vertical | J102 |
It measures 41 × 35.5 mm and has 2 copper layers, 1.6 mm thick.
26 parts. 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/flags/flags.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).

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


hackclub/OnBoard
💡 Join 1,000 teenagers and make your first PCB with a $100 grant!



harbaum/galagino
A Galaga, Pac-Man and Donkey Kong arcade emulator for the ESP32

Luos-io/luos_engine
Open-source and real-time orchestrator for cyber-physical-systems, to easily design, test and deploy embedded applications and digital twins.

google/walt
A device for measuring latency of physical sensors and outputs on phones and computers
