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: 3542364
Threshold: 1

Signal assignment statement on line 163:

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

Signal assignment statement on line 167:

167:                             '0'
Count: 3436233
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: 45871970
Threshold: 1

Signal assignment statement on line 174:

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

Signal assignment statement on line 175:

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

Signal assignment statement on line 176:

176:          bit_err_ssp_capt_q
Count: 22904575
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: 1096781321
Threshold: 1

Signal assignment statement on line 181:

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

Signal assignment statement on line 183:

183:            bit_err_ssp_capt_q <= bit_err_ssp_capt_d; 
Count: 547174334
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: 45928889
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: 67777
Threshold: 1

Signal assignment statement on line 195:

195:                         '0'
Count: 45861112
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: 50007360
Threshold: 1

Signal assignment statement on line 197:

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

Signal assignment statement on line 202:

202:                          '0'
Count: 49141227
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: 1885527
Threshold: 1

Signal assignment statement on line 207:

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

Signal assignment statement on line 208:

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

Signal assignment statement on line 209:

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

Signal assignment statement on line 210:

210:                 '0'
Count: 943570
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: 1096781321
Threshold: 1

Signal assignment statement on line 218:

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

Signal assignment statement on line 220:

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

Signal assignment statement on line 225:

225:    bit_err <= bit_err_q
Count: 23420
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
BinTrue1061311
BinFalse34362331

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

174:    bit_err_ssp_capt_d <= '0' when (rx_trigger = '1') else 
Evaluated toCountThreshold
BinTrue229277921
BinFalse229441781

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

175:                          '1' when (bit_err_ssp_condition = '1') else 
Evaluated toCountThreshold
BinTrue396031
BinFalse229045751

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

180:        if (rst_n = '0') then 
Evaluated toCountThreshold
BinTrue24226741
BinFalse10943586471

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

182:        elsif (rising_edge(clk_sys)) then 
Evaluated toCountThreshold
BinTrue5471743341
BinFalse5471843131

"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
BinTrue677771
BinFalse458611121

"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
BinTrue8661331
BinFalse491412271

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

207:    bit_err_d <= '0' when (mr_settings_ena = CTU_CAN_DISABLED) else 
Evaluated toCountThreshold
BinTrue80721
BinFalse18774551

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

208:                 '1' when (bit_err_ssp_valid = '1') else 
Evaluated toCountThreshold
BinTrue677521
BinFalse18097031

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

209:                 '1' when (bit_err_norm_valid = '1') else 
Evaluated toCountThreshold
BinTrue8661331
BinFalse9435701

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

217:        if (rst_n = '0') then 
Evaluated toCountThreshold
BinTrue24226741
BinFalse10943586471

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

219:        elsif (rising_edge(clk_sys)) then 
Evaluated toCountThreshold
BinTrue5471743341
BinFalse5471843131

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
Bin01101091
Bin10117101

Signal:

 BIT_ERR_D
FromToCountThreshold
Bin019338851
Bin109354861

Signal:

 BIT_ERR_Q
FromToCountThreshold
Bin01101091
Bin10117101

Signal:

 BIT_ERR_SSP_CAPT_D
FromToCountThreshold
Bin01391501
Bin10407511

Signal:

 BIT_ERR_SSP_CAPT_Q
FromToCountThreshold
Bin015891
Bin1021901

Signal:

 BIT_ERR_SSP_VALID
FromToCountThreshold
Bin01677521
Bin10693531

Signal:

 BIT_ERR_SSP_CONDITION
FromToCountThreshold
Bin011061311
Bin101077321

Signal:

 BIT_ERR_NORM_VALID
FromToCountThreshold
Bin018661331
Bin108677341

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
BinFalseTrue15096231
BinTrueFalse9381
BinTrueTrue1061311

"and" expression on lines 163 to 164:

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

LHSRHSCountThreshold
BinFalseTrue1949291
BinTrueFalse15871791
BinTrueTrue1070691

"/=" expression on line 163:

 data_tx_delayed /= data_rx_synced 
Evaluated toCountThreshold
BinFalse18481161
BinTrue16942481

"=" expression on line 164:

 sample_sec = '1' 
Evaluated toCountThreshold
BinFalse32403661
BinTrue3019981

"=" expression on line 165:

 bit_err_enable = '1' 
Evaluated toCountThreshold
BinFalse19266101
BinTrue16157541

"=" expression on line 174:

 rx_trigger = '1' 
Evaluated toCountThreshold
BinFalse229441781
BinTrue229277921

"=" expression on line 175:

 bit_err_ssp_condition = '1' 
Evaluated toCountThreshold
BinFalse229045751
BinTrue396031

"=" expression on line 180:

 rst_n = '0' 
Evaluated toCountThreshold
BinFalse10943586471
BinTrue24226741

"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
BinFalseTrue403791
BinTrueFalse3888431
BinTrueTrue677771

"and" expression on line 192:

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

LHSRHSCountThreshold
BinFalseTrue224711721
BinTrueFalse4703081
BinTrueTrue4566201

"=" expression on line 192:

 rx_trigger = '1' 
Evaluated toCountThreshold
BinFalse230010971
BinTrue229277921

"or" expression on line 193:

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

LHSRHSCountThreshold
BinFalseFalse458207331
BinFalseTrue1061761
BinTrueFalse13661

"=" expression on line 193:

 bit_err_ssp_capt_q = '1' 
Evaluated toCountThreshold
BinFalse459269091
BinTrue19801

"=" expression on line 193:

 bit_err_ssp_condition = '1' 
Evaluated toCountThreshold
BinFalse458220991
BinTrue1067901

"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
BinFalseTrue108172121
BinTrueFalse52443301
BinTrueTrue8661331

"and" expression on lines 197 to 199:

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

LHSRHSCountThreshold
BinFalseTrue180247261
BinTrueFalse69151801
BinTrueTrue61104631

"and" expression on lines 197 to 198:

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

LHSRHSCountThreshold
BinFalseTrue2310611
BinTrueFalse359771561
BinTrueTrue130256431

"/=" expression on line 198:

 data_rx_synced /= data_tx 
Evaluated toCountThreshold
BinFalse367506561
BinTrue132567041

"=" expression on line 199:

 rx_trigger = '1' 
Evaluated toCountThreshold
BinFalse258721711
BinTrue241351891

"=" expression on line 200:

 bit_err_enable = '1' 
Evaluated toCountThreshold
BinFalse383240151
BinTrue116833451

"=" expression on line 207:

 mr_settings_ena = CTU_CAN_DISABLED 
Evaluated toCountThreshold
BinFalse18774551
BinTrue80721

"=" expression on line 208:

 bit_err_ssp_valid = '1' 
Evaluated toCountThreshold
BinFalse18097031
BinTrue677521

"=" expression on line 209:

 bit_err_norm_valid = '1' 
Evaluated toCountThreshold
BinFalse9435701
BinTrue8661331

"=" expression on line 217:

 rst_n = '0' 
Evaluated toCountThreshold
BinFalse10943586471
BinTrue24226741

Uncovered FSM states:

Excluded FSM states:

Covered FSM states:

Uncovered functional coverage:

Excluded functional coverage:

Covered functional coverage: