R
Roy
Guest
Hi All.
I am trying to create a synthesizeable module which get a parameter
and according to it determines the number of muxes in the design. for
example:
for parameter =3 I will get the following:
assign out[0] = input_signal;
assign out[1] = (en[0] ? in[0] : out[0]);
assign out[2] = (en[1] ? in[1] : out[1]);
for parameter =4 :
assign out[0] = input_signal;
assign out[1] = (en[0] ? in[0] : out[0]);
assign out[2] = (en[1] ? in[1] : out[1]);
assign out[3] = (en[2] ? in[2] : out[2]);
for parameter 5,6,7 ... etc.
Any help will be appreciated.
Thanks
Roy
I am trying to create a synthesizeable module which get a parameter
and according to it determines the number of muxes in the design. for
example:
for parameter =3 I will get the following:
assign out[0] = input_signal;
assign out[1] = (en[0] ? in[0] : out[0]);
assign out[2] = (en[1] ? in[1] : out[1]);
for parameter =4 :
assign out[0] = input_signal;
assign out[1] = (en[0] ? in[0] : out[0]);
assign out[2] = (en[1] ? in[1] : out[1]);
assign out[3] = (en[2] ? in[2] : out[2]);
for parameter 5,6,7 ... etc.
Any help will be appreciated.
Thanks
Roy