在 Specman 中,如何判断对单元的引用前面是否带有“不生成”修饰符?
在 Specman 中,如何判断对单元的引用在引用的定义中是否具有不生成修饰符“!”?
例如,
unit foo_u {
};
extend sys {
foo : foo_u is instance;
foo_ptr_generated : foo_u;
keep foo_ptr_generated == foo;
!foo_ptr_notgenerated : foo_u;
connect_pointers() is also {
foo_ptr_notgenerated = foo;
};
};
在不检查代码或依赖命名约定的情况下,我如何知道 foo_ptr_generate
通过了 Specman 的约束求解器,并且 foo_ptr_notgenerate
已按程序设置?
In Specman, how can I tell if a reference to a unit has the do-not-generate modifier, '!', at the reference's definition?
e.g.
unit foo_u {
};
extend sys {
foo : foo_u is instance;
foo_ptr_generated : foo_u;
keep foo_ptr_generated == foo;
!foo_ptr_notgenerated : foo_u;
connect_pointers() is also {
foo_ptr_notgenerated = foo;
};
};
Without inspecting the code or relying on a naming convention, how can I tell thatfoo_ptr_generated
went through Specman's constraint solver andfoo_ptr_notgenerated
was procedurally set?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
终于明白了这一点。 此代码将通过反射接口确定 Specman 6 中生成了哪些引用,哪些不在 Specman 6 中:
运行:
生成:
Finally figured this out. This code will determine which references are generated and which aren't in Specman 6 via the reflection interface:
Running with:
Produces: