forked from fvutils/pyucis
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_coverage_example.xml
More file actions
169 lines (155 loc) · 6.31 KB
/
test_coverage_example.xml
File metadata and controls
169 lines (155 loc) · 6.31 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<?xml version="1.0" encoding="UTF-8"?>
<UCIS xmlns:ucis="http://www.w3.org/2001/XMLSchema-instance" writtenBy="TestUser" writtenTime="2025-12-06T16:43:45" ucisVersion="1.0">
<sourceFiles fileName="test_design.sv" id="1"/>
<historyNodes historyNodeId="0" logicalName="test_run" physicalName="test_run" kind="test" testStatus="true" simtime="1000" timeunit="1" runCwd="/work" cpuTime="100" seed="12345" cmd="vsim" args="-coverage" date="2025-12-06T16:43:45" userName="TestUser" toolCategory="simulator" ucisVersion="1.0" vendorId="test" vendorTool="PyUCIS" vendorToolVersion="1.0"/>
<instanceCoverages name="top" key="0">
<id file="1" line="1" inlineCount="1"/>
<covergroupCoverage>
<!-- Covergroup 1: Transaction Monitor with partial coverage -->
<cgInstance name="transaction_cg" key="0">
<options/>
<cgId cgName="transaction_cg" moduleName="transaction_monitor">
<cginstSourceId file="1" line="10" inlineCount="1"/>
<cgSourceId file="1" line="10" inlineCount="1"/>
</cgId>
<!-- Coverpoint: Address with some uncovered bins -->
<coverpoint name="cp_addr" key="0">
<options/>
<coverpointBin name="addr_low" type="bins" key="0">
<range from="-1" to="-1">
<contents coverageCount="45"/>
</range>
</coverpointBin>
<coverpointBin name="addr_mid" type="bins" key="1">
<range from="-1" to="-1">
<contents coverageCount="0"/>
</range>
</coverpointBin>
<coverpointBin name="addr_high" type="bins" key="2">
<range from="-1" to="-1">
<contents coverageCount="12"/>
</range>
</coverpointBin>
</coverpoint>
<!-- Coverpoint: Command with all bins covered -->
<coverpoint name="cp_cmd" key="1">
<options/>
<coverpointBin name="READ" type="bins" key="0">
<range from="-1" to="-1">
<contents coverageCount="25"/>
</range>
</coverpointBin>
<coverpointBin name="WRITE" type="bins" key="1">
<range from="-1" to="-1">
<contents coverageCount="30"/>
</range>
</coverpointBin>
</coverpoint>
<!-- Coverpoint: Priority with mostly uncovered bins -->
<coverpoint name="cp_priority" key="2">
<options/>
<coverpointBin name="LOW" type="bins" key="0">
<range from="-1" to="-1">
<contents coverageCount="0"/>
</range>
</coverpointBin>
<coverpointBin name="MEDIUM" type="bins" key="1">
<range from="-1" to="-1">
<contents coverageCount="5"/>
</range>
</coverpointBin>
<coverpointBin name="HIGH" type="bins" key="2">
<range from="-1" to="-1">
<contents coverageCount="0"/>
</range>
</coverpointBin>
<coverpointBin name="CRITICAL" type="bins" key="3">
<range from="-1" to="-1">
<contents coverageCount="0"/>
</range>
</coverpointBin>
</coverpoint>
</cgInstance>
<!-- Covergroup 2: Protocol Checker with uncovered bins -->
<cgInstance name="protocol_cg" key="1">
<options/>
<cgId cgName="protocol_cg" moduleName="protocol_checker">
<cginstSourceId file="1" line="50" inlineCount="1"/>
<cgSourceId file="1" line="50" inlineCount="1"/>
</cgId>
<coverpoint name="cp_state" key="0">
<options/>
<coverpointBin name="IDLE" type="bins" key="0">
<range from="-1" to="-1">
<contents coverageCount="100"/>
</range>
</coverpointBin>
<coverpointBin name="ACTIVE" type="bins" key="1">
<range from="-1" to="-1">
<contents coverageCount="50"/>
</range>
</coverpointBin>
<coverpointBin name="ERROR" type="bins" key="2">
<range from="-1" to="-1">
<contents coverageCount="0"/>
</range>
</coverpointBin>
<coverpointBin name="RESET" type="bins" key="3">
<range from="-1" to="-1">
<contents coverageCount="0"/>
</range>
</coverpointBin>
</coverpoint>
<coverpoint name="cp_handshake" key="1">
<options/>
<coverpointBin name="REQ_ACK" type="bins" key="0">
<range from="-1" to="-1">
<contents coverageCount="30"/>
</range>
</coverpointBin>
<coverpointBin name="REQ_NACK" type="bins" key="1">
<range from="-1" to="-1">
<contents coverageCount="0"/>
</range>
</coverpointBin>
<coverpointBin name="TIMEOUT" type="bins" key="2">
<range from="-1" to="-1">
<contents coverageCount="0"/>
</range>
</coverpointBin>
</coverpoint>
</cgInstance>
<!-- Covergroup 3: Data Path with mixed coverage -->
<cgInstance name="datapath_cg" key="2">
<options/>
<cgId cgName="datapath_cg" moduleName="datapath">
<cginstSourceId file="1" line="100" inlineCount="1"/>
<cgSourceId file="1" line="100" inlineCount="1"/>
</cgId>
<coverpoint name="cp_data_size" key="0">
<options/>
<coverpointBin name="BYTE" type="bins" key="0">
<range from="-1" to="-1">
<contents coverageCount="50"/>
</range>
</coverpointBin>
<coverpointBin name="WORD" type="bins" key="1">
<range from="-1" to="-1">
<contents coverageCount="40"/>
</range>
</coverpointBin>
<coverpointBin name="DWORD" type="bins" key="2">
<range from="-1" to="-1">
<contents coverageCount="0"/>
</range>
</coverpointBin>
<coverpointBin name="QWORD" type="bins" key="3">
<range from="-1" to="-1">
<contents coverageCount="0"/>
</range>
</coverpointBin>
</coverpoint>
</cgInstance>
</covergroupCoverage>
</instanceCoverages>
</UCIS>