mirror of
https://github.com/verilator/verilator.git
synced 2025-01-20 21:34:04 +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.
489 lines
5.0 KiB
Plaintext
489 lines
5.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 32 $ cyc [31:0] $end
|
|
$upscope $end
|
|
$upscope $end
|
|
$enddefinitions $end
|
|
|
|
|
|
#0
|
|
1#
|
|
b00000000000000000000000000000000 $
|
|
#1
|
|
0#
|
|
#2
|
|
1#
|
|
b00000000000000000000000000000001 $
|
|
#3
|
|
0#
|
|
#4
|
|
1#
|
|
b00000000000000000000000000000010 $
|
|
#5
|
|
0#
|
|
#6
|
|
1#
|
|
b00000000000000000000000000000011 $
|
|
#7
|
|
0#
|
|
#8
|
|
1#
|
|
b00000000000000000000000000000100 $
|
|
#9
|
|
0#
|
|
#10
|
|
1#
|
|
b00000000000000000000000000000101 $
|
|
#11
|
|
0#
|
|
#12
|
|
1#
|
|
b00000000000000000000000000000110 $
|
|
#13
|
|
0#
|
|
#14
|
|
1#
|
|
b00000000000000000000000000000111 $
|
|
#15
|
|
0#
|
|
#16
|
|
1#
|
|
b00000000000000000000000000001000 $
|
|
#17
|
|
0#
|
|
#18
|
|
1#
|
|
b00000000000000000000000000001001 $
|
|
#19
|
|
0#
|
|
#20
|
|
1#
|
|
b00000000000000000000000000001010 $
|
|
#21
|
|
0#
|
|
#22
|
|
1#
|
|
b00000000000000000000000000001011 $
|
|
#23
|
|
0#
|
|
#24
|
|
1#
|
|
b00000000000000000000000000001100 $
|
|
#25
|
|
0#
|
|
#26
|
|
1#
|
|
b00000000000000000000000000001101 $
|
|
#27
|
|
0#
|
|
#28
|
|
1#
|
|
b00000000000000000000000000001110 $
|
|
#29
|
|
0#
|
|
#30
|
|
1#
|
|
b00000000000000000000000000001111 $
|
|
#31
|
|
0#
|
|
#32
|
|
1#
|
|
b00000000000000000000000000010000 $
|
|
#33
|
|
0#
|
|
#34
|
|
1#
|
|
b00000000000000000000000000010001 $
|
|
#35
|
|
0#
|
|
#36
|
|
1#
|
|
b00000000000000000000000000010010 $
|
|
#37
|
|
0#
|
|
#38
|
|
1#
|
|
b00000000000000000000000000010011 $
|
|
#39
|
|
0#
|
|
#40
|
|
1#
|
|
b00000000000000000000000000010100 $
|
|
#41
|
|
0#
|
|
#42
|
|
1#
|
|
b00000000000000000000000000010101 $
|
|
#43
|
|
0#
|
|
#44
|
|
1#
|
|
b00000000000000000000000000010110 $
|
|
#45
|
|
0#
|
|
#46
|
|
1#
|
|
b00000000000000000000000000010111 $
|
|
#47
|
|
0#
|
|
#48
|
|
1#
|
|
b00000000000000000000000000011000 $
|
|
#49
|
|
0#
|
|
#50
|
|
1#
|
|
b00000000000000000000000000011001 $
|
|
#51
|
|
0#
|
|
#52
|
|
1#
|
|
b00000000000000000000000000011010 $
|
|
#53
|
|
0#
|
|
#54
|
|
1#
|
|
b00000000000000000000000000011011 $
|
|
#55
|
|
0#
|
|
#56
|
|
1#
|
|
b00000000000000000000000000011100 $
|
|
#57
|
|
0#
|
|
#58
|
|
1#
|
|
b00000000000000000000000000011101 $
|
|
#59
|
|
0#
|
|
#60
|
|
1#
|
|
b00000000000000000000000000011110 $
|
|
#61
|
|
0#
|
|
#62
|
|
1#
|
|
b00000000000000000000000000011111 $
|
|
#63
|
|
0#
|
|
#64
|
|
1#
|
|
b00000000000000000000000000100000 $
|
|
#65
|
|
0#
|
|
#66
|
|
1#
|
|
b00000000000000000000000000100001 $
|
|
#67
|
|
0#
|
|
#68
|
|
1#
|
|
b00000000000000000000000000100010 $
|
|
#69
|
|
0#
|
|
#70
|
|
1#
|
|
b00000000000000000000000000100011 $
|
|
#71
|
|
0#
|
|
#72
|
|
1#
|
|
b00000000000000000000000000100100 $
|
|
#73
|
|
0#
|
|
#74
|
|
1#
|
|
b00000000000000000000000000100101 $
|
|
#75
|
|
0#
|
|
#76
|
|
1#
|
|
b00000000000000000000000000100110 $
|
|
#77
|
|
0#
|
|
#78
|
|
1#
|
|
b00000000000000000000000000100111 $
|
|
#79
|
|
0#
|
|
#80
|
|
1#
|
|
b00000000000000000000000000101000 $
|
|
#81
|
|
0#
|
|
#82
|
|
1#
|
|
b00000000000000000000000000101001 $
|
|
#83
|
|
0#
|
|
#84
|
|
1#
|
|
b00000000000000000000000000101010 $
|
|
#85
|
|
0#
|
|
#86
|
|
1#
|
|
b00000000000000000000000000101011 $
|
|
#87
|
|
0#
|
|
#88
|
|
1#
|
|
b00000000000000000000000000101100 $
|
|
#89
|
|
0#
|
|
#90
|
|
1#
|
|
b00000000000000000000000000101101 $
|
|
#91
|
|
0#
|
|
#92
|
|
1#
|
|
b00000000000000000000000000101110 $
|
|
#93
|
|
0#
|
|
#94
|
|
1#
|
|
b00000000000000000000000000101111 $
|
|
#95
|
|
0#
|
|
#96
|
|
1#
|
|
b00000000000000000000000000110000 $
|
|
#97
|
|
0#
|
|
#98
|
|
1#
|
|
b00000000000000000000000000110001 $
|
|
#99
|
|
0#
|
|
#100
|
|
1#
|
|
b00000000000000000000000000110010 $
|
|
#101
|
|
0#
|
|
#102
|
|
1#
|
|
b00000000000000000000000000110011 $
|
|
#103
|
|
0#
|
|
#104
|
|
1#
|
|
b00000000000000000000000000110100 $
|
|
#105
|
|
0#
|
|
#106
|
|
1#
|
|
b00000000000000000000000000110101 $
|
|
#107
|
|
0#
|
|
#108
|
|
1#
|
|
b00000000000000000000000000110110 $
|
|
#109
|
|
0#
|
|
#110
|
|
1#
|
|
b00000000000000000000000000110111 $
|
|
#111
|
|
0#
|
|
#112
|
|
1#
|
|
b00000000000000000000000000111000 $
|
|
#113
|
|
0#
|
|
#114
|
|
1#
|
|
b00000000000000000000000000111001 $
|
|
#115
|
|
0#
|
|
#116
|
|
1#
|
|
b00000000000000000000000000111010 $
|
|
#117
|
|
0#
|
|
#118
|
|
1#
|
|
b00000000000000000000000000111011 $
|
|
#119
|
|
0#
|
|
#120
|
|
1#
|
|
b00000000000000000000000000111100 $
|
|
#121
|
|
0#
|
|
#122
|
|
1#
|
|
b00000000000000000000000000111101 $
|
|
#123
|
|
0#
|
|
#124
|
|
1#
|
|
b00000000000000000000000000111110 $
|
|
#125
|
|
0#
|
|
#126
|
|
1#
|
|
b00000000000000000000000000111111 $
|
|
#127
|
|
0#
|
|
#128
|
|
1#
|
|
b00000000000000000000000001000000 $
|
|
#129
|
|
0#
|
|
#130
|
|
1#
|
|
b00000000000000000000000001000001 $
|
|
#131
|
|
0#
|
|
#132
|
|
1#
|
|
b00000000000000000000000001000010 $
|
|
#133
|
|
0#
|
|
#134
|
|
1#
|
|
b00000000000000000000000001000011 $
|
|
#135
|
|
0#
|
|
#136
|
|
1#
|
|
b00000000000000000000000001000100 $
|
|
#137
|
|
0#
|
|
#138
|
|
1#
|
|
b00000000000000000000000001000101 $
|
|
#139
|
|
0#
|
|
#140
|
|
1#
|
|
b00000000000000000000000001000110 $
|
|
#141
|
|
0#
|
|
#142
|
|
1#
|
|
b00000000000000000000000001000111 $
|
|
#143
|
|
0#
|
|
#144
|
|
1#
|
|
b00000000000000000000000001001000 $
|
|
#145
|
|
0#
|
|
#146
|
|
1#
|
|
b00000000000000000000000001001001 $
|
|
#147
|
|
0#
|
|
#148
|
|
1#
|
|
b00000000000000000000000001001010 $
|
|
#149
|
|
0#
|
|
#150
|
|
1#
|
|
b00000000000000000000000001001011 $
|
|
#151
|
|
0#
|
|
#152
|
|
1#
|
|
b00000000000000000000000001001100 $
|
|
#153
|
|
0#
|
|
#154
|
|
1#
|
|
b00000000000000000000000001001101 $
|
|
#155
|
|
0#
|
|
#156
|
|
1#
|
|
b00000000000000000000000001001110 $
|
|
#157
|
|
0#
|
|
#158
|
|
1#
|
|
b00000000000000000000000001001111 $
|
|
#159
|
|
0#
|
|
#160
|
|
1#
|
|
b00000000000000000000000001010000 $
|
|
#161
|
|
0#
|
|
#162
|
|
1#
|
|
b00000000000000000000000001010001 $
|
|
#163
|
|
0#
|
|
#164
|
|
1#
|
|
b00000000000000000000000001010010 $
|
|
#165
|
|
0#
|
|
#166
|
|
1#
|
|
b00000000000000000000000001010011 $
|
|
#167
|
|
0#
|
|
#168
|
|
1#
|
|
b00000000000000000000000001010100 $
|
|
#169
|
|
0#
|
|
#170
|
|
1#
|
|
b00000000000000000000000001010101 $
|
|
#171
|
|
0#
|
|
#172
|
|
1#
|
|
b00000000000000000000000001010110 $
|
|
#173
|
|
0#
|
|
#174
|
|
1#
|
|
b00000000000000000000000001010111 $
|
|
#175
|
|
0#
|
|
#176
|
|
1#
|
|
b00000000000000000000000001011000 $
|
|
#177
|
|
0#
|
|
#178
|
|
1#
|
|
b00000000000000000000000001011001 $
|
|
#179
|
|
0#
|
|
#180
|
|
1#
|
|
b00000000000000000000000001011010 $
|
|
#181
|
|
0#
|
|
#182
|
|
1#
|
|
b00000000000000000000000001011011 $
|
|
#183
|
|
0#
|
|
#184
|
|
1#
|
|
b00000000000000000000000001011100 $
|
|
#185
|
|
0#
|
|
#186
|
|
1#
|
|
b00000000000000000000000001011101 $
|
|
#187
|
|
0#
|
|
#188
|
|
1#
|
|
b00000000000000000000000001011110 $
|
|
#189
|
|
0#
|