21.5.1 create_hdl_core

Description

This Tcl command is used to create a core component from an HDL core. If an incorrect module name is specified, the command fails.

Important: If you are running this command standalone, you need to add the build_design_hierarchy command prior to this command.
create_hdl_core -file "file name" -module "module name" \
[-library "library name"] [-package "package name"]

Arguments

ParameterTypeDescription

file

string

Specify the absolute file path of the module from which you want to create a core component. This is a mandatory argument.

module

string

​​​​Specify the module name for which you want to create a core component. This is a mandatory argument.

library

string

Specify the library name from which you want to create an HDL core. This is an optional argument.

package

string

Specify the package name from which you want to create a core component. This is an optional argument.

Return TypeDescription
NoneNone

Error Codes

Error CodeDescription

None

Required parameter 'file' is missing.

None

Parameter 'param_name' is not defined. Valid command formatting is'create_hdl_core -file "file name" -module "module name" [-library "library"] [-package "package"]'.

None

Required parameter 'module' is missing.

Supported Families

PolarFire®
PolarFire SoC
SmartFusion® 2
IGLOO® 2
RTG4

Example

The following example creates core component for "test_hdl_core" module from the "hdl_core.v" HDL:

create_hdl_core -file {./HDL_CORE_TEST/hdl/hdl_core.v} \
-module {test_hdl_core}