Repository navigation
Fix RX_DESC interrupt, fix T-Bit perrity error with PEC byte, fix AXI hang when recovery_pending - #136
Conversation
| ctl_tti_rx_desc_queue_full_o = '0; | ||
| ctl_tti_rx_desc_queue_depth_o = '0; | ||
| ctl_tti_rx_desc_queue_empty_o = '0; | ||
| ctl_tti_rx_desc_queue_empty_o = 1'b1; |
| assign tti_rx_desc_queue_wdata_o = rx_descriptor; | ||
| assign tti_rx_desc_queue_wvalid_o = transfer_ended_q; | ||
| assign tti_rx_queue_flush_o = transfer_ended_q; | ||
| assign tti_rx_desc_queue_wvalid_o = transfer_ended; |
There was a problem hiding this comment.
@mkj121 This aligns the interrupt in tti.sv with the virtual_device_sel_i so interrupts aren't getting asserted when targeting RI.
| // rx_desc_wvalid_i will be asserted same clock cycle as | ||
| // bus_rstart_i. If not assertion fires | ||
| pec_err = 1'b1; | ||
| state_d = Error; |
There was a problem hiding this comment.
@mkj121 - Finds parity error in PEC during the W part of the RI R. Remember we do RI PW + RI PR. This would only trigger if PEC is valid but T-bit of PEC is invalid.
| // RX descriptor reports bus-level error (T-bit parity or overflow) | ||
| // rx_data_last_i should be asserted the same clock cycle | ||
| // as rx_desc_wvalid_i if not an assertion will fire. | ||
| pec_err = 1'b1; |
There was a problem hiding this comment.
@mkj121 - Finds parity error in PEC during RI write. This would only trigger if PEC is valid but T-bit of PEC is invalid.
8d5270a to
6b89d8e
Compare
mkj121
left a comment
There was a problem hiding this comment.
Looks good - I will approve once we've discussed Private Writes.
glaserf
left a comment
There was a problem hiding this comment.
Looks good to me - I am certainly a fan of removing some more of the flopped control signals, and making them FSM outputs. As it always should have been.
0f472db to
0f245a5
Compare
… hang when recovery_pending RTL: - descriptor_rx: Remove 1-cycle delay registers; emit flush and descriptor on the transfer_ended cycle instead of transfer_ended_q, eliminating the recovery/TTI flush race condition and aligning the output signals with the virtual_device_sel from i3c_target_fsm. - recovery_receiver: Detect bus-level T-bit errors via rx_desc_wdata error bits during RI write/read flows; flush partial words combinationally; add alignment assertions - recovery_handler: Wire rx_desc interface to recovery_receiver; default empty queue status to 1 (fixing AXI hang; remove stale FUTUREFIX comment Verification: - Add TtiQueueMonitor: continuous checker that asserts immediately if TTI queue interrupt fire during recovery_pending, centralized in I3CTopTestInterface.setup() so all tests get it automatically - Add test_parity_error_isolation: validates T-bit errors during PEC - Add T-bit error injection helpers to i3c_recovery_interface_fixed - Add AXI empty queue read tests for descriptor/data queue edge cases and while we are recovery_pending == 1 (hang scenario)
0f245a5 to
61daf34
Compare
RTL:
Verification: