Main Content

addIncludeFolder

R2026b

Class: hdlcoder.ReferenceDesign
Namespace: hdlcoder

Specify a folder path for device tree include files and interface-specific fragment files

Syntax

addIncludeFolder(dirPath)

Description

addIncludeFolder(dirPath) specifies a folder path for files used to compile the device tree. You can also use include folders to store interface-specific design, device tree, and constraint fragment files referenced by the DesignFragment, DeviceTreeFragment, and ConstraintFragment arguments of reference design interface registration functions such as addAXI4MasterInterface, addAXI4StreamInterface, addAXI4StreamVideoInterface, and addRegisterInterface.

Input Arguments

expand all

Absolute path or relative path of an include folder, specified as a string or character vector. The include folder path can be either an absolute path or a path relative to the reference design plugin folder. You do not need to specify the reference design plugin folder as an include folder because it is automatically added to the include folder list. All include folders exist on the host computer. If a folder cannot be found, a warning is produced and the include folder is skipped.

Example: "C:\work\devicetrees\zynq" specifies an absolute path.

Example: "devicetrees\zynq" specifies a path relative to the reference design plugin folder.

Example: "C:\work\tcl" specifies a folder that contains files referenced by the DesignFragment argument.

Example: "C:\work\constraints" specifies a folder that contains files referenced by the ConstraintFragment argument.

Version History

Introduced in R2021b

expand all