21.4.19 sd_create_scalar_port

Description

This Tcl command creates a scalar port in a SmartDesign component.

sd_create_scalar_port -sd_name {smartdesign component name} \
                      -port_name {port name} \
                      -port_direction {IN|OUT|INOUT} 

Arguments

ParameterTypeDescription
sd_namestringSpecifies the name of the SmartDesign component. It is mandatory.
port_namestringSpecifies the name of the port added to the SmartDesign component. It is mandatory.
port_directionstringSpecifies the direction of the port added to the SmartDesign component. It is mandatory.
Return TypeDescription
NoneNone

Error Codes

Error CodeDescription
NoneInvalid argument value: '' (expecting IN, OUT or INOUT).
NoneParameter 'port_name' has illegal value.
NoneRequired parameter 'sd_name' is missing.
NoneParameter 'param_name' is not defined. Valid command formatting is 'sd_create_scalar_port -sd_name "sd_name" -port_name "port_name" -port_direction "IN | OUT | INOUT"'.

Supported Families

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

Example

The following tcl command creates "P1" scalar input port in the "main" design:

sd_create_scalar_port -sd_name {main} \
                      -port_name {P1} \
                      -port_direction {IN}

See Also

  • sd_create_scalar_net