21.17.4 read_vhdl
(Ask a Question)Description
Add a VHDL file into the list of VHDL files.
read_vhdl [-lib <libname>] [-mode <mode>] <filename>
Arguments
Parameter | Type | Description |
---|---|---|
-lib <libname> | — | Specify the library in which the content needs to 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. |
filename | — | VHDL file name. |
Return Type | Description |
---|---|
0 | Command succeeded. |
1 | Command failed. There is an error. You can observe the error message in the console. |
List of Errors
Error Code | Error Message | Description |
---|---|---|
ERR0023 | Parameter—lib is missing value | The lib option is specified without value. |
ERR0023 | Parameter—mode is missing value | The 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 missing | No VHDL file path is provided. |
ERR0019 | Unable to register invalid_path.v file | The specified VHDL file does not exist or does not have read permissions. |
ERR0012 | set_device is not called | The device information is not specified. Use set_device command to describe the device. |
Supported Families
PolarFire® |
PolarFire SoC |
RTG4™ |
SmartFusion® 2 |
IGLOO® 2 |
Example
read_vhdl -mode vhdl_2008 osc2dfn.vhd
read_vhdl {hdl/top.vhd}