When I was config pll_reconfig module in Quartus II, the generate for statement in design have to specify different string parameter (filenames) to different instances. I have tried these code:
genvar i;
generate
for (i=0; i<2; i=i+1) begin:u
rom #($sformatf("mif%d.mif",i)) U(
//signals connected.
);
end
endgenerate
It is said that the code is not synthesizable. How can I specify variable string parameter in generate for block?
{}
some thing like {"mif", i, ".mif"}.rom
module with us? It will help us understand how you intend to use the parameter?