summaryrefslogtreecommitdiff
path: root/src/intersim/vc.hpp
diff options
context:
space:
mode:
authorDongdong Li <[email protected]>2013-11-22 15:38:36 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:50:59 -0700
commitef8a5521e440baa2f86d468cdc9078f54ec7c0c0 (patch)
treec1627660cc01983067eb5d9b09fb82b4e06d9983 /src/intersim/vc.hpp
parentbdc0e550448f04c7c8f030b7421209bae37e651d (diff)
Delete Intersim
Code Review Issue: 113001 [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 17414]
Diffstat (limited to 'src/intersim/vc.hpp')
-rw-r--r--src/intersim/vc.hpp79
1 files changed, 0 insertions, 79 deletions
diff --git a/src/intersim/vc.hpp b/src/intersim/vc.hpp
deleted file mode 100644
index ecb8c2d..0000000
--- a/src/intersim/vc.hpp
+++ /dev/null
@@ -1,79 +0,0 @@
-#ifndef _VC_HPP_
-#define _VC_HPP_
-
-#include <queue>
-
-#include "flit.hpp"
-#include "outputset.hpp"
-#include "routefunc.hpp"
-#include "config_utils.hpp"
-
-class VCRouter;
-
-class VC : public Module {
-public:
- enum eVCState {
- idle, routing, vc_alloc, active
- };
-
-private:
- int _size;
-
- queue<Flit *> _buffer;
-
- eVCState _state;
- int _state_time;
-
- OutputSet *_route_set;
- int _out_port, _out_vc;
-
- int _occupied_cnt;
- int _total_cycles;
- int _vc_alloc_cycles;
- int _active_cycles;
- int _idle_cycles;
-
- int _pri;
-
- void _Init( const Configuration& config, int outputs );
-
- bool _watched;
-
-public:
- VC() : Module() {}
- void init( const Configuration& config, int outputs );
- VC( const Configuration& config, int outputs,
- Module *parent, const string& name );
- ~VC( );
-
- bool AddFlit( Flit *f );
- Flit *FrontFlit( );
- Flit *RemoveFlit( );
-
- bool Empty( ) const;
-
- eVCState GetState( ) const;
- int GetStateTime( ) const;
- void SetState( eVCState s );
-
- const OutputSet *GetRouteSet( ) const;
-
- void SetOutput( int port, int vc );
- int GetOutputPort( ) const;
- int GetOutputVC( ) const;
-
- int GetPriority( ) const;
-
- void Route( tRoutingFunction rf, const Router* router, const Flit* f, int in_channel );
-
- void AdvanceTime( );
-
- // ==== Debug functions ====
-
- void SetWatch( bool watch = true );
- bool IsWatched( ) const;
-
- void Display( ) const;
-};
-
-#endif