feat: add rtl/watchdog_supervisor.v

This commit is contained in:
2026-09-25 11:57:24 +08:00
parent 0de3f55e71
commit 4ea52ca04e

13
rtl/watchdog_supervisor.v Normal file
View File

@@ -0,0 +1,13 @@
module watchdog_supervisor #(
parameter WIDTH = 16,
parameter LIMIT = 1000
) (
input wire clk, input wire rst_n, input wire heartbeat_async,
input wire acknowledge, output wire alarm,
output wire [WIDTH-1:0] elapsed
);
wire heartbeat_rise, timeout;
heartbeat_sync sync_unit(clk, rst_n, heartbeat_async, heartbeat_rise);
timeout_counter #(WIDTH, LIMIT) timer_unit(clk, rst_n, heartbeat_rise, timeout, elapsed);
alarm_latch alarm_unit(clk, rst_n, timeout, heartbeat_rise, acknowledge, alarm);
endmodule