Examination Paper For TTT4120 Digital Signal Processing: Department of Electronic Systems
Examination Paper For TTT4120 Digital Signal Processing: Department of Electronic Systems
Language: English.
Number of pages (front page excluded): 6
Number of pages enclosed: 2
skal ha flervalgskjema □
___________________________________________________________________________________________
Merk! Studentane finn sensur i Studentweb. Har du spørsmål om sensuren må du kontakte instituttet ditt.
Eksamenskontoret vil ikkje kunne svare på slike spørsmål.
Problem 1 (2+6+5+5=18): Basics of filter theory and design
1
𝐻(𝑧) =
1 + 𝑎1 𝑧 −1 + 𝑎2 𝑧 −2
1 1
𝐻(𝑧) = 𝐻1 (𝑧) ⋅ 𝐻2 (𝑧) = ⋅
(1 − 𝑝1 𝑧 ) (1 − 𝑝2 𝑧 −1 )
−1
where 𝑝1 and 𝑝2 denote the poles of the filter. Based on your findings, determine the range
of 𝛼 that yields a stable filter. Draw the pole-zero plot and sketch the region of convergence
(ROC) for a stable filter realization.
𝐴1 𝐴2
𝐻(𝑧) = 𝐻3 (𝑧) + 𝐻4 (𝑧) = +
(1 − 𝑝1 𝑧 ) (1 − 𝑝2 𝑧 −1 )
−1
Find the causal inverse filter 𝐻𝐼 (𝑧) such that 𝐻(𝑧)𝐻𝐼 (𝑧) = 1.
Find the ROC for 𝐻𝐼 (𝑧) and sketch the pole-zero plot.
For 𝛼 = 1, discuss what type of filter 𝐻𝐼 (𝑧) is (lowpass, highpass, bandpass, allpass).
Determine the range for 𝛼 for which 𝐻𝐼 (𝑧) is a minimum-phase filter.
Does filter 𝐻𝐼 (𝑧) have linear phase?
1 (4)
Problem 2 (6+6+6+2=20): Filter structures and implementations
The filter in Problem 1a) with 𝜶 = 𝟎. 𝟓 is implemented using fixed-point representation with
𝐵 + 1 bits and dynamic range [−1,1). Rounding is performed after each multiplication and the
rounding error 𝑒[𝑛] can be modeled as white noise with variance 𝜎𝑒2 = 2−2𝐵 /12. Consequently,
each multiplier in the fixed-point implementation is modeled as
𝑄(𝑎𝑦[𝑛 − 𝑘]) = 𝑎𝑦[𝑛 − 𝑘] + 𝑒[𝑛]
which is equivalent to adding noise sources after multipliers in the infinite-precision realization.
Rounding noise sources combine into an equivalent noise signal 𝑧[𝑛] at the filter output with
variance 𝜎𝑧2 (see hint below).
2a) Draw the direct-form structure II (DF-II) of 𝐻(𝑧) with noise sources due to rounding
included. Determine the variance of the round-off noise at the filter output.
2b) Draw the cascade-structure, 𝐻1 (𝑧)𝐻2 (𝑧), with noise sources due to rounding included.
Determine the variance of the round-off noise at the filter output.
2c) Draw the parallel-structure, 𝐻3 (𝑧) + 𝐻4 (𝑧), with noise sources due to rounding included.
Determine the variance of the round-off noise at the filter output. You may put the
multiplier(s) 𝐴1 and 𝐴2 , obtained from the residue calculus in Problem 1c, at the output of
the structure.
2d) Which of the three implementations above suffers the most from rounding noise? Which
implementation suffers the least? Justify your answers.
2
[Hint:] Assuming noise source 𝑒𝑖 [𝑛] with variance 𝜎𝑒𝑖 acts as input to (sub-)filter ℎ𝑖 [𝑛] that
terminates at the output. The variance of the noise signal 𝑧𝑖 [𝑛], due to 𝑒𝑖 [𝑛], is given by
2 2 2
𝜎𝑧𝑖 = 𝜎𝑒𝑖 𝑟ℎ𝑖ℎ𝑖 [0] = 𝜎𝑒𝑖 ∑ ℎ𝑖2 [𝑘]
𝑘
𝑒𝑖 [𝑛] 𝑧𝑖 [𝑛]
𝐻𝑖 (𝑧)
2
𝜎𝑒𝑖 = 𝐸{𝑒𝑖2 [𝑛]} 2
𝜎𝑧𝑖 = 𝐸{𝑧𝑖2 [𝑛]}
2 (4)
Problem 3 (2+6+6=14): Parametric modeling
A wide-sense stationary (WSS) stochastic process 𝑋[𝑛] is generated by filtering a white noise
2
process 𝑊[𝑛], with autocorrelation sequence 𝛾𝑊𝑊 [𝑙] = 𝜎𝑊 𝛿[𝑙], through a causal and stable filter
𝐻(𝑧), as depicted in Fig. 1. The autocorrelation sequence and spectrum of 𝑋[𝑛] is obtained from
∞
2
𝜎𝑊 ∑ ℎ[𝑛]ℎ[𝑛 + 𝑙] , 𝑙≥0
𝛾𝑋𝑋 [𝑙] = {
𝑛=0
𝛾𝑋𝑋 [−𝑙], 𝑙<0
3b) For filter 𝐻(𝑧) specified in 3a) and 𝝈𝟐𝑾 = 𝟏, show that the respective autocorrelation
sequence and spectrum of 𝑋[𝑛] are given by
16 1
𝛾𝑋𝑋 [𝑙] = {15 ⋅ 2|𝑙| , 𝑙 even
0, 𝑙 odd
1
Γ𝑋𝑋 (𝑓) =
17 1
16 − 2 cos 4𝜋𝑓
3c) You are given the task to design a second-order predictor to model 𝑋[𝑛]. That is, you form
an estimate of 𝑋[𝑛], denoted 𝑋̂[𝑛], through the following linear combination 𝑋̂[𝑛] =
𝑎1 𝑋[𝑛 − 1] + 𝑎2 𝑋[𝑛 − 2].
Find the optimal values of 𝑎1 and 𝑎2 that minimize the prediction error power.
Hint: Use the values 𝛾𝑋𝑋 [−2] through 𝛾𝑋𝑋 [2] from 3b) together with the Normal
equations, see Section H in the Table of formulas attached to the exam.
Find the resulting prediction error power 𝜎𝑓2 when using the optimal coefficients.
Comment on your results.
3 (4)
Problem 4 (6+2+6=14): Sampling and rate-conversion
𝑋𝑎 (𝐹)
𝐹 [Hz]
−8000 8000
Let 𝑥𝑎 (𝑡) be a continuous-time signal whose spectrum 𝑋𝑎 (𝐹) is shown in Fig. 2. Signal 𝑥𝑎 (𝑡) is
1
sampled at rate 𝐹𝑥 = 𝑇 = 16 kHz to generate sequence 𝑥[𝑛] = 𝑥𝑎 (𝑡)|𝑡 =𝑛𝑇𝑥 . We would now like
𝑥
to design a system that changes the sampling frequency of signal 𝑥[𝑛] in digital domain from 𝐹𝑥
1
to 𝐹𝑦 = 𝑇 = 12 kHz. Let 𝑦[𝑚] be the resulting output signal. The conversion should not
𝑦
introduce any distortion due to aliasing.
4a) Sketch the block diagram of the digital system that implements the sampling rate conversion.
Explain the function of each individual block along with the specifications that arise from
the rate conversion at hand (e.g., upsampling/downsampling factors, filter bandwidths, etc.).
4b) Will the rate conversion above incur any loss of information? That is, can 𝑥𝑎 (𝑡) be perfectly
reconstructed from 𝑦[𝑚]?
4c) Sketch the spectra of all the signals in the rate-conversion system.
4 (4)
Appendix: TTT4120 Table of formulas, 2017
A. Sequences:
1−𝛼𝑁
∑𝑁−1 𝑛
𝑛=0 𝛼 = 1−𝛼
1 1
|𝛼| < 1 ⇒ ∑∞ 𝑛
𝑛=0 𝛼 = 1−𝛼 and − ∑−∞ 𝑛
𝑛=−1 𝛼 = 1−𝛼
1−𝛼𝑁 𝑁𝛼𝑁
∑𝑁−1 𝑛
𝑛=0 (𝑛 + 1)𝛼 = (1−𝛼)2 − 1−𝛼 ; 𝛼≠1
1
|𝛼| < 1 ⇒ ∑∞ 𝑛
𝑛=0(𝑛 + 1)𝛼 = (1−𝛼)2
B. Linear convolution:
𝑌(𝑧) = 𝐻(𝑧)𝑋(𝑧)
𝑌(𝑓) = 𝐻(𝑓)𝑋(𝑓)
C. Transforms:
Z-transform: 𝐻(𝑧) = ∑∞
𝑛=−∞ ℎ[𝑛]𝑧
−𝑛
DTFT: 𝐻(𝑓) = ∑∞
𝑛=−∞ ℎ[𝑛]𝑒
−𝑗2𝜋𝑓𝑛
D. Sampling theorem:
Given an analog signal 𝑥𝑎 (𝑡) sampled at 𝐹𝑠 = 1/𝑇. The DTFT of the resulting discrete-time
sequence 𝑥[𝑛] = 𝑥𝑎 (𝑡)|𝑡=𝑛𝑇 is given by
𝑋(𝑓) = 𝑋(𝐹/𝐹𝑠) = 𝐹𝑠 ∑∞
𝑘=−∞ 𝑋([𝑓 − 𝑘]𝐹𝑠 )
𝑣(𝑚𝑇𝑦 ) = ∑∞
𝑘=−∞ ℎ[(𝑚𝐷 − 𝑘)𝑇𝑥 ]𝑥(𝑘𝑇𝑥 ) 𝑚∈ℤ
𝑦(𝑙𝑇𝑦 ) = ∑∞
𝑛=−∞ ℎ[(𝑙 − 𝑛𝐼)𝑇𝑦 ]𝑥(𝑛𝑇𝑥 ) 𝑙∈ℤ
𝐷
Rate coversion where 𝑇𝑦 = 𝐷𝑇𝑣 = 𝐼 𝑇𝑥
𝑦(𝑙𝑇𝑦 ) = ∑∞
𝑚=−∞ ℎ[(𝑙𝐷 − 𝑚𝐼)𝑇𝑣 ]𝑥(𝑚𝑇𝑥 ) 𝑙∈ℤ
Given a wide-sense stationary and ergodic sequence 𝑋[𝑛] with infinite energy