Forum Discussion
Altera_Forum
Honored Contributor
15 years agotruncated value
Hi all, when I'm designing a simple mux: assign cmp_b = sel_ab1 ? (n+1'b1) : a; where N = 2 I got this warning: "Warning (10230): Verilog HDL assignment warning at determining...
Altera_Forum
Honored Contributor
15 years agoI presume cmp_b and a are 32 bits wide.
Change the adder to match 32bits: assign cmp_b = sel_ab1 ? (N+32'h00000001) : a; You may need to modify N width, too.