From 69f2911e04ffb1b19eef1fafb8c040af271f656e Mon Sep 17 00:00:00 2001 From: Tor Aamodt Date: Thu, 15 Jul 2010 18:09:46 -0800 Subject: creating branch for adding support for CUDA 3.x and Fermi [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 6829] --- src/intersim/flit.hpp | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 src/intersim/flit.hpp (limited to 'src/intersim/flit.hpp') 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 + +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 -- cgit v1.3