In reply to dave_59:
Thanks for your reply, after inserting #1 delay task is running fine. Also tried for
functional call but it works only if add @ (cpu_timer_ld_dn) insid\ inside the forever block.
also forever @ (*) end up with syntax error, guess forever should be used only inside the
initial block.
initial
begin
timer_control control;
control = new();
forever
begin
@ (cpu_timer_ld_dn);
control.timer_load(cpu_timer_ld_dn, gate_rise_edge, timer_modes, load_timer_reg);
end
end
Anyhow you have solved my issue & thanks a lot, now only I came to know about
zero delay task wont run inside a forever block.
Thanks