|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.opencores.placement.PrePlacement
This algorithm tries to arrange graph nodes similarly to graph drawing algorithms. Nodes may overlap and they are placed in RxR space. Also this class contains some preplacement functions, that are based on RxR placement. After preplacement we have valid placement. Annealing uses two forces - temperature and distancing force. First nets acts like elastics and tries to approach nodes together, on the other hand nodes are distanced by the power of distancing force. Preplacement consist of three steps: - preplacement of SPCs - preplacement of GPCs - preplacement of ports
| Field Summary | |
private Graph |
g
graph representation we are working on |
int |
nGPC
Number of GPCs detected by preplacement |
int |
nInputs
Number of total LUT inputs. |
int |
nIOC
Number of Ports detected by preplacement |
private int[] |
pos
position array, knowing number of LUTs at that position |
java.util.Vector |
vnl
vector, that contains all GPCs |
| Constructor Summary | |
PrePlacement(Graph g)
Initializes RxR placement. |
|
| Method Summary | |
private float |
portDist(float x,
float y,
int pi)
returns manhattan distance between specified position (x,y) and port with index pi. |
void |
prePlacement()
Does preplacement. |
void |
prePlacementGPC()
Assigns valid positions for GPCs. |
void |
prePlacementIOC()
Assigns valid positions for IOC. |
void |
setGraph(Graph g)
Changes working graph. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private Graph g
public int nGPC
public int nIOC
public int nInputs
public java.util.Vector vnl
private int[] pos
| Constructor Detail |
public PrePlacement(Graph g)
g - graph to do placement on.| Method Detail |
public void setGraph(Graph g)
g - graph to work onGraphpublic void prePlacementGPC()
public void prePlacementIOC()
private float portDist(float x,
float y,
int pi)
{(0..X-1,0),(0..X-1,Y-1),(0,0..Y-1),(X-1,0..Y-1)}x - x positiony - y positionpi - port indexpublic void prePlacement()
prePlacementGPC,
NOTE: Netlist must be mapped first.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||