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/network.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/network.hpp')
| -rw-r--r-- | src/intersim/network.hpp | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/src/intersim/network.hpp b/src/intersim/network.hpp deleted file mode 100644 index 601ac7a..0000000 --- a/src/intersim/network.hpp +++ /dev/null @@ -1,72 +0,0 @@ -#ifndef _NETWORK_HPP_
-#define _NETWORK_HPP_
-
-#include <vector>
-
-#include "module.hpp"
-#include "flit.hpp"
-#include "credit.hpp"
-#include "router.hpp"
-#include "module.hpp"
-
-#include "config_utils.hpp"
-
-extern int gN;
-extern int gK;
-
-extern int gNodes;
-
-class Network : public Module {
-protected:
-
- int _size;
- int _sources;
- int _dests;
- int _channels;
-
- Router **_routers;
-
- Flit **_inject;
- Credit **_inject_cred;
-
- Flit **_eject;
- Credit **_eject_cred;
-
- Flit **_chan;
- Credit **_chan_cred;
-
- int *_chan_use;
- int _chan_use_cycles;
-
- virtual void _ComputeSize( const Configuration &config ) = 0;
- virtual void _BuildNet( const Configuration &config ) = 0;
-
- void _Alloc( );
-
-public:
- Network( const Configuration &config );
- virtual ~Network( );
-
- void WriteFlit( Flit *f, int source );
- Flit *ReadFlit( int dest );
-
- void WriteCredit( Credit *c, int dest );
- Credit *ReadCredit( int source );
-
- int NumSources( ) const;
- int NumDests( ) const;
-
- virtual void InsertRandomFaults( const Configuration &config );
- void OutChannelFault( int r, int c, bool fault = true );
-
- virtual double Capacity( ) const;
-
- void ReadInputs( );
- void InternalStep( );
- void WriteOutputs( );
-
- void Display( ) const;
-};
-
-#endif
-
|
