The Scientific World Journal / 2014 / Article / Alg 1

Research Article

Application of Butterfly Clos-Network in Network-on-Chip

Algorithm 1

Begin
If( )
{
If ( ) outport = IPcore_port; // data packet reaches the target node;
Else if ( )
{
   If (outport_ = NULL) outport = outport_ ; //If the corresponding direct channel is available, the direct use
   of the transmission channel;
    Else outport = outport_NY; //If the corresponding direct channel is already occupied, use of other
    non-direct channels;
   }
  }
  Else If ( )
  {
 If ( ) // Destination node is at the top of the current node;
  {
    If (outport_ = NULL) outport = outport_ ; // If the corresponding direct channel is available, the direct
    use of the transmission channel;
    Else outport = outport_NX; // If the corresponding direct channel is already occupied, the use of other
    non-direct channels is indirect transmission by converting the past;
    }
   Else if ( ) // Destination node is at the top right of the current node;
   {
   If ((outport = 6) = NULL) outport = 6; // If the diagonal output port is empty;
   Else outport = (outport_ ; // If the diagonal port being used, horizontal or vertical direction
   using the port will send out data packets, and then by converting the route to the target node;
   }
   Else if ( ) // Destination node is in the lower right of the current node;
   {
   If ((outport = 7) = NULL) outport = 7; // If the diagonal output port is Empty;
   Else outport = (outport_ ; // If the diagonal port is used, horizontal or vertical direction
   using the port will send out data packets, and then convert the route to the target node;
   }
   Else if ( )
   {
   Treatment methods are like ;
   }
 }