diff options
| author | Dongdong Li <[email protected]> | 2013-11-22 15:38:36 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:50:59 -0700 |
| commit | ef8a5521e440baa2f86d468cdc9078f54ec7c0c0 (patch) | |
| tree | c1627660cc01983067eb5d9b09fb82b4e06d9983 /src/intersim/router.hpp | |
| parent | bdc0e550448f04c7c8f030b7421209bae37e651d (diff) | |
Delete Intersim
Code Review Issue: 113001
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 17414]
Diffstat (limited to 'src/intersim/router.hpp')
| -rw-r--r-- | src/intersim/router.hpp | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/src/intersim/router.hpp b/src/intersim/router.hpp deleted file mode 100644 index d2dff13..0000000 --- a/src/intersim/router.hpp +++ /dev/null @@ -1,63 +0,0 @@ -#ifndef _ROUTER_HPP_
-#define _ROUTER_HPP_
-
-#include <string>
-#include <vector>
-
-#include "module.hpp"
-#include "flit.hpp"
-#include "credit.hpp"
-#include "config_utils.hpp"
-
-class Router : public Module {
-protected:
- int _id;
-
- int _inputs;
- int _outputs;
-
- int _input_speedup;
- int _output_speedup;
-
- int _routing_delay;
- int _vc_alloc_delay;
- int _sw_alloc_delay;
- int _st_prepare_delay;
- int _st_final_delay;
-
- int _credit_delay;
-
- vector<Flit **> *_input_channels;
- vector<Credit **> *_input_credits;
- vector<Flit **> *_output_channels;
- vector<Credit **> *_output_credits;
- vector<bool> *_channel_faults;
-
- Credit *_NewCredit( int vcs = 1 );
- void _RetireCredit( Credit *c );
-
-public:
- Router( const Configuration& config,
- Module *parent, string name, int id,
- int inputs, int outputs );
-
- virtual ~Router( );
-
- static Router *NewRouter( const Configuration& config,
- Module *parent, string name, int id,
- int inputs, int outputs );
-
- void AddInputChannel( Flit **channel, Credit **backchannel );
- void AddOutputChannel( Flit **channel, Credit **backchannel );
-
- virtual void ReadInputs( ) = 0;
- virtual void InternalStep( ) = 0;
- virtual void WriteOutputs( ) = 0;
-
- void OutChannelFault( int c, bool fault = true );
- bool IsFaultyOutput( int c ) const;
-
- int GetID( ) const;
-};
-
-#endif
|
