synopsys的VMM文档写得太差了
时间:12-11
整理:3721RD
点击:
一个个看单词知道是英语,但连起来之后是鸟语
下面举出一段话,哪位大牛给分析一下是啥意思(尤其是最后两句话)
Rule 4-34 Environment components shall be instantiated only in the
vmm_env::build() method extension.
Transactors, generators, scoreboards and functional coverage models must be instantiated according to the testcase configuration, which is final only when the vmm_env::build() method is invoked. No environment components must be instantiated in the constructor or other methods. The only object that is instantiated in the environment constructor is the default testcase configuration descriptor instance
that will be a randomized vmm_env::gen_cfg() method extension.
下面举出一段话,哪位大牛给分析一下是啥意思(尤其是最后两句话)
Rule 4-34 Environment components shall be instantiated only in the
vmm_env::build() method extension.
Transactors, generators, scoreboards and functional coverage models must be instantiated according to the testcase configuration, which is final only when the vmm_env::build() method is invoked. No environment components must be instantiated in the constructor or other methods. The only object that is instantiated in the environment constructor is the default testcase configuration descriptor instance
that will be a randomized vmm_env::gen_cfg() method extension.
除了testcase的配置的class的实例可以在vmm_env的new函数里面创建,
其他的验证构件(component)的实例创建必须在build这个function里面
完成
哦,谢谢,我理解错了一个关键词。
不过还是得说这文档写得真差(最后一句话只能靠猜)
BTW: synopsys自己的示例程序都在gen_cfg中实例化构件...我觉得这样有个好处,在实例化vmm_env的扩展类时不用加参数了