uvm中phase有哪些?(参考UVM实战5.1phase机制)
build_phase
connect_phase
end_of_elaboration_phase
start_of_simulation_phase
run_phase(并列:pre,post reset_phase configure_phase main_phase shutdown_phase)
extract_phase
check_phase
report_phase
final_phase
- build_phase和final_phase自顶而下执行,其余都是自下而上;
- 只有run_phase和与它并行执行的12个小phase是task,其余为function。
摘录:
UVM提供了如此多的phase,在一般的应用中,无论是function phase还是task phase都不会将它们全部用上。使用频率最高的 是build_phase、connect_phase和main_phase。这么多phase除了方便验证人员将不同的代码写在不同的phase外,还有利于其他验证 方法学向UVM迁移。一般的验证方法学都会把仿真分成不同的阶段,但是这些阶段的划分通常没有UVM分得这么多、这么细 致。所以一般来说,当其他验证方法学向UVM迁移的时候,总能找到一个phase来对应原来方法学中的仿真阶段,这为迁移提供 了便利。