21.3.21 create_links
(Ask a Question)Description
This Tcl command creates a link (or links) to a file/files in your project. Specify absolute or relative path and name of the file you want to link. The same file you cannot link to different libraries.
create_links [-convert_EDN_to_HDL "TRUE | FALSE"] \
[-hdl_source_folder "Source folder"]* \
[-library "library"] \
[-hdl_source "file"]* \
[-stimulus "file"]* \
[-edif "file"]* \
[-sdc "file"]* \
[-ndc "file"]* \
[-fp_pdc "file"]* \
[-io_pdc "file"]* \
[-net_fdc "file"]* \
[-verilog_netlist "file"]* \
[-vcd "file"]* \
[-dcf "file"]* \
[-pin "file"]* \
[-crt "file"]* \
[-gcf "file"]*
Arguments
Parameter | Type | Description |
---|---|---|
convert_EDN_to_HDL | boolean | Use the -convert_EDN_to_HDL parameter to convert the EDIF file to HDL and then import the converted HDL file. Valid values: TRUE, 1, true, FALSE, 0 or false. If the –edif option is not specified or the -convert_EDN_to_HDL is used with another option, EDIF to HDL conversion will fail. |
hdl_source_folder | string | Name of the HDL folder you want to link. For unlink folder you must unlink files form folder one by one. |
library | string | Specifies the name of the library where you want to link file. The same file you cannot link different libraries. |
hdl_source | string | Name of the HDL file you want to link. |
stimulus | string | Name of the stimulus file you want to link. |
edif | string | Name of the EDIF Netlist file you want to link. It used with convert_EDN_to_HDL option. |
sdc | string | Name of the SDC file you want to link. |
ndc | string | Name of the NDC (Compile Netlist Constraint) file you want to link. |
fp_pdc | string | Name of the Floor Planner PDC file you want to link. |
io_pdc | string | Name of the IO PDC file you want to link. |
net_fdc | string | Name of the FDC (Synplify Netlist Constraint) file you want to link. |
vcd | string | Name of the VCD file you want to link. |
verilog_netlist | string | Name of the VM (Synthesized Verilog Netlist) file you want to link. |
pin | string | Name of the PIN file you want to link. (Not supported for PolarFire, SmartFusion 2, IGLOO 2, and RTG4 families). |
dcf | string | Name of the DCF(Timing Constraint Files) file you want to link. (Not supported for PolarFire, SmartFusion 2, IGLOO 2, and RTG4 families). |
gcf | string | Name of the GCF (ProASIC® Constraint Files) file you want to link. (Not supported for PolarFire, SmartFusion 2, IGLOO 2, and RTG4 families). |
crt | string | Name of the CRT (Criticality Files) file you want to link. (Not supported for PolarFire, SmartFusion 2, IGLOO 2, and RTG4 families). |
Error Codes
Error Code | Description |
---|---|
None | Error: Parameter 'vhd' is not defined. Valid command formatting is 'create_links [-convert_EDN_to_HDL "TRUE | FALSE"] \ [-hdl_source_folder "Source folder"]* [-library "library"] \ [-ndc "file"]* [-crt "file"]* \ [-fp_pdc "file"]* [-hdl_source "file"]* \ [-stimulus "file"]* [-io_pdc "file"]* \ [-pin "file"]* [-gcf "file"]* \ [-sdc "file"]* [-net_fdc "file"]* \ [-verilog_netlist "file"]* \ [-dcf "file"]* [-vcd "file"]* |
None | Cannot import the 'Timing Constraint Files'; your selected family does not support DCF constraints. |
None | Cannot import the 'ProASIC Constraint Files'; your selected family does not support GCF constraints. |
None | Cannot import the 'Criticality Files'; your selected family does not support CRT constraints. |
None | Cannot import the 'Pin Files'; your selected family does not support PIN constraints. |
Supported Families
Supported Families |
---|
PolarFire® |
RTG4™ |
SmartFusion® 2 |
IGLOO® 2 |
Example
- Create a link to the file hdl1.v.
create_links -hdl_source hdl1.v
- Link files to the project located at "E:\Share\abc.edn" and "E:\Share\test.v" using Environment variable "MSCC_ROOT_1" that has the root directory path "E:\Share".
create_links \ -convert_EDN_to_HDL 0 \ -library {work} \ -edif {${MSCC_ROOT_1}/abc.edn} \ -hdl_source {${MSCC_ROOT_1}/test.v}