|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.opencores.structure.Channel
Class that represents horizontal or vertical channel.
Channel connect two adjacent switch boxes.
Each channel is attached to node (share same source position) and consists of multiple wire segments. nets Net array identifies which of them are still free.
Nodes are adjacent when there exist wire segment between them.
List of all nodes channel connects to can be constructed.
adjacentChannels| Field Summary | |
Channel[] |
adjacentChannels
List of all adjacent channels. |
float |
cost
Used by wave algorithm - cost to this node |
Net[] |
nets
Nets going through this channel, each allocating one wire segment. |
int |
nNets
Number of nets allocated on this channel. |
Node |
node
Node channel is connected to. |
int |
x
This channel position. |
int |
y
This channel position. |
| Constructor Summary | |
Channel(int x,
int y)
Constructs new channel. |
|
| Method Summary | |
int |
maxSegments()
Returns max. segments per way |
static int |
switchsTo(int segment,
int channel)
Identifies which segment we will reach, if we are on segment segment and going to neighbour index channel. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public int x
public int y
public Node node
public Channel[] adjacentChannels
public float cost
public Net[] nets
public int nNets
| Constructor Detail |
public Channel(int x,
int y)
idx - channel position| Method Detail |
public int maxSegments()
public static final int switchsTo(int segment,
int channel)
segment - segment we are onchannel - index of neighbour
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||