From ef8a5521e440baa2f86d468cdc9078f54ec7c0c0 Mon Sep 17 00:00:00 2001 From: Dongdong Li Date: Fri, 22 Nov 2013 15:38:36 -0800 Subject: Delete Intersim Code Review Issue: 113001 [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 17414] --- src/intersim/network.hpp | 72 ------------------------------------------------ 1 file changed, 72 deletions(-) delete mode 100644 src/intersim/network.hpp (limited to 'src/intersim/network.hpp') 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 - -#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 - -- cgit v1.3