[gem5-users] Re: Adding a delay of certain ticks in gem5

2023-07-06 Thread John Smith via gem5-users
Okay, I understood. Thanks. On Thu, Jul 6, 2023 at 12:57 PM Jason Lowe-Power wrote: > Hi John, > > The following may be helpful: > > > https://gem5bootcamp.github.io/gem5-bootcamp-env/modules/developing%20gem5%20models/events/ > https://www.youtube.com/watch?v=OcXA1D4b1RA&t=3868s > > Cheers, > J

[gem5-users] Re: Adding a delay of certain ticks in gem5

2023-07-06 Thread Jason Lowe-Power via gem5-users
Hi John, The following may be helpful: https://gem5bootcamp.github.io/gem5-bootcamp-env/modules/developing%20gem5%20models/events/ https://www.youtube.com/watch?v=OcXA1D4b1RA&t=3868s Cheers, Jason On Thu, Jul 6, 2023 at 9:53 AM Eliot Moss via gem5-users < gem5-users@gem5.org> wrote: > On 7/6/2

[gem5-users] Re: Adding a delay of certain ticks in gem5

2023-07-06 Thread Eliot Moss via gem5-users
On 7/6/2023 12:48 PM, John Smith via gem5-users wrote: I've looked into the schedule() function which is used to schedule events. But can this function be used to simulate delays? Not by itself. You schedule an event at something like curTick() + 100. When the event happens, a function gets ca

[gem5-users] Re: Adding a delay of certain ticks in gem5

2023-07-06 Thread Eliot Moss via gem5-users
On 7/6/2023 11:12 AM, John Smith via gem5-users wrote: Greetings, If I want to, for example, add a delay of 100 ticks before a line of code executes in the function handleTimingReqMiss() in cache.cc, how do I go about doing that? Generally speaking, you'll have to schedule an event and then do

[gem5-users] Re: Adding a delay of certain ticks in gem5

2023-07-06 Thread John Smith via gem5-users
I've looked into the schedule() function which is used to schedule events. But can this function be used to simulate delays? On Thu, Jul 6, 2023 at 11:12 AM John Smith wrote: > Greetings, > If I want to, for example, add a delay of 100 ticks before a line of code > executes in the function handl