From 3ee4957b4930a252c0185a6bc71bdf1c6ebc5ed9 Mon Sep 17 00:00:00 2001 From: Akash Bagdia Date: Tue, 18 Nov 2014 14:00:48 +0000 Subject: power: Add power states to ClockedObject Add 4 power states to the ClockedObject, provides necessary access functions to check and update the power state. Default power state is UNDEFINED, it is responsibility of the respective simulation model to provide the startup state and any other logic for state change. Add number of transition stat. Add distribution of time spent in clock gated state. Add power state residency stat. Add dump call back function to allow stats update of distribution and residency stats. --- src/mem/ruby/network/garnet/fixed-pipeline/Router_d.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mem/ruby/network/garnet/fixed-pipeline/Router_d.cc') diff --git a/src/mem/ruby/network/garnet/fixed-pipeline/Router_d.cc b/src/mem/ruby/network/garnet/fixed-pipeline/Router_d.cc index 97bc1abdd..dab9b7dda 100644 --- a/src/mem/ruby/network/garnet/fixed-pipeline/Router_d.cc +++ b/src/mem/ruby/network/garnet/fixed-pipeline/Router_d.cc @@ -158,6 +158,8 @@ Router_d::update_sw_winner(int inport, flit_d *t_flit) void Router_d::regStats() { + BasicRouter::regStats(); + m_buffer_reads .name(name() + ".buffer_reads") .flags(Stats::nozero) -- cgit v1.2.3