Skip to content

Fix RX_DESC interrupt, fix T-Bit perrity error with PEC byte, fix AXI hang when recovery_pending - #136

Merged
clayton8 merged 1 commit into
chipsalliance:v1p5from
clayton8:v1p5-fifo-empty-issue
Feb 13, 2026
Merged

clayton8 merged 1 commit into
chipsalliance:v1p5from
clayton8:v1p5-fifo-empty-issue

Conversation

@clayton8

Copy link
Copy Markdown
Collaborator

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)

Comment thread src/recovery/recovery_handler.sv Outdated
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;

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mkj121 - this will fix the AXI hang

Comment thread src/ctrl/descriptor_rx.sv
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;

@clayton8 clayton8 Feb 13, 2026 •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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;

@clayton8 clayton8 Feb 13, 2026 •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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;

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mkj121 - Finds parity error in PEC during RI write. This would only trigger if PEC is valid but T-bit of PEC is invalid.

@clayton8
clayton8 force-pushed the v1p5-fifo-empty-issue branch from 8d5270a to 6b89d8e Compare February 13, 2026 03:22

@mkj121 mkj121 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - I will approve once we've discussed Private Writes.

@glaserf glaserf left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@clayton8
clayton8 force-pushed the v1p5-fifo-empty-issue branch 2 times, most recently from 0f472db to 0f245a5 Compare February 13, 2026 16:01
… 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)
@clayton8
clayton8 force-pushed the v1p5-fifo-empty-issue branch from 0f245a5 to 61daf34 Compare February 13, 2026 16:20
@clayton8
clayton8 merged commit 2e4e808 into chipsalliance:v1p5 Feb 13, 2026
49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants