

Home brew CPU Hardware with 1-bit ALU implementation using 74LSxx, a micro-code and assembler coded in C#.
- Size
- 194.5 × 188.6 mm
- Copper layers
- 4
- Thickness
- 1.6 mm
- Parts
- 162
- Nets
- 239
- Pads
- 1,078
- Tracks, vias
- 2,736, 666
- Pours
- 2
- Routed
- Yes
- KiCad
- KiCad 9.0 (file 20241229)
- Created
- 5 Dec 2023
- Updated
- 7 Nov 2026
Overview
MyCpu is an open-source printed circuit board by fortinsylvain, from the fortinsylvain/MyCpu repository on GitHub, published under the MIT licence. It is a 4-layer board of 194.5 × 188.6 mm with 162 parts on 239 nets, routed with 2,736 tracks and 666 vias.
It is built around the 74LS245SC, 74LS374PC and 74LS00SC, with the 74LS153DC, 74LS04PC and 74LS151PC among its other parts. Its parts include 47 resistors, 39 capacitors, 35 ICs, 19 diodes and 13 connectors. It belongs with the sensors and measurement and retro computing and games boards and the FPGA and CPLD boards of this library.
Main components
1274LS245SC
-0℃~+70℃ 12ns@5V,45pF 15mA 24mA 4.75V~5.25V 74LS 8 Bidirectional Output enable Schmitt trigger Tri-State - Buffers, Drivers, Receivers, Transceivers ROHSTexas InstrumentsBuffers, Drivers, Receivers, Transceivers74LS374PC
PDIP-200ns 0℃~+70℃ 1 20ns 28ns@5V,45pF 35MHz 4.75V~5.25V 45mA 74LS Series 8 D-Type Rising Edge Tri-State PDIP-20 Flip FlopsonsemiFlip Flops74LS00SC
-0℃~+70℃ 15ns@5V,50pF 2 2.7V 2V 4 4.75V~5.25V 400uA 500mV 74LS 800mV 8mA NAND Gate - Logic Gates ROHSTexas InstrumentsLogic Gates74LS153DC
PDIP-160℃~+70℃ 14ns 4.75V~5.25V 400uA 400uA 6.2mA 74LS Single Supply Tri-state output PDIP-16 Signal Switches, Multiplexers, Decoders ROHSTexas InstrumentsSignal Switches, Multiplexers, Decoders74LS04PC
PDIP-140℃~+70℃ 4.75V~5.25V 6 6.6mA 74LS PDIP-14 InvertersonsemiInverters74LS151PC
DIP-160℃~+70℃ 12.5ns 4.75V~5.25V 400uA 6mA 74LS 8mA Tri-state output DIP-16 Signal Switches, Multiplexers, Decoders ROHSonsemiSignal Switches, Multiplexers, Decoders74LS259DC
SBDIP-160.4mA 0ns 0℃~+70℃ 15ns 16ns 4.75V~5.25V 74LS 8 8mA Addressable Latch SBDIP-16 Latches ROHSTexas InstrumentsLatches74LS32SC
-- Logic Gates ROHSTexas InstrumentsLogic Gates74LS74PC
DIP-140ns 0℃~+70℃ 1 2 20MHz 3.5pF 35ns@5V,50pF 4.5ns 4.75V~5.25V 400uA 74LS Series 8mA 8mA Asynchronous Complementary D-Type Rising Edge Set and Reset DIP-14 Flip FlopsTexas InstrumentsFlip Flops74LS86
DIP-14-20℃~+75℃ 10mA 2.7V 23ns@5V,15pF 2V 400mV 400uA 5V 74LS 800mV 8mA XOR Gate DIP-14 Logic Gates ROHSHITLogic GatesHM62256BLP-7
DIP28DIP28 New Arrivals ROHSHITUncategorisedNE555P
DIP-80℃~+70℃ 100kHz 10mA 4.5V~16V DIP-8 555 Timers / Counters ROHSTexas InstrumentsTimers / Counters
README
README.mdHomebrew CPU Project
I built this CPU at home using 74LS logic ICs, EEPROMs, RAMs and GALs, driven by curiosity and a desire to understand processor design at a fundamental level.
🔧 Project Overview
My goal was to create a fully functional CPU using a 1-bit ALU. While this results in relatively slow execution speeds, it allows me to explore the control and datapath mechanisms in detail.
- All microcode for the CPU is stored in two binary files programmed into 2864 EEPROM chips.
- A custom microassembler generates these micro-instructions.
🧠 Custom CPU PCB Update
After validating the core architecture on a wire-wrap prototype, the custom PCB version of the CPU is now complete. The boards were professionally fabricated by PCBWay, thanks to a generous sponsorship offered by Liam from their marketing team, who discovered the project on GitHub. This support helped transition the design from a hand-built prototype to a professionally produced PCB.

🛠️ PCBWay Manufacturing Review
I’m happy to share my experience working with PCBWay for manufacturing the custom PCB version of my CPU project. Here's a quick summary of how it went:
First, I transferred the handwritten schematic into KiCad, then completed the routing for each required part. I was able to find all the necessary components on AliExpress. After carefully checking my Gerber files, it was time to send the design to the factory.
🔁 I was genuinely impressed by PCBWay’s one-click KiCad integration — all design files were submitted automatically to the PCBWay factory with a single click. No file packaging, no ZIP uploads — just click and go! The ordering process was fast and seamless.
🌐 The web interface was intuitive and transparent, allowing me to track each step of the production process in real time.
📦 The PCBs arrived astonishingly quickly, properly boxed and well-protected with excellent packaging. Although I ordered 5 boards, PCBWay generously included 6 — a thoughtful bonus!
The soldering process went smoothly. I used footprints optimized for hand soldering, with larger pads to make it easier to work with. Only a couple of 0603 surface-mount resistors are present on the board.
🔌 First power-on: the board worked on the first try! I reused the same microcode and program EEPROM, along with the GAL, that were previously tested on the wire-wrap prototype — total success.
Since the new board has a solid ground plane, I expect it will run faster than the prototype, with improved signal integrity. I plan to validate this with an oscilloscope soon — stay tuned for updates!
🌍 There’s a strong online community around PCBWay, full of shared open-source hardware projects — very inspiring!
🧠 Board design files
🧵 Wire-Wrap Prototype
Before moving to a PCB, I built a wire-wrap prototype to test the design on real hardware. This stage was essential for debugging the microcode, verifying timing, and refining the instruction set.

Here’s a picture of the back — a lot of patience was required! Amazingly, it's still holding together and executing code after 30 years.

Wire-wrapping made it easier to make changes during development while still providing a reliable and compact way to interconnect components.
Microcode and Assembler
💾 Download Microcode Source
💾 Download Microcode Assembler
💾 Download Opcode Assembler
💾 Download Diagnostic Program
GAL source files
In the PCB version of MyCPU i make use of programmable logic devices (GALs) for clock phase generation, address decoding, and microcode ROM decoding tables. The source files were compiled using WinCupl, and the chips were programmed using a TL866II Plus programmer.
💾 Download GAL22V10 Clock 💾 Download GAL22V10 Decoder 💾 Download GAL16V8 ROM0 💾 Download GAL16V8 ROM1
🧠 Register Implementation on RAM
The design uses address-mapped RAM to support the CPU’s operation. This approach saves chip count, though at the cost of execution speed.
The following registers are implemented in RAM:
- Instruction Pointer
- Register A
- Carry Flag
- Equal Flag
- Index Register
- Stack Pointer
- The Stack
Here is the memory address map:
0000H - 17FFH Total RAM space
- 0000H - 17FFH Total RAM space
- 0000H - 00FFH Stack
- 0100H - 17EF Free for application
- 1FF0H SP Stack Pointer 8 bit
- 1FF1H JSH Temporary storage for JSR MSB address
- 1FF2H JSL " " " " LSB "
- 1FF3H XH Index Register MSB
- 1FF4H XL Index Register LSB
- 1FFAH E bit<0> Equal Status bit
- 1FFBH C bit<0> Carry Status bit
- 1FFCH A Register
- 1FFEH IPH Instruction Pointer MSB
- 1FFFH IPL Instruction Pointer MSB
- C000H LED port
- E000H - F000H EEPROM for application program
System Overview
Top-Level Architecture Diagram

Hand-Written CPU Schematic
When I started this project back in 1995, I didn’t have access to schematic capture software or a decent computer that could run it. I only had an IBM Personal Computer XT, so I used pen and paper to sketch how the electronic components were connected.

CPU Board Layout View

Microcode and Control ROMs
The microcode is stored in two 2864 EEPROM ICs. Originally, a BASIC program was used to translate a text file of micro-instructions into a .hex file. A homemade EEPROM programmer was built to write these files via the parallel port of an IBM PC XT.
Today, a modern C# program performs the same translation into .hex format for programming.
The ROM decoding table encodes how data moves between components. This reduces the number of control bits required by expanding microcode control using external PROMs.
- ROM chips: IC20 and IC21 (74S188, 256×1 Open Collector PROMs)
- These are one-time programmable PROMs.
- Several chips were sacrificed before the correct decoding table was finalized.

In the PCB version of the board, two GAL16V8 replaces the PROMs to implement the decoding table, offering greater flexibility and eliminating the need for one-time programmable chips.
I/O Board Schematic
Wire wrap proto required a second board to include the following:
- RAM
- EEPROM (for application program)
- LEDs for visual feedback
The PCB version includes all of these components on a single board.

Debugging Setup
Initially, I was single-stepping using push switches, LEDs, and a pair of classic TIL311 hex displays to monitor the 8-bit data bus on the wire-wrap prototype, but it quickly stopped being fun. When bugs like stack corruption became too tricky to debug, I decided to get an Agilent 1670G Logic Analyzer. I found one on eBay for 510 CAD, which seemed like a reasonable price—I never thought I’d own one! It’s the color LCD version, so now I get to see the word in color.
With the analyzer, I can trigger on specific conditions and even do some reverse assembly of the microcode using basic symbolic decoding. It allow recording of detailed intructions traces. Quite cool!
Final Wire-Wrap Assembly with Logic Analyzer
Here the Logic analyzer connected to MyCpu for a debug session.

Microcode View on Logic Analyzer

MyCPU Instruction Set
This document describes the instruction set of the MyCPU homebrew processor.
📘 Overview
- 8-bit accumulator architecture (A, X registers)
- 16-bit addressing support
- Flags: E (equal/zero), C (carry)
- Stack support (SP-based)
📑 Instruction Set
Data Movement
| Mnemonic | OpCode | Bytes | Mode | Flags | Description |
|---|---|---|---|---|---|
| LDA #0x** | 0x30 | 1 | Hex | - | Load immediate into A |
| LDA 0x**** | 0x2A | 2 | Hex | - | Load A from memory (absolute) |
| LDA @ | 0x2A | 2 | Symbol | - | Load A from memory (symbolic) |
| LDA (X) | 0x0A | 0 | Hex | - | Load A from memory indexed by X |
| STA 0x**** | 0x31 | 2 | Hex | - | Store A into memory (absolute) |
| STA @ | 0x31 | 2 | Symbol | - | Store A into memory (symbolic) |
| LDX 0x**** | 0x34 | 2 | Hex | - | Load X from memory |
| LDX @ | 0x34 | 2 | Symbol | - | Load X from symbolic address |
| STX 0x**** | 0x16 | 2 | Hex | - | Store X into memory |
| STX @ | 0x16 | 2 | Symbol | - | Store X into memory |
Arithmetic / Logic
| Mnemonic | OpCode | Bytes | Mode | Flags | Description |
|---|---|---|---|---|---|
| ADDA #0x** | 0x2F | 1 | Hex | C | Add immediate to A |
| ADDA 0x**** | 0x29 | 2 | Hex | C | Add memory to A |
| ADDA @ | 0x29 | 2 | Symbol | C | Add memory to A (symbolic) |
| ADCA #0x** | 0x2E | 1 | Hex | C | Add immediate + carry |
| ADCA 0x**** | 0x28 | 2 | Hex | C | Add memory + carry |
| ANDA #0x** | 0x33 | 1 | Hex | - | Logical AND with A |
| ORA #0x** | 0x17 | 1 | Hex | - | Logical OR with A |
| XORA #0x** | 0x18 | 1 | Hex | - | Logical XOR with A |
| NOTA | 0x19 | 0 | Hex | - | Bitwise NOT A |
| INCA | 0x03 | 0 | Hex | E | Increment A |
| DECA | 0x20 | 0 | Hex | E | Decrement A |
| CMPA #0x** | 0x2D | 1 | Hex | E,C | Compare A with immediate |
Control Flow
| Mnemonic | OpCode | Bytes | Mode | Flags | Description |
|---|---|---|---|---|---|
| JMP 0x**** | 0x32 | 2 | Hex | - | Unconditional jump |
| JMP @ | 0x32 | 2 | Symbol | - | Unconditional jump (symbolic) |
| JEQ 0x**** | 0x2C | 2 | Hex | - | Jump if equal |
| JEQ @ | 0x2C | 2 | Symbol | - | Jump if equal (symbolic) |
| JNE 0x**** | 0x2B | 2 | Hex | - | Jump if not equal |
| JNE @ | 0x2B | 2 | Symbol | - | Jump if not equal |
| JRA 0x** | 0x0C | 1 | Hex | - | Relative jump |
| JRA @ | 0x0C | 1 | Relative | - | Relative jump (symbol) |
| JRNC @ | 0x0F | 1 | Relative | - | Jump if no carry |
| JRUGE @ | 0x23 | 1 | Relative | - | Jump if unsigned ≥ |
Stack & Subroutines
| Mnemonic | OpCode | Bytes | Mode | Flags | Description |
|---|---|---|---|---|---|
| JSR 0x**** | 0x06 | 2 | Hex | - | Jump to subroutine |
| JSR @ | 0x06 | 2 | Symbol | - | Jump to subroutine |
| RTS | 0x07 | 0 | Hex | - | Return from subroutine |
| PSHA | 0x24 | 0 | Hex | - | Push A to stack |
| POPA | 0x25 | 0 | Hex | - | Pop stack into A |
Shift / Bit Operations
| Mnemonic | OpCode | Bytes | Mode | Flags | Description |
|---|---|---|---|---|---|
| SLLA | 0x0E | 0 | Hex | C | Shift left logical |
| SRLA | 0x0D | 0 | Hex | C | Shift right logical |
| RRCA | 0x10 | 0 | Hex | C | Rotate right through carry |
| RRC @ | 0x14 | 2 | Symbol | C | Rotate memory right |
| SRL @ | 0x15 | 2 | Symbol | C | Shift memory right |
System / Misc
| Mnemonic | OpCode | Bytes | Mode | Flags | Description |
|---|---|---|---|---|---|
| NOP | 0x09 | 0 | Hex | - | No operation |
| STOP | 0x08 | 0 | Hex | - | Halt execution |
| SCF | 0x12 | 0 | Hex | C | Set carry flag |
| RCF | 0x11 | 0 | Hex | C | Reset carry flag |
| CLRA | 0x26 | 0 | Hex | E | Clear A |
| CLRX | 0x1E | 0 | Hex | E | Clear X |
Memory / Data
| Mnemonic | OpCode | Bytes | Mode | Flags | Description |
|---|---|---|---|---|---|
| DB 0x** | 0x00 | 0 | Hex | - | Define byte |
| .ASCII "@" | 0x00 | 0 | Ascii | - | Store ASCII string |
| EQU 0x**** | 0x00 | 0 | Hex | - | Define constant |
🧠 Notes
E= equality / zero flagC= carry flag@= symbolic addressing0x****= 16-bit address#0x**= immediate value
🚀 Generated by MyCPU Assembler
Inspiration and Community
I began documenting this project after discovering other wonderful homebrew machines featured on:
Join the Ring!
Interested in joining the Homebuilt CPUs WebRing?
- Contact Warren (email address is obfuscated—replace
[at]with@) - Mention your page URL and request to join
- Add the WebRing code fragment to your site
📌 Note: The ring is for actual home-built CPUs. Emulations of commercial parts are OK.
However, projects must be partially or fully built—paper designs don’t qualify.
Technologies used can include relays, TTL, CMOS, FPGAs, etc.
License
This project is licensed under the MIT License – see the LICENSE file for details.
Parts
162| Qty | Value | Footprint | References |
|---|---|---|---|
| 36 | 0.1uF | Capacitor_THT:C_Disc_D6.0mm_W2.5mm_P5.00mm | C1, C2, C10, C11, C12, C13, C14, C15, C16, C17, C18, C19, C20, C21, C22, C23 +20 |
| 19 | LED | LED_THT:LED_D5.0mm | D1, D2, D3, D4, D5, D6, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19 +3 |
| 18 | 470 | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P2.54mm_Vertical | R4, R5, R6, R7, R10, R11, R12, R13, R14, R15, R16, R17, R18, R29, R38, R39 +2 |
| 10 | 0 Ohms | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R22, R23, R24, R25, R26, R27, R28, R45, R46, R47 |
| 9 | 330 | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P2.54mm_Vertical | R30, R31, R32, R33, R34, R35, R36, R37, R44 |
| 5 | 74LS374 | Package_DIP:DIP-20_W7.62mm_Socket_LongPads | U9, U10, U12, U13, U31 |
| 4 | 4.7K | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P2.54mm_Vertical | R19, R20, R21, R43 |
| 4 | 74HCT161N | Package_DIP:DIP-16_W7.62mm_Socket_LongPads | U14, U15, U16, U17 |
| 4 | Conn_01x09 | Connector_PinHeader_2.54mm:PinHeader_1x09_P2.54mm_Vertical | J8, J9, J10, J11 |
| 4 | MountingHole_Pad | MyCPU_Footprint_Library:MountingHole_3.2mm_M3_Pad_Via_Drill_0.5mm | H1, H2, H3, H4 |
| 3 | 28C256 | Package_DIP:DIP-28_W15.24mm_Socket_LongPads | U18, U19, U70 |
| 3 | 74LS00 | Package_DIP:DIP-14_W7.62mm_Socket_LongPads | U23, U26, U28 |
| 2 | 10 uF | Capacitor_THT:CP_Radial_D5.0mm_P2.50mm | C36, C38 |
| 2 | 4.7k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P2.54mm_Vertical | R2, R3 |
| 2 | 74LS153 | Package_DIP:DIP-16_W7.62mm_Socket_LongPads | U7, U8 |
| 2 | 74LS244 | Package_DIP:DIP-20_W7.62mm_Socket_LongPads | U6, U22 |
| 2 | Conn_01x08 | Connector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_Vertical | J3, J4 |
| 2 | Conn_02x17_Odd_Even | Connector_PinHeader_2.54mm:PinHeader_2x17_P2.54mm_Vertical | J1, J2 |
| 2 | GAL16V8 | Package_DIP:DIP-20_W7.62mm_Socket_LongPads | U20, U21 |
| 2 | GAL22V10 | Package_DIP:DIP-24_W7.62mm_Socket_LongPads | U29, U30 |
| 2 | IMS1423S35 | Package_DIP:DIP-20_W7.62mm_Socket_LongPads | U1, U2 |
| 1 | 1 kOhms | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P2.54mm_Vertical | R42 |
| 1 | 10nF | MyCPU_Footprint_Library:C_Disc_D6.5mm_W2.1mm_P6.50mm | C35 |
| 1 | 1M Ohms | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P2.54mm_Vertical | R40 |
| 1 | 47 kOhms | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P2.54mm_Vertical | R41 |
| 1 | 50 Ohms | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P2.54mm_Vertical | R1 |
| 1 | 74LS04 | Package_DIP:DIP-14_W7.62mm_Socket_LongPads | U33 |
| 1 | 74LS08 | Package_DIP:DIP-14_W7.62mm_Socket_LongPads | U27 |
| 1 | 74LS151 | Package_DIP:DIP-16_W7.62mm_Socket_LongPads | U3 |
| 1 | 74LS245 | Package_DIP:DIP-20_W7.62mm_Socket_LongPads | U11 |
| 1 | 74LS259 | Package_DIP:DIP-16_W7.62mm_Socket_LongPads | U5 |
| 1 | 74LS32 | Package_DIP:DIP-14_W7.62mm_Socket_LongPads | U24 |
| 1 | 74LS74 | Package_DIP:DIP-14_W7.62mm_Socket_LongPads | U4 |
| 1 | 74LS86 | Package_DIP:DIP-14_W7.62mm_Socket_LongPads | U25 |
| 1 | Conn_01x02 | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | J13 |
| 1 | Conn_01x06 | Connector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_Vertical | J12 |
| 1 | Conn_02x03_Odd_Even | Connector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_Vertical | J7 |
| 1 | EC1125HSTS 26.8 MHz | Oscillator:Oscillator_DIP-8 | Y1 |
| 1 | HDSP-4830_2 | Display:HDSP-4830 | BAR1 |
| 1 | HM62256BLP | Package_DIP:DIP-28_W15.24mm_Socket_LongPads | U71 |
| 1 | Jumper_3_Bridged12 | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | JP1 |
| 1 | NE555P | Package_DIP:DIP-8_W7.62mm_Socket_LongPads | U32 |
| 1 | SMA Connector | MyCPU_Footprint_Library:GSG-SMA-73251-2120_drill_0.5mm | J6 |
| 1 | SW_Push | Button_Switch_THT:SW_PUSH-12mm | SW1 |
| 1 | Screw_Terminal_01x02 | TerminalBlock_CUI:TerminalBlock_CUI_TB007-508-02_1x02_P5.08mm_Horizontal | J5 |
The 161 most common of 162 parts.
Similar boards
- 2 layers486 × 306.3 mm

- 2 layers630 × 300 mm

- 4 layers254 × 137.7 mm

S100 ColorMagic-1.1-006
RichCini/LomasBoards
Small repository of files/data related to Lomas Data Products S-100 boards.
150 parts1 - 2 layers379.1 × 273.4 mm

NE Delta
frubem/NE_Delta_Schematics
Forked from https://codeberg.org/hkzlab/NE_Delta_Schematics
185 parts - 2 layers400.9 × 280.5 mm

- 2 layers364 × 203 mm

- 4 layers337.6 × 105.7 mm

ISA CGA
hkzlab/CGA_Redux
The Color Graphics Adapter Redux board is a more or less faithful clone of the original IBM CGA, based on the original schematics
170 parts56 - 2 layers426 × 307 mm

I7000
felipesanches/Itautec_I7000_KICAD
Esquemáticos do computador Itautec I-7000 G desenhados a partir de inspeção do circuito das PCBs
115 parts
Questions
How big is the MyCpu PCB?
It measures 194.5 × 188.6 mm and has 4 copper layers, 1.6 mm thick.
What parts does the MyCpu use?
162 parts, built around the 74LS245SC, 74LS374PC, 74LS00SC and 74LS153DC. 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.
Where can I download the MyCpu KiCad files?
From the fortinsylvain/MyCpu repository on GitHub, at the commit this page was made from: the board is Kicad/MyCPU.kicad_pcb and its schematic Kicad/MuCpu_counter.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the MyCpu design in my own project?
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).