返回介绍

第二十四章 VCD数据

发布于 2020-09-09 22:55:57 字数 2241 浏览 942 评论 0 收藏 0

SystemVerilog并没有扩展VCD格式。某些SystemVerilog数据类型能够通过伪装成一个Verilog数据类型被转储到一个标准的VCD文件。下面的表格列出了基本的SystemVerilog数据类型以及在VCD转储中与Verilog数据类型的映射。

表格24-1:VCD类型映射

SystemVerilogVerilogSize
bitregSize of packed dimension
logicregSize of packed dimension
intinteger32
shortintinteger16
longintinteger64
shortrealreal
bytereg8
enuminteger32

Packed arrays and structures are dumped as a single vector of reg. Multiple packed array dimensions are collapsed into a single dimension.

If an enum declaration specified a type, it is dumped as that type rather than the default shown above.

Unpacked structures appear as named fork...join blocks, and their member elements of the structure appear as the types above. Since named fork...join blocks with variable declarations are seldom used in testbenches and hardware models, this makes structures easy to distinguish from variables declared in begin...end blocks, which are more frequently used in testbenches and models.

As in Verilog 2001, unpacked arrays and automatic variables are not dumped.

Note that the current VCD format does not indicate whether a variable has been declared as signed or unsigned.

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

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

发布评论

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