Forum Discussion
Altera_Forum
Honored Contributor
14 years agoparametrized bufif
Hi, I would like to parametrized a module in verilog that will instantiate a "x" number of modules.. below is and example of what I am trying to do.. Could someone show me the right way of...
Altera_Forum
Honored Contributor
14 years agoUse a generate.
genvar n;
generator for(n = 0; n < ffisze; n = n+1) begin : gen_buffer
bufif1 b1(out, in oe);
end
endgenerate That said.. this should do the same thing. assign out = oe ? in : {ffsize{1'bz}};