|
|
@@ -98,10 +98,10 @@ module prod2u_p4_normal_v3_core #(
|
|
|
wire watchdog_armed;
|
|
|
wire watchdog_force_safe;
|
|
|
wire watchdog_expiry_due;
|
|
|
- wire watchdog_status_refresh = command_accept &&
|
|
|
- (request_type == FT_MOTION_CMD) && (request_length == 6'd8) &&
|
|
|
- (request_command == MOTION_GET_STATUS) && motor_status_payload_valid &&
|
|
|
- watchdog_armed;
|
|
|
+ // The non-motor output watchdog measures host-command silence. Any
|
|
|
+ // complete command accepted by the normal path, or any CRC-valid fast
|
|
|
+ // JOG event, proves that the host is still communicating.
|
|
|
+ wire watchdog_command_refresh = command_accept || fast_jog_valid;
|
|
|
wire [7:0] motion_status_flags = {
|
|
|
4'd0, watchdog_timeout, disabled, 1'b1, 1'b0
|
|
|
};
|
|
|
@@ -183,7 +183,7 @@ module prod2u_p4_normal_v3_core #(
|
|
|
.clk(clk),
|
|
|
.rst_n(rst_n),
|
|
|
.arm(watchdog_snapshot_arm),
|
|
|
- .refresh(watchdog_status_refresh),
|
|
|
+ .refresh(watchdog_command_refresh),
|
|
|
.disable_cmd(watchdog_disable),
|
|
|
.disabled(disabled),
|
|
|
.armed(watchdog_armed),
|