问题:为什么get_name()返回的是出掉uvm_和_phase的name呢?
答:因为在new的时候的string name就是这样规范的。
- 扩展自uvm_task_phase
小结:
- 12个并行的run-time phase都扩展自uvm_task_phase
- exec_task(uvm_component,uvm_phase),里面调用了uvm_component的函数。
- new(string name="phase_name")的命名,使得phase.get_name()=main,而不是uvm_main_phase.
- get()函数的调用使得各个phase被例化。