Using Custom Megafunctions & Macrofunctions
You can create a user-defined megafunction or macrofunction in AHDL by generating an AHDL AHDL Include File (.inc), which contains an AHDL Function
Prototype, for each lower-level logic function that is instantiated in the top-level 
Text Design File (.tdf). You can either manually create the AHDL Include File, or create an AHDL Include File from any 
Quartus® II-supported design file in the Quartus II Text
Editor, Block Editor, or Symbol Editor. In addition, the Quartus II MegaWizard® Plug-In Manager 
automatically generates an AHDL Include File containing a Function Prototype when you 
use it to create a custom megafunction variation.
 
After you create the user-defined function, you can then instantiate the function in a TDF as described in Using an Altera® Unparameterized Function or Using an Altera Parameterized Function.
  
Back to Top
  
  |  Created by chm2web html help conversion utility.  |