
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
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.
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 |
|---|---|---|---|
| 12 | 50R | Resistor_SMD:R_0603_1608Metric | R1, R2, R3, R4, R5, R6, R7, R8, R10, R11, R12, R13 |
| 4 | 100n | Capacitor_SMD:C_0603_1608Metric | C1, C2, C3, C4 |
| 2 | 74HC165 | Package_SO:SOP-16_4.4x10.4mm_P1.27mm | U3, U4 |
| 2 | 74HC595 | Package_SO:SOP-16_4.4x10.4mm_P1.27mm | U1, U2 |
| 2 | MountingHole_Pad | MountingHole:MountingHole_3.2mm_M3_Pad_Via | H1, H2 |
| 1 | 10k | Resistor_SMD:R_0603_1608Metric | R9 |
| 1 | Conn_02x16_Top_Bottom | Connector_PinSocket_2.54mm:PinSocket_2x16_P2.54mm_Horizontal | J17 |
| 1 | RaspberryPi_Pico | Module:RaspberryPi_Pico_Common_Unspecified | A1 |
| 1 | SW_Push | Button_Switch_THT:SW_PUSH_6mm | SW1 |

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.

westlicht/performer-hardware
PER|FORMER Eurorack Sequencer - Hardware Design Files

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!

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


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

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