RTL Studio Open IDE

4.1 · RV SYS CLASS

Single vs pipeline

Compare the cycle cost of a single-cycle core against a five-stage pipeline to understand fill overhead.

Video coming soon. This lesson page stays at the same URL when the lecture publishes.

What you practice

Single vs pipeline (4.1). Compare the cycle cost of a single-cycle core against a five-stage pipeline to understand fill overhead. It is in Single-cycle vs pipeline — Part 4 · Pipeline of the RISC-V on SoC & System Masterclass.

The core and the mini-SoC simulate as one workspace in the IDE. Follow MMIO, interrupts, and the program on the Verilator waveform, not only a pass line.

What you will learn

You will compare the cycle cost of a single-cycle core against a five-stage pipeline. This comparison highlights the trade-off between critical path reduction and pipeline fill overhead.

Learning objectives

  • Understand why a single-cycle design has a longer critical path.
  • Recognize the fixed overhead cost of filling a pipeline.
  • Calculate total cycles for different instruction counts in both architectures.
  • Verify pipeline behavior using a simple testbench.

Theory

A single-cycle core executes one instruction per clock cycle. Its clock frequency is limited by the longest instruction's critical path. A pipelined core breaks instructions into stages to allow higher frequency. However, the pipeline must be filled before it starts retiring instructions. This lesson models a five-stage pipeline with a four-cycle fill overhead.

FeatureSingle-Cycle5-Stage Pipeline
Cycles per instruction11 (steady state)
Fill overhead04 cycles
Critical pathLong (max instruction)Short (stage depth)

The pipeline depth is fixed at 5 stages. The fill cost is 4 cycles because the first instruction takes 5 cycles to exit. Subsequent instructions exit every cycle once the pipeline is full.

Practice

Open this chapter in RtlStudio. Navigate to Explore and open student/rtl/design.sv. Navigate to Explore and open student/tb/tb_top.sv. Run Simulation from the sidebar. Check the Log panel for INFO: lines.

Summary

You analyzed the cycle cost differences between single-cycle and five-stage pipelined RV32I cores. You verified that the pipeline incurs a fixed fill overhead of four cycles but enables higher clock frequencies. The key takeaway is that pipelining trades increased cycle count for reduced critical path delay to improve overall throughput.

© 2026 RtlStudio. Licensed under CC BY-NC-ND 4.0. Commercial use and modifications by third parties are not permitted.

Run it in the Verilog IDE

  1. Open the system lesson in the IDE. The RV32I core and the mini-SoC fabric simulate together.
  2. Run Verilator and trace the program through MMIO: address, load/store data, and the peripheral response.
  3. Interrupts and DMA belong on the waveform next to the instruction stream, not only in a pass/fail line.
  4. Edit the integration RTL, resimulate, and run Yosys on the structural block when you want a netlist.

The lesson is done when the simulation matches Single vs pipeline. Change the source, run the Verilog simulator again, and read the waveform without leaving the IDE. Simulation guide · Yosys guide.