NivaarExam PrepOfficial exam papers ↗

22-Elec-B1 Digital Signal Processing · May 2018

Question 6 of 6: Which linear-phase FIR types can realise each desired response

Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)

Notes on this paper

Paper format. National Exams May 2018 — 16-Elec-B1, Digital Signal Processing. Three hours, closed book; one approved Casio or Sharp calculator and one double-sided aid sheet of tables and formulas are permitted. Six questions are printed and five constitute a complete paper, each worth 12 points; the marking scheme published on page 1 breaks those 12 points down part by part. All six questions are solved below, because the set is intended as a study resource rather than as a three-hour sitting.

Reference texts. A. V. Oppenheim and R. W. Schafer, Discrete-Time Signal Processing, 3rd ed., Pearson, 2010 — the source of the z-transform tables, the DFT property list and the sampling relations reproduced on pages 6–8 of this exam. J. G. Proakis and D. G. Manolakis, Digital Signal Processing: Principles, Algorithms and Applications, 4th ed., Pearson, 2007. S. K. Mitra, Digital Signal Processing: A Computer-Based Approach, 4th ed., McGraw-Hill, 2011 — filter structures, transposition and linear-phase FIR types.

Figure data. The eight-sample reading is the one used below, and it is what makes the requested eight-point circular convolution well posed.

Question 6: Which linear-phase FIR types can realise each desired response (12 marks)

Question text not reproduced: the examination questions are © Engineers and Geoscientists BC. Open the official past paper (linked at the top of this page) to read the question, then follow the worked solution below.

Given. A window design $h[n] = h_d[n]w[n]$ on $0 \le n \le M$, four desired responses each carrying the linear-phase factor $e^{-j(M/2)\omega}$, and the four standard linear-phase FIR types.

Find. For each desired response, which of Types I–IV can realise it, with a justification based on the symmetry of $h[n]$ and on the forced zeros of each type.

Approach. Every linear-phase FIR response can be written $H(e^{j\omega}) = A(\omega)e^{-j\omega M/2}$ or $jA(\omega)e^{-j\omega M/2}$ with $A$ real; the presence or absence of the factor $j$ decides symmetric versus antisymmetric $h[n]$, and the parity of $M$ then decides which structural zeros are forced at $\omega = 0$ and $\omega = \pi$. A type is admissible when its symmetry matches and none of its forced zeros falls where the desired response must be non-zero.

  1. Decide symmetric or antisymmetric from the factor in front. Windowing preserves symmetry about $M/2$ provided $w[n]$ is itself symmetric, which every standard window is. So the symmetry of $h[n]$ is inherited from $h_d[n]$: $$H_d = A(\omega)e^{-j\omega M/2} \;\Rightarrow\; h_d[n] = h_d[M-n] \ \text{(symmetric)}, \qquad H_d = jA(\omega)e^{-j\omega M/2} \;\Rightarrow\; h_d[n] = -h_d[M-n].$$ Rows (i) and (ii) carry no $j$ and are therefore symmetric — Type I or II. Rows (iii) and (iv) carry $\pm j$ with an odd sign pattern in $\omega$ and are antisymmetric — Type III or IV.
  2. List the structural zeros of the four types. Writing $A(\omega)$ for the real amplitude function:
    • Type I ($M$ even, symmetric): $A$ is a cosine sum, free at both $\omega = 0$ and $\omega = \pi$.
    • Type II ($M$ odd, symmetric): the pairs $n$ and $M-n$ have opposite parity, so at $\omega = \pi$ each pair cancels — $A(\pi) = 0$ identically.
    • Type III ($M$ even, antisymmetric): $A$ is a sine sum with $A(0) = 0$ and $A(\pi) = 0$ identically.
    • Type IV ($M$ odd, antisymmetric): $A(0) = 0$ identically, but $A(\pi)$ is free.
    The rule that follows is simple: a type is ruled out only when one of its forced zeros sits where $H_d$ must be non-zero.
  3. Row (i), the ideal lowpass. The response is real-amplitude, so $h[n]$ is symmetric and only Types I and II are candidates. The desired gain is 1 at $\omega = 0$ and 0 at $\omega = \pi$. Type I forces nothing, so it works. Type II forces $A(\pi) = 0$, which the lowpass wants anyway, so it also works — the constraint is free of charge. $$\text{Row (i)} \;\Rightarrow\; \boxed{\text{Type I: YES}, \quad \text{Type II: YES}, \quad \text{Types III, IV: NO}.}$$
  4. Row (ii), the ideal highpass. Again real-amplitude, so Types III and IV are excluded on symmetry alone. The desired gain is now 1 at $\omega = \pi$. Type II forces $A(\pi) = 0$ and therefore cannot pass the very band the filter is meant to pass; only Type I survives. $$\text{Row (ii)} \;\Rightarrow\; \boxed{\text{Type I: YES}, \quad \text{Types II, III, IV: NO}.}$$
  5. Row (iii), the 90-degree-shifted highpass. The $\pm j$ with odd sign in $\omega$ makes $A(\omega)$ an odd function, so $h[n]$ is antisymmetric and only Types III and IV are candidates. The desired amplitude is 0 near $\omega = 0$ but of unit magnitude at $\omega = \pi$. Type III forces $A(\pi) = 0$ and is therefore disqualified; Type IV forces only $A(0) = 0$, which the response wants anyway. $$\text{Row (iii)} \;\Rightarrow\; \boxed{\text{Type IV: YES}, \quad \text{Types I, II, III: NO}.}$$
  6. Row (iv), the 90-degree-shifted bandpass. Antisymmetric again, so Types III and IV are the candidates. This time the desired amplitude is zero both at $\omega = 0$ and at $\omega = \pi$, because $0 \lt \omega_{c1} \lt \omega_{c2} \lt \pi$. Type III's two forced zeros land exactly where they are wanted, and Type IV's single forced zero at $\omega = 0$ likewise; nothing prevents a Type IV design from approximating zero at $\pi$, it simply is not obliged to. $$\text{Row (iv)} \;\Rightarrow\; \boxed{\text{Type III: YES}, \quad \text{Type IV: YES}, \quad \text{Types I, II: NO}.}$$ Type III is the more natural choice of the two, since it enforces the upper-edge null structurally.
Type I: M even, h[n] = h[M-n]01234nA(0), A(pi) both freeType II: M odd, h[n] = h[M-n]0123nA(pi) = 0 forcedType III: M even, h[n] = -h[M-n]01234nA(0) = A(pi) = 0 forcedType IV: M odd, h[n] = -h[M-n]0123nA(0) = 0 forced, A(pi) free
Figure 6.1 — the four linear-phase FIR types. The symmetry of $h[n]$ about $M/2$ (upper row symmetric, lower row antisymmetric) decides which desired responses are reachable at all, and the parity of $M$ decides which amplitude zeros are forced at $\omega = 0$ and $\omega = \pi$.
$H_d(e^{j\omega})$Type IType IIType IIIType IV
(i) Lowpass, $e^{-j(M/2)\omega}$ for $|\omega| \lt \omega_c$YESYES——
(ii) Highpass, $e^{-j(M/2)\omega}$ for $\omega_c \lt |\omega| \lt \pi$YES———
(iii) 90-degree-shifted highpass, $\pm je^{-j(M/2)\omega}$ for $\omega_c \lt |\omega| \lt \pi$———YES
(iv) 90-degree-shifted bandpass, $\pm je^{-j(M/2)\omega}$ for $\omega_{c1} \lt |\omega| \lt \omega_{c2}$——YESYES
Type$M$Symmetry of $h[n]$Forced amplitude zerosNatural use
Ieven$h[n] = h[M-n]$noneany real-amplitude filter: LP, HP, BP, BS
IIodd$h[n] = h[M-n]$$A(\pi) = 0$lowpass and bandpass only
IIIeven$h[n] = -h[M-n]$$A(0) = A(\pi) = 0$differentiators and bandpass Hilbert transformers
IVodd$h[n] = -h[M-n]$$A(0) = 0$differentiators and highpass or full-band Hilbert transformers
Back to the paper →