Skip to the content
4 layers45.7 × 83.8 mmSrambrd, the printed circuit board in 3D

Risc-V pipelined CPU and SoC written in SystemVerilog

Size
45.7 × 83.8 mm
Copper layers
4
Thickness
4.69 mm
Parts
24
Nets
65
Pads
164
Tracks, vias
805, 36
Pours
2
Routed
Yes
KiCad
KiCad 6 (file 20211014)
Created
12 Mar 2023
Updated
5 May 2025

Overview

Srambrd is an open-source printed circuit board by apistol78, from the apistol78/rv32 repository on GitHub. It is a 4-layer board of 45.7 × 83.8 mm with 24 parts on 65 nets, routed with 805 tracks and 36 vias.

It is built around the IS61LV25616AL-10T. Its parts include 9 resistors, 8 capacitors, 4 connectors and 1 IC. It belongs with the fPGA and programmable logic boards and the RP2040 and FPGA and CPLD boards of this library.

Main components

1

README

readme.md

MOJO Risc-V CPU and System-on-a-Chip

The MOJO SOC is an educational and fun system for FPGA and "Bare metal" programming experimentations.
It's a RISC-V CPU running at 100 MHz, 32 MiB RAM, audio and 320*200 video resolution. To make user input easy I've moved USB host functionality to an external PCB using Raspberry Pico as a FPGA <-> HID bridge.

Prerequisites

This project require an install of Traktor to generate required resources. You will also need a RISC-V GCC toolchain compiled and installed at /opt/riscv32/bin on your machine.

How to build

Run build.sh to build host (i.e. Linux) and target products:

text
./build.sh

After everything has been built you should be able to run the emulators:

text
./build/linux/ReleaseStatic/Rv32T -elf=./build/rv32/ReleaseStatic/Boot

or

text
./build/linux/ReleaseStatic/Rv32 -elf=./build/rv32/ReleaseStatic/Boot

CPU

MOJO CPU is a conventional 5-stage (F,D,X,M,W) pipelined RISC-V CPU. It also contain configurable data- and instruction caches.

Written using SystemVerilog and are split up into logical pieces where each stage of the pipeline is in a separate module:

ModuleDescription
CPU_ALUALU unit, fully combinatorial
CPU_CSRCSR control unit
CPU_DCache_CombData cache, combinatorial
CPU_DCache_RegData cache, registered
CPU_DCache_NoneData cache, disabled
CPU_DecodeDecode stage
CPU_DefinesCPU defines
CPU_DivideDivison wrapper, usually implemented with a vendor IP
CPU_ExecuteExecute stage
CPU_FetchFetch stage
CPU_ForwardRegister forwarding logic
CPU_ICache_CombInstruction cache, combinatorial
CPU_ICache_RegInstruction cache, registered
CPU_ICache_NoneInstruction cache, disabled
CPU_MemoryMemory stage
CPU_MultiplyMultiplication wrapper, usually implemented with a vendor IP
CPU_RegistersRegister file
CPU_SkidBufferGeneralized skid-buffer
CPU_TypesCPU types
CPU_WritebackWriteback stage

Perifherials

A lot of perifherial modules has been implemented as port of the SoC:

ModuleDescription
AUDIO_controller, AUDIO_i2s_output, AUDIO_pwm_outputPCM based audio modules
BRAMVarious block-ram modules
BRIDGEBUS bridge, to separate BUS devices for improved timing.
BROMBlock-rom module
BusAccessBUS multiplexed access
ClockDividerGeneric clock divider
DMADirect memory access controller
FIFO_BRAMBlock ram backed FIFO
FIFORegister backed FIFO
GPIOGeneral purpose IO controller
I2CI2C controller
LEDLED controller
PLICPLIC interrupt controller
RESETReset controller
SDSD controller
SDRAM_controllerGeneric SDRAM controller
SRAM_interfaceGeneric SRAM controller
SystemRegistersSystem wide register map
TimerHardware timer with compare
UARTUART controller
VIDEO_controllerVideo output controller
VIDEO_VGAVideo VGA signal generator
WriteBufferWrite buffer (queue) with readback or read-through

System-on-a-Chip

A couple of custom PCBs designed to connect to QM-Tech FPGA boards is the physical basis for MOJO SoC. The SoC support following perifherials:

  • HDMI output
  • Stereo audio output through PWM and through I2S HDMI.
  • SD card interface using 4-bit SD protocol.
  • 2 UARTs, one for host and one for HID input.
  • Raspberry Pico based USB host to FPGA bridge supporting three external HID devices (keyboard, mouse and gamepad).

Emulators

Two different emulators, one C++ highlevel emulator and one based on Verilator. The highlevel is useful for application development and the other is used for verification of gate level logic.

Runtime

C/C++ runtime library, including a preemptive multithreaded kernel, expose all hardware features to user programs. Support CRT for easy portability.

Schematics

KiCad schematics for all perifherial boards are available and been built using JLCPCB.

Parts

24
QtyValueFootprintReferences
94k7Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR1, R2, R3, R4, R5, R6, R7, R8, R9
410nFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC3, C4, C5, C6
2100nFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC1, C2
2100uFCapacitor_SMD:CP_Elec_5x5.3C7, C8
2Conn_01x03Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ3, J4
2MountingHoleMountingHole:MountingHole_3.2mm_M3_DIN965_PadH1, H2
1IS61LV25616ALPackage_SO:TSOP-II-44_10.16x18.41mm_P0.8mmU1
1LEFTConnector_PinSocket_2.54mm:PinSocket_2x32_P2.54mm_VerticalJ1
1Micro_SD_CardConnector_Card:microSD_HC_Hirose_DM3D-SFJ2

More from apistol78/rv32

9
  • 4 layers183.4 × 143.1 mmMotherboard, the printed circuit board in 3D

    Motherboard

    apistol78/rv32

    Risc-V pipelined CPU and SoC written in SystemVerilog

    126 parts1
  • 2 layers129 × 41.9 mmUsb host hub, the printed circuit board in 3D

    Usb host hub

    apistol78/rv32

    Risc-V pipelined CPU and SoC written in SystemVerilog

    61 parts1
  • 2 layers42.7 × 83.8 mmHdmi brd, the printed circuit board in 3D

    Hdmi brd

    apistol78/rv32

    Risc-V pipelined CPU and SoC written in SystemVerilog

    42 parts1
  • 2 layers47 × 83.8 mmQm k7 aux brd, the printed circuit board in 3D

    Qm k7 aux brd

    apistol78/rv32

    Risc-V pipelined CPU and SoC written in SystemVerilog

    27 parts1
  • 2 layers38.1 × 83.8 mmIobrd, the printed circuit board in 3D

    Iobrd

    apistol78/rv32

    Risc-V pipelined CPU and SoC written in SystemVerilog

    22 parts1
  • 2 layersHdmi tx, the printed circuit board in 3D

    Hdmi tx

    apistol78/rv32

    Risc-V pipelined CPU and SoC written in SystemVerilog

    20 parts1
  • 2 layers30.5 × 83.8 mmLcdbrd, the printed circuit board in 3D

    Lcdbrd

    apistol78/rv32

    Risc-V pipelined CPU and SoC written in SystemVerilog

    13 parts1
  • 2 layers68.6 × 99.1 mmLcd, the printed circuit board in 3D

    Lcd

    apistol78/rv32

    Risc-V pipelined CPU and SoC written in SystemVerilog

    3 parts1
  • 2 layers27.4 × 63.2 mmStm32f breakout, the printed circuit board in 3D

    Stm32f breakout

    apistol78/rv32

    Risc-V pipelined CPU and SoC written in SystemVerilog

    3 parts1

Similar boards

  • 4 layers38 × 38 mmEthersweep, the printed circuit board in 3D

    Ethersweep

    Neumi/ethersweep

    Open Source, easy to use Ethernet connected stepper motor controller. Built in FreeCAD, KiCAD and Arduino.

    24 parts587
  • 4 layers192.1 × 126.9 mmStradex1, the printed circuit board in 3D

    Stradex1

    Bylin-code/Stradex1

    STRADEX1 Documentation and Build Instructions ============== I've always wanted to put my violin skills to use in a MIDI environment, but there really isn't a controller on the market that can emulate the feel of a…

    24 parts101
  • 4 layers87.4 × 19.4 mmXboxUSB C, the printed circuit board in 3D

    XboxUSB C

    Redherring32/Xbox-Portable

    Fully portable original (2001) Xbox handheld using real hardware

    24 parts93
  • 4 layers25 × 36.5 mmMAX M10S Passive, the printed circuit board in 3D

    MAX M10S Passive

    John-owo/pcb-agent-workflow

    用 Claude Code/Codex 搭配 KiCad 10 設計 PCB、交 JLCPCB 製造的工作流程:流程文件、專案範本、JLC 客服溝通 skill、生產稿比對腳本與範例設計

    24 parts76MIT
  • 4 layers35.1 × 25.3 mmDualClockLO, the printed circuit board in 3D

    DualClockLO

    DRWJSCHMIDT/T41

    This is the repository for the officially released V10, V11, and V12 versions of the T41 Software Defined Transceiver hardware and kits.

    24 parts66
  • 4 layers14.8 × 38.8 mmPocket knife sense, the printed circuit board in 3D

    Pocket knife sense

    unsurv/NFC_temp

    passive temperature NFC tag

    24 parts49
  • 4 layersTiav3 s13360 3030VE, the printed circuit board in 3D

    Tiav3 s13360 3030VE

    OpenSiPM/sipm-bias-control

    Single channel silicon photomultipliers for high-speed fluorescence imaging

    24 parts44
  • 4 layers65 × 30 mmGimmeGPIO, the printed circuit board in 3D

    GimmeGPIO

    mayermakes/GimmeGPIO

    hardware to add GPIO to any PC running Linux

    24 parts35GPL-3.0

Questions

How big is the Srambrd PCB?

It measures 45.7 × 83.8 mm and has 4 copper layers, 4.69 mm thick.

What parts does the Srambrd use?

24 parts, built around the IS61LV25616AL-10T. 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 Srambrd KiCad files?

From the apistol78/rv32 repository on GitHub, at the commit this page was made from: the board is schematics/sdrambrd/srambrd.kicad_pcb and its schematic schematics/hdmi brd/hdmi brd.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Srambrd design in my own project?

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