RTL Studio Open IDE

4.2 · AXI CLASS

Independent channel driver: fork/join_none on five AXI channels

Drive all five channels in parallel with fork/join_none to avoid deadlocks.

Video coming soon. This lesson page stays at the same URL when the lecture publishes.

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_none to launch independent UVM tasks per channel.
  • Master the get_next_item / item_done pattern 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.

ProblemSolution
Sequential get_item blocks all channelsfork...join_none runs each channel’s task concurrently
AW/W must wait for each otheraw_done_flag synchronizes AW completion before W starts
R/B must wait for ARrd_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

  1. Open RtlStudio and select this chapter.

Confirm files appear in Explore.

  1. Open student/tb/env/axi_driver.sv and student/tb/tb_top.sv in the editor.
  2. In axi_driver.sv, locate the run_phase and dispatch_thread tasks.
  3. Replace __TODO__ placeholders with the correct fork/join_none structure and get_next_item / item_done calls.
  4. Run Simulation and check the Log panel for INFO messages.
  5. 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

  1. Open the lesson in the IDE and find the valid/ready or AXI channel ports in the editor.
  2. Simulate with Verilator. Confirm the beat on the VCD, not only in the transcript.
  3. Check that data moves only on the beats this lesson describes, and that backpressure holds the transfer.
  4. 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.