Design and Implementation of Three-stage RISC-V Microprocessor for Education

Authors

  • Jan Ber The Faculty of Computer Science, Electronics and Telecommunications, AGH University of Krakow

DOI:

https://doi.org/10.64552/wipiec.v12i2.150

Keywords:

RISC-V, RV32I, soft processor, microprocessor, FPGA, pipelined processor

Abstract

In many computer science and embedded systems courses, processor architecture is typically introduced using either the classical five-stage RISC pipeline or the two-stage AVR pipeline. While these architectures provide a strong introduction to bare-metal programming and computer organization, they do not necessarily represent the most practical or accessible approach for teaching modern processor architectures. In particular, traditional five-stage pipelines often introduce considerable control and forwarding complexity, while compact microcontroller architectures may obscure fundamental pipeline behavior and instruction flow.
This paper presents X3S, a work-in-progress 32-bit pipelined RISC-V softprocessor core originally developed as author’s engineering thesis. The design adopts a simple three-stage pipeline intended to balance architectural clarity, implementation complexity, and achievable operating frequency on Field Programmable Gate Array (FPGA) devices. X3S implements the RV32I base integer instruction set together with the M extension for multiplication and division operations. Multi-cycle arithmetic
accelerators are integrated into the execution pipeline using a handshake-based interface.

Author Biography

Jan Ber, The Faculty of Computer Science, Electronics and Telecommunications, AGH University of Krakow

The Faculty of Computer Science, Electronics and Telecommunications, AGH University of Krakow, Krakow, Poland.

References

Microchip Technology Inc., Avr instruction set manual, 8-bit AVR architecture reference, n.d. Accessed: May 21, 2026. [Online]. Available: https://ww1.microchip.com/downloads/en/DeviceDoc/AVR-InstructionSet-Manual-DS40002198.pdf

Microchip Technology Inc., Atmega328p datasheet, AVR microcontroller documentation, n.d. Accessed: May 21, 2026. [Online]. Available: https://ww1.microchip.com/ downloads/en/DeviceDoc/ATmega328P Datasheet.pdf

Arm Ltd., Armv7-m architecture reference manual, Cortex-M architecture reference, n.d. Accessed: May 21, 2026. [Online]. Available: https://developer.arm.com/documentation/ddi0403/latest/

S. L. Harris and D. M. Harris, Digital Design and Computer Architecture: RISC-V Edition, 2nd ed. Morgan Kaufmann, 2021.

Jan Ber. “X3s risc-v soft processor core.” Open-source FPGA soft-core implementation, Accessed: May 21, 2026. [Online]. Available: https://codeberg.org/jber/little-risc-v-softcore

Downloads

Published

2026-08-25

How to Cite

Ber, J. (2026). Design and Implementation of Three-stage RISC-V Microprocessor for Education. WiPiEC Journal - Works in Progress in Embedded Computing Journal, 12(2), 5. https://doi.org/10.64552/wipiec.v12i2.150