Specifications
CHAPTER 2: DESIGN ENTRY
USING ALTERA MEGAFUNCTIONS
50 ■ INTRODUCTION TO QUARTUS II ALTERA CORPORATION
Instantiating Megafunctions in the 
Quartus II Software
You can instantiate Altera megafunctions and LPM functions in the 
Quartus II software through direct instantiation in the Block Editor, through 
instantiation in HDL code (either by instantiating through the port and 
parameter definition or by using the MegaWizard Plug-In Manager to 
parameterize the megafunction and create a wrapper file), or through 
inference.
Table 4. Files Generated by the MegaWizard Plug-In Manager 
File Name Description
<output file>.bsf
Symbol for the megafunction used in the Block Editor.
<output file>.cmp
Component Declaration File.
<output file>.inc
AHDL Include File for the module in the megafunction wrapper 
file.
<output file>.tdf
Megafunction wrapper file for instantiation in an AHDL design.
<output file>.vhd
Megafunction wrapper file for instantiation in a VHDL design.
<output file>.v
Megafunction wrapper file for instantiation in a Verilog HDL 
design.
<output file>_bb.v
Hollow-body or black box declaration of the module in the 
megafunction wrapper file used in Verilog HDL designs to 
specify port directions when using EDA synthesis tools.
<output file>_inst.tdf
Sample AHDL instantiation of the subdesign in the 
megafunction wrapper file.
<output file>_inst.vhd
Sample VHDL instantiation of the entity in the megafunction 
wrapper file.
<output file>_inst.v
Sample Verilog HDL instantiation of the module in the 
megafunction wrapper file.
!
Using the Stand-Alone MegaWizard Plug-In Manager
You can use the MegaWizard Plug-In Manager from outside the Quartus II 
software by typing the following command at a command prompt:
qmegawiz
r










