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/singlenet.cpp | 43 ------------------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 src/intersim/singlenet.cpp (limited to 'src/intersim/singlenet.cpp') diff --git a/src/intersim/singlenet.cpp b/src/intersim/singlenet.cpp deleted file mode 100644 index ec68fb4..0000000 --- a/src/intersim/singlenet.cpp +++ /dev/null @@ -1,43 +0,0 @@ -#include "booksim.hpp" -#include - -#include "singlenet.hpp" - -SingleNet::SingleNet( const Configuration &config ) : -Network( config ) -{ - _ComputeSize( config ); - _Alloc( ); - _BuildNet( config ); -} - -void SingleNet::_ComputeSize( const Configuration &config ) -{ - _sources = config.GetInt( "in_ports" ); - _dests = config.GetInt( "out_ports" ); - - _size = 1; - _channels = 0; -} - -void SingleNet::_BuildNet( const Configuration &config ) -{ - int i; - - _routers[0] = Router::NewRouter( config, this, "router", 0, - _sources, _dests ); - - for ( i = 0; i < _sources; ++i ) { - _routers[0]->AddInputChannel( &_inject[i], &_inject_cred[i] ); - } - - for ( i = 0; i < _dests; ++i ) { - _routers[0]->AddOutputChannel( &_eject[i], &_eject_cred[i] ); - } -} - -void SingleNet::Display( ) const -{ - _routers[0]->Display( ); -} - -- cgit v1.3