Skip to content

Commit 6c4b9fc

Browse files
committed
Ignore WIDTHEXPAND lint errors on parameter checks
1 parent 20f2250 commit 6c4b9fc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

rtl/fazyrv_top.sv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ endgenerate
319319

320320
// Check parameters
321321
//
322+
/* verilator lint_off WIDTHEXPAND */
322323
localparam CHUNKSIZE_OK = (CHUNKSIZE==1) || (CHUNKSIZE==2) ||
323324
(CHUNKSIZE==4) || (CHUNKSIZE==8);
324325

@@ -333,5 +334,6 @@ localparam MEMDLY1_OK = (MEMDLY1==0) || (MEMDLY1==1);
333334
if (!(CHUNKSIZE_OK && CONF_OK && RFTYPE_OK && MEMDLY1_OK)) begin
334335
$fatal(1, "At least one of the parameters is not valid.");
335336
end
337+
/* verilator lint_on WIDTHEXPAND */
336338

337339
endmodule

0 commit comments

Comments
 (0)