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.
| Signal | Direction | Description |
|---|---|---|
awaddr | Input | Write address from master |
awvalid | Input | Write address valid signal |
awready | Output | Write address ready signal |
wdata | Input | Write data from master |
wvalid | Input | Write data valid signal |
wready | Output | Write data ready signal |
bresp | Output | Write response status |
bvalid | Output | Write response valid signal |
bready | Input | Write response ready signal |
araddr | Input | Read address from master |
arvalid | Input | Read address valid signal |
arready | Output | Read address ready signal |
Practice
- Open RtlStudio and select this chapter from the Examples or Lecture list.
- Confirm that
student/rtl/ip/soc/boot_vector_csr.svandstudent/tb/tb_top.svappear in the Explore tree. - Open
student/rtl/ip/soc/boot_vector_csr.svand implement the register logic. - Set
REG_BOOTto32'h00to define the boot address register offset. - Initialize
boot_rto32'h0000_0000andsoft_resetto1'b0on reset. - Update
boot_rwithbus.wdatawhenlat_addr[11:0]matchesREG_BOOT[11:0]. - Update
soft_resetwithbus.wdata[0]whenlat_addr[11:0]matchesREG_CTRL[11:0]. - Open
student/tb/tb_top.svand 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
- 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 Boot / reset vector CSR. Change the source, run the Verilog simulator again, and read the waveform without leaving the IDE. Simulation guide · Yosys guide.