NVC code coverage report

Hierarchy

Instance: CTU_CAN_FD_TB.TB_TOP_CTU_CAN_FD.I_DUT.I_BM_TOP.I_BM_DATA_EDGE_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_DATA_EDGE_DETECTOR 100.0 % (19/19) 100.0 % (12/12) 100.0 % (28/28) 100.0 % (35/35) N.A. N.A. 100.0 % (94/94)

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 161 to 172:

161:        if (rst_n = '0') then 
162:            rx_data_prev        <= RECESSIVE; 
...
171:            end if; 
172:        end if; 

Count: 1089136168
Threshold: 1

Signal assignment statement on line 162:

162:            rx_data_prev        <= RECESSIVE; 
Count: 2422593
Threshold: 1

Signal assignment statement on line 163:

163:            tx_data_prev        <= RECESSIVE; 
Count: 2422593
Threshold: 1

Signal assignment statement on line 164:

164:            rx_data_sync_prev   <= RECESSIVE; 
Count: 2422593
Threshold: 1

Signal assignment statement on line 166:

166:            rx_data_prev        <= rx_data; 
Count: 543351807
Threshold: 1

Signal assignment statement on line 167:

167:            tx_data_prev        <= tx_data; 
Count: 543351807
Threshold: 1

If statement on lines 169 to 171:

169:            if (tq_edge = '1') then 
170:                rx_data_sync_prev <= rx_data; 
171:            end if; 

Count: 543351807
Threshold: 1

Signal assignment statement on line 170:

170:                rx_data_sync_prev <= rx_data; 
Count: 342482034
Threshold: 1

If statement on lines 180 to 182:

180:    tx_edge_i <= '1' when (tx_data_prev /= tx_data) and (tx_data_prev = RECESSIVE) 
181:                     else 
182:                 '0'; 

Count: 2566669
Threshold: 1

Signal assignment statement on line 180:

180:    tx_edge_i <= '1' when (tx_data_prev /= tx_data) and (tx_data_prev = RECESSIVE) 
Count: 642094
Threshold: 1

Signal assignment statement on line 182:

182:                 '0'; 
Count: 1924575
Threshold: 1

If statement on lines 189 to 191:

189:    rx_edge_i <= '1' when (rx_data_prev /= rx_data) and (rx_data_prev = RECESSIVE) 
190:                     else 
191:                 '0'; 

Count: 5637109
Threshold: 1

Signal assignment statement on line 189:

189:    rx_edge_i <= '1' when (rx_data_prev /= rx_data) and (rx_data_prev = RECESSIVE) 
Count: 1409295
Threshold: 1

Signal assignment statement on line 191:

191:                 '0'; 
Count: 4227814
Threshold: 1

If statement on lines 201 to 206:

201:    sync_edge <= '1' when (rx_data_sync_prev /= rx_data) and 
202:                          (rx_data_sync_prev = RECESSIVE) and 
203:                          (prev_rx_sample /= rx_data) and 
204:                          (tq_edge = '1') 
205:                     else 
206:                 '0'; 

Count: 230568126
Threshold: 1

Signal assignment statement on line 201:

201:    sync_edge <= '1' when (rx_data_sync_prev /= rx_data) and 
Count: 1563794
Threshold: 1

Signal assignment statement on line 206:

206:                 '0'; 
Count: 229004332
Threshold: 1

Signal assignment statement on line 211:

211:    rx_edge <= rx_edge_i; 
Count: 2821792
Threshold: 1

Signal assignment statement on line 212:

212:    tx_edge <= tx_edge_i; 
Count: 1287390
Threshold: 1

Uncovered branches:

Excluded branches:

Covered branches:

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

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

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

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

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

169:            if (tq_edge = '1') then 
Evaluated toCountThreshold
BinTrue3424820341
BinFalse2008697731

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

180:    tx_edge_i <= '1' when (tx_data_prev /= tx_data) and (tx_data_prev = RECESSIVE) 
Evaluated toCountThreshold
BinTrue6420941
BinFalse19245751

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

189:    rx_edge_i <= '1' when (rx_data_prev /= rx_data) and (rx_data_prev = RECESSIVE) 
Evaluated toCountThreshold
BinTrue14092951
BinFalse42278141

"if" / "when" / "else" condition on lines 201 to 204:

201:    sync_edge <= '1' when (rx_data_sync_prev /= rx_data) and 
202:                          (rx_data_sync_prev = RECESSIVE) and 
203:                          (prev_rx_sample /= rx_data) and 
204:                          (tq_edge = '1') 

Evaluated toCountThreshold
BinTrue15637941
BinFalse2290043321

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:

 TX_DATA
FromToCountThresholdExcluded due to
Bin0101Exclude file
Bin1001Exclude file

Port:

 RX_DATA
FromToCountThresholdExcluded due to
Bin0101Exclude file
Bin1001Exclude file

Port:

 PREV_RX_SAMPLE
FromToCountThresholdExcluded due to
Bin0101Exclude file
Bin1001Exclude file

Port:

 TQ_EDGE
FromToCountThresholdExcluded due to
Bin0101Exclude file
Bin1001Exclude file

Covered toggles:

Port:

 TX_EDGE
FromToCountThreshold
Bin016420941
Bin106436951

Port:

 RX_EDGE
FromToCountThreshold
Bin0114092951
Bin1014108961

Port:

 SYNC_EDGE
FromToCountThreshold
Bin0115637941
Bin1015653951

Signal:

 RX_DATA_PREV
FromToCountThreshold
Bin0114108961
Bin1014092951

Signal:

 TX_DATA_PREV
FromToCountThreshold
Bin016420661
Bin106404681

Signal:

 RX_DATA_SYNC_PREV
FromToCountThreshold
Bin0114093201
Bin1014077191

Signal:

 RX_EDGE_I
FromToCountThreshold
Bin0114092951
Bin1014108961

Signal:

 TX_EDGE_I
FromToCountThreshold
Bin016420941
Bin106436951

Uncovered expressions:

Excluded expressions:

Covered expressions:

"=" expression on line 161:

 rst_n = '0' 
Evaluated toCountThreshold
BinFalse10867135751
BinTrue24225931

"=" expression on line 169:

 tq_edge = '1' 
Evaluated toCountThreshold
BinFalse2008697731
BinTrue3424820341

"and" expression on line 180:

 (tx_data_prev /= tx_data) and (tx_data_prev = RECESSIVE) 
  <---------LHS--------->       <---------RHS---------->  

LHSRHSCountThreshold
BinFalseTrue6420661
BinTrueFalse6404401
BinTrueTrue6420941

"/=" expression on line 180:

 tx_data_prev /= tx_data 
Evaluated toCountThreshold
BinFalse12841351
BinTrue12825341

"=" expression on line 180:

 tx_data_prev = RECESSIVE 
Evaluated toCountThreshold
BinFalse12825091
BinTrue12841601

"and" expression on line 189:

 (rx_data_prev /= rx_data) and (rx_data_prev = RECESSIVE) 
  <---------LHS--------->       <---------RHS---------->  

LHSRHSCountThreshold
BinFalseTrue14090871
BinTrueFalse14092461
BinTrueTrue14092951

"/=" expression on line 189:

 rx_data_prev /= rx_data 
Evaluated toCountThreshold
BinFalse28185681
BinTrue28185411

"=" expression on line 189:

 rx_data_prev = RECESSIVE 
Evaluated toCountThreshold
BinFalse28187271
BinTrue28183821

"and" expression on lines 201 to 204:

 (rx_data_sync_prev /= rx_data) and (rx_data_sync_prev = RECESSIVE) and (prev_rx_sample /= rx_data) and (tq_edge = '1') 
 <----------------------------------------------LHS----------------------------------------------->      <----RHS---->  

LHSRHSCountThreshold
BinFalseTrue1172758961
BinTrueFalse4778791
BinTrueTrue15637941

"and" expression on lines 201 to 203:

 (rx_data_sync_prev /= rx_data) and (rx_data_sync_prev = RECESSIVE) and (prev_rx_sample /= rx_data) 
 <------------------------------LHS------------------------------->      <----------RHS---------->  

LHSRHSCountThreshold
BinFalseTrue382866731
BinTrueFalse65211
BinTrueTrue20416731

"and" expression on lines 201 to 202:

 (rx_data_sync_prev /= rx_data) and (rx_data_sync_prev = RECESSIVE) 
  <-----------LHS------------>       <------------RHS------------>  

LHSRHSCountThreshold
BinFalseTrue1517601231
BinTrueFalse20527201
BinTrueTrue20481941

"/=" expression on line 201:

 rx_data_sync_prev /= rx_data 
Evaluated toCountThreshold
BinFalse2264672121
BinTrue41009141

"=" expression on line 202:

 rx_data_sync_prev = RECESSIVE 
Evaluated toCountThreshold
BinFalse767598091
BinTrue1538083171

"/=" expression on line 203:

 prev_rx_sample /= rx_data 
Evaluated toCountThreshold
BinFalse1902397801
BinTrue403283461

"=" expression on line 204:

 tq_edge = '1' 
Evaluated toCountThreshold
BinFalse1117284361
BinTrue1188396901

Uncovered FSM states:

Excluded FSM states:

Covered FSM states:

Uncovered functional coverage:

Excluded functional coverage:

Covered functional coverage: