推荐答案
测试一下
题目
Which of the following descriptions about UVM is correct?
A. The execution of the build_phase is bottom-up.
B. The execution of the connect_phase is top-down.
C. The reset_phase is executed before the main_phase.
D. Objection raise can be done in the build_phase.
参考答案与知识点
参考答案
C正确。UVM中,reset_phase属于run_phase的细分阶段,其执行顺序在main_phase之前。具体phase执行流程为:reset_phase → configure_phase → main_phase → shutdown_phase。A错误:build_phase是顶层向下执行(top-down),从根组件开始逐级创建子组件。B错误:connect_phase是底层向上执行(bottom-up),确保子组件的TLM连接先建立。D错误:objection通常用于消耗仿真时间的run_phase,build_phase是function phase,不消耗时间,虽然语法上可以raise,但违反设计意图,且无法有效控制仿真结束。
涉及知识点
- UVM phase执行顺序
- build_phase为top-down
- connect_phase为bottom-up
- reset_phase先于main_phase
- objection使用场景