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_17_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_17_RX 100.0 % (15/15) 100.0 % (14/14) 100.0 % (120/120) 100.0 % (21/21) N.A. N.A. 100.0 % (170/170)

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: 6275230
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: 13452464
Threshold: 1

Signal assignment statement on line 155:

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

Signal assignment statement on line 156:

156:            crc_d(G_CRC_WIDTH - 1) <= init_vect_msb; 
Count: 209628
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: 6657593
Threshold: 1

Signal assignment statement on line 161:

161:            crc_d <= (crc_q(G_CRC_WIDTH - 2 downto 0) & '0'); 
Count: 6585243
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: 6950833
Threshold: 1

Uncovered branches:

Excluded branches:

Covered branches:

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

154:        if (load_init_vect = '1') then 
Evaluated toCountThreshold
BinTrue2096281
BinFalse132428361

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

157:        elsif (crc_nxt = '1') then 
Evaluated toCountThreshold
BinTrue66575931
BinFalse65852431

"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(16)0117397551
Bin(16)1017413511
Bin(15)0117574771
Bin(15)1017590761
Bin(14)0117706251
Bin(14)1017722241
Bin(13)0117644781
Bin(13)1017660751
Bin(12)0117036021
Bin(12)1017051991
Bin(11)0117181041
Bin(11)1017197001
Bin(10)0116623671
Bin(10)1016639671
Bin(9)0116766531
Bin(9)1016782511
Bin(8)0116912541
Bin(8)1016928531
Bin(7)0117046161
Bin(7)1017062141
Bin(6)0117209201
Bin(6)1017225191
Bin(5)0117198901
Bin(5)1017214881
Bin(4)0117346031
Bin(4)1017362001
Bin(3)0117497131
Bin(3)1017513091
Bin(2)0117261601
Bin(2)1017277571
Bin(1)0117404311
Bin(1)1017420311
Bin(0)0117681111
Bin(0)1017697091

Signal:

 CRC_Q
ElementFromToCountThreshold
Bin(16)0135566481
Bin(16)1033925841
Bin(15)0117574771
Bin(15)1017663441
Bin(14)0117706251
Bin(14)1017809281
Bin(13)0117644781
Bin(13)1017744711
Bin(12)0117036021
Bin(12)1017135691
Bin(11)0117181041
Bin(11)1017273981
Bin(10)0116623671
Bin(10)1016711271
Bin(9)0116766531
Bin(9)1016855761
Bin(8)0116912541
Bin(8)1017016621
Bin(7)0117046161
Bin(7)1017149921
Bin(6)0117209201
Bin(6)1017308751
Bin(5)0117198901
Bin(5)1017303301
Bin(4)0117346031
Bin(4)1017438361
Bin(3)0117497131
Bin(3)1017597431
Bin(2)0117261601
Bin(2)1017354401
Bin(1)0117404311
Bin(1)1017493911
Bin(0)0117681111
Bin(0)1017782881

Signal:

 CRC_NXT
FromToCountThreshold
Bin0131368121
Bin1031352161

Signal:

 CRC_D
ElementFromToCountThreshold
Bin(16)0167460901
Bin(16)1066011561
Bin(15)0117706291
Bin(15)1018462021
Bin(14)0148884221
Bin(14)1049783151
Bin(13)0148281301
Bin(13)1049161191
Bin(12)0117181061
Bin(12)1017994571
Bin(11)0147871731
Bin(11)1048726171
Bin(10)0116766551
Bin(10)1017515361
Bin(9)0116912581
Bin(9)1017688101
Bin(8)0117046181
Bin(8)1017786631
Bin(7)0117209241
Bin(7)1018069781
Bin(6)0148439891
Bin(6)1049316601
Bin(5)0117346081
Bin(5)1018127131
Bin(4)0148738721
Bin(4)1049612371
Bin(3)0148498211
Bin(3)1049302191
Bin(2)0117404321
Bin(2)1018229751
Bin(1)0148915491
Bin(1)1049824151
Bin(0)0131376411
Bin(0)1032207551

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'15516291
Bin'0''1'16046611
Bin'1''0'15321511
Bin'1''1'15835871

"=" expression on line 154:

 load_init_vect = '1' 
Evaluated toCountThreshold
BinFalse132428361
BinTrue2096281

"=" expression on line 157:

 crc_nxt = '1' 
Evaluated toCountThreshold
BinFalse65852431
BinTrue66575931

"=" 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: