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.
| Component | Function | Example in golden/rtl/axi_crossbar.sv |
|---|---|---|
| Decoder | Maps ADDR_WIDTH address to slave index | decode_slave() uses addr[31:28] to select slave 0 or 1 |
| Arbiter | Grants exclusive access to one master per cycle | grant 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
- Open RtlStudio and select Lesson 5.3 from the Examples list.
- In Explore, open
golden/rtl/axi_crossbar.svto inspect the decoder and arbiter skeleton. - Open
student/rtl/axi_crossbar.svand complete the address-decode andrr_turnreset__TODO__placeholders. - 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
- 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 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.