NVC code coverage report

Back to summary

Coverage report for file:

File:  ../../Sources/A4_quantization_gradients.vhd

Current File:

File Statement Branch Toggle Expression FSM state Functional Average
A4_quantization_gradients.vhd 94.1 % (16/17) 83.3 % (5/6) N.A. N.A. N.A. N.A. 91.3 % (21/23)

Details:

Statement Branch Toggle Expression FSM state Functional

Uncovered statements:

Sequential statement on line 43:

43:      return j; 
Count: 0
Threshold: 1

Excluded statements:

Covered statements:

If statement on lines 42 to 46:

42:    if (i > maxvalue or i < j) then 
43:      return j; 
44:    else 
45:      return i; 
46:    end if; 

Count: 33
Threshold: 1

Sequential statement on line 45:

45:      return i; 
Count: 33
Threshold: 1

Variable assignment statement on line 63:

63:    vAbsQi := abs(to_integer(di)); 
Count: 222141
Threshold: 1

Variable assignment statement on line 64:

64:    vSign  := di(di'high); 
Count: 222141
Threshold: 1

If statement on lines 66 to 76:

66:    if (vAbsQi = 0) then 
67:      qi := to_signed(0, qi'length); 
...
75:      qi := to_signed(4, qi'length); 
76:    end if; 

Count: 222141
Threshold: 1

Variable assignment statement on line 67:

67:      qi := to_signed(0, qi'length); 
Count: 3266
Threshold: 1

Variable assignment statement on line 69:

69:      qi := to_signed(1, qi'length); 
Count: 3482
Threshold: 1

Variable assignment statement on line 71:

71:      qi := to_signed(2, qi'length); 
Count: 6123
Threshold: 1

Variable assignment statement on line 73:

73:      qi := to_signed(3, qi'length); 
Count: 22122
Threshold: 1

Variable assignment statement on line 75:

75:      qi := to_signed(4, qi'length); 
Count: 187148
Threshold: 1

If statement on lines 78 to 80:

78:    if (vSign = '1') then 
79:      qi := - qi; 
80:    end if; 

Count: 222141
Threshold: 1

Variable assignment statement on line 79:

79:      qi := - qi; 
Count: 116896
Threshold: 1

Sequential statement on line 82:

82:    return qi; 
Count: 222141
Threshold: 1

Signal assignment statement on line 96:

96:  oQ1 <= quantizate(iD1, T1, T2, T3)
Count: 68633
Threshold: 1

Signal assignment statement on line 97:

97:  oQ2 <= quantizate(iD2, T1, T2, T3)
Count: 68640
Threshold: 1

Signal assignment statement on line 98:

98:  oQ3 <= quantizate(iD3, T1, T2, T3)
Count: 84868
Threshold: 1

Uncovered branches:

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

42:    if (i > maxvalue or i < j) then 
Evaluated toCountThresholdExclude Command
BinTrue01

Excluded branches:

Covered branches:

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

66:    if (vAbsQi = 0) then 
Evaluated toCountThreshold
BinTrue32661

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

68:    elsif (vAbsQi < t1) then 
Evaluated toCountThreshold
BinTrue34821

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

70:    elsif (vAbsQi < t2) then 
Evaluated toCountThreshold
BinTrue61231

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

72:    elsif (vAbsQi < t3) then 
Evaluated toCountThreshold
BinTrue221221

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

78:    if (vSign = '1') then 
Evaluated toCountThreshold
BinTrue1168961

Uncovered toggles:

Excluded toggles:

Covered toggles:

Uncovered expressions:

Excluded expressions:

Covered expressions:

Uncovered FSM states:

Excluded FSM states:

Covered FSM states:

Uncovered functional coverage:

Excluded functional coverage:

Covered functional coverage: