ruby: network: drop member m_in_use
authorNilay Vaish <nilay@cs.wisc.edu>
Sun, 30 Aug 2015 17:24:18 +0000 (12:24 -0500)
committerNilay Vaish <nilay@cs.wisc.edu>
Sun, 30 Aug 2015 17:24:18 +0000 (12:24 -0500)
commitbf8ae288fa81ad66c56eae483eea1814afaa2119
treea41d47e7fbe981d152aa300e9e9afb1deccc8e2e
parent7175db4a3fcd7f5767d740a7c11b5fcf215d0018
ruby: network: drop member m_in_use

This member indicates whether or not a particular virtual network is in use.
Instead of having a default big value for the number of virtual networks and
then checking whether a virtual network is in use, the next patch removes the
default value and the protocol configuration file would now specify the
number of virtual networks it requires.

Additionally, the patch also refactors some of the code used for computing the
virtual channel next in the round robin order.
src/mem/ruby/network/Network.cc
src/mem/ruby/network/Network.hh
src/mem/ruby/network/garnet/BaseGarnetNetwork.hh
src/mem/ruby/network/garnet/fixed-pipeline/GarnetNetwork_d.cc
src/mem/ruby/network/garnet/fixed-pipeline/SWallocator_d.cc
src/mem/ruby/network/garnet/fixed-pipeline/VCallocator_d.cc
src/mem/ruby/network/garnet/flexible-pipeline/GarnetNetwork.cc
src/mem/ruby/network/garnet/flexible-pipeline/Router.cc
src/mem/ruby/network/garnet/flexible-pipeline/Router.hh
src/mem/ruby/network/simple/SimpleNetwork.cc
src/mem/ruby/network/simple/SimpleNetwork.hh