My question is how does it help / add value to have the virtual interface in a wrapper class and initialize / configure using vmm_opts related code ?admin管理员组文章数量:1666884
In summary , how does Interface Wrapper promote re use / ease of use of interface class ?
Currently, systemverilog interfaces are not extensible.
Therefore once you have picked one you are stuck and cannot modify it/add a signal/ change a signals defualt value etc.
If you embed the interface within a wrapper-class you canuse the factory to select which wrapper-class you use.
and each wrapper class can have a different interface embedded within it.
Thus, you get better reuse.
There are several alternatives such as passing the interface to all objects that require them at time of construction, allowing you to pass a different interface as a class-parameter.
or use a lookup table where you store the interface and the objects get the interface from the look-up table and yuo can control the interface that is set in the lookup table.
etc
本文标签: PromoteWrapperInterfaceclass
版权声明:本文标题:how does Interface Wrapper promote re useease of use of interface class 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/dianzi/1730076006a1221785.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论