Skip to the content
2 layers124 × 86.8 mmALU, the printed circuit board in 3D

Designed and simulated a 4-bit microprocessor datapath using discrete logic, including an ALU, program counter, and memory units. Created full schematic and PCB layouts for all individual modules using KiCad, and successfully fabricated and tested the physical ALU board.

Size
124 × 86.8 mm
Copper layers
2
Thickness
1.6 mm
Parts
31
Nets
65
Pads
211
Tracks, vias
578, 39
Pours
11
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
29 Mar 2026
Updated
28 Aug 2026

Overview

ALU is an open-source printed circuit board by ashwinkumar-k-s, from the ashwinkumar-k-s/Custom-4-Bit-CPU-Architecture-and-PCB-Design repository on GitHub. It is a 2-layer board of 124 × 86.8 mm with 31 parts on 65 nets, routed with 578 tracks and 39 vias.

It is built around the 74LS153DC, 74LS86 and 74LS04PC, with the 74LS32SC among its other parts. Its parts include 11 connectors, 10 capacitors and 10 ICs.

Main components

4

README

README.md

Custom 4-Bit CPU Architecture and PCB Design

Designed and simulated a 4-bit microprocessor datapath using discrete logic, including an ALU, program counter, and memory units. Created full schematic and PCB layouts for all individual modules using KiCad, and successfully fabricated and tested the physical ALU board.

System Architecture

This project implements a rudimentary discrete logic 4-bit processor datapath. The architecture is modularly designed, consisting of the following key components:

Program Counter (PC)

  • 2 Bit Counter using D-Flip Flop to cycle between 4 instructions

Instruction Memory

  • A network of 8 4x1 MUXs to obtain an instruction of 8 bit wide and have 4 instructions at a time loaded. 8x4_instruction_memory

4x4 Memory Unit

  • Consists of 4 2x4 Decoders, 4 4-Bit Registers and 4 4x1 MUXs.
  • 2x4 Decoder : Used to load values into the register, controlled using Enable signals while in write mode.
  • 4-Bit Register: Receives data from Decoders, interconnected as, all Bit-0s from decoder to Register-1, all Bit-1s from decoder to Register-2, all Bit-2s from decoder to Register-3, all Bit-3s from decoder to Register-4.
  • 4x1 MUX: Used to read data from the register when in read mode, similar interconnect network as instruction memory. 4x4_memory_unit

Operand controller

  • Complementary pair of Tri-State Buffers connected to both Registers containing operand A and B operand selector

Arithmetic Logic Unit (ALU)

  • Could do 7 operations AND, OR, XOR, ADD, SUB, ROR, ROL.
  • AND, OR, XOR operations are directly computed from the received inputs directly using dedicated ICs.
  • ADD and SUB is done in a single circuit consisting of 2 Full adders and a XOR IC, where ADD = A+B and SUB = A + 2's complement(B).
  • Rotate operations ROR (right) and ROL (left) is done with a 4-bit barrel shifter(used to shift in a single clock cycle). 4_bit_alu

Output Control Unit

  • All the outputs are simultaneouslly calculated in the ALU,
  • Each output is 4-Bit wide and is connected to a dedicated set of 4-Bit Tri-state buffers controlled using a 3x8 Decoder to output the desired value.
    output_control_unit

Tools & Technologies

  • Logic Simulation: Cedar Logic
  • Schematic Capture & PCB Layout: KiCad
  • Hardware: Discrete logic ICs, custom fabricated PCB

Hardware Implementation & PCB Design

All functional modules were modeled, schematized, and routed as individual PCBs. The ALU module was fabricated in PCB and the rest were validated in breadboard circuitry.

Hardware implementation of 4x4 Memory unit

image
  • 4 4x1 MUXs - 74LS153.
  • 4 4-Bit Registers - 74LS173.
  • 4 2x4 Decoder - 74LS139.
image

Hardware implementation of Memory Data Register (Operand Selector)

image
  • 3 4-Bit Registers - 74LS173.
  • 1 8xTri-State Buffers - 74LS244.
  • 1x2 Decoder made using AND and NOT ICs.

ALU implementaion in PCB

alu pcb_re

  • AND - 7408.
  • OR - 7432.
  • XOR - 7486.
  • 4-Bit Full Adder - 7483.
  • 4x1 MUX - 74153.
image

Output Control Unit

output control

  • 3x8 Decoder - 74138.
  • 7 4-Bit Registers - 74173.

alu_full


KiCad PCB Layouts

image
image
  • PCB Layout of Memory Unit
image
image
  • PCB layout of ALU
image
image
  • PCB layout of Output Control Unit

Cedar Logic Simulation

4-bit cpu

Repository Structure

text
├── simulations/          # Cedar Logic simulation files
│   ├── full_layout 
├── kicad_projects/       # KiCad schematics and PCB layout files
│   ├── Output_control_unit/
│   ├── ALU_module/
│   └── 4x4_Memory_Unit/     
└── README.md

Contributors

This 4-bit CPU architecture and PCB design project was collaboratively developed as an assigned group project.

  • [Adithya Balesh (CB.EN.U4ECE23005)/adithyabalesh] - Digital Design and Hardware Verification and PCB

    • Instruction Memory and Component Integration and verification.
    • Hardware Implementation of Output control unit and ALU.
    • PCB routing and layout arrangement of memory.
    • Poster and Documentation.
  • [Ashwin Kumar K S (CB.EN.U4ECE23007)/ashwinkumar-k-s] - ALU Design and PCB routing,hardware implementaion

    • ALU, Output Control Unit and Datapath design.
    • Component Selection and Hardware implementation of ALU and Memory data register.
    • PCB routing, layout, and schematic generation of ALU and Output control Unit
    • Documentation and Github Repo Creation.
  • [Chokkalingam S (CB.EN.U4ECE23012)/-------] - Memory Design and hardware implementaion

    • Digital design of 4x4 Memory Unit, Memory Data Register Design and Pipeline/Interconnects accross all modules.
    • Hardware implementation and verification of Memory module and Instruction Memory.
    • PCB schematic of Memory module.
    • Documentation.
  • [Rohith J (CB.EN.U4ECE23017)/-------] - Digital Design and Hardware Verification

    • Digital design verification of all components.
    • Hardware circuit implementation of and Memory Units.
    • PCB schematic verification and soldering.
    • Poster, Presentation and Documentation

Parts

31
QtyValueFootprintReferences
100.1uFCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P2.50mmC1, C2, C3, C4, C5, C6, C7, C8, C9, C10
9Conn_01x04_SocketConnector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_VerticalJ1, J2, J4, J5, J6, J7, J8, J9, J10
274LS153Package_DIP:DIP-16_W7.62mm_LongPadsU8, U9
274LS83Package_DIP:DIP-16_W7.62mm_LongPadsU4, U5
274LS86Package_DIP:DIP-14_W7.62mm_LongPadsU3, U6
174LS04Package_DIP:DIP-14_W7.62mm_LongPadsU10
174LS08Package_DIP:DIP-14_W7.62mm_LongPadsU2
174LS138Package_DIP:DIP-16_W7.62mm_LongPadsU7
174LS32Package_DIP:DIP-14_W7.62mm_LongPadsU1
1Conn_01x02_SocketConnector_PinSocket_2.54mm:PinSocket_1x02_P2.54mm_VerticalJ12
1Conn_01x03_SocketConnector_PinSocket_2.54mm:PinSocket_1x03_P2.54mm_VerticalJ3

More from ashwinkumar-k-s/Custom-4-Bit-CPU-Architecture-and-PCB-Design

2
  • 2 layers109.7 × 102.9 mmNew memory, the printed circuit board in 3D

    New memory

    ashwinkumar-k-s/Custom-4-Bit-CPU-Architecture-and-PCB-Design

    Designed and simulated a 4-bit microprocessor datapath using discrete logic, including an ALU, program counter, and memory units.

    28 parts1
  • 2 layers149.6 × 35.1 mmControl, the printed circuit board in 3D

    Control

    ashwinkumar-k-s/Custom-4-Bit-CPU-Architecture-and-PCB-Design

    Designed and simulated a 4-bit microprocessor datapath using discrete logic, including an ALU, program counter, and memory units.

    26 parts1

Similar boards

  • 4 layers194.5 × 188.6 mmMyCpu, the printed circuit board in 3D

    MyCpu

    fortinsylvain/MyCpu

    Home brew CPU Hardware with 1-bit ALU implementation using 74LSxx, a micro-code and assembler coded in C#.

    162 parts18MIT
  • 2 layers236.8 × 169.8 mmTK2000, the printed circuit board in 3D

    TK2000

    clemarfolly/Microdigital-TK2000

    Reprodução da PCB do TK-2000 da Microdigital, clone do Micro-Professor MPF-II

    212 parts17
  • 2 layersNewBrain Original, the printed circuit board in 3D

    NewBrain Original

    flypie/NewBrain

    Newbury/Grundy NewBrain schematics

    209 parts5GPL-3.0
  • 2 layers221.5 × 149.5 mmZX1, the printed circuit board in 3D

    ZX1

    misterblack1/zenith_zt1

    Information gathered on the Zenith ZT-1 / ZT-10 / ZT-11 and ZTX/ZT-x-A variants

    140 parts5
  • 4 layers254 × 137.7 mmS100 ColorMagic-1.1-006, the printed circuit board in 3D

    S100 ColorMagic-1.1-006

    RichCini/LomasBoards

    Small repository of files/data related to Lomas Data Products S-100 boards.

    150 parts1
  • 2 layers486 × 306.3 mmMonacoGP, the printed circuit board in 3D

    MonacoGP

    stonedDiscord/MonacoGP

    Sega MonacoGP TTL Boards

    257 parts1
  • 2 layers426 × 307 mmI7000, the printed circuit board in 3D

    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
  • 2 layers630 × 300 mmSecretBase, the printed circuit board in 3D

    SecretBase

    stonedDiscord/SecretBase

    SEGA Secret Base Arcade Game

    441 parts

Questions

How big is the ALU PCB?

It measures 124 × 86.8 mm and has 2 copper layers, 1.6 mm thick.

What parts does the ALU use?

31 parts, built around the 74LS153DC, 74LS86, 74LS04PC and 74LS32SC. 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 ALU KiCad files?

From the ashwinkumar-k-s/Custom-4-Bit-CPU-Architecture-and-PCB-Design repository on GitHub, at the commit this page was made from: the board is kicad_projects/ALU_module/ALU.kicad_pcb and its schematic kicad_projects/4x4_Memory_Unit/new_memory/new_memory.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the ALU design in my own project?

Its repository states no licence, so its author keeps all rights: ask ashwinkumar-k-s before reusing the design.