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: 6277188
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: 13475542
Threshold: 1

Signal assignment statement on line 155:

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

Signal assignment statement on line 156:

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

Signal assignment statement on line 161:

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

Signal assignment statement on line 165:

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

Signal assignment statement on line 166:

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

Signal assignment statement on line 167:

167:              '0'
Count: 16049112
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: 1096781321
Threshold: 1

Signal assignment statement on line 175:

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

If statement on lines 177 to 179:

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

Count: 547174334
Threshold: 1

Signal assignment statement on line 178:

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

Signal assignment statement on line 184:

184:    crc <= crc_q
Count: 6972130
Threshold: 1

Uncovered branches:

Excluded branches:

Covered branches:

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

154:        if (load_init_vect = '1') then 
Evaluated toCountThreshold
BinTrue2083051
BinFalse132672371

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

157:        elsif (crc_nxt = '1') then 
Evaluated toCountThreshold
BinTrue66666321
BinFalse66006051

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

165:    crc_ce <= '1' when (load_init_vect = '1') else 
Evaluated toCountThreshold
BinTrue1138441
BinFalse229911941

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

166:              '1' when (enable = '1' and trig = '1') else 
Evaluated toCountThreshold
BinTrue69420821
BinFalse160491121

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

174:        if (rst_n = '0') then 
Evaluated toCountThreshold
BinTrue24226741
BinFalse10943586471

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

176:        elsif rising_edge(clk_sys) then 
Evaluated toCountThreshold
BinTrue5471743341
BinFalse5471843131

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

177:            if (crc_ce = '1') then 
Evaluated toCountThreshold
BinTrue70153751
BinFalse5401589591

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)0117419701
Bin(16)1017435621
Bin(15)0117641871
Bin(15)1017657841
Bin(14)0117801641
Bin(14)1017817641
Bin(13)0117657991
Bin(13)1017673961
Bin(12)0117059771
Bin(12)1017075751
Bin(11)0117210371
Bin(11)1017226351
Bin(10)0116705891
Bin(10)1016721881
Bin(9)0116840251
Bin(9)1016856241
Bin(8)0116968381
Bin(8)1016984381
Bin(7)0117111151
Bin(7)1017127141
Bin(6)0117253131
Bin(6)1017269131
Bin(5)0117257551
Bin(5)1017273531
Bin(4)0117388771
Bin(4)1017404741
Bin(3)0117591601
Bin(3)1017607591
Bin(2)0117331871
Bin(2)1017347871
Bin(1)0117491341
Bin(1)1017507321
Bin(0)0117703461
Bin(0)1017719431

Signal:

 CRC_Q
ElementFromToCountThreshold
Bin(16)0135742831
Bin(16)1033962461
Bin(15)0117641871
Bin(15)1017729981
Bin(14)0117801641
Bin(14)1017903991
Bin(13)0117657991
Bin(13)1017758541
Bin(12)0117059771
Bin(12)1017160641
Bin(11)0117210371
Bin(11)1017302601
Bin(10)0116705891
Bin(10)1016794311
Bin(9)0116840251
Bin(9)1016929471
Bin(8)0116968381
Bin(8)1017071511
Bin(7)0117111151
Bin(7)1017215191
Bin(6)0117253131
Bin(6)1017353731
Bin(5)0117257551
Bin(5)1017361391
Bin(4)0117388771
Bin(4)1017480271
Bin(3)0117591601
Bin(3)1017691881
Bin(2)0117331871
Bin(2)1017424581
Bin(1)0117491341
Bin(1)1017578631
Bin(0)0117703461
Bin(0)1017806201

Signal:

 CRC_NXT
FromToCountThreshold
Bin0131377891
Bin1031361971

Signal:

 CRC_D
ElementFromToCountThreshold
Bin(16)0167633041
Bin(16)1066082541
Bin(15)0117801661
Bin(15)1018608931
Bin(14)0148913551
Bin(14)1049794171
Bin(13)0148327001
Bin(13)1049222241
Bin(12)0117210381
Bin(12)1017984041
Bin(11)0147958611
Bin(11)1048822441
Bin(10)0116840261
Bin(10)1017620691
Bin(9)0116968401
Bin(9)1017743741
Bin(8)0117111171
Bin(8)1017899871
Bin(7)0117253171
Bin(7)1018077841
Bin(6)0148521111
Bin(6)1049410471
Bin(5)0117388791
Bin(5)1018118741
Bin(4)0148851871
Bin(4)1049739731
Bin(3)0148583791
Bin(3)1049348341
Bin(2)0117491351
Bin(2)1018324581
Bin(1)0148960221
Bin(1)1049923871
Bin(0)0131387511
Bin(0)1032186351

Signal:

 CRC_CE
FromToCountThreshold
Bin0170559261
Bin1070575271

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'15364611
Bin'0''1'16129241
Bin'1''0'15248651
Bin'1''1'15997361

"=" expression on line 154:

 load_init_vect = '1' 
Evaluated toCountThreshold
BinFalse132672371
BinTrue2083051

"=" expression on line 157:

 crc_nxt = '1' 
Evaluated toCountThreshold
BinFalse66006051
BinTrue66666321

"=" expression on line 165:

 load_init_vect = '1' 
Evaluated toCountThreshold
BinFalse229911941
BinTrue1138441

"and" expression on line 166:

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

LHSRHSCountThreshold
BinFalseTrue44910071
BinTrueFalse69452331
BinTrueTrue69420821

"=" expression on line 166:

 enable = '1' 
Evaluated toCountThreshold
BinFalse91038791
BinTrue138873151

"=" expression on line 166:

 trig = '1' 
Evaluated toCountThreshold
BinFalse115581051
BinTrue114330891

"=" expression on line 174:

 rst_n = '0' 
Evaluated toCountThreshold
BinFalse10943586471
BinTrue24226741

"=" expression on line 177:

 crc_ce = '1' 
Evaluated toCountThreshold
BinFalse5401589591
BinTrue70153751

Uncovered FSM states:

Excluded FSM states:

Covered FSM states:

Uncovered functional coverage:

Excluded functional coverage:

Covered functional coverage: