Forum Discussion
Altera_Forum
Honored Contributor
16 years agoverilog- parameterized mux
For the life of me I cannot figure out how to generate a parameterized mux in verilog... I understand how to generate, say, a 4:1 MUX of "N" bits wide... But I am trying to generate an N:1 mux...
Altera_Forum
Honored Contributor
13 years agoOld post, but wondering if this ever synthesized? For me, Quartus synthesis errors out on the line:
input [clogb2(CHANNELS-1)-1:0] sel, Stating: Error (10140): Verilog HDL error at param_mux.sv(6): range index is not constant (I just added another parameter for SEL_WIDTH, and used that, forcing the user to manually enter this value. It's easy enough to do, but not ideal...)