mirror of
https://github.com/verilator/verilator.git
synced 2025-01-05 22:27:35 +00:00
95c4ade718
This patch adds some abstract enums to pass to the trace decl* APIs, so the VCD/FST specific code can be kept in verilated_{vcd,fst}_*.cc, and removed from V3Emit*. It also reworks the generation of the trace init functions (those that call 'decl*' for the signals) such that the scope hierarchy is traversed precisely once during initialization, which simplifies the FST writer. This later change also has the side effect of fixing tracing of nested interfaces when traced via an interface reference - see the change in the expected t_interface_ref_trace - which previously were missed.
111 lines
2.0 KiB
Plaintext
111 lines
2.0 KiB
Plaintext
$version Generated by VerilatedVcd $end
|
|
$timescale 1ps $end
|
|
|
|
$scope module top $end
|
|
$var wire 1 ) clk $end
|
|
$scope module t $end
|
|
$var wire 1 ) clk $end
|
|
$var wire 1 # toggle $end
|
|
$var wire 32 $ cyc [31:0] $end
|
|
$scope module suba $end
|
|
$var wire 1 ) clk $end
|
|
$var wire 1 # toggle $end
|
|
$var wire 32 % cyc [31:0] $end
|
|
$var wire 32 & cyc_eq_5_vlCoverageUserTrace [31:0] $end
|
|
$upscope $end
|
|
$scope module subb $end
|
|
$var wire 1 ) clk $end
|
|
$var wire 1 # toggle $end
|
|
$var wire 32 % cyc [31:0] $end
|
|
$var wire 32 ' cyc_eq_5_vlCoverageUserTrace [31:0] $end
|
|
$upscope $end
|
|
$scope module subc $end
|
|
$var wire 1 ) clk $end
|
|
$var wire 1 # toggle $end
|
|
$var wire 32 % cyc [31:0] $end
|
|
$var wire 32 ( cyc_eq_5_vlCoverageUserTrace [31:0] $end
|
|
$upscope $end
|
|
$upscope $end
|
|
$upscope $end
|
|
$enddefinitions $end
|
|
|
|
|
|
#0
|
|
0#
|
|
b00000000000000000000000000000001 $
|
|
b00000000000000000000000000000001 %
|
|
b00000000000000000000000000000000 &
|
|
b00000000000000000000000000000000 '
|
|
b00000000000000000000000000000000 (
|
|
0)
|
|
#10
|
|
b00000000000000000000000000000010 $
|
|
b00000000000000000000000000000010 %
|
|
1)
|
|
#15
|
|
0)
|
|
#20
|
|
1#
|
|
b00000000000000000000000000000011 $
|
|
b00000000000000000000000000000011 %
|
|
1)
|
|
#25
|
|
0)
|
|
#30
|
|
0#
|
|
b00000000000000000000000000000100 $
|
|
b00000000000000000000000000000100 %
|
|
1)
|
|
#35
|
|
0)
|
|
#40
|
|
1#
|
|
b00000000000000000000000000000101 $
|
|
b00000000000000000000000000000101 %
|
|
1)
|
|
#45
|
|
0)
|
|
#50
|
|
0#
|
|
b00000000000000000000000000000110 $
|
|
b00000000000000000000000000000110 %
|
|
b00000000000000000000000000000001 &
|
|
b00000000000000000000000000000001 '
|
|
b00000000000000000000000000000001 (
|
|
1)
|
|
#55
|
|
0)
|
|
#60
|
|
1#
|
|
b00000000000000000000000000000111 $
|
|
b00000000000000000000000000000111 %
|
|
1)
|
|
#65
|
|
0)
|
|
#70
|
|
0#
|
|
b00000000000000000000000000001000 $
|
|
b00000000000000000000000000001000 %
|
|
1)
|
|
#75
|
|
0)
|
|
#80
|
|
1#
|
|
b00000000000000000000000000001001 $
|
|
b00000000000000000000000000001001 %
|
|
1)
|
|
#85
|
|
0)
|
|
#90
|
|
0#
|
|
b00000000000000000000000000001010 $
|
|
b00000000000000000000000000001010 %
|
|
1)
|
|
#95
|
|
0)
|
|
#100
|
|
1#
|
|
b00000000000000000000000000001011 $
|
|
b00000000000000000000000000001011 %
|
|
1)
|