NVC code coverage report

Hierarchy

Instance: CTU_CAN_FD_TB.TB_TOP_CTU_CAN_FD.I_DUT.I_BTL_TOP.I_BTL_SYNCHRONISATION_CHECKER

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_SYNCHRONISATION_CHECKER 100.0 % (27/27) 100.0 % (24/24) 100.0 % (34/34) 100.0 % (68/68) N.A. N.A. 100.0 % (153/153)

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 149 to 150:

149:    resync_edge <= '1' when (sync_edge = '1' and sync_control = RE_SYNC) else 
150:                   '0'; 

Count: 3333444
Threshold: 1

Signal assignment statement on line 149:

149:    resync_edge <= '1' when (sync_edge = '1' and sync_control = RE_SYNC) else 
Count: 1154407
Threshold: 1

Signal assignment statement on line 150:

150:                   '0'; 
Count: 2179037
Threshold: 1

If statement on lines 152 to 153:

152:    h_sync_edge <= '1' when (sync_edge = '1' and sync_control = HARD_SYNC) else 
153:                   '0'; 

Count: 3333444
Threshold: 1

Signal assignment statement on line 152:

152:    h_sync_edge <= '1' when (sync_edge = '1' and sync_control = HARD_SYNC) else 
Count: 95276
Threshold: 1

Signal assignment statement on line 153:

153:                   '0'; 
Count: 3238168
Threshold: 1

If statement on lines 155 to 156:

155:    h_or_re_sync_edge <= '1' when (resync_edge = '1' or h_sync_edge = '1') else 
156:                         '0'; 

Count: 2502568
Threshold: 1

Signal assignment statement on line 155:

155:    h_or_re_sync_edge <= '1' when (resync_edge = '1' or h_sync_edge = '1') else 
Count: 1249683
Threshold: 1

Signal assignment statement on line 156:

156:                         '0'; 
Count: 1252885
Threshold: 1

If statement on lines 164 to 166:

164:    sync_flag_ce <= '1' when (h_or_re_sync_edge = '1') else 
165:                    '1' when (segment_end = '1' and is_tseg1 = '1') else 
166:                    '0'; 

Count: 70894066
Threshold: 1

Signal assignment statement on line 164:

164:    sync_flag_ce <= '1' when (h_or_re_sync_edge = '1') else 
Count: 1720313
Threshold: 1

Signal assignment statement on line 165:

165:                    '1' when (segment_end = '1' and is_tseg1 = '1') else 
Count: 22864018
Threshold: 1

Signal assignment statement on line 166:

166:                    '0'; 
Count: 46309735
Threshold: 1

If statement on lines 168 to 169:

168:    sync_flag_nxt <= '1' when (h_or_re_sync_edge = '1') else 
169:                     '0'; 

Count: 2502568
Threshold: 1

Signal assignment statement on line 168:

168:    sync_flag_nxt <= '1' when (h_or_re_sync_edge = '1') else 
Count: 1249683
Threshold: 1

Signal assignment statement on line 169:

169:                     '0'; 
Count: 1252885
Threshold: 1

If statement on lines 173 to 179:

173:        if (rst_n = '0') then 
174:            sync_flag <= '0'; 
...
178:            end if; 
179:        end if; 

Count: 1089136168
Threshold: 1

Signal assignment statement on line 174:

174:            sync_flag <= '0'; 
Count: 2422593
Threshold: 1

If statement on lines 176 to 178:

176:            if (sync_flag_ce = '1') then 
177:                sync_flag <= sync_flag_nxt; 
178:            end if; 

Count: 543351807
Threshold: 1

Signal assignment statement on line 177:

177:                sync_flag <= sync_flag_nxt; 
Count: 12543251
Threshold: 1

If statement on lines 191 to 195:

191:    resync_edge_valid <= '1' when (resync_edge = '1' and sync_flag = '0' and 
192:                                   ((is_tseg2 = '1') or 
193:                                    (is_tseg1 = '1' and no_pos_resync = '0'))) 
194:                             else 
195:                         '0'; 

Count: 28694085
Threshold: 1

Signal assignment statement on line 191:

191:    resync_edge_valid <= '1' when (resync_edge = '1' and sync_flag = '0' and 
Count: 800590
Threshold: 1

Signal assignment statement on line 195:

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

If statement on lines 200 to 202:

200:    h_sync_edge_valid <= '0' when (no_pos_resync = '1' and is_tseg1 = '1') else 
201:                         '1' when (h_sync_edge = '1' and sync_flag = '0') else 
202:                         '0'; 

Count: 26574054
Threshold: 1

Signal assignment statement on line 200:

200:    h_sync_edge_valid <= '0' when (no_pos_resync = '1' and is_tseg1 = '1') else 
Count: 3097194
Threshold: 1

Signal assignment statement on line 201:

201:                         '1' when (h_sync_edge = '1' and sync_flag = '0') else 
Count: 56098
Threshold: 1

Signal assignment statement on line 202:

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

Uncovered branches:

Excluded branches:

Covered branches:

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

149:    resync_edge <= '1' when (sync_edge = '1' and sync_control = RE_SYNC) else 
Evaluated toCountThreshold
BinTrue11544071
BinFalse21790371

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

152:    h_sync_edge <= '1' when (sync_edge = '1' and sync_control = HARD_SYNC) else 
Evaluated toCountThreshold
BinTrue952761
BinFalse32381681

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

155:    h_or_re_sync_edge <= '1' when (resync_edge = '1' or h_sync_edge = '1') else 
Evaluated toCountThreshold
BinTrue12496831
BinFalse12528851

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

164:    sync_flag_ce <= '1' when (h_or_re_sync_edge = '1') else 
Evaluated toCountThreshold
BinTrue17203131
BinFalse691737531

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

165:                    '1' when (segment_end = '1' and is_tseg1 = '1') else 
Evaluated toCountThreshold
BinTrue228640181
BinFalse463097351

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

168:    sync_flag_nxt <= '1' when (h_or_re_sync_edge = '1') else 
Evaluated toCountThreshold
BinTrue12496831
BinFalse12528851

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

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

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

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

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

176:            if (sync_flag_ce = '1') then 
Evaluated toCountThreshold
BinTrue125432511
BinFalse5308085561

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

191:    resync_edge_valid <= '1' when (resync_edge = '1' and sync_flag = '0' and 
192:                                   ((is_tseg2 = '1') or 
193:                                    (is_tseg1 = '1' and no_pos_resync = '0'))) 

Evaluated toCountThreshold
BinTrue8005901
BinFalse278934951

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

200:    h_sync_edge_valid <= '0' when (no_pos_resync = '1' and is_tseg1 = '1') else 
Evaluated toCountThreshold
BinTrue30971941
BinFalse234768601

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

201:                         '1' when (h_sync_edge = '1' and sync_flag = '0') else 
Evaluated toCountThreshold
BinTrue560981
BinFalse234207621

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:

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

Port:

 SYNC_EDGE
FromToCountThresholdExcluded due to
Bin0101Exclude file
Bin1001Exclude file

Port:

 NO_POS_RESYNC
FromToCountThresholdExcluded due to
Bin0101Exclude file
Bin1001Exclude file

Port:

 SEGMENT_END
FromToCountThresholdExcluded due to
Bin0101Exclude file
Bin1001Exclude file

Port:

 IS_TSEG1
FromToCountThresholdExcluded due to
Bin0101Exclude file
Bin1001Exclude file

Port:

 IS_TSEG2
FromToCountThresholdExcluded due to
Bin0101Exclude file
Bin1001Exclude file

Covered toggles:

Port:

 RESYNC_EDGE_VALID
FromToCountThreshold
Bin018005901
Bin108021911

Port:

 H_SYNC_EDGE_VALID
FromToCountThreshold
Bin01560981
Bin10576991

Signal:

 RESYNC_EDGE
FromToCountThreshold
Bin0111544071
Bin1011560081

Signal:

 H_SYNC_EDGE
FromToCountThreshold
Bin01952761
Bin10968771

Signal:

 H_OR_RE_SYNC_EDGE
FromToCountThreshold
Bin0112496831
Bin1012512841

Signal:

 SYNC_FLAG
FromToCountThreshold
Bin0111501361
Bin1011517371

Signal:

 SYNC_FLAG_CE
FromToCountThreshold
Bin01235314551
Bin10235330561

Signal:

 SYNC_FLAG_NXT
FromToCountThreshold
Bin0112496831
Bin1012512841

Uncovered expressions:

Excluded expressions:

"and" expression on line 149:

 sync_edge = '1' and sync_control = RE_SYNC 
 <-----LHS----->     <--------RHS---------> 

LHSRHSCountThresholdExcluded due to
BinFalseTrue01Unreachable

"and" expression on line 152:

 sync_edge = '1' and sync_control = HARD_SYNC 
 <-----LHS----->     <---------RHS----------> 

LHSRHSCountThresholdExcluded due to
BinFalseTrue01Unreachable

Covered expressions:

"and" expression on line 149:

 sync_edge = '1' and sync_control = RE_SYNC 
 <-----LHS----->     <--------RHS---------> 

LHSRHSCountThreshold
BinTrueFalse4093871
BinTrueTrue11544071

"=" expression on line 149:

 sync_edge = '1' 
Evaluated toCountThreshold
BinFalse17696501
BinTrue15637941

"and" expression on line 152:

 sync_edge = '1' and sync_control = HARD_SYNC 
 <-----LHS----->     <---------RHS----------> 

LHSRHSCountThreshold
BinTrueFalse14685181
BinTrueTrue952761

"=" expression on line 152:

 sync_edge = '1' 
Evaluated toCountThreshold
BinFalse17696501
BinTrue15637941

"or" expression on line 155:

 resync_edge = '1' or h_sync_edge = '1' 
 <------LHS------>    <------RHS------> 

LHSRHSCountThreshold
BinFalseFalse12528851
BinFalseTrue952761
BinTrueFalse11544071

"=" expression on line 155:

 resync_edge = '1' 
Evaluated toCountThreshold
BinFalse13481611
BinTrue11544071

"=" expression on line 155:

 h_sync_edge = '1' 
Evaluated toCountThreshold
BinFalse24072921
BinTrue952761

"=" expression on line 164:

 h_or_re_sync_edge = '1' 
Evaluated toCountThreshold
BinFalse691737531
BinTrue17203131

"and" expression on line 165:

 segment_end = '1' and is_tseg1 = '1' 
 <------LHS------>     <----RHS-----> 

LHSRHSCountThreshold
BinFalseTrue121424171
BinTrueFalse227616651
BinTrueTrue228640181

"=" expression on line 165:

 segment_end = '1' 
Evaluated toCountThreshold
BinFalse235480701
BinTrue456256831

"=" expression on line 165:

 is_tseg1 = '1' 
Evaluated toCountThreshold
BinFalse341673181
BinTrue350064351

"=" expression on line 168:

 h_or_re_sync_edge = '1' 
Evaluated toCountThreshold
BinFalse12528851
BinTrue12496831

"=" expression on line 173:

 rst_n = '0' 
Evaluated toCountThreshold
BinFalse10867135751
BinTrue24225931

"=" expression on line 176:

 sync_flag_ce = '1' 
Evaluated toCountThreshold
BinFalse5308085561
BinTrue125432511

"and" expression on lines 191 to 193:

 resync_edge = '1' and sync_flag = '0' and ((is_tseg2 = '1') or (is_tseg1 = '1' and no_pos_resync = '0')) 
 <----------------LHS---------------->      <---------------------------RHS---------------------------->  

LHSRHSCountThreshold
BinFalseTrue241570831
BinTrueFalse3541031
BinTrueTrue8005901

"and" expression on line 191:

 resync_edge = '1' and sync_flag = '0' 
 <------LHS------>     <-----RHS-----> 

LHSRHSCountThreshold
BinFalseTrue252973891
BinTrueFalse10782901
BinTrueTrue11546931

"=" expression on line 191:

 resync_edge = '1' 
Evaluated toCountThreshold
BinFalse264611021
BinTrue22329831

"=" expression on line 191:

 sync_flag = '0' 
Evaluated toCountThreshold
BinFalse22420031
BinTrue264520821

"or" expression on lines 192 to 193:

 (is_tseg2 = '1') or (is_tseg1 = '1' and no_pos_resync = '0') 
  <----LHS----->      <----------------RHS----------------->  

LHSRHSCountThreshold
BinFalseFalse37364121
BinFalseTrue135142931
BinTrueFalse114433801

"=" expression on line 192:

 is_tseg2 = '1' 
Evaluated toCountThreshold
BinFalse172507051
BinTrue114433801

"and" expression on line 193:

 is_tseg1 = '1' and no_pos_resync = '0' 
 <----LHS----->     <-------RHS-------> 

LHSRHSCountThreshold
BinFalseTrue98293701
BinTrueFalse37267111
BinTrueTrue135142931

"=" expression on line 193:

 is_tseg1 = '1' 
Evaluated toCountThreshold
BinFalse114530811
BinTrue172410041

"=" expression on line 193:

 no_pos_resync = '0' 
Evaluated toCountThreshold
BinFalse53504221
BinTrue233436631

"and" expression on line 200:

 no_pos_resync = '1' and is_tseg1 = '1' 
 <-------LHS------->     <----RHS-----> 

LHSRHSCountThreshold
BinFalseTrue120414481
BinTrueFalse16207711
BinTrueTrue30971941

"=" expression on line 200:

 no_pos_resync = '1' 
Evaluated toCountThreshold
BinFalse218560891
BinTrue47179651

"=" expression on line 200:

 is_tseg1 = '1' 
Evaluated toCountThreshold
BinFalse114354121
BinTrue151386421

"and" expression on line 201:

 h_sync_edge = '1' and sync_flag = '0' 
 <------LHS------>     <-----RHS-----> 

LHSRHSCountThreshold
BinFalseTrue225696641
BinTrueFalse587191
BinTrueTrue560981

"=" expression on line 201:

 h_sync_edge = '1' 
Evaluated toCountThreshold
BinFalse233620431
BinTrue1148171

"=" expression on line 201:

 sync_flag = '0' 
Evaluated toCountThreshold
BinFalse8510981
BinTrue226257621

Uncovered FSM states:

Excluded FSM states:

Covered FSM states:

Uncovered functional coverage:

Excluded functional coverage:

Covered functional coverage: