Running scoreboard and monitor

Hi
For testing my scoreboard component , i have developed a dummy monitor module which is just passing the sequence of transactions i intend to check in my scoreboard. So the issue i am facing is on how to call the run tasks of each component. I was thinking of instantiating both in an environment and then writing a top module and then calling run_test in its run task.But this doesn’t seem to work, what should i do, should i make a call to rum method of scoreboard component and monitor component from the top environment???

please suggest…

Hi vdadwal,

At any point of time you should not think of calling scoreboard and monitor separately in run_test.
The approach you suggested (Creating environment by instantiating both scoreboard and monitor) is the correct one.
you should call run_test with the environment created and should work without any issue.

Thanks Vishnu,
It seems to work , however i have another questions , how do i decide the precedence of one components run task execution over another.In my scoreboard unit i have a dummy monitor and protocol checker , when i run the simulation , the monitor run tasks starts to run first and then the protocol checker’s run tasks. If i am undersatnding the manual correctly then i think all the run tasks are forked paralleraly , however i want to start one ahead of the other how do i do that ??

–Vikram Dadwal

Hi ,

To the best of my knowldege , it cannot be done automatically.You will have to manually add delays.

Best would be wait for a event in the threads which you want to start later and trigger the event from the thread which you want to be started first.