Hi Fela, I do not understand your questions. In SystemC as well as gem5, the SC_MODULES decide when to schedule events, either through sc_event with a time, by calling wait with a time, etc. The event queue orders the events based on time and executes them based on time stamp. This is the same in both SystemC and gem5.
Andreas On 26/11/2014 13:24, "fela via gem5-users" <[email protected]> wrote: >Hi Andreas, > >Thank you for your reply that helps me a lot. >I have two more questions! > >When you say, objects schedule there own events, why did you choose this >way >to schedule events? Why is it not simply scheduled by the simulation >kernel? >Each object call the schedule function for its events. When I looked to >the >code, this schedule function is defined in pollevent.hh/.cc which is >accessed by all the objects. Is there an advantage for this scheduling >method? > >When events are scheduled, we must specify the event.when() (the scheduler >don't decide when to schedule events!this is not the case in systemC, we >can >not know when an event will be executed). Is the event queue ordred >according to events stampes or times when events are produced (created)? > > > >Thanks, >Fela, >PhD student, France. > > > > > >_______________________________________________ >gem5-users mailing list >[email protected] >http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > -- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered in England & Wales, Company No: 2557590 ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered in England & Wales, Company No: 2548782 _______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
