21.4.18 sd_create_scalar_net
(Ask a Question)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
Parameter | Type | Description |
---|---|---|
sd_name | string | Specifies the name of the SmartDesign component. It is mandatory. |
net_name | string | Specifies the name of the net added to the SmartDesign component. It is mandatory. |
Return Type | Description |
---|---|
None | None |
Error Codes
Error Code | Description |
---|---|
None | Required parameter 'net_name' is missing. |
None | Required parameter 'pin_names' is missing. |
None | Required parameter 'sd_name' is missing. |
None | Unconnected input pin instance_name:pin_name |
None | Parameter '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]+"'. |
None | Parameter 'net_name' has illegal value. |
None | Net 'net_name' does not exist. |
None | The component '' doesn't exist. |
None | The component 'component_name' doesn't exist. |
SDCTRL05 | Pin 'pin_or_port_name' does not exist. |
None | Cannot 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