What you practice
System control block top (3.6). Integrate reset, clock enable, and CSRs in sysctrl_top by connecting sub-modules and verifying system control signals. It is in Sysctrl Top — 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
You will integrate reset sequencing, clock enabling, and system control signals into the sysctrl_top module. This lesson focuses on connecting sub-modules to form a complete system control block.
Learning objectives
- Instantiate
reset_sequencerandclock_en_genwithinsysctrl_top. - Connect internal signals to DUT ports correctly.
- Verify reset behavior and clock enable logic via the testbench.
- Understand the hierarchy of the System Control IP.
Theory
System control blocks manage power, reset, and clock distribution for the entire SoC. The reset_sequencer handles power-on reset (POR) and generates stable reset signals. The clock_en_gen allows dynamic clock gating to save power. Proper interconnection ensures that downstream logic only runs when resets are deasserted.
| Component | Role | Key Ports |
|---|---|---|
reset_sequencer | Generates rst_n and periph_rst_n from por_n. | clk, por_n, rst_n, periph_rst_n |
clock_en_gen | Generates clk_en based on idle state. | clk, rst_n, idle, clk_en |
sysctrl_block | Handles AXI CSRs for boot address and watchdog. | bus, boot_addr, soft_reset, wdt_irq |
Practice
- Open Lesson 3.6 in RtlStudio.
- Open
student/rtl/ip/soc/sysctrl_top.svin the Explore panel. - Connect the
rst_nandperiph_rst_nports of theu_rstinstance to the module outputs. - Set the
idlesignal assignment to1'b0as a default state. - Connect the
rst_nport of theu_ceinstance to the module outputrst_n. - Open
student/tb/tb_top.svto review the testbench stimulus. - Run Simulation from the sidebar.
- Check the Log panel for
INFO: PASS.
Summary
You successfully integrated the reset sequencer, clock enable generator, and system control block into the top-level module. By correctly mapping the internal ports to the top-level interface signals, you ensured proper reset sequencing and clock management. The simulation confirmed that the design functions as expected with the INFO: PASS output.
© 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 System control block top. Change the source, run the Verilog simulator again, and read the waveform without leaving the IDE. Simulation guide · Yosys guide.