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

Module : spid_addr_4b
SCORELINECONDTOGGLEFSMBRANCHASSERT
100.00 100.00 100.00 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 100.00 100.00 100.00 100.00



Module Instance : tb.dut.u_spid_addr_4b

Instance :
SCORELINECONDTOGGLEFSMBRANCHASSERT
100.00 100.00 100.00 100.00


Instance's subtree :
SCORELINECONDTOGGLEFSMBRANCHASSERT
100.00 100.00 100.00 100.00


Parent :
SCORELINECONDTOGGLEFSMBRANCHASSERTNAME
93.71 95.79 89.19 96.92 91.18 95.45 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
Conditions2121100.00
Logical2121100.00
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
01CoveredT8,T9,T12
10CoveredT1,T10,T7
11CoveredT4,T5,T6

 LINE       86
 SUB-EXPRESSION (sys_cfg_addr_4b_en_sync != reg2hw_cfg_addr_4b_en_q_i)
                ---------------------------1--------------------------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT8,T9,T12

 LINE       108
 EXPRESSION (spi_reg_cfg_addr_4b_en_sync ? spi_addr_4b_clr_i : spi_addr_4b_set_i)
             -------------1-------------
-1-StatusTests
0CoveredT2,T3,T7
1CoveredT1,T2,T3

 LINE       110
 EXPRESSION (spi_reg_cfg_addr_4b_en_sync == spi_cfg_addr_4b_en_o)
            --------------------------1--------------------------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT2,T3,T7

 LINE       111
 EXPRESSION (spi_reg_cfg_addr_4b_en_sync != spi_cfg_addr_4b_en_o)
            --------------------------1--------------------------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT1,T2,T3

 LINE       117
 EXPRESSION (((!addr_4b_en_locked)) & addr_4b_en_lock_condition)
             -----------1----------   ------------2------------
-1--2-StatusTests
01CoveredT142,T143,T144
10CoveredT2,T3,T7
11CoveredT4,T5,T6

 LINE       119
 EXPRESSION (addr_4b_en_locked & addr_4b_en_unlock_condition)
             --------1--------   -------------2-------------
-1--2-StatusTests
01CoveredT2,T3,T7
10CoveredT4,T5,T6
11CoveredT4,T5,T6

 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
011CoveredT2,T3,T7
101CoveredT69,T121,T122
110CoveredT7,T8,T9
111CoveredT8,T9,T12

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 T1,T2,T3
0 Covered T2,T3,T7


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 T1,T2,T3
0 1 Covered T4,T5,T6
0 0 Covered T1,T2,T3


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 T1,T2,T3
0 1 - Covered T4,T5,T6
0 0 1 Covered T4,T5,T6
0 0 0 Covered T2,T3,T7


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

Branches:
-1-StatusTests
1 Covered T1,T2,T3
0 Covered T2,T3,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 T1,T2,T3
0 1 - - Covered T4,T5,T6
0 0 1 - Covered T4,T5,T6
0 0 0 1 Covered T8,T9,T12
0 0 0 0 Covered T2,T3,T7

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