You can trigger every router to wake up every N cycles, irrespective of its 
occupancy. [If it wakes up when it is empty, it will simply increment your 
stats and not do anything else].
Take a look at  Router.cc<http://router.cc>->schedule_wakeup(Cycles time)
Every time a router wakes up, you can schedule it to wakeup after N cycles.
And you can collect your stats only when the wakeup time is a multiple of N and 
not during other wakeups.

- Tushar


On Jan 27, 2017, at 11:12 PM, M Bai 
<[email protected]<mailto:[email protected]>> wrote:

Dear Everyone,

I am doing simulation with garnet. Now I am trying to analyze the resource 
usage and the power consumption during the entire simulation. For example, a 
router buffer usage for every N cycles.  Since the routers and buffers wake up 
only at ticks when evens are scheduled, is there any way to track the NoC 
resource usage during the entire simulation. How to add the trigger function 
and modify the python scripts to obtain the buffer usage periodically?
Is there anyone who can give some hints on how to solve this problem or anyone 
who did solve this problem before?

Thanks
Ming
_______________________________________________
gem5-users mailing list
[email protected]<mailto:[email protected]>
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to