RTL Studio Open IDE

5.3 · RV SYS CLASS

System e2e TB

Drive the rv32_soc_top platform from a SystemVerilog testbench to verify end-to-end system behavior by instantiating the design and connecting all interface signals.

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

What you practice

System e2e TB (5.3). Drive the rv32_soc_top platform from a SystemVerilog testbench to verify end-to-end system behavior by instantiating the design and connecting all interface signals. It is in End-to-end system TB — Part 5 · System Capstone 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 drive the rv32_soc_top platform from a SystemVerilog testbench to verify end-to-end system behavior. This lesson focuses on instantiating the design and connecting all interface signals correctly. You will also load a program image and verify GPIO and UART outputs. This is a critical step in validating the complete SoC platform.

Learning objectives

  • Instantiate dut in student/tb/tb_top.sv with correct port connections.
  • Load the program image from the hex file into the CPU memory.
  • Verify cpu_done, gpio_out, and uart_seen signals after simulation.
  • Understand the relationship between the testbench and the SoC platform.

Theory

The testbench acts as the environment that drives the Design Under Test (DUT). In this lesson, the DUT is a wrapper (dut) around the rv32_soc_top. The testbench must connect all control and data signals between the testbench and the DUT. The program image is loaded into the instruction memory of the CPU core. The testbench then waits for the CPU to finish execution and checks the output registers. This process validates that the entire system works together correctly.

SignalDirectionDescription
clkInputClock signal for the system.
por_nInputPower-on reset signal.
gpio_inInputGPIO input pins.
gpio_outOutputGPIO output pins.
gpio_oeOutputGPIO output enable pins.
uart_tx_validOutputUART transmit valid signal.
uart_tx_dataOutputUART transmit data.
uart_tx_busyInputUART transmit busy signal.
cpu_doneOutputCPU execution done signal.

Practice

  1. Open RtlStudio and select Lesson 5.3: System e2e TB from the Examples or Lecture list.
  2. Confirm that student/tb/tb_top.sv and student/rtl/design.sv appear in the Explore tree.
  3. Open student/tb/tb_top.sv in the editor.
  4. Complete the tasks in Your TODO below.
  5. Click Simulation in the left sidebar and run the simulation.
  6. Check the Log panel for INFO: lines.
  7. Verify that the log contains INFO: PASS.
  8. If the simulation fails, check your port connections and the hex file path.

Summary

You successfully instantiated the RV32I core and system IP blocks within the design module to create a complete SoC platform. By completing the port connections and loading the program memory, you enabled the testbench to drive the chip top from a light UVM system environment. The simulation verified correct end-to-end execution by checking the CPU completion flag and peripheral outputs.

© 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 System e2e TB. Change the source, run the Verilog simulator again, and read the waveform without leaving the IDE. Simulation guide · Yosys guide.