Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[otp_ctrl] Fix OTP_CTRL enums #21356

Merged
merged 1 commit into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion hw/ip/otp_ctrl/rtl/otp_ctrl_dai.sv
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ module otp_ctrl_dai
always_comb begin
otp_err = otp_err_e'(otp_err_i);
if (!PartInfo[part_idx].integrity &&
otp_err_i inside {MacroEccCorrError, MacroEccUncorrError}) begin
otp_err_e'(otp_err_i) inside {MacroEccCorrError, MacroEccUncorrError}) begin
otp_err = NoError;
end
end
Expand Down
2 changes: 1 addition & 1 deletion hw/ip/otp_ctrl/rtl/otp_ctrl_part_buf.sv
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ module otp_ctrl_part_buf
end else begin : gen_no_integrity
assign otp_cmd_o = prim_otp_pkg::ReadRaw;
always_comb begin
if (otp_err_i inside {MacroEccCorrError, MacroEccUncorrError}) begin
if (otp_err_e'(otp_err_i) inside {MacroEccCorrError, MacroEccUncorrError}) begin
otp_err = NoError;
end else begin
otp_err = otp_err_e'(otp_err_i);
Expand Down
2 changes: 1 addition & 1 deletion hw/ip/otp_ctrl/rtl/otp_ctrl_part_unbuf.sv
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ module otp_ctrl_part_unbuf
end else begin : gen_no_integrity
assign otp_cmd_o = prim_otp_pkg::ReadRaw;
always_comb begin
if (otp_err_i inside {MacroEccCorrError, MacroEccUncorrError}) begin
if (otp_err_e'(otp_err_i) inside {MacroEccCorrError, MacroEccUncorrError}) begin
otp_err = NoError;
end else begin
otp_err = otp_err_e'(otp_err_i);
Expand Down
Loading