|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectFlit
public class Flit
A message (a packet) is the summation of some flits. Flit object simply contains encoded data as member variable. The data is divided into different fields. Both header and data flit contain flit type (1 bit) and virtual channel number used. For data flit the remaining bits of the data block is simply raw data taken from the message (packet). For header flit contains number bit used to represent the source and destination nodes, number of flits, source address and destination address sequentially.
Field Summary | |
---|---|
private int[] |
data
Contains the array of 32 bit data. |
private int |
dest
The address of the destination node. |
private int |
genTimeStamp
The time stamp (simulation cycle) when the flit has been generated. |
private int |
hop
The number of hops the flit has traversed |
private int |
lastServiceTimeStamp
The time stamp (simulation cycle) when the flit has been last served. |
private int |
src
The address of the source node. |
Constructor Summary | |
---|---|
Flit(int[] data,
int genTimeStamp)
|
Method Summary | |
---|---|
int |
getAddressLength()
Returns the number of bits required to encode an address in the flit. |
int[] |
getData()
Returns the data of the flit. |
int |
getDest()
Return the destination address of the flit. |
int |
getDestinationNode()
Returns the address of the destination node. |
int |
getGenTimeStamp()
Returns the generation time stamp of the flit |
int |
getHopCount()
Returns the hop count that the flit has traversed |
int |
getLastServiceTimeStamp()
Returns the last service time when the flit was served |
int |
getPacketLength()
Returns the number of flits in the packet to which this flit belongs. |
int |
getSource()
Return the source address of the flit. |
int |
getSourceNode()
Returns the address of the source node. |
int |
getType()
Returns the type of the flit. |
int |
getVirtualChannelNo()
Returns the virtual channel information of the flit |
void |
increaseHop()
Increases the hop count of the flit, after it traverses a physical link. |
void |
setDest(int dest)
Sets the destination address of the flit |
void |
setGenTimeStamp(int timeStamp)
Sets the generation time stamp |
void |
setLastServiceTimeStamp(int timeStamp)
Sets the last service time information by the specified time stamp |
void |
setSource(int src)
Sets the source address of the flit. |
void |
setVirtualChannelNo(int vcId)
Sets the virtual channel information of the flit data |
java.lang.String |
toString()
Returns the Hex value of the flit data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private int[] data
private int genTimeStamp
private int lastServiceTimeStamp
private int src
private int dest
private int hop
Constructor Detail |
---|
public Flit(int[] data, int genTimeStamp)
Method Detail |
---|
public void increaseHop()
public int getHopCount()
public int getType()
public int getVirtualChannelNo()
public int getAddressLength()
public int getPacketLength()
public int getSourceNode()
public int getDestinationNode()
public int[] getData()
public java.lang.String toString()
toString
in class java.lang.Object
public void setVirtualChannelNo(int vcId)
vcId
- virtual channel numberpublic void setLastServiceTimeStamp(int timeStamp)
timeStamp
- the time stamp (simulation cycle) when the flit receives some
servicepublic int getLastServiceTimeStamp()
public void setGenTimeStamp(int timeStamp)
timeStamp
- the time information when the flit is generatedpublic int getGenTimeStamp()
public int getSource()
public int getDest()
public void setSource(int src)
src
- address of the source nodepublic void setDest(int dest)
dest
- address of the destination node
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |