Class OctalRouter

java.lang.Object
  extended by OctalRouter
All Implemented Interfaces:
Router

public class OctalRouter
extends java.lang.Object
implements Router


Constructor Summary
OctalRouter()
           
 
Method Summary
 int determineRoute(int source, int dest, int switchAddr)
          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.
private  int octal_static_route(int source, int dest, int switchAddr)
           
private  int octalDetermineOutputLink(int destSwitch, int ownSwitch)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OctalRouter

public OctalRouter()
Method Detail

determineRoute

public int determineRoute(int source,
                          int dest,
                          int switchAddr)
Description copied from interface: Router
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.

Specified by:
determineRoute in interface Router
Parameters:
source - address of the source node
dest - address of the destination node
switchAddr - address of the switch
Returns:
link number to reach the destination node

octalDetermineOutputLink

private int octalDetermineOutputLink(int destSwitch,
                                     int ownSwitch)

octal_static_route

private int octal_static_route(int source,
                               int dest,
                               int switchAddr)