What you practice
Multi-slave interconnect lite (1.6). Integrate the timer CSR slave with the multi-slave interconnect by implementing address decoding and register read/write logic. It is in Multi-Slave Interconnect — Part 1 · Address Map & Decode of the SoC Masterclass. Turn a memory map into combinational decode, one-hot selects, and an AXI-Lite fabric.
SoC lessons simulate the fabric and the peripheral together in the IDE. Verilator is the simulator; the waveform is where address and response show up.
What you will learn
Today you will integrate the decode fabric with GPIO and timer CSR slaves. This step completes the multi-slave interconnect lite architecture. You will learn how address decoding routes transactions to specific peripherals. This is a foundational concept for building complex System-on-Chip designs.
Learning objectives
- Understand the role of the address decode fabric in a multi-slave interconnect.
- Implement register read/write logic for the timer CSR slave.
- Connect the timer CSR module to the system interconnect.
- Verify the design using the provided testbench.
Theory
The address decode fabric routes AXI transactions to the correct slave based on the address. Each slave module occupies a specific address range in the memory map. The interconnect uses this address to select the active slave. The slave then decodes the lower address bits to access specific registers. This lesson focuses on the timer CSR slave implementation. The timer module maintains a counter and generates an interrupt pulse. It exposes control, prescaler, compare, and counter registers. The decode logic must map these registers to unique addresses. The testbench verifies that writes and reads reach the correct registers. Correct decoding ensures that the system behaves as expected. Incorrect decoding leads to silent failures or data corruption.
Practice
- Open RtlStudio and select this chapter in the Examples list.
- Confirm that
student/rtl/ip/soc/timer_csr.svandstudent/tb/tb_top.svappear in the Explore tree. - Open
student/rtl/ip/soc/timer_csr.svin the editor. - Locate the
READstate in the AXI response logic. - Replace the
__TODO__comments with the correct register data assignments. - Open
student/tb/tb_top.svto review the stimulus sequence. - Click Simulation in the left sidebar and run the test.
- Check the Log panel for
INFO:lines andINFO: PASS.
Summary
You successfully integrated the decode fabric with GPIO and timer CSR slaves to create a functional multi-slave interconnect. This exercise reinforced your ability to map address spaces and handle concurrent access in a SystemVerilog SoC design. The simulation confirmed correct operation with an INFO: PASS result, validating your integration logic.
© 2026 RtlStudio. Licensed under CC BY-NC-ND 4.0. Commercial use and modifications by third parties are not permitted.
Run it in the Verilog IDE
- Open the lesson workspace in the IDE. The fabric and the peripheral are one simulation.
- Run Verilator and follow the address, write data, and read response on the waveform.
- A passing log is not enough when decode or an IRQ line is the point of the lesson — those show up on the VCD.
- Run Yosys on the RTL island you just integrated when you want the mapped cells.
The lesson is done when the simulation matches Multi-slave interconnect lite. Change the source, run the Verilog simulator again, and read the waveform without leaving the IDE. Simulation guide · Yosys guide.