Jump to content
Sign in to follow this  
ytkim1

What phase to use for end of simulation check

Recommended Posts

Hi,

I am doing bunch checking in the check_phase for end of simulation checking.

That's working find but I also need check status/counter register (using peek) but since check_phase is virtual function and register.peek() is task, I couldn't read register from check_phase.

Is anyone have idea when and where can I do the check?

Thanks,

Share this post


Link to post
Share on other sites

Yes and no. The stuff that needs to run for the entire duration of the test (e.g. scoreboard, VIPs, transactors) remains in run_phase. But the main body of your test stimulus should be moved to main_phase(): that's what it was designed for.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×