Skip to content

Commit dce0a90

Browse files
author
phase1geo
committed
Integrating fix for bug 3054545.
1 parent 3a0448b commit dce0a90

17 files changed

+997
-4
lines changed

diags/cdd/exclude15.cdd

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
5 18 1fd81 3 4 ffffffff *
2+
8 /Users/trevorw/projects/covered/diags/verilog 2 -t (main) 2 -vcd (exclude15a.vcd) 2 -y (lib) 2 -o (exclude15a.cdd) 2 -v (exclude15a.v) 2 -D (DUMP) 2 -v (exclude15b.v)
3+
12 /Users/trevorw/projects/covered/diags/verilog/exclude15a.cdd *
4+
12 /Users/trevorw/projects/covered/diags/verilog/exclude15b.cdd *
5+
3 0 $root "$root" 0 NA 0 0 1
6+
3 0 main "main" 0 exclude15a.v 8 26 1
7+
1 a 1 10 70005 1 0 0 0 1 17 0 1 0 0 0 0
8+
1 b 2 10 70008 1 0 0 0 1 17 0 1 0 0 0 0
9+
1 z 3 11 60005 1 0 0 0 1 17 1 1 0 0 0 0
10+
3 0 dut_and "main.d" 0 lib/dut_and.v 1 9 1
11+
2 1 7 7 7 f000f 1 1 100c 0 0 1 1 c
12+
2 2 7 7 7 b000b 1 1 1004 0 0 1 1 b
13+
2 3 7 7 7 b000f 1 8 3184 1 2 1 18 0 1 1 1 0 0
14+
2 4 7 7 7 70007 0 1 1410 0 0 1 1 a
15+
2 5 7 7 7 7000f 2 35 6 3 4
16+
1 a 4 3 20008 1 0 0 0 1 17 1 1 0 0 0 0
17+
1 b 5 4 8 1 0 0 0 1 17 1 1 0 0 0 0
18+
1 c 6 5 8 1 0 0 0 1 17 1 1 0 0 0 0
19+
4 5 f 5 5 5
20+
13 E 3 1282938174 This line is not needed
21+
3 1 main.u$0 "main.u$0" 0 exclude15a.v 15 24 1

diags/cdd/exclude15a.cdd

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
5 18 1fd81 3 4 ffffffff *
2+
8 /Users/trevorw/projects/covered/diags/verilog 2 -t (main) 2 -vcd (exclude15a.vcd) 2 -y (lib) 2 -o (exclude15a.cdd) 2 -v (exclude15a.v) 2 -D (DUMP)
3+
3 0 $root "$root" 0 NA 0 0 1
4+
3 0 main "main" 0 exclude15a.v 8 26 1
5+
1 a 1 10 70005 1 0 0 0 1 17 0 1 0 0 0 0
6+
1 b 2 10 70008 1 0 0 0 1 17 0 1 0 0 0 0
7+
1 z 3 11 60005 1 0 0 0 1 17 1 1 0 0 0 0
8+
3 0 dut_and "main.d" 0 lib/dut_and.v 1 9 1
9+
2 1 7 7 7 f000f 1 1 1004 0 0 1 1 c
10+
2 2 7 7 7 b000b 1 1 1004 0 0 1 1 b
11+
2 3 7 7 7 b000f 1 8 1184 1 2 1 18 0 1 1 1 0 0
12+
2 4 7 7 7 70007 0 1 1410 0 0 1 1 a
13+
2 5 7 7 7 7000f 2 35 6 3 4
14+
1 a 4 3 20008 1 0 0 0 1 17 1 1 0 0 0 0
15+
1 b 5 4 8 1 0 0 0 1 17 1 1 0 0 0 0
16+
1 c 6 5 8 1 0 0 0 1 17 1 1 0 0 0 0
17+
4 5 f 5 5 5
18+
3 1 main.u$0 "main.u$0" 0 exclude15a.v 15 24 1

diags/cdd/exclude15b.cdd

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
5 18 1fd81 3 4 ffffffff *
2+
8 /Users/trevorw/projects/covered/diags/verilog 2 -t (main) 2 -vcd (exclude15b.vcd) 2 -y (lib) 2 -o (exclude15b.cdd) 2 -v (exclude15b.v) 2 -D (DUMP)
3+
3 0 $root "$root" 0 NA 0 0 1
4+
3 0 main "main" 0 exclude15b.v 8 26 1
5+
1 a 1 10 70005 1 0 0 0 1 17 0 1 0 0 0 0
6+
1 b 2 10 70008 1 0 0 0 1 17 0 1 0 0 0 0
7+
1 z 3 11 60005 1 0 0 0 1 17 1 1 0 0 0 0
8+
3 0 dut_and "main.d" 0 lib/dut_and.v 1 9 1
9+
2 1 7 7 7 f000f 1 1 1008 0 0 1 1 c
10+
2 2 7 7 7 b000b 1 1 1004 0 0 1 1 b
11+
2 3 7 7 7 b000f 1 8 1084 1 2 1 18 0 1 1 0 0 0
12+
2 4 7 7 7 70007 0 1 1410 0 0 1 1 a
13+
2 5 7 7 7 7000f 2 35 6 3 4
14+
1 a 4 3 20008 1 0 0 0 1 17 1 1 0 0 0 0
15+
1 b 5 4 8 1 0 0 0 1 17 1 1 0 0 0 0
16+
1 c 6 5 8 1 0 0 0 1 17 1 1 0 0 0 0
17+
4 5 f 5 5 5
18+
3 1 main.u$0 "main.u$0" 0 exclude15b.v 15 24 1

diags/regress/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ DIAGS1 = add1 aedge1 aedge1.1 afunc1
7878
exclude9.8 exclude9.9 exclude10 exclude10.1 exclude10.2 \
7979
exclude10.3 exclude10.3.1 exclude10.3.2 exclude10.3.3 exclude10.4 \
8080
exclude10.5 exclude11 exclude12 exclude12.1 exclude12.2 \
81-
exclude12.3 exclude12.4 exclude12.5 exclude12.6 \
82-
exclude13 exclude14 expand1 expand2 expand3 \
81+
exclude12.3 exclude12.4 exclude12.5 exclude12.6 exclude13 \
82+
exclude14 exclude15 expand1 expand2 expand3 \
8383
expand4 expand4.1 expand4.2 expand4.3 expand4.4 \
8484
expand6 expand6.1 expand6.2 expand6.3 exponent1 \
8585
final1 fdisplay1 finish1 fmonitor1 \

diags/regress/exclude15.cfg

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-m E03 exclude15.cdd

diags/regress/exclude15.pl

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Name: exclude15.pl
2+
# Author: Trevor Williams (phase1geo@gmail.com)
3+
# Date: 09/18/2008
4+
# Purpose: Verify a merge followed by an exlusion works properly.
5+
6+
require "../verilog/regress_subs.pl";
7+
8+
# Initialize the diagnostic environment
9+
&initialize( "exclude15", 0, @ARGV );
10+
11+
# Run both of the CDDs to be merged
12+
system( "$MAKE DIAG=exclude15a onemergerun" ) && die;
13+
system( "$MAKE DIAG=exclude15b onemergerun" ) && die;
14+
15+
# Now perform merge command
16+
&runMergeCommand( "-o exclude15.cdd exclude15a.cdd exclude15b.cdd" );
17+
18+
# Create temporary file that will contain an exclusion message
19+
&runCommand( "echo This line is not needed > exclude15.excl" );
20+
21+
# Perform exclusion
22+
&runExcludeCommand( "-f ../regress/exclude15.cfg < exclude15.excl" );
23+
24+
# Remove temporary exclusion reason file
25+
system( "rm -f exclude15.excl" ) && die;
26+
27+
# Generate reports
28+
&runReportCommand( "-d v -e -x -o exclude15.rptM exclude15.cdd" );
29+
&runReportCommand( "-d v -e -x -i -o exclude15.rptI exclude15.cdd" );
30+
31+
# Perform the file comparison checks
32+
&checkTest( "exclude15", 3, 0 );
33+
34+
exit 0;
35+

diags/regress/exclude15a.cfg

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-t main -vcd exclude15a.vcd -y lib -o exclude15a.cdd -v exclude15a.v

diags/regress/exclude15b.cfg

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-t main -vcd exclude15b.vcd -y lib -o exclude15b.cdd -v exclude15b.v

diags/rpt/exclude15.rptI

+125
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
::::::::::::::::::::::::::::::::::::::::::::::::::
2+
:: ::
3+
:: Covered -- Verilog Coverage Verbose Report ::
4+
:: ::
5+
::::::::::::::::::::::::::::::::::::::::::::::::::
6+
7+
8+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ GENERAL INFORMATION ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11+
* Report generated from CDD file : exclude15.cdd
12+
13+
* Reported by : Instance
14+
15+
* Report contains exclusion IDs (value within parenthesis preceding verbose output)
16+
17+
* Report generated from CDD file that was merged from the following files:
18+
Filename Leading Hierarchy
19+
-----------------------------------------------------------------------------------------------------------------
20+
exclude15a.cdd *
21+
exclude15b.cdd *
22+
23+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LINE COVERAGE RESULTS ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
25+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
26+
Instance Hit/ Miss/Total Percent hit
27+
---------------------------------------------------------------------------------------------------------------------
28+
$root 0/ 0/ 0 100%
29+
main 0/ 0/ 0 100%
30+
main.d 1/ 0/ 1 100%
31+
---------------------------------------------------------------------------------------------------------------------
32+
Accumulated 1/ 0/ 1 100%
33+
---------------------------------------------------------------------------------------------------------------------
34+
35+
36+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ TOGGLE COVERAGE RESULTS ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
38+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
39+
Toggle 0 -> 1 Toggle 1 -> 0
40+
Instance Hit/ Miss/Total Percent hit Hit/ Miss/Total Percent hit
41+
---------------------------------------------------------------------------------------------------------------------
42+
$root 0/ 0/ 0 100% 0/ 0/ 0 100%
43+
main 0/ 3/ 3 0% 0/ 3/ 3 0%
44+
main.d 0/ 3/ 3 0% 0/ 3/ 3 0%
45+
---------------------------------------------------------------------------------------------------------------------
46+
Accumulated 0/ 6/ 6 0% 0/ 6/ 6 0%
47+
---------------------------------------------------------------------------------------------------------------------
48+
49+
Module: main, File: exclude15a.v, Instance: main
50+
-------------------------------------------------------------------------------------------------------------
51+
Signals not getting 100% toggle coverage
52+
53+
EID Signal Toggle
54+
---------------------------------------------------------------------------------------------------------
55+
(T01) a 0->1: 1'h0
56+
......................... 1->0: 1'h0 ...
57+
(T02) b 0->1: 1'h0
58+
......................... 1->0: 1'h0 ...
59+
(T03) z 0->1: 1'h0
60+
......................... 1->0: 1'h0 ...
61+
62+
63+
Module: dut_and, File: lib/dut_and.v, Instance: main.d
64+
-------------------------------------------------------------------------------------------------------------
65+
Signals not getting 100% toggle coverage
66+
67+
EID Signal Toggle
68+
---------------------------------------------------------------------------------------------------------
69+
(T04) a 0->1: 1'h0
70+
......................... 1->0: 1'h0 ...
71+
(T05) b 0->1: 1'h0
72+
......................... 1->0: 1'h0 ...
73+
(T06) c 0->1: 1'h0
74+
......................... 1->0: 1'h0 ...
75+
76+
77+
78+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
79+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ COMBINATIONAL LOGIC COVERAGE RESULTS ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
80+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
81+
Logic Combinations
82+
Instance Hit/Miss/Total Percent hit
83+
---------------------------------------------------------------------------------------------------------------------
84+
$root 0/ 0/ 0 100%
85+
main 0/ 0/ 0 100%
86+
main.d 3/ 0/ 3 100%
87+
---------------------------------------------------------------------------------------------------------------------
88+
Accumulated 3/ 0/ 3 100%
89+
---------------------------------------------------------------------------------------------------------------------
90+
91+
Module: dut_and, File: lib/dut_and.v, Instance: main.d
92+
-------------------------------------------------------------------------------------------------------------
93+
Excluded Combinations
94+
95+
=========================================================================================================
96+
Line # Expression
97+
=========================================================================================================
98+
7: assign a = b & c
99+
|---1---|
100+
101+
(E03) Expression 1 (2/3)
102+
^^^^^^^^^^^^^ - &
103+
LR | LR | LR
104+
=0-=|=-0=|=11=
105+
*
106+
107+
Reason: This line is not needed
108+
109+
110+
111+
112+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
113+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ FINITE STATE MACHINE COVERAGE RESULTS ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
114+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
115+
State Arc
116+
Instance Hit/Miss/Total Percent hit Hit/Miss/Total Percent hit
117+
---------------------------------------------------------------------------------------------------------------------
118+
$root 0/ 0/ 0 100% 0/ 0/ 0 100%
119+
main 0/ 0/ 0 100% 0/ 0/ 0 100%
120+
main.d 0/ 0/ 0 100% 0/ 0/ 0 100%
121+
---------------------------------------------------------------------------------------------------------------------
122+
Accumulated 0/ 0/ 0 100% 0/ 0/ 0 100%
123+
---------------------------------------------------------------------------------------------------------------------
124+
125+

0 commit comments

Comments
 (0)