| 
    INSEE 05.04.2011 
   Interconnection Nertworks Simulation and Evaluation Environment 
   | 
 
#include <router.h>

Data Fields | |
| long | rcoord [3] | 
| Stores the router coordinates X,Y,Z (only used in dally CV management)  | |
| long * | nbor | 
| The id's of neighbors.  | |
| long * | nborp | 
| The id's of neighbors' ports.  | |
| port * | p | 
| All the node's ports.  | |
| long * | op_i | 
| Indices to assign output port.  | |
| inj_queue * | qi | 
| All the node's injectors.  | |
| port_type | injecting_port | 
| Port that is injecting, when all them share a physical injection channel.  | |
| port_type | next_port | 
| Used to indicate the next injector to be used, when many available.  | |
| packet_t | saved_packet | 
| Packet awaiting to be injected.  | |
| long | pending_packet | 
| Number of packets awaiting.  | |
| long | triggered | 
| Number of packets triggered by incoming packets - Reactive traffic.  | |
| long | pcount | 
| unsigned long | timeout_counter | 
| This counts the number of cycles a packet is in the router or the number of cycles without a new packet arrival.  | |
| unsigned long | timeout_packet | 
| This is the packet that we are looking to.  | |
| bool_t | congested | 
| Has this router detected congestion?  | |
| source_t | source | 
| The source type. May be independent, no source or other.  | |
| event_q | events | 
| A Queue with events to occur.  | |
| event_l | occurs | 
| Lists with occurred events (one for each messsage source)  | |
Structure that defines a network router. Includes input buffer, transit queues and many auxiliary data structures.
| long pcount | 
Total phits within the router. If this value is 0 the router ports wont be checked to for requesting, arbitrating or moving.
 1.7.4