Hi All,
I am trying to schedule interrupt of timer for next time as my current logic only executed interrupt only one time.
void call_overflow_interrupt(){
//check overflow
//cout<<"\nIn callInterrupts func\n";
if((timer_cntrl &(1<<TIMER_CNTRL_OV))&& timer_val==0xff)
{
intr1=1;
timer_intr_status=ENABLE(timer_intr_status,TIMER_OV_INTR);
}
else{
cout<<"\ncall_overflow_interrupt is not coming\n";
}
}
And in SC_CTOR i am registering this process
SC_METHOD(call_overflow_interrupt);
sensitive<<Event;
dont_initialize();
Event.notify(256*20,SC_NS);//count=256(0xFF),clock period=20ns
I wrote above code but it is not scheduling the process for next time.How this can be achieved?