NVC code coverage report

Hierarchy

Instance: CTU_CAN_FD_TB.TB_TOP_CTU_CAN_FD.I_DUT.I_MAC_TOP.I_MAC_CRC_TOP.I_MAC_CRC_CALC_21_RX

File:  /__w/CTU-CAN-FD/CTU-CAN-FD/src/medium_access_control/mac_crc_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_CRC_TOP.I_MAC_CRC_CALC_21_RX 100.0 % (15/15) 100.0 % (14/14) 100.0 % (144/144) 100.0 % (21/21) N.A. N.A. 100.0 % (194/194)

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:

Signal assignment statement on line 150:

150:    crc_nxt         <= data_in xor crc_q(G_CRC_WIDTH - 1); 
Count: 6290699
Threshold: 1

If statement on lines 154 to 162:

154:        if (load_init_vect = '1') then 
155:            crc_d <= (others => '0'); 
...
161:            crc_d <= (crc_q(G_CRC_WIDTH - 2 downto 0) & '0'); 
162:        end if; 

Count: 13467939
Threshold: 1

Signal assignment statement on line 155:

155:            crc_d <= (others => '0'); 
Count: 211484
Threshold: 1

Signal assignment statement on line 156:

156:            crc_d(G_CRC_WIDTH - 1) <= init_vect_msb; 
Count: 211484
Threshold: 1

Signal assignment statement on lines 158 to 159:

158:            crc_d <= (crc_q(G_CRC_WIDTH - 2 downto 0) & '0') xor 
159:                      G_POLYNOMIAL(G_CRC_WIDTH - 1 downto 0); 

Count: 6594834
Threshold: 1

Signal assignment statement on line 161:

161:            crc_d <= (crc_q(G_CRC_WIDTH - 2 downto 0) & '0'); 
Count: 6661621
Threshold: 1

If statement on lines 165 to 167:

165:    crc_ce <= '1' when (load_init_vect = '1') else 
166:              '1' when (enable = '1' and trig = '1') else 
167:              '0'; 

Count: 23044071
Threshold: 1

Signal assignment statement on line 165:

165:    crc_ce <= '1' when (load_init_vect = '1') else 
Count: 113932
Threshold: 1

Signal assignment statement on line 166:

166:              '1' when (enable = '1' and trig = '1') else 
Count: 6921187
Threshold: 1

Signal assignment statement on line 167:

167:              '0'; 
Count: 16008952
Threshold: 1

If statement on lines 174 to 180:

174:        if (rst_n = '0') then 
175:            crc_q             <= (others => '0'); 
...
179:            end if; 
180:        end if; 

Count: 1089136168
Threshold: 1

Signal assignment statement on line 175:

175:            crc_q             <= (others => '0'); 
Count: 2422593
Threshold: 1

If statement on lines 177 to 179:

177:            if (crc_ce = '1') then 
178:                crc_q <= crc_d; 
179:            end if; 

Count: 543351807
Threshold: 1

Signal assignment statement on line 178:

178:                crc_q <= crc_d; 
Count: 6993861
Threshold: 1

Signal assignment statement on line 184:

184:    crc <= crc_q; 
Count: 6950839
Threshold: 1

Uncovered branches:

Excluded branches:

Covered branches:

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

154:        if (load_init_vect = '1') then 
Evaluated toCountThreshold
BinTrue2114841
BinFalse132564551

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

157:        elsif (crc_nxt = '1') then 
Evaluated toCountThreshold
BinTrue65948341
BinFalse66616211

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

165:    crc_ce <= '1' when (load_init_vect = '1') else 
Evaluated toCountThreshold
BinTrue1139321
BinFalse229301391

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

166:              '1' when (enable = '1' and trig = '1') else 
Evaluated toCountThreshold
BinTrue69211871
BinFalse160089521

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

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

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

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

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

177:            if (crc_ce = '1') then 
Evaluated toCountThreshold
BinTrue69938611
BinFalse5363579461

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:

 DATA_IN
FromToCountThresholdExcluded due to
Bin0101Exclude file
Bin1001Exclude file

Port:

 TRIG
FromToCountThresholdExcluded due to
Bin0101Exclude file
Bin1001Exclude file

Port:

 ENABLE
FromToCountThresholdExcluded due to
Bin0101Exclude file
Bin1001Exclude file

Port:

 INIT_VECT_MSB
FromToCountThresholdExcluded due to
Bin0101Exclude file
Bin1001Exclude file

Port:

 LOAD_INIT_VECT
FromToCountThresholdExcluded due to
Bin0101Exclude file
Bin1001Exclude file

Covered toggles:

Port:

 CRC
ElementFromToCountThreshold
Bin(20)0117474911
Bin(20)1017490841
Bin(19)0117049171
Bin(19)1017065141
Bin(18)0117203241
Bin(18)1017219221
Bin(17)0117341121
Bin(17)1017357111
Bin(16)0117474991
Bin(16)1017490991
Bin(15)0117615361
Bin(15)1017631351
Bin(14)0117753131
Bin(14)1017769111
Bin(13)0117897811
Bin(13)1017913771
Bin(12)0117303421
Bin(12)1017319411
Bin(11)0117460831
Bin(11)1017476801
Bin(10)0117311211
Bin(10)1017327191
Bin(9)0117441651
Bin(9)1017457641
Bin(8)0117595491
Bin(8)1017611451
Bin(7)0117744641
Bin(7)1017760631
Bin(6)0117102011
Bin(6)1017117991
Bin(5)0117243781
Bin(5)1017259761
Bin(4)0117364391
Bin(4)1017380391
Bin(3)0117661311
Bin(3)1017677291
Bin(2)0117563211
Bin(2)1017579181
Bin(1)0117713691
Bin(1)1017729671
Bin(0)0117836151
Bin(0)1017852121

Signal:

 CRC_Q
ElementFromToCountThreshold
Bin(20)0135296301
Bin(20)1034196081
Bin(19)0117049171
Bin(19)1017140901
Bin(18)0117203241
Bin(18)1017293331
Bin(17)0117341121
Bin(17)1017444391
Bin(16)0117474991
Bin(16)1017578631
Bin(15)0117615361
Bin(15)1017715511
Bin(14)0117753131
Bin(14)1017852891
Bin(13)0117897811
Bin(13)1018001411
Bin(12)0117303421
Bin(12)1017403171
Bin(11)0117460831
Bin(11)1017553321
Bin(10)0117311211
Bin(10)1017413581
Bin(9)0117441651
Bin(9)1017533891
Bin(8)0117595491
Bin(8)1017687461
Bin(7)0117744641
Bin(7)1017844481
Bin(6)0117102011
Bin(6)1017194131
Bin(5)0117243781
Bin(5)1017343311
Bin(4)0117364391
Bin(4)1017452491
Bin(3)0117661311
Bin(3)1017750681
Bin(2)0117563211
Bin(2)1017655071
Bin(1)0117713691
Bin(1)1017805411
Bin(0)0117836151
Bin(0)1017924331

Signal:

 CRC_NXT
FromToCountThreshold
Bin0131445451
Bin1031429521

Signal:

 CRC_D
ElementFromToCountThreshold
Bin(20)0167506991
Bin(20)1066101761
Bin(19)0117203281
Bin(19)1018026001
Bin(18)0117341171
Bin(18)1018174321
Bin(17)0117475041
Bin(17)1018246551
Bin(16)0117615401
Bin(16)1018437611
Bin(15)0117753171
Bin(15)1018538851
Bin(14)0117897851
Bin(14)1018777351
Bin(13)0148612781
Bin(13)1049431301
Bin(12)0117460851
Bin(12)1018277301
Bin(11)0148626081
Bin(11)1049550791
Bin(10)0117441671
Bin(10)1018168421
Bin(9)0117595541
Bin(9)1018398301
Bin(8)0117744681
Bin(8)1018575771
Bin(7)0148410611
Bin(7)1049214191
Bin(6)0117243791
Bin(6)1018031641
Bin(5)0117364421
Bin(5)1018068441
Bin(4)0148982701
Bin(4)1049894201
Bin(3)0148870181
Bin(3)1049704851
Bin(2)0117713721
Bin(2)1018526771
Bin(1)0117836191
Bin(1)1018588261
Bin(0)0131454181
Bin(0)1032343931

Signal:

 CRC_CE
FromToCountThreshold
Bin0170351191
Bin1070367201

Uncovered expressions:

Excluded expressions:

Covered expressions:

"xor" expression on line 150:

 data_in xor crc_q(G_CRC_WIDTH - 1) 
 <-LHS->     <--------RHS---------> 

LHSRHSCountThreshold
Bin'0''0'15524211
Bin'0''1'15517631
Bin'1''0'15927821
Bin'1''1'15905311

"=" expression on line 154:

 load_init_vect = '1' 
Evaluated toCountThreshold
BinFalse132564551
BinTrue2114841

"=" expression on line 157:

 crc_nxt = '1' 
Evaluated toCountThreshold
BinFalse66616211
BinTrue65948341

"=" expression on line 165:

 load_init_vect = '1' 
Evaluated toCountThreshold
BinFalse229301391
BinTrue1139321

"and" expression on line 166:

 enable = '1' and trig = '1' 
 <---LHS---->     <--RHS---> 

LHSRHSCountThreshold
BinFalseTrue44812261
BinTrueFalse69244391
BinTrueTrue69211871

"=" expression on line 166:

 enable = '1' 
Evaluated toCountThreshold
BinFalse90845131
BinTrue138456261

"=" expression on line 166:

 trig = '1' 
Evaluated toCountThreshold
BinFalse115277261
BinTrue114024131

"=" expression on line 174:

 rst_n = '0' 
Evaluated toCountThreshold
BinFalse10867135751
BinTrue24225931

"=" expression on line 177:

 crc_ce = '1' 
Evaluated toCountThreshold
BinFalse5363579461
BinTrue69938611

Uncovered FSM states:

Excluded FSM states:

Covered FSM states:

Uncovered functional coverage:

Excluded functional coverage:

Covered functional coverage: