-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNoximLocalRoutingTable.h
45 lines (34 loc) · 1.21 KB
/
NoximLocalRoutingTable.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
* Noxim - the NoC Simulator
*
* (C) 2005-2010 by the University of Catania
* For the complete list of authors refer to file ../doc/AUTHORS.txt
* For the license applied to these sources refer to file ../doc/LICENSE.txt
*
* This file contains the declaration of the local routing table
*/
#ifndef __NOXIMLOCALROUTINGTABLE_H__
#define __NOXIMLOCALROUTINGTABLE_H__
#include "NoximMain.h"
#include "NoximGlobalRoutingTable.h"
class NoximLocalRoutingTable {
public:
// Constructor
NoximLocalRoutingTable();
// Extracts the routing table of node _node_id from the global
// routing table rtable
void configure(NoximGlobalRoutingTable & rtable, const int _node_id);
// Returns the set of admissible output channels for destination
// destination_id and input channel in_link
NoximAdmissibleOutputs getAdmissibleOutputs(const NoximLinkId &
in_link,
const int destination_id);
// Returns the set of admissible output channels for a destination
// destination_id and a given input direction
NoximAdmissibleOutputs getAdmissibleOutputs(const int in_direction,
const int destination_id);
private:
NoximRoutingTableNode rt_node;
int node_id;
};
#endif