在 Modelsim 模拟中转储 vcd 文件

dumping vcd files in Modelsim simulations

我试图在使用 modelsim 进行模拟时转储 vcd 文件,但是,我的 "dumpVCD.vcd" 文件中没有任何内容。我在 .do 文件中使用的语法如下:

vcd file dumpVCD.vcd
vcd add -r /dff_TB/* 

但是 dumpVCD.vcd 文件没有波形。

我已将测试上传到 edaplayground (link)。

如果有人能告诉我这是什么问题,我将不胜感激。

您需要添加运行时优化开关 -voptargs=+acc=npr 以保持信号可见性。我将请求默认启用此功能。