diff options
author | Joel Hestness <hestness@cs.utexas.edu> | 2011-02-06 22:14:19 -0800 |
---|---|---|
committer | Joel Hestness <hestness@cs.utexas.edu> | 2011-02-06 22:14:19 -0800 |
commit | ebe563e531d5224ee7aad26767c08e8eba11e4e6 (patch) | |
tree | 932dcdabed9b2a99e98f17e21a63ae0d769b73c5 /src/mem/ruby/network/garnet/fixed-pipeline/Router_d.hh | |
parent | 5c2f4937b33c5ed4684ff0eda03d427adb270841 (diff) | |
download | gem5-ebe563e531d5224ee7aad26767c08e8eba11e4e6.tar.xz |
garnet: Split network power in ruby.stats
Split out dynamic and static power numbers for printing to ruby.stats
Diffstat (limited to 'src/mem/ruby/network/garnet/fixed-pipeline/Router_d.hh')
-rw-r--r-- | src/mem/ruby/network/garnet/fixed-pipeline/Router_d.hh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mem/ruby/network/garnet/fixed-pipeline/Router_d.hh b/src/mem/ruby/network/garnet/fixed-pipeline/Router_d.hh index 0c5d51fc3..b6899ea6b 100644 --- a/src/mem/ruby/network/garnet/fixed-pipeline/Router_d.hh +++ b/src/mem/ruby/network/garnet/fixed-pipeline/Router_d.hh @@ -81,6 +81,9 @@ class Router_d double calculate_power(); void calculate_performance_numbers(); + double get_dynamic_power(){return m_power_dyn;} + double get_static_power(){return m_power_sta;} + private: int m_id; int m_virtual_networks, m_num_vcs, m_vc_per_vnet; @@ -100,6 +103,9 @@ class Router_d VCallocator_d *m_vc_alloc; SWallocator_d *m_sw_alloc; Switch_d *m_switch; + + double m_power_dyn; + double m_power_sta; }; #endif // __MEM_RUBY_NETWORK_GARNET_FIXED_PIPELINE_ROUTER_D_HH__ |