Function Prototype Definition

Specifies the ports (pinstubs) of a primitive, Intel® FPGA IP, or macrofunction in AHDL. A Function Prototype consists of the name of the function, and a list of its inputs and outputs. For mega- and macrofunctions, the Function Prototype can also contain parameters that are used to specify the characteristics of the function. Function Prototypes are specified in the Function Prototype Statement. They are often stored in AHDL Include Files (.inc). AHDL Include files that contain Function Prototypes for Intel-provided Intel® FPGA IP are located in the \quartus\libraries\Intel® FPGA IP directory created during installation of the Quartus® Prime software.

To implement an instance of a mega- or macrofunction in AHDL, you must define its logic in a design file and declare its Function Prototype. (Function Prototypes are optional for primitives). You can then create an instance of the function with an Instance Declaration or an in-line logic function reference.

Note:

When you use a Module Instantiation in Verilog HDL, the Compiler uses the port name and order information in AHDL Include files that contain Function Prototypes to implement an instance of the logic function.