Skip to the content
4 layers100 × 51.9 mmProgram counter, the printed circuit board in 3D

Project files for Ytterbium modular CPU platform and Yprog programming tool

Size
100 × 51.9 mm
Copper layers
4
Thickness
1.63 mm
Parts
62
Nets
105
Pads
406
Tracks, vias
1,480, 362
Pours
340
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
15 Jun 2026
Updated
13 Aug 2026

Overview

Program counter is an open-source printed circuit board by jerry-kerenzikov, from the jerry-kerenzikov/ytterbium repository on GitHub, published under the CERN-OHL-S-2.0 licence. It is a 4-layer board of 100 × 51.9 mm with 62 parts on 105 nets, routed with 1,480 tracks and 362 vias.

It is built around the 74HC245D, 74HC161S and 74LVC2G14GW. Its parts include 23 resistors, 13 capacitors, 13 ICs, 5 diodes and 5 connectors.

Main components

3

README

README.md

Ytterbium

Overview

Ytterbium is a project of educational modular CPU platform, aiming to help understand principles of CPU architecture design. Ytterbium is not a model of certain CPU but a universal structure that makes possible recreating different simple CPU architectures using the same set of modules.

Specs:

  • Lattice ICE40HX-4K FPGA as CPU control logic
  • 16-bit main bus
  • 8-bit instruction register
  • 12 universal module connectors
  • Up to 64KB of ROM/RAM memory
  • 3.3V supply
  • 4 layer PCB

Current project status

This project is currently in prototype stage, and as such some things may still be broken or incomplete. At this moment one architecture, sap-2, has dedicated microcode. I also plan to develop sap-1 and, if it proves possible, 8051-compatible architecture.

Writing code for Ytterbium

The standard way of writing code for Ytterbium-based CPUs is manual assembly of a binary file. However, you can also use assemblers if they are compatible with your instruction set. For example, as sap-2 instruction set is reduced version of 8085 set, programs for it can be written in 8085 assembly and compiled with 8085 assembler as long as you use only supported instructions. For this purpose I'm using asm85 by Tom Nisbet. To assemble your program for sap-2 just type asm85 -b 0000:07FF <your program>.asm which will create 2kB binary file.

Building and flashing

yprog:

Requirements: any C compiler

  1. gcc yprog.c -o yprog
  2. Optionally copy executable to /usr/local/bin/ to use it system-wide

Programmer firmware:

Requirements: vscode or vscodium and raspberry pi pico project extension

  1. If you don't mean to make any changes to the code, you may want to skip to step 5 and use prebuilt uf2 file included in the directory
  2. Open folder with files in vscode or vscodium
  3. After opening folder with project files pico extension should automatically prompt you to import project; select import. You can also select manually import project option from pi pico project extension menu
  4. Compile project
  5. To upload compiled file onto programmer, hold BOOTSEL button on Raspberry PI Pico while connecting USB cable, a drive named RPI-RP2 or similar should appear
  6. then copy .uf2 file from build directory to the RPI drive

ALU verilog description:

Requirements: yprog, ytterbium programmer with flashed firmware, yosys, nextpnr-ice40, icepack. For convenience I recommend installing oss-cad-suite package containing all necessary software for FPGA synthesis including yosys, nextpnr-ice40 and icepack.

  1. If you don't mean to make any changes to the code, you may want to skip to step 5 and use prebuilt bitstream included in the directory
  2. yosys -p "read_verilog alu.v; synth_ice40 -json alu.json;"
  3. nextpnr-ice40 --json alu.json --pcf pinmap.pcf --asc alu.asc --u2k --package sg48
  4. icepack alu.asc alu.bin
  5. To flash bitstream onto ALU board, unplug ALU and programmer, then connect programmer to the ALU's programming connector with upper left part of programmer's connector, as shown on the photo
  6. Connect programmer to your PC and check with sudo dmesg | grep ttyACM if programmer is detected. Two serial ports should appear to be recently connected. The first port is pico stdio debug output, the second one is our transmission channel, if there are none other ACM devices plugged in, it should be named ttyACM1
  7. sudo yprog --portname /dev/ttyACM1 --write-flash alu.bin to write binary file into configuration memory

Microcode:

Requirements: yprog, ytterbium programmer with flashed firmware, yosys, nextpnr-ice40, icepack. As in case of ALU, I recommend installing oss-cad-suite for FPGA synthesis tools.

  1. If you don't mean to make any changes to the code, you can skip to step 5 and use prebuilt bitstream included in the directory
  2. yosys -p "read_verilog microcode.v; synth_ice40 -json microcode.json;"
  3. nextpnr-ice40 --json microcode.json --pcf pinmap.pcf --asc microcode.asc --hx4k --package tq144
  4. icepack microcode.asc microcode.bin
  5. Connect programmer to the mainboard
  6. sudo yprog --portname /dev/ttyACM1 --write-flash microcode.bin After this procedure green diode CONFIG DONE should light up

ROM:

Requirements: yprog, hex editor of your choice

  1. Create binary file with your program, I use ghex to edit binary files
  2. sudo yprog --portname /dev/ttyACM1 --write-rom <your program name>.bin

Known issues:

  • after writing configuration to flash contents of rom memory may be corrupted, but not sure if it still persists
  • microinstruction counter led indicator should retain its value when clc is driven low untill next clock rising edge
  • clock module produces too slow edges, FPGA is fast enough that it changes its control word untill clock completes transition causing sometimes unexpected behavior like writing registers on setup (falling) edge instead on execution (rising) edge
  • readability of cpu control signal indicators is very poor
  • device lacks mounting bracket
  • module insertion and removal is not very convenient

Parts

62
QtyValueFootprintReferences
21R_USResistor_SMD:R_0603_1608MetricR1, R2, R10, R11, R12, R13, R14, R15, R16, R17, R18, R19, R20, R21, R22, R23 +5
13100nCapacitor_SMD:C_0603_1608MetricC1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13
674HC245Package_SO:TSSOP-20_4.4x6.5mm_P0.65mmU5, U6, U7, U8, U9, U10
5LEDLED_SMD:LED_0805_2012MetricD1, D2, D3, D4, D5
474HC161Package_SO:SOP-16_4.4x10.4mm_P1.27mmU1, U2, U3, U4
374LVC2G14Package_TO_SOT_SMD:SOT-23-6U11, U12, U13
210kResistor_SMD:R_0603_1608MetricR4, R5
2B08custom:LED_BAR_08BAR1, BAR2
2xRResistor_SMD:R_0603_1608MetricJ2, J3
1Conn_01x02Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ4
1Conn_01x03Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ5
1Conn_02x20_Top_BottomConnector_PinHeader_2.54mm:PinHeader_2x20_P2.54mm_HorizontalJ1
1MountingHole_3.2mm_M3_Pad_ViaMountingHole:MountingHole_3.2mm_M3_Pad_ViaH1

More from jerry-kerenzikov/ytterbium

9
  • 4 layers181.5 × 182.3 mmStencil, the printed circuit board in 3D

    Stencil

    jerry-kerenzikov/ytterbium

    Project files for Ytterbium modular CPU platform and Yprog programming tool

    421 partsCERN-OHL-S-2.0
  • 4 layers82 × 400 mmYtterbium, the printed circuit board in 3D

    Ytterbium

    jerry-kerenzikov/ytterbium

    Project files for Ytterbium modular CPU platform and Yprog programming tool

    186 partsCERN-OHL-S-2.0
  • 4 layers100 × 51.9 mmAlu, the printed circuit board in 3D

    Alu

    jerry-kerenzikov/ytterbium

    Project files for Ytterbium modular CPU platform and Yprog programming tool

    79 partsCERN-OHL-S-2.0
  • 4 layers100 × 51.8 mm8-bit register, the printed circuit board in 3D

    8-bit register

    jerry-kerenzikov/ytterbium

    Project files for Ytterbium modular CPU platform and Yprog programming tool

    66 partsCERN-OHL-S-2.0
  • 4 layers100 × 51.9 mmMemory 64K, the printed circuit board in 3D

    Memory 64K

    jerry-kerenzikov/ytterbium

    Project files for Ytterbium modular CPU platform and Yprog programming tool

    60 partsCERN-OHL-S-2.0
  • 4 layers100 × 36 mmClock generator, the printed circuit board in 3D

    Clock generator

    jerry-kerenzikov/ytterbium

    Project files for Ytterbium modular CPU platform and Yprog programming tool

    42 partsCERN-OHL-S-2.0
  • 4 layers100 × 31.6 mmInstruction register, the printed circuit board in 3D

    Instruction register

    jerry-kerenzikov/ytterbium

    Project files for Ytterbium modular CPU platform and Yprog programming tool

    28 partsCERN-OHL-S-2.0
  • 4 layers100 × 30 mmMicroinstruction counter, the printed circuit board in 3D

    Microinstruction counter

    jerry-kerenzikov/ytterbium

    Project files for Ytterbium modular CPU platform and Yprog programming tool

    27 partsCERN-OHL-S-2.0
  • 4 layers100 × 41.5 mmProgrammer, the printed circuit board in 3D

    Programmer

    jerry-kerenzikov/ytterbium

    Project files for Ytterbium modular CPU platform and Yprog programming tool

    26 partsCERN-OHL-S-2.0

Similar boards

  • 2 layers245.1 × 160 mm8-Bit CPU 32k, the printed circuit board in 3D

    8-Bit CPU 32k

    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.

    139 parts326
  • 2 layers191.8 × 121.3 mm8-Bit CPU 32k, the printed circuit board in 3D

    8-Bit CPU 32k

    slu4coder/Minimal-UART-Computer-1-2

    Legacy: Version 1 and 2 of my TTL-only CPU featuring UART I/O, an expansion port, 512KB SSD at up to 10MHz clock speed

    109 parts184
  • 2 layers306.1 × 130.2 mm8-Bit CPU 32k, the printed circuit board in 3D

    8-Bit CPU 32k

    slu4coder/Minimal-64-Home-Computer

    Legacy: Full TTL-only home computer with VGA and PS/2 and twice the processing power of a Commodore 64

    132 parts94
  • 2 layers208.9 × 170.8 mm8-Bit CPU 32k, the printed circuit board in 3D

    8-Bit CPU 32k

    slu4coder/Minimal-UART-Computer-3

    Version 3 of my educational DIY TTL computer built around a UART serial interface - now with blinkenlights!

    207 parts54
  • 2 layers208 × 110 mm8 16 computer 2, the printed circuit board in 3D

    8 16 computer 2

    halfburnttoast/TCPU816-v1

    Version 1.1 of my 8-bit, TTL computer.

    120 parts21
  • 4 layers158.8 × 104.1 mm8-Bit CPU, the printed circuit board in 3D

    8-Bit CPU

    frenchie/8-Bit-Computer

    An 8-Bit Computer

    323 parts20
  • 2 layers178 × 711 mmMSAP-2 rev.A SMD, the printed circuit board in 3D

    MSAP-2 rev.A SMD

    mehrantsi/MSAP-2

    An 8-bit computer. Successor to MSAP-1

    658 parts13MIT
  • 2 layers152.4 × 162.6 mmVGA, the printed circuit board in 3D

    VGA

    GeraKuznetsov/M68K-MBC

    A M68k Multi-Board Computer design. The design basics is as follows: 1) A backplane PCB contains the majority of the bus, such as the address and data lines. 2) Cards slot into the backplane.

    143 parts10

Questions

How big is the Program counter PCB?

It measures 100 × 51.9 mm and has 4 copper layers, 1.63 mm thick.

What parts does the Program counter use?

62 parts, built around the 74HC245D, 74HC161S and 74LVC2G14GW. 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 jerry-kerenzikov/ytterbium repository on GitHub, at the commit this page was made from: the board is pcb/pl/program_counter/program_counter.kicad_pcb and its schematic pcb/pl/8-bit_register/8-bit_register.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 publishes it under the CERN-OHL-S-2.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).