Previous

macromodules

The macromodule construct makes simulation more efficient by merging the macromodule definition with the definition of the calling (parent) module. However, Foundation Express treats the macromodule construct as a module construct. Whether you use module or macromodule, the synthesis process, the hierarchy it creates, and the end result are the same. The following example shows how to use the macromodule construct.

   macromodule adder (in1,in2,out1);
   input [3:0] in1,in2;
   output [4:0] out1;

   assign out1 = in1 + in2;
   endmodule

NOTE

When a macromodule is instantiated, a new level of hierarchy is created. You can ungroup this new level of hierarchy in the Modules constraint table for the implementation phase.


Next