Product Documentation
Virtuoso Space-based Router Command Reference
Product Version IC23.1, September 2023

find_net_portion

find_net_portion
{-term s_termName -instance s_instName | -source d_setObj} 
-sink_set d_setObj 

Description

Returns a set containing the subset of shapes of a net that are fed by the source, given by the instance and term or contained in the source set, and that feed the sinks in the specified sink_set and no other sinks in the net.

Arguments

-instance s_instName

Specifies the name of the instance. Used with the -term argument to specify the source.

-sink_set d_setObj

Specifies the set containing sink shapes.

-source d_setObj

Specifies the set containing source shapes.

-term s_termName

Specifies a term name. Used with the -inst argument to specify the source.

Value Returned

d_setObj

Returns the identifier for a set containing all shapes in the net that are fed by the source and that feed the sinks in the specified set and no other sinks in the net.

Examples

Net With One Source and One Sink

In this example, the selected set contains Inst2.PinA.

set netAp [find_net_portion -term Y -instance Inst1 -sink_set [get_selection_set]]

The output set contains Via1, Path1, and Via2.

Net With One Source and Two Sinks

In this example, the source is Inst3.PinY, and the sinks are Inst4.PinA and Inst5.PinB.

set source_set [find_inst_term -instance_name Inst3 -name Y]
set sink_setA [find_inst_term -instance_name Inst4 -name A]
set sink_setB [find_inst_term -instance_name Inst5 -name B]
set sink_setAB [or_sets -set1 $sink_setA -set2 $sink_setB]

The output set contains Via1, Path1, and Via2 when both sinks are included in sink_set, as in the following command.

set np [find_net_portion -source $source_set -sink_set $sink_setAB]

The output set contains Path2 and Via4 when only Inst4.PinA is included in sink_set, as in the following command.

set npA [find_net_portion -source $source_set -sink_set $sink_setA]

The output set contains Path3 and Via3 when only Inst5.PinB is included in sink_set, as in the following command.

set npB [find_net_portion -source $source_set -sink_set $sink_setB]

Net With One Source and Multiple Sinks

In this example, the source is Inst6.PinY, and the sinks are Inst7.PinA, Inst7.PinB, and Inst8.PinC.

set source_set [find_inst_term -instance_name Inst6 -name Y]
set sink_setA [find_inst_term -instance_name Inst7 -name A]
set sink_setB [find_inst_term -instance_name Inst7 -name B]
set sink_setC [find_inst_term -instance_name Inst9 -name C]
set sink_setAB [or_sets -set1 $sink_setA -set2 $sink_setB]
set sink_setAC [or_sets -set1 $sink_setA -set2 $sink_setC]
set sink_setABC [or_sets -set1 $sink_setAB -set2 $sink_setC]

The output set contains Via1, Path1, and Via2 when all sinks are included in sink_set, as in the following command.

set npABC [find_net_portion -source $source_set -sink_set $sink_setABC]

The output set contains Path5 and Via6 when only Inst7.PinA is included in sink_set, as in the following command.

set npA [find_net_portion -source $source_set -sink_set $sink_setA]

The output set contains Path2 and Via4 when Inst7.PinA and Inst7.PinB are included in sink_set, as in the following command.

set npAB [find_net_portion -source $source_set -sink_set $sink_setAB]

The output set is empty when Inst7.PinA and Inst8.PinC are included in sink_set, as in the following command.

set npAC [find_net_portion -source $source_set -sink_set $sink_setAC]

In this case, there are no shapes that are common to Inst7.PinA and Inst8.PinC that are not common to Inst7.PinB.

Related Topics

Edit Commands

find_inst_term


Return to top
 ⠀
X