返回介绍

29.2.2.5 $coverage_save

发布于 2020-09-09 22:56:01 字数 1228 浏览 837 评论 0 收藏 0

$coverage_save(coverage_type, "name")

This function saves the current state of coverage to the tool’s coverage database and associates it with the given name. This name will be mapped in an implementation-specific way into some file or set of files in the coverage database. Data saved to the database shall be retrieved later by using $coverage_merge and supplying the same name. Saving coverage shall not have any effect on the state of coverage in this simulation.

The return values from this function are:

‘SV_COV_OK
the coverage data was successfully saved.

‘SV_COV_NOCOV
no such coverage is available in this design (nothing was saved).

‘SV_COV_ERROR
some error occurred during the save. If an error occurs, the tool shall automatically
remove the coverage database entry for name to preserve the coverage database
integrity. It is not an error to overwrite a previously existing name.

NOTES

  1. The coverage database format is implementation-dependent.
  2. Mapping of names to actual directories/files is implementation-dependent. There is no requirement that a coverage name map to any specific set of files or directories.

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

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

发布评论

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