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_15

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_15 100.0 % (15/15) 100.0 % (14/14) 100.0 % (108/108) 100.0 % (21/21) N.A. N.A. 100.0 % (158/158)

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: 5716142
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: 11762172
Threshold: 1

Signal assignment statement on line 155:

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

Signal assignment statement on line 156:

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

Signal assignment statement on line 161:

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

Signal assignment statement on line 167:

167:              '0'; 
Count: 15192924
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: 6063412
Threshold: 1

Signal assignment statement on line 184:

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

Uncovered branches:

Excluded branches:

Covered branches:

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

154:        if (load_init_vect = '1') then 
Evaluated toCountThreshold
BinTrue1951951
BinFalse115669771

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

157:        elsif (crc_nxt = '1') then 
Evaluated toCountThreshold
BinTrue58979771
BinFalse56690001

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

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

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

166:              '1' when (enable = '1' and trig = '1') else 
Evaluated toCountThreshold
BinTrue62178381
BinFalse151929241

"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
BinTrue60634121
BinFalse5372883951

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(14)0114603451
Bin(14)1014619431
Bin(13)0114170511
Bin(13)1014186491
Bin(12)0114304271
Bin(12)1014320261
Bin(11)0114446541
Bin(11)1014462501
Bin(10)0114608831
Bin(10)1014624831
Bin(9)0114493621
Bin(9)1014509601
Bin(8)0114626771
Bin(8)1014642751
Bin(7)0114982151
Bin(7)1014998141
Bin(6)0114278471
Bin(6)1014294451
Bin(5)0114423551
Bin(5)1014439511
Bin(4)0114558881
Bin(4)1014574871
Bin(3)0114598121
Bin(3)1014614091
Bin(2)0114487101
Bin(2)1014503081
Bin(1)0114633891
Bin(1)1014649861
Bin(0)0114760731
Bin(0)1014776711

Signal:

 CRC_Q
ElementFromToCountThreshold
Bin(14)0128994101
Bin(14)1029188511
Bin(13)0114170511
Bin(13)1014186871
Bin(12)0114304271
Bin(12)1014320261
Bin(11)0114446541
Bin(11)1014462501
Bin(10)0114608831
Bin(10)1014624831
Bin(9)0114493621
Bin(9)1014509601
Bin(8)0114626771
Bin(8)1014642751
Bin(7)0114982151
Bin(7)1014998141
Bin(6)0114278471
Bin(6)1014294451
Bin(5)0114423551
Bin(5)1014439511
Bin(4)0114558881
Bin(4)1014574871
Bin(3)0114598121
Bin(3)1014614091
Bin(2)0114487101
Bin(2)1014503081
Bin(1)0114633891
Bin(1)1014649861
Bin(0)0114760731
Bin(0)1014776711

Signal:

 CRC_NXT
FromToCountThreshold
Bin0128572691
Bin1028556711

Signal:

 CRC_D
ElementFromToCountThreshold
Bin(14)0158627361
Bin(14)1058148381
Bin(13)0114304311
Bin(13)1014320651
Bin(12)0114446581
Bin(12)1014462541
Bin(11)0114608881
Bin(11)1014624881
Bin(10)0143787081
Bin(10)1043787491
Bin(9)0114626811
Bin(9)1014642791
Bin(8)0144290101
Bin(8)1044290161
Bin(7)0143579561
Bin(7)1043579971
Bin(6)0114423591
Bin(6)1014439551
Bin(5)0114558901
Bin(5)1014574891
Bin(4)0143898731
Bin(4)1043898811
Bin(3)0143794701
Bin(3)1043795131
Bin(2)0114633921
Bin(2)1014649891
Bin(1)0114760781
Bin(1)1014776761
Bin(0)0129436971
Bin(0)1029437051

Signal:

 CRC_CE
FromToCountThreshold
Bin0163317701
Bin1063333711

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'14527071
Bin'0''1'13950381
Bin'1''0'14622311
Bin'1''1'14029641

"=" expression on line 154:

 load_init_vect = '1' 
Evaluated toCountThreshold
BinFalse115669771
BinTrue1951951

"=" expression on line 157:

 crc_nxt = '1' 
Evaluated toCountThreshold
BinFalse56690001
BinTrue58979771

"=" expression on line 165:

 load_init_vect = '1' 
Evaluated toCountThreshold
BinFalse214107621
BinTrue1139321

"and" expression on line 166:

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

LHSRHSCountThreshold
BinFalseTrue44306671
BinTrueFalse62000311
BinTrueTrue62178381

"=" expression on line 166:

 enable = '1' 
Evaluated toCountThreshold
BinFalse89928931
BinTrue124178691

"=" expression on line 166:

 trig = '1' 
Evaluated toCountThreshold
BinFalse107622571
BinTrue106485051

"=" expression on line 174:

 rst_n = '0' 
Evaluated toCountThreshold
BinFalse10867135751
BinTrue24225931

"=" expression on line 177:

 crc_ce = '1' 
Evaluated toCountThreshold
BinFalse5372883951
BinTrue60634121

Uncovered FSM states:

Excluded FSM states:

Covered FSM states:

Uncovered functional coverage:

Excluded functional coverage:

Covered functional coverage: