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_doneandseq_item_port.get()/put(). - Implement dual
foreverloops in the driver’srun_phaseto 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.
| Pattern | Blocking? | Supports Outstanding? | Typical Use |
|---|---|---|---|
get_next_item / item_done | Yes | No (serial) | Simple FIFO, non-pipelined |
seq_item_port.get() / put() | No (non-blocking if used with try_get) | Yes | AXI, 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.
- Open
student/tb/tb_top.svin the editor. - Locate the
fifo_driver’srun_phase(likely ingolden/tb/env/fifo_driver.sv— reference only; do not editgolden/). - Refactor the driver’s
run_phaseto replaceget_next_item/item_donewith:
- 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).
- Use
fork ... join_noneto run both loops concurrently. - 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
- Open the UVM workspace in the IDE. The DUT and the testbench compile together in the browser.
- Run the SystemVerilog simulation with Verilator and read the phase and scoreboard lines in the log.
- When the check is on pins rather than a print, open the VCD next to that log.
- 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.