Module Definition
dashboard | hierarchy | modlist | groups | tests | asserts

Module : spid_status
SCORELINECONDTOGGLEFSMBRANCHASSERT
94.99 93.85 100.00 86.11 100.00

Source File(s) :
/workspace/default/sim-vcs/../src/lowrisc_ip_spi_device_0.1/rtl/spid_status.sv

Module self-instances :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
tb.dut.u_spid_status 94.99 93.85 100.00 86.11 100.00



Module Instance : tb.dut.u_spid_status

Instance :
SCORELINECONDTOGGLEFSMBRANCHASSERT
94.99 93.85 100.00 86.11 100.00


Instance's subtree :
SCORELINECONDTOGGLEFSMBRANCHASSERT
95.55 96.95 93.48 91.78 100.00


Parent :
SCORELINECONDTOGGLEFSMBRANCHASSERTNAME
86.03 90.27 78.43 96.94 78.12 86.36 dut


Subtrees :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
u_sck2csb_status 100.00 100.00 100.00
u_stage_to_commit 100.00 100.00 100.00
u_sw_status_update_sync 96.22 100.00 88.00 96.88 100.00


Since this is the module's only instance, the coverage report is the same as for the module.
Line Coverage for Module : spid_status
Line No.TotalCoveredPercent
TOTAL656193.85
CONT_ASSIGN8711100.00
CONT_ASSIGN9011100.00
ALWAYS1586583.33
ALWAYS1698787.50
ALWAYS18244100.00
ALWAYS1947571.43
CONT_ASSIGN21611100.00
CONT_ASSIGN21711100.00
CONT_ASSIGN23211100.00
ALWAYS25533100.00
CONT_ASSIGN26111100.00
ALWAYS29244100.00
ALWAYS30555100.00
ALWAYS31933100.00
ALWAYS32766100.00
CONT_ASSIGN34111100.00
ALWAYS34833100.00
ALWAYS35399100.00
WARNING: The source file '/workspace/default/sim-vcs/../src/lowrisc_ip_spi_device_0.1/rtl/spid_status.sv' or '../src/lowrisc_ip_spi_device_0.1/rtl/spid_status.sv' was not found, so annotated line coverage report could not be generated.
Line No.CoveredStatements
87 1 1
90 1 1
158 1 1
159 1 1
160 1 1
161 0 1
162 1 1
163 1 1
MISSING_ELSE
169 1 1
170 1 1
171 1 1
172 0 1
173 1 1
174 1 1
175 1 1
176 1 1
MISSING_ELSE
182 1 1
183 1 1
184 1 1
185 1 1
MISSING_ELSE
194 1 1
195 1 1
196 0 1
197 1 1
198 1 1
MISSING_ELSE
200 1 1
201 0 1
MISSING_ELSE
216 1 1
217 1 1
232 1 1
255 1 1
256 1 1
258 1 1
261 1 1
292 1 1
293 1 1
294 1 1
295 1 1
MISSING_ELSE
305 1 1
306 1 1
307 1 1
309 1 1
310 1 1
319 1 1
320 1 1
322 1 1
327 1 1
329 1 1
331 1 1
333 1 1
334 1 1
335 1 1
MISSING_ELSE
MISSING_ELSE
341 1 1
348 2 2
349 1 1
353 1 1
355 1 1
357 1 1
359 1 1
361 1 1
362 1 1
364 1 1
365 1 1
MISSING_ELSE
370 1 1


Cond Coverage for Module : spid_status
TotalCoveredPercent
Conditions2121100.00
Logical2121100.00
Non-Logical00
Event00

 LINE       162
 EXPRESSION (sck_sw_we && (sck_sw_status[BitBusy] == 1'b0))
             ----1----    ----------------2---------------
-1--2-StatusTests
01CoveredT7,T8,T4
10CoveredT7,T4,T9
11CoveredT7,T4,T9

 LINE       162
 SUB-EXPRESSION (sck_sw_status[BitBusy] == 1'b0)
                ----------------1---------------
-1-StatusTests
0CoveredT7,T4,T9
1CoveredT7,T8,T4

 LINE       175
 EXPRESSION (sck_sw_we && (sck_sw_status[BitWe] == 1'b0))
             ----1----    ---------------2--------------
-1--2-StatusTests
01CoveredT7,T8,T4
10CoveredT7,T4,T9
11CoveredT7,T4,T9

 LINE       175
 SUB-EXPRESSION (sck_sw_status[BitWe] == 1'b0)
                ---------------1--------------
-1-StatusTests
0CoveredT7,T4,T9
1CoveredT7,T8,T4

 LINE       261
 EXPRESSION (sys_rst_ni & status_fifo_clr_n)
             -----1----   --------2--------
-1--2-StatusTests
01CoveredT1,T33,T22
10CoveredT1,T2,T3
11CoveredT1,T2,T3

 LINE       334
 EXPRESSION (cmd_info_idx_i == 5'(StatusCmdIdx[i]))
            -------------------1-------------------
-1-StatusTests
0CoveredT42,T43,T44
1CoveredT42,T43,T44

 LINE       341
 EXPRESSION ((st_q == StIdle) ? sck_status_committed[(8 * byte_sel_d)+:8] : sck_status_committed[(8 * byte_sel_q)+:8])
             --------1-------
-1-StatusTests
0CoveredT43,T44,T58
1CoveredT1,T2,T3

 LINE       341
 SUB-EXPRESSION (st_q == StIdle)
                --------1-------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT1,T2,T3

 LINE       361
 EXPRESSION (sel_dp_i == DpReadStatus)
            -------------1------------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT42,T43,T44

Branch Coverage for Module : spid_status
Line No.TotalCoveredPercent
Branches 36 31 86.11
TERNARY 341 2 2 100.00
IF 158 4 3 75.00
IF 169 5 4 80.00
IF 182 3 3 100.00
IF 195 3 2 66.67
IF 200 2 1 50.00
IF 255 2 2 100.00
IF 292 3 3 100.00
IF 305 2 2 100.00
IF 319 2 2 100.00
IF 329 2 2 100.00
IF 348 2 2 100.00
CASE 359 4 3 75.00

WARNING: The source file /workspace/default/sim-vcs/../src/lowrisc_ip_spi_device_0.1/rtl/spid_status.sv' or '../src/lowrisc_ip_spi_device_0.1/rtl/spid_status.sv was not found/opened, so annotated branch coverage report could not be generated.

LineNo. Expression -1-: 341 ((st_q == StIdle)) ?

Branches:
-1-StatusTests
1 Covered T1,T2,T3
0 Covered T43,T44,T58


LineNo. Expression -1-: 158 if ((!sys_rst_ni)) -2-: 160 if (inclk_busy_set_i) -3-: 162 if ((sck_sw_we && (sck_sw_status[BitBusy] == 1'b0)))

Branches:
-1--2--3-StatusTests
1 - - Covered T1,T2,T3
0 1 - Not Covered
0 0 1 Covered T7,T4,T9
0 0 0 Covered T7,T8,T4


LineNo. Expression -1-: 169 if ((!sys_rst_ni)) -2-: 171 if (inclk_we_set_i) -3-: 173 if (inclk_we_clr_i) -4-: 175 if ((sck_sw_we && (sck_sw_status[BitWe] == 1'b0)))

Branches:
-1--2--3--4-StatusTests
1 - - - Covered T1,T2,T3
0 1 - - Not Covered
0 0 1 - Covered T23,T24,T25
0 0 0 1 Covered T7,T4,T9
0 0 0 0 Covered T7,T8,T4


LineNo. Expression -1-: 182 if ((!sys_rst_ni)) -2-: 184 if (sck_sw_we)

Branches:
-1--2-StatusTests
1 - Covered T1,T2,T3
0 1 Covered T7,T4,T9
0 0 Covered T7,T8,T4


LineNo. Expression -1-: 195 if (inclk_we_set_i) -2-: 197 if (inclk_we_clr_i)

Branches:
-1--2-StatusTests
1 - Not Covered
0 1 Covered T23,T24,T25
0 0 Covered T1,T2,T3


LineNo. Expression -1-: 200 if (inclk_busy_set_i)

Branches:
-1-StatusTests
1 Not Covered
0 Covered T1,T2,T3


LineNo. Expression -1-: 255 if ((!sys_rst_ni))

Branches:
-1-StatusTests
1 Covered T1,T2,T3
0 Covered T1,T2,T3


LineNo. Expression -1-: 292 if ((!sys_rst_ni)) -2-: 294 if (sys_csb_deasserted_pulse_i)

Branches:
-1--2-StatusTests
1 - Covered T1,T2,T3
0 1 Covered T7,T4,T5
0 0 Covered T1,T2,T3


LineNo. Expression -1-: 305 if ((!rst_ni))

Branches:
-1-StatusTests
1 Covered T1,T2,T3
0 Covered T7,T4,T5


LineNo. Expression -1-: 319 if ((!rst_ni))

Branches:
-1-StatusTests
1 Covered T1,T2,T3
0 Covered T7,T4,T5


LineNo. Expression -1-: 329 if (byte_sel_update)

Branches:
-1-StatusTests
1 Covered T42,T43,T44
0 Covered T1,T2,T3


LineNo. Expression -1-: 348 if ((!rst_ni))

Branches:
-1-StatusTests
1 Covered T1,T2,T3
0 Covered T7,T4,T5


LineNo. Expression -1-: 359 case (st_q) -2-: 361 if ((sel_dp_i == DpReadStatus))

Branches:
-1--2-StatusTests
StIdle 1 Covered T42,T43,T44
StIdle 0 Covered T1,T2,T3
StActive - Covered T43,T44,T58
default - Not Covered


Assert Coverage for Module : spid_status
TotalAttemptedPercentSucceeded/MatchedPercent
Assertions 1 1 100.00 1 100.00
Cover properties 0 0 0
Cover sequences 0 0 0
Total 1 1 100.00 1 100.00




Assertion Details

NameAttemptsReal SuccessesFailuresIncomplete
BusyBitZero_A 679 679 0 0


BusyBitZero_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 679 679 0 0
T1 1 1 0 0
T2 1 1 0 0
T3 1 1 0 0
T4 1 1 0 0
T5 1 1 0 0
T7 1 1 0 0
T8 1 1 0 0
T9 1 1 0 0
T15 1 1 0 0
T16 1 1 0 0

0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%