summaryrefslogtreecommitdiff
path: root/src/intersim/flit.hpp
blob: d22e531ef22e02c57e1cdb6bd3696ffc37dbf3f6 (plain)
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
#ifndef _FLIT_HPP_
#define _FLIT_HPP_

#include "booksim.hpp"

#include <iostream>

struct Flit {
   void* data;
   int net_num; // which network is this flit in (we might have several icnt networks)

   int vc;

   bool head;
   bool tail;
   bool true_tail;

   int  time;

   int  sn;
   int  rob_time;

   int  id;
   bool record;

   int  src;
   int  dest;

   int  pri;

   int  hops;
   bool watch;

   // Fields for multi-phase algorithms
   mutable int intm;
   mutable int ph;

   mutable int dr;

   // Which VC parition to use for deadlock avoidance in a ring
   mutable int ring_par;
};

ostream& operator<<( ostream& os, const Flit& f );

#endif