RTL Studio Open IDE

Control & Timers

Activity Timeout Flag 8-bit — L2 Upgrade

Captures 8-bit activity signals and generates a sticky IRQ and timeout flag when masked inactivity exceeds a configurable cycle count.

About this block

Simulate it in the Verilog IDE

Mediumverilogsimsyn

Activity Timeout Flag 8-bit — L2 Upgrade is a Verilog reference block in the Control & Timers catalog. FSMs, timers, watchdogs, and control/state sequencing blocks. Marked Medium: more state or a wider datapath, still one workspace in the IDE.

This IP core detects inactivity on an 8-bit data bus.

It monitors masked activity signals and asserts a sticky interrupt request (IRQ) and a timeout flag if no activity is detected for a configurable number of clock cycles.

The module supports synchronous enable, asynchronous reset, and synchronous clear for robust system integration.

  1. Choose Open in IDE. RTL Studio loads the packaged workspace for Activity Timeout Flag 8-bit — L2 Upgrade.
  2. Read the Verilog module in the editor. The catalog line for this block: Captures 8-bit activity signals and generates a sticky IRQ and timeout flag when masked inactivity exceeds a configurable cycle count.
  3. Run the packaged testbench with the in-browser Verilator simulator, then open the VCD in the waveform viewer.
  4. Run Yosys in the same IDE for a generic netlist. Sky130 liberty mapping is a separate Pro library option.

RTL Studio is the Verilog simulator and IDE around this block: Slang lint, Verilator, VCD waveforms, and Yosys, in the browser. Simulation guide · Yosys guide.

Features

  • 8-bit Activity Monitoring: Captures activity signals with bitwise masking capabilities.
  • Configurable Timeout: 16-bit counter allows precise configuration of the inactivity threshold.
  • Sticky IRQ: Generates a persistent interrupt request that must be explicitly cleared.
  • Reset & Clear: Supports asynchronous active-low reset (rst_n) and synchronous active-high clear (clear).
  • Power Gating: Synchronous enable (en) control for power management.

Ports

Port NameDirectionWidthDescription
clkInput1Clock input
rst_nInput1Active-low asynchronous reset
enInput1Synchronous enable
clearInput1Active-high synchronous clear
activity_maskInput8Bitwise mask for activity input
activity_inInput8Activity signal input
timeout_cyclesInput16Counter threshold for timeout
irqOutput1Sticky interrupt request
active_flagsOutput8Masked activity status
timeout_flagOutput1Timeout detection flag

Verification

The testbench verifies six key scenarios to ensure correct functionality:

Test CaseDescriptionResult
TC1Basic Activity TrackingPASS
TC2No Activity Counter IncrementPASS
TC3Sticky IRQ CapturePASS
TC4Clear FunctionalityPASS
TC5Activity Resets CounterPASS
TC6Masking LogicPASS

All tests passed successfully with zero errors.

More in Control & Timers

All Control & Timers blocks