|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.electric.tool.io.output.EDIFEquiv
public class EDIFEquiv
Reads in a configuration file that specifies the equivalent Electric nodes for Nodes found in (or to be written to) the EDIF file. This allows mapping of Electric primitives and Cells to primitives and cells in the target Tool which will read in the EDIF, or vice versa. Most importantly, it specifies equivalences between ports on the two nodes which may be in different locations. Differing sizes of nodes does not matter.
This is currently only being used with Cadence Virtuoso Composer.
Nested Class Summary | |
---|---|
static class |
EDIFEquiv.FigureGroupEquivalence
|
static class |
EDIFEquiv.GlobalEquivalence
|
static class |
EDIFEquiv.NodeEquivalence
|
static class |
EDIFEquiv.Port
|
static class |
EDIFEquiv.PortEquivalence
|
static class |
EDIFEquiv.VariableEquivalence
|
Constructor Summary | |
---|---|
EDIFEquiv()
Create a new EDIF equivalence object. |
Method Summary | |
---|---|
EDIFEquiv.FigureGroupEquivalence |
getElectricFigureGroupEquivalence(java.lang.String fgName)
Method to get the FigureGroupEquivalence that maps Electric figuregroup names to external names. |
EDIFEquiv.GlobalEquivalence |
getElectricGlobalEquivalence(java.lang.String gName)
Method to get the GlobalEquivalence that maps Electric global names to external names. |
EDIFEquiv.VariableEquivalence |
getElectricVariableEquivalence(java.lang.String varName)
Method to get the VariableEquivalence that maps Electric variable names to external names. |
EDIFEquiv.FigureGroupEquivalence |
getExternalFigureGroupEquivalence(java.lang.String fgName)
Method to get the FigureGroupEquivalence that maps external figuregroup names to Electric names. |
EDIFEquiv.GlobalEquivalence |
getExternalGlobalEquivalence(java.lang.String gName)
Method to get the GlobalEquivalence that maps external global names to Electric names. |
EDIFEquiv.VariableEquivalence |
getExternalVariableEquivalence(java.lang.String varName)
Method to get the VariableEquivalence that maps external variable names to Electric names. |
EDIFEquiv.NodeEquivalence |
getNodeEquivalence(NodeInst ni)
Get the node equivalence for the NodeInst. |
EDIFEquiv.NodeEquivalence |
getNodeEquivalence(java.lang.String extLib,
java.lang.String extCell,
java.lang.String extView)
Get the node equivalence for the external reference. |
java.util.List<EDIFEquiv.NodeEquivalence> |
getNodeEquivs()
Get a list of NodeEquivalences |
static void |
mainTest()
Unit Test |
void |
print()
|
java.awt.geom.Point2D |
translatePortConnection(java.awt.geom.Point2D connPoint,
PortInst pi)
Translate a port location on an Electric node to a the equivalent port location on the equivalent external node instance. |
java.awt.geom.Point2D |
translatePortConnection(java.awt.geom.Point2D connPoint,
java.lang.String externalLib,
java.lang.String externalCell,
java.lang.String externalView,
java.lang.String externalPort,
java.lang.String orientation)
Translate a port location on an external node instance to the equivalent port location on the equivalent Electric node instance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EDIFEquiv()
C Lib Cell View rotation { porta(x,y), ... } ExternalLib ExternalCell ExternalView { porta(x,y), ... } P Tech NodeName Function rotation { porta(x,y), ... } ExternalLib ExternalCell ExternalView { porta(x,y), ... } F FigureGroup ExternalFigureGroup V VariableName ExternalVariableName [appendToElectricOutput] # comment'C' is for Cell, and 'P' is for Primitive. The left hand size specifies the Electric cell/node, while the right hand side specifies the External tool's cell/node. The list of ports must be the same in length, and specify the x,y coordinate of the port. This coordinate is on the prototype of the node, or also when the node is default size at 0,0. Note that Electric port locations should be locations after the node has been rotated, if rot is not 0. Rotation should be in tenth-degrees. For 'F', an association between internal FigureGroup names and external names is declared. For 'V', an association between internal Variable names and external names is declared. You can also specify a string to be append to all matching Variable values.
Method Detail |
---|
public EDIFEquiv.NodeEquivalence getNodeEquivalence(NodeInst ni)
ni
- the NodeInst to look up
public EDIFEquiv.VariableEquivalence getElectricVariableEquivalence(java.lang.String varName)
varName
- the Electric variable name.
public EDIFEquiv.VariableEquivalence getExternalVariableEquivalence(java.lang.String varName)
varName
- the external variable name.
public EDIFEquiv.FigureGroupEquivalence getElectricFigureGroupEquivalence(java.lang.String fgName)
fgName
- the Electric figuregroup name.
public EDIFEquiv.FigureGroupEquivalence getExternalFigureGroupEquivalence(java.lang.String fgName)
fgName
- the external figuregroup name.
public EDIFEquiv.GlobalEquivalence getElectricGlobalEquivalence(java.lang.String gName)
gName
- the Electric global name.
public EDIFEquiv.GlobalEquivalence getExternalGlobalEquivalence(java.lang.String gName)
gName
- the external global name.
public EDIFEquiv.NodeEquivalence getNodeEquivalence(java.lang.String extLib, java.lang.String extCell, java.lang.String extView)
extLib
- extCell
- extView
-
public java.util.List<EDIFEquiv.NodeEquivalence> getNodeEquivs()
public java.awt.geom.Point2D translatePortConnection(java.awt.geom.Point2D connPoint, PortInst pi)
connPoint
- the electric connection pointpi
- the port inst
public java.awt.geom.Point2D translatePortConnection(java.awt.geom.Point2D connPoint, java.lang.String externalLib, java.lang.String externalCell, java.lang.String externalView, java.lang.String externalPort, java.lang.String orientation)
connPoint
- the connection point on the external node instanceexternalLib
- the external node's libraryexternalCell
- the external nodeexternalView
- the external node's viewexternalPort
- the external node's port in question
public void print()
public static void mainTest()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |