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

Module : spid_jedec
SCORELINECONDTOGGLEFSMBRANCHASSERT
99.38 100.00 100.00 100.00 96.88 100.00

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

Module self-instances :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
tb.dut.u_jedec 99.38 100.00 100.00 100.00 96.88 100.00



Module Instance : tb.dut.u_jedec

Instance :
SCORELINECONDTOGGLEFSMBRANCHASSERT
99.38 100.00 100.00 100.00 96.88 100.00


Instance's subtree :
SCORELINECONDTOGGLEFSMBRANCHASSERT
99.38 100.00 100.00 100.00 96.88 100.00


Parent :
SCORELINECONDTOGGLEFSMBRANCHASSERTNAME
91.69 94.25 84.31 96.94 87.50 95.45 dut


Subtrees :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
no children


Since this is the module's only instance, the coverage report is the same as for the module.
Line Coverage for Module : spid_jedec
Line No.TotalCoveredPercent
TOTAL4747100.00
CONT_ASSIGN6411100.00
ALWAYS7244100.00
CONT_ASSIGN7811100.00
ALWAYS8244100.00
ALWAYS9055100.00
ALWAYS10088100.00
ALWAYS12044100.00
CONT_ASSIGN12411100.00
ALWAYS13133100.00
ALWAYS1371616100.00
WARNING: The source file '/workspace/default/sim-vcs/../src/lowrisc_ip_spi_device_0.1/rtl/spid_jedec.sv' or '../src/lowrisc_ip_spi_device_0.1/rtl/spid_jedec.sv' was not found, so annotated line coverage report could not be generated.
Line No.CoveredStatements
64 1 1
72 2 2
73 2 2
MISSING_ELSE
78 1 1
82 2 2
83 1 1
84 1 1
MISSING_ELSE
90 1 1
91 1 1
92 1 1
94 1 1
95 1 1
100 1 1
102 1 1
104 1 1
105 1 1
106 1 1
107 1 1
108 1 1
112 1 1
120 2 2
121 2 2
MISSING_ELSE
124 1 1
131 2 2
132 1 1
137 1 1
139 1 1
140 1 1
142 1 1
144 1 1
145 1 1
148 1 1
MISSING_ELSE
159 1 1
160 1 1
MISSING_ELSE
163 1 1
167 1 1
168 1 1
MISSING_ELSE
171 1 1
178 1 1
180 1 1
181 1 1
MISSING_ELSE


Cond Coverage for Module : spid_jedec
TotalCoveredPercent
Conditions2929100.00
Logical2929100.00
Non-Logical00
Event00

 LINE       83
 EXPRESSION ((st_q == StCC) && outclk_p2s_sent_i)
             -------1------    --------2--------
-1--2-StatusTests
01CoveredT3,T14,T18
10CoveredT3,T14,T18
11CoveredT3,T14,T18

 LINE       83
 SUB-EXPRESSION (st_q == StCC)
                -------1------
-1-StatusTests
0CoveredT2,T3,T6
1CoveredT3,T14,T18

 LINE       102
 EXPRESSION (st_q == StIdle)
            --------1-------
-1-StatusTests
0CoveredT3,T14,T18
1CoveredT1,T2,T3

 LINE       104
 EXPRESSION (cc_needed ? jedec.cc : jedec.jedec_id)
             ----1----
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT3,T6,T8

 LINE       105
 EXPRESSION (st_q == StCC)
            -------1------
-1-StatusTests
0CoveredT3,T14,T18
1CoveredT3,T14,T18

 LINE       107
 EXPRESSION (st_q == StJedecId)
            ---------1---------
-1-StatusTests
0CoveredT3,T14,T18
1CoveredT3,T14,T18

 LINE       112
 EXPRESSION ((byte_sel_q >= 2'b10) ? 8'b0 : ((byte_sel_q == 2'b1) ? jedec.device_id[15:8] : jedec.device_id[7:0]))
             ----------1----------
-1-StatusTests
0CoveredT3,T14,T18
1CoveredT3,T14,T18

 LINE       112
 SUB-EXPRESSION ((byte_sel_q == 2'b1) ? jedec.device_id[15:8] : jedec.device_id[7:0])
                 ----------1---------
-1-StatusTests
0CoveredT3,T14,T18
1CoveredT3,T14,T18

 LINE       112
 SUB-EXPRESSION (byte_sel_q == 2'b1)
                ----------1---------
-1-StatusTests
0CoveredT3,T14,T18
1CoveredT3,T14,T18

 LINE       124
 EXPRESSION ((byte_sel_q == 2'b10) ? 2'b10 : ((byte_sel_q + 1'b1)))
             ----------1----------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT3,T14,T18

 LINE       124
 SUB-EXPRESSION (byte_sel_q == 2'b10)
                ----------1----------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT3,T14,T18

 LINE       144
 EXPRESSION (sel_dp_i == DpReadJEDEC)
            ------------1------------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT3,T14,T18

 LINE       145
 EXPRESSION (cc_needed ? StCC : StJedecId)
             ----1----
-1-StatusTests
0CoveredT3,T14,T18
1CoveredT3,T14,T18

 LINE       159
 EXPRESSION (cc_count == jedec.num_cc)
            -------------1------------
-1-StatusTests
0CoveredT3,T14,T18
1CoveredT3,T18,T19

FSM Coverage for Module : spid_jedec
Summary for FSM :: st_q
TotalCoveredPercent
States 4 4 100.00 (Not included in score)
Transitions 4 4 100.00
Sequences 0 0

State, Transition and Sequence Details for FSM :: st_q
statesLine No.CoveredTests
StCC 145 Covered T3,T14,T18
StDevId 168 Covered T3,T14,T18
StIdle 102 Covered T1,T2,T3
StJedecId 145 Covered T3,T14,T18


transitionsLine No.CoveredTests
StCC->StJedecId 160 Covered T3,T18,T19
StIdle->StCC 145 Covered T3,T14,T18
StIdle->StJedecId 145 Covered T3,T14,T18
StJedecId->StDevId 168 Covered T3,T14,T18



Branch Coverage for Module : spid_jedec
Line No.TotalCoveredPercent
Branches 32 31 96.88
TERNARY 124 2 2 100.00
IF 72 3 3 100.00
IF 82 3 3 100.00
IF 90 2 2 100.00
IF 102 7 7 100.00
IF 120 3 3 100.00
IF 131 2 2 100.00
CASE 142 10 9 90.00

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

LineNo. Expression -1-: 124 ((byte_sel_q == 2'b10)) ?

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


LineNo. Expression -1-: 72 if ((!rst_ni)) -2-: 73 if (cmd_sync_pulse_i)

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


LineNo. Expression -1-: 82 if ((!rst_ni)) -2-: 83 if (((st_q == StCC) && outclk_p2s_sent_i))

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


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

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


LineNo. Expression -1-: 102 if ((st_q == StIdle)) -2-: 104 (cc_needed) ? -3-: 105 if ((st_q == StCC)) -4-: 107 if ((st_q == StJedecId)) -5-: 112 ((byte_sel_q >= 2'b10)) ? -6-: 112 ((byte_sel_q == 2'b1)) ?

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


LineNo. Expression -1-: 120 if ((!rst_ni)) -2-: 121 if (next_byte)

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


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

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


LineNo. Expression -1-: 142 case (st_q) -2-: 144 if ((sel_dp_i == DpReadJEDEC)) -3-: 145 (cc_needed) ? -4-: 159 if ((cc_count == jedec.num_cc)) -5-: 167 if (outclk_p2s_sent_i) -6-: 180 if (outclk_p2s_sent_i)

Branches:
-1--2--3--4--5--6-StatusTests
StIdle 1 1 - - - Covered T3,T14,T18
StIdle 1 0 - - - Covered T3,T14,T18
StIdle 0 - - - - Covered T1,T2,T3
StCC - - 1 - - Covered T3,T18,T19
StCC - - 0 - - Covered T3,T14,T18
StJedecId - - - 1 - Covered T3,T14,T18
StJedecId - - - 0 - Covered T3,T14,T18
StDevId - - - - 1 Covered T3,T14,T18
StDevId - - - - 0 Covered T3,T14,T18
default - - - - - Not Covered


Assert Coverage for Module : spid_jedec
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
JedecStKnown_A 369852945 283533350 0 0


JedecStKnown_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 369852945 283533350 0 0
T2 36173 35692 0 0
T3 157016 144234 0 0
T4 3939 0 0 0
T6 21860 21860 0 0
T7 7594 0 0 0
T8 64296 64002 0 0
T9 82146 82146 0 0
T10 176 176 0 0
T11 30382 30218 0 0
T12 8648 8352 0 0
T13 0 17110 0 0
T14 0 807117 0 0

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