Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
many thanks! this looks good! I copied here for others;
generate
if (IF_WIDTH < 10)
begin : if_name
adder # (IF_WIDTH) u1 (a, b, sum_if);
end
else
begin : else_name
subtractor # (IF_WIDTH) u2 (a, b, sum_if);
end
endgenerate
In Linux we can use ## to pull in a string and use it as a function name, now I want to do with module name in verilog.
I want instantiating say four modules of mx(x=0~3), each instance uses a different module mmx to further instantiating mmy(y=0~1), so:
mx m0() shall contain: mm0 mm00(); mm0...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.