diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2015-08-30 12:24:18 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2015-08-30 12:24:18 -0500 |
commit | bf8ae288fa81ad66c56eae483eea1814afaa2119 (patch) | |
tree | a41d47e7fbe981d152aa300e9e9afb1deccc8e2e /src/mem/ruby/network/garnet/flexible-pipeline/Router.hh | |
parent | 7175db4a3fcd7f5767d740a7c11b5fcf215d0018 (diff) | |
download | gem5-bf8ae288fa81ad66c56eae483eea1814afaa2119.tar.xz |
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.
Diffstat (limited to 'src/mem/ruby/network/garnet/flexible-pipeline/Router.hh')
-rw-r--r-- | src/mem/ruby/network/garnet/flexible-pipeline/Router.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mem/ruby/network/garnet/flexible-pipeline/Router.hh b/src/mem/ruby/network/garnet/flexible-pipeline/Router.hh index e3f193045..11a860b11 100644 --- a/src/mem/ruby/network/garnet/flexible-pipeline/Router.hh +++ b/src/mem/ruby/network/garnet/flexible-pipeline/Router.hh @@ -65,7 +65,6 @@ class Router : public BasicRouter, public FlexibleConsumer void grant_vc(int out_port, int vc, Cycles grant_time); void release_vc(int out_port, int vc, Cycles release_time); void vc_arbitrate(); - int get_vnet(int vc); void print(std::ostream& out) const; @@ -104,6 +103,8 @@ class Router : public BasicRouter, public FlexibleConsumer void checkReschedule(); void check_arbiter_reschedule(); void scheduleOutputLinks(); + int get_vnet(int vc) const; + int get_next_round_robin_vc(int vc) const; }; #endif // __MEM_RUBY_NETWORK_GARNET_FLEXIBLE_PIPELINE_ROUTER_HH__ |