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

Module : pwrmgr_slow_fsm
SCORELINECONDTOGGLEFSMBRANCHASSERT
97.35 100.00 92.65 100.00 94.12 100.00

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

Module self-instances :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
tb.dut.u_slow_fsm 97.35 100.00 92.65 100.00 94.12 100.00



Module Instance : tb.dut.u_slow_fsm

Instance :
SCORELINECONDTOGGLEFSMBRANCHASSERT
97.35 100.00 92.65 100.00 94.12 100.00


Instance's subtree :
SCORELINECONDTOGGLEFSMBRANCHASSERT
97.58 100.00 92.65 100.00 95.24 100.00


Parent :
SCORELINECONDTOGGLEFSMBRANCHASSERTNAME
96.62 100.00 83.87 99.21 100.00 100.00 dut


Subtrees :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
u_main_pok_sync 100.00 100.00 100.00
u_state_regs 100.00 100.00 100.00 100.00
u_usb_clk_en 100.00 100.00 100.00


Since this is the module's only instance, the coverage report is the same as for the module.
Line Coverage for Module : pwrmgr_slow_fsm
Line No.TotalCoveredPercent
TOTAL110110100.00
CONT_ASSIGN7511100.00
CONT_ASSIGN8511100.00
CONT_ASSIGN9011100.00
CONT_ASSIGN9111100.00
CONT_ASSIGN9511100.00
CONT_ASSIGN10511100.00
CONT_ASSIGN10611100.00
CONT_ASSIGN10711100.00
ALWAYS1102323100.00
ALWAYS13833100.00
ALWAYS1414949100.00
ALWAYS26833100.00
ALWAYS28866100.00
CONT_ASSIGN30211100.00
ALWAYS30555100.00
CONT_ASSIGN31411100.00
CONT_ASSIGN31511100.00
CONT_ASSIGN31611100.00
CONT_ASSIGN31711100.00
CONT_ASSIGN31811100.00
CONT_ASSIGN32011100.00
CONT_ASSIGN32111100.00
CONT_ASSIGN33511100.00
CONT_ASSIGN33711100.00
CONT_ASSIGN33811100.00
CONT_ASSIGN33911100.00
CONT_ASSIGN34911100.00
WARNING: The source file '/workspace/default/sim-vcs/../src/lowrisc_ip_pwrmgr_component_0.1/rtl/pwrmgr_slow_fsm.sv' or '../src/lowrisc_ip_pwrmgr_component_0.1/rtl/pwrmgr_slow_fsm.sv' was not found, so annotated line coverage report could not be generated.
Line No.CoveredStatements
75 1 1
85 1 1
90 1 1
91 1 1
95 1 1
105 1 1
106 1 1
107 1 1
110 1 1
111 1 1
112 1 1
113 1 1
114 1 1
115 1 1
116 1 1
117 1 1
118 1 1
119 1 1
120 1 1
121 1 1
123 1 1
124 1 1
125 1 1
126 1 1
127 1 1
128 1 1
129 1 1
130 1 1
131 1 1
132 1 1
133 1 1
138 3 3
141 1 1
142 1 1
143 1 1
144 1 1
145 1 1
146 1 1
148 1 1
149 1 1
150 1 1
152 1 1
154 1 1
156 1 1
159 1 1
160 1 1
166 1 1
167 1 1
168 1 1
169 1 1
==> MISSING_ELSE
174 1 1
176 1 1
177 1 1
178 1 1
179 1 1
MISSING_ELSE
184 1 1
185 1 1
189 1 1
191 1 1
192 1 1
MISSING_ELSE
197 1 1
198 1 1
202 1 1
203 1 1
204 1 1
MISSING_ELSE
211 1 1
213 1 1
214 1 1
MISSING_ELSE
219 1 1
220 1 1
222 1 1
223 1 1
224 1 1
MISSING_ELSE
229 1 1
231 1 1
232 1 1
MISSING_ELSE
238 1 1
239 1 1
243 1 1
247 1 1
248 1 1
MISSING_ELSE
268 1 1
269 1 1
271 1 1
288 1 1
289 1 1
290 1 1
291 1 1
292 1 1
293 1 1
MISSING_ELSE
302 1 1
305 1 1
306 1 1
307 1 1
308 1 1
310 1 1
314 1 1
315 1 1
316 1 1
317 1 1
318 1 1
320 1 1
321 1 1
335 1 1
337 1 1
338 1 1
339 1 1
349 1 1


Cond Coverage for Module : pwrmgr_slow_fsm
TotalCoveredPercent
Conditions686392.65
Logical686392.65
Non-Logical00
Event00

 LINE       75
 EXPRESSION (ast_i.core_clk_val & ast_i.io_clk_val & (((~usb_clk_en_active_i)) | ast_i.usb_clk_val))
             ---------1--------   --------2-------   -----------------------3----------------------
-1--2--3-StatusTests
011CoveredT2,T4,T6
101CoveredT2,T6,T29
110CoveredT1,T3,T5
111CoveredT1,T2,T3

 LINE       75
 SUB-EXPRESSION (((~usb_clk_en_active_i)) | ast_i.usb_clk_val)
                 ------------1-----------   --------2--------
-1--2-StatusTests
00CoveredT1,T2,T3
01CoveredT1,T2,T3
10CoveredT1,T29,T13

 LINE       85
 EXPRESSION (main_pd_ni & usb_clk_en_lp_i)
             -----1----   -------2-------
-1--2-StatusTests
01CoveredT1,T2,T5
10CoveredT1,T2,T3
11CoveredT1,T3,T13

 LINE       90
 EXPRESSION (main_pd_ni & core_clk_en_i)
             -----1----   ------2------
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT1,T2,T3
11CoveredT1,T3,T13

 LINE       91
 EXPRESSION (main_pd_ni & io_clk_en_i)
             -----1----   -----2-----
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT1,T2,T3
11CoveredT1,T2,T3

 LINE       95
 EXPRESSION ((core_clk_en | ((~ast_i.core_clk_val))) & (io_clk_en | ((~ast_i.io_clk_val))) & (usb_clk_en_lp | ((~ast_i.usb_clk_val))))
             -------------------1-------------------   -----------------2-----------------   --------------------3-------------------
-1--2--3-StatusTests
011CoveredT1,T2,T5
101CoveredT1,T2,T4
110CoveredT3,T8,T29
111CoveredT1,T2,T3

 LINE       95
 SUB-EXPRESSION (core_clk_en | ((~ast_i.core_clk_val)))
                 -----1-----   -----------2-----------
-1--2-StatusTests
00CoveredT1,T2,T3
01CoveredT1,T2,T3
10CoveredT1,T3,T13

 LINE       95
 SUB-EXPRESSION (io_clk_en | ((~ast_i.io_clk_val)))
                 ----1----   ----------2----------
-1--2-StatusTests
00CoveredT1,T2,T3
01CoveredT1,T2,T3
10CoveredT1,T2,T3

 LINE       95
 SUB-EXPRESSION (usb_clk_en_lp | ((~ast_i.usb_clk_val)))
                 ------1------   -----------2----------
-1--2-StatusTests
00CoveredT1,T2,T3
01CoveredT1,T2,T3
10CoveredT1,T3,T13

 LINE       105
 EXPRESSION (fsm_invalid_q | clk_active | core_clk_en)
             ------1------   -----2----   -----3-----
-1--2--3-StatusTests
000CoveredT1,T2,T3
001CoveredT15,T41,T48
010CoveredT1,T2,T3
100CoveredT20,T21,T22

 LINE       106
 EXPRESSION (fsm_invalid_q | clk_active | io_clk_en)
             ------1------   -----2----   ----3----
-1--2--3-StatusTests
000CoveredT1,T2,T3
001CoveredT15,T41,T48
010CoveredT1,T2,T3
100CoveredT20,T21,T22

 LINE       107
 EXPRESSION (fsm_invalid_q | (clk_active ? usb_clk_en_active_i : usb_clk_en_lp))
             ------1------   -------------------------2------------------------
-1--2-StatusTests
00CoveredT1,T2,T3
01CoveredT1,T2,T3
10CoveredT20,T21,T22

 LINE       107
 SUB-EXPRESSION (clk_active ? usb_clk_en_active_i : usb_clk_en_lp)
                 -----1----
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT1,T2,T3

 LINE       166
 EXPRESSION (wakeup_i || reset_req_i)
             ----1---    -----2-----
-1--2-StatusTests
00Not Covered
01Not Covered
10CoveredT14,T15,T49

 LINE       169
 EXPRESSION (reset_req_i ? Reset : Wake)
             -----1-----
-1-StatusTests
0CoveredT14,T15,T49
1Not Covered

 LINE       202
 EXPRESSION (ack_pwrup_i && ((!req_pwrdn_i)))
             -----1-----    --------2-------
-1--2-StatusTests
01CoveredT1,T2,T3
10Not Covered
11CoveredT1,T2,T3

 LINE       213
 EXPRESSION (req_pwrdn_i && ((!ack_pwrup_i)))
             -----1-----    --------2-------
-1--2-StatusTests
01CoveredT1,T2,T3
10Not Covered
11CoveredT2,T3,T29

 LINE       247
 EXPRESSION (((!main_pok_st)) | main_pd_ni)
             --------1-------   -----2----
-1--2-StatusTests
00CoveredT50
01CoveredT14,T15,T49
10CoveredT50

 LINE       290
 EXPRESSION (((!pd_nd)) && mon_main_pok)
             -----1----    ------2-----
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT20,T21,T22
11CoveredT20,T21,T22

 LINE       302
 EXPRESSION (mon_main_pok & ((~main_pok_st)))
             ------1-----   --------2-------
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT1,T2,T3
11CoveredT6,T7,T8

 LINE       310
 EXPRESSION (rst_req_o | pwr_rst_req)
             ----1----   -----2-----
-1--2-StatusTests
00CoveredT1,T2,T3
01CoveredT6,T7,T8
10CoveredT6,T7,T8

 LINE       327
 EXPRESSION (usb_clk_en_q | usb_ip_clk_status_i)
             ------1-----   ---------2---------
-1--2-StatusTests
00CoveredT1,T2,T3
01CoveredT1,T2,T29
10CoveredT1,T2,T3

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

State, Transition and Sequence Details for FSM :: state_q
statesLine No.CoveredTests
SlowPwrStateAckPwrDn 214 Covered T2,T3,T29
SlowPwrStateClocksOff 224 Covered T14,T15,T49
SlowPwrStateClocksOn 185 Covered T1,T2,T3
SlowPwrStateIdle 204 Covered T1,T2,T3
SlowPwrStateLowPower 248 Covered T14,T15,T49
SlowPwrStateMainPowerOff 239 Covered T14,T15,T49
SlowPwrStateMainPowerOn 159 Covered T1,T2,T3
SlowPwrStatePwrClampOff 179 Covered T1,T2,T3
SlowPwrStatePwrClampOn 232 Covered T14,T15,T49
SlowPwrStateReqPwrUp 192 Covered T1,T2,T3
SlowPwrStateReset 158 Covered T1,T2,T3


transitionsLine No.CoveredTests
SlowPwrStateAckPwrDn->SlowPwrStateClocksOff 224 Covered T14,T15,T49
SlowPwrStateClocksOff->SlowPwrStatePwrClampOn 232 Covered T14,T15,T49
SlowPwrStateClocksOn->SlowPwrStateReqPwrUp 192 Covered T1,T2,T3
SlowPwrStateIdle->SlowPwrStateAckPwrDn 214 Covered T2,T3,T29
SlowPwrStateLowPower->SlowPwrStateMainPowerOn 167 Covered T14,T15,T49
SlowPwrStateMainPowerOff->SlowPwrStateLowPower 248 Covered T14,T15,T49
SlowPwrStateMainPowerOn->SlowPwrStatePwrClampOff 179 Covered T1,T2,T3
SlowPwrStatePwrClampOff->SlowPwrStateClocksOn 185 Covered T1,T2,T3
SlowPwrStatePwrClampOn->SlowPwrStateMainPowerOff 239 Covered T14,T15,T49
SlowPwrStateReqPwrUp->SlowPwrStateIdle 204 Covered T1,T2,T3
SlowPwrStateReset->SlowPwrStateMainPowerOn 159 Covered T1,T2,T3



Branch Coverage for Module : pwrmgr_slow_fsm
Line No.TotalCoveredPercent
Branches 34 32 94.12
IF 110 2 2 100.00
IF 138 2 2 100.00
CASE 156 21 19 90.48
IF 268 2 2 100.00
IF 288 4 4 100.00
IF 305 3 3 100.00

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

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

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


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

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


LineNo. Expression -1-: 156 case (state_q) -2-: 166 if ((wakeup_i || reset_req_i)) -3-: 169 (reset_req_i) ? -4-: 176 if (main_pok_st) -5-: 191 if (all_clks_valid) -6-: 202 if ((ack_pwrup_i && (!req_pwrdn_i))) -7-: 213 if ((req_pwrdn_i && (!ack_pwrup_i))) -8-: 222 if ((!req_pwrdn_i)) -9-: 229 if (all_clks_invalid) -10-: 247 if (((!main_pok_st) | main_pd_ni))

Branches:
-1--2--3--4--5--6--7--8--9--10-StatusTests
SlowPwrStateReset - - - - - - - - - Covered T1,T2,T3
SlowPwrStateLowPower 1 1 - - - - - - - Not Covered
SlowPwrStateLowPower 1 0 - - - - - - - Covered T14,T15,T49
SlowPwrStateLowPower 0 - - - - - - - - Not Covered
SlowPwrStateMainPowerOn - - 1 - - - - - - Covered T1,T2,T3
SlowPwrStateMainPowerOn - - 0 - - - - - - Covered T1,T2,T3
SlowPwrStatePwrClampOff - - - - - - - - - Covered T1,T2,T3
SlowPwrStateClocksOn - - - 1 - - - - - Covered T1,T2,T3
SlowPwrStateClocksOn - - - 0 - - - - - Covered T1,T2,T3
SlowPwrStateReqPwrUp - - - - 1 - - - - Covered T1,T2,T3
SlowPwrStateReqPwrUp - - - - 0 - - - - Covered T1,T2,T3
SlowPwrStateIdle - - - - - 1 - - - Covered T2,T3,T29
SlowPwrStateIdle - - - - - 0 - - - Covered T1,T2,T3
SlowPwrStateAckPwrDn - - - - - - 1 - - Covered T14,T15,T49
SlowPwrStateAckPwrDn - - - - - - 0 - - Covered T2,T3,T29
SlowPwrStateClocksOff - - - - - - - 1 - Covered T14,T15,T49
SlowPwrStateClocksOff - - - - - - - 0 - Covered T14,T15,T49
SlowPwrStatePwrClampOn - - - - - - - - - Covered T14,T15,T49
SlowPwrStateMainPowerOff - - - - - - - - 1 Covered T14,T15,T49
SlowPwrStateMainPowerOff - - - - - - - - 0 Covered T50
default - - - - - - - - - Covered T20,T21,T22


LineNo. Expression -1-: 268 if ((!rst_main_ni))

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


LineNo. Expression -1-: 288 if ((!rst_ni)) -2-: 290 if (((!pd_nd) && mon_main_pok)) -3-: 292 if (set_main_pok)

Branches:
-1--2--3-StatusTests
1 - - Covered T1,T2,T3
0 1 - Covered T20,T21,T22
0 0 1 Covered T1,T2,T3
0 0 0 Covered T1,T2,T3


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

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


Assert Coverage for Module : pwrmgr_slow_fsm
TotalAttemptedPercentSucceeded/MatchedPercent
Assertions 2 2 100.00 2 100.00
Cover properties 0 0 0
Cover sequences 0 0 0
Total 2 2 100.00 2 100.00




Assertion Details

NameAttemptsReal SuccessesFailuresIncomplete
IntRstReq_A 201071 195021 0 0
u_state_regs_A 306740 296820 0 0


IntRstReq_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 201071 195021 0 0
T1 240 235 0 0
T2 551 526 0 0
T3 506 481 0 0
T4 538 533 0 0
T5 275 250 0 0
T6 47 42 0 0
T7 66 61 0 0
T8 47 42 0 0
T9 53 48 0 0
T10 3176 3171 0 0

u_state_regs_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 306740 296820 0 0
T1 240 235 0 0
T2 551 526 0 0
T3 506 481 0 0
T4 538 533 0 0
T5 275 250 0 0
T6 718 653 0 0
T7 342 337 0 0
T8 299 289 0 0
T9 323 303 0 0
T10 3176 3171 0 0

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