My code:
module adder(a,b,result);
input wire [9:0] a,b;
output wire [10:0] result;
assign result = a + b;
endmodule
My company recently changed policy to escalate the linting rule (W164a and W164b) mismatch of LHS and RHS bit widths from warnings to errors. Now I either have to waive these lines of code to tell the linting software not to freak out, or I have to prepend 1'b0 to both a & b.
What is the right approach here?
found some issue because they ignored this warningis unexpected. – greybeard May 06 '23 at 05:13