Repository navigation
Add optional 60us HDR error recovery timer (I3C spec 5.1.10.1.9) and fix te2 error data in rx data fifo - #134
Merged
Conversation
clayton8
force-pushed
the
v1p5-te0-te1-timer
branch
from
February 12, 2026 04:46
b4fce9f to
7235276
Compare
clayton8
force-pushed
the
v1p5-te0-te1-timer
branch
from
February 12, 2026 05:24
9a19b03 to
3c177ff
Compare
mkj121
requested changes
Feb 12, 2026
mkj121
left a comment
Collaborator
There was a problem hiding this comment.
It looks good but for completeness tools/timing/timing.py should also be updated to calculate the new 60us period
clayton8
force-pushed
the
v1p5-te0-te1-timer
branch
from
February 12, 2026 17:23
3c177ff to
099930e
Compare
added 2 commits
February 12, 2026 10:03
Implement the optional recovery method for TE0/TE1 errors: if both SCL and SDA stay High for a configurable period (default 60us) while in HDR mode due to a TE0/TE1 error, the target exits HDR and returns to Idle. RTL changes: - Add CSR registers: HDR_TIMEOUT_EN_REG (enable) and T_HDR_TIMEOUT_REG (threshold in clock cycles) in soc_management_interface.rdl - Add in_hdr_err_mode register in ccc.sv to distinguish error-induced HDR mode from CCC-commanded ENTHDR (timer only fires for errors) - Add 20-bit timeout counter in i3c_bus_monitor.sv, combined into existing hdr_exit_detect_o signal (no downstream FSM changes needed) - Thread new signals through configuration, controller, and standby hierarchy - Update CAP_LENGTH from 0x18 to 0x1A for the two new registers Verification: - Add send_te0_error() and send_te1_error() to I3cControllerFixed - Add 7 cocotb tests covering: TE0 recovery, TE1 recovery, no false trigger on CCC-entered HDR, timer reset on line toggle, disabled by default, configurable threshold, HDR exit pattern coexistence - Refactor test_enter_exit_hdr_mode.py with shared constants, helpers, and clear section organization
Add te2_err_priv_wr (combinational) to rx_fifo_wvalid gate alongside the registered parity_err. Previously the 1-cycle latency of parity_err allowed the corrupted byte to enter the FIFO before the gate activated. ai3ct_error_type_s2 CTS test will pass with this change.
clayton8
force-pushed
the
v1p5-te0-te1-timer
branch
from
February 12, 2026 18:04
099930e to
11ba3dd
Compare
mkj121
approved these changes
Feb 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implement the optional recovery method for TE0/TE1 errors: if both SCL and SDA stay High for a configurable period (default 60us) while in HDR mode due to a TE0/TE1 error, the target exits HDR and returns to Idle. And fix te2 parity error byte getting pushed into the RX FIFO
RTL changes:
Verification: