NVC code coverage report

Instance: CTU_CAN_FD_TB.TB_TOP_CTU_CAN_FD.DUT.CAN_CORE_INST.FAULT_CONFINEMENT_INST.FAULT_CONFINEMENT_FSM_INST

File:  /__w/ctu-can-regression/ctu-can-regression/src/can_core/fault_confinement_fsm.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.CAN_CORE_INST.FAULT_CONFINEMENT_INST.FAULT_CONFINEMENT_FSM_INST 100.0 % (46/46) 100.0 % (38/38) 100.0 % (100/100) 100.0 % (33/33) 100.0 % (6/6) N.A. 100.0 % (223/223)

Details:

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

Uncovered statements:

Excluded statements:

Covered statements:

If statement:

169:    tx_err_ctr_mt_erp <= '1' when (unsigned(tx_err_ctr) >= unsigned(mr_erp_erp_limit)) 
170:                             else 
171:                         '0'; 

Count: 32696
Threshold: 1

Signal assignment statement:

169:    tx_err_ctr_mt_erp <= '1' when (unsigned(tx_err_ctr) >= unsigned(mr_erp_erp_limit)) 
Count: 2043
Threshold: 1

Signal assignment statement:

171:                         '0'
Count: 30653
Threshold: 1

If statement:

174:    rx_err_ctr_mt_erp <= '1' when (unsigned(rx_err_ctr) >= unsigned(mr_erp_erp_limit)) 
175:                             else 
176:                         '0'; 

Count: 27415
Threshold: 1

Signal assignment statement:

174:    rx_err_ctr_mt_erp <= '1' when (unsigned(rx_err_ctr) >= unsigned(mr_erp_erp_limit)) 
Count: 8884
Threshold: 1

Signal assignment statement:

176:                         '0'
Count: 18531
Threshold: 1

If statement:

179:    tx_err_ctr_mt_255 <= '1' when (unsigned(tx_err_ctr) > 255) 
180:                             else 
181:                         '0'; 

Count: 32526
Threshold: 1

Signal assignment statement:

179:    tx_err_ctr_mt_255 <= '1' when (unsigned(tx_err_ctr) > 255) 
Count: 249
Threshold: 1

Signal assignment statement:

181:                         '0'
Count: 32277
Threshold: 1

If statement:

184:    tx_err_ctr_mt_ewl <= '1' when (unsigned(tx_err_ctr) >= ('0' & unsigned(mr_ewl_ew_limit))) 
185:                             else 
186:                         '0'; 

Count: 32694
Threshold: 1

Signal assignment statement:

184:    tx_err_ctr_mt_ewl <= '1' when (unsigned(tx_err_ctr) >= ('0' & unsigned(mr_ewl_ew_limit))) 
Count: 2629
Threshold: 1

Signal assignment statement:

186:                         '0'
Count: 30065
Threshold: 1

If statement:

189:    rx_err_ctr_mt_ewl <= '1' when (unsigned(rx_err_ctr) >= ('0' & unsigned(mr_ewl_ew_limit))) 
190:                             else 
191:                         '0'; 

Count: 27413
Threshold: 1

Signal assignment statement:

189:    rx_err_ctr_mt_ewl <= '1' when (unsigned(rx_err_ctr) >= ('0' & unsigned(mr_ewl_ew_limit))) 
Count: 9290
Threshold: 1

Signal assignment statement:

191:                         '0'
Count: 18123
Threshold: 1

If statement:

193:    err_warning_limit_d <= '1' when (tx_err_ctr_mt_ewl = '1' or rx_err_ctr_mt_ewl = '1') 
194:                               else 
195:                           '0'; 

Count: 5193
Threshold: 1

Signal assignment statement:

193:    err_warning_limit_d <= '1' when (tx_err_ctr_mt_ewl = '1' or rx_err_ctr_mt_ewl = '1') 
Count: 1202
Threshold: 1

Signal assignment statement:

195:                           '0'
Count: 3991
Threshold: 1

If statement:

202:        if (res_n = '0') then 
203:            err_warning_limit_q <= '0'; 
204:        elsif (rising_edge(clk_sys)) then 
205:            err_warning_limit_q <= err_warning_limit_d; 
206:        end if; 

Count: 1055177083
Threshold: 1

Signal assignment statement:

203:            err_warning_limit_q <= '0'; 
Count: 2418499
Threshold: 1

Signal assignment statement:

205:            err_warning_limit_q <= err_warning_limit_d; 
Count: 526374300
Threshold: 1

If statement:

209:    err_warning_limit_pulse <= '1' when (err_warning_limit_d /= err_warning_limit_q) 
210:                                   else 
211:                               '0'; 

Count: 7966
Threshold: 1

Signal assignment statement:

209:    err_warning_limit_pulse <= '1' when (err_warning_limit_d /= err_warning_limit_q) 
Count: 3183
Threshold: 1

Signal assignment statement:

211:                               '0'
Count: 4783
Threshold: 1

Signal assignment statement:

221:        next_state <= curr_state; 
Count: 34449
Threshold: 1

Sequential statement:

223:        case curr_state is 
224:        when s_fc_err_active => 
...
239:            end if; 
240:        end case; 

Count: 34449
Threshold: 1

If statement:

225:            if (tx_err_ctr_mt_erp = '1' or rx_err_ctr_mt_erp = '1') then 
226:                next_state <= s_fc_err_passive; 
227:            end if; 

Count: 17598
Threshold: 1

Signal assignment statement:

226:                next_state <= s_fc_err_passive; 
Count: 1108
Threshold: 1

If statement:

230:            if (tx_err_ctr_mt_255 = '1') then 
231:                next_state <= s_fc_bus_off; 
232:            elsif (tx_err_ctr_mt_erp = '0' and rx_err_ctr_mt_erp = '0') then 
233:                next_state <= s_fc_err_active; 
234:            end if; 

Count: 1558
Threshold: 1

Signal assignment statement:

231:                next_state <= s_fc_bus_off; 
Count: 265
Threshold: 1

Signal assignment statement:

233:                next_state <= s_fc_err_active; 
Count: 188
Threshold: 1

If statement:

237:            if (set_err_active = '1') then 
238:                next_state <= s_fc_err_active; 
239:            end if; 

Count: 15293
Threshold: 1

Signal assignment statement:

238:                next_state <= s_fc_err_active; 
Count: 6636
Threshold: 1

If statement:

249:        if (res_n = '0') then 
250:            curr_state <= s_fc_bus_off; 
251:        elsif (rising_edge(clk_sys)) then 
252:            curr_state <= next_state; 
253:        end if; 

Count: 1055177083
Threshold: 1

Signal assignment statement:

250:            curr_state <= s_fc_bus_off; 
Count: 2418499
Threshold: 1

Signal assignment statement:

252:            curr_state <= next_state; 
Count: 526374300
Threshold: 1

Signal assignment statement:

261:        is_err_active     <= '0'; 
Count: 17419
Threshold: 1

Signal assignment statement:

262:        is_err_passive    <= '0'; 
Count: 17419
Threshold: 1

Signal assignment statement:

263:        is_bus_off        <= '0'; 
Count: 17419
Threshold: 1

Sequential statement:

265:        case curr_state is 
266:        when s_fc_err_active => 
...
273:            is_bus_off <= '1'; 
274:        end case; 

Count: 17419
Threshold: 1

Signal assignment statement:

267:            is_err_active <= '1'; 
Count: 8424
Threshold: 1

Signal assignment statement:

270:            is_err_passive <= '1'; 
Count: 768
Threshold: 1

Signal assignment statement:

273:            is_bus_off <= '1'; 
Count: 8227
Threshold: 1

If statement:

278:    fcs_changed <= '1' when (curr_state /= next_state) else 
279:                   '0'; 

Count: 33578
Threshold: 1

Signal assignment statement:

278:    fcs_changed <= '1' when (curr_state /= next_state) else 
Count: 15989
Threshold: 1

Signal assignment statement:

279:                   '0'
Count: 17589
Threshold: 1

Uncovered branches:

Excluded branches:

Covered branches:

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

169:    tx_err_ctr_mt_erp <= '1' when (unsigned(tx_err_ctr) >= unsigned(mr_erp_erp_limit)
Evaluated toCountThreshold
BinTrue20431
BinFalse306531

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

174:    rx_err_ctr_mt_erp <= '1' when (unsigned(rx_err_ctr) >= unsigned(mr_erp_erp_limit)
Evaluated toCountThreshold
BinTrue88841
BinFalse185311

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

179:    tx_err_ctr_mt_255 <= '1' when (unsigned(tx_err_ctr) > 255
Evaluated toCountThreshold
BinTrue2491
BinFalse322771

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

184:    tx_err_ctr_mt_ewl <= '1' when (unsigned(tx_err_ctr) >= ('0' & unsigned(mr_ewl_ew_limit))
Evaluated toCountThreshold
BinTrue26291
BinFalse300651

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

189:    rx_err_ctr_mt_ewl <= '1' when (unsigned(rx_err_ctr) >= ('0' & unsigned(mr_ewl_ew_limit))
Evaluated toCountThreshold
BinTrue92901
BinFalse181231

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

193:    err_warning_limit_d <= '1' when (tx_err_ctr_mt_ewl = '1' or rx_err_ctr_mt_ewl = '1'
Evaluated toCountThreshold
BinTrue12021
BinFalse39911

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

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

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

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

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

209:    err_warning_limit_pulse <= '1' when (err_warning_limit_d /= err_warning_limit_q
Evaluated toCountThreshold
BinTrue31831
BinFalse47831

"case" / "with" / "select" choice:

224:        when s_fc_err_active => 
Choice ofCountThreshold
Bins_fc_err_active175981

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

225:            if (tx_err_ctr_mt_erp = '1' or rx_err_ctr_mt_erp = '1') then 
Evaluated toCountThreshold
BinTrue11081
BinFalse164901

"case" / "with" / "select" choice:

229:        when s_fc_err_passive => 
Choice ofCountThreshold
Bins_fc_err_passive15581

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

230:            if (tx_err_ctr_mt_255 = '1') then 
Evaluated toCountThreshold
BinTrue2651
BinFalse12931

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

232:            elsif (tx_err_ctr_mt_erp = '0' and rx_err_ctr_mt_erp = '0') then 
Evaluated toCountThreshold
BinTrue1881
BinFalse11051

"case" / "with" / "select" choice:

236:        when s_fc_bus_off => 
Choice ofCountThreshold
Bins_fc_bus_off152931

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

237:            if (set_err_active = '1') then 
Evaluated toCountThreshold
BinTrue66361
BinFalse86571

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

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

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

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

"case" / "with" / "select" choice:

266:        when s_fc_err_active => 
Choice ofCountThreshold
Bins_fc_err_active84241

"case" / "with" / "select" choice:

269:        when s_fc_err_passive => 
Choice ofCountThreshold
Bins_fc_err_passive7681

"case" / "with" / "select" choice:

272:        when s_fc_bus_off => 
Choice ofCountThreshold
Bins_fc_bus_off82271

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

278:    fcs_changed <= '1' when (curr_state /= next_state) else 
Evaluated toCountThreshold
BinTrue159891
BinFalse175891

Uncovered toggles:

Excluded toggles:

Covered toggles:

Port:

 CLK_SYS
FromToCountThreshold
Bin015275788691
Bin105275804601

Port:

 RES_N
FromToCountThreshold
Bin0180821
Bin1080721

Port:

 SET_ERR_ACTIVE
FromToCountThreshold
Bin0166361
Bin1082361

Port:

 MR_EWL_EW_LIMIT(7)
FromToCountThreshold
Bin01781
Bin1016781

Port:

 MR_EWL_EW_LIMIT(6)
FromToCountThreshold
Bin0116861
Bin10861

Port:

 MR_EWL_EW_LIMIT(5)
FromToCountThreshold
Bin0116701
Bin10701

Port:

 MR_EWL_EW_LIMIT(4)
FromToCountThreshold
Bin01821
Bin1016821

Port:

 MR_EWL_EW_LIMIT(3)
FromToCountThreshold
Bin01791
Bin1016791

Port:

 MR_EWL_EW_LIMIT(2)
FromToCountThreshold
Bin01731
Bin1016731

Port:

 MR_EWL_EW_LIMIT(1)
FromToCountThreshold
Bin01831
Bin1016831

Port:

 MR_EWL_EW_LIMIT(0)
FromToCountThreshold
Bin01791
Bin1016791

Port:

 MR_ERP_ERP_LIMIT(7)
FromToCountThreshold
Bin0117361
Bin101361

Port:

 MR_ERP_ERP_LIMIT(6)
FromToCountThreshold
Bin01201
Bin1016201

Port:

 MR_ERP_ERP_LIMIT(5)
FromToCountThreshold
Bin01221
Bin1016221

Port:

 MR_ERP_ERP_LIMIT(4)
FromToCountThreshold
Bin01271
Bin1016271

Port:

 MR_ERP_ERP_LIMIT(3)
FromToCountThreshold
Bin01261
Bin1016261

Port:

 MR_ERP_ERP_LIMIT(2)
FromToCountThreshold
Bin01271
Bin1016271

Port:

 MR_ERP_ERP_LIMIT(1)
FromToCountThreshold
Bin01291
Bin1016291

Port:

 MR_ERP_ERP_LIMIT(0)
FromToCountThreshold
Bin01211
Bin1016211

Port:

 MR_STATUS_EWL
FromToCountThreshold
Bin017921
Bin1023911

Port:

 TX_ERR_CTR(8)
FromToCountThreshold
Bin012491
Bin1018491

Port:

 TX_ERR_CTR(7)
FromToCountThreshold
Bin015211
Bin1021211

Port:

 TX_ERR_CTR(6)
FromToCountThreshold
Bin014881
Bin1020881

Port:

 TX_ERR_CTR(5)
FromToCountThreshold
Bin018111
Bin1024111

Port:

 TX_ERR_CTR(4)
FromToCountThreshold
Bin0119311
Bin1035311

Port:

 TX_ERR_CTR(3)
FromToCountThreshold
Bin01120941
Bin10136941

Port:

 TX_ERR_CTR(2)
FromToCountThreshold
Bin0129801
Bin1045801

Port:

 TX_ERR_CTR(1)
FromToCountThreshold
Bin0133181
Bin1049181

Port:

 TX_ERR_CTR(0)
FromToCountThreshold
Bin0135171
Bin1051171

Port:

 RX_ERR_CTR(8)
FromToCountThreshold
Bin011361
Bin1017361

Port:

 RX_ERR_CTR(7)
FromToCountThreshold
Bin013601
Bin1019601

Port:

 RX_ERR_CTR(6)
FromToCountThreshold
Bin012661
Bin1018641

Port:

 RX_ERR_CTR(5)
FromToCountThreshold
Bin013321
Bin1019311

Port:

 RX_ERR_CTR(4)
FromToCountThreshold
Bin015191
Bin1021191

Port:

 RX_ERR_CTR(3)
FromToCountThreshold
Bin016861
Bin1022851

Port:

 RX_ERR_CTR(2)
FromToCountThreshold
Bin016271
Bin1022271

Port:

 RX_ERR_CTR(1)
FromToCountThreshold
Bin0112081
Bin1028081

Port:

 RX_ERR_CTR(0)
FromToCountThreshold
Bin01112211
Bin10128151

Port:

 IS_ERR_ACTIVE
FromToCountThreshold
Bin0184241
Bin1084151

Port:

 IS_ERR_PASSIVE
FromToCountThreshold
Bin017681
Bin1023681

Port:

 IS_BUS_OFF
FromToCountThreshold
Bin0182271
Bin1082361

Port:

 FCS_CHANGED
FromToCountThreshold
Bin01159891
Bin10175891

Port:

 ERR_WARNING_LIMIT_PULSE
FromToCountThreshold
Bin0131831
Bin1047831

Signal:

 TX_ERR_CTR_MT_ERP
FromToCountThreshold
Bin016931
Bin1022931

Signal:

 RX_ERR_CTR_MT_ERP
FromToCountThreshold
Bin015241
Bin1021241

Signal:

 TX_ERR_CTR_MT_EWL
FromToCountThreshold
Bin017161
Bin1023161

Signal:

 RX_ERR_CTR_MT_EWL
FromToCountThreshold
Bin014501
Bin1020491

Signal:

 TX_ERR_CTR_MT_255
FromToCountThreshold
Bin012491
Bin1018491

Signal:

 ERR_WARNING_LIMIT_D
FromToCountThreshold
Bin017921
Bin1023911

Signal:

 ERR_WARNING_LIMIT_Q
FromToCountThreshold
Bin017921
Bin1023911

Uncovered expressions:

Excluded expressions:

Covered expressions:

"=" expression

193:    err_warning_limit_d <= '1' when (tx_err_ctr_mt_ewl = '1' or rx_err_ctr_mt_ewl = '1') 
Evaluated toCountThreshold
BinFalse42741
BinTrue9191

"=" expression

193:    err_warning_limit_d <= '1' when (tx_err_ctr_mt_ewl = '1' or rx_err_ctr_mt_ewl = '1'
Evaluated toCountThreshold
BinFalse45361
BinTrue6571

"or" expression

193:    err_warning_limit_d <= '1' when (tx_err_ctr_mt_ewl = '1' or rx_err_ctr_mt_ewl = '1'
                                         <---------LHS--------->    <---------RHS--------->  

LHSRHSCountThreshold
BinFalseFalse39911
BinFalseTrue2831
BinTrueFalse5451

"=" expression

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

"/=" expression

209:    err_warning_limit_pulse <= '1' when (err_warning_limit_d /= err_warning_limit_q
Evaluated toCountThreshold
BinFalse47831
BinTrue31831

"=" expression

225:            if (tx_err_ctr_mt_erp = '1' or rx_err_ctr_mt_erp = '1') then 
Evaluated toCountThreshold
BinFalse167991
BinTrue7991

"=" expression

225:            if (tx_err_ctr_mt_erp = '1' or rx_err_ctr_mt_erp = '1') then 
Evaluated toCountThreshold
BinFalse169971
BinTrue6011

"or" expression

225:            if (tx_err_ctr_mt_erp = '1' or rx_err_ctr_mt_erp = '1') then 
                    <---------LHS--------->    <---------RHS--------->       

LHSRHSCountThreshold
BinFalseFalse164901
BinFalseTrue3091
BinTrueFalse5071

"=" expression

230:            if (tx_err_ctr_mt_255 = '1') then 
Evaluated toCountThreshold
BinFalse12931
BinTrue2651

"=" expression

232:            elsif (tx_err_ctr_mt_erp = '0' and rx_err_ctr_mt_erp = '0') then 
Evaluated toCountThreshold
BinFalse7961
BinTrue4971

"=" expression

232:            elsif (tx_err_ctr_mt_erp = '0' and rx_err_ctr_mt_erp = '0') then 
Evaluated toCountThreshold
BinFalse6221
BinTrue6711

"and" expression

232:            elsif (tx_err_ctr_mt_erp = '0' and rx_err_ctr_mt_erp = '0') then 
                       <---------LHS--------->     <---------RHS--------->       

LHSRHSCountThreshold
BinFalseTrue4831
BinTrueFalse3091
BinTrueTrue1881

"=" expression

237:            if (set_err_active = '1') then 
Evaluated toCountThreshold
BinFalse86571
BinTrue66361

"=" expression

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

"/=" expression

278:    fcs_changed <= '1' when (curr_state /= next_state) else 
Evaluated toCountThreshold
BinFalse175891
BinTrue159891

Uncovered FSM states:

Excluded FSM states:

Covered FSM states:

"T_FAULT_CONF_STATE" FSM

163:    signal curr_state           : t_fault_conf_state; 
StateCountThreshold
BinS_FC_ERR_ACTIVE84241
BinS_FC_ERR_PASSIVE7681
BinS_FC_BUS_OFF82271

"T_FAULT_CONF_STATE" FSM

164:    signal next_state           : t_fault_conf_state; 
StateCountThreshold
BinS_FC_ERR_ACTIVE85941
BinS_FC_ERR_PASSIVE9381
BinS_FC_BUS_OFF82271

Uncovered functional coverage:

Excluded functional coverage:

Covered functional coverage: