ytkim1 Posted October 23, 2012 Report Posted October 23, 2012 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, Quote
janick Posted October 23, 2012 Report Posted October 23, 2012 check_phase(), extract_phase() are functions and thus cannot execute any transactions on the DUT. Use the shutdown_phase() for that purpose. Quote
ytkim1 Posted October 23, 2012 Author Report Posted October 23, 2012 Thanks for info. Is this mean do I need change run_phase to use main_phase? Quote
janick Posted October 24, 2012 Report Posted October 24, 2012 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. Quote
ytkim1 Posted October 24, 2012 Author Report Posted October 24, 2012 Thank you very much for good information. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.