public abstract class AbstractModuleInst<ModuleT,PlacementT,T extends AbstractModuleInst<ModuleT,PlacementT,T>>
extends Object
ModuleInst
and ModuleImplsInst
Constructor and Description |
---|
AbstractModuleInst(String name) |
AbstractModuleInst(String name,
EDIFCellInst cellInst) |
Modifier and Type | Method and Description |
---|---|
void |
connect(String portName,
int busIndex0,
T other,
String otherPortName,
int busIndex1)
Connects two signals by port name between this module instance and another.
|
void |
connect(String portName,
String otherPortName)
Connects two signals by port name between this module instance and a top-level port.
|
void |
connect(String portName,
String otherPortName,
int busIndex)
Connects two signals by port name between this module instance and a top-level port.
|
void |
connect(String portName,
T other,
String otherPortName)
Connects two signals by port name between this module instance and another.
|
void |
connect(String portName,
T other,
String otherPortName,
int busIndex)
Connects two signals by port name between this module instance and another.
|
boolean |
equals(Object obj) |
abstract RelocatableTileRectangle |
getBoundingBox() |
EDIFCellInst |
getCellInst() |
abstract ModuleT |
getModule() |
String |
getName() |
String |
getNewNetName(String portName,
int busIndex0,
T other,
String otherPortName,
int busIndex1) |
abstract PlacementT |
getPlacement() |
int |
hashCode() |
abstract boolean |
overlaps(T hm) |
void |
setCellInst(EDIFCellInst cellInst) |
void |
setName(String name) |
String |
toString() |
abstract void |
unplace() |
public AbstractModuleInst(String name, EDIFCellInst cellInst)
public AbstractModuleInst(String name)
public abstract void unplace()
public abstract ModuleT getModule()
public String getName()
public void setName(String name)
name
- the name to setpublic EDIFCellInst getCellInst()
public void setCellInst(EDIFCellInst cellInst)
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
public void connect(String portName, String otherPortName)
portName
- This module instance's port name to connect.otherPortName
- The top-level port of the the cell instance.public void connect(String portName, String otherPortName, int busIndex)
portName
- This module instance's port name to connect.otherPortName
- The top-level port of the the cell instance.busIndex
- If the port is multi-bit, specify the index to connect or -1 if single bit bus.public void connect(String portName, T other, String otherPortName)
portName
- This module instance's port name to connect.other
- The other module instance to connect to. If this is null, it will
connect it to an existing parent cell port named otherPortNameotherPortName
- The port name on the other module instance to connect to or
the top-level port of the the cell instance.public void connect(String portName, T other, String otherPortName, int busIndex)
portName
- This module instance's port name to connect.other
- The other module instance to connect to. If this is null, it will
connect it to an existing parent cell port named otherPortNameotherPortName
- The port name on the other module instance to connect to or
the top-level port of the the cell instance.busIndex
- If the port is multi-bit, specify the index to connect or -1 if single bit bus.public void connect(String portName, int busIndex0, T other, String otherPortName, int busIndex1)
portName
- This module instance's port name to connect.busIndex0
- If the assigned port of this module instance is multi-bit,
specify the index to connect or -1 if single bit bus.other
- The other module instance to connect to. If this is null, it will
connect it to an existing parent cell port named otherPortNameotherPortName
- The port name on the other module instance to connect to or
the top-level port of the the cell instance.busIndex1
- If the port (of the other module instance or the existing parent cell) is multi-bit,
specify the index to connect or -1 if single bit bus.public String getNewNetName(String portName, int busIndex0, T other, String otherPortName, int busIndex1)
public abstract RelocatableTileRectangle getBoundingBox()
public abstract PlacementT getPlacement()
public abstract boolean overlaps(T hm)