Lecture 2 - Part 1

Contents

Quantisation

Signal-to-Quantisation-Noise-Ratio (SQNR)

Assume that an ADC has dynamic range ±V0\pm V_0 volts and uses NN bits. The quantization step size is

Δ=2V02N=21NV0.\Delta = \frac{2V_0}{2^N} = 2^{1-N} V_0.

The quantization noise power (uniform quantizer assumption) is

NoisePower=Δ212.\text{NoisePower} = \frac{\Delta^2}{12}.

The RMS noise (standard deviation) is

σe=Δ12.\sigma_e = \frac{\Delta}{\sqrt{12}}.

The RMS value of a full-scale sine wave with peak V0V_0 is

RMSsignal=V02.\text{RMS}_{\text{signal}} = \frac{V_0}{\sqrt{2}}.

Therefore the linear SNR (signal RMS divided by noise RMS) is

SQNR=RMSsignalσe=V0/2Δ/12=V012Δ2=V0Δ6.\text{SQNR} = \frac{\text{RMS}_{\text{signal}}}{\sigma_e} = \frac{V_0/\sqrt{2}}{\Delta/\sqrt{12}} = \frac{V_0\sqrt{12}}{\Delta\sqrt{2}} = \frac{V_0}{\Delta}\sqrt{6}.

Substituting Δ=2V02N\Delta = \dfrac{2V_0}{2^N} yields

SQNR=V02V0/2N6=2N16=2N32.\text{SQNR} = \frac{V_0}{2V_0/2^N}\sqrt{6} = 2^{N-1}\sqrt{6} = 2^N \sqrt{\tfrac{3}{2}}.

In decibels:

SQNRdB=20log10 ⁣(2N32)=N20log10(2)+10log10 ⁣(32).\text{SQNR}_{\mathrm{dB}} = 20\log_{10}\!\left(2^N \sqrt{\tfrac{3}{2}}\right) = N\cdot 20\log_{10}(2) + 10\log_{10}\!\left(\tfrac{3}{2}\right).

Numerically this is typically written as:

SQNRdB6.02N+1.7609.\text{SQNR}_{\mathrm{dB}} \approx 6.02\,N + 1.7609. So every extra bit in an ADC gives approximately a 6dB increase in the SNR of the ADC output SQNR.

SQNR Problems and Solutions


Problem 1: Uniform Quantizer SQNR

A sinusoidal signal x(t)=Asin(2πft)x(t) = A \sin(2 \pi f t) with amplitude A=1A = 1 is uniformly quantized using a 3-bit quantizer. Assume the signal is full-scale.

Questions:

  1. Calculate the quantization step size Δ\Delta.
  2. Determine the maximum SQNR in dB.

Solution:

  1. Quantization step size:
    For an nn-bit uniform quantizer covering full scale [A,A][-A, A]:
Δ=2A2n=2123=28=0.25\Delta = \frac{2A}{2^n} = \frac{2 \cdot 1}{2^3} = \frac{2}{8} = 0.25
  1. Maximum SQNR for sinusoidal input:
SQNRdB=6.02n+1.76\text{SQNR}_{\text{dB}} = 6.02 n + 1.76

Here n=3n = 3:

SQNRdB=6.023+1.76=19.82 dB\text{SQNR}_{\text{dB}} = 6.02 \cdot 3 + 1.76 = 19.82 \text{ dB}

Answer: Δ=0.25,SQNR19.8 dB\Delta = 0.25, \quad \text{SQNR} \approx 19.8 \text{ dB}


Problem 2: SQNR with Different Bit Depth

A full-scale sinusoidal signal is quantized using an 8-bit uniform quantizer.

Questions:

  1. What is the SQNR in dB?
  2. If the bit depth is increased to 12 bits, by how much does the SQNR improve?

Solution:

  1. 8-bit SQNR:
SQNRdB=6.028+1.76=50.92 dB\text{SQNR}_{\text{dB}} = 6.02 \cdot 8 + 1.76 = 50.92 \text{ dB}
  1. 12-bit SQNR:
SQNRdB=6.0212+1.76=74.0 dB\text{SQNR}_{\text{dB}} = 6.02 \cdot 12 + 1.76 = 74.0 \text{ dB}

SQNR improvement:

7450.9223.08 dB74 - 50.92 \approx 23.08 \text{ dB}

Answer: 8-bit SQNR ≈ 50.9 dB, improvement with 12-bit ≈ 23 dB.


Problem 3: Quantization Noise Power

A full-scale sinusoidal signal with amplitude A=2A = 2 is quantized using a 4-bit uniform quantizer.

Questions:

  1. Find the quantization step size Δ\Delta.
  2. Calculate the quantization noise power σq2\sigma_q^2.
  3. Determine SQNR (linear, not dB).

Solution:

  1. Step size:
Δ=2A2n=2216=0.25\Delta = \frac{2A}{2^n} = \frac{2 \cdot 2}{16} = 0.25
  1. Quantization noise power (uniform quantization):
σq2=Δ212=0.25212=0.0625120.00521\sigma_q^2 = \frac{\Delta^2}{12} = \frac{0.25^2}{12} = \frac{0.0625}{12} \approx 0.00521
  1. Signal power (sinusoid Asin()A \sin(\cdot)):
Ps=A22=222=2P_s = \frac{A^2}{2} = \frac{2^2}{2} = 2
  1. SQNR (linear):
SQNR=Psσq2=20.00521384\text{SQNR} = \frac{P_s}{\sigma_q^2} = \frac{2}{0.00521} \approx 384

Answer:

Δ=0.25,σq20.00521,SQNR384\Delta = 0.25, \quad \sigma_q^2 \approx 0.00521, \quad \text{SQNR} \approx 384