From 4ea52ca04edf6340a5c53bcc1c5410456b3db7b8 Mon Sep 17 00:00:00 2001 From: xingchen <1098756313@qq.com> Date: Fri, 25 Sep 2026 11:57:24 +0800 Subject: [PATCH] feat: add rtl/watchdog_supervisor.v --- rtl/watchdog_supervisor.v | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 rtl/watchdog_supervisor.v diff --git a/rtl/watchdog_supervisor.v b/rtl/watchdog_supervisor.v new file mode 100644 index 0000000..308ce30 --- /dev/null +++ b/rtl/watchdog_supervisor.v @@ -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