NVC code coverage report

Hierarchy

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.vhd


Current 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 % (47/47) 100.0 % (38/38) 100.0 % (100/100) 100.0 % (33/33) 100.0 % (6/6) N.A. 100.0 % (224/224)

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 169 to 171:

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

Count: 33595
Threshold: 1

Signal assignment statement on line 169:

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

Signal assignment statement on line 171:

171:                         '0'
Count: 31571
Threshold: 1

If statement on lines 174 to 176:

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

Count: 27456
Threshold: 1

Signal assignment statement on line 174:

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

Signal assignment statement on line 176:

176:                         '0'
Count: 18593
Threshold: 1

If statement on lines 179 to 181:

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

Count: 33426
Threshold: 1

Signal assignment statement on line 179:

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

Signal assignment statement on line 181:

181:                         '0'
Count: 33180
Threshold: 1

If statement on lines 184 to 186:

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

Count: 33596
Threshold: 1

Signal assignment statement on line 184:

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

Signal assignment statement on line 186:

186:                         '0'
Count: 30976
Threshold: 1

If statement on lines 189 to 191:

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

Count: 27457
Threshold: 1

Signal assignment statement on line 189:

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

Signal assignment statement on line 191:

191:                         '0'
Count: 18182
Threshold: 1

If statement on lines 193 to 195:

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

Signal assignment statement on line 193:

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

Signal assignment statement on line 195:

195:                           '0'
Count: 3979
Threshold: 1

If statement on lines 202 to 206:

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

Signal assignment statement on line 203:

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

Signal assignment statement on line 205:

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

If statement on lines 209 to 211:

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

Count: 7913
Threshold: 1

Signal assignment statement on line 209:

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

Signal assignment statement on line 211:

211:                               '0'
Count: 4757
Threshold: 1

Signal assignment statement on line 213:

213:    mr_status_ewl <= err_warning_limit_d
Count: 4757
Threshold: 1

Signal assignment statement on line 221:

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

Sequential statement on lines 223 to 240:

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

Count: 34416
Threshold: 1

If statement on lines 225 to 227:

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

Signal assignment statement on line 226:

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

If statement on lines 230 to 234:

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

Signal assignment statement on line 231:

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

Signal assignment statement on line 233:

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

If statement on lines 237 to 239:

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

Count: 15287
Threshold: 1

Signal assignment statement on line 238:

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

If statement on lines 249 to 253:

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

Signal assignment statement on line 250:

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

Signal assignment statement on line 252:

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

Signal assignment statement on line 261:

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

Signal assignment statement on line 262:

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

Signal assignment statement on line 263:

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

Sequential statement on lines 265 to 274:

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

Count: 17414
Threshold: 1

Signal assignment statement on line 267:

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

Signal assignment statement on line 270:

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

Signal assignment statement on line 273:

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

If statement on lines 278 to 279:

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

Count: 33567
Threshold: 1

Signal assignment statement on line 278:

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

Signal assignment statement on line 279:

279:                   '0'
Count: 17584
Threshold: 1

Uncovered branches:

Excluded branches:

Covered branches:

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

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

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

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

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

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

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

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

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

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

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

193:    err_warning_limit_d <= '1' when (tx_err_ctr_mt_ewl = '1' or rx_err_ctr_mt_ewl = '1'
Evaluated toCountThreshold
BinTrue11751
BinFalse39791

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

202:        if (res_n = '0') then 
Evaluated toCountThreshold
BinTrue24248831
BinFalse10875933231

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

204:        elsif (rising_edge(clk_sys)) then 
Evaluated toCountThreshold
BinTrue5437916781
BinFalse5438016451

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

209:    err_warning_limit_pulse <= '1' when (err_warning_limit_d /= err_warning_limit_q
Evaluated toCountThreshold
BinTrue31561
BinFalse47571

"case" / "with" / "select" choice on line 224:

224:        when s_fc_err_active => 
Choice ofCountThreshold
Bins_fc_err_active175951

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

225:            if (tx_err_ctr_mt_erp = '1' or rx_err_ctr_mt_erp = '1') then 
Evaluated toCountThreshold
BinTrue11011
BinFalse164941

"case" / "with" / "select" choice on line 229:

229:        when s_fc_err_passive => 
Choice ofCountThreshold
Bins_fc_err_passive15341

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

230:            if (tx_err_ctr_mt_255 = '1') then 
Evaluated toCountThreshold
BinTrue2601
BinFalse12741

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

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

"case" / "with" / "select" choice on line 236:

236:        when s_fc_bus_off => 
Choice ofCountThreshold
Bins_fc_bus_off152871

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

237:            if (set_err_active = '1') then 
Evaluated toCountThreshold
BinTrue66371
BinFalse86501

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

249:        if (res_n = '0') then 
Evaluated toCountThreshold
BinTrue24248831
BinFalse10875933231

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

251:        elsif (rising_edge(clk_sys)) then 
Evaluated toCountThreshold
BinTrue5437916781
BinFalse5438016451

"case" / "with" / "select" choice on line 266:

266:        when s_fc_err_active => 
Choice ofCountThreshold
Bins_fc_err_active84261

"case" / "with" / "select" choice on line 269:

269:        when s_fc_err_passive => 
Choice ofCountThreshold
Bins_fc_err_passive7611

"case" / "with" / "select" choice on line 272:

272:        when s_fc_bus_off => 
Choice ofCountThreshold
Bins_fc_bus_off82271

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

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

Uncovered toggles:

Excluded toggles:

Port:

 CLK_SYS
FromToCountThresholdExcluded due to
Bin0101Exclude file
Bin1001Exclude file

Port:

 RES_N
FromToCountThresholdExcluded due to
Bin0101Exclude file
Bin1001Exclude file

Port:

 SET_ERR_ACTIVE
FromToCountThresholdExcluded due to
Bin0101Exclude file
Bin1001Exclude file

Port:

 MR_EWL_EW_LIMIT
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:

 MR_ERP_ERP_LIMIT
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:

 TX_ERR_CTR
ElementFromToCountThresholdExcluded due to
Bin(8)0101Exclude file
Bin(8)1001Exclude file
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:

 RX_ERR_CTR
ElementFromToCountThresholdExcluded due to
Bin(8)0101Exclude file
Bin(8)1001Exclude file
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

Covered toggles:

Port:

 MR_STATUS_EWL
FromToCountThreshold
Bin017781
Bin1023781

Port:

 IS_ERR_ACTIVE
FromToCountThreshold
Bin0184261
Bin1084151

Port:

 IS_ERR_PASSIVE
FromToCountThreshold
Bin017611
Bin1023621

Port:

 IS_BUS_OFF
FromToCountThreshold
Bin0182271
Bin1082381

Port:

 FCS_CHANGED
FromToCountThreshold
Bin01159831
Bin10175841

Port:

 ERR_WARNING_LIMIT_PULSE
FromToCountThreshold
Bin0131561
Bin1047571

Signal:

 TX_ERR_CTR_MT_ERP
FromToCountThreshold
Bin016861
Bin1022871

Signal:

 RX_ERR_CTR_MT_ERP
FromToCountThreshold
Bin015181
Bin1021191

Signal:

 TX_ERR_CTR_MT_EWL
FromToCountThreshold
Bin017031
Bin1023041

Signal:

 RX_ERR_CTR_MT_EWL
FromToCountThreshold
Bin014361
Bin1020361

Signal:

 TX_ERR_CTR_MT_255
FromToCountThreshold
Bin012461
Bin1018471

Signal:

 ERR_WARNING_LIMIT_D
FromToCountThreshold
Bin017781
Bin1023781

Signal:

 ERR_WARNING_LIMIT_Q
FromToCountThreshold
Bin017781
Bin1023781

Uncovered expressions:

Excluded expressions:

Covered expressions:

"or" expression on line 193:

 tx_err_ctr_mt_ewl = '1' or rx_err_ctr_mt_ewl = '1' 
 <---------LHS--------->    <---------RHS---------> 

LHSRHSCountThreshold
BinFalseFalse39791
BinFalseTrue2901
BinTrueFalse5241

"=" expression on line 193:

 tx_err_ctr_mt_ewl = '1' 
Evaluated toCountThreshold
BinFalse42691
BinTrue8851

"=" expression on line 193:

 rx_err_ctr_mt_ewl = '1' 
Evaluated toCountThreshold
BinFalse45031
BinTrue6511

"=" expression on line 202:

 res_n = '0' 
Evaluated toCountThreshold
BinFalse10875933231
BinTrue24248831

"/=" expression on line 209:

 err_warning_limit_d /= err_warning_limit_q 
Evaluated toCountThreshold
BinFalse47571
BinTrue31561

"or" expression on line 225:

 tx_err_ctr_mt_erp = '1' or rx_err_ctr_mt_erp = '1' 
 <---------LHS--------->    <---------RHS---------> 

LHSRHSCountThreshold
BinFalseFalse164941
BinFalseTrue3101
BinTrueFalse4881

"=" expression on line 225:

 tx_err_ctr_mt_erp = '1' 
Evaluated toCountThreshold
BinFalse168041
BinTrue7911

"=" expression on line 225:

 rx_err_ctr_mt_erp = '1' 
Evaluated toCountThreshold
BinFalse169821
BinTrue6131

"=" expression on line 230:

 tx_err_ctr_mt_255 = '1' 
Evaluated toCountThreshold
BinFalse12741
BinTrue2601

"and" expression on line 232:

 tx_err_ctr_mt_erp = '0' and rx_err_ctr_mt_erp = '0' 
 <---------LHS--------->     <---------RHS---------> 

LHSRHSCountThreshold
BinFalseTrue4671
BinTrueFalse3101
BinTrueTrue1881

"=" expression on line 232:

 tx_err_ctr_mt_erp = '0' 
Evaluated toCountThreshold
BinFalse7761
BinTrue4981

"=" expression on line 232:

 rx_err_ctr_mt_erp = '0' 
Evaluated toCountThreshold
BinFalse6191
BinTrue6551

"=" expression on line 237:

 set_err_active = '1' 
Evaluated toCountThreshold
BinFalse86501
BinTrue66371

"=" expression on line 249:

 res_n = '0' 
Evaluated toCountThreshold
BinFalse10875933231
BinTrue24248831

"/=" expression on line 278:

 curr_state /= next_state 
Evaluated toCountThreshold
BinFalse175841
BinTrue159831

Uncovered FSM states:

Excluded FSM states:

Covered FSM states:

"T_FAULT_CONF_STATE" FSM on line 163:

163:    signal curr_state           : t_fault_conf_state; 
StateCountThreshold
BinS_FC_ERR_ACTIVE84261
BinS_FC_ERR_PASSIVE7611
BinS_FC_BUS_OFF82271

"T_FAULT_CONF_STATE" FSM on line 164:

164:    signal next_state           : t_fault_conf_state; 
StateCountThreshold
BinS_FC_ERR_ACTIVE85961
BinS_FC_ERR_PASSIVE9311
BinS_FC_BUS_OFF82271

Uncovered functional coverage:

Excluded functional coverage:

Covered functional coverage: