[rtl/otp_ctrl] Report ECC correctable error in consistency check
This PR adds some logic to report ECC correctable error in consistency
check. Previous logic will silently fix the ecc correctable error
without reporting it to status and error bit.
Signed-off-by: Cindy Chen <chencindy@google.com>
diff --git a/hw/ip/otp_ctrl/rtl/otp_ctrl_part_buf.sv b/hw/ip/otp_ctrl/rtl/otp_ctrl_part_buf.sv
index 8e1f916..e131c4f 100644
--- a/hw/ip/otp_ctrl/rtl/otp_ctrl_part_buf.sv
+++ b/hw/ip/otp_ctrl/rtl/otp_ctrl_part_buf.sv
@@ -354,6 +354,10 @@
error_d = CheckFailError;
end
end
+ // Signal ECC soft errors, but do not go into terminal error state.
+ if (otp_err_e'(otp_err_i) == MacroEccCorrError) begin
+ error_d = otp_err_e'(otp_err_i);
+ end
end
end
end