Skip to content

Commit 6785ad1

Browse files
Assert payload_available on image activation and FIFO full
1 parent 63ba7ec commit 6785ad1

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/recovery/recovery_executor.sv

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -718,12 +718,16 @@ module recovery_executor
718718
// ....................................................
719719

720720
// Payload availability logic
721-
// Assert payload_available_o upon reception of a complete recovery write
722-
// packet targeting CSR_INDIRECT_FIFO_DATA. Deassert it when the
721+
// Assertion:
722+
// The payload_available signal must assert if recovery FIFO indicates full (256B) or image
723+
// activation status is asserted (essentially indicating the last transfer is complete).
724+
//
725+
// De-assertion:
726+
// The payload_available signal must reset if recovery FIFO indicates empty.
723727
always_comb begin : payload_available
724728
payload_available_d = 1'b0;
725729
payload_available_write = 1'b0;
726-
if (~payload_available_q && indirect_rx_wvalid_o && indirect_rx_wready_i)
730+
if (~payload_available_q && (indirect_rx_full_i | image_activated_o))
727731
begin
728732
payload_available_d = 1'b1;
729733
payload_available_write = 1'b1;

0 commit comments

Comments
 (0)