
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
Main control 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 59 × 63 mm with 42 parts on 162 nets.
It is built around the 74HC157D. Its parts include 26 transistors, 14 ICs 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 |
|---|---|---|---|
| 14 | 74HC157 | Package_SO:SOIC-16_3.9x9.9mm_P1.27mm | U201, U202, U203, U204, U205, U206, U301, U302, U303, U304, U305, U306, U1001, U1002 |
| 13 | NMOS | Package_TO_SOT_SMD:TSOT-23 | Q401, Q404, Q406, Q501, Q504, Q506, Q602, Q802, Q901, Q904, Q906, Q1002, Q1003 |
| 13 | PMOS | Package_TO_SOT_SMD:TSOT-23 | Q402, Q403, Q405, Q502, Q503, Q505, Q601, Q801, Q902, Q903, Q905, Q1001, Q1004 |
| 1 | Conn_01x12_Socket | Connector_Harwin:Harwin_Gecko-G125-FVX1205L0X_2x06_P1.25mm_Vertical | J102 |
| 1 | Conn_01x34_Pin | Connector_Harwin:Harwin_Gecko-G125-FVX3405L0X_2x17_P1.25mm_Vertical | J101 |

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.


artemisamsx/artemisa
Schematics, PCB designs and HDL simulations to build a 8-bits MSX computer





rattboi/gen-to-pce-controller-adapter
Simple Genesis 3-button to PC-Engine adapter ============================================
It measures 59 × 63 mm and has 2 copper layers, 1.6 mm thick.
42 parts, built around the 74HC157D. 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/main_control/main_control.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).