com.sun.electric.tool.ncc.result.equivalence
Class Equivalence

java.lang.Object
  extended by com.sun.electric.tool.ncc.result.equivalence.Equivalence
All Implemented Interfaces:
java.io.Serializable

public class Equivalence
extends java.lang.Object
implements java.io.Serializable

Save the equivalence information produced by NCC so that a tool can map a Part or Wire in the schematic to the equivalent Part or Wire in the layout.

See Also:
Serialized Form

Constructor Summary
Equivalence(HierarchyEnumerator.NetNameProxy[][] equivNets, HierarchyEnumerator.NodableNameProxy[][] equivNodes, Cell[] nccRootCells, VarContext[] nccRootCtxts)
           
 
Method Summary
 void clearCache()
          To reduce storage requirements, release cached information when you are done using this Equivalence table.
 HierarchyEnumerator.NetNameProxy findEquivalentNet(VarContext vc, Network net)
          Given a Network in one design, return the matching network in the other design.
 HierarchyEnumerator.NetNameProxy findEquivalentNetShortingResistors(VarContext vc, Network net)
          Given a Network in one design, return the matching network in the other design.
 HierarchyEnumerator.NodableNameProxy findEquivalentNode(VarContext vc, Nodable node)
          Given a Nodable in one design, return the matching Nodable in the other design.
 int regressionTest(Cell cell0, Cell cell1)
          Perform a sanity check of the equivalence tables.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Equivalence

public Equivalence(HierarchyEnumerator.NetNameProxy[][] equivNets,
                   HierarchyEnumerator.NodableNameProxy[][] equivNodes,
                   Cell[] nccRootCells,
                   VarContext[] nccRootCtxts)
Method Detail

findEquivalentNet

public HierarchyEnumerator.NetNameProxy findEquivalentNet(VarContext vc,
                                                          Network net)
Given a Network in one design, return the matching network in the other design.

Parameters:
vc - the VarContext specifying the instance path of the network
net - the network in one design
Returns:
the matching network in the other design

findEquivalentNetShortingResistors

public HierarchyEnumerator.NetNameProxy findEquivalentNetShortingResistors(VarContext vc,
                                                                           Network net)
Given a Network in one design, return the matching network in the other design. Treat resistors as short circuits.

Parameters:
vc - the VarContext specifying the instance path of the network
net - the network in one design
Returns:
the matching network in the other design

findEquivalentNode

public HierarchyEnumerator.NodableNameProxy findEquivalentNode(VarContext vc,
                                                               Nodable node)
Given a Nodable in one design, return the matching Nodable in the other design.

Parameters:
vc - the VarContext specifying the instance path of the Nodable
node - the Nodable in one design
Returns:
the matching Nodable in the other design

regressionTest

public int regressionTest(Cell cell0,
                          Cell cell1)
Perform a sanity check of the equivalence tables. This method is used by the NCC regressions.

Parameters:
cell0 - first Cell. this is used for the status message
cell1 - second Cell. this is used for the status message

clearCache

public void clearCache()
To reduce storage requirements, release cached information when you are done using this Equivalence table.