Browse Source

fix(prod2u): allow snapshots after watchdog fallback

Codex Resource Selftest 4 months ago
parent
commit
56801fd353
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/rtl/prod2u_p4_normal_v3_watchdog.v

+ 4 - 1
src/rtl/prod2u_p4_normal_v3_watchdog.v

@@ -26,7 +26,10 @@ module prod2u_p4_normal_v3_watchdog #(
         (counter >= WATCHDOG_LIMIT);
         (counter >= WATCHDOG_LIMIT);
 
 
     assign expiry_due = rst_n && !disable_cmd && expiry_boundary;
     assign expiry_due = rst_n && !disable_cmd && expiry_boundary;
-    assign force_safe = disable_cmd || watchdog_timeout || expiry_due;
+    // Timeout is status after the expiry edge, not a persistent command gate.
+    // The expiry pulse restores safe outputs once; a later valid snapshot can
+    // commit and re-arm the watchdog without requiring an intervening DISABLE.
+    assign force_safe = disable_cmd || expiry_due;
 
 
     generate
     generate
         if (WATCHDOG_CYCLES < 1) begin : g_watchdog_interval_must_be_positive
         if (WATCHDOG_CYCLES < 1) begin : g_watchdog_interval_must_be_positive