[gem5-dev] Re: Ticks to Cycles

2020-07-24 Thread John Domingo via gem5-dev
I need to carryout some manual stat verification. This was very helpful Thanks Jason. Virus-free. www.avast.com

[gem5-dev] Re: Ticks to Cycles

2020-07-24 Thread Jason Lowe-Power via gem5-dev
Hi John, Yeah, that would work! In the c++ code you can also use the Cycle() object. Cheers, Jason On Fri, Jul 24, 2020 at 3:17 PM John Domingo wrote: > Hi Jason, > > If I look at the config.json, I see "clk_domain->clock" under it. > To manually calculate the number of cycles, can I divide

[gem5-dev] Re: Ticks to Cycles

2020-07-24 Thread John Domingo via gem5-dev
Hi Jason, If I look at the config.json, I see "clk_domain->clock" under it. To manually calculate the number of cycles, can I divide the number of ticks by this value ? Thank you, John Domingo

[gem5-dev] Re: Ticks to Cycles

2020-07-24 Thread Jason Lowe-Power via gem5-dev
Hi John, The clock domain object should do this conversion for you. If you set a clock to 1 GHz, then when you use "Cycle" in that object it will be converted to 1000 ticks (assuming then normal tick rate of 1ps). Most objects are a "ClockedObject" Cheers, Jason On Fri, Jul 24, 2020 at 2:41 PM