qshinoの日記

Powershell関係と徒然なこと

vcs vpdfiles

vcs vpdfile control

dedign_1がvpd出力モジュール・インスタンス、ネットやレジ指定も可能。但し、階層指定も必要?

`ifdef comppostprocess
initial
  if ($test$plusargs("runpostprocess"))
  begin
    $vcdpluson(0,design_1);
    $vcdplustraceon(design_1);
    $vcsplusdeltacycleon;
    $vcdplusglitchon; 
  end
`endif

コンパイル

vcs +define+comppostprocess

実行時

simv +runpostprocess

vpdfile指定

simv +vpdfile+xx

vpd 採取停止

simv +vpdignore

ソース

vpd

  • $vcdpluson(level, instance or net or reg) level=0 represents all
  • $vcdplusfile(xx)

for vcd

  • $dumpfile(xx)
  • $dumpchange(xx)

コンパイル

+vpdfile+xx

実行時

+vpdfile+xx

優先順位は不明。

希望の優先順位は、

  1. 実行時、simv option
  2. コンパイル時、vcs
  3. ソース

コンパイル時指定の優先順位は未確定

vcd対象信号指定

$dumpvars(level, instance or net or reg)

不明。module指定は、ソースにあるが、その他は不明。

save and restote

$save

$restore

参考

vcd option

VCD Files
-vcd filename
Set name of $dumpvars output file to filename.The default 
filename is verilog.dump. A $dumpfile system task in the Verilog 
source code will override this option.
+vcs+dumpoff+t+ht
Turn off value change dumping ($dumpvars) at time t. ht is the 
high 32 bits of a time value greater than 32 bits.
+vcs+dumpon+t+ht
Suppress $dumpvars system task until time t. ht is the high 32 
bits of a time value greater than 32 bits.
+vcs+dumpvarsoff
Suppress $dumpvars system tasks.
+vcs+dumparrays
Enables recording memory and multi-dimensional array values in 
the VCD file. You must also have used the +memcbk compile-
time option.

from

vcs user guide