summaryrefslogtreecommitdiff
path: root/src/intersim/flit.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/intersim/flit.hpp')
-rw-r--r--src/intersim/flit.hpp46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/intersim/flit.hpp b/src/intersim/flit.hpp
new file mode 100644
index 0000000..d22e531
--- /dev/null
+++ b/src/intersim/flit.hpp
@@ -0,0 +1,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