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



Module Instance : tb.dut.u_eflash.gen_flash_cores[0].u_core.gen_prog_data.u_prog

Instance :
SCORELINECONDTOGGLEFSMBRANCHASSERT
99.38 100.00 96.92 100.00 100.00 100.00


Instance's subtree :
SCORELINECONDTOGGLEFSMBRANCHASSERT
99.49 100.00 96.92 100.00 100.00 100.00 100.00


Parent :
SCORELINECONDTOGGLEFSMBRANCHASSERTNAME
97.87 100.00 91.51 100.00 97.83 100.00 gen_flash_cores[0].u_core


Subtrees :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
u_data_intg_chk 100.00 100.00 100.00
u_enc 100.00 100.00
u_plain_enc 100.00 100.00
u_state_regs 100.00 100.00 100.00 100.00



Module Instance : tb.dut.u_eflash.gen_flash_cores[1].u_core.gen_prog_data.u_prog

Instance :
SCORELINECONDTOGGLEFSMBRANCHASSERT
99.38 100.00 96.92 100.00 100.00 100.00


Instance's subtree :
SCORELINECONDTOGGLEFSMBRANCHASSERT
98.65 100.00 96.92 95.00 100.00 100.00 100.00


Parent :
SCORELINECONDTOGGLEFSMBRANCHASSERTNAME
96.55 100.00 84.91 100.00 97.83 100.00 gen_flash_cores[1].u_core


Subtrees :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
u_data_intg_chk 97.50 100.00 95.00
u_enc 100.00 100.00
u_plain_enc 100.00 100.00
u_state_regs 100.00 100.00 100.00 100.00

Line Coverage for Module : flash_phy_prog
Line No.TotalCoveredPercent
TOTAL9696100.00
CONT_ASSIGN11111100.00
CONT_ASSIGN12211100.00
CONT_ASSIGN12611100.00
ALWAYS13033100.00
CONT_ASSIGN13811100.00
CONT_ASSIGN14311100.00
CONT_ASSIGN14411100.00
CONT_ASSIGN14711100.00
CONT_ASSIGN14811100.00
ALWAYS15166100.00
ALWAYS16433100.00
ALWAYS1745151100.00
ALWAYS2991212100.00
CONT_ASSIGN31411100.00
ALWAYS32344100.00
CONT_ASSIGN33111100.00
CONT_ASSIGN35211100.00
CONT_ASSIGN35511100.00
CONT_ASSIGN36511100.00
CONT_ASSIGN36611100.00
ALWAYS36933100.00
WARNING: The source file '/workspace/default/sim-vcs/../src/lowrisc_opentitan_top_earlgrey_flash_ctrl_0.1/rtl/flash_phy_prog.sv' or '../src/lowrisc_opentitan_top_earlgrey_flash_ctrl_0.1/rtl/flash_phy_prog.sv' was not found, so annotated line coverage report could not be generated.
Line No.CoveredStatements
111 1 1
122 1 1
126 1 1
130 1 1
131 1 1
133 1 1
138 1 1
143 1 1
144 1 1
147 1 1
148 1 1
151 1 1
152 1 1
153 1 1
155 1 1
156 1 1
158 1 1
MISSING_ELSE
164 3 3
174 1 1
176 1 1
177 1 1
178 1 1
179 1 1
180 1 1
181 1 1
182 1 1
183 1 1
184 1 1
186 1 1
189 1 1
193 1 1
194 1 1
195 1 1
196 1 1
197 1 1
MISSING_ELSE
203 1 1
204 1 1
205 1 1
MISSING_ELSE
210 1 1
211 1 1
213 1 1
215 1 1
216 1 1
218 1 1
219 1 1
220 1 1
MISSING_ELSE
226 1 1
227 1 1
230 1 1
231 1 1
MISSING_ELSE
236 1 1
237 1 1
241 1 1
243 1 1
244 1 1
MISSING_ELSE
249 1 1
251 1 1
252 1 1
MISSING_ELSE
257 1 1
262 1 1
263 1 1
269 1 1
270 1 1
272 1 1
273 1 1
278 1 1
279 1 1
280 1 1
MISSING_ELSE
285 1 1
299 1 1
300 1 1
301 1 1
302 1 1
303 1 1
304 1 1
305 1 1
306 1 1
307 1 1
308 1 1
309 1 1
310 1 1
MISSING_ELSE
314 1 1
323 1 1
324 1 1
325 1 1
326 1 1
MISSING_ELSE
331 1 1
352 1 1
355 1 1
365 1 1
366 1 1
369 1 1
370 1 1
372 1 1


Cond Coverage for Module : flash_phy_prog
TotalCoveredPercent
Conditions656396.92
Logical656396.92
Non-Logical00
Event00

 LINE       111
 EXPRESSION ((data_sel == Actual) ? data_i[(flash_phy_pkg::BusWidth - 1):0] : ({flash_phy_pkg::BusWidth {1'b1}}))
             ----------1---------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT1,T3,T16

 LINE       111
 SUB-EXPRESSION (data_sel == Actual)
                ----------1---------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT1,T3,T16

 LINE       126
 EXPRESSION (data_invalid_q | (pack_valid & ((~data_intg_ok))))
             -------1------   ----------------2---------------
-1--2-StatusTests
00CoveredT1,T2,T3
01CoveredT106,T161,T171
10CoveredT106,T161,T171

 LINE       126
 SUB-EXPRESSION (pack_valid & ((~data_intg_ok)))
                 -----1----   --------2--------
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT1,T3,T16
11CoveredT106,T161,T171

 LINE       143
 EXPRESSION (ack_i | data_invalid_q)
             --1--   -------2------
-1--2-StatusTests
00CoveredT1,T2,T3
01Not Covered
10CoveredT1,T2,T3

 LINE       144
 EXPRESSION (done_i | data_invalid_q)
             ---1--   -------2------
-1--2-StatusTests
00CoveredT1,T2,T3
01CoveredT106,T161,T171
10CoveredT1,T2,T3

 LINE       148
 EXPRESSION ((idx > '0) ? (idx_sub_one == sel_i) : 1'b0)
             -----1----
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT1,T3,T16

 LINE       148
 SUB-EXPRESSION (idx_sub_one == sel_i)
                -----------1----------
-1-StatusTests
0CoveredT1,T3,T16
1CoveredT7,T17,T40

 LINE       153
 EXPRESSION (pack_valid && (idx == MaxIdx))
             -----1----    -------2-------
-1--2-StatusTests
01CoveredT1,T3,T16
10CoveredT1,T3,T16
11CoveredT1,T3,T16

 LINE       153
 SUB-EXPRESSION (idx == MaxIdx)
                -------1-------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT1,T3,T16

 LINE       194
 EXPRESSION (req_i && ((|sel_i)))
             --1--    -----2----
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT1,T3,T16
11CoveredT7,T17,T40

 LINE       204
 EXPRESSION (idx == align_next)
            ---------1---------
-1-StatusTests
0CoveredT9,T12
1CoveredT7,T17,T40

 LINE       213
 EXPRESSION (req_i && (idx == MaxIdx))
             --1--    -------2-------
-1--2-StatusTests
01CoveredT1,T3,T16
10CoveredT1,T3,T16
11CoveredT1,T3,T16

 LINE       213
 SUB-EXPRESSION (idx == MaxIdx)
                -------1-------
-1-StatusTests
0CoveredT1,T3,T16
1CoveredT1,T3,T16

 LINE       216
 EXPRESSION (req_i && last_i)
             --1--    ---2--
-1--2-StatusTests
01CoveredT1,T3,T16
10CoveredT1,T3,T16
11CoveredT7,T17,T40

 LINE       230
 EXPRESSION (idx == MaxIdx)
            -------1-------
-1-StatusTests
0CoveredT9,T12
1CoveredT7,T17,T40

 LINE       237
 EXPRESSION (scramble_i ? StCalcMask : StReqFlash)
             -----1----
-1-StatusTests
0CoveredT7,T17,T19
1CoveredT1,T3,T16

 LINE       270
 EXPRESSION (ack ? StWaitFlash : StReqFlash)
             -1-
-1-StatusTests
0CoveredT6,T7,T17
1CoveredT1,T3,T16

 LINE       273
 EXPRESSION (ack ? StIdle : StReqFlash)
             -1-
-1-StatusTests
0CoveredT6,T7,T17
1CoveredT3,T6,T7

 LINE       302
 EXPRESSION (req_o && ack)
             --1--    -2-
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT6,T7,T17
11CoveredT1,T3,T16

 LINE       304
 EXPRESSION (calc_req_o && calc_ack_i)
             -----1----    -----2----
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT1,T3,T16
11CoveredT1,T3,T16

 LINE       307
 EXPRESSION (scramble_req_o && scramble_ack_i)
             -------1------    -------2------
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT1,T3,T16
11CoveredT1,T3,T16

 LINE       355
 EXPRESSION (ecc_i ? ecc_data : ({{flash_phy_pkg::EccWidth {1'b1}}, ecc_data_in}))
             --1--
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT1,T2,T3

 LINE       365
 EXPRESSION (req_i && ack_o && last_i)
             --1--    --2--    ---3--
-1--2--3-StatusTests
011Not Covered
101CoveredT1,T3,T16
110CoveredT1,T3,T16
111CoveredT3,T16,T6

 LINE       366
 EXPRESSION (txn_done ? '0 : (done ? ((done_cnt_q + 16'b1)) : done_cnt_q))
             ----1---
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT3,T16,T6

 LINE       366
 SUB-EXPRESSION (done ? ((done_cnt_q + 16'b1)) : done_cnt_q)
                 --1-
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT1,T2,T3

FSM Coverage for Module : flash_phy_prog
Summary for FSM :: state_q
TotalCoveredPercent
States 11 11 100.00 (Not included in score)
Transitions 15 15 100.00
Sequences 0 0

State, Transition and Sequence Details for FSM :: state_q
statesLine No.CoveredTests
StCalcEcc 252 Covered T1,T3,T16
StCalcMask 237 Covered T1,T3,T16
StCalcPlainEcc 215 Covered T1,T3,T16
StDisabled 193 Covered T3,T5,T11
StIdle 273 Covered T1,T2,T3
StPackData 197 Covered T1,T3,T16
StPostPack 218 Covered T7,T17,T40
StPrePack 195 Covered T7,T17,T40
StReqFlash 237 Covered T1,T3,T16
StScrambleData 244 Covered T1,T3,T16
StWaitFlash 270 Covered T1,T3,T16


transitionsLine No.CoveredTests
StCalcEcc->StReqFlash 257 Covered T1,T3,T16
StCalcMask->StScrambleData 244 Covered T1,T3,T16
StCalcPlainEcc->StCalcMask 237 Covered T1,T3,T16
StCalcPlainEcc->StReqFlash 237 Covered T7,T17,T19
StIdle->StDisabled 193 Covered T3,T5,T11
StIdle->StPackData 197 Covered T1,T3,T16
StIdle->StPrePack 195 Covered T7,T17,T40
StPackData->StCalcPlainEcc 215 Covered T1,T3,T16
StPackData->StPostPack 218 Covered T7,T17,T40
StPostPack->StCalcPlainEcc 231 Covered T7,T17,T40
StPrePack->StPackData 205 Covered T7,T17,T40
StReqFlash->StIdle 273 Covered T3,T6,T7
StReqFlash->StWaitFlash 270 Covered T1,T3,T16
StScrambleData->StCalcEcc 252 Covered T1,T3,T16
StWaitFlash->StIdle 280 Covered T1,T3,T16



Branch Coverage for Module : flash_phy_prog
Line No.TotalCoveredPercent
Branches 55 55 100.00
TERNARY 111 2 2 100.00
TERNARY 148 2 2 100.00
TERNARY 355 2 2 100.00
TERNARY 366 3 3 100.00
IF 130 2 2 100.00
IF 151 4 4 100.00
IF 164 2 2 100.00
CASE 186 27 27 100.00
IF 299 6 6 100.00
IF 323 3 3 100.00
IF 369 2 2 100.00

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

LineNo. Expression -1-: 111 ((data_sel == Actual)) ?

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


LineNo. Expression -1-: 148 ((idx > '0)) ?

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


LineNo. Expression -1-: 355 (ecc_i) ?

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


LineNo. Expression -1-: 366 (txn_done) ? -2-: 366 (done) ?

Branches:
-1--2-StatusTests
1 - Covered T3,T16,T6
0 1 Covered T1,T2,T3
0 0 Covered T1,T2,T3


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

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


LineNo. Expression -1-: 151 if ((!rst_ni)) -2-: 153 if ((pack_valid && (idx == MaxIdx))) -3-: 156 if (pack_valid)

Branches:
-1--2--3-StatusTests
1 - - Covered T1,T2,T3
0 1 - Covered T1,T3,T16
0 0 1 Covered T1,T3,T16
0 0 0 Covered T1,T2,T3


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

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


LineNo. Expression -1-: 186 case (state_q) -2-: 189 if (prim_mubi_pkg::mubi4_test_true_loose(disable_i)) -3-: 194 if ((req_i && (|sel_i))) -4-: 196 if (req_i) -5-: 204 if ((idx == align_next)) -6-: 213 if ((req_i && (idx == MaxIdx))) -7-: 216 if ((req_i && last_i)) -8-: 219 if (req_i) -9-: 230 if ((idx == MaxIdx)) -10-: 237 (scramble_i) ? -11-: 243 if (calc_ack_i) -12-: 251 if (scramble_ack_i) -13-: 269 if (last_i) -14-: 270 (ack) ? -15-: 273 (ack) ? -16-: 278 if (done)

Branches:
-1--2--3--4--5--6--7--8--9--10--11--12--13--14--15--16-StatusTests
StIdle 1 - - - - - - - - - - - - - - Covered T3,T5,T11
StIdle 0 1 - - - - - - - - - - - - - Covered T7,T17,T40
StIdle 0 0 1 - - - - - - - - - - - - Covered T1,T3,T16
StIdle 0 0 0 - - - - - - - - - - - - Covered T1,T2,T3
StPrePack - - - 1 - - - - - - - - - - - Covered T7,T17,T40
StPrePack - - - 0 - - - - - - - - - - - Covered T9,T12
StPackData - - - - 1 - - - - - - - - - - Covered T1,T3,T16
StPackData - - - - 0 1 - - - - - - - - - Covered T7,T17,T40
StPackData - - - - 0 0 1 - - - - - - - - Covered T1,T3,T16
StPackData - - - - 0 0 0 - - - - - - - - Covered T1,T3,T16
StPostPack - - - - - - - 1 - - - - - - - Covered T7,T17,T40
StPostPack - - - - - - - 0 - - - - - - - Covered T9,T12
StCalcPlainEcc - - - - - - - - 1 - - - - - - Covered T1,T3,T16
StCalcPlainEcc - - - - - - - - 0 - - - - - - Covered T7,T17,T19
StCalcMask - - - - - - - - - 1 - - - - - Covered T1,T3,T16
StCalcMask - - - - - - - - - 0 - - - - - Covered T1,T3,T16
StScrambleData - - - - - - - - - - 1 - - - - Covered T1,T3,T16
StScrambleData - - - - - - - - - - 0 - - - - Covered T1,T3,T16
StCalcEcc - - - - - - - - - - - - - - - Covered T1,T3,T16
StReqFlash - - - - - - - - - - - 1 1 - - Covered T1,T3,T16
StReqFlash - - - - - - - - - - - 1 0 - - Covered T6,T7,T17
StReqFlash - - - - - - - - - - - 0 - 1 - Covered T3,T6,T7
StReqFlash - - - - - - - - - - - 0 - 0 - Covered T6,T7,T17
StWaitFlash - - - - - - - - - - - - - - 1 Covered T3,T16,T6
StWaitFlash - - - - - - - - - - - - - - 0 Covered T1,T3,T16
StDisabled - - - - - - - - - - - - - - - Covered T3,T5,T11
default - - - - - - - - - - - - - - - Covered T13,T14,T15


LineNo. Expression -1-: 299 if ((!rst_ni)) -2-: 302 if ((req_o && ack)) -3-: 304 if ((calc_req_o && calc_ack_i)) -4-: 307 if ((scramble_req_o && scramble_ack_i)) -5-: 309 if (pack_valid)

Branches:
-1--2--3--4--5-StatusTests
1 - - - - Covered T1,T2,T3
0 1 - - - Covered T1,T3,T16
0 0 1 - - Covered T1,T3,T16
0 0 0 1 - Covered T1,T3,T16
0 0 0 0 1 Covered T1,T3,T16
0 0 0 0 0 Covered T1,T2,T3


LineNo. Expression -1-: 323 if ((!rst_ni)) -2-: 325 if (plain_ecc_en)

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


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

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


Assert Coverage for Module : flash_phy_prog
TotalAttemptedPercentSucceeded/MatchedPercent
Assertions 5 5 100.00 5 100.00
Cover properties 0 0 0
Cover sequences 0 0 0
Total 5 5 100.00 5 100.00




Assertion Details

NameAttemptsReal SuccessesFailuresIncomplete
OneDonePerTxn_A 768220656 2439906 0 0
PostPackRule_A 768220656 2014 0 0
PrePackRule_A 768220656 1399 0 0
WidthCheck_A 2078 2078 0 0
u_state_regs_A 768220656 766528874 0 0


OneDonePerTxn_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 768220656 2439906 0 0
T3 802454 65920 0 0
T4 139142 0 0 0
T5 2468 0 0 0
T6 493364 220 0 0
T7 145394 9 0 0
T11 1804 0 0 0
T16 5496 1 0 0
T17 870948 75 0 0
T19 1558640 8608 0 0
T21 0 1 0 0
T35 0 1551 0 0
T36 0 638 0 0
T39 489118 285 0 0
T40 0 1 0 0
T42 0 2298 0 0
T60 0 261 0 0
T75 0 44 0 0
T119 0 661 0 0

PostPackRule_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 768220656 2014 0 0
T7 145394 8 0 0
T11 1804 0 0 0
T17 870948 50 0 0
T19 1558640 0 0 0
T23 1237532 0 0 0
T30 0 7 0 0
T31 0 10 0 0
T34 4752 0 0 0
T39 489118 0 0 0
T40 3214 1 0 0
T41 0 1 0 0
T42 880908 0 0 0
T69 0 18 0 0
T70 0 3 0 0
T95 6334 0 0 0
T120 0 3 0 0
T211 0 4 0 0
T223 0 2 0 0
T224 0 4 0 0
T225 0 2 0 0
T226 0 19 0 0

PrePackRule_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 768220656 1399 0 0
T7 145394 7 0 0
T11 1804 0 0 0
T17 870948 25 0 0
T19 1558640 0 0 0
T23 1237532 0 0 0
T30 0 4 0 0
T31 0 7 0 0
T34 4752 0 0 0
T39 489118 0 0 0
T40 3214 1 0 0
T42 880908 0 0 0
T69 0 11 0 0
T70 0 2 0 0
T95 6334 0 0 0
T120 0 1 0 0
T211 0 3 0 0
T223 0 2 0 0
T224 0 3 0 0
T225 0 1 0 0
T226 0 15 0 0
T227 0 1 0 0

WidthCheck_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 2078 2078 0 0
T1 2 2 0 0
T2 2 2 0 0
T3 2 2 0 0
T4 2 2 0 0
T5 2 2 0 0
T6 2 2 0 0
T7 2 2 0 0
T11 2 2 0 0
T16 2 2 0 0
T17 2 2 0 0

u_state_regs_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 768220656 766528874 0 0
T1 2748 2456 0 0
T2 90548 90356 0 0
T3 802454 802422 0 0
T4 139142 138902 0 0
T5 2468 2366 0 0
T6 493364 469980 0 0
T7 145394 145262 0 0
T11 1804 1674 0 0
T16 5496 5210 0 0
T17 870948 870808 0 0

Line Coverage for Instance : tb.dut.u_eflash.gen_flash_cores[0].u_core.gen_prog_data.u_prog
Line No.TotalCoveredPercent
TOTAL9696100.00
CONT_ASSIGN11111100.00
CONT_ASSIGN12211100.00
CONT_ASSIGN12611100.00
ALWAYS13033100.00
CONT_ASSIGN13811100.00
CONT_ASSIGN14311100.00
CONT_ASSIGN14411100.00
CONT_ASSIGN14711100.00
CONT_ASSIGN14811100.00
ALWAYS15166100.00
ALWAYS16433100.00
ALWAYS1745151100.00
ALWAYS2991212100.00
CONT_ASSIGN31411100.00
ALWAYS32344100.00
CONT_ASSIGN33111100.00
CONT_ASSIGN35211100.00
CONT_ASSIGN35511100.00
CONT_ASSIGN36511100.00
CONT_ASSIGN36611100.00
ALWAYS36933100.00
WARNING: The source file '/workspace/default/sim-vcs/../src/lowrisc_opentitan_top_earlgrey_flash_ctrl_0.1/rtl/flash_phy_prog.sv' or '../src/lowrisc_opentitan_top_earlgrey_flash_ctrl_0.1/rtl/flash_phy_prog.sv' was not found, so annotated line coverage report could not be generated.
Line No.CoveredStatements
111 1 1
122 1 1
126 1 1
130 1 1
131 1 1
133 1 1
138 1 1
143 1 1
144 1 1
147 1 1
148 1 1
151 1 1
152 1 1
153 1 1
155 1 1
156 1 1
158 1 1
MISSING_ELSE
164 3 3
174 1 1
176 1 1
177 1 1
178 1 1
179 1 1
180 1 1
181 1 1
182 1 1
183 1 1
184 1 1
186 1 1
189 1 1
193 1 1
194 1 1
195 1 1
196 1 1
197 1 1
MISSING_ELSE
203 1 1
204 1 1
205 1 1
MISSING_ELSE
210 1 1
211 1 1
213 1 1
215 1 1
216 1 1
218 1 1
219 1 1
220 1 1
MISSING_ELSE
226 1 1
227 1 1
230 1 1
231 1 1
MISSING_ELSE
236 1 1
237 1 1
241 1 1
243 1 1
244 1 1
MISSING_ELSE
249 1 1
251 1 1
252 1 1
MISSING_ELSE
257 1 1
262 1 1
263 1 1
269 1 1
270 1 1
272 1 1
273 1 1
278 1 1
279 1 1
280 1 1
MISSING_ELSE
285 1 1
299 1 1
300 1 1
301 1 1
302 1 1
303 1 1
304 1 1
305 1 1
306 1 1
307 1 1
308 1 1
309 1 1
310 1 1
MISSING_ELSE
314 1 1
323 1 1
324 1 1
325 1 1
326 1 1
MISSING_ELSE
331 1 1
352 1 1
355 1 1
365 1 1
366 1 1
369 1 1
370 1 1
372 1 1


Cond Coverage for Instance : tb.dut.u_eflash.gen_flash_cores[0].u_core.gen_prog_data.u_prog
TotalCoveredPercent
Conditions656396.92
Logical656396.92
Non-Logical00
Event00

 LINE       111
 EXPRESSION ((data_sel == Actual) ? data_i[(flash_phy_pkg::BusWidth - 1):0] : ({flash_phy_pkg::BusWidth {1'b1}}))
             ----------1---------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT1,T3,T6

 LINE       111
 SUB-EXPRESSION (data_sel == Actual)
                ----------1---------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT1,T3,T6

 LINE       126
 EXPRESSION (data_invalid_q | (pack_valid & ((~data_intg_ok))))
             -------1------   ----------------2---------------
-1--2-StatusTests
00CoveredT1,T2,T3
01CoveredT106,T161,T171
10CoveredT106,T161,T171

 LINE       126
 SUB-EXPRESSION (pack_valid & ((~data_intg_ok)))
                 -----1----   --------2--------
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT1,T3,T6
11CoveredT106,T161,T171

 LINE       143
 EXPRESSION (ack_i | data_invalid_q)
             --1--   -------2------
-1--2-StatusTests
00CoveredT1,T2,T3
01Not Covered
10CoveredT1,T2,T3

 LINE       144
 EXPRESSION (done_i | data_invalid_q)
             ---1--   -------2------
-1--2-StatusTests
00CoveredT1,T2,T3
01CoveredT106,T161,T171
10CoveredT1,T2,T3

 LINE       148
 EXPRESSION ((idx > '0) ? (idx_sub_one == sel_i) : 1'b0)
             -----1----
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT1,T3,T6

 LINE       148
 SUB-EXPRESSION (idx_sub_one == sel_i)
                -----------1----------
-1-StatusTests
0CoveredT1,T3,T6
1CoveredT7,T17,T40

 LINE       153
 EXPRESSION (pack_valid && (idx == MaxIdx))
             -----1----    -------2-------
-1--2-StatusTests
01CoveredT1,T3,T6
10CoveredT1,T3,T6
11CoveredT1,T3,T6

 LINE       153
 SUB-EXPRESSION (idx == MaxIdx)
                -------1-------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT1,T3,T6

 LINE       194
 EXPRESSION (req_i && ((|sel_i)))
             --1--    -----2----
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT1,T3,T6
11CoveredT7,T17,T40

 LINE       204
 EXPRESSION (idx == align_next)
            ---------1---------
-1-StatusTests
0CoveredT9,T12
1CoveredT7,T17,T40

 LINE       213
 EXPRESSION (req_i && (idx == MaxIdx))
             --1--    -------2-------
-1--2-StatusTests
01CoveredT1,T3,T6
10CoveredT1,T3,T6
11CoveredT1,T3,T6

 LINE       213
 SUB-EXPRESSION (idx == MaxIdx)
                -------1-------
-1-StatusTests
0CoveredT1,T3,T6
1CoveredT1,T3,T6

 LINE       216
 EXPRESSION (req_i && last_i)
             --1--    ---2--
-1--2-StatusTests
01CoveredT1,T3,T6
10CoveredT1,T3,T6
11CoveredT7,T17,T40

 LINE       230
 EXPRESSION (idx == MaxIdx)
            -------1-------
-1-StatusTests
0CoveredT9,T12
1CoveredT7,T17,T40

 LINE       237
 EXPRESSION (scramble_i ? StCalcMask : StReqFlash)
             -----1----
-1-StatusTests
0CoveredT7,T17,T40
1CoveredT1,T3,T6

 LINE       270
 EXPRESSION (ack ? StWaitFlash : StReqFlash)
             -1-
-1-StatusTests
0CoveredT6,T7,T17
1CoveredT1,T3,T6

 LINE       273
 EXPRESSION (ack ? StIdle : StReqFlash)
             -1-
-1-StatusTests
0CoveredT6,T7,T17
1CoveredT3,T6,T7

 LINE       302
 EXPRESSION (req_o && ack)
             --1--    -2-
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT6,T7,T17
11CoveredT1,T3,T6

 LINE       304
 EXPRESSION (calc_req_o && calc_ack_i)
             -----1----    -----2----
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT1,T3,T6
11CoveredT1,T3,T6

 LINE       307
 EXPRESSION (scramble_req_o && scramble_ack_i)
             -------1------    -------2------
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT1,T3,T6
11CoveredT1,T3,T6

 LINE       355
 EXPRESSION (ecc_i ? ecc_data : ({{flash_phy_pkg::EccWidth {1'b1}}, ecc_data_in}))
             --1--
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT1,T2,T3

 LINE       365
 EXPRESSION (req_i && ack_o && last_i)
             --1--    --2--    ---3--
-1--2--3-StatusTests
011Not Covered
101CoveredT1,T3,T6
110CoveredT1,T3,T6
111CoveredT3,T6,T7

 LINE       366
 EXPRESSION (txn_done ? '0 : (done ? ((done_cnt_q + 16'b1)) : done_cnt_q))
             ----1---
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT3,T6,T7

 LINE       366
 SUB-EXPRESSION (done ? ((done_cnt_q + 16'b1)) : done_cnt_q)
                 --1-
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT1,T2,T3

FSM Coverage for Instance : tb.dut.u_eflash.gen_flash_cores[0].u_core.gen_prog_data.u_prog
Summary for FSM :: state_q
TotalCoveredPercent
States 11 11 100.00 (Not included in score)
Transitions 15 15 100.00
Sequences 0 0

State, Transition and Sequence Details for FSM :: state_q
statesLine No.CoveredTests
StCalcEcc 252 Covered T1,T3,T6
StCalcMask 237 Covered T1,T3,T6
StCalcPlainEcc 215 Covered T1,T3,T6
StDisabled 193 Covered T3,T5,T11
StIdle 273 Covered T1,T2,T3
StPackData 197 Covered T1,T3,T6
StPostPack 218 Covered T7,T17,T40
StPrePack 195 Covered T7,T17,T40
StReqFlash 237 Covered T1,T3,T6
StScrambleData 244 Covered T1,T3,T6
StWaitFlash 270 Covered T1,T3,T6


transitionsLine No.CoveredTests
StCalcEcc->StReqFlash 257 Covered T1,T3,T6
StCalcMask->StScrambleData 244 Covered T1,T3,T6
StCalcPlainEcc->StCalcMask 237 Covered T1,T3,T6
StCalcPlainEcc->StReqFlash 237 Covered T7,T17,T40
StIdle->StDisabled 193 Covered T3,T5,T11
StIdle->StPackData 197 Covered T1,T3,T6
StIdle->StPrePack 195 Covered T7,T17,T40
StPackData->StCalcPlainEcc 215 Covered T1,T3,T6
StPackData->StPostPack 218 Covered T7,T17,T40
StPostPack->StCalcPlainEcc 231 Covered T7,T17,T40
StPrePack->StPackData 205 Covered T7,T17,T40
StReqFlash->StIdle 273 Covered T3,T6,T7
StReqFlash->StWaitFlash 270 Covered T1,T3,T6
StScrambleData->StCalcEcc 252 Covered T1,T3,T6
StWaitFlash->StIdle 280 Covered T1,T3,T6



Branch Coverage for Instance : tb.dut.u_eflash.gen_flash_cores[0].u_core.gen_prog_data.u_prog
Line No.TotalCoveredPercent
Branches 55 55 100.00
TERNARY 111 2 2 100.00
TERNARY 148 2 2 100.00
TERNARY 355 2 2 100.00
TERNARY 366 3 3 100.00
IF 130 2 2 100.00
IF 151 4 4 100.00
IF 164 2 2 100.00
CASE 186 27 27 100.00
IF 299 6 6 100.00
IF 323 3 3 100.00
IF 369 2 2 100.00

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

LineNo. Expression -1-: 111 ((data_sel == Actual)) ?

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


LineNo. Expression -1-: 148 ((idx > '0)) ?

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


LineNo. Expression -1-: 355 (ecc_i) ?

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


LineNo. Expression -1-: 366 (txn_done) ? -2-: 366 (done) ?

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


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

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


LineNo. Expression -1-: 151 if ((!rst_ni)) -2-: 153 if ((pack_valid && (idx == MaxIdx))) -3-: 156 if (pack_valid)

Branches:
-1--2--3-StatusTests
1 - - Covered T1,T2,T3
0 1 - Covered T1,T3,T6
0 0 1 Covered T1,T3,T6
0 0 0 Covered T1,T2,T3


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

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


LineNo. Expression -1-: 186 case (state_q) -2-: 189 if (prim_mubi_pkg::mubi4_test_true_loose(disable_i)) -3-: 194 if ((req_i && (|sel_i))) -4-: 196 if (req_i) -5-: 204 if ((idx == align_next)) -6-: 213 if ((req_i && (idx == MaxIdx))) -7-: 216 if ((req_i && last_i)) -8-: 219 if (req_i) -9-: 230 if ((idx == MaxIdx)) -10-: 237 (scramble_i) ? -11-: 243 if (calc_ack_i) -12-: 251 if (scramble_ack_i) -13-: 269 if (last_i) -14-: 270 (ack) ? -15-: 273 (ack) ? -16-: 278 if (done)

Branches:
-1--2--3--4--5--6--7--8--9--10--11--12--13--14--15--16-StatusTests
StIdle 1 - - - - - - - - - - - - - - Covered T3,T5,T11
StIdle 0 1 - - - - - - - - - - - - - Covered T7,T17,T40
StIdle 0 0 1 - - - - - - - - - - - - Covered T1,T3,T6
StIdle 0 0 0 - - - - - - - - - - - - Covered T1,T2,T3
StPrePack - - - 1 - - - - - - - - - - - Covered T7,T17,T40
StPrePack - - - 0 - - - - - - - - - - - Covered T9,T12
StPackData - - - - 1 - - - - - - - - - - Covered T1,T3,T6
StPackData - - - - 0 1 - - - - - - - - - Covered T7,T17,T40
StPackData - - - - 0 0 1 - - - - - - - - Covered T1,T3,T6
StPackData - - - - 0 0 0 - - - - - - - - Covered T1,T3,T6
StPostPack - - - - - - - 1 - - - - - - - Covered T7,T17,T40
StPostPack - - - - - - - 0 - - - - - - - Covered T9,T12
StCalcPlainEcc - - - - - - - - 1 - - - - - - Covered T1,T3,T6
StCalcPlainEcc - - - - - - - - 0 - - - - - - Covered T7,T17,T40
StCalcMask - - - - - - - - - 1 - - - - - Covered T1,T3,T6
StCalcMask - - - - - - - - - 0 - - - - - Covered T1,T3,T6
StScrambleData - - - - - - - - - - 1 - - - - Covered T1,T3,T6
StScrambleData - - - - - - - - - - 0 - - - - Covered T1,T3,T6
StCalcEcc - - - - - - - - - - - - - - - Covered T1,T3,T6
StReqFlash - - - - - - - - - - - 1 1 - - Covered T1,T3,T6
StReqFlash - - - - - - - - - - - 1 0 - - Covered T6,T7,T17
StReqFlash - - - - - - - - - - - 0 - 1 - Covered T3,T6,T7
StReqFlash - - - - - - - - - - - 0 - 0 - Covered T6,T7,T17
StWaitFlash - - - - - - - - - - - - - - 1 Covered T3,T6,T7
StWaitFlash - - - - - - - - - - - - - - 0 Covered T1,T3,T6
StDisabled - - - - - - - - - - - - - - - Covered T3,T5,T11
default - - - - - - - - - - - - - - - Covered T13,T14,T15


LineNo. Expression -1-: 299 if ((!rst_ni)) -2-: 302 if ((req_o && ack)) -3-: 304 if ((calc_req_o && calc_ack_i)) -4-: 307 if ((scramble_req_o && scramble_ack_i)) -5-: 309 if (pack_valid)

Branches:
-1--2--3--4--5-StatusTests
1 - - - - Covered T1,T2,T3
0 1 - - - Covered T1,T3,T6
0 0 1 - - Covered T1,T3,T6
0 0 0 1 - Covered T1,T3,T6
0 0 0 0 1 Covered T1,T3,T6
0 0 0 0 0 Covered T1,T2,T3


LineNo. Expression -1-: 323 if ((!rst_ni)) -2-: 325 if (plain_ecc_en)

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


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

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


Assert Coverage for Instance : tb.dut.u_eflash.gen_flash_cores[0].u_core.gen_prog_data.u_prog
TotalAttemptedPercentSucceeded/MatchedPercent
Assertions 5 5 100.00 5 100.00
Cover properties 0 0 0
Cover sequences 0 0 0
Total 5 5 100.00 5 100.00




Assertion Details

NameAttemptsReal SuccessesFailuresIncomplete
OneDonePerTxn_A 384110328 1232602 0 0
PostPackRule_A 384110328 984 0 0
PrePackRule_A 384110328 701 0 0
WidthCheck_A 1039 1039 0 0
u_state_regs_A 384110328 383264437 0 0


OneDonePerTxn_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 384110328 1232602 0 0
T3 401227 33152 0 0
T4 69571 0 0 0
T5 1234 0 0 0
T6 246682 220 0 0
T7 72697 6 0 0
T11 902 0 0 0
T16 2748 0 0 0
T17 435474 44 0 0
T19 779320 0 0 0
T21 0 1 0 0
T35 0 686 0 0
T39 244559 285 0 0
T40 0 1 0 0
T42 0 1183 0 0
T60 0 261 0 0

PostPackRule_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 384110328 984 0 0
T7 72697 5 0 0
T11 902 0 0 0
T17 435474 28 0 0
T19 779320 0 0 0
T23 618766 0 0 0
T30 0 4 0 0
T31 0 5 0 0
T34 2376 0 0 0
T39 244559 0 0 0
T40 1607 1 0 0
T41 0 1 0 0
T42 440454 0 0 0
T69 0 11 0 0
T70 0 3 0 0
T95 3167 0 0 0
T223 0 2 0 0
T224 0 1 0 0

PrePackRule_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 384110328 701 0 0
T7 72697 5 0 0
T11 902 0 0 0
T17 435474 11 0 0
T19 779320 0 0 0
T23 618766 0 0 0
T30 0 3 0 0
T31 0 2 0 0
T34 2376 0 0 0
T39 244559 0 0 0
T40 1607 1 0 0
T42 440454 0 0 0
T69 0 8 0 0
T70 0 2 0 0
T95 3167 0 0 0
T223 0 2 0 0
T224 0 1 0 0
T227 0 1 0 0

WidthCheck_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 1039 1039 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
T6 1 1 0 0
T7 1 1 0 0
T11 1 1 0 0
T16 1 1 0 0
T17 1 1 0 0

u_state_regs_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 384110328 383264437 0 0
T1 1374 1228 0 0
T2 45274 45178 0 0
T3 401227 401211 0 0
T4 69571 69451 0 0
T5 1234 1183 0 0
T6 246682 234990 0 0
T7 72697 72631 0 0
T11 902 837 0 0
T16 2748 2605 0 0
T17 435474 435404 0 0

Line Coverage for Instance : tb.dut.u_eflash.gen_flash_cores[1].u_core.gen_prog_data.u_prog
Line No.TotalCoveredPercent
TOTAL9696100.00
CONT_ASSIGN11111100.00
CONT_ASSIGN12211100.00
CONT_ASSIGN12611100.00
ALWAYS13033100.00
CONT_ASSIGN13811100.00
CONT_ASSIGN14311100.00
CONT_ASSIGN14411100.00
CONT_ASSIGN14711100.00
CONT_ASSIGN14811100.00
ALWAYS15166100.00
ALWAYS16433100.00
ALWAYS1745151100.00
ALWAYS2991212100.00
CONT_ASSIGN31411100.00
ALWAYS32344100.00
CONT_ASSIGN33111100.00
CONT_ASSIGN35211100.00
CONT_ASSIGN35511100.00
CONT_ASSIGN36511100.00
CONT_ASSIGN36611100.00
ALWAYS36933100.00
WARNING: The source file '/workspace/default/sim-vcs/../src/lowrisc_opentitan_top_earlgrey_flash_ctrl_0.1/rtl/flash_phy_prog.sv' or '../src/lowrisc_opentitan_top_earlgrey_flash_ctrl_0.1/rtl/flash_phy_prog.sv' was not found, so annotated line coverage report could not be generated.
Line No.CoveredStatements
111 1 1
122 1 1
126 1 1
130 1 1
131 1 1
133 1 1
138 1 1
143 1 1
144 1 1
147 1 1
148 1 1
151 1 1
152 1 1
153 1 1
155 1 1
156 1 1
158 1 1
MISSING_ELSE
164 3 3
174 1 1
176 1 1
177 1 1
178 1 1
179 1 1
180 1 1
181 1 1
182 1 1
183 1 1
184 1 1
186 1 1
189 1 1
193 1 1
194 1 1
195 1 1
196 1 1
197 1 1
MISSING_ELSE
203 1 1
204 1 1
205 1 1
MISSING_ELSE
210 1 1
211 1 1
213 1 1
215 1 1
216 1 1
218 1 1
219 1 1
220 1 1
MISSING_ELSE
226 1 1
227 1 1
230 1 1
231 1 1
MISSING_ELSE
236 1 1
237 1 1
241 1 1
243 1 1
244 1 1
MISSING_ELSE
249 1 1
251 1 1
252 1 1
MISSING_ELSE
257 1 1
262 1 1
263 1 1
269 1 1
270 1 1
272 1 1
273 1 1
278 1 1
279 1 1
280 1 1
MISSING_ELSE
285 1 1
299 1 1
300 1 1
301 1 1
302 1 1
303 1 1
304 1 1
305 1 1
306 1 1
307 1 1
308 1 1
309 1 1
310 1 1
MISSING_ELSE
314 1 1
323 1 1
324 1 1
325 1 1
326 1 1
MISSING_ELSE
331 1 1
352 1 1
355 1 1
365 1 1
366 1 1
369 1 1
370 1 1
372 1 1


Cond Coverage for Instance : tb.dut.u_eflash.gen_flash_cores[1].u_core.gen_prog_data.u_prog
TotalCoveredPercent
Conditions656396.92
Logical656396.92
Non-Logical00
Event00

 LINE       111
 EXPRESSION ((data_sel == Actual) ? data_i[(flash_phy_pkg::BusWidth - 1):0] : ({flash_phy_pkg::BusWidth {1'b1}}))
             ----------1---------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT3,T16,T7

 LINE       111
 SUB-EXPRESSION (data_sel == Actual)
                ----------1---------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT3,T16,T7

 LINE       126
 EXPRESSION (data_invalid_q | (pack_valid & ((~data_intg_ok))))
             -------1------   ----------------2---------------
-1--2-StatusTests
00CoveredT1,T2,T3
01CoveredT18,T228
10CoveredT18,T228

 LINE       126
 SUB-EXPRESSION (pack_valid & ((~data_intg_ok)))
                 -----1----   --------2--------
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT3,T16,T7
11CoveredT18,T228

 LINE       143
 EXPRESSION (ack_i | data_invalid_q)
             --1--   -------2------
-1--2-StatusTests
00CoveredT1,T2,T3
01Not Covered
10CoveredT1,T2,T3

 LINE       144
 EXPRESSION (done_i | data_invalid_q)
             ---1--   -------2------
-1--2-StatusTests
00CoveredT1,T2,T3
01CoveredT18,T228
10CoveredT2,T3,T4

 LINE       148
 EXPRESSION ((idx > '0) ? (idx_sub_one == sel_i) : 1'b0)
             -----1----
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT3,T16,T7

 LINE       148
 SUB-EXPRESSION (idx_sub_one == sel_i)
                -----------1----------
-1-StatusTests
0CoveredT3,T16,T7
1CoveredT7,T17,T69

 LINE       153
 EXPRESSION (pack_valid && (idx == MaxIdx))
             -----1----    -------2-------
-1--2-StatusTests
01CoveredT3,T16,T7
10CoveredT3,T16,T7
11CoveredT3,T16,T7

 LINE       153
 SUB-EXPRESSION (idx == MaxIdx)
                -------1-------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT3,T16,T7

 LINE       194
 EXPRESSION (req_i && ((|sel_i)))
             --1--    -----2----
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT3,T16,T7
11CoveredT7,T17,T69

 LINE       204
 EXPRESSION (idx == align_next)
            ---------1---------
-1-StatusTests
0CoveredT9,T12
1CoveredT7,T17,T69

 LINE       213
 EXPRESSION (req_i && (idx == MaxIdx))
             --1--    -------2-------
-1--2-StatusTests
01CoveredT3,T16,T7
10CoveredT3,T16,T7
11CoveredT3,T16,T7

 LINE       213
 SUB-EXPRESSION (idx == MaxIdx)
                -------1-------
-1-StatusTests
0CoveredT3,T16,T7
1CoveredT3,T16,T7

 LINE       216
 EXPRESSION (req_i && last_i)
             --1--    ---2--
-1--2-StatusTests
01CoveredT3,T16,T17
10CoveredT3,T16,T7
11CoveredT7,T17,T69

 LINE       230
 EXPRESSION (idx == MaxIdx)
            -------1-------
-1-StatusTests
0CoveredT9,T12
1CoveredT7,T17,T69

 LINE       237
 EXPRESSION (scramble_i ? StCalcMask : StReqFlash)
             -----1----
-1-StatusTests
0CoveredT7,T17,T19
1CoveredT3,T16,T42

 LINE       270
 EXPRESSION (ack ? StWaitFlash : StReqFlash)
             -1-
-1-StatusTests
0CoveredT7,T17,T19
1CoveredT3,T16,T7

 LINE       273
 EXPRESSION (ack ? StIdle : StReqFlash)
             -1-
-1-StatusTests
0CoveredT7,T17,T19
1CoveredT3,T7,T17

 LINE       302
 EXPRESSION (req_o && ack)
             --1--    -2-
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT7,T17,T19
11CoveredT3,T16,T7

 LINE       304
 EXPRESSION (calc_req_o && calc_ack_i)
             -----1----    -----2----
-1--2-StatusTests
01CoveredT3,T4,T16
10CoveredT3,T16,T42
11CoveredT3,T16,T42

 LINE       307
 EXPRESSION (scramble_req_o && scramble_ack_i)
             -------1------    -------2------
-1--2-StatusTests
01CoveredT3,T4,T16
10CoveredT3,T16,T42
11CoveredT3,T16,T42

 LINE       355
 EXPRESSION (ecc_i ? ecc_data : ({{flash_phy_pkg::EccWidth {1'b1}}, ecc_data_in}))
             --1--
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT1,T2,T3

 LINE       365
 EXPRESSION (req_i && ack_o && last_i)
             --1--    --2--    ---3--
-1--2--3-StatusTests
011Not Covered
101CoveredT3,T16,T7
110CoveredT3,T16,T7
111CoveredT3,T16,T7

 LINE       366
 EXPRESSION (txn_done ? '0 : (done ? ((done_cnt_q + 16'b1)) : done_cnt_q))
             ----1---
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT3,T16,T7

 LINE       366
 SUB-EXPRESSION (done ? ((done_cnt_q + 16'b1)) : done_cnt_q)
                 --1-
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT2,T3,T4

FSM Coverage for Instance : tb.dut.u_eflash.gen_flash_cores[1].u_core.gen_prog_data.u_prog
Summary for FSM :: state_q
TotalCoveredPercent
States 11 11 100.00 (Not included in score)
Transitions 15 15 100.00
Sequences 0 0

State, Transition and Sequence Details for FSM :: state_q
statesLine No.CoveredTests
StCalcEcc 252 Covered T16,T42,T35
StCalcMask 237 Covered T16,T42,T35
StCalcPlainEcc 215 Covered T16,T7,T17
StDisabled 193 Covered T3,T5,T11
StIdle 273 Covered T1,T2,T3
StPackData 197 Covered T16,T7,T17
StPostPack 218 Covered T7,T17,T69
StPrePack 195 Covered T7,T17,T69
StReqFlash 237 Covered T16,T7,T17
StScrambleData 244 Covered T16,T42,T35
StWaitFlash 270 Covered T3,T16,T7


transitionsLine No.CoveredTests
StCalcEcc->StReqFlash 257 Covered T16,T42,T35
StCalcMask->StScrambleData 244 Covered T16,T42,T35
StCalcPlainEcc->StCalcMask 237 Covered T16,T42,T35
StCalcPlainEcc->StReqFlash 237 Covered T7,T17,T19
StIdle->StDisabled 193 Covered T3,T5,T11
StIdle->StPackData 197 Covered T16,T7,T17
StIdle->StPrePack 195 Covered T7,T17,T69
StPackData->StCalcPlainEcc 215 Covered T16,T7,T17
StPackData->StPostPack 218 Covered T7,T17,T69
StPostPack->StCalcPlainEcc 231 Covered T7,T17,T69
StPrePack->StPackData 205 Covered T7,T17,T69
StReqFlash->StIdle 273 Covered T3,T7,T17
StReqFlash->StWaitFlash 270 Covered T3,T16,T7
StScrambleData->StCalcEcc 252 Covered T16,T42,T35
StWaitFlash->StIdle 280 Covered T3,T16,T7



Branch Coverage for Instance : tb.dut.u_eflash.gen_flash_cores[1].u_core.gen_prog_data.u_prog
Line No.TotalCoveredPercent
Branches 55 55 100.00
TERNARY 111 2 2 100.00
TERNARY 148 2 2 100.00
TERNARY 355 2 2 100.00
TERNARY 366 3 3 100.00
IF 130 2 2 100.00
IF 151 4 4 100.00
IF 164 2 2 100.00
CASE 186 27 27 100.00
IF 299 6 6 100.00
IF 323 3 3 100.00
IF 369 2 2 100.00

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

LineNo. Expression -1-: 111 ((data_sel == Actual)) ?

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


LineNo. Expression -1-: 148 ((idx > '0)) ?

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


LineNo. Expression -1-: 355 (ecc_i) ?

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


LineNo. Expression -1-: 366 (txn_done) ? -2-: 366 (done) ?

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


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

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


LineNo. Expression -1-: 151 if ((!rst_ni)) -2-: 153 if ((pack_valid && (idx == MaxIdx))) -3-: 156 if (pack_valid)

Branches:
-1--2--3-StatusTests
1 - - Covered T1,T2,T3
0 1 - Covered T3,T16,T7
0 0 1 Covered T3,T16,T7
0 0 0 Covered T1,T2,T3


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

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


LineNo. Expression -1-: 186 case (state_q) -2-: 189 if (prim_mubi_pkg::mubi4_test_true_loose(disable_i)) -3-: 194 if ((req_i && (|sel_i))) -4-: 196 if (req_i) -5-: 204 if ((idx == align_next)) -6-: 213 if ((req_i && (idx == MaxIdx))) -7-: 216 if ((req_i && last_i)) -8-: 219 if (req_i) -9-: 230 if ((idx == MaxIdx)) -10-: 237 (scramble_i) ? -11-: 243 if (calc_ack_i) -12-: 251 if (scramble_ack_i) -13-: 269 if (last_i) -14-: 270 (ack) ? -15-: 273 (ack) ? -16-: 278 if (done)

Branches:
-1--2--3--4--5--6--7--8--9--10--11--12--13--14--15--16-StatusTests
StIdle 1 - - - - - - - - - - - - - - Covered T3,T5,T11
StIdle 0 1 - - - - - - - - - - - - - Covered T7,T17,T69
StIdle 0 0 1 - - - - - - - - - - - - Covered T3,T16,T7
StIdle 0 0 0 - - - - - - - - - - - - Covered T1,T2,T3
StPrePack - - - 1 - - - - - - - - - - - Covered T7,T17,T69
StPrePack - - - 0 - - - - - - - - - - - Covered T9,T12
StPackData - - - - 1 - - - - - - - - - - Covered T3,T16,T7
StPackData - - - - 0 1 - - - - - - - - - Covered T7,T17,T69
StPackData - - - - 0 0 1 - - - - - - - - Covered T3,T16,T7
StPackData - - - - 0 0 0 - - - - - - - - Covered T3,T16,T7
StPostPack - - - - - - - 1 - - - - - - - Covered T7,T17,T69
StPostPack - - - - - - - 0 - - - - - - - Covered T9,T12
StCalcPlainEcc - - - - - - - - 1 - - - - - - Covered T3,T16,T42
StCalcPlainEcc - - - - - - - - 0 - - - - - - Covered T7,T17,T19
StCalcMask - - - - - - - - - 1 - - - - - Covered T3,T16,T42
StCalcMask - - - - - - - - - 0 - - - - - Covered T3,T16,T42
StScrambleData - - - - - - - - - - 1 - - - - Covered T3,T16,T42
StScrambleData - - - - - - - - - - 0 - - - - Covered T3,T16,T42
StCalcEcc - - - - - - - - - - - - - - - Covered T3,T16,T42
StReqFlash - - - - - - - - - - - 1 1 - - Covered T3,T16,T7
StReqFlash - - - - - - - - - - - 1 0 - - Covered T7,T17,T19
StReqFlash - - - - - - - - - - - 0 - 1 - Covered T3,T7,T17
StReqFlash - - - - - - - - - - - 0 - 0 - Covered T7,T17,T19
StWaitFlash - - - - - - - - - - - - - - 1 Covered T3,T16,T7
StWaitFlash - - - - - - - - - - - - - - 0 Covered T3,T16,T7
StDisabled - - - - - - - - - - - - - - - Covered T3,T5,T11
default - - - - - - - - - - - - - - - Covered T13,T14,T15


LineNo. Expression -1-: 299 if ((!rst_ni)) -2-: 302 if ((req_o && ack)) -3-: 304 if ((calc_req_o && calc_ack_i)) -4-: 307 if ((scramble_req_o && scramble_ack_i)) -5-: 309 if (pack_valid)

Branches:
-1--2--3--4--5-StatusTests
1 - - - - Covered T1,T2,T3
0 1 - - - Covered T3,T16,T7
0 0 1 - - Covered T3,T16,T42
0 0 0 1 - Covered T3,T16,T42
0 0 0 0 1 Covered T3,T16,T7
0 0 0 0 0 Covered T1,T2,T3


LineNo. Expression -1-: 323 if ((!rst_ni)) -2-: 325 if (plain_ecc_en)

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


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

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


Assert Coverage for Instance : tb.dut.u_eflash.gen_flash_cores[1].u_core.gen_prog_data.u_prog
TotalAttemptedPercentSucceeded/MatchedPercent
Assertions 5 5 100.00 5 100.00
Cover properties 0 0 0
Cover sequences 0 0 0
Total 5 5 100.00 5 100.00




Assertion Details

NameAttemptsReal SuccessesFailuresIncomplete
OneDonePerTxn_A 384110328 1207304 0 0
PostPackRule_A 384110328 1030 0 0
PrePackRule_A 384110328 698 0 0
WidthCheck_A 1039 1039 0 0
u_state_regs_A 384110328 383264437 0 0


OneDonePerTxn_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 384110328 1207304 0 0
T3 401227 32768 0 0
T4 69571 0 0 0
T5 1234 0 0 0
T6 246682 0 0 0
T7 72697 3 0 0
T11 902 0 0 0
T16 2748 1 0 0
T17 435474 31 0 0
T19 779320 8608 0 0
T35 0 865 0 0
T36 0 638 0 0
T39 244559 0 0 0
T42 0 1115 0 0
T75 0 44 0 0
T119 0 661 0 0

PostPackRule_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 384110328 1030 0 0
T7 72697 3 0 0
T11 902 0 0 0
T17 435474 22 0 0
T19 779320 0 0 0
T23 618766 0 0 0
T30 0 3 0 0
T31 0 5 0 0
T34 2376 0 0 0
T39 244559 0 0 0
T40 1607 0 0 0
T42 440454 0 0 0
T69 0 7 0 0
T95 3167 0 0 0
T120 0 3 0 0
T211 0 4 0 0
T224 0 3 0 0
T225 0 2 0 0
T226 0 19 0 0

PrePackRule_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 384110328 698 0 0
T7 72697 2 0 0
T11 902 0 0 0
T17 435474 14 0 0
T19 779320 0 0 0
T23 618766 0 0 0
T30 0 1 0 0
T31 0 5 0 0
T34 2376 0 0 0
T39 244559 0 0 0
T40 1607 0 0 0
T42 440454 0 0 0
T69 0 3 0 0
T95 3167 0 0 0
T120 0 1 0 0
T211 0 3 0 0
T224 0 2 0 0
T225 0 1 0 0
T226 0 15 0 0

WidthCheck_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 1039 1039 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
T6 1 1 0 0
T7 1 1 0 0
T11 1 1 0 0
T16 1 1 0 0
T17 1 1 0 0

u_state_regs_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 384110328 383264437 0 0
T1 1374 1228 0 0
T2 45274 45178 0 0
T3 401227 401211 0 0
T4 69571 69451 0 0
T5 1234 1183 0 0
T6 246682 234990 0 0
T7 72697 72631 0 0
T11 902 837 0 0
T16 2748 2605 0 0
T17 435474 435404 0 0

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