RTL Studio Open IDE

3.6 · SOC CLASS

System control block top

Integrate reset, clock enable, and CSRs in sysctrl_top by connecting sub-modules and verifying system control signals.

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

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_sequencer and clock_en_gen within sysctrl_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.

ComponentRoleKey Ports
reset_sequencerGenerates rst_n and periph_rst_n from por_n.clk, por_n, rst_n, periph_rst_n
clock_en_genGenerates clk_en based on idle state.clk, rst_n, idle, clk_en
sysctrl_blockHandles AXI CSRs for boot address and watchdog.bus, boot_addr, soft_reset, wdt_irq

Practice

  1. Open Lesson 3.6 in RtlStudio.
  2. Open student/rtl/ip/soc/sysctrl_top.sv in the Explore panel.
  3. Connect the rst_n and periph_rst_n ports of the u_rst instance to the module outputs.
  4. Set the idle signal assignment to 1'b0 as a default state.
  5. Connect the rst_n port of the u_ce instance to the module output rst_n.
  6. Open student/tb/tb_top.sv to review the testbench stimulus.
  7. Run Simulation from the sidebar.
  8. 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

  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 System control block top. Change the source, run the Verilog simulator again, and read the waveform without leaving the IDE. Simulation guide · Yosys guide.