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/arbiter.hpp | 51 ------------------------------------------------ 1 file changed, 51 deletions(-) delete mode 100644 src/intersim/arbiter.hpp (limited to 'src/intersim/arbiter.hpp') diff --git a/src/intersim/arbiter.hpp b/src/intersim/arbiter.hpp deleted file mode 100644 index 23b5232..0000000 --- a/src/intersim/arbiter.hpp +++ /dev/null @@ -1,51 +0,0 @@ -#ifndef _ARBITER_HPP_ -#define _ARBITER_HPP_ - -#include - -#include "module.hpp" -#include "config_utils.hpp" - -class Arbiter : public Module { -protected: - const int _inputs; - - struct sRequest { - int in; - int label; - int pri; - }; - - list _requests; - - int _match; - -public: - Arbiter( const Configuration &, - Module *parent, const string& name, - int inputs ); - virtual ~Arbiter( ); - - void Clear( ); - - void AddRequest( int in, int label = 0, int pri = 0 ); - void RemoveRequest( int in, int label = 0 ); - - virtual void Arbitrate( ) = 0; - - int Match( ) const; -}; - -class PriorityArbiter : public Arbiter { - int _rr_ptr; - -public: - PriorityArbiter( const Configuration &config, - Module *parent, const string& name, - int inputs ); - ~PriorityArbiter( ); - - void Arbitrate( ); -}; - -#endif -- cgit v1.3