17.1.9.1.4 read_vhdl

Description

Add a VHDL file into the list of VHDL files.

read_vhdl [-lib <libname>] [-mode <mode>] <filename>

Arguments

ParameterTypeDescription
-lib <libname>Specify the library in which the content must be added.
-mode <mode>Specifies the VHDL standard. Default is VHDL_93. Possible values are vhdl_93, vhdl_87, vhdl_2k, vhdl_2008, vhdl_psl. Values are case insensitive.
filenameVHDL file name.
Return TypeDescription
0Command succeeded.
1Command failed. There is an error. You can observe the error message in the console.

List of Errors

Error CodeError MessageDescription

ERR0023

Parameter—lib is missing valueThe lib option is specified without value.

ERR0023

Parameter—mode is missing valueThe mode option is specified without value.

ERR0018

Unknown mode '<mode>'The specified VHDL mode is unknown. See the list of possible VHDL mode in—mode option description.

ERR0023

Required parameter file name is missingNo VHDL file path is provided.

ERR0019

Unable to register invalid_path.v fileThe specified VHDL file does not exist or does not have read permissions.

ERR0012

set_device is not calledThe device information is not specified. Use set_device command to describe the device.

Example

read_vhdl -mode vhdl_2008 osc2dfn.vhd
read_vhdl {hdl/top.vhd}