21.3.87 set_global_include_file

Description

This Tcl command for setting a file as global include file.

set_global_include_file -file {filename}

Arguments

ParameterTypeDescription
filestringThe user provides the file path to set as global include file. The file path can be absolute path, linked files path or path with Environment variable from project settings.
Return TypeDescription
NoneNone

Error Codes

Error CodeDescription
NoneInvalid Global Include File 'value'.
NoneParameter 'file' has illegal value.
NoneRequired parameter 'file' is missing.
NoneParameter 'param_name' is not defined. Valid command formatting is 'set_global_include_file -file "set global include file"'.

Supported Families

Supported Families
PolarFire®
PolarFire SoC
RTG4
SmartFusion® 2
IGLOO® 2

Example

This example sets global include file with absolute file path.

set_global_include_file -file {E:\prj\global_include_files\hdl\add.h}

ENV from Project settings

set_global_include_file -file {${ENV_2}/xyz.h}

Linked Files TCL variable

set_global_include_file -file "$proj/hdl/abcd.v"