diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2013-09-06 16:21:35 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2013-09-06 16:21:35 -0500 |
commit | 90bfbd9793e64b29d09f4ca4ee610ee08f82ea75 (patch) | |
tree | e14b49f9632b25cde8a32b5e5787a36a376e6dff /src/mem/ruby/network/garnet/flexible-pipeline/NetworkLink.cc | |
parent | e9ae8b7d29e83fa2cad55006d2c6dc58115965cc (diff) | |
download | gem5-90bfbd9793e64b29d09f4ca4ee610ee08f82ea75.tar.xz |
ruby: network: convert to gem5 style stats
Diffstat (limited to 'src/mem/ruby/network/garnet/flexible-pipeline/NetworkLink.cc')
-rw-r--r-- | src/mem/ruby/network/garnet/flexible-pipeline/NetworkLink.cc | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/mem/ruby/network/garnet/flexible-pipeline/NetworkLink.cc b/src/mem/ruby/network/garnet/flexible-pipeline/NetworkLink.cc index 9881d8063..04e8a9da9 100644 --- a/src/mem/ruby/network/garnet/flexible-pipeline/NetworkLink.cc +++ b/src/mem/ruby/network/garnet/flexible-pipeline/NetworkLink.cc @@ -40,6 +40,7 @@ NetworkLink::NetworkLink(const Params *p) m_link_utilized = 0; m_latency = p->link_latency; m_id = p->link_id; + int num_net = p->virt_nets; int num_vc = p->vcs_per_vnet; m_vc_load.resize(num_net * num_vc); @@ -53,12 +54,6 @@ NetworkLink::~NetworkLink() delete linkBuffer; } -int -NetworkLink::get_id() -{ - return m_id; -} - void NetworkLink::setLinkConsumer(FlexibleConsumer *consumer) { @@ -101,18 +96,6 @@ NetworkLink::release_vc_link(int vc, Cycles release_time) link_source->release_vc(m_out_port, vc, release_time); } -std::vector<int> -NetworkLink::getVcLoad() -{ - return m_vc_load; -} - -double -NetworkLink::getLinkUtilization() -{ - return (double(m_link_utilized)); -} - bool NetworkLink::isReady() { |