Skip to the content
2 layers54 × 60 mmProgram Counter, the printed circuit board in 3D

Program Counter

AJain9199/AOS161

Table of Contents About The Project Pictures Technical Details Directory Structure To-Do Acknowledgments

Size
54 × 60 mm
Copper layers
2
Thickness
1.6 mm
Parts
50
Nets
76
Pads
261
Tracks, vias
561, 78
Pours
1
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
15 Feb 2025
Updated
7 Nov 2026

Overview

Program Counter is an open-source printed circuit board by AJain9199, from the AJain9199/AOS16 repository on GitHub. It is a 2-layer board of 54 × 60 mm with 50 parts on 76 nets, routed with 561 tracks and 78 vias.

It is built around the 74LS161DC. Its parts include 17 resistors, 16 diodes, 9 capacitors, 5 ICs and 3 connectors.

Main components

1

README

README.md

[blocked]


Logo

AOS16

A self-made 16-bit computer.

Table of Contents
  1. About The Project
  2. Pictures
  3. Technical Details
  4. Directory Structure
  5. To-Do
  6. Acknowledgments

About The Project

AOS16 is a self-made 16-bit Reduced Instruction Set Computer (RISC) on PCBs, complete with a homebrew GPU for screen output. It is fully planned, designed and fabricated from scratch. A Turing-complete, Harvard-style computer with a completely custom architecture, at a blistering fast 10MHz.

The project is divided into smaller subsytems on PCBs, designed to interconnect via a central bus.

Features

  • 16-bit address and data buses
  • Hardware double buffering with parallel CPU and GPU operation
  • 10 MHz clock
  • 6 general-purpose registers, a stack pointer and a flags register
  • 65 Kb of general purpose RAM
  • 131 Kb of framebuffer (double buffered, so 65Kb usable)
  • 131 Kb of program memory

Why?

This project was a learning effort for me. I started this project wanting to learn more about computer architectures and gain hands-on experience with electrical engineering. Also, building a computer, from scratch, is the coolest project I've seen around. Some inspiration from amazing engineers including Ben Eater and jdh were more than enough to convince me to try my hand at this project.

How's it different?

Most homebrew computers on the internet are 8-bit computers built on breadboards. AOS16 is novel in its capabilities, being a 16-bit computer built on PCBs with a much higher clock speed, with display support directly integrated.

(back to top)

Pictures

Simulation of Color Palette on Screen

A simulation of the computer in Digital displaying the color palette on the screen


A GPU Test

GPU displaying the pillars of creation


ALU PCB

The Arithmetic Logic Unit in KiCAD


Logic Simulation in Digital

The logic simulation in Digital.


Fabricated Reg4x16 PCB

The Reg4x16 PCB


Fabricated Double Buffer PCB

The Double Buffer PCB


(back to top)

Technical Details

Details about the design decisions, design of the instruction word, etc. can be found in the Design Doc.

Directory Structure

  • assembler: Contains the source code for the AOS16 assembler
  • sim: Logic simulation files written for Digital
  • microcode: Microcode implementations written in MiLa
  • tests: some basic tests for ICs and the simulation
  • common: basic KiCAD schematics (registers, transceivers) which are shared across subsystems

Each of the remaining folders represents a subsystem, built on a separate PCB. Each folder will contain a KiCAD schematic and PCB file.

To-do

Main Phases of the project:

  • Finalize project parameters and design goals
  • Hardware:
    • Logic Simulation and Design
    • PCB Design
    • PCB Fabrication & integration
  • Software:
    • Microcode (with MiLa)
    • Assembly language design
    • Assembler
    • ROM programming software

Component / PhaseLogic SimulationPCB DesignFabrication and Integration
Double Buffer✅✅✅
Memory Controller✅✅✅
ALU✅✅✅
Registers✅✅✅
Control Unit✅✅✅
Program Counter✅✅☐
GPU✅✅☐
Main Data Bus✅✅☐
Phase Completed✅✅☐

(back to top)

Acknowledgments

(back to top)

Parts

50
QtyValueFootprintReferences
16220Resistor_SMD:R_0603_1608MetricR2, R3, R4, R5, R6, R7, R8, R9, R10, R11, R12, R13, R14, R15, R16, R17
16LED_SmallLED_SMD:LED_0603_1608MetricD1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, D16
40.01uFCapacitor_SMD:C_0603_1608MetricC6, C7, C8, C9
40.1uFCapacitor_SMD:C_0603_1608MetricC1, C3, C4, C5
474LS161Package_SO:SOIC-16_4.55x10.3mm_P1.27mmU1, U2, U3, U4
2Conn_02x15_Odd_EvenConnector_IDC:IDC-Header_2x15_P2.54mm_VerticalJ2, J3
1100uFCapacitor_SMD:CP_Elec_5x5.3C2
11kResistor_SMD:R_0603_1608MetricR18
1Conn_01x05Connector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ1
1SN74AHCT16245DGGRPackage_SO:TSSOP-48_6.1x12.5mm_P0.5mmIC1

More from AJain9199/AOS16

12
  • 4 layers90 × 88 mmControl, the printed circuit board in 3D

    Control

    AJain9199/AOS16

    Table of Contents About The Project Pictures Technical Details Directory Structure To-Do Acknowledgments

    129 parts1
  • 4 layers81 × 60 mmAOS16 GPU, the printed circuit board in 3D

    AOS16 GPU

    AJain9199/AOS16

    Table of Contents About The Project Pictures Technical Details Directory Structure To-Do Acknowledgments

    118 parts1
  • 4 layers100 × 100 mmALU, the printed circuit board in 3D

    ALU

    AJain9199/AOS16

    Table of Contents About The Project Pictures Technical Details Directory Structure To-Do Acknowledgments

    82 parts1
  • 2 layers156 × 77 mmBus boards, the printed circuit board in 3D

    Bus boards

    AJain9199/AOS16

    Table of Contents About The Project Pictures Technical Details Directory Structure To-Do Acknowledgments

    78 parts1
  • 4 layers88 × 86 mmMemory Controller, the printed circuit board in 3D

    Memory Controller

    AJain9199/AOS16

    Table of Contents About The Project Pictures Technical Details Directory Structure To-Do Acknowledgments

    70 parts1
  • 4 layers50 × 75 mmAOS16 Double Buffer, the printed circuit board in 3D

    AOS16 Double Buffer

    AJain9199/AOS16

    Table of Contents About The Project Pictures Technical Details Directory Structure To-Do Acknowledgments

    69 parts1
  • 2 layers36.5 × 47 mmAOS16 Register, the printed circuit board in 3D

    AOS16 Register

    AJain9199/AOS16

    Table of Contents About The Project Pictures Technical Details Directory Structure To-Do Acknowledgments

    44 parts1
  • 2 layers18 × 77 mmBus Terminator, the printed circuit board in 3D

    Bus Terminator

    AJain9199/AOS16

    Table of Contents About The Project Pictures Technical Details Directory Structure To-Do Acknowledgments

    38 parts1
  • 2 layers46 × 39 mmClock, the printed circuit board in 3D

    Clock

    AJain9199/AOS16

    Table of Contents About The Project Pictures Technical Details Directory Structure To-Do Acknowledgments

    35 parts1
  • 2 layers33 × 36 mmAOS16 Timer, the printed circuit board in 3D

    AOS16 Timer

    AJain9199/AOS16

    Table of Contents About The Project Pictures Technical Details Directory Structure To-Do Acknowledgments

    30 parts1
  • 2 layers31 × 77 mmBus Probe, the printed circuit board in 3D

    Bus Probe

    AJain9199/AOS16

    Table of Contents About The Project Pictures Technical Details Directory Structure To-Do Acknowledgments

    27 parts1
  • 2 layers35 × 60 mmReg4x16, the printed circuit board in 3D

    Reg4x16

    AJain9199/AOS16

    Table of Contents About The Project Pictures Technical Details Directory Structure To-Do Acknowledgments

    24 parts1

Similar boards

  • 2 layers237.5 × 102.9 mmInstruction, the printed circuit board in 3D

    Instruction

    jes/scamp-cpu

    A homebrew 16-bit CPU with a homebrew Unix-like-ish operating system.

    112 parts301Unlicense
  • 2 layers365.1 × 203.2 mmDIAG, the printed circuit board in 3D

    DIAG

    Nakazoto/CenturionComputer

    This is just a simple backup of all the files related to the Centurion that I have stored on my HD. The Wiki itself has far more in-depth information about the Centurion and it's individual cards.

    150 parts172
  • 2 layers370.8 × 298.5 mm8 Bit Computer, the printed circuit board in 3D

    8 Bit Computer

    The-Invent0r/8-bit-Computer-PCB

    These are the KiCAD files for my 8-Bit Computer.

    323 parts142
  • 2 layers134.6 × 208.3 mmTs2, the printed circuit board in 3D

    Ts2

    jefftranter/68000

    Code related to the Motorola 68000 microprocessor.

    110 parts133
  • 2 layers155.2 × 78.6 mm80ColumnCard, the printed circuit board in 3D

    80ColumnCard

    btb/80ColumnCard

    An Apple II 80-Column Card. Based on the Videx Videoterm

    47 parts43Apache-2.0
  • 4 layers170 × 181 mm3ric, the printed circuit board in 3D

    3ric

    ebadger/3ric

    3ric homebrew computer repository

    150 parts32
  • 2 layersSap be, the printed circuit board in 3D

    Sap be

    kyllikki/eda-designs

    EDA designs

    148 parts32MIT
  • 2 layers157.5 × 73.9 mm8086 ISA ver2, the printed circuit board in 3D

    8086 ISA ver2

    homebrew8088/8086-PC-Compatible

    8086 PC Compatible

    50 parts27GPL-3.0

Questions

How big is the Program Counter PCB?

It measures 54 × 60 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Program Counter use?

50 parts, built around the 74LS161DC. 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 Program Counter KiCad files?

From the AJain9199/AOS16 repository on GitHub, at the commit this page was made from: the board is Program Counter/Program Counter.kicad_pcb and its schematic ALU/ALU.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Program Counter design in my own project?

Its repository states no licence, so its author keeps all rights: ask AJain9199 before reusing the design.