clic icon indicating copy to clipboard operation
clic copied to clipboard

Lint error when setting INTCTLBITS to non-default value

Open marco-hartmann-nxp opened this issue 2 years ago • 0 comments

Hi, I am linting the clic_apb module with Verilator using verilator --lint-only --top-module clic_apb $(bender script verilator). There are a few warnings, but no errors.

However, when I change the parameter INTCTLBITS of clic_apb to a non-default value (e.g. 4), I get the following error:

%Error: [...]/clic/src/clic.sv:114:19: SEL unexpected in assignment to unpacked array
  114 |     .prio_i      (intctl),
      |                   ^~~~~~

This happens because signal intctl has a hardcoded width of 8 and not INTCTLBITS bits (same for signal irq_max). The error can likely be fixed by changing the width of these signals, but I am not sure if any other logic needs to be changed also.

marco-hartmann-nxp avatar Feb 02 '24 12:02 marco-hartmann-nxp