public class EDIFNet extends EDIFPropertyObject
Modifier and Type | Field and Description |
---|---|
static byte[] |
EXPORT_CONST_JOINED |
static byte[] |
EXPORT_CONST_JOINED_END |
static byte[] |
EXPORT_CONST_NET_END |
static byte[] |
EXPORT_CONST_NET_START |
static byte[] |
EXPORT_CONST_PORT_INDENT |
static byte[] |
EXPORT_CONST_PROP_INDENT |
EXPORT_CONST_OWNER_END, EXPORT_CONST_OWNER_START, EXPORT_CONST_PROP_END, EXPORT_CONST_PROP_START
EXPORT_CONST_RENAME_START
Constructor and Description |
---|
EDIFNet(EDIFNet net)
Copy constructor, does not copy portInsts
|
EDIFNet(String name,
EDIFCell parentCell) |
Modifier and Type | Method and Description |
---|---|
void |
addPortInst(EDIFPortInst portInst)
Adds the EDIFPortInst to this logical net.
|
void |
addPortInst(EDIFPortInst portInst,
boolean deferSort)
Adds the EDIFPortInst to this logical net.
|
EDIFPortInst |
createPortInst(EDIFPort port) |
EDIFPortInst |
createPortInst(EDIFPort port,
EDIFCellInst cellInst) |
EDIFPortInst |
createPortInst(EDIFPort port,
EDIFCellInst cellInst,
boolean deferSort) |
EDIFPortInst |
createPortInst(EDIFPort port,
int index) |
EDIFPortInst |
createPortInst(EDIFPort port,
int index,
EDIFCellInst cellInst) |
EDIFPortInst |
createPortInst(EDIFPort port,
int index,
EDIFCellInst cellInst,
boolean deferSort) |
EDIFPortInst |
createPortInst(String portName,
Cell cell) |
EDIFPortInst |
createPortInst(String portInstName,
EDIFCell cell)
Creates a new port instance from a name on the internal port of the provided
cell.
|
EDIFPortInst |
createPortInst(String portInstName,
EDIFCellInst cellInst)
Creates a new port instance from a name on the external port of the provided
cell instance.
|
EDIFPortInst |
createPortInst(String portInstName,
EDIFCellInst cellInst,
boolean deferSort) |
EDIFPortInst |
createPortInst(String portName,
int index,
Cell cell) |
EDIFPortInst |
createPortInst(String portName,
int index,
EDIFCellInst cellInst) |
EDIFPortInst |
createPortInstFromPortInstName(String portInstName,
EDIFCell cell,
EDIFCellInst inst)
Creates a port instance from a name.
|
EDIFPortInst |
createPortInstFromPortInstName(String portInstName,
EDIFCell cell,
EDIFCellInst inst,
boolean deferSort)
Creates a port instance from a name.
|
boolean |
equals(Object obj) |
void |
exportEDIF(OutputStream os,
EDIFWriteLegalNameCache<?> cache,
boolean stable) |
List<EDIFPortInst> |
getAllTopLevelPortInsts()
Gets all top level port instances connected to this net.
|
EDIFCell |
getParentCell() |
EDIFPortInst |
getPortInst(EDIFCellInst inst,
String portInstName)
Gets the port instance specified by the cell instance and name of the port instance.
|
Collection<EDIFPortInst> |
getPortInsts()
Gets the sorted ArrayList of EDIFPortInsts on this net as a collection.
|
List<EDIFPortInst> |
getSourcePortInsts(boolean includeTopLevelPorts)
This returns all sources on the net, either output ports of the
cell instances in the cell or the top level input ports.
|
EDIFPortInst |
getTopLevelPortInst()
Gets the first top level port instance from the stored list in the net.
|
boolean |
isGND()
Checks if this net is a logical GND net.
|
boolean |
isInternalToParent()
Checks if the net has all port instances (terminals) within the parent cell.
|
boolean |
isVCC()
Checks if this net is a logical VCC net.
|
EDIFPortInst |
removePortInst(EDIFCellInst inst,
String portInstName)
Removes the port instance specified from the net.
|
EDIFPortInst |
removePortInst(EDIFPortInst portInst)
Removes the port instance provided from the net.
|
void |
rename(String newName) |
void |
setParentCell(EDIFCell parentCell) |
void |
trackChanges(EDIFChangeType type,
EDIFCellInst inst,
String portInstName) |
addProperty, addProperty, addProperty, addProperty, addProperty, createDuplicatePropertiesMap, exportEDIFProperties, getIOStandard, getPropertiesMap, getProperty, removeProperty, setPropertiesMap
compareTo, exportEDIFName, exportSomeEDIFName, getName, getNewMap, hashCode, toString
public static final byte[] EXPORT_CONST_NET_START
public static final byte[] EXPORT_CONST_JOINED
public static final byte[] EXPORT_CONST_PORT_INDENT
public static final byte[] EXPORT_CONST_PROP_INDENT
public static final byte[] EXPORT_CONST_JOINED_END
public static final byte[] EXPORT_CONST_NET_END
public EDIFNet(String name, EDIFCell parentCell)
public EDIFNet(EDIFNet net)
net
- public void addPortInst(EDIFPortInst portInst)
portInst
- The port instance to add to this net.public void addPortInst(EDIFPortInst portInst, boolean deferSort)
portInst
- The port instance to add to this net.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 void trackChanges(EDIFChangeType type, EDIFCellInst inst, String portInstName)
public EDIFPortInst createPortInst(EDIFPort port)
public EDIFPortInst createPortInst(EDIFPort port, int index)
public EDIFPortInst createPortInst(String portInstName, EDIFCellInst cellInst)
portInstName
- The name of the new port instance, including indexed bit
if it belongs on a bussed port.cellInst
- The destination cell instance to receive the port
instancepublic EDIFPortInst createPortInst(String portInstName, EDIFCellInst cellInst, boolean deferSort)
public EDIFPortInst createPortInst(String portInstName, EDIFCell cell)
portInstName
- The name of the new port instance, including indexed bit
if it belongs on a bussed port.cell
- The destination cell to receive the port instance (on an
inward facing port).public EDIFPortInst createPortInstFromPortInstName(String portInstName, EDIFCell cell, EDIFCellInst inst)
portInstName
- Proposed name of the new port instancecell
- The cell from which to draw the portinst
- If this is not null, the port instance is added to the
external facing port connection. If this is null, it will
add it to the inward facing port connection.public EDIFPortInst createPortInstFromPortInstName(String portInstName, EDIFCell cell, EDIFCellInst inst, boolean deferSort)
portInstName
- Proposed name of the new port instancecell
- The cell from which to draw the portinst
- If this is not null, the port instance is added to the
external facing port connection. If this is null, it will
add it to the inward facing port connection.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.public EDIFPortInst createPortInst(String portName, int index, EDIFCellInst cellInst)
public EDIFPortInst createPortInst(String portName, Cell cell)
public EDIFPortInst createPortInst(String portName, int index, Cell cell)
public EDIFPortInst createPortInst(EDIFPort port, EDIFCellInst cellInst)
public EDIFPortInst createPortInst(EDIFPort port, EDIFCellInst cellInst, boolean deferSort)
public EDIFPortInst createPortInst(EDIFPort port, int index, EDIFCellInst cellInst)
public EDIFPortInst createPortInst(EDIFPort port, int index, EDIFCellInst cellInst, boolean deferSort)
public Collection<EDIFPortInst> getPortInsts()
public void rename(String newName)
public List<EDIFPortInst> getSourcePortInsts(boolean includeTopLevelPorts)
public EDIFPortInst getPortInst(EDIFCellInst inst, String portInstName)
inst
- The cell instance where the EDIFPortInst resides. If this is null, it gets the
top level port instance connected to the parent cell port.portInstName
- Name of the port instance (EDIFPortInst.getName()
to getpublic EDIFPortInst getTopLevelPortInst()
EDIFNet.getAllTopLevelPortInsts()
.public List<EDIFPortInst> getAllTopLevelPortInsts()
public EDIFPortInst removePortInst(EDIFPortInst portInst)
portInst
- The port instance to remove from the net.public EDIFPortInst removePortInst(EDIFCellInst inst, String portInstName)
inst
- The cell instance where the EDIFPortInst resides. If this is null, it removes
the top level port instance connected to the parent cell port.portInstName
- Name of the port instance (EDIFPortInst.getName()
to removepublic EDIFCell getParentCell()
public void setParentCell(EDIFCell parentCell)
parentCell
- the parentCell to setpublic boolean isVCC()
EDIFTools.LOGICAL_VCC_NET_NAME
). If there is not match, it will also
check the source of the net to see if it is a VCC primitive.public boolean isGND()
EDIFTools.LOGICAL_GND_NET_NAME
). If there is
not match, it will also check the source of the net to see if it is a GND
primitive.public boolean isInternalToParent()
public void exportEDIF(OutputStream os, EDIFWriteLegalNameCache<?> cache, boolean stable) throws IOException
IOException