-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSimpleRoutingTree.h
More file actions
71 lines (66 loc) · 894 Bytes
/
SimpleRoutingTree.h
File metadata and controls
71 lines (66 loc) · 894 Bytes
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#ifndef SIMPLEROUTINGTREE_H
#define SIMPLEROUTINGTREE_H
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
enum{
MIN_VAL = 0,
MAX_VAL = 1,
COUNT_VAL = 2,
SUM_VAL = 3,
SUM_SQ_VAL = 4
};
enum{
MIN = 1,
MAX = 2,
COUNT = 3,
AVG = 4,
SUM = 5,
VAR = 6
};
enum{
MIN1 = 100,
MAX1 = 200
};
enum{
MIN2 = 10,
MAX2 = 20,
COUNT2 = 30,
SC2 = 40,
SUM2 = 50
};
enum{
TYPE_8 = 1,
TYPE_16 = 2,
TYPE_24 = 3,
TYPE_32 = 4,
TYPE_56 = 7,
TYPE_64 = 8,
TINA_8 = 5,
TINA_16 = 6
};
enum{
SENDER_QUEUE_SIZE=5,
RECEIVER_QUEUE_SIZE=3,
AM_ROUTINGMSG=22,
AM_NOTIFYPARENTMSG=12,
EPOCH_MILLI= 61440,
TIMER_FAST_PERIOD=1024,
INSTANT = 0,
MAX_DEPTH=32,
MAX_NODES=32,
TCT = 10
};
typedef nx_struct RoutingMsg
{
nx_uint8_t depth;
nx_uint8_t aggr;
} RoutingMsg;
typedef nx_struct Msg_64
{
nx_uint8_t var8;
nx_uint8_t var8_2;
nx_uint16_t var16;
nx_uint32_t var32;
} Msg_64;
#endif