|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.opencores.structure.Node
|
+--org.opencores.structure.NodeRoutable
Node, that can be routable - all nodes that are passed to routing phase should be NodeRoutable type.
| Field Summary | |
float |
cost
Cost to get here, used by routing |
private static float[] |
costs
Cost per connection |
NodeRoutable[] |
neigh
All neighbouring nodes. |
static int[][] |
neighCoor
Neighbours coordinates |
static int |
NINPUTS_ROUTABLE
Number of inputs for routable cell |
int |
nSegments
Number of free segments left. |
int |
portsUnassigned
Bit field, designating 0 for port that has routable connection and 1 for port without routable connection. |
Net[] |
segments
Owners of wire segments. |
| Fields inherited from class org.opencores.structure.Node |
dir,
flag,
fx,
fy,
INOUT,
INPUT,
link,
name,
nfx,
nfy,
OUTPUT,
ports,
temp,
visited,
weight,
width,
x,
y |
| Constructor Summary | |
NodeRoutable(int width)
Costructs new node. |
|
NodeRoutable(int x,
int y)
Costruct dummy node, which is capable of routing, but does not hold any data |
|
| Method Summary | |
float |
calcCost(int neighbourIdx)
Calculates cost of connection c-neighbour Connection cost must be strictly greater than zero! |
boolean |
isConnectable(int port,
int segment)
|
protected int |
lessLoadedNeighbour()
Returns less loaded neighbour index |
static int |
opposite(int s)
Returns segment index with opposite direction. |
void |
writeBitstream(BitStreamWriter stream)
Writes (necessary) bistream representation of this object to stream.
|
| Methods inherited from class org.opencores.structure.Node |
clone,
duplicate,
linkNets,
setWidth,
toString,
unlinkNets |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public static final int NINPUTS_ROUTABLE
public static final int[][] neighCoor
private static final float[] costs
public float cost
public NodeRoutable[] neigh
public int portsUnassigned
public Net[] segments
public int nSegments
| Constructor Detail |
public NodeRoutable(int width)
width - node width
public NodeRoutable(int x,
int y)
| Method Detail |
public boolean isConnectable(int port,
int segment)
port using wire segment segment/i>public float calcCost(int neighbourIdx)
neighbourIdx - dest segment; they should be connectablepublic static final int opposite(int s)
segment - protected int lessLoadedNeighbour()
public void writeBitstream(BitStreamWriter stream)
throws java.io.IOException
this object to stream.
This method writes bitstream for unused LUT and FF.stream - stream to write to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||