Include Statement (AHDL)

The Include Statement allows you to import text from an AHDL Include File (.inc) into the current file. The following example shows an Include Statement:

INCLUDE "const.inc";

The Include Statement has the following characteristics:

Note: Refer to Include Statement & AHDL Include File Rules for additional information on using AHDL Include Files and Include Statements.

Include Statements are often used to include Function Prototypes for a lower-level design file in a Text Design File (.tdf). You can then insert an instance of the logic function with an Instance Declaration or an in-line logic function reference.

When you compile a file, the Compiler searches for AHDL Include Files in the following order:

  1. The project directory.
  2. Any user libraries specified with the Settings dialog box.
  3. The \quartus\libraries\megafunctions and \quartus\libraries\others\maxplus2 directories created during installation.

If you change a TDF that includes an AHDL Include File, perform analysis and elaboration or Hierarchy tab of the Project Navigator.