NVC code coverage report

Instance: CTU_CAN_FD_TB.TB_TOP_CTU_CAN_FD.DUT.PRESCALER_INST.SYNCHRONISATION_CHECKER_INST

File:  /__w/ctu-can-regression/ctu-can-regression/src/prescaler/synchronisation_checker.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.PRESCALER_INST.SYNCHRONISATION_CHECKER_INST 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 261615 items are not displayed.

Uncovered statements:

Excluded statements:

Covered statements:

If statement:

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

Count: 3312775
Threshold: 1

Signal assignment statement:

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

Signal assignment statement:

150:                   '0'
Count: 2172575
Threshold: 1

If statement:

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

Count: 3312775
Threshold: 1

Signal assignment statement:

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

Signal assignment statement:

153:                   '0'
Count: 3219433
Threshold: 1

If statement:

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

Count: 2470284
Threshold: 1

Signal assignment statement:

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

Signal assignment statement:

156:                         '0'
Count: 1236742
Threshold: 1

If statement:

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

Signal assignment statement:

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

Signal assignment statement:

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

Signal assignment statement:

166:                    '0'
Count: 44864857
Threshold: 1

If statement:

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

Count: 2470284
Threshold: 1

Signal assignment statement:

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

Signal assignment statement:

169:                     '0'
Count: 1236742
Threshold: 1

If statement:

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

Count: 1055177083
Threshold: 1

Signal assignment statement:

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

If statement:

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

Count: 526374300
Threshold: 1

Signal assignment statement:

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

If statement:

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

Signal assignment statement:

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

Signal assignment statement:

195:                         '0'
Count: 27114277
Threshold: 1

If statement:

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

Signal assignment statement:

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

Signal assignment statement:

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

Signal assignment statement:

202:                         '0'
Count: 22718601
Threshold: 1

Uncovered branches:

Excluded branches:

Covered branches:

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

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

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

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

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

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

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

164:    sync_flag_ce <= '1' when (h_or_re_sync_edge = '1') else 
Evaluated toCountThreshold
BinTrue17036351
BinFalse670095991

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

165:                    '1' when (segment_end = '1' and is_tseg1 = '1') else 
Evaluated toCountThreshold
BinTrue221447421
BinFalse448648571

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

168:    sync_flag_nxt <= '1' when (h_or_re_sync_edge = '1') else 
Evaluated toCountThreshold
BinTrue12335421
BinFalse12367421

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

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

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

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

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

176:            if (sync_flag_ce = '1') then 
Evaluated toCountThreshold
BinTrue121719361
BinFalse5142023641

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

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
BinTrue7953451
BinFalse271142771

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

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

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

201:                         '1' when (h_sync_edge = '1' and sync_flag = '0') else 
Evaluated toCountThreshold
BinTrue553711
BinFalse227186011

Uncovered toggles:

Excluded toggles:

Covered toggles:

Port:

 CLK_SYS
FromToCountThreshold
Bin015275788691
Bin105275804601

Port:

 RES_N
FromToCountThreshold
Bin0180821
Bin1080721

Port:

 SYNC_CONTROL(1)
FromToCountThreshold
Bin01996471
Bin10996421

Port:

 SYNC_CONTROL(0)
FromToCountThreshold
Bin01917591
Bin10917641

Port:

 SYNC_EDGE
FromToCountThreshold
Bin0115551481
Bin1015567481

Port:

 NO_POS_RESYNC
FromToCountThreshold
Bin016337381
Bin106353361

Port:

 SEGMENT_END
FromToCountThreshold
Bin01220844111
Bin10220860111

Port:

 IS_TSEG1
FromToCountThreshold
Bin01110415441
Bin10110415361

Port:

 IS_TSEG2
FromToCountThreshold
Bin01110352191
Bin10110368181

Port:

 RESYNC_EDGE_VALID
FromToCountThreshold
Bin017953451
Bin107969451

Port:

 H_SYNC_EDGE_VALID
FromToCountThreshold
Bin01553711
Bin10569711

Signal:

 RESYNC_EDGE
FromToCountThreshold
Bin0111402001
Bin1011418001

Signal:

 H_SYNC_EDGE
FromToCountThreshold
Bin01933421
Bin10949421

Signal:

 H_OR_RE_SYNC_EDGE
FromToCountThreshold
Bin0112335421
Bin1012351421

Signal:

 SYNC_FLAG
FromToCountThreshold
Bin0111368571
Bin1011384571

Signal:

 SYNC_FLAG_CE
FromToCountThreshold
Bin01228020831
Bin10228036831

Signal:

 SYNC_FLAG_NXT
FromToCountThreshold
Bin0112335421
Bin1012351421

Uncovered expressions:

Excluded expressions:

"and" expression

149:    resync_edge <= '1' when (sync_edge = '1' and sync_control = RE_SYNC) else 
                                 <-----LHS----->     <--------RHS--------->       

LHSRHSCountThresholdExcluded due to
BinFalseTrue01Unreachable

"and" expression

152:    h_sync_edge <= '1' when (sync_edge = '1' and sync_control = HARD_SYNC) else 
                                 <-----LHS----->     <---------RHS---------->       

LHSRHSCountThresholdExcluded due to
BinFalseTrue01Unreachable

Covered expressions:

"=" expression

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

"and" expression

149:    resync_edge <= '1' when (sync_edge = '1' and sync_control = RE_SYNC) else 
                                 <-----LHS----->     <--------RHS--------->       

LHSRHSCountThreshold
BinTrueFalse4149481
BinTrueTrue11402001

"=" expression

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

"and" expression

152:    h_sync_edge <= '1' when (sync_edge = '1' and sync_control = HARD_SYNC) else 
                                 <-----LHS----->     <---------RHS---------->       

LHSRHSCountThreshold
BinTrueFalse14618061
BinTrueTrue933421

"=" expression

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

"=" expression

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

"or" expression

155:    h_or_re_sync_edge <= '1' when (resync_edge = '1' or h_sync_edge = '1') else 
                                       <------LHS------>    <------RHS------>       

LHSRHSCountThreshold
BinFalseFalse12367421
BinFalseTrue933421
BinTrueFalse11402001

"=" expression

164:    sync_flag_ce <= '1' when (h_or_re_sync_edge = '1') else 
Evaluated toCountThreshold
BinFalse670095991
BinTrue17036351

"=" expression

165:                    '1' when (segment_end = '1' and is_tseg1 = '1') else 
Evaluated toCountThreshold
BinFalse228186331
BinTrue441909661

"=" expression

165:                    '1' when (segment_end = '1' and is_tseg1 = '1') else 
Evaluated toCountThreshold
BinFalse330941321
BinTrue339154671

"and" expression

165:                    '1' when (segment_end = '1' and is_tseg1 = '1') else 
                                  <------LHS------>     <----RHS----->       

LHSRHSCountThreshold
BinFalseTrue117707251
BinTrueFalse220462241
BinTrueTrue221447421

"=" expression

168:    sync_flag_nxt <= '1' when (h_or_re_sync_edge = '1') else 
Evaluated toCountThreshold
BinFalse12367421
BinTrue12335421

"=" expression

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

"=" expression

176:            if (sync_flag_ce = '1') then 
Evaluated toCountThreshold
BinFalse5142023641
BinTrue121719361

"=" expression

191:    resync_edge_valid <= '1' when (resync_edge = '1' and sync_flag = '0' and 
Evaluated toCountThreshold
BinFalse257027161
BinTrue22069061

"=" expression

191:    resync_edge_valid <= '1' when (resync_edge = '1' and sync_flag = '0' and 
Evaluated toCountThreshold
BinFalse22168021
BinTrue256928201

"and" expression

191:    resync_edge_valid <= '1' when (resync_edge = '1' and sync_flag = '0' and 
                                       <------LHS------>     <-----RHS----->     

LHSRHSCountThreshold
BinFalseTrue245523131
BinTrueFalse10663991
BinTrueTrue11405071

"=" expression

192:                                   ((is_tseg2 = '1') or 
Evaluated toCountThreshold
BinFalse168247091
BinTrue110849131

"=" expression

193:                                    (is_tseg1 = '1' and no_pos_resync = '0'))) 
Evaluated toCountThreshold
BinFalse110946131
BinTrue168150091

"=" expression

193:                                    (is_tseg1 = '1' and no_pos_resync = '0'))) 
Evaluated toCountThreshold
BinFalse52505881
BinTrue226590341

"and" expression

193:                                    (is_tseg1 = '1' and no_pos_resync = '0'))) 
                                         <----LHS----->     <-------RHS------->    

LHSRHSCountThreshold
BinFalseTrue94982531
BinTrueFalse36542281
BinTrueTrue131607811

"or" expression

192:                                   ((is_tseg2 = '1') or 
193:                                    (is_tseg1 = '1' and no_pos_resync = '0'))) 

LHSRHSCountThreshold
BinFalseFalse36639281
BinFalseTrue131607811
BinTrueFalse110849131

"and" expression

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

LHSRHSCountThreshold
BinFalseTrue234503491
BinTrueFalse3451621
BinTrueTrue7953451

"=" expression

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

"=" expression

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

"and" expression

200:    h_sync_edge_valid <= '0' when (no_pos_resync = '1' and is_tseg1 = '1') else 
                                       <-------LHS------->     <----RHS----->       

LHSRHSCountThreshold
BinFalseTrue116970701
BinTrueFalse15934301
BinTrueTrue30401801

"=" expression

201:                         '1' when (h_sync_edge = '1' and sync_flag = '0') else 
Evaluated toCountThreshold
BinFalse226606061
BinTrue1133661

"=" expression

201:                         '1' when (h_sync_edge = '1' and sync_flag = '0') else 
Evaluated toCountThreshold
BinFalse8468371
BinTrue219271351

"and" expression

201:                         '1' when (h_sync_edge = '1' and sync_flag = '0') else 
                                       <------LHS------>     <-----RHS----->       

LHSRHSCountThreshold
BinFalseTrue218717641
BinTrueFalse579951
BinTrueTrue553711

Uncovered FSM states:

Excluded FSM states:

Covered FSM states:

Uncovered functional coverage:

Excluded functional coverage:

Covered functional coverage: