public class EDIFEquiv
extends java.lang.Object
This is currently only being used with Cadence Virtuoso Composer.
Modifier and Type | Class and Description |
---|---|
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 and Description |
---|
EDIFEquiv(java.lang.String configurationFile)
Create a new EDIF equivalence object.
|
Modifier and Type | Method and Description |
---|---|
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
|
public EDIFEquiv(java.lang.String configurationFile)
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.
public EDIFEquiv.NodeEquivalence getNodeEquivalence(NodeInst ni)
ni
- the NodeInst to look uppublic 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 instpublic 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 questionpublic void print()
public static void mainTest()