mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-09-01 10:16:40 +02:00
Writing parameters into VCD files makes the values available to waveform tools. This can be done easily enough by writing out a $dumpadd section at the beginning of the file that sets the parameter values. We don't need to track the values over change, because by definition they do not change. This changes the typical vcd output as well, so a few of the regression tests need to be adjusted to account for this. Also, while tracking this down, found and fixed the vvp/README.txt documention for the .param/x records.
33 lines
440 B
Plaintext
33 lines
440 B
Plaintext
$date
|
|
Sun May 15 18:09:10 2022
|
|
$end
|
|
$version
|
|
Icarus Verilog
|
|
$end
|
|
$timescale
|
|
1s
|
|
$end
|
|
$scope module top $end
|
|
$var reg 8 ! \array[0] [7:0] $end
|
|
$upscope $end
|
|
$scope module top $end
|
|
$var reg 8 " \array[1] [7:0] $end
|
|
$upscope $end
|
|
$scope module top $end
|
|
$var reg 8 # \array[2] [7:0] $end
|
|
$upscope $end
|
|
$enddefinitions $end
|
|
$comment Show the parameter values. $end
|
|
$dumpall
|
|
$end
|
|
#0
|
|
$dumpvars
|
|
bx #
|
|
bx "
|
|
bx !
|
|
$end
|
|
#1
|
|
b1010101 #
|
|
b0 "
|
|
b11111111 !
|