NVC code coverage report

Hierarchy

Instance: CTU_CAN_FD_TB.TB_TOP_CTU_CAN_FD.I_DUT.I_BM_TOP.I_BM_BIT_ERR_DETECTOR

File:  /__w/CTU-CAN-FD/CTU-CAN-FD/src/bus_management/bm_top.vhd


Current Instance Statement Branch Toggle Expression FSM state Functional Average
CTU_CAN_FD_TB.TB_TOP_CTU_CAN_FD.I_DUT.I_BM_TOP.I_BM_BIT_ERR_DETECTOR 100.0 % (25/25) 100.0 % (24/24) 100.0 % (38/38) 100.0 % (56/56) N.A. N.A. 100.0 % (143/143)

Details:

The limit of printed items was reached (5000). Total 260336 items are not displayed.


Statement Branch Toggle Expression FSM state Functional

Uncovered statements:

Excluded statements:

Covered statements:

If statement on lines 163 to 167:

163:    bit_err_ssp_condition <= '1' when (data_tx_delayed /= data_rx_synced and 
164:                                       sample_sec = '1' and 
165:                                       bit_err_enable = '1') 
166:                                 else 
167:                             '0'; 

Count: 3497311
Threshold: 1

Signal assignment statement on line 163:

163:    bit_err_ssp_condition <= '1' when (data_tx_delayed /= data_rx_synced and 
Count: 95328
Threshold: 1

Signal assignment statement on line 167:

167:                             '0'; 
Count: 3401983
Threshold: 1

If statement on lines 174 to 176:

174:    bit_err_ssp_capt_d <= '0' when (rx_trigger = '1') else 
175:                          '1' when (bit_err_ssp_condition = '1') else 
176:          bit_err_ssp_capt_q; 

Count: 45726841
Threshold: 1

Signal assignment statement on line 174:

174:    bit_err_ssp_capt_d <= '0' when (rx_trigger = '1') else 
Count: 22871716
Threshold: 1

Signal assignment statement on line 175:

175:                          '1' when (bit_err_ssp_condition = '1') else 
Count: 24844
Threshold: 1

Signal assignment statement on line 176:

176:          bit_err_ssp_capt_q; 
Count: 22830281
Threshold: 1

If statement on lines 180 to 184:

180:        if (rst_n = '0') then 
181:            bit_err_ssp_capt_q <= '0'; 
182:        elsif (rising_edge(clk_sys)) then 
183:            bit_err_ssp_capt_q <= bit_err_ssp_capt_d; 
184:        end if; 

Count: 1089136168
Threshold: 1

Signal assignment statement on line 181:

181:            bit_err_ssp_capt_q <= '0'; 
Count: 2422593
Threshold: 1

Signal assignment statement on line 183:

183:            bit_err_ssp_capt_q <= bit_err_ssp_capt_d; 
Count: 543351807
Threshold: 1

If statement on lines 192 to 195:

192:    bit_err_ssp_valid <= '1' when (sp_control = SECONDARY_SAMPLE and rx_trigger = '1' and 
193:                                   (bit_err_ssp_capt_q = '1' or bit_err_ssp_condition = '1')) 
194:                             else 
195:                         '0'; 

Count: 45786621
Threshold: 1

Signal assignment statement on line 192:

192:    bit_err_ssp_valid <= '1' when (sp_control = SECONDARY_SAMPLE and rx_trigger = '1' and 
Count: 71371
Threshold: 1

Signal assignment statement on line 195:

195:                         '0'; 
Count: 45715250
Threshold: 1

If statement on lines 197 to 202:

197:    bit_err_norm_valid <= '1' when (sp_control /= SECONDARY_SAMPLE and 
198:                                    data_rx_synced /= data_tx and 
199:                                    rx_trigger = '1' and 
200:                                    bit_err_enable = '1') 
201:                              else 
202:                          '0'; 

Count: 49900136
Threshold: 1

Signal assignment statement on line 197:

197:    bit_err_norm_valid <= '1' when (sp_control /= SECONDARY_SAMPLE and 
Count: 879288
Threshold: 1

Signal assignment statement on line 202:

202:                          '0'; 
Count: 49020848
Threshold: 1

If statement on lines 207 to 210:

207:    bit_err_d <= '0' when (mr_settings_ena = CTU_CAN_DISABLED) else 
208:                 '1' when (bit_err_ssp_valid = '1') else 
209:                 '1' when (bit_err_norm_valid = '1') else 
210:                 '0'; 

Count: 1919012
Threshold: 1

Signal assignment statement on line 207:

207:    bit_err_d <= '0' when (mr_settings_ena = CTU_CAN_DISABLED) else 
Count: 8073
Threshold: 1

Signal assignment statement on line 208:

208:                 '1' when (bit_err_ssp_valid = '1') else 
Count: 71339
Threshold: 1

Signal assignment statement on line 209:

209:                 '1' when (bit_err_norm_valid = '1') else 
Count: 879288
Threshold: 1

Signal assignment statement on line 210:

210:                 '0'; 
Count: 960312
Threshold: 1

If statement on lines 217 to 221:

217:        if (rst_n = '0') then 
218:            bit_err_q <= '0'; 
219:        elsif (rising_edge(clk_sys)) then 
220:            bit_err_q <= bit_err_d; 
221:        end if; 

Count: 1089136168
Threshold: 1

Signal assignment statement on line 218:

218:            bit_err_q <= '0'; 
Count: 2422593
Threshold: 1

Signal assignment statement on line 220:

220:            bit_err_q <= bit_err_d; 
Count: 543351807
Threshold: 1

Signal assignment statement on line 225:

225:    bit_err <= bit_err_q; 
Count: 23644
Threshold: 1

Uncovered branches:

Excluded branches:

Covered branches:

"if" / "when" / "else" condition on lines 163 to 165:

163:    bit_err_ssp_condition <= '1' when (data_tx_delayed /= data_rx_synced and 
164:                                       sample_sec = '1' and 
165:                                       bit_err_enable = '1') 

Evaluated toCountThreshold
BinTrue953281
BinFalse34019831

"if" / "when" / "else" condition on line 174:

174:    bit_err_ssp_capt_d <= '0' when (rx_trigger = '1') else 
Evaluated toCountThreshold
BinTrue228717161
BinFalse228551251

"if" / "when" / "else" condition on line 175:

175:                          '1' when (bit_err_ssp_condition = '1') else 
Evaluated toCountThreshold
BinTrue248441
BinFalse228302811

"if" / "when" / "else" condition on line 180:

180:        if (rst_n = '0') then 
Evaluated toCountThreshold
BinTrue24225931
BinFalse10867135751

"if" / "when" / "else" condition on line 182:

182:        elsif (rising_edge(clk_sys)) then 
Evaluated toCountThreshold
BinTrue5433518071
BinFalse5433617681

"if" / "when" / "else" condition on lines 192 to 193:

192:    bit_err_ssp_valid <= '1' when (sp_control = SECONDARY_SAMPLE and rx_trigger = '1' and 
193:                                   (bit_err_ssp_capt_q = '1' or bit_err_ssp_condition = '1')) 

Evaluated toCountThreshold
BinTrue713711
BinFalse457152501

"if" / "when" / "else" condition on lines 197 to 200:

197:    bit_err_norm_valid <= '1' when (sp_control /= SECONDARY_SAMPLE and 
198:                                    data_rx_synced /= data_tx and 
199:                                    rx_trigger = '1' and 
200:                                    bit_err_enable = '1') 

Evaluated toCountThreshold
BinTrue8792881
BinFalse490208481

"if" / "when" / "else" condition on line 207:

207:    bit_err_d <= '0' when (mr_settings_ena = CTU_CAN_DISABLED) else 
Evaluated toCountThreshold
BinTrue80731
BinFalse19109391

"if" / "when" / "else" condition on line 208:

208:                 '1' when (bit_err_ssp_valid = '1') else 
Evaluated toCountThreshold
BinTrue713391
BinFalse18396001

"if" / "when" / "else" condition on line 209:

209:                 '1' when (bit_err_norm_valid = '1') else 
Evaluated toCountThreshold
BinTrue8792881
BinFalse9603121

"if" / "when" / "else" condition on line 217:

217:        if (rst_n = '0') then 
Evaluated toCountThreshold
BinTrue24225931
BinFalse10867135751

"if" / "when" / "else" condition on line 219:

219:        elsif (rising_edge(clk_sys)) then 
Evaluated toCountThreshold
BinTrue5433518071
BinFalse5433617681

Uncovered toggles:

Excluded toggles:

Port:

 CLK_SYS
FromToCountThresholdExcluded due to
Bin0101Exclude file
Bin1001Exclude file

Port:

 RST_N
FromToCountThresholdExcluded due to
Bin0101Exclude file
Bin1001Exclude file

Port:

 SP_CONTROL
ElementFromToCountThresholdExcluded due to
Bin(1)0101Exclude file
Bin(1)1001Exclude file
Bin(0)0101Exclude file
Bin(0)1001Exclude file

Port:

 RX_TRIGGER
FromToCountThresholdExcluded due to
Bin0101Exclude file
Bin1001Exclude file

Port:

 SAMPLE_SEC
FromToCountThresholdExcluded due to
Bin0101Exclude file
Bin1001Exclude file

Port:

 BIT_ERR_ENABLE
FromToCountThresholdExcluded due to
Bin0101Exclude file
Bin1001Exclude file

Port:

 MR_SETTINGS_ENA
FromToCountThresholdExcluded due to
Bin0101Exclude file
Bin1001Exclude file

Port:

 DATA_TX
FromToCountThresholdExcluded due to
Bin0101Exclude file
Bin1001Exclude file

Port:

 DATA_TX_DELAYED
FromToCountThresholdExcluded due to
Bin0101Exclude file
Bin1001Exclude file

Port:

 DATA_RX_SYNCED
FromToCountThresholdExcluded due to
Bin0101Exclude file
Bin1001Exclude file

Covered toggles:

Port:

 BIT_ERR
FromToCountThreshold
Bin01102211
Bin10118221

Signal:

 BIT_ERR_D
FromToCountThreshold
Bin019506271
Bin109522281

Signal:

 BIT_ERR_Q
FromToCountThreshold
Bin01102211
Bin10118221

Signal:

 BIT_ERR_SSP_CAPT_D
FromToCountThreshold
Bin01245781
Bin10261791

Signal:

 BIT_ERR_SSP_CAPT_Q
FromToCountThreshold
Bin013991
Bin1020001

Signal:

 BIT_ERR_SSP_VALID
FromToCountThreshold
Bin01713391
Bin10729401

Signal:

 BIT_ERR_SSP_CONDITION
FromToCountThreshold
Bin01953281
Bin10969291

Signal:

 BIT_ERR_NORM_VALID
FromToCountThreshold
Bin018792881
Bin108808891

Uncovered expressions:

Excluded expressions:

Covered expressions:

"and" expression on lines 163 to 165:

 data_tx_delayed /= data_rx_synced and sample_sec = '1' and bit_err_enable = '1' 
 <------------------------LHS------------------------->     <-------RHS--------> 

LHSRHSCountThreshold
BinFalseTrue14779351
BinTrueFalse11561
BinTrueTrue953281

"and" expression on lines 163 to 164:

 data_tx_delayed /= data_rx_synced and sample_sec = '1' 
 <--------------LHS-------------->     <-----RHS------> 

LHSRHSCountThreshold
BinFalseTrue1803201
BinTrueFalse15795721
BinTrueTrue964841

"/=" expression on line 163:

 data_tx_delayed /= data_rx_synced 
Evaluated toCountThreshold
BinFalse18212551
BinTrue16760561

"=" expression on line 164:

 sample_sec = '1' 
Evaluated toCountThreshold
BinFalse32205071
BinTrue2768041

"=" expression on line 165:

 bit_err_enable = '1' 
Evaluated toCountThreshold
BinFalse19240481
BinTrue15732631

"=" expression on line 174:

 rx_trigger = '1' 
Evaluated toCountThreshold
BinFalse228551251
BinTrue228717161

"=" expression on line 175:

 bit_err_ssp_condition = '1' 
Evaluated toCountThreshold
BinFalse228302811
BinTrue248441

"=" expression on line 180:

 rst_n = '0' 
Evaluated toCountThreshold
BinFalse10867135751
BinTrue24225931

"and" expression on lines 192 to 193:

 sp_control = SECONDARY_SAMPLE and rx_trigger = '1' and (bit_err_ssp_capt_q = '1' or bit_err_ssp_condition = '1') 
 <----------------------LHS----------------------->      <-------------------------RHS------------------------->  

LHSRHSCountThreshold
BinFalseTrue254091
BinTrueFalse3596241
BinTrueTrue713711

"and" expression on line 192:

 sp_control = SECONDARY_SAMPLE and rx_trigger = '1' 
 <------------LHS------------>     <-----RHS------> 

LHSRHSCountThreshold
BinFalseTrue224407211
BinTrueFalse4123221
BinTrueTrue4309951

"=" expression on line 192:

 rx_trigger = '1' 
Evaluated toCountThreshold
BinFalse229149051
BinTrue228717161

"or" expression on line 193:

 bit_err_ssp_capt_q = '1' or bit_err_ssp_condition = '1' 
 <---------LHS---------->    <-----------RHS-----------> 

LHSRHSCountThreshold
BinFalseFalse456898411
BinFalseTrue953691
BinTrueFalse9801

"=" expression on line 193:

 bit_err_ssp_capt_q = '1' 
Evaluated toCountThreshold
BinFalse457852101
BinTrue14111

"=" expression on line 193:

 bit_err_ssp_condition = '1' 
Evaluated toCountThreshold
BinFalse456908211
BinTrue958001

"and" expression on lines 197 to 200:

 sp_control /= SECONDARY_SAMPLE and data_rx_synced /= data_tx and rx_trigger = '1' and bit_err_enable = '1' 
 <--------------------------------------LHS-------------------------------------->     <-------RHS--------> 

LHSRHSCountThreshold
BinFalseTrue108575721
BinTrueFalse52294531
BinTrueTrue8792881

"and" expression on lines 197 to 199:

 sp_control /= SECONDARY_SAMPLE and data_rx_synced /= data_tx and rx_trigger = '1' 
 <---------------------------LHS---------------------------->     <-----RHS------> 

LHSRHSCountThreshold
BinFalseTrue179739861
BinTrueFalse69111881
BinTrueTrue61087411

"and" expression on lines 197 to 198:

 sp_control /= SECONDARY_SAMPLE and data_rx_synced /= data_tx 
 <------------LHS------------->     <----------RHS----------> 

LHSRHSCountThreshold
BinFalseTrue2166691
BinTrueFalse359473521
BinTrueTrue130199291

"/=" expression on line 198:

 data_rx_synced /= data_tx 
Evaluated toCountThreshold
BinFalse366635381
BinTrue132365981

"=" expression on line 199:

 rx_trigger = '1' 
Evaluated toCountThreshold
BinFalse258174091
BinTrue240827271

"=" expression on line 200:

 bit_err_enable = '1' 
Evaluated toCountThreshold
BinFalse381632761
BinTrue117368601

"=" expression on line 207:

 mr_settings_ena = CTU_CAN_DISABLED 
Evaluated toCountThreshold
BinFalse19109391
BinTrue80731

"=" expression on line 208:

 bit_err_ssp_valid = '1' 
Evaluated toCountThreshold
BinFalse18396001
BinTrue713391

"=" expression on line 209:

 bit_err_norm_valid = '1' 
Evaluated toCountThreshold
BinFalse9603121
BinTrue8792881

"=" expression on line 217:

 rst_n = '0' 
Evaluated toCountThreshold
BinFalse10867135751
BinTrue24225931

Uncovered FSM states:

Excluded FSM states:

Covered FSM states:

Uncovered functional coverage:

Excluded functional coverage:

Covered functional coverage: