返回介绍

30.8 Reading data

发布于 2020-09-09 22:56:03 字数 1318 浏览 824 评论 0 收藏 0

Reading data is performed in 3 steps:

  1. A design object must be selected for traverse access from a database (or from memory).
  2. Indicate the intent to access data. This is typically done by a vpi_load_init() call as a hint from the user to the tool on which areas of the design are going to be accessed. The tool shall then load the data in an invisible fashion to the user (for example, either right after the call, or at traverse handle creation, or usage). Alternatively, if the user wishes he can (also) choose to add a specific vpi_load() call (this can be done at any point in time) to load, or force the load of, a specific object or collection of objects. This can be done either instead of, or in addition to, the objects in the scope or collection specified in vpi_load_init()). vpi_unload() can be used by the user to force the tool to unload specific objects. It should be noted that traverse handle creation shall fail for unloaded objects or collections.
  3. Once an object is selected, and marked for load, a traverse object handle can be created and used to traverse the design objects’ stored data.
  4. At this point the object is available for reading. The traverse object permits the data value traversal and access.

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

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

发布评论

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