Run() task in scoreboard

hi all,
I want to know that, can run task be present in scoreboard.

actually I have made a run task in scoreboard. run task is :

task run();
$display(“%s: RUNNING>>>…”, get_full_name());
fork
begin
forever
begin
if((flag_mon_trans_rcvd ) && (flag_mst_trans_rcvd))
begin
compare(master_trans, “master”, mon_trans, “mon”,“MST_SLV_RD_CHAN”);
flag_mst_trans_rcvd = 0;
flag_mon_trans_rcvd = 0;
end

      end // forever begin
 end // fork begin
  join      

endtask // run

the problem i am getting is during loading, after printing " RUNNING>>>…" the control
stops at that point and does not move and nothing happens , it remain struck at this point.

this is because of "forever " and "fork join " , i have used.and if i remove forever and fork join then everything is OK.

so friends do reply ASAP and possible alternative to solve my problem.

regards
saurabh

Hi Saurabh,

With “forever”, it becomes infinite loop without any delay. So, simulation will not go ahead of time 0.

Please add any delay or event to avoid this.

Let me know still if you get the problem.

Regards,
Kinjal