Hi guys!
        I am using simpleTimingCPU. And I am so confusing on how event affect 
curTick?  I see there is a “setCurTick()” after calling "serviceOne() “ in 
“serviceEvents”. Is this denotes that curTick will be change by event? 
        I tried to add a “delayEvent” in addToWriteQueue in dram_ctrl.cc before 
call nextReqEvent. This code likes
”
                //before delay
        if(pkt->isWrite()){
        if (!delayEvent.scheduled())
                schedule(delayEvent, curTick()+1);
        }
                //after delay
        if (!nextReqEvent.scheduled()) {
                DPRINTF(DRAM, "Request scheduled immediately\n");
                schedule(nextReqEvent, curTick());
        }
”
In my understand, I though this will make every events in the eventqueue that 
after “delayEvent” will be delayed 1,because curTIck + 1. And finally make gem5 
delay 1. But the result shows that there is no affect to those event that after 
delayEvent.

I want to ask 
1. Is Event insert into eventq on code sequence (which means delayEvent in 
front of nextReqEvent in eventq) or on chronological order(which means 
nextReqEvent in front of delayEvent in eventq) ?

2. Are there any method to make event after “delayEvent" delay a specified time 
?

_______________________________________________
gem5-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to