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

Lint fix for issue #884 #887

Merged
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
11 changes: 8 additions & 3 deletions rtl/cv32e40x_cs_registers.sv
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,14 @@ module cv32e40x_cs_registers import cv32e40x_pkg::*;
logic [32-MTVT_ADDR_WIDTH-2-1:0] mnxti_irq_id;

// Pad mnxti_irq_i with zeroes if CLIC_ID_WIDTH is not 4 or more.
assign mnxti_irq_id = (CLIC_ID_WIDTH < 4) ? {{(4-CLIC_ID_WIDTH){1'b0}}, mnxti_irq_id_i} : mnxti_irq_id_i;


generate
if (CLIC_ID_WIDTH < 4) begin : mnxti_irq_id_lt4
assign mnxti_irq_id = {{(4-CLIC_ID_WIDTH){1'b0}}, mnxti_irq_id_i};
end
else begin: mnxti_irq_id_ge4
assign mnxti_irq_id = mnxti_irq_id_i;
end
endgenerate

// Local instr_valid for write portion (WB)
// Not factoring in ctrl_fsm_i.halt_limited_wb. This signal is only set during SLEEP mode, and while in SLEEP
Expand Down