public class EDIFPortInst extends Object implements Comparable<EDIFPortInst>
EDIFCellInst
.
Created on: May 11, 2017Modifier and Type | Field and Description |
---|---|
static byte[] |
EXPORT_CONST_CLOSE_PORT_INST |
static byte[] |
EXPORT_CONST_INSTANCEREF |
static byte[] |
EXPORT_CONST_MEMBER |
static byte[] |
EXPORT_CONST_PORTREF |
Constructor and Description |
---|
EDIFPortInst(EDIFPort port,
EDIFNet parentNet) |
EDIFPortInst(EDIFPort port,
EDIFNet parentNet,
EDIFCellInst cellInst)
Constructor to create a single bit port ref and associate it with its
net and instance.
|
EDIFPortInst(EDIFPort port,
EDIFNet parentNet,
EDIFCellInst cellInst,
boolean deferSort)
Constructor to create a single bit port ref and associate it with its
net and instance.
|
EDIFPortInst(EDIFPort port,
EDIFNet parentNet,
int index) |
EDIFPortInst(EDIFPort port,
EDIFNet parentNet,
int index,
EDIFCellInst cellInst)
Constructor to create a new port ref on the provided instance and connect
it to the provided net
|
EDIFPortInst(EDIFPort port,
EDIFNet parentNet,
int index,
EDIFCellInst cellInst,
boolean deferSort)
Constructor to create a new port ref on the provided instance and connect
it to the provided net
|
EDIFPortInst(EDIFPortInst portInst)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(EDIFPortInst o) |
static EDIFPortInst |
createPortInstFromPortInstName(String portInstName,
EDIFCellInst inst)
Creates a new port instance without connecting it to a net.
|
boolean |
equals(Object obj) |
EDIFCellInst |
getCellInst() |
EDIFDirection |
getDirection() |
String |
getFullName() |
int |
getIndex() |
EDIFNet |
getInternalNet() |
String |
getName() |
EDIFNet |
getNet() |
EDIFCell |
getParentCell() |
EDIFPort |
getPort() |
String |
getPortInstNameFromPort() |
int |
hashCode() |
boolean |
isInput() |
boolean |
isOutput() |
boolean |
isPrimitiveStaticSource()
Checks if this is an output of a GND or VCC primitive cell.
|
boolean |
isTopLevelPort() |
void |
setCellInst(EDIFCellInst cellInst) |
void |
setCellInst(EDIFCellInst cellInst,
boolean deferSort)
Sets the corresponding cell instance for this port instance.
|
void |
setIndex(int index) |
void |
setParentNet(EDIFNet parentNet) |
void |
setPort(EDIFPort port) |
String |
toString() |
void |
writeEDIFExport(OutputStream os,
byte[] indent,
EDIFWriteLegalNameCache<?> cache) |
public static final byte[] EXPORT_CONST_PORTREF
public static final byte[] EXPORT_CONST_MEMBER
public static final byte[] EXPORT_CONST_INSTANCEREF
public static final byte[] EXPORT_CONST_CLOSE_PORT_INST
public EDIFPortInst(EDIFPortInst portInst)
portInst
- public EDIFPortInst(EDIFPort port, EDIFNet parentNet, EDIFCellInst cellInst)
port
- The port on the cell this port ref usesparentNet
- The net this port ref should belong tocellInst
- The instance this port ref belongs topublic EDIFPortInst(EDIFPort port, EDIFNet parentNet, EDIFCellInst cellInst, boolean deferSort)
port
- The port on the cell this port ref usesparentNet
- The net this port ref should belong tocellInst
- The instance this port ref belongs todeferSort
- The EDIFPortInstList maintains a sorted list of EDIFPortInst
objects and sorts them upon insertion. Setting this flag to true will skip a sort addition
but the caller is responsible to conclude a batch of additions with a call to
EDIFPortInstList.reSortList()
. This is useful when a large number of EDIFPortInsts
will be added consecutively (such as parsing a netlist).public EDIFPortInst(EDIFPort port, EDIFNet parentNet, int index, EDIFCellInst cellInst)
port
- The port on the cell this port ref usesparentNet
- The net this port ref should be added toindex
- For port refs part of a bussed port, this is the index into
the bussed array, for single bit ports, it should be -1.cellInst
- This instance on which this port ref corresponds.public EDIFPortInst(EDIFPort port, EDIFNet parentNet, int index, EDIFCellInst cellInst, boolean deferSort)
port
- The port on the cell this port ref usesparentNet
- The net this port ref should be added toindex
- For port refs part of a bussed port, this is the index into
the bussed array, for single bit ports, it should be -1.cellInst
- This instance on which this port ref corresponds.deferSort
- The EDIFPortInstList maintains a sorted list of EDIFPortInst
objects and sorts them upon insertion. Setting this flag to true will skip a sort addition
but the caller is responsible to conclude a batch of additions with a call to
EDIFPortInstList.reSortList()
. This is useful when a large number of EDIFPortInsts
will be added consecutively (such as parsing a netlist).public static EDIFPortInst createPortInstFromPortInstName(String portInstName, EDIFCellInst inst)
portInstName
- Name of the port instanceinst
- The instance on which to create the new port instancepublic String getPortInstNameFromPort()
public String getName()
public int getIndex()
public void setIndex(int index)
index
- the index to setpublic EDIFCell getParentCell()
public EDIFCellInst getCellInst()
public void setCellInst(EDIFCellInst cellInst)
cellInst
- the cellInst to setpublic void setCellInst(EDIFCellInst cellInst, boolean deferSort)
cellInst
- the cellInst to setdeferSort
- The EDIFPortInstList maintains a sorted list of EDIFPortInst
objects and sorts them upon insertion. Setting this flag to true will skip a sort addition
but the caller is responsible for conclude a batch of additions with a call to
EDIFPortInstList.reSortList()
. This is useful when a large number of EDIFPortInsts
will be added consecutively (such as parsing a netlist).public boolean isPrimitiveStaticSource()
public String getFullName()
public EDIFPort getPort()
public void setPort(EDIFPort port)
public EDIFDirection getDirection()
public boolean isOutput()
public boolean isInput()
public boolean isTopLevelPort()
public EDIFNet getNet()
public EDIFNet getInternalNet()
public void setParentNet(EDIFNet parentNet)
parentNet
- the parentNet to setpublic void writeEDIFExport(OutputStream os, byte[] indent, EDIFWriteLegalNameCache<?> cache) throws IOException
IOException
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
public int compareTo(EDIFPortInst o)
compareTo
in interface Comparable<EDIFPortInst>