Skip to the content
4 layers100 × 41.5 mmProgrammer, the printed circuit board in 3D

Project files for Ytterbium modular CPU platform and Yprog programming tool

Size
100 × 41.5 mm
Copper layers
4
Thickness
1.63 mm
Parts
26
Nets
67
Pads
236
Tracks, vias
520, 194
Pours
47
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
15 Jun 2026
Updated
13 Aug 2026

Overview

Programmer 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 × 41.5 mm with 26 parts on 67 nets, routed with 520 tracks and 194 vias.

It is built around the 74HC165D and 74HC595. Its parts include 13 resistors, 4 capacitors, 4 ICs, 1 connector and 1 switch. It belongs with the interfaces and adapters boards and the RP2040 boards of this library.

Main components

2

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

26
QtyValueFootprintReferences
1250RResistor_SMD:R_0603_1608MetricR1, R2, R3, R4, R5, R6, R7, R8, R10, R11, R12, R13
4100nCapacitor_SMD:C_0603_1608MetricC1, C2, C3, C4
274HC165Package_SO:SOP-16_4.4x10.4mm_P1.27mmU3, U4
274HC595Package_SO:SOP-16_4.4x10.4mm_P1.27mmU1, U2
2MountingHole_PadMountingHole:MountingHole_3.2mm_M3_Pad_ViaH1, H2
110kResistor_SMD:R_0603_1608MetricR9
1Conn_02x16_Top_BottomConnector_PinSocket_2.54mm:PinSocket_2x16_P2.54mm_HorizontalJ17
1RaspberryPi_PicoModule:RaspberryPi_Pico_Common_UnspecifiedA1
1SW_PushButton_Switch_THT:SW_PUSH_6mmSW1

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 mmProgram counter, the printed circuit board in 3D

    Program counter

    jerry-kerenzikov/ytterbium

    Project files for Ytterbium modular CPU platform and Yprog programming tool

    62 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

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 layers171.5 × 106.7 mmSequencer, the printed circuit board in 3D

    Sequencer

    westlicht/performer-hardware

    PER|FORMER Eurorack Sequencer - Hardware Design Files

    435 parts110
  • 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 layers148.8 × 132.2 mmUsbflashprog, the printed circuit board in 3D

    Usbflashprog

    robsonsmartins/usbflashprog

    A memory device programmer (Flash/EPROM/E2PROM) board and software, connected to PC by USB port.

    125 parts36
  • 4 layers120 × 100 mmBsc, the printed circuit board in 3D

    Bsc

    shining-man/bsc_hw

    Hardware battery safety controller (BSC)

    286 parts31MIT
  • 2 layers56 × 110 mmTrs pcb, the printed circuit board in 3D

    Trs pcb

    Windfisch/midikraken

    A open source, open hardware up-to-16x USB-MIDI-interface for around 15 bucks in its smallest configuration.

    125 parts28

Questions

How big is the Programmer PCB?

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

What parts does the Programmer use?

26 parts, built around the 74HC165D and 74HC595. 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 Programmer KiCad files?

From the jerry-kerenzikov/ytterbium repository on GitHub, at the commit this page was made from: the board is pcb/pl/programmer/programmer.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 Programmer 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).