Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Question about VCD content

Status
Not open for further replies.

ruwan2

Member level 5
Joined
Nov 29, 2011
Messages
90
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
2,141
Hello,

I wrote some Verilog code a long time ago. Now I get some VCD code as below. I find some lines cannot be understood, such as:


Code dot - [expand]
1
2
3
4
5
6
7
8
9
10
$dumpvars
xaaaaa
xaaaab
xaaaac
xaaaad
$end
 
 
#1
1aaaaa




I guess that the above question could be resulted from below:

$var wire 1 aaaaa A $end

Does it say a 5-bit signal?
'x' at the beginning means undetermined value?

Can you explain it to me above?

Thanks,



-----------------

Code dot - [expand]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
$date
     Dec 24, 2016       16:54:43
$end
 
$version
 SystemC 2.3.1-Accellera --- Dec 22 2016 15:46:30
$end
 
$timescale
     1 ps
$end
 
$scope module SystemC $end
$var wire    1  aaaaa  A       $end
$var wire    1  aaaab  B       $end
$var wire    1  aaaac  C       $end
$var wire    1  aaaad  D       $end
$upscope $end
$enddefinitions  $end
 
$comment
All initial values are dumped below at time 0 sec = 0 timescale units.
$end
 
$dumpvars
xaaaaa
xaaaab
xaaaac
xaaaad
$end
 
#0
0aaaaa
1aaaab
0aaaac
1aaaad
 
#1
1aaaaa
 
#2
0aaaaa
0aaaab
1aaaac
0aaaad
 
#3
1aaaaa

 
Last edited by a moderator:

The format of VCD files is explained in section 21.7 of the
Code:
$var [ var_type size identifier_code reference ] $end
So you have a wire, that is 1-bit, using the reference code aaaaa, for the signal A.
xaaaaa means the signal A has the value x
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top