一个类要使用它必须提供new()函数,当然static的例外。至于那两个phase是UVM的层次化要求,当然你可以把所有东西写到一个里面,也有办法跑起来,但是可重用性就打折扣了。
build phase的典型应用:
Instantiate sub-components.
Instantiate register model.
Get configuration values for the component being built.
Set configuration values for sub-components.
main phase就不简单包含初始化组件和赋值这种非时间推进的操作了,所有用task