Skip to content
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
44a954d
Improve COCOTB
clayton8 Jan 24, 2026
75d01be
Improve test_recovery.py
clayton8 Jan 26, 2026
1bf2e97
RI Restructure
clayton8 Jan 30, 2026
5ff81a2
revert .gitmodules chenge from 9e1ace1e
clayton8 Jan 30, 2026
c9b3093
Fix bypass mode data not going into INDIRECT_FIFO
clayton8 Jan 30, 2026
09e423e
Fix payload_available not set in bypass mode
clayton8 Jan 30, 2026
b62f811
Fix RI error protocol register not updated correctly
clayton8 Jan 30, 2026
b16f47d
fix hci_queues_axi compile errors
clayton8 Jan 30, 2026
b513b85
Revert the cocotbext-i3c to antmicro version
clayton8 Jan 30, 2026
76a9b93
Fix hci_queues_ahb compile errors
clayton8 Jan 30, 2026
a19ac60
Fix lint errors in bus_tx_flow:
clayton8 Jan 30, 2026
8e01a7a
Temp disable test_ri_error_injection_stress until cocotb submodule ca…
clayton8 Jan 30, 2026
9d4e8fc
Fix skip command in cocotb
clayton8 Jan 30, 2026
1b9f17e
change all size based tieoffs to '0
clayton8 Jan 30, 2026
6a81c65
Change tieoffs to '0
clayton8 Jan 30, 2026
e84f520
Add RI enable writes to test_recovery.py
clayton8 Jan 30, 2026
b6b9645
Fix test_recovery
clayton8 Jan 30, 2026
57e9d46
Add proper overflow detection
clayton8 Jan 31, 2026
09219d9
Fix ocp_csr test and add parity error test
clayton8 Jan 31, 2026
7ddd6bd
HDR fix + RI fixes
clayton8 Feb 1, 2026
d2fa054
Recovery command and write fix
clayton8 Feb 1, 2026
8f31aac
Recovery Test improvement
clayton8 Feb 1, 2026
ed7a57c
Fix failing tests
clayton8 Feb 1, 2026
2a83a16
Make wave conditional for verilator to improve GH runtimes
clayton8 Feb 1, 2026
1b4e2d1
Make waves default off
clayton8 Feb 1, 2026
4e5d8c7
Default WAVES=1 but in GH set it to 0
clayton8 Feb 1, 2026
b9e11a3
Fix rx_last_byte_o to be 'last complete byte'
clayton8 Feb 1, 2026
fc46e5b
Fix detection of last byte
clayton8 Feb 1, 2026
06845a2
Remove unused port on controller.sv since we don't trigger GETSTATUS …
clayton8 Feb 2, 2026
7426537
More robust HDR handling in recovery_receiver
clayton8 Feb 2, 2026
8a20c41
White space cleanup
clayton8 Feb 4, 2026
de8dff1
Consolidate code within recovery_handler.sv per PR review
clayton8 Feb 4, 2026
1ce5a87
PR cleaup and bug fixes
clayton8 Feb 4, 2026
1bb701d
Undo setting of payload_done and have it be cleared by HW
clayton8 Feb 4, 2026
3e78ec2
Change always to always_ff
clayton8 Feb 4, 2026
a4fb514
Clean up PEC logic to make more logical
clayton8 Feb 5, 2026
0c9f78e
Change matching signal port names to .port notation
clayton8 Feb 5, 2026
7cdc3c8
Clean up desc_ signals in recovery_receiver
clayton8 Feb 5, 2026
bf3c0c4
Match recovery_handler to recovery_receiver now that desc_ signals ar…
clayton8 Feb 5, 2026
c9059ff
Add debug pec to RI object
clayton8 Feb 5, 2026
2702f6d
remove stale port recovery_pec_err_i
clayton8 Feb 5, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,292 changes: 1,066 additions & 226 deletions src/csr/I3CCSR.sv

Large diffs are not rendered by default.

162 changes: 151 additions & 11 deletions src/csr/I3CCSR_covergroups.svh
Original file line number Diff line number Diff line change
Expand Up @@ -2299,7 +2299,12 @@
input bit [1-1:0] TE4_ERR_DET_EN,
input bit [1-1:0] TE5_ERR_DET_EN,
input bit [1-1:0] FRAMING_ERR_DET_EN,
input bit [1-1:0] PEC_ERR_DET_EN
input bit [1-1:0] RI_PEC_ERR_DET_EN,
input bit [1-1:0] RI_LENGTH_ERR_DET_EN,
input bit [1-1:0] RI_READONLY_ERR_DET_EN,
input bit [1-1:0] RI_UNSUPPORTED_ERR_DET_EN,
input bit [1-1:0] RI_RX_FIFO_OVERFLOW_ERR_DET_EN,
input bit [1-1:0] RI_INDIRECT_FIFO_OVERFLOW_ERR_DET_EN
);
option.per_instance = 1;
TE0_ERR_DET_EN_cp : coverpoint TE0_ERR_DET_EN;
Expand All @@ -2309,7 +2314,12 @@
TE4_ERR_DET_EN_cp : coverpoint TE4_ERR_DET_EN;
TE5_ERR_DET_EN_cp : coverpoint TE5_ERR_DET_EN;
FRAMING_ERR_DET_EN_cp : coverpoint FRAMING_ERR_DET_EN;
PEC_ERR_DET_EN_cp : coverpoint PEC_ERR_DET_EN;
RI_PEC_ERR_DET_EN_cp : coverpoint RI_PEC_ERR_DET_EN;
RI_LENGTH_ERR_DET_EN_cp : coverpoint RI_LENGTH_ERR_DET_EN;
RI_READONLY_ERR_DET_EN_cp : coverpoint RI_READONLY_ERR_DET_EN;
RI_UNSUPPORTED_ERR_DET_EN_cp : coverpoint RI_UNSUPPORTED_ERR_DET_EN;
RI_RX_FIFO_OVERFLOW_ERR_DET_EN_cp : coverpoint RI_RX_FIFO_OVERFLOW_ERR_DET_EN;
RI_INDIRECT_FIFO_OVERFLOW_ERR_DET_EN_cp : coverpoint RI_INDIRECT_FIFO_OVERFLOW_ERR_DET_EN;

endgroup

Expand All @@ -2333,7 +2343,12 @@
input bit [1-1:0] TE4_ERR_STAT,
input bit [1-1:0] TE5_ERR_STAT,
input bit [1-1:0] FRAMING_ERR_STAT,
input bit [1-1:0] PEC_ERR_STAT
input bit [1-1:0] RI_PEC_ERR_STAT,
input bit [1-1:0] RI_LENGTH_ERR_STAT,
input bit [1-1:0] RI_READONLY_ERR_STAT,
input bit [1-1:0] RI_UNSUPPORTED_ERR_STAT,
input bit [1-1:0] RI_RX_FIFO_OVERFLOW_ERR_STAT,
input bit [1-1:0] RI_INDIRECT_FIFO_OVERFLOW_ERR_STAT
);
option.per_instance = 1;
TE0_ERR_STAT_cp : coverpoint TE0_ERR_STAT;
Expand All @@ -2343,7 +2358,12 @@
TE4_ERR_STAT_cp : coverpoint TE4_ERR_STAT;
TE5_ERR_STAT_cp : coverpoint TE5_ERR_STAT;
FRAMING_ERR_STAT_cp : coverpoint FRAMING_ERR_STAT;
PEC_ERR_STAT_cp : coverpoint PEC_ERR_STAT;
RI_PEC_ERR_STAT_cp : coverpoint RI_PEC_ERR_STAT;
RI_LENGTH_ERR_STAT_cp : coverpoint RI_LENGTH_ERR_STAT;
RI_READONLY_ERR_STAT_cp : coverpoint RI_READONLY_ERR_STAT;
RI_UNSUPPORTED_ERR_STAT_cp : coverpoint RI_UNSUPPORTED_ERR_STAT;
RI_RX_FIFO_OVERFLOW_ERR_STAT_cp : coverpoint RI_RX_FIFO_OVERFLOW_ERR_STAT;
RI_INDIRECT_FIFO_OVERFLOW_ERR_STAT_cp : coverpoint RI_INDIRECT_FIFO_OVERFLOW_ERR_STAT;

endgroup

Expand All @@ -2367,7 +2387,12 @@
input bit [1-1:0] TE4_ERR_EN,
input bit [1-1:0] TE5_ERR_EN,
input bit [1-1:0] FRAMING_ERR_EN,
input bit [1-1:0] PEC_ERR_EN
input bit [1-1:0] RI_PEC_ERR_EN,
input bit [1-1:0] RI_LENGTH_ERR_EN,
input bit [1-1:0] RI_READONLY_ERR_EN,
input bit [1-1:0] RI_UNSUPPORTED_ERR_EN,
input bit [1-1:0] RI_RX_FIFO_OVERFLOW_ERR_EN,
input bit [1-1:0] RI_INDIRECT_FIFO_OVERFLOW_ERR_EN
);
option.per_instance = 1;
TE0_ERR_EN_cp : coverpoint TE0_ERR_EN;
Expand All @@ -2377,7 +2402,12 @@
TE4_ERR_EN_cp : coverpoint TE4_ERR_EN;
TE5_ERR_EN_cp : coverpoint TE5_ERR_EN;
FRAMING_ERR_EN_cp : coverpoint FRAMING_ERR_EN;
PEC_ERR_EN_cp : coverpoint PEC_ERR_EN;
RI_PEC_ERR_EN_cp : coverpoint RI_PEC_ERR_EN;
RI_LENGTH_ERR_EN_cp : coverpoint RI_LENGTH_ERR_EN;
RI_READONLY_ERR_EN_cp : coverpoint RI_READONLY_ERR_EN;
RI_UNSUPPORTED_ERR_EN_cp : coverpoint RI_UNSUPPORTED_ERR_EN;
RI_RX_FIFO_OVERFLOW_ERR_EN_cp : coverpoint RI_RX_FIFO_OVERFLOW_ERR_EN;
RI_INDIRECT_FIFO_OVERFLOW_ERR_EN_cp : coverpoint RI_INDIRECT_FIFO_OVERFLOW_ERR_EN;

endgroup

Expand All @@ -2401,7 +2431,12 @@
input bit [1-1:0] TE4_ERR_FORCE,
input bit [1-1:0] TE5_ERR_FORCE,
input bit [1-1:0] FRAMING_ERR_FORCE,
input bit [1-1:0] PEC_ERR_FORCE
input bit [1-1:0] RI_PEC_ERR_FORCE,
input bit [1-1:0] RI_LENGTH_ERR_FORCE,
input bit [1-1:0] RI_READONLY_ERR_FORCE,
input bit [1-1:0] RI_UNSUPPORTED_ERR_FORCE,
input bit [1-1:0] RI_RX_FIFO_OVERFLOW_ERR_FORCE,
input bit [1-1:0] RI_INDIRECT_FIFO_OVERFLOW_ERR_FORCE
);
option.per_instance = 1;
TE0_ERR_FORCE_cp : coverpoint TE0_ERR_FORCE;
Expand All @@ -2411,7 +2446,12 @@
TE4_ERR_FORCE_cp : coverpoint TE4_ERR_FORCE;
TE5_ERR_FORCE_cp : coverpoint TE5_ERR_FORCE;
FRAMING_ERR_FORCE_cp : coverpoint FRAMING_ERR_FORCE;
PEC_ERR_FORCE_cp : coverpoint PEC_ERR_FORCE;
RI_PEC_ERR_FORCE_cp : coverpoint RI_PEC_ERR_FORCE;
RI_LENGTH_ERR_FORCE_cp : coverpoint RI_LENGTH_ERR_FORCE;
RI_READONLY_ERR_FORCE_cp : coverpoint RI_READONLY_ERR_FORCE;
RI_UNSUPPORTED_ERR_FORCE_cp : coverpoint RI_UNSUPPORTED_ERR_FORCE;
RI_RX_FIFO_OVERFLOW_ERR_FORCE_cp : coverpoint RI_RX_FIFO_OVERFLOW_ERR_FORCE;
RI_INDIRECT_FIFO_OVERFLOW_ERR_FORCE_cp : coverpoint RI_INDIRECT_FIFO_OVERFLOW_ERR_FORCE;

endgroup

Expand Down Expand Up @@ -2555,8 +2595,8 @@

endgroup

/*----------------------- I3CCSR__I3C_EC__TTI__TARGET_ERR_CNT_PEC COVERGROUPS -----------------------*/
covergroup I3CCSR__I3C_EC__TTI__TARGET_ERR_CNT_PEC_bit_cg with function sample(input bit reg_bit);
/*----------------------- I3CCSR__I3C_EC__TTI__TARGET_ERR_CNT_RI_PEC COVERGROUPS -----------------------*/
covergroup I3CCSR__I3C_EC__TTI__TARGET_ERR_CNT_RI_PEC_bit_cg with function sample(input bit reg_bit);
option.per_instance = 1;
reg_bit_cp : coverpoint reg_bit {
bins value[2] = {0,1};
Expand All @@ -2567,7 +2607,107 @@
}

endgroup
covergroup I3CCSR__I3C_EC__TTI__TARGET_ERR_CNT_PEC_fld_cg with function sample(
covergroup I3CCSR__I3C_EC__TTI__TARGET_ERR_CNT_RI_PEC_fld_cg with function sample(
input bit [8-1:0] CNT
);
option.per_instance = 1;
CNT_cp : coverpoint CNT;

endgroup

/*----------------------- I3CCSR__I3C_EC__TTI__TARGET_ERR_CNT_RI_LENGTH COVERGROUPS -----------------------*/
covergroup I3CCSR__I3C_EC__TTI__TARGET_ERR_CNT_RI_LENGTH_bit_cg with function sample(input bit reg_bit);
option.per_instance = 1;
reg_bit_cp : coverpoint reg_bit {
bins value[2] = {0,1};
}
reg_bit_edge_cp : coverpoint reg_bit {
bins rise = (0 => 1);
bins fall = (1 => 0);
}

endgroup
covergroup I3CCSR__I3C_EC__TTI__TARGET_ERR_CNT_RI_LENGTH_fld_cg with function sample(
input bit [8-1:0] CNT
);
option.per_instance = 1;
CNT_cp : coverpoint CNT;

endgroup

/*----------------------- I3CCSR__I3C_EC__TTI__TARGET_ERR_CNT_RI_READONLY COVERGROUPS -----------------------*/
covergroup I3CCSR__I3C_EC__TTI__TARGET_ERR_CNT_RI_READONLY_bit_cg with function sample(input bit reg_bit);
option.per_instance = 1;
reg_bit_cp : coverpoint reg_bit {
bins value[2] = {0,1};
}
reg_bit_edge_cp : coverpoint reg_bit {
bins rise = (0 => 1);
bins fall = (1 => 0);
}

endgroup
covergroup I3CCSR__I3C_EC__TTI__TARGET_ERR_CNT_RI_READONLY_fld_cg with function sample(
input bit [8-1:0] CNT
);
option.per_instance = 1;
CNT_cp : coverpoint CNT;

endgroup

/*----------------------- I3CCSR__I3C_EC__TTI__TARGET_ERR_CNT_RI_UNSUPPORTED COVERGROUPS -----------------------*/
covergroup I3CCSR__I3C_EC__TTI__TARGET_ERR_CNT_RI_UNSUPPORTED_bit_cg with function sample(input bit reg_bit);
option.per_instance = 1;
reg_bit_cp : coverpoint reg_bit {
bins value[2] = {0,1};
}
reg_bit_edge_cp : coverpoint reg_bit {
bins rise = (0 => 1);
bins fall = (1 => 0);
}

endgroup
covergroup I3CCSR__I3C_EC__TTI__TARGET_ERR_CNT_RI_UNSUPPORTED_fld_cg with function sample(
input bit [8-1:0] CNT
);
option.per_instance = 1;
CNT_cp : coverpoint CNT;

endgroup

/*----------------------- I3CCSR__I3C_EC__TTI__TARGET_ERR_CNT_RI_RX_FIFO_OVERFLOW COVERGROUPS -----------------------*/
covergroup I3CCSR__I3C_EC__TTI__TARGET_ERR_CNT_RI_RX_FIFO_OVERFLOW_bit_cg with function sample(input bit reg_bit);
option.per_instance = 1;
reg_bit_cp : coverpoint reg_bit {
bins value[2] = {0,1};
}
reg_bit_edge_cp : coverpoint reg_bit {
bins rise = (0 => 1);
bins fall = (1 => 0);
}

endgroup
covergroup I3CCSR__I3C_EC__TTI__TARGET_ERR_CNT_RI_RX_FIFO_OVERFLOW_fld_cg with function sample(
input bit [8-1:0] CNT
);
option.per_instance = 1;
CNT_cp : coverpoint CNT;

endgroup

/*----------------------- I3CCSR__I3C_EC__TTI__TARGET_ERR_CNT_RI_INDIRECT_FIFO_OVERFLOW COVERGROUPS -----------------------*/
covergroup I3CCSR__I3C_EC__TTI__TARGET_ERR_CNT_RI_INDIRECT_FIFO_OVERFLOW_bit_cg with function sample(input bit reg_bit);
option.per_instance = 1;
reg_bit_cp : coverpoint reg_bit {
bins value[2] = {0,1};
}
reg_bit_edge_cp : coverpoint reg_bit {
bins rise = (0 => 1);
bins fall = (1 => 0);
}

endgroup
covergroup I3CCSR__I3C_EC__TTI__TARGET_ERR_CNT_RI_INDIRECT_FIFO_OVERFLOW_fld_cg with function sample(
input bit [8-1:0] CNT
);
option.per_instance = 1;
Expand Down
Loading