summaryrefslogtreecommitdiff
path: root/src/intersim/singlenet.cpp
diff options
context:
space:
mode:
authorDongdong Li <[email protected]>2013-11-22 15:38:36 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:50:59 -0700
commitef8a5521e440baa2f86d468cdc9078f54ec7c0c0 (patch)
treec1627660cc01983067eb5d9b09fb82b4e06d9983 /src/intersim/singlenet.cpp
parentbdc0e550448f04c7c8f030b7421209bae37e651d (diff)
Delete Intersim
Code Review Issue: 113001 [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 17414]
Diffstat (limited to 'src/intersim/singlenet.cpp')
-rw-r--r--src/intersim/singlenet.cpp43
1 files changed, 0 insertions, 43 deletions
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 <vector>
-
-#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( );
-}
-