NVC code coverage report

Hierarchy

Instance: CTU_CAN_FD_TB.TB_TOP_CTU_CAN_FD.I_DUT.I_MAC_TOP.I_MAC_PC_TOP.I_MAC_PC_CONTROL_COUNTER

File:  /__w/CTU-CAN-FD/CTU-CAN-FD/src/medium_access_control/mac_pc_top.vhd


Current Instance Statement Branch Toggle Expression FSM state Functional Average
CTU_CAN_FD_TB.TB_TOP_CTU_CAN_FD.I_DUT.I_MAC_TOP.I_MAC_PC_TOP.I_MAC_PC_CONTROL_COUNTER 100.0 % (45/45) 100.0 % (40/40) 100.0 % (158/158) 100.0 % (33/33) N.A. N.A. 100.0 % (276/276)

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 178 to 180:

178:    ctrl_ctr_d <= unsigned(ctrl_ctr_pload_val) when (ctrl_ctr_pload = '1') else 
179:                              (ctrl_ctr_q - 1) when (rx_trigger = '1') else 
180:                                   ctrl_ctr_q; 

Count: 30036577
Threshold: 1

Signal assignment statement on line 178:

178:    ctrl_ctr_d <= unsigned(ctrl_ctr_pload_val) when (ctrl_ctr_pload = '1') else 
Count: 1868198
Threshold: 1

Signal assignment statement on line 179:

179:                              (ctrl_ctr_q - 1) when (rx_trigger = '1') else 
Count: 17476118
Threshold: 1

Signal assignment statement on line 180:

180:                                   ctrl_ctr_q; 
Count: 10692261
Threshold: 1

If statement on lines 183 to 185:

183:    ctrl_ctr_ce <= '1' when (rx_trigger = '1' and ctrl_ctr_ena = '1') else 
184:                   '1' when (ctrl_ctr_pload = '1') else 
185:                   '0'; 

Count: 22402033
Threshold: 1

Signal assignment statement on line 183:

183:    ctrl_ctr_ce <= '1' when (rx_trigger = '1' and ctrl_ctr_ena = '1') else 
Count: 7656624
Threshold: 1

Signal assignment statement on line 184:

184:                   '1' when (ctrl_ctr_pload = '1') else 
Count: 831139
Threshold: 1

Signal assignment statement on line 185:

185:                   '0'; 
Count: 13914270
Threshold: 1

If statement on lines 187 to 189:

187:    ctrl_ctr_zero <= '1' when (ctrl_ctr_q = 0) 
188:                         else 
189:                     '0'; 

Count: 7399953
Threshold: 1

Signal assignment statement on line 187:

187:    ctrl_ctr_zero <= '1' when (ctrl_ctr_q = 0) 
Count: 356588
Threshold: 1

Signal assignment statement on line 189:

189:                     '0'; 
Count: 7043365
Threshold: 1

If statement on lines 191 to 193:

191:    ctrl_ctr_one <= '1' when (ctrl_ctr_q = 1) 
192:                        else 
193:                    '0'; 

Count: 7399953
Threshold: 1

Signal assignment statement on line 191:

191:    ctrl_ctr_one <= '1' when (ctrl_ctr_q = 1) 
Count: 352514
Threshold: 1

Signal assignment statement on line 193:

193:                    '0'; 
Count: 7047439
Threshold: 1

If statement on lines 200 to 206:

200:        if (rst_n = '0') then 
201:            ctrl_ctr_q <= (others => '0'); 
...
205:            end if; 
206:        end if; 

Count: 1089136168
Threshold: 1

Signal assignment statement on line 201:

201:            ctrl_ctr_q <= (others => '0'); 
Count: 2422593
Threshold: 1

If statement on lines 203 to 205:

203:            if (ctrl_ctr_ce = '1') then 
204:                ctrl_ctr_q <= ctrl_ctr_d; 
205:            end if; 

Count: 543351807
Threshold: 1

Signal assignment statement on line 204:

204:                ctrl_ctr_q <= ctrl_ctr_d; 
Count: 7853545
Threshold: 1

If statement on lines 218 to 219:

218:    compl_ctr_d <= (others => '0') when (ctrl_ctr_pload = '1') else 
219:                   compl_ctr_q + 1; 

Count: 6195182
Threshold: 1

Signal assignment statement on line 218:

218:    compl_ctr_d <= (others => '0') when (ctrl_ctr_pload = '1') else 
Count: 881459
Threshold: 1

Signal assignment statement on line 219:

219:                   compl_ctr_q + 1; 
Count: 5313723
Threshold: 1

If statement on lines 221 to 223:

221:    compl_ctr_ce <= '1' when (ctrl_ctr_pload = '1') else 
222:                    '1' when (compl_ctr_ena = '1') else 
223:                    '0'; 

Count: 10668183
Threshold: 1

Signal assignment statement on line 221:

221:    compl_ctr_ce <= '1' when (ctrl_ctr_pload = '1') else 
Count: 892203
Threshold: 1

Signal assignment statement on line 222:

222:                    '1' when (compl_ctr_ena = '1') else 
Count: 4482852
Threshold: 1

Signal assignment statement on line 223:

223:                    '0'; 
Count: 5293128
Threshold: 1

If statement on lines 227 to 233:

227:        if (rst_n = '0') then 
228:            compl_ctr_q <= (others => '0'); 
...
232:            end if; 
233:        end if; 

Count: 1089136168
Threshold: 1

Signal assignment statement on line 228:

228:            compl_ctr_q <= (others => '0'); 
Count: 2422593
Threshold: 1

If statement on lines 230 to 232:

230:            if (compl_ctr_ce = '1') then 
231:                compl_ctr_q <= compl_ctr_d; 
232:            end if; 

Count: 543351807
Threshold: 1

Signal assignment statement on line 231:

231:                compl_ctr_q <= compl_ctr_d; 
Count: 5359245
Threshold: 1

If statement on lines 240 to 242:

240:    ctrl_counted_byte <= '1' when (compl_ctr_q(2 downto 0) = "111") 
241:                             else 
242:                         '0'; 

Count: 4502525
Threshold: 1

Signal assignment statement on line 240:

240:    ctrl_counted_byte <= '1' when (compl_ctr_q(2 downto 0) = "111") 
Count: 553489
Threshold: 1

Signal assignment statement on line 242:

242:                         '0'; 
Count: 3949036
Threshold: 1

Signal assignment statement on line 245:

245:    ctrl_counted_byte_index <= std_logic_vector(compl_ctr_q(4 downto 3)); 
Count: 559077
Threshold: 1

Signal assignment statement on line 248:

248:    compl_ctr_div_32 <= compl_ctr_q(G_CTRL_CTR_WIDTH - 1 downto 5); 
Count: 145349
Threshold: 1

Signal assignment statement on line 251:

251:    compl_ctr_div_32_plus_5 <= to_integer(compl_ctr_div_32) + 5; 
Count: 145349
Threshold: 1

If statement on lines 254 to 256:

254:    compl_ctr_div_32_plus_5_sat <= 
255:        compl_ctr_div_32_plus_5 when (compl_ctr_div_32_plus_5 < 19) else 
256:        19; 

Count: 145349
Threshold: 1

Signal assignment statement on line 255:

255:        compl_ctr_div_32_plus_5 when (compl_ctr_div_32_plus_5 < 19) else 
Count: 141905
Threshold: 1

Signal assignment statement on line 256:

256:        19; 
Count: 3444
Threshold: 1

Signal assignment statement on line 267:

267:        std_logic_vector(to_unsigned(compl_ctr_div_32_plus_5_sat, 5)); 
Count: 144011
Threshold: 1

If statement on lines 275 to 283:

275:        if (rst_n = '0') then 
276:            alc_alc_bit <= (others => '0'); 
...
282:            end if; 
283:        end if; 

Count: 1089136168
Threshold: 1

Signal assignment statement on line 276:

276:            alc_alc_bit <= (others => '0'); 
Count: 2422593
Threshold: 1

Signal assignment statement on line 277:

277:            alc_alc_id_field <= (others => '0'); 
Count: 2422593
Threshold: 1

If statement on lines 279 to 282:

279:            if (arbitration_lost = '1') then 
280:                alc_alc_bit <= std_logic_vector(ctrl_ctr_q(4 downto 0)); 
281:                alc_alc_id_field <= arbitration_part; 
282:            end if; 

Count: 543351807
Threshold: 1

Signal assignment statement on line 280:

280:                alc_alc_bit <= std_logic_vector(ctrl_ctr_q(4 downto 0)); 
Count: 713
Threshold: 1

Signal assignment statement on line 281:

281:                alc_alc_id_field <= arbitration_part; 
Count: 713
Threshold: 1

Uncovered branches:

Excluded branches:

Covered branches:

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

178:    ctrl_ctr_d <= unsigned(ctrl_ctr_pload_val) when (ctrl_ctr_pload = '1') else 
Evaluated toCountThreshold
BinTrue18681981
BinFalse281683791

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

179:                              (ctrl_ctr_q - 1) when (rx_trigger = '1') else 
Evaluated toCountThreshold
BinTrue174761181
BinFalse106922611

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

183:    ctrl_ctr_ce <= '1' when (rx_trigger = '1' and ctrl_ctr_ena = '1') else 
Evaluated toCountThreshold
BinTrue76566241
BinFalse147454091

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

184:                   '1' when (ctrl_ctr_pload = '1') else 
Evaluated toCountThreshold
BinTrue8311391
BinFalse139142701

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

187:    ctrl_ctr_zero <= '1' when (ctrl_ctr_q = 0) 
Evaluated toCountThreshold
BinTrue3565881
BinFalse70433651

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

191:    ctrl_ctr_one <= '1' when (ctrl_ctr_q = 1) 
Evaluated toCountThreshold
BinTrue3525141
BinFalse70474391

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

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

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

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

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

203:            if (ctrl_ctr_ce = '1') then 
Evaluated toCountThreshold
BinTrue78535451
BinFalse5354982621

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

218:    compl_ctr_d <= (others => '0') when (ctrl_ctr_pload = '1') else 
Evaluated toCountThreshold
BinTrue8814591
BinFalse53137231

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

221:    compl_ctr_ce <= '1' when (ctrl_ctr_pload = '1') else 
Evaluated toCountThreshold
BinTrue8922031
BinFalse97759801

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

222:                    '1' when (compl_ctr_ena = '1') else 
Evaluated toCountThreshold
BinTrue44828521
BinFalse52931281

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

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

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

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

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

230:            if (compl_ctr_ce = '1') then 
Evaluated toCountThreshold
BinTrue53592451
BinFalse5379925621

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

240:    ctrl_counted_byte <= '1' when (compl_ctr_q(2 downto 0) = "111") 
Evaluated toCountThreshold
BinTrue5534891
BinFalse39490361

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

255:        compl_ctr_div_32_plus_5 when (compl_ctr_div_32_plus_5 < 19) else 
Evaluated toCountThreshold
BinTrue1419051
BinFalse34441

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

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

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

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

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

279:            if (arbitration_lost = '1') then 
Evaluated toCountThreshold
BinTrue7131
BinFalse5433510941

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:

 RX_TRIGGER
FromToCountThresholdExcluded due to
Bin0101Exclude file
Bin1001Exclude file

Port:

 CTRL_CTR_ENA
FromToCountThresholdExcluded due to
Bin0101Exclude file
Bin1001Exclude file

Port:

 CTRL_CTR_PLOAD
FromToCountThresholdExcluded due to
Bin0101Exclude file
Bin1001Exclude file

Port:

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

 COMPL_CTR_ENA
FromToCountThresholdExcluded due to
Bin0101Exclude file
Bin1001Exclude file

Port:

 ARBITRATION_LOST
FromToCountThresholdExcluded due to
Bin0101Exclude file
Bin1001Exclude file

Port:

 ARBITRATION_PART
ElementFromToCountThresholdExcluded due to
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:

 CTRL_CTR_ZERO
FromToCountThreshold
Bin013565881
Bin103565961

Port:

 CTRL_CTR_ONE
FromToCountThreshold
Bin013525141
Bin103541151

Port:

 CTRL_COUNTED_BYTE
FromToCountThreshold
Bin015534891
Bin105550901

Port:

 CTRL_COUNTED_BYTE_INDEX
ElementFromToCountThreshold
Bin(1)011370851
Bin(1)101386861
Bin(0)012751311
Bin(0)102767321

Port:

 CTRL_CTR_MEM_INDEX
ElementFromToCountThreshold
Bin(4)0147731
Bin(4)1063741
Bin(3)01127881
Bin(3)10143891
Bin(2)01191621
Bin(2)10191621
Bin(1)01409581
Bin(1)10425591
Bin(0)01682711
Bin(0)10682711

Port:

 ALC_ALC_BIT
ElementFromToCountThreshold
Bin(4)01691
Bin(4)1016681
Bin(3)01901
Bin(3)1016891
Bin(2)011031
Bin(2)1017021
Bin(1)011711
Bin(1)1017701
Bin(0)012991
Bin(0)1018981

Port:

 ALC_ALC_ID_FIELD
ElementFromToCountThreshold
Bin(2)01321
Bin(2)1016331
Bin(1)01421
Bin(1)1016411
Bin(0)01961
Bin(0)1016971

Signal:

 CTRL_CTR_D
ElementFromToCountThreshold
Bin(8)018636581
Bin(8)108652591
Bin(7)018888111
Bin(7)108904121
Bin(6)019352921
Bin(6)109368931
Bin(5)0110519601
Bin(5)1010535611
Bin(4)0113130801
Bin(4)1013146811
Bin(3)0120796591
Bin(3)1020812591
Bin(2)0134428401
Bin(2)1034444351
Bin(1)0160192161
Bin(1)1060208121
Bin(0)01141204981
Bin(0)10141220911

Signal:

 CTRL_CTR_Q
ElementFromToCountThreshold
Bin(8)011254931
Bin(8)101270941
Bin(7)011337841
Bin(7)101353851
Bin(6)011491791
Bin(6)101507801
Bin(5)011878601
Bin(5)101894611
Bin(4)012704731
Bin(4)102720741
Bin(3)015174741
Bin(3)105190751
Bin(2)019601541
Bin(2)109617491
Bin(1)0118664181
Bin(1)1018680141
Bin(0)0135892871
Bin(0)1035908811

Signal:

 CTRL_CTR_CE
FromToCountThreshold
Bin0178032441
Bin1078048441

Signal:

 COMPL_CTR_D
ElementFromToCountThreshold
Bin(8)0180741
Bin(8)1096751
Bin(7)01175291
Bin(7)10191301
Bin(6)01380181
Bin(6)10396191
Bin(5)01747251
Bin(5)10763261
Bin(4)011449511
Bin(4)101465521
Bin(3)012937411
Bin(3)102953421
Bin(2)015638421
Bin(2)105654431
Bin(1)0111279851
Bin(1)1011295861
Bin(0)0130466181
Bin(0)1030450181

Signal:

 COMPL_CTR_Q
ElementFromToCountThreshold
Bin(8)012145601
Bin(8)103493531
Bin(7)014573421
Bin(7)105988021
Bin(6)019288871
Bin(6)1010723301
Bin(5)0120156181
Bin(5)1022865741
Bin(4)0110837771
Bin(4)1011871961
Bin(3)0121746231
Bin(3)1022815761
Bin(2)015618971
Bin(2)105653291
Bin(1)0111241091
Bin(1)1011275411
Bin(0)0122453161
Bin(0)1022487481

Signal:

 COMPL_CTR_DIV_32
ElementFromToCountThreshold
Bin(3)0170771
Bin(3)1086781
Bin(2)01150851
Bin(2)10166861
Bin(1)01306001
Bin(1)10322011
Bin(0)01680081
Bin(0)10696091

Signal:

 COMPL_CTR_CE
FromToCountThreshold
Bin0152883261
Bin1052899261

Uncovered expressions:

Excluded expressions:

Covered expressions:

"=" expression on line 178:

 ctrl_ctr_pload = '1' 
Evaluated toCountThreshold
BinFalse281683791
BinTrue18681981

"=" expression on line 179:

 rx_trigger = '1' 
Evaluated toCountThreshold
BinFalse106922611
BinTrue174761181

"and" expression on line 183:

 rx_trigger = '1' and ctrl_ctr_ena = '1' 
 <-----LHS------>     <------RHS-------> 

LHSRHSCountThreshold
BinFalseTrue78972401
BinTrueFalse34882361
BinTrueTrue76566241

"=" expression on line 183:

 rx_trigger = '1' 
Evaluated toCountThreshold
BinFalse112571731
BinTrue111448601

"=" expression on line 183:

 ctrl_ctr_ena = '1' 
Evaluated toCountThreshold
BinFalse68481691
BinTrue155538641

"=" expression on line 184:

 ctrl_ctr_pload = '1' 
Evaluated toCountThreshold
BinFalse139142701
BinTrue8311391

"=" expression on line 200:

 rst_n = '0' 
Evaluated toCountThreshold
BinFalse10867135751
BinTrue24225931

"=" expression on line 203:

 ctrl_ctr_ce = '1' 
Evaluated toCountThreshold
BinFalse5354982621
BinTrue78535451

"=" expression on line 218:

 ctrl_ctr_pload = '1' 
Evaluated toCountThreshold
BinFalse53137231
BinTrue8814591

"=" expression on line 221:

 ctrl_ctr_pload = '1' 
Evaluated toCountThreshold
BinFalse97759801
BinTrue8922031

"=" expression on line 222:

 compl_ctr_ena = '1' 
Evaluated toCountThreshold
BinFalse52931281
BinTrue44828521

"=" expression on line 227:

 rst_n = '0' 
Evaluated toCountThreshold
BinFalse10867135751
BinTrue24225931

"=" expression on line 230:

 compl_ctr_ce = '1' 
Evaluated toCountThreshold
BinFalse5379925621
BinTrue53592451

"<" expression on line 255:

 compl_ctr_div_32_plus_5 < 19 
Evaluated toCountThreshold
BinFalse34441
BinTrue1419051

"=" expression on line 275:

 rst_n = '0' 
Evaluated toCountThreshold
BinFalse10867135751
BinTrue24225931

"=" expression on line 279:

 arbitration_lost = '1' 
Evaluated toCountThreshold
BinFalse5433510941
BinTrue7131

Uncovered FSM states:

Excluded FSM states:

Covered FSM states:

Uncovered functional coverage:

Excluded functional coverage:

Covered functional coverage: