RTL Studio Open IDE

4.7 · UVM CLASS

Pipelined driver: separate get() and put() (AXI prep)

Refactor the driver to use separate get() and put() in parallel threads for AXI-style pipelining.

Watch on YouTube

What you practice

Pipelined driver: separate get() and put() (AXI prep) (4.7). Refactor the driver to use separate get() and put() in parallel threads for AXI-style pipelining. It is in Pipelined driver — Part 4 · Advanced UVM of the UVM Masterclass. Factory, config objects, virtual sequences, and pipelined drivers for large SoC verification.

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 refactor a UVM driver to use separate get() and put() calls in parallel threads, preparing for AXI-style pipelined protocols where requests and responses can be outstanding.

Learning objectives

  • Understand the difference between get_next_item/item_done and seq_item_port.get()/put().
  • Implement dual forever loops in the driver’s run_phase to decouple request pull and response push.
  • Recognize how this pattern supports AXI write and read channels operating independently.
  • Practice splitting transaction flow into concurrent threads without blocking.

Theory

The standard UVM driver uses get_next_item() to fetch a request, drive it, then call item_done() to signal completion. This is blocking and serializes request/response. In pipelined protocols like AXI, the driver must pull new requests (get) while simultaneously pushing completed responses (put) — often in parallel threads. This decouples the request and response paths and allows multiple transactions to be in flight.

PatternBlocking?Supports Outstanding?Typical Use
get_next_item / item_doneYesNo (serial)Simple FIFO, non-pipelined
seq_item_port.get() / put()No (non-blocking if used with try_get)YesAXI, pipelined interfaces

The get() method blocks until a request arrives; put() sends a response (if enabled) without blocking the request loop. In the solution, two forever loops run in parallel: one pulls and drives requests, the other pushes responses (if needed). This mirrors AXI’s AW and W channels (requests) and AR and R channels (responses).

Practice

Open this chapter in RtlStudio; all files appear in Explore. You will edit only student/ files.

  1. Open student/tb/tb_top.sv in the editor.
  2. Locate the fifo_driver’s run_phase (likely in golden/tb/env/fifo_driver.sv — reference only; do not edit golden/).
  3. Refactor the driver’s run_phase to replace get_next_item/item_done with:

- A forever loop calling seq_item_port.get(req) followed by drive_fifo(req). - A second forever loop calling seq_item_port.put(rsp) (if response path is used).

  1. Use fork ... join_none to run both loops concurrently.
  2. Run Simulation and verify the Log panel shows INFO: PASS.

Summary

You practiced splitting the driver’s request and response flows into two parallel forever loops using seq_item_port.get() and seq_item_port.put(), removing the blocking get_next_item()/item_done() pattern. This refactoring enables pipelined transaction processing, where multiple requests can be outstanding—mirroring AXI’s separate request and response channels. Key takeaway: get() and put() decouple pull and push operations, allowing concurrent handling of transactions without requiring explicit completion signaling. Simulation logs confirmed correct behavior, validating the new pipelined driver structure.

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 Pipelined driver: separate get() and put() (AXI prep). Change the source, run the Verilog simulator again, and read the waveform without leaving the IDE. Simulation guide · Yosys guide.