
Stencil
jerry-kerenzikov/ytterbium
Project files for Ytterbium modular CPU platform and Yprog programming tool

Project files for Ytterbium modular CPU platform and Yprog programming tool
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.
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.

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.
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.
Requirements: any C compiler
gcc yprog.c -o yprogRequirements: vscode or vscodium and raspberry pi pico project extension
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.
yosys -p "read_verilog alu.v; synth_ice40 -json alu.json;"nextpnr-ice40 --json alu.json --pcf pinmap.pcf --asc alu.asc --u2k --package sg48icepack alu.asc alu.binsudo 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 ttyACM1sudo yprog --portname /dev/ttyACM1 --write-flash alu.bin to write binary file into configuration memoryRequirements: 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.
yosys -p "read_verilog microcode.v; synth_ice40 -json microcode.json;"nextpnr-ice40 --json microcode.json --pcf pinmap.pcf --asc microcode.asc --hx4k --package tq144icepack microcode.asc microcode.binsudo yprog --portname /dev/ttyACM1 --write-flash microcode.bin
After this procedure green diode CONFIG DONE should light upRequirements: yprog, hex editor of your choice
sudo yprog --portname /dev/ttyACM1 --write-rom <your program name>.bin| Qty | Value | Footprint | References |
|---|---|---|---|
| 21 | R_US | Resistor_SMD:R_0603_1608Metric | R1, R2, R10, R11, R12, R13, R14, R15, R16, R17, R18, R19, R20, R21, R22, R23 +5 |
| 13 | 100n | Capacitor_SMD:C_0603_1608Metric | C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13 |
| 6 | 74HC245 | Package_SO:TSSOP-20_4.4x6.5mm_P0.65mm | U5, U6, U7, U8, U9, U10 |
| 5 | LED | LED_SMD:LED_0805_2012Metric | D1, D2, D3, D4, D5 |
| 4 | 74HC161 | Package_SO:SOP-16_4.4x10.4mm_P1.27mm | U1, U2, U3, U4 |
| 3 | 74LVC2G14 | Package_TO_SOT_SMD:SOT-23-6 | U11, U12, U13 |
| 2 | 10k | Resistor_SMD:R_0603_1608Metric | R4, R5 |
| 2 | B08 | custom:LED_BAR_08 | BAR1, BAR2 |
| 2 | xR | Resistor_SMD:R_0603_1608Metric | J2, J3 |
| 1 | Conn_01x02 | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | J4 |
| 1 | Conn_01x03 | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J5 |
| 1 | Conn_02x20_Top_Bottom | Connector_PinHeader_2.54mm:PinHeader_2x20_P2.54mm_Horizontal | J1 |
| 1 | MountingHole_3.2mm_M3_Pad_Via | MountingHole:MountingHole_3.2mm_M3_Pad_Via | H1 |

jerry-kerenzikov/ytterbium
Project files for Ytterbium modular CPU platform and Yprog programming tool

jerry-kerenzikov/ytterbium
Project files for Ytterbium modular CPU platform and Yprog programming tool

jerry-kerenzikov/ytterbium
Project files for Ytterbium modular CPU platform and Yprog programming tool

jerry-kerenzikov/ytterbium
Project files for Ytterbium modular CPU platform and Yprog programming tool

jerry-kerenzikov/ytterbium
Project files for Ytterbium modular CPU platform and Yprog programming tool

jerry-kerenzikov/ytterbium
Project files for Ytterbium modular CPU platform and Yprog programming tool

jerry-kerenzikov/ytterbium
Project files for Ytterbium modular CPU platform and Yprog programming tool

jerry-kerenzikov/ytterbium
Project files for Ytterbium modular CPU platform and Yprog programming tool

jerry-kerenzikov/ytterbium
Project files for Ytterbium modular CPU platform and Yprog programming tool

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.

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

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

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




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.
It measures 100 × 51.9 mm and has 4 copper layers, 1.63 mm thick.
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.
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.
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).