summaryrefslogtreecommitdiff
path: root/src/mem/ruby/network/orion
diff options
context:
space:
mode:
authorTushar Krishna <tushar@csail.mit.edu>2011-05-31 02:55:14 -0400
committerTushar Krishna <tushar@csail.mit.edu>2011-05-31 02:55:14 -0400
commit36899dc197c17a87077c59604e00482b6f63a2a8 (patch)
treef3649419649a990e135904c259713adb157b053f /src/mem/ruby/network/orion
parent8dcbe8adb537dafcadbb97ff87605936fe42b2b7 (diff)
downloadgem5-36899dc197c17a87077c59604e00482b6f63a2a8.tar.xz
garnet: added network ptr to links to be used by orion
Diffstat (limited to 'src/mem/ruby/network/orion')
-rw-r--r--src/mem/ruby/network/orion/NetworkPower.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/mem/ruby/network/orion/NetworkPower.cc b/src/mem/ruby/network/orion/NetworkPower.cc
index 73d60697a..af163ac29 100644
--- a/src/mem/ruby/network/orion/NetworkPower.cc
+++ b/src/mem/ruby/network/orion/NetworkPower.cc
@@ -245,13 +245,9 @@ NetworkLink_d::calculate_power()
channel_width /* channel width */,
orion_cfg_ptr);
-//
-// NOTE! I believe this calculation will be moved to McPAT, thus this
-// reference to the net_ptr can be removed
-//
// // Dynamic Power
- double sim_cycles = 0.0;
-// (double)(g_eventQueue_ptr->getTime() - m_net_ptr->getRubyStartTime());
+ double sim_cycles =
+ (double)(g_eventQueue_ptr->getTime() - m_net_ptr->getRubyStartTime());
double Plink_dyn = orion_link_ptr->calc_dynamic_energy(channel_width/2)*
(m_link_utilized/ sim_cycles)*freq_Hz;