22-Elec-A3 Signals and Communications · December 2019
Question 4 of 5: FIR System from its Impulse Response — Structure, Transfer Function, Response and Stability
Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)
Notes on this paper
Paper format. National Examinations, December 2019 — 16-Elec-A3
Signals and Communications. Three hours, closed book (an approved
Casio or Sharp calculator is permitted). Answer all 5 questions; all 5 questions are
of equal value (20 marks each, 100 marks total). Candidates are urged to submit a
clear statement of any assumption made where a question admits more than one reading.
Reference texts.
B. P. Lathi and Z. Ding, Modern Digital and Analog Communication Systems, 4th ed. — Ch. 2–3 (Fourier series and transforms), Ch. 4 (amplitude modulation, DSB and SSB), Ch. 5 (angle modulation, Carson's rule), Ch. 6 (sampling and PCM).
B. P. Lathi, Linear Systems and Signals, 2nd ed. — Ch. 6–7 (Fourier analysis of periodic and aperiodic signals), Ch. 5 and 9 (discrete-time systems and the z-transform).
A. V. Oppenheim and A. S. Willsky, Signals and Systems, 2nd ed. — Ch. 3 (Fourier series), Ch. 4 (Fourier transform), Ch. 8 (modulation), Ch. 10 (z-transform).
J. G. Proakis and D. G. Manolakis, Digital Signal Processing, 4th ed. — Ch. 2 (LTI systems and convolution), Ch. 5 (frequency-domain analysis), Ch. 9 (FIR filter structures).
S. Haykin, Communication Systems, 5th ed. — Ch. 3 (amplitude modulation), Ch. 4 (angle modulation), Ch. 5 (pulse-code modulation and quantisation noise).
Note on scope. This sitting carries no printed figures: every system in
Questions 4 and 5 is specified analytically, so all block diagrams and plots below are constructed from the given equations. Where the
examiner asks for a "plot", a labelled sketch with the correct line positions, weights and
signs is what earns the marks — each figure here is drawn to that standard.
Question 4: FIR System from its Impulse Response — Structure, Transfer Function, Response and Stability (20 marks)
Given. $h(n) = u(n) - u(n-4) + \tfrac{1}{2}\delta(n-4)$, with $u(\cdot)$ the
unit step and $\delta(\cdot)$ the unit sample. Sampling frequency $f_s = 50$ kHz for part (d).
Input for part (e): a symmetric triangular pulse $x(n) = 1 - |n-6|/6$ on $0 \le n \le 12$,
zero elsewhere.
Find. A realisable block diagram; the input–output difference
equation; $H(z)$; the frequency response $H(e^{j\omega})$ expressed in hertz at
$f_s = 50$ kHz; the output for the triangular input; and a stability verdict with justification.
Approach. Evaluate $h(n)$ sample by sample to expose it as a five-tap FIR
filter, then read the structure, difference equation and transfer function directly off the tap
values; convolve for part (e) and apply the absolute-summability test for part (f).
Evaluate the impulse response sample by sample.
The difference $u(n)-u(n-4)$ is a rectangular window that equals 1 for $n = 0,1,2,3$ and 0
elsewhere; the extra term adds $\tfrac12$ at $n = 4$ only. Hence
$$h(n) = \{\,1,\ 1,\ 1,\ 1,\ \tfrac{1}{2}\,\}\quad \text{for } n = 0,1,2,3,4;\qquad h(n)=0 \text{ otherwise}$$
The response has finite length (five samples), so the system is an FIR filter of order
4 — there is no feedback anywhere in it.
(a) Draw the block diagram.
An FIR filter of order 4 needs four unit delays and five tap multipliers, summed into a common
output rail. The tap gains are exactly the impulse-response values $1, 1, 1, 1, \tfrac12$.
Figure 4.1 — Direct-form (transversal) realisation. Four unit delays $D$ generate $x(n-1)$ through $x(n-4)$; the five taps $1,1,1,1,\tfrac12$ are summed to form $y(n)$. Because the structure contains no feedback path, the response to any impulse dies out after five samples.
(b) Write the difference equation.
Convolution with a finite $h(n)$ is a weighted sum of delayed inputs:
$$y(n) = \sum_{k=0}^{4} h(k)\,x(n-k)$$
$$\boxed{\;y(n) = x(n) + x(n-1) + x(n-2) + x(n-3) + \tfrac{1}{2}x(n-4)\;}$$
The filter is thus a running sum over four samples with a half-weighted fifth tap — a
crude low-pass (smoothing) operation.
(c) Write the transfer function.
Taking the z-transform term by term, $x(n-k) \leftrightarrow z^{-k}X(z)$, so
$$\boxed{\;H(z) = 1 + z^{-1} + z^{-2} + z^{-3} + \tfrac{1}{2}z^{-4}\;}$$
Equivalently $H(z) = \dfrac{z^4 + z^3 + z^2 + z + \tfrac12}{z^4}$: all four poles sit at the
origin, which is the defining fingerprint of an FIR system, and the region of convergence is
the entire z-plane except $z = 0$.
(d) Obtain the frequency response at $f_s = 50$ kHz.
Evaluating $H(z)$ on the unit circle, $z = e^{j\omega}$ with the normalised radian frequency
$\omega = 2\pi f/f_s$,
$$H\!\left(e^{j\omega}\right) = 1 + e^{-j\omega} + e^{-j2\omega} + e^{-j3\omega}
+ \tfrac{1}{2}e^{-j4\omega}$$
Summing the first four terms as a geometric series and factoring out the linear-phase centre
gives the compact plottable form
$$\boxed{\;H\!\left(e^{j\omega}\right)
= e^{-j\,3\omega/2}\,\frac{\sin(2\omega)}{\sin(\omega/2)}
+ \tfrac{1}{2}e^{-j4\omega},\qquad \omega = \frac{2\pi f}{50\,000}\;}$$
valid for $0 \le f \le 25$ kHz (the folding frequency). At DC the running sum gives the maximum
gain $H(1) = 4.5$; the response then falls away with nulls near the zeros of $\sin(2\omega)$,
confirming low-pass behaviour.
(e) Convolve the triangular input with $h(n)$.
The input is the 13-sample triangle
$x(n) = \{0,\ \tfrac16,\ \tfrac26,\ \tfrac36,\ \tfrac46,\ \tfrac56,\ 1,\ \tfrac56,\ \tfrac46,\ \tfrac36,\ \tfrac26,\ \tfrac16,\ 0\}$
for $n = 0 \ldots 12$. Since $x$ has length 13 and $h$ has length 5, the output has length
$13 + 5 - 1 = 17$, spanning $0 \le n \le 16$. Applying
$y(n) = x(n)+x(n-1)+x(n-2)+x(n-3)+\tfrac12 x(n-4)$ sample by sample:
$n$
0
1
2
3
4
5
6
7
8
$y(n)$
0
1/6
1/2
1
5/3
29/12
19/6
43/12
11/3
$n$
9
10
11
12
13
14
15
16
$y(n)$
41/12
17/6
25/12
4/3
3/4
1/3
1/12
0
$$\boxed{\;y(n)_{\max} = \tfrac{11}{3} = 3.667 \text{ at } n = 8;\qquad y(n)=0 \text{ outside } 0 \le n \le 16\;}$$
Two checks confirm the arithmetic. The area identity requires
$\sum y = \left(\sum x\right)\left(\sum h\right) = 6 \times 4.5 = 27$, and the tabulated values
do sum to 27. The output is also slightly asymmetric — its peak sits at $n = 8$ rather
than at the input peak $n = 6$ — because the filter's half-weighted final tap shifts the
centre of mass of $h(n)$ to $n \approx 1.78$.
Figure 4.2 — Output $y(n) = x(n) * h(n)$: a 17-sample smoothed and broadened version of the input triangle, peaking at $11/3 = 3.667$ at $n = 8$.
(f) Test bounded-input bounded-output stability.
A discrete LTI system is BIBO stable if and only if its impulse response is absolutely
summable. Here
$$\sum_{n=-\infty}^{\infty}|h(n)| = 1+1+1+1+\tfrac{1}{2} = 4.5 \lt \infty$$
$$\boxed{\text{The system is BIBO stable, with peak gain } \textstyle\sum|h(n)| = 4.5}$$
The justification is stronger than a mere inequality: every FIR filter with finite tap
values is BIBO stable, because a finite sum of finite terms is finite. Consistently, all four
poles of $H(z)$ lie at $z = 0$, well inside the unit circle. The bound is tight — an input
bounded by $|x(n)| \le 1$ can produce an output as large as 4.5 in magnitude.
Quantity
Result
Impulse response
$h(n) = \{1,\,1,\,1,\,1,\,\tfrac12\}$, $n=0\ldots4$ (FIR, order 4)