NVC code coverage report

Instance: CTU_CAN_FD_TB.TB_TOP_CTU_CAN_FD.DUT.BUS_SAMPLING_INST.DATA_EDGE_DETECTOR_INST

File:  /__w/ctu-can-regression/ctu-can-regression/src/bus_sampling/data_edge_detector.vhd

Sub-instances:

Instance Statement Branch Toggle Expression FSM state Functional Average

Current Instance:

Instance Statement Branch Toggle Expression FSM state Functional Average
CTU_CAN_FD_TB.TB_TOP_CTU_CAN_FD.DUT.BUS_SAMPLING_INST.DATA_EDGE_DETECTOR_INST 100.0 % (17/17) 100.0 % (12/12) 100.0 % (28/28) 100.0 % (35/35) N.A. N.A. 100.0 % (92/92)

Details:

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

Uncovered statements:

Excluded statements:

Covered statements:

If statement:

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

Count: 1055177083
Threshold: 1

Signal assignment statement:

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

Signal assignment statement:

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

Signal assignment statement:

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

Signal assignment statement:

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

Signal assignment statement:

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

If statement:

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

Count: 526374300
Threshold: 1

Signal assignment statement:

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

If statement:

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

Count: 2539748
Threshold: 1

Signal assignment statement:

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

Signal assignment statement:

182:                 '0'
Count: 1904383
Threshold: 1

If statement:

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

Count: 5597348
Threshold: 1

Signal assignment statement:

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

Signal assignment statement:

191:                 '0'
Count: 4198052
Threshold: 1

If statement:

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

Signal assignment statement:

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

Signal assignment statement:

206:                 '0'
Count: 224563507
Threshold: 1

Uncovered branches:

Excluded branches:

Covered branches:

"if" / "when" / "else" condition:

161:        if (res_n = '0') then 
Evaluated toCountThreshold
BinTrue24184991
BinFalse10527585841

"if" / "when" / "else" condition:

165:        elsif (rising_edge(clk_sys)) then 
Evaluated toCountThreshold
BinTrue5263743001
BinFalse5263842841

"if" / "when" / "else" condition:

169:            if (tq_edge = '1') then 
Evaluated toCountThreshold
BinTrue3315335341
BinFalse1948407661

"if" / "when" / "else" condition:

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

"if" / "when" / "else" condition:

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

"if" / "when" / "else" condition:

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
BinTrue15551481
BinFalse2245635071

Uncovered toggles:

Excluded toggles:

Covered toggles:

Port:

 CLK_SYS
FromToCountThreshold
Bin015275788691
Bin105275804601

Port:

 RES_N
FromToCountThreshold
Bin0180821
Bin1080721

Port:

 TX_DATA
FromToCountThreshold
Bin016353361
Bin106337381

Port:

 RX_DATA
FromToCountThreshold
Bin0114008961
Bin1013992961

Port:

 PREV_RX_SAMPLE
FromToCountThreshold
Bin0113905581
Bin1013889581

Port:

 TQ_EDGE
FromToCountThreshold
Bin011088712681
Bin101088728651

Port:

 TX_EDGE
FromToCountThreshold
Bin016353651
Bin106369651

Port:

 RX_EDGE
FromToCountThreshold
Bin0113992961
Bin1014008961

Port:

 SYNC_EDGE
FromToCountThreshold
Bin0115551481
Bin1015567481

Signal:

 RX_DATA_PREV
FromToCountThreshold
Bin0114008961
Bin1013992961

Signal:

 TX_DATA_PREV
FromToCountThreshold
Bin016353361
Bin106337381

Signal:

 RX_DATA_SYNC_PREV
FromToCountThreshold
Bin0113994261
Bin1013978261

Signal:

 RX_EDGE_I
FromToCountThreshold
Bin0113992961
Bin1014008961

Signal:

 TX_EDGE_I
FromToCountThreshold
Bin016353651
Bin106369651

Uncovered expressions:

Excluded expressions:

Covered expressions:

"=" expression

161:        if (res_n = '0') then 
Evaluated toCountThreshold
BinFalse10527585841
BinTrue24184991

"=" expression

169:            if (tq_edge = '1') then 
Evaluated toCountThreshold
BinFalse1948407661
BinTrue3315335341

"/=" expression

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

"=" expression

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

"and" expression

180:    tx_edge_i <= '1' when (tx_data_prev /= tx_data) and (tx_data_prev = RECESSIVE) 
                               <---------LHS--------->       <---------RHS---------->  

LHSRHSCountThreshold
BinFalseTrue6353361
BinTrueFalse6337091
BinTrueTrue6353651

"/=" expression

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

"=" expression

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

"and" expression

189:    rx_edge_i <= '1' when (rx_data_prev /= rx_data) and (rx_data_prev = RECESSIVE) 
                               <---------LHS--------->       <---------RHS---------->  

LHSRHSCountThreshold
BinFalseTrue13989611
BinTrueFalse13992461
BinTrueTrue13992961

"/=" expression

201:    sync_edge <= '1' when (rx_data_sync_prev /= rx_data) and 
Evaluated toCountThreshold
BinFalse2220443321
BinTrue40743231

"=" expression

202:                          (rx_data_sync_prev = RECESSIVE) and 
Evaluated toCountThreshold
BinFalse766582441
BinTrue1494604111

"and" expression

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

LHSRHSCountThreshold
BinFalseTrue1474253251
BinTrueFalse20392371
BinTrueTrue20350861

"/=" expression

203:                          (prev_rx_sample /= rx_data) and 
Evaluated toCountThreshold
BinFalse1857888011
BinTrue403298541

"and" expression

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 

LHSRHSCountThreshold
BinFalseTrue383010701
BinTrueFalse63021
BinTrueTrue20287841

"=" expression

204:                          (tq_edge = '1'
Evaluated toCountThreshold
BinFalse1095308851
BinTrue1165877701

"and" expression

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') 

LHSRHSCountThreshold
BinFalseTrue1150326221
BinTrueFalse4736361
BinTrueTrue15551481

Uncovered FSM states:

Excluded FSM states:

Covered FSM states:

Uncovered functional coverage:

Excluded functional coverage:

Covered functional coverage: