// UVM pre_abort() : Called prior to UVM_EXIT, e.g. when a fatal occurs
//
virtual function void pre_abort();
// Call extract and report so that the state of the scoreboard is printed
// if the test ends with a UVM_FATAL
do_check();
do_report;
endfunction
uvm pre_abort when fatal exit
最新推荐文章于 2024-10-26 18:54:40 发布
本文深入探讨了UVMpre_abort()函数的作用与实现。此函数在UVM_EXIT前调用,如遇到致命错误时触发。文章详细解释了如何通过调用extract和report函数来确保在测试结束时(尤其是当测试以UVM_FATAL状态结束时),能够打印出scoreboard的状态,从而帮助开发者更好地理解错误原因。
1154

被折叠的 条评论
为什么被折叠?



