RTL Studio Open IDE

3.10 · SYSTEMVERILOG CLASS

Mini-UVM: Architecture (Theory)

Introduce the UVM component hierarchy through a minimal, observe-only testbench.

Watch on YouTube

What you practice

Mini-UVM: Architecture (Theory) (3.10). Introduce the UVM component hierarchy through a minimal, observe-only testbench. It is in Mini-UVM — Part 3 · Advanced SV & Mini-UVM of the SystemVerilog Masterclass. Timing, concurrency, constrained-random verification, assertions, and a pure-SV Mini-UVM environment.

The same IDE is the SystemVerilog simulator. Slang lints the file, Verilator runs it, and the waveform viewer sits next to the source.

What you will learn

This lesson introduces the standard UVM component hierarchy and how Generator, Driver, Monitor, and Scoreboard interact in a testbench. You wire the three hand-offs that connect those components to the DUT ports in student/tb/tb.sv.

Learning objectives

  • Recognize the UVM component base class and its role in inheritance.
  • Identify the purpose and data flow of Generator, Driver, Monitor, and Scoreboard.
  • Wire generator → driver → DUT → monitor so the scoreboard can check a real path.
  • Observe how simulation phases (build, run) map to testbench execution order.

Theory

UVM (Universal Verification Methodology) uses a hierarchical component tree to organize verification logic. Each component inherits from uvm_component, which defines standard phases like build() and run().

ComponentRoleData Flow Direction
GeneratorProduces random or directed transactions→ Driver
DriverTransfers transactions to DUT via ports→ DUT
MonitorObserves DUT signals post-transaction← DUT
ScoreboardCompares expected vs actual results← Monitor, Generator

The testbench top (tb) instantiates the DUT and all components, then executes phases in order: build() → run(). No UVM library is required here—this is a minimal, self-contained implementation. The DUT in student/rtl/design.sv is a complete pass-through register; practice is only in the testbench wiring.

Practice

  1. Open RtlStudio and select this chapter; confirm files appear in Explore.
  2. Open student/tb/tb.sv and fill the three __TODO__ blanks in the run-phase initial block.
  3. Keep student/rtl/design.sv as provided (no blanks).
  4. Run Simulation and observe the Log panel.
  5. Confirm each component’s run()/check messages appear, then INFO: PASS.

Summary

Students wired a skeletal Mini-UVM environment so Generator, Driver, Monitor, and Scoreboard share one transaction path through the DUT. They practiced phase-ordered stimulus and the separation between component classes and top-level port assignments. The key takeaway is that UVM-style architecture separates concerns, but the top still must connect component fields to DUT signals. This prepares the next lesson, where a fuller environment and mailbox-based integration are built.

Run it in the Verilog IDE

  1. Open the lesson in the IDE. The SystemVerilog for this topic is already in the editor.
  2. Lint with Slang before you simulate. It covers both Verilog and SystemVerilog in this IDE.
  3. Run Verilator and inspect the VCD. Interfaces, classes, and assertions count only if the simulator agrees.
  4. Run Yosys when the lesson is synthesizable RTL, and keep testbench-only constructs out of that module.

The lesson is done when the simulation matches Mini-UVM: Architecture (Theory). Change the source, run the Verilog simulator again, and read the waveform without leaving the IDE. Simulation guide · Yosys guide.