AHDL

Include Statement



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 Go 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 User Libraries page of the Settings dialog box (Assignments menu).

  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, you can perform an elaboration or analysis on, or fully recompile, the design to update the view of the design hierarchy in the Hierarchies tab of the Project Navigator.


Back to Top

- Altera -

 

Created by chm2web html help conversion utility.