RTL Studio Open IDE

5.3 · AXI CLASS

AXI crossbar interconnect: observe-only routing theory

Introduction to address decoding and round-robin arbitration in multi-master systems.

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

What you practice

AXI crossbar interconnect: observe-only routing theory (5.3). Introduction to address decoding and round-robin arbitration in multi-master systems. It is in AXI Crossbar Interconnect — Part 5 · SVA and System Integration of the AXI Masterclass. SVA protocol checkers, multi-master systems, and the capstone.

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 learn how an AXI crossbar routes requests from multiple masters to multiple slaves using address decoding and fair arbitration, without writing any code.

Learning objectives

  • Understand the role of an AXI crossbar in multi-master systems.
  • Recognize how address decoding maps master requests to slave ports.
  • Grasp the need for round-robin arbitration when masters contend for the same slave.
  • Identify key RTL structures in the reference crossbar module.

Theory

An AXI crossbar interconnect connects multiple AXI masters (e.g., CPUs, DMA engines) to multiple memory-mapped slaves (e.g., DDR, peripherals). Each master issues independent read/write bursts on separate channels (AR/AW/R/W/B). The crossbar must:

  • Decode the destination address to select the correct slave port.
  • Arbitrate when two or more masters target the same slave simultaneously.
ComponentFunctionExample in golden/rtl/axi_crossbar.sv
DecoderMaps ADDR_WIDTH address to slave indexdecode_slave() uses addr[31:28] to select slave 0 or 1
ArbiterGrants exclusive access to one master per cyclegrant and rr_turn signals support round-robin priority

The decoder in golden/rtl/axi_crossbar.sv uses a simple MSB region check: addresses starting with 0x2xxx_xxx route to slave 1; others to slave 0. The arbiter skeleton uses rr_turn to alternate grant priority when contention occurs, preventing starvation.

Practice

  1. Open RtlStudio and select Lesson 5.3 from the Examples list.
  2. In Explore, open golden/rtl/axi_crossbar.sv to inspect the decoder and arbiter skeleton.
  3. Open student/rtl/axi_crossbar.sv and complete the address-decode and rr_turn reset __TODO__ placeholders.
  4. Compare your completed decoder and arbiter lines with golden/rtl/axi_crossbar.sv.

This is an observe-only lesson, so there is no Simulation or Synthesis run.

Summary

You observed how an AXI crossbar routes requests from multiple masters to multiple slaves using address decoding and fair arbitration. You studied the decoder’s address-based mapping logic and the arbiter’s round-robin grant mechanism to prevent contention. This reinforced how routing theory underpins scalable system integration without requiring active coding or simulation.

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 AXI crossbar interconnect: observe-only routing theory. Change the source, run the Verilog simulator again, and read the waveform without leaving the IDE. Simulation guide · Yosys guide.