21.5.3 hdl_core_add_bif

Description

This Tcl command adds a bus interface to an HDL core.

The command will fail if the module name or Bus Interface Definition are not specified or are incorrect.

hdl_core_add_bif \
-hdl_core_name { hdl_core_name } \
-bif_definition { Name:Vendor:Library:Role } \
-bif_name { bus_interface_name } \
[-signal_map { signal_map }]

Arguments

ParameterTypeDescription

hdl_core_name

string

Specify the HDL core name to which the bus interface needs to be added. This is a mandatory argument.

bif_definition

string

Specify the Bus Interface Definition Name, Vendor, Library and Bus Role of the core in the format {N:V:L:R}. This is a mandatory argument.

bif_name

string

Specify the bus interface port name being added to the HDL core. This is a mandatory argument.

signal_map

list of strings

This argument is used to specify the signal map of the bus interface. This is an optional argument.

Return TypeDescription
NoneNone

Error Codes

Error CodeDescription

None

Required parameter 'hdl_core_name' is missing.

None

The bus interface 'BIF_name' has already been defined.

None

Parameter 'signal_map' has illegal value.

None

Parameter 'param_name' is not defined. Valid command formatting is

'hdl_core_add_bif -hdl_core_name "hdl_core_name" -bif_definition "BIF definition" -bif_name "BIF name" [-signal_map "[signal map]+"]'

Supported Families

PolarFire®
PolarFire SoC
SmartFusion® 2
IGLOO® 2
RTG4

Example

The following command adds 'BIF_1' bus interface to 'test_hdl_core' HDL core with the spceified bus interface definition.

hdl_core_add_bif -hdl_core_name {test_hdl_core} \
-bif_definition {AHB:AMBA:AMBA2:master} -bif_name {BIF_1}

See Also

  • hdl_core_remove_bif

  • hdl_core_rename_bif