Import an IP file and add it to the fileset
Syntax
import_ip [‑srcset <arg>] [‑name <arg>] [‑quiet] [‑verbose] [<files>]
Returns
List of file objects that were added.
Usage
Name | Description |
---|---|
[-srcset]
|
(Optional) Specifies the source file set containing the objects to be upgraded Default: The current source fileset Values: Source set name |
[-name]
|
(Optional) Specifies a replacement name for the imported IP; may not be used with multiple files. Default: The current name for the imported IP Values: The new name for the imported IP |
[-quiet]
|
Ignore command errors |
[-verbose]
|
Suspend message limits during command execution |
[<files>]
|
Names of the IP files to be imported Values: A list of XCI (and/or XCO) file name(s) |
Description
Adds an existing XCI or XCO file as an IP source into the current project, and copies it into the local project directory structure.
The import_ip
command allows you to read existing IP files directly, and copy them into the local project folders. Use the read_ip
or add_files
command to add IP files by reference into the current project.
Use the create_ip
command to create new IP files from the current IP catalog.
Arguments
-srcset <arg>
- (Optional) Specifies the source file set to import the IP files into. If not specified, the default source file set is sources_1.
-name <arg>
- (Optional) The name to assign to the IP object as it is added to the current source fileset. This option can only be used when a single file is specified in <files>
.
-quiet
- (Optional) Execute the command quietly, returning no messages from the command. The command also returns TCL_OK regardless of any errors encountered during execution.
-verbose
- (Optional) Temporarily override any message limits and return all messages from this command.
set_msg_config
command.
<files>
- (Optional) The names of the IP files to be imported into the current project. Each IP must be in the form of an existing XCI file or XCO file. An XCI file is an IP-XACT format file that contains information about the IP parameterization. An XCO file is a CORE Generator log file that records all the customization parameters used to create the IP core and the project options in effect when the core was generated. The XCI or XCO files are used to recreate the core in the current project.
Examples
The following example copies the 10gig ethernet core into the current project, and assigns it a name of IP_block1:
import_ip C:/Data/FPGA_Design/10gig_eth.xci -name IP_block1