RTL Studio Open IDE

3.3 · SOC CLASS

Boot / reset vector CSR

Implement a boot address latching and soft reset CSR using AXI-Lite, and verify it with a testbench.

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

What you practice

Boot / reset vector CSR (3.3). Implement a boot address latching and soft reset CSR using AXI-Lite, and verify it with a testbench. It is in Boot Reset Vector — Part 3 · System Control of the SoC Masterclass. Sequence reset, clock enables, boot vector, and watchdog into a sysctrl block.

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

This lesson introduces how to implement a Control and Status Register (CSR) for boot address latching and soft reset control. You will learn to decode AXI-Lite transactions to update internal state and expose it to the system.

Learning objectives

  • Implement a simple AXI-Lite slave interface for register access.
  • Latch a boot address from a write transaction.
  • Expose a soft reset signal via a control register.
  • Verify the CSR behavior using a testbench with AXI-Lite stimulus.

Theory

A Control and Status Register (CSR) allows software to configure hardware or read its status. In this lesson, we implement a CSR module that responds to AXI-Lite transactions. The module uses a state machine to handle write and read operations. Write transactions update internal registers, while read transactions return the current register values. The AXI-Lite protocol uses separate address channels for reads and writes. The master can specify the target address for each operation. The slave must acknowledge these transactions by asserting ready signals. The slave asserts ready signals when it is prepared to accept data or address information.

SignalDirectionDescription
awaddrInputWrite address from master
awvalidInputWrite address valid signal
awreadyOutputWrite address ready signal
wdataInputWrite data from master
wvalidInputWrite data valid signal
wreadyOutputWrite data ready signal
brespOutputWrite response status
bvalidOutputWrite response valid signal
breadyInputWrite response ready signal
araddrInputRead address from master
arvalidInputRead address valid signal
arreadyOutputRead address ready signal

Practice

  1. Open RtlStudio and select this chapter from the Examples or Lecture list.
  2. Confirm that student/rtl/ip/soc/boot_vector_csr.sv and student/tb/tb_top.sv appear in the Explore tree.
  3. Open student/rtl/ip/soc/boot_vector_csr.sv and implement the register logic.
  4. Set REG_BOOT to 32'h00 to define the boot address register offset.
  5. Initialize boot_r to 32'h0000_0000 and soft_reset to 1'b0 on reset.
  6. Update boot_r with bus.wdata when lat_addr[11:0] matches REG_BOOT[11:0].
  7. Update soft_reset with bus.wdata[0] when lat_addr[11:0] matches REG_CTRL[11:0].
  8. Open student/tb/tb_top.sv and run the simulation.

Summary

You implemented the logic to latch the boot address and exposed a Control and Status Register for soft resets. This practice reinforced your understanding of system control interfaces within the SoC architecture. The successful simulation output confirms that the reset mechanism functions as intended.

© 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

  1. Open the lesson workspace in the IDE. The fabric and the peripheral are one simulation.
  2. Run Verilator and follow the address, write data, and read response on the waveform.
  3. A passing log is not enough when decode or an IRQ line is the point of the lesson — those show up on the VCD.
  4. Run Yosys on the RTL island you just integrated when you want the mapped cells.

The lesson is done when the simulation matches Boot / reset vector CSR. Change the source, run the Verilog simulator again, and read the waveform without leaving the IDE. Simulation guide · Yosys guide.