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

Module : spid_addr_4b
SCORELINECONDTOGGLEFSMBRANCHASSERT
98.41 100.00 95.24 100.00

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

Module self-instances :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
tb.dut.u_spid_addr_4b 98.41 100.00 95.24 100.00



Module Instance : tb.dut.u_spid_addr_4b

Instance :
SCORELINECONDTOGGLEFSMBRANCHASSERT
98.41 100.00 95.24 100.00


Instance's subtree :
SCORELINECONDTOGGLEFSMBRANCHASSERT
98.41 100.00 95.24 100.00


Parent :
SCORELINECONDTOGGLEFSMBRANCHASSERTNAME
95.39 96.31 94.03 97.00 93.33 96.30 dut


Subtrees :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
u_spi2sys_sync 100.00 100.00 100.00
u_sys2spi_sync 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 : spid_addr_4b
Line No.TotalCoveredPercent
TOTAL2828100.00
ALWAYS8388100.00
CONT_ASSIGN10811100.00
CONT_ASSIGN11011100.00
CONT_ASSIGN11111100.00
ALWAYS11566100.00
ALWAYS12833100.00
ALWAYS13688100.00
WARNING: The source file '/workspace/default/sim-vcs/../src/lowrisc_ip_spi_device_0.1/rtl/spid_addr_4b.sv' or '../src/lowrisc_ip_spi_device_0.1/rtl/spid_addr_4b.sv' was not found, so annotated line coverage report could not be generated.
Line No.CoveredStatements
83 1 1
84 1 1
85 1 1
86 1 1
89 1 1
90 1 1
93 1 1
94 1 1
108 1 1
110 1 1
111 1 1
115 1 1
116 1 1
117 1 1
118 1 1
119 1 1
120 1 1
MISSING_ELSE
128 1 1
129 1 1
131 1 1
136 1 1
137 1 1
138 1 1
140 1 1
141 1 1
143 1 1
144 1 1
147 1 1
MISSING_ELSE


Cond Coverage for Module : spid_addr_4b
TotalCoveredPercent
Conditions212095.24
Logical212095.24
Non-Logical00
Event00

 LINE       86
 EXPRESSION (sys_csb_deasserted_pulse_i && (sys_cfg_addr_4b_en_sync != reg2hw_cfg_addr_4b_en_q_i))
             -------------1------------    ---------------------------2--------------------------
-1--2-StatusTests
01CoveredT7,T1,T8
10CoveredT7,T12,T1
11CoveredT1,T8,T9

 LINE       86
 SUB-EXPRESSION (sys_cfg_addr_4b_en_sync != reg2hw_cfg_addr_4b_en_q_i)
                ---------------------------1--------------------------
-1-StatusTests
0CoveredT4,T5,T6
1CoveredT7,T1,T8

 LINE       108
 EXPRESSION (spi_reg_cfg_addr_4b_en_sync ? spi_addr_4b_clr_i : spi_addr_4b_set_i)
             -------------1-------------
-1-StatusTests
0CoveredT4,T6,T12
1CoveredT4,T5,T6

 LINE       110
 EXPRESSION (spi_reg_cfg_addr_4b_en_sync == spi_cfg_addr_4b_en_o)
            --------------------------1--------------------------
-1-StatusTests
0CoveredT4,T5,T6
1CoveredT4,T6,T7

 LINE       111
 EXPRESSION (spi_reg_cfg_addr_4b_en_sync != spi_cfg_addr_4b_en_o)
            --------------------------1--------------------------
-1-StatusTests
0CoveredT4,T5,T6
1CoveredT4,T5,T6

 LINE       117
 EXPRESSION (((!addr_4b_en_locked)) & addr_4b_en_lock_condition)
             -----------1----------   ------------2------------
-1--2-StatusTests
01Not Covered
10CoveredT4,T6,T7
11CoveredT1,T8,T9

 LINE       119
 EXPRESSION (addr_4b_en_locked & addr_4b_en_unlock_condition)
             --------1--------   -------------2-------------
-1--2-StatusTests
01CoveredT4,T6,T7
10CoveredT1,T8,T9
11CoveredT1,T8,T9

 LINE       144
 EXPRESSION (spi_csb_asserted_pulse_d1 & ((!addr_4b_en_locked)) & addr_4b_en_sw_update_condition)
             ------------1------------   -----------2----------   ---------------3--------------
-1--2--3-StatusTests
011CoveredT4,T6,T7
101CoveredT25,T30,T114
110CoveredT7,T12,T1
111CoveredT7,T8,T36

Branch Coverage for Module : spid_addr_4b
Line No.TotalCoveredPercent
Branches 16 16 100.00
TERNARY 108 2 2 100.00
IF 83 3 3 100.00
IF 115 4 4 100.00
IF 128 2 2 100.00
IF 136 5 5 100.00

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

LineNo. Expression -1-: 108 (spi_reg_cfg_addr_4b_en_sync) ?

Branches:
-1-StatusTests
1 Covered T4,T5,T6
0 Covered T4,T6,T12


LineNo. Expression -1-: 83 if ((!sys_rst_ni)) -2-: 86 if ((sys_csb_deasserted_pulse_i && (sys_cfg_addr_4b_en_sync != reg2hw_cfg_addr_4b_en_q_i)))

Branches:
-1--2-StatusTests
1 - Covered T4,T5,T6
0 1 Covered T1,T8,T9
0 0 Covered T4,T5,T6


LineNo. Expression -1-: 115 if ((!sys_rst_ni)) -2-: 117 if (((!addr_4b_en_locked) & addr_4b_en_lock_condition)) -3-: 119 if ((addr_4b_en_locked & addr_4b_en_unlock_condition))

Branches:
-1--2--3-StatusTests
1 - - Covered T4,T5,T6
0 1 - Covered T1,T8,T9
0 0 1 Covered T1,T8,T9
0 0 0 Covered T4,T6,T7


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

Branches:
-1-StatusTests
1 Covered T4,T5,T6
0 Covered T4,T6,T7


LineNo. Expression -1-: 136 if ((!sys_rst_ni)) -2-: 138 if (spi_addr_4b_set_i) -3-: 141 if (spi_addr_4b_clr_i) -4-: 144 if (((spi_csb_asserted_pulse_d1 & (!addr_4b_en_locked)) & addr_4b_en_sw_update_condition))

Branches:
-1--2--3--4-StatusTests
1 - - - Covered T4,T5,T6
0 1 - - Covered T1,T8,T9
0 0 1 - Covered T1,T8,T9
0 0 0 1 Covered T7,T8,T36
0 0 0 0 Covered T4,T6,T7

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