Skip to main content
QUICK REVIEW

[Paper Review] A portable and Linux capable RISC-V computer system in Verilog HDL

Junya Miura, Hiromu Miyazaki|arXiv (Cornell University)|Feb 10, 2020
Parallel Computing and Optimization TechniquesComputer Science4 references6 citations
TL;DR

This paper presents RVSoC, a portable, Linux-capable RISC-V computer system implemented in Verilog HDL targeting low-cost FPGAs. It supports RV32IMAC, uses a 12-stage multi-cycle processor with dual memory access for atomic instructions, and achieves Linux boot in under 6 minutes with minimal hardware resources—making it ideal for education and embedded accelerator development.

ABSTRACT

RISC-V is an open and royalty free instruction set architecture which has been developed at the University of California, Berkeley. The processors using RISC-V can be designed and released freely. Because of this, various processor cores and system on chips (SoCs) have been released so far. However, there are a few public RISC-V computer systems that are portable and can boot Linux operating systems. In this paper, we describe a portable and Linux capable RISC-V computer system targeting FPGAs in Verilog HDL. This system can be implemented on an FPGA with fewer hardware resources, and can be implemented on low cost FPGAs or customized by introducing an accelerator. This paper also describes the knowledge obtained through the development of this RISC-V computer system.

Motivation & Objective

  • To design a portable, Linux-capable RISC-V computer system that runs on low-cost FPGAs.
  • To support full RISC-V privilege levels, CSR instructions, and atomic memory operations (LR/SC and AMO) in a minimal hardware footprint.
  • To enable rapid development and debugging through simulation restart and architecture state logging.
  • To provide an open-source, educational-ready RTL design (~5,000 lines) for teaching computer systems and custom instruction set extension.

Proposed method

  • Designing a 12-stage, multi-cycle RISC-V processor (RVCoreM) supporting RV32IMAC, with dual memory access steps to handle atomic instructions.
  • Implementing CSR instructions via atomic read-modify-write operations on control and status registers during the WB stage.
  • Using a microcontroller (RVuc) to emulate console and disk I/O exactly as in software simulators, ensuring architectural consistency.
  • Leveraging SimRV for high-speed software simulation and Verilog HDL-based simulation with state logging and restart capability for efficient debugging.
  • Optimizing the system for minimal FPGA resource usage: ~5% registers, ~16% LUTs, ~28% BRAMs on a small FPGA.
  • Enabling system-level verification by outputting architecture state from Verilog, allowing direct comparison with software simulators.

Experimental results

Research questions

  • RQ1Can a minimal, portable RISC-V system be implemented in Verilog HDL to support full Linux boot on low-cost FPGAs?
  • RQ2How can atomic instructions (LR/SC and AMO) be efficiently supported in a simple multi-cycle processor with limited memory access stages?
  • RQ3What design techniques enable fast development and efficient debugging of a Linux-capable hardware system?
  • RQ4To what extent can a compact, open-source RISC-V system serve as an educational platform for computer architecture and custom instruction set design?

Key findings

  • The RVSoC system successfully boots Linux in less than 6 minutes from Vivado synthesis, demonstrating high practicality and speed.
  • The system uses only ~5% of registers, ~16% LUTs, and ~28% BRAMs on the target FPGA, confirming its minimal hardware footprint.
  • The dual-memory-access design pattern enables correct and efficient implementation of atomic instructions, including AMO, on a simple processor.
  • The use of a microcontroller to mirror software simulator I/O behavior ensures architectural consistency and simplifies debugging.
  • The integration of SimRV simulation with Verilog HDL simulation, including state logging and restart, reduced development time by enabling targeted re-simulation of critical phases.
  • The open-sourced RTL code (~5,000 lines) provides a clear, understandable reference for teaching and extending RISC-V systems.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.