21.4.18 sd_create_scalar_net

Description

This Tcl command creates a scalar net in a SmartDesign component. Any net created must be connected to two or more ports/pins using the command "sd_connect_net_to_pins".

Note: This command is not required to build a SmartDesign component. It is not exported when user selects 'Export Component Description(Tcl)' on a SmartDesign component. This command is used to manually create a Tcl script and specify a new name to the net that connects two or more ports/pins.
sd_create_scalar_net -sd_name {smartdesign component name} \
                     -net_name {net name}

Arguments

ParameterTypeDescription
sd_namestringSpecifies the name of the SmartDesign component. It is mandatory.
net_namestringSpecifies the name of the net added to the SmartDesign component. It is mandatory.
Return TypeDescription
NoneNone

Error Codes

Error CodeDescription
NoneRequired parameter 'net_name' is missing.
NoneRequired parameter 'pin_names' is missing.
NoneRequired parameter 'sd_name' is missing.
NoneUnconnected input pin instance_name:pin_name
NoneParameter 'param_name' is not defined. Valid command formatting is 'sd_connect_net_to_pins -sd_name "sd_name" -net_name "net_name" -pin_names "[pin_names]+"'.
NoneParameter 'net_name' has illegal value.
NoneNet 'net_name' does not exist.
NoneThe component '' doesn't exist.
NoneThe component 'component_name' doesn't exist.
SDCTRL05Pin 'pin_or_port_name' does not exist.
NoneCannot promote pin 'pin_name' on 'instance_name' to top because it is already connected to a top level port.

Supported Families

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

Example

The following example creates a scalar net with "clk_net" name in a "Top" component and connects CLKRAM64x12_0:R_CLK, RAM64x12_0:W_CLK ports via clk_net net:

Note: This new net is visible in the UI only when it is connected to two or more ports/pins using the command sd_connect_net_to_pins shown below.
sd_create_scalar_net -sd_name {Top} -net_name {clk_net}
sd_connect_net_to_pins -sd_name {Top} -net_name {clk_net} \
                       -pin_names {CLKRAM64x12_0:R_CLK RAM64x12_0:W_CLK}

See Also

  • sd_create_scalar_port