Effects of Rounding and Truncating Methods of Quantization Error and SQNR For Sine Signal
Effects of Rounding and Truncating Methods of Quantization Error and SQNR For Sine Signal
net/publication/340458036
Effects of Rounding and Truncating Methods of Quantization Error and SQNR for
Sine Signal
CITATIONS READS
5 156
2 authors, including:
Karwan Jacksi
University of Zakho
51 PUBLICATIONS 709 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Karwan Jacksi on 06 April 2020.
1
Department of Computer Science, University of Zakho, Kurdistan Region, Iraq, (alaaldin.hasso, karwan.jacksi)@uoz.edu.krd)
Abstract
Within the Analog to Digital Conversion (ADC), quantization noise is a duplicate of a Quantization Error (QE) which is introduced by
quantization. In signal processing and telecommunication systems, the noise is non-linear and depends on the signal type. During the
analog, Sine signal converts to the digital (ADC) process, the two methods are used Rounding and Truncating in-order to eliminate the
error produced in the digitization process. The rounding method quantize assigns each sample of sine signal to the nearest quantization
level. However, making the Truncating would have assigned each sample of sine signal to the quantization level below it.
This paper compares the rounding and truncating methods of QE for sine signal, signal to quantization noise ratio, correlation coefficient,
and regression equation of a line for both methods. Then, it calculates the residual sum of squares and compares it to the regression
equations of the lines.
Keywords: ADC, SQNR, RSS, Quantization Error, Correlation Coefficient, Regression Equation
I. INTRODUCTION
This paper reviews the QE, SQNR, correlation coefficient
The wide range of ceaseless sine signal has to be transformed (r), regression equation of a line in section II. Calculating the
to digital data with limited accuracy. This is known as the Residual Sum of Square (RSS) for the rounding and truncating
quantization [1]. The Quantization Error (QE) is the error methods is also detailed in section II. The comparison between
generated from applying the incessant signal value by a limited the regression equations of a line is presented in section III.
set of discrete value levels [2]. Then, a comparison between the two methods is exposed in
During the Analog sinusoidal signal to Digital signal section IV. Finally, the discussions and conclusions are
Converter (ADC), the adequacy of the analog sine signal to be presented in section V and VI.
transformed has endless accuracy [3]. Implementing a
measurable methodology that adopting the QE of the sine signal II. BACKGROUND
is irregular sequence and augments to the original signal [4]. To
decrease the additional digits, the truncating method can be used A. Rounding Method
that allocates each sine signal models to a lower level of QE [5]. This section reviews the QE, SQNR, correlation coefficient,
During the ADC process, as the number of bits rises in the regression equation of a line, and calculates RSS for the
digital world, the experimental and theoretical Signal to rounding method
Quantization Noise Ratio (SQNR) of the sine signal using the From Fig. 1, it can be seen that the rang of QE of the sine
rounding method are similar to theoretical values [6]. However, analog signal is symmetric about zero. Furthermore, it is not
by means of the truncating method, the experimental SQNR resulting from a reduction of several significant bits as well as
value is permanently underneath the theoretical value, which falls in the rang of all positive and negative numbers. The same
means not as much of exact quantization of the sine signal that experiment is achieved with the same values when the number
consequences in a lower SQNR. This was expected because of bits is 4, 8, and 16 [6]. Fig. 1. shows the original analog sine
instead of rounding the data, the truncating method occurred [3]. signal (X2), Quantization (Xq) and QE (Xe) using the rounding
doi: 10.38094/jastt113 8
Hasso et al. / Journal of Applied Science and Technology Trends Vol. 01, No. 01, pp. 08 –12, (2020)
The equation of the regression line in general is: 0.07817616 85.7604 86.04 14
Where (bR) is the slope of the line, and (aR) is the intercept
B. Truncating method
This section reviews the QE, SQNR, correlation coefficient,
𝑆𝑛𝑒 1004.9884 regression equation of a line, and calculates the RSS for
𝑏𝑅 = = = 5.9820738
𝑆𝑛𝑛 168 truncating method. Fig. 2. illustrates the original sine analog
signal (X2), Quantization (Xq) and QE (Xe) using Truncating
for a number of bits (n=2) which is taken from [3].
𝑎𝑅 = 𝑒̅ − 𝑏𝑛̅ = 56.109362 − 5.9820738 𝑥 9
= 56.109362 − 53.838664 = 2.270698
9
Hasso et al. / Journal of Applied Science and Technology Trends Vol. 01, No. 01, pp. 08 –12, (2020)
34.07173641 68.1629 74 12
Fig. 2. X2, Xq, and Xe using Truncating for (n=2)
34.56616849 80.1607 86.04 14
From Fig. 2., the rang of QE using the truncating method of 38.05039225 91.9115 98.08 16
the sine analog signal is not symmetric about zero, and it is a
RSS = 299.2886704
result of a reduction of a number of important bits as well as falls
in the rang of all negative numbers. The same experiment for the
truncating method is accomplished in [3] with the same values From Table II RSS for the truncating (RSS)T is
when the number of bits is 4, 8, and 16.
RSST=299.2886704
Experimental Truncating The lines in Fig. 3 are drawn from the above code which
presents a comparison among the three lines from equations 4, 5
SQNRT = aT + bT * n (9)
and 9.
SQNRT=-4.569726+6.0441071* n
10
Hasso et al. / Journal of Applied Science and Technology Trends Vol. 01, No. 01, pp. 08 –12, (2020)
SQNR = SQNR =
The Equation of
8 2.270698 + −4.569726 +
Regression a ine
5.9820738 ∗ n 6.0441071 ∗ n
5 SEE 0.00213459133 0.005014927716 The 2.270698 difference in SQNR occurs due to a full-scale
sine wave signal. A 16-bit ADC has a maximum SQNR of
Coefficient of 97.9838788 dB
Variation
6
(CV) %
11.66849539 % 12.06942713 % For the truncating method, the corresponding equation is (9)
Error SQNR T = −4.569726 + 6.0441071 ∗ n
Correlation
7 0.99999022 0.9999789 The (-4.569726) difference in SQNR occurs also due to a
Coefficient (r)
full-scale sine signal, and a 16-bit ADC has a maximum SQNR
of 92.1359876 dB
11
Hasso et al. / Journal of Applied Science and Technology Trends Vol. 01, No. 01, pp. 08 –12, (2020)
The differences in these equations have not occurred, if the truncating will be smaller in size, speedily and less latency,
input sine wave signal has a uniform distribution and covering because fewer electric circuits needed to build.
all quantization levels, as in equation (10)
REFERENCES
VI. CONCLUSION [1] A. V. Oppenheim, “Applications of digital signal processing,”
By using the STATGRAPHICS PROGRAM, and Englewood Cliffs NJ Prentice-Hall Inc 1978 510 P, 1978.
[2] P. Zador, “Asymptotic quantization error of continuous signals and the
MATLAB programs, the value of SQNR using the truncating quantization dimension,” IEEE Trans. Inf. Theory, vol. 28, no. 2, pp.
method is always lower than the theoretical and rounding values, 139–149, 1982.
which leads to less accurate quantization of the sine signal. [3] A. Hasso, K. Jacksi, and K. Smith, “Effect of Quantization Error and
SQNR on the ADC Using Truncating Method to the Nearest Integer Bit,”
The designed filter for truncating method is running to presented at the 2019 International Conference on Advanced Science and
remove the 16-bits least significant bit (LSB) and to keep the Engineering (ICOASE), 2019, pp. 112–117.
most significant 16-bits (MSB) of a 32- bit in the digital world, [4] S. Pavan, R. Schreier, and G. C. Temes, Understanding delta-sigma data
this means that ignoring the lower 16-bits of the digital word of converters. John Wiley & Sons, 2017.
[5] B. Widrow and I. Kollár, “Quantization noise,” Camb. Univ. Press, vol.
the output signals and take only the upper 16 bits. 2, p. 5, 2008.
The problem with the truncating method is that it makes no [6] A. Hasso and S. Mohammed, “The Effect of ADC Quantization Error by
rounding to nearest integer bit,” in 1st international conference on
use of the information contained in the LSB, which gives us a Engineering and innovative Technology, SU-ICETT, Salahaddin
smarter approach to round the upper 16-bits either up or down University, 2016.
1-bit based on the lower 16-bits. Selecting of the 16-bits gives a [7] W. M. Mendenhall and T. L. Sincich, Statistics for Engineering and the
more accurate sign of the original word and also eliminates bias Sciences. CRC Press, 2016.
that is a DC component in our signal spectrum. [8] K. C. Pohlmann, Principles of digital audio. McGraw-Hill, Inc., 1995.
12