Interface Router

All Known Implementing Classes:
ExFatTreeRouter, FatTreeRouter, MeshRouter, OctalRouter, TorusRouter

public interface Router

The Router interface provides the declaration of the method to find out the possible output link of a switch to reach the destination node.

Version:
1.0

Method Summary
 int determineRoute(int src, int dest, int addr)
          Returns the physical link number to transfer a flit from an input buffer to the output buffer on that link to reach the destination node.
 

Method Detail

determineRoute

int determineRoute(int src,
                   int dest,
                   int addr)
Returns the physical link number to transfer a flit from an input buffer to the output buffer on that link to reach the destination node.

Parameters:
src - address of the source node
dest - address of the destination node
addr - address of the switch
Returns:
link number to reach the destination node