ipc is instructions per cycle, but you're calculation doesn't have instructions in it anywhere. Ticks are an unspecified unit of time, so you would need to divide them by the number of ticks in a single clock period (or use a function to do that, if there is one) to find out how cycles there were. Then you'd divide the number of instructions executed by the number of cycles.
Gabe On 05/26/11 18:48, ADWAIT JOG wrote: > Quick Question: > > Do you mean that all calculations like IPC are done at the end of > simulation > when you get all the ticks and then just divide by clock. > > > ipcA = ticks/clockA > > ipcB = ticks/clockB > > ipcA/ipcB = clockB/clockA? -- is it correct? > > > Adwait > > 1ns = 1000 Ticks because of how Ticks are set up and is not guaranteed > to be correct. If you look in sim/core.hh, you'll find constants which > are set up with the right number of ticks per unit time. The clock > frequency of a CPU doesn't affect how long a Tick is. > > Gabe >
_______________________________________________ gem5-users mailing list gem5-users@m5sim.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users