public abstract class PlacementFrame
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PlacementFrame.PlacementNetwork
Class to define networks of PlacementPort objects.
|
static class |
PlacementFrame.PlacementNode
Class to define a node that is being placed.
|
class |
PlacementFrame.PlacementParameter
Class to define a parameter for a placement algorithm.
|
static class |
PlacementFrame.PlacementPort
Class to define ports on PlacementNode objects.
|
Modifier and Type | Field and Description |
---|---|
protected int |
numOfThreads |
protected int |
runtime |
Constructor and Description |
---|
PlacementFrame() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
getAlgorithmName()
Method to return the name of the placement algorithm (overridden by
actual Placement algorithms).
|
Cell |
getOriginalCell()
Method to return the original Electric Cell that is being placed.
|
java.util.List<PlacementFrame.PlacementParameter> |
getParameters()
Method to return a list of parameters for this placement algorithm.
|
Cell |
getRedispCell()
Method to return the cell that should be rebuilt and displayed.
|
static double |
getStandardCellSize(java.util.List<PlacementFrame.PlacementNode> placementNodes,
MutableBoolean sizeIsWidth)
Method to examine all PlacementNodes and determine the size of "standard cells".
|
boolean |
isFailure()
Method to return whether the placement failed and should not be rebuilt.
|
abstract void |
runPlacement(java.util.List<PlacementFrame.PlacementNode> nodesToPlace,
java.util.List<PlacementFrame.PlacementNetwork> allNetworks,
java.util.List<PlacementAdapter.PlacementExport> exportsToPlace,
java.lang.String cellName,
Job job)
Method to do Placement (overridden by actual Placement algorithms).
|
void |
setFailure(boolean f)
Method to indicate that the placement failed, and should not be rebuilt.
|
void |
setOriginalCell(Cell cell)
Method to set the original Electric Cell that is being placed.
|
void |
setParamterValues(int threads,
int runtime) |
void |
setRedispCell(Cell r)
Method to set the cell that should be rebuilt and displayed.
|
public abstract void runPlacement(java.util.List<PlacementFrame.PlacementNode> nodesToPlace, java.util.List<PlacementFrame.PlacementNetwork> allNetworks, java.util.List<PlacementAdapter.PlacementExport> exportsToPlace, java.lang.String cellName, Job job)
nodesToPlace
- a list of all nodes that are to be placed.allNetworks
- a list of all networks that connect the nodes.cellName
- the name of the cell being placed.job
- the Job (for testing abort).public abstract java.lang.String getAlgorithmName()
public final java.util.List<PlacementFrame.PlacementParameter> getParameters()
public void setParamterValues(int threads, int runtime)
public void setOriginalCell(Cell cell)
cell
- the original Electric Cell that is being placed.public Cell getOriginalCell()
public void setRedispCell(Cell r)
r
- the cell that should be rebuilt and displayed.public Cell getRedispCell()
public void setFailure(boolean f)
f
- true to indicate failure.public boolean isFailure()
public static double getStandardCellSize(java.util.List<PlacementFrame.PlacementNode> placementNodes, MutableBoolean sizeIsWidth)
placementNodes
- the List of PlacementNode objects to be placed.sizeIsWidth
- a MutableBoolean which gets set true if the standard cells stack in columns
(and so the size returned is the cell width) or false if the standard cells stack in rows
(and so the size returned is the cell height). May be null if this information is not needed.