public class EDIFPort extends EDIFPropertyObject
EDIFCell
within an EDIF netlist.
Created on: May 11, 2017Modifier and Type | Field and Description |
---|---|
static byte[] |
EXPORT_CONST_ARRAY_BEGIN |
static byte[] |
EXPORT_CONST_CHILD_INDENT |
static byte[] |
EXPORT_CONST_DIRECTION_START |
static byte[] |
EXPORT_CONST_INDENT |
static byte[] |
EXPORT_CONST_PORT_BEGIN |
EXPORT_CONST_OWNER_END, EXPORT_CONST_OWNER_START, EXPORT_CONST_PROP_END, EXPORT_CONST_PROP_START
EXPORT_CONST_RENAME_START
Constructor and Description |
---|
EDIFPort(EDIFPort port)
Copy Constructor
|
EDIFPort(String name,
EDIFDirection direction,
int width) |
Modifier and Type | Method and Description |
---|---|
void |
exportEDIF(OutputStream os,
EDIFWriteLegalNameCache<?> cache,
boolean stable) |
void |
exportEDIFBusName(OutputStream os,
EDIFWriteLegalNameCache<?> cache)
Writes out valid EDIF syntax the name and/or rename of this port to the
provided output writer.
|
int[] |
getBitBlastedIndicies() |
String |
getBusName() |
String |
getBusName(boolean keepOpenBracket) |
EDIFDirection |
getDirection() |
EDIFNet |
getInternalNet()
If the port is only one bit wide or the user only needs the 0th indexed net, this is
a convenience method to getting the internal net (inside the cell) connected to this port.
|
EDIFNet |
getInternalNet(int index)
Gets the internal net connected to this port at specified index of the port,
connected to the inside of the cell.
|
List<EDIFNet> |
getInternalNets()
Gets the list of internal nets connected to this port, indexed in the same way as the port.
|
Integer |
getLeft() |
EDIFCell |
getParentCell() |
int |
getPortIndexFromNameIndex(int namedIndex)
Gets the internal port instance index from the named index for this port.
|
String |
getPortInstNameFromPort(int index)
Gets the PortInst name from this port and the specified index
|
Integer |
getRight() |
int |
getWidth() |
boolean |
isBus() |
boolean |
isBusRangeEqual(EDIFPort otherPort) |
boolean |
isInput() |
boolean |
isLittleEndian()
If this port is a bus, it describes the endian-ness of
how the bits in the bus vector are arranged.
|
boolean |
isOutput() |
void |
setDirection(EDIFDirection direction) |
void |
setParentCell(EDIFCell parentCell) |
void |
setWidth(int width) |
addProperty, addProperty, addProperty, addProperty, addProperty, createDuplicatePropertiesMap, exportEDIFProperties, getIOStandard, getPropertiesMap, getProperty, removeProperty, setPropertiesMap
compareTo, equals, exportEDIFName, exportSomeEDIFName, getName, getNewMap, hashCode, toString
public static final byte[] EXPORT_CONST_PORT_BEGIN
public static final byte[] EXPORT_CONST_ARRAY_BEGIN
public static final byte[] EXPORT_CONST_DIRECTION_START
public static final byte[] EXPORT_CONST_INDENT
public static final byte[] EXPORT_CONST_CHILD_INDENT
public EDIFPort(String name, EDIFDirection direction, int width)
public EDIFPort(EDIFPort port)
port
- public EDIFDirection getDirection()
public boolean isLittleEndian()
public boolean isOutput()
public boolean isInput()
public void setDirection(EDIFDirection direction)
direction
- the direction to setpublic int getWidth()
public void setWidth(int width)
width
- the width to setpublic String getBusName()
public String getBusName(boolean keepOpenBracket)
public Integer getLeft()
public Integer getRight()
public List<EDIFNet> getInternalNets()
public EDIFNet getInternalNet(int index)
index
- Index of port (0 if it is a single bit)public EDIFNet getInternalNet()
public String getPortInstNameFromPort(int index)
index
- The index to get from the portpublic int getPortIndexFromNameIndex(int namedIndex)
namedIndex
- The named index as what appears in the port instance name.public void exportEDIF(OutputStream os, EDIFWriteLegalNameCache<?> cache, boolean stable) throws IOException
IOException
public void exportEDIFBusName(OutputStream os, EDIFWriteLegalNameCache<?> cache) throws IOException
os
- The stream to export the EDIF syntax to.IOException
public EDIFCell getParentCell()
public void setParentCell(EDIFCell parentCell)
parentCell
- the parentCell to setpublic boolean isBus()
public int[] getBitBlastedIndicies()
public boolean isBusRangeEqual(EDIFPort otherPort)