RTL Studio Open IDE

1.4 · UVM CLASS

UVM sequencer delivery path

Wire the sequencer to route sequence items from sequence to driver.

Watch on YouTube

What you practice

UVM sequencer delivery path (1.4). Wire the sequencer to route sequence items from sequence to driver. It is in Sequencer — Part 1 · Stimulus Generation of the UVM Masterclass. Create randomized transactions and deliver them safely to the DUT.

The UVM bench compiles in that same browser SystemVerilog simulator. You edit the test in the IDE, run Verilator, and read the log beside the waveform.

What you will learn

Today you will wire the UVM sequencer to route sequence items to the driver, enabling stimulus generation in a standard UVM testbench.

Learning objectives

  • Declare a uvm_sequencer parameterized with the sequence item type.
  • Instantiate the sequencer and start a sequence on it in the testbench.
  • Understand that uvm_sequencer rarely needs subclassing for basic use.
  • Connect the virtual interface to the testbench via uvm_config_db.

Theory

The UVM sequencer is the bridge between sequences and drivers.

ComponentRole
uvm_sequencer #(T)Receives items from sequences and forwards them to the driver via get_next_item() / item_done().
TSequence item type (e.g., fifo_seq_item).
seq.start(sqr)Starts a sequence on a sequencer; blocks until sequence completes.

The sequencer is typically declared as a typedef *or* instantiated directly. For this lesson, define fifo_sequencer as: Subclassing is only needed for custom configuration or override hooks.

Practice

  1. Open RtlStudio and select this chapter; confirm files appear in Explore.
  2. Open student/tb/tb_top.sv in the editor.
  3. Add the typedef: typedef uvm_sequencer #(fifo_seq_item) fifo_sequencer;
  4. In the initial block, declare fifo_sequencer sqr; and instantiate it with sqr = new("sqr", null);.
  5. Start the sequence on the sequencer using seq.start(sqr);.
  6. Run Simulation and check the Log panel for INFO: messages.

Summary

You practiced wiring the UVM sequencer to deliver sequence items to the driver by defining a fifo_sequencer typedef, instantiating it, and starting a sequence. This established the stimulus generation pipeline, confirming that sequence items flow correctly from the sequence through the sequencer toward the driver. The key takeaway is that the built-in uvm_sequencer handles item delivery without subclassing, simplifying setup while preserving full control over stimulus generation.

Run it in the Verilog IDE

  1. Open the UVM workspace in the IDE. The DUT and the testbench compile together in the browser.
  2. Run the SystemVerilog simulation with Verilator and read the phase and scoreboard lines in the log.
  3. When the check is on pins rather than a print, open the VCD next to that log.
  4. Edit the sequence, driver, or scoreboard in the IDE and rerun. You stay in the same simulator.

The lesson is done when the simulation matches UVM sequencer delivery path. Change the source, run the Verilog simulator again, and read the waveform without leaving the IDE. Simulation guide · Yosys guide.