Linting fix

Signed-off-by: Eric Matthews <ematthew@sfu.ca>
This commit is contained in:
Eric Matthews 2022-11-14 11:38:41 -05:00
parent 2339ae182c
commit 7de7e1a5c0

View file

@ -316,6 +316,7 @@ interface addr_utils_interface #(parameter bit [31:0] BASE_ADDR = 32'h00000000,
localparam int unsigned BIT_RANGE = bit_range();
/* verilator lint_off SELRANGE */
function address_range_check (input logic[31:0] addr);
return (BIT_RANGE == 0) ? 1 : (addr[31:32-BIT_RANGE] == BASE_ADDR[31:32-BIT_RANGE]);
endfunction