返回介绍

30.6 Usage extensions to VPI routines

发布于 2020-09-09 22:56:02 字数 2574 浏览 891 评论 0 收藏 0

Several VPI routines, that have existed before SystemVerilog, have been extended in usage with the addition of new object types and/or properties. While the extensions are fairly obvious, they are emphasized here again to turn the reader’s attention to the extended usage.

Table 30-1: Usage extensions to Verilog 2001 VPI routines

ToUseNew Usage
Get tool’s reader versionvpi_get_vlog_info()Reader version information
Create an iterator for the loaded objects (using vpi_iterate(vpiData-Loaded, <instance>)). Create an iterator for (object or traverse) collections using vpi_iterate(vpiMember, <collection>).vpi_iterate()Add iteration types vpiData- Loaded and vpiMember. Extended with collection handle to create a collection member element iterator.
Obtain a traverse (collection) handle from an object (collection) handlevpi_handle()Add new types vpiTrvsObj and vpiTrvsCollection. Extended with collection handle (of traversable objects) to create a traverse collection from an object collection.
Obtain a property.vpi_get()Extended with the new check properties:
vpiIsLoaded , vpiHasDataVC, vpiHasVC, vpiHasNoValue, and vpiBelong.
Get a value.vpi_get_value()Use traverse handle as argument to get value where handle points.
Get time traverse (collection) handle points at.vpi_get_time()Use traverse (collection) handle as argument to get current time where handle points. Also, get the traverse handle min, max, previous VC time, or next VC time.
Free traverse handle
Free (traverse) collection handle.
vpi_free_object()Use traverse handle as argument
Use (traverse) collection handle as argument.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文