21.4.15 sd_create_bus_port

Description

This tcl command creates a bus port of a given range in a SmartDesign component.

sd_create_bus_port -sd_name {smartdesign component name} \
                   -port_name {port name} \
                   -port_direction {IN|OUT|INOUT} \
                   -port_range {[left range index:right range index]}

Arguments

ParameterTypeDescription

sd_name

string

Specifies the name of the SmartDesign component. It is mandatory.

port_name

string

Specifies the name of the bus port added to be SmartDesign component. It is mandatory.

port_direction

string

Specifies the direction of the bus port added to the SmartDesign component. It is mandatory.

port_range

string

Specifies the range of the bus port added to the SmartDesign component. The range is defined by the left and rightindices. It is mandatory. The range must be specified inside the square brackets.

Return TypeDescription
NoneNone

Error Codes

Error CodeDescription

None

Parameter 'port_range' has illegal value.

None

Required parameter 'port_range' is missing.

None

Parameter 'port_direction' has illegal value.

None

Required parameter 'port_direction' is missing.

None

Parameter 'port_name' has illegal value.

None

Required parameter 'port_name' is missing.

None

Parameter 'sd_name' has illegal value.

None

Required parameter 'sd_name' is missing.

None

Parameter 'param_name' is not defined. Valid command formatting is 'sd_create_bus_port -sd_name "sd_name" -port_name "port_name" -port_direction "IN | OUT | INOUT" -port_range "port_range"'.

Supported Families

Supported Families
PolarFire®
PolarFire SoC
RTG4
SmartFusion® 2
IGLOO® 2

Example

This example creates bus port with name "test_port13", direction "OUT" and in [9:36] range.

sd_create_bus_port -sd_name {top} \
                   -port_name {test_port13} \
                   -port_direction {OUT} \
                   -port_range {[9:36]}
sd_create_bus_port -sd_name {top} \
                   -port_name {test_port4} \
                   -port_direction {IN} \
                   -port_range {[31:0]}

See Also

  • sd_create_bus_net