I'm working on a project and I would like to implement variable module instantiation if that is possible. This is an example from my project where I am generating an array of multiplier modules that I've designed. To change data types(i.e. integer->floating point->fixed point) I need to change the module I'm calling, is there a way to do this easily by modifying my code? I've tried looking and it seems like I'm out of luck for answers.
I'm not sure how much this matters, but I am writing my code in Vivado 2019.2 for the Pynq-Z2.
My old code:
generate
genvar m ;
for(m=0;m<`inputPortCount;m=m+1)begin
integercomputeBlockPynq m_computeBlock_in(i/o assign);
end
endgenerate