Build a RISC-V CPU: from logic gates to Minecraft
11 steps · about 8 h 15 min · Intermediate
- Project 1: Boolean Logic (tutorial, Nand2Tetris (Nisan & Schocken), 1 h)
Every CPU starts as logic gates, so you first build the basic gate set from NAND.
- CHUNGUS 2 - A very powerful 1-Hz Minecraft CPU (article, Electronic Design, 15 min)
It shows redstone gates and a full adder scaling up to a pipelined CPU that plays Tetris, which sets the scene for the Minecraft builds.
- RISC-V assembly course: free interactive lessons (interactive, ASM Editor (Specy), 1 h 30 min)
You learn the 32 registers, memory and the instruction set that a RISC-V core has to implement.
- RISC-V Assembly Tutorial with Examples (tutorial, StudyRISC-V, 45 min)
You run loops, branches, memory access and function calls and watch the machine state change after each instruction.
- Learn Multi platform Risc-V Assembly Programming (tutorial, ChibiAkumas, 1 h)
This is a second lesson series on the RARS simulator, with a cheatsheet that shows how instructions become bytecode.
- riscv/learn: Tracking RISC-V Actions on Education, Training, Courses (repo, RISC-V International (GitHub), 20 min)
It is the official map to free RISC-V courses, manuals and the Building a RISC-V CPU Core course.
- RISC-MC8: An 8-bit CPU designed for Minecraft (repo, Jmcgee01125 (GitHub), 40 min)
A small ISA with an assembler and a schematic generator shows the full path from assembly to ROM in a Minecraft CPU.
- Build a RISC-V CPU From Scratch (article, IEEE Spectrum, 25 min)
It describes how a builder went from the official RISC-V manual to a working 32-bit CPU simulation.
- risc-v-single-cycle (repo, martinKindall (GitHub), 1 h)
You can read a complete RV32I single-cycle CPU in SystemVerilog, with the steps documented.
- riscv-mc: A riscv emulator based on minecraft datapack (repo, winsrewu (GitHub), 1 h)
You compile a C program with the RISC-V toolchain and run it inside Minecraft as an RV32I emulator.
- Verilog-to-Redstone Chip Compiler & 3D 32-Bit RISC-V Core (article, Pure Engineering, 20 min)
The last step shows how a hardware-description design can be compiled automatically into a RV32I core in redstone.