What you practice
Independent channel driver: fork/join_none on five AXI channels (4.2). Drive all five channels in parallel with fork/join_none to avoid deadlocks. It is in Independent Channel Driver — Part 4 · AXI4 Full UVM Verification of the AXI Masterclass. Five-channel parallel UVM for AXI Full timing.
AXI only counts when the handshake simulates. RTL Studio is the Verilog and SystemVerilog IDE where you edit the RTL and prove each beat on a VCD.
What you will learn
You will refactor the AXI driver to drive all five AXI channels (AW, W, B, AR, R) in parallel using fork...join_none, preventing channel deadlocks by decoupling handshake timing across channels.
Learning objectives
- Understand why parallel channel driving is required for AXI4 full-featured verification.
- Learn how to use
fork...join_noneto launch independent UVM tasks per channel. - Master the
get_next_item/item_donepattern in the dispatch thread. - Recognize the role of done-flags (
aw_done_flag,b_done_flag,rd_done_flag) in coordinating channel dependencies. - Debug handshake timing using VCD waveforms and INFO logs.
Theory
AXI4 requires independent handshakes on five channels: write address (AW), write data (W), write response (B), read address (AR), and read data (R). A naive single-threaded driver risks deadlocks when one channel stalls while others are ready.
| Problem | Solution |
|---|---|
Sequential get_item blocks all channels | fork...join_none runs each channel’s task concurrently |
| AW/W must wait for each other | aw_done_flag synchronizes AW completion before W starts |
| R/B must wait for AR | rd_done_flag and b_done_flag track completion |
The dispatch_thread remains single-threaded (to preserve sequence order), but it spawns parallel threads for channel-specific handshakes. This decouples handshake latency while preserving transaction semantics.
Practice
- Open RtlStudio and select this chapter.
Confirm files appear in Explore.
- Open
student/tb/env/axi_driver.svandstudent/tb/tb_top.svin the editor. - In
axi_driver.sv, locate therun_phaseanddispatch_threadtasks. - Replace
__TODO__placeholders with the correct fork/join_none structure andget_next_item/item_donecalls. - Run Simulation and check the Log panel for INFO messages.
- Open the Waveform tab to inspect AW/W/B/AR/R handshake timing.
Summary
You refactored the AXI driver to launch five independent channel threads—AW, W, B, AR, and R—using fork/join_none, eliminating sequential dependencies that cause deadlocks. Each thread handles its channel handshake while coordinating via dedicated done flags, ensuring full AXI protocol compliance. You verified correct parallel operation through VCD waveforms and INFO logs confirming all channels toggle concurrently. The key takeaway is that decoupling channel handling in UVM drivers improves robustness and prevents starvation in complex protocol environments.
Run it in the Verilog IDE
- Open the lesson in the IDE and find the valid/ready or AXI channel ports in the editor.
- Simulate with Verilator. Confirm the beat on the VCD, not only in the transcript.
- Check that data moves only on the beats this lesson describes, and that backpressure holds the transfer.
- Synthesize the RTL master, slave, or buffer with Yosys. Leave the UVM bench out of synthesis.
The lesson is done when the simulation matches Independent channel driver: fork/join_none on five AXI channels. Change the source, run the Verilog simulator again, and read the waveform without leaving the IDE. Simulation guide · Yosys guide.