NVC code coverage report

Hierarchy

Instance: CTU_CAN_FD_TB.TB_TOP_CTU_CAN_FD.I_DUT.I_BTL_TOP.I_BTL_COUNTERS_NBT

File:  /__w/CTU-CAN-FD/CTU-CAN-FD/src/bit_timing_logic/btl_top.vhd


Current Instance Statement Branch Toggle Expression FSM state Functional Average
CTU_CAN_FD_TB.TB_TOP_CTU_CAN_FD.I_DUT.I_BTL_TOP.I_BTL_COUNTERS_NBT 100.0 % (23/23) 100.0 % (20/20) 100.0 % (114/114) 100.0 % (29/29) N.A. N.A. 100.0 % (186/186)

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 155 to 157:

155:    tq_counter_expired <= '1' when (unsigned(tq_counter_q) = unsigned(brp)) 
156:                              else 
157:                          '0'; 

Count: 331082050
Threshold: 1

Signal assignment statement on line 155:

155:    tq_counter_expired <= '1' when (unsigned(tq_counter_q) = unsigned(brp)) 
Count: 99263834
Threshold: 1

Signal assignment statement on line 157:

157:                          '0'
Count: 231818216
Threshold: 1

If statement on lines 165 to 168:

165:    tq_counter_d <= 
166:        std_logic_vector(C_TQ_RST) when (tq_counter_expired = '1' or tq_reset = '1') 
167:                                   else 
168:        std_logic_vector(unsigned(tq_counter_q) + 1); 

Count: 575392062
Threshold: 1

Signal assignment statement on line 166:

166:        std_logic_vector(C_TQ_RST) when (tq_counter_expired = '1' or tq_reset = '1') 
Count: 242843114
Threshold: 1

Signal assignment statement on line 168:

168:        std_logic_vector(unsigned(tq_counter_q) + 1)
Count: 332548948
Threshold: 1

If statement on lines 172 to 178:

172:        if (rst_n = '0') then 
173:            tq_counter_q <= std_logic_vector(C_TQ_RST); 
...
177:            end if; 
178:        end if; 

Count: 1096781321
Threshold: 1

Signal assignment statement on line 173:

173:            tq_counter_q <= std_logic_vector(C_TQ_RST); 
Count: 2422674
Threshold: 1

If statement on lines 175 to 177:

175:            if (ctrs_en = '1') then 
176:                tq_counter_q <= tq_counter_d; 
177:            end if; 

Count: 547174334
Threshold: 1

Signal assignment statement on line 176:

176:                tq_counter_q <= tq_counter_d; 
Count: 547172733
Threshold: 1

Signal assignment statement on line 184:

184:    tq_edge_i <= tq_counter_expired
Count: 198530865
Threshold: 1

If statement on lines 189 to 190:

189:    segm_counter_d <= C_BT_ZEROES when (bt_reset = '1') else 
190:                      std_logic_vector(unsigned(segm_counter_q) + 1); 

Count: 365566704
Threshold: 1

Signal assignment statement on line 189:

189:    segm_counter_d <= C_BT_ZEROES when (bt_reset = '1') else 
Count: 45756477
Threshold: 1

Signal assignment statement on line 190:

190:                      std_logic_vector(unsigned(segm_counter_q) + 1)
Count: 319810227
Threshold: 1

If statement on lines 192 to 194:

192:    segm_counter_ce <= '1' when (bt_reset = '1') or (tq_edge_i = '1' and ctrs_en = '1') 
193:                           else 
194:                       '0'; 

Count: 244333416
Threshold: 1

Signal assignment statement on line 192:

192:    segm_counter_ce <= '1' when (bt_reset = '1') or (tq_edge_i = '1' and ctrs_en = '1') 
Count: 139154439
Threshold: 1

Signal assignment statement on line 194:

194:                       '0'
Count: 105178977
Threshold: 1

If statement on lines 198 to 204:

198:        if (rst_n = '0') then 
199:            segm_counter_q <= (others => '0'); 
...
203:            end if; 
204:        end if; 

Count: 1096781321
Threshold: 1

Signal assignment statement on line 199:

199:            segm_counter_q <= (others => '0'); 
Count: 2422674
Threshold: 1

If statement on lines 201 to 203:

201:            if (segm_counter_ce = '1') then 
202:                segm_counter_q <= segm_counter_d; 
203:            end if; 

Count: 547174334
Threshold: 1

Signal assignment statement on line 202:

202:                segm_counter_q <= segm_counter_d; 
Count: 319793894
Threshold: 1

Signal assignment statement on line 210:

210:    segm_counter <= segm_counter_q
Count: 319777107
Threshold: 1

Signal assignment statement on line 211:

211:    tq_edge <= tq_edge_i
Count: 198530865
Threshold: 1

Uncovered branches:

Excluded branches:

Covered branches:

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

155:    tq_counter_expired <= '1' when (unsigned(tq_counter_q) = unsigned(brp)
Evaluated toCountThreshold
BinTrue992638341
BinFalse2318182161

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

166:        std_logic_vector(C_TQ_RST) when (tq_counter_expired = '1' or tq_reset = '1'
Evaluated toCountThreshold
BinTrue2428431141
BinFalse3325489481

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

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

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

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

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

175:            if (ctrs_en = '1') then 
Evaluated toCountThreshold
BinTrue5471727331
BinFalse16011

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

189:    segm_counter_d <= C_BT_ZEROES when (bt_reset = '1') else 
Evaluated toCountThreshold
BinTrue457564771
BinFalse3198102271

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

192:    segm_counter_ce <= '1' when (bt_reset = '1') or (tq_edge_i = '1' and ctrs_en = '1') 
Evaluated toCountThreshold
BinTrue1391544391
BinFalse1051789771

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

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

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

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

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

201:            if (segm_counter_ce = '1') then 
Evaluated toCountThreshold
BinTrue3197938941
BinFalse2273804401

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:

 BRP
ElementFromToCountThresholdExcluded due to
Bin(7)0101Exclude file
Bin(7)1001Exclude file
Bin(6)0101Exclude file
Bin(6)1001Exclude file
Bin(5)0101Exclude file
Bin(5)1001Exclude file
Bin(4)0101Exclude file
Bin(4)1001Exclude file
Bin(3)0101Exclude file
Bin(3)1001Exclude file
Bin(2)0101Exclude file
Bin(2)1001Exclude file
Bin(1)0101Exclude file
Bin(1)1001Exclude file
Bin(0)0101Exclude file
Bin(0)1001Exclude file

Port:

 TQ_RESET
FromToCountThresholdExcluded due to
Bin0101Exclude file
Bin1001Exclude file

Port:

 BT_RESET
FromToCountThresholdExcluded due to
Bin0101Exclude file
Bin1001Exclude file

Port:

 CTRS_EN
FromToCountThresholdExcluded due to
Bin0101Exclude file
Bin1001Exclude file

Covered toggles:

Port:

 TQ_EDGE
FromToCountThreshold
Bin01992638341
Bin10992654301

Port:

 SEGM_COUNTER
ElementFromToCountThreshold
Bin(7)015753521
Bin(7)105769531
Bin(6)019268881
Bin(6)109284881
Bin(5)0132407381
Bin(5)1032423391
Bin(4)0169800131
Bin(4)1069816131
Bin(3)01155228801
Bin(3)10155244781
Bin(2)01379115541
Bin(2)10379131541
Bin(1)01794938211
Bin(1)10794954161
Bin(0)011522483901
Bin(0)101522499881

Signal:

 TQ_COUNTER_D
ElementFromToCountThreshold
Bin(7)0121961
Bin(7)1037971
Bin(6)0143921
Bin(6)1059931
Bin(5)01163261
Bin(5)10179271
Bin(4)01491901
Bin(4)10507911
Bin(3)018146651
Bin(3)108162661
Bin(2)01653914751
Bin(2)10653930761
Bin(1)011067370321
Bin(1)101067354361
Bin(0)011730161491
Bin(0)101730177441

Signal:

 TQ_COUNTER_Q
ElementFromToCountThreshold
Bin(7)0121961
Bin(7)1037971
Bin(6)0143921
Bin(6)1059931
Bin(5)0187841
Bin(5)10103851
Bin(4)01491901
Bin(4)10507911
Bin(3)018146091
Bin(3)108162101
Bin(2)01533828081
Bin(2)10533844071
Bin(1)011052640771
Bin(1)101052656761
Bin(0)011595276531
Bin(0)101595260561

Signal:

 TQ_COUNTER_EXPIRED
FromToCountThreshold
Bin01992638341
Bin10992654301

Signal:

 TQ_EDGE_I
FromToCountThreshold
Bin01992638341
Bin10992654301

Signal:

 SEGM_COUNTER_D
ElementFromToCountThreshold
Bin(7)015753741
Bin(7)105769751
Bin(6)0112045821
Bin(6)1012061821
Bin(5)0132487721
Bin(5)1032503731
Bin(4)0171684141
Bin(4)1071700151
Bin(3)01158668661
Bin(3)10158684641
Bin(2)01413685021
Bin(2)10413701031
Bin(1)01828171841
Bin(1)10828187771
Bin(0)011675550931
Bin(0)101675534971

Signal:

 SEGM_COUNTER_Q
ElementFromToCountThreshold
Bin(7)015753521
Bin(7)105769531
Bin(6)019268881
Bin(6)109284881
Bin(5)0132407381
Bin(5)1032423391
Bin(4)0169800131
Bin(4)1069816131
Bin(3)01155228801
Bin(3)10155244781
Bin(2)01379115541
Bin(2)10379131541
Bin(1)01794938211
Bin(1)10794954161
Bin(0)011522483901
Bin(0)101522499881

Signal:

 SEGM_COUNTER_CE
FromToCountThreshold
Bin011051642251
Bin101051658211

Uncovered expressions:

Excluded expressions:

Covered expressions:

"or" expression on line 166:

 tq_counter_expired = '1' or tq_reset = '1' 
 <---------LHS---------->    <----RHS-----> 

LHSRHSCountThreshold
BinFalseFalse3325489481
BinFalseTrue144459281
BinTrueFalse2072843861

"=" expression on line 166:

 tq_counter_expired = '1' 
Evaluated toCountThreshold
BinFalse3469948761
BinTrue2283971861

"=" expression on line 166:

 tq_reset = '1' 
Evaluated toCountThreshold
BinFalse5398333341
BinTrue355587281

"=" expression on line 172:

 rst_n = '0' 
Evaluated toCountThreshold
BinFalse10943586471
BinTrue24226741

"=" expression on line 175:

 ctrs_en = '1' 
Evaluated toCountThreshold
BinFalse16011
BinTrue5471727331

"=" expression on line 189:

 bt_reset = '1' 
Evaluated toCountThreshold
BinFalse3198102271
BinTrue457564771

"or" expression on line 192:

 (bt_reset = '1') or (tq_edge_i = '1' and ctrs_en = '1') 
  <----LHS----->      <--------------RHS-------------->  

LHSRHSCountThreshold
BinFalseFalse1051789771
BinFalseTrue1121420221
BinTrueFalse100173221

"=" expression on line 192:

 bt_reset = '1' 
Evaluated toCountThreshold
BinFalse2173209991
BinTrue270124171

"and" expression on line 192:

 tq_edge_i = '1' and ctrs_en = '1' 
 <-----LHS----->     <----RHS----> 

LHSRHSCountThreshold
BinFalseTrue1151791491
BinTrueFalse73371
BinTrueTrue1291371171

"=" expression on line 192:

 tq_edge_i = '1' 
Evaluated toCountThreshold
BinFalse1151889621
BinTrue1291444541

"=" expression on line 192:

 ctrs_en = '1' 
Evaluated toCountThreshold
BinFalse171501
BinTrue2443162661

"=" expression on line 198:

 rst_n = '0' 
Evaluated toCountThreshold
BinFalse10943586471
BinTrue24226741

"=" expression on line 201:

 segm_counter_ce = '1' 
Evaluated toCountThreshold
BinFalse2273804401
BinTrue3197938941

Uncovered FSM states:

Excluded FSM states:

Covered FSM states:

Uncovered functional coverage:

Excluded functional coverage:

Covered functional coverage: