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
Parameter | Type | Description |
---|
sd_name | string | Specifies the name of the SmartDesign component. It is mandatory. |
port_name | string | Specifies the name of the port added to the SmartDesign component. It is mandatory. |
port_direction | string | Specifies the direction of the port added to the SmartDesign component. It is mandatory. |
Return Type | Description |
---|
None | None |
Error Codes
Error Code | Description |
---|
None | Invalid argument value: '' (expecting IN, OUT or INOUT). |
None | Parameter 'port_name' has illegal value. |
None | Required parameter 'sd_name' is missing. |
None | Parameter '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}