ENG5027 Digital Signal Processing
ENG5027 Overview
- University of Glasgow
- 2026/27
- Postgraduate
- Python filter design labs
- Written exam, four questions
ENG5027 Digital Signal Processing is an introduction to the methods of digital signal processing and their practical uses, with hands-on design and evaluation of processing systems in Python. It is taught jointly with ENG4053. The lectures follow one signal chain.
- Assessed by A written exam worth 70%, two team lab reports worth 10% each and an individual IIR quiz worth 10%.
- Hardest step Moving between hertz, bins and cycles per sample without losing a factor of two or a mirror bin.
- How to prepare Rework every chapter design by hand, then answer full four-part questions against the clock.
What you get in the full ENG5027 Exam Bible
- 13 chapters, 48 pages — every examinable topic
- 30 original practice questions, most with model answers in the Written exam format
- 13 worked examples, solved the way ENG5027 marks
- 27 computed figures, redrawn from the course’s own numbers
- Exam-morning plan for the Written exam (70%) — what to revise last, where marks are lost
Free on this page: assessment table, chapter map, one worked example, key terms, FAQ. The rest is in the full exam bible.
How ENG5027 is assessed
| Component | Weight | Format |
|---|---|---|
| Written exam | 70% | All four questions are compulsory and carry equal weight. Only calculators on the School of Engineering approved list may be used. The exam date is announced by the School. |
| Lab assignment 1: Fourier transform | 10% | Team of four. Record speech at two distances, analyse the spectrum, remove noise with the FFT and build an aural exciter. Due 19 October 2026, 3 pm. |
| Lab assignment 2: FIR filters | 10% | Team of four. Filter an allocated ECG trace with real-time FIR and LMS code and detect heartbeats with a matched filter. Due 16 November 2026, 3 pm. |
| Online quiz: IIR filters | 10% | Individual. Five questions, one attempt and one hour; opens 17 November 2026 and closes 27 November 2026. |
The course information lists a 70% written exam, 20% for lab reports made of two 10% assignments, and a 10% quiz. Teaching slides add that all four exam questions are answered and that they are equally weighted. The FIR lab deadline is 16 November 2026 at 3 pm on the assignment page, while one lecture slide shows 17/11; follow the assignment page. Lab marks are shared by the team, and only one member submits. The official course information for this offering does not state the exam date; it is announced by the School in the exam timetable.
Assessment structure
The written exam carries seven tenths of the result; the three coursework items share the remaining 30% equally.
What other students are asking about ENG5027
- Where can I find lecture notes or study guides for ENG5027 at glasgow?
- The ENG5027 study guide in AskSia Library covers Digital Signal Processing in 13 chapters, with the assessment table, a chapter-by-chapter topic map, key terms and a worked example, free to read on this page.
- Is there a final exam in ENG5027, and how much is it worth?
- Yes. In the offering this AskSia Library guide is built from, Written exam carries 70% of the ENG5027 mark; the full split is Written exam 70%, Lab assignment 1: Fourier transform 10%, Lab assignment 2: FIR filters 10%, Online quiz: IIR filters 10%.
- What does ENG5027 cover on fourier series and signal reconstruction?
- In AskSia Library's ENG5027 guide, the Fourier Series and Signal Reconstruction chapter explains lecture 3. Sums of sinusoids, sinc interpolation, complex Fourier coefficients, square-wave harmonics and the aural exciter.
- What does ENG5027 cover on sampling in the frequency domain?
- In AskSia Library's ENG5027 guide, the Sampling in the Frequency Domain chapter explains lecture 4. The DTFT, spectral replicas, the folding map, oversampling margins and bandpass sampling.
- What does ENG5027 cover on the dft and fft for real spectra?
- In AskSia Library's ENG5027 guide, the The DFT and FFT for Real Spectra chapter explains lecture 5 and the FFT tutorial. Bin spacing, mirror bins, the butterfly, FFT cost and reading recorded spectra.
Current ENG5027 dates
| Date | Item | Control |
|---|---|---|
| 19 October 2026 | Lab assignment 1 (Fourier transform) due | 3 pm; one zip per team with report, recordings and code. |
| 16 November 2026 | Lab assignment 2 (FIR filters) due | 3 pm; one member submits for the team. |
| 27 November 2026 | IIR quiz closes | Opens 17 November 2026; one attempt of one hour. |
Dates are as published in the 2026/27 course assessment pages. Confirm exact deadlines and submission settings in the live LMS.
What ENG5027 covers
Thirteen chapters follow the course signal chain: acquisition and spectra first, then system descriptions, then FIR, adaptive and IIR filter design with their implementation in code.
Sampling and Quantisation
Lectures 1 and 2. The conversion chain, sample timing, quantisation step and noise, SQNR, aliasing and the Nyquist condition.Sampling and Quantisation explains where the numbers in every later chapter come from.
- Three stages of analogue-to-digital conversion
- Sample index, sampling interval and time
- Bit depth, number of levels and step size
- Rounding error, saturation and noise power
- Signal-to-quantisation-noise ratio
- Normalised frequency in cycles per sample
Fourier Series and Signal Reconstruction
Lecture 3. Sums of sinusoids, sinc interpolation, complex Fourier coefficients, square-wave harmonics and the aural exciter.Fourier Series and Signal Reconstruction describes a signal as a sum of sinusoids and shows what is needed to rebuild its shape.
- Signals as sums of sinusoids
- The sampling theorem for exact reconstruction
- Sinc interpolation through the samples
- Fundamental frequency and harmonics
- Complex Fourier coefficients
- Conjugate symmetry for real signals
Sampling in the Frequency Domain
Lecture 4. The DTFT, spectral replicas, the folding map, oversampling margins and bandpass sampling.Sampling in the Frequency Domain explains aliasing through spectra rather than sample values.
- Periodicity of the DTFT
- Spectral copies at multiples of the sampling rate
- Overlap as the cause of aliasing
- The folding map and its reversing branch
- Locating folded dialling tones
- Oversampling and anti-alias filter margin
The DFT and FFT for Real Spectra
Lecture 5 and the FFT tutorial. Bin spacing, mirror bins, the butterfly, FFT cost and reading recorded spectra.The DFT and FFT for Real Spectra turns a finite record into a list of frequency coefficients and teaches how to read it. The discrete Fourier transform maps N samples to N complex values, and the inverse returns them with a one over N factor.
- The DFT and inverse DFT
- Bin index, bin spacing and record length
- Index order and mirror bins
- Conjugate symmetry of real spectra
- Time-domain aliasing
- Twiddle factors and the even-odd split
Convolution and the Laplace Transform
Lecture 6. Causality, impulse response, convolution, Laplace properties, phase delay and group delay.Convolution and the Laplace Transform sets out how a linear system is described and analysed.
- Causality and its meaning
- Impulse response of a causal system
- Convolution as flip, shift, multiply, integrate
- The impulse as identity
- Laplace transform and its properties
- The convolution theorem and inverse by tables
Discrete-Time Systems and the Z-Transform
Lecture 7. Discrete convolution, the z-transform, the unit circle, windowing and spectral leakage.Discrete-Time Systems and the Z-Transform carries the system tools of the previous chapter into sampled time. With t equal to n times the sampling interval, convolution becomes a sum over stored samples.
- Discrete convolution
- From sampled Laplace transform to z
- The one-sample delay operator
- Frequency response on the unit circle
- Periodicity in radians per sample
- Windows and spectral leakage
Deriving and Implementing FIR Filters
Lecture 9. Transfer functions, the moving average, linear phase, FIR types and ring-buffer code.Deriving and Implementing FIR Filters introduces the finite impulse response filter as a weighted sum of delayed inputs.
- FIR transfer functions and stability
- The two-point moving average
- Gain at DC and Nyquist
- Linear phase and symmetric responses
- The four FIR types
- Causal filtering versus FFT editing
FIR Design by Windowing
Lecture 10. Ideal responses, the inverse Fourier transform, the 50 Hz bandstop and window comparison.FIR Design by Windowing derives filter coefficients from the response you want.
- Inverse Fourier transform of an ideal response
- The sinc impulse response of a lowpass
- The five-step windowing recipe
- Bandstop coefficients and the centre tap
- Truncation as a rectangular window
- Bartlett, Hann, Hamming and Blackman windows
FIR Design Using the DFT
Lecture 11 and the FIR tutorial. Designing in FFT bins, causal reordering, tap counts and the Kaiser window.FIR Design Using the DFT replaces the analytical integral with the FFT itself. The designer fills an array of bins with the desired gain, sets stop regions and their mirror bins to zero, and takes the inverse FFT.
- Designing a response directly in FFT bins
- Positive, negative and mirror bins
- Swapping halves to make the response causal
- Bin indices for a bandstop
- Tap count from frequency resolution
- Theory against practice in tap count
Matched and Adaptive Filters in Fixed Point
Lecture 12. Coefficient scaling, accumulator width, matched-filter detection and the LMS rule.Matched and Adaptive Filters in Fixed Point covers three practical extensions of the FIR filter. The first is integer arithmetic for processors without floating point.
- Scaling coefficients to integers
- Accumulator width and overflow
- Two's complement wrap-around
- Matched filter as a correlator
- The detection chain for heartbeats
- The LMS update rule
IIR Filters by Impulse Invariance
Lecture 14. The first-order IIR, pole mapping, stability and the impulse-invariance resonator.IIR Filters by Impulse Invariance derives recursive digital filters from analogue prototypes. The starting point is a first-order analogue lowpass with transfer function a over s plus b and an exponential impulse response.
- First-order analogue prototype
- Sampling the impulse response
- Geometric series to a recursion
- Pole mapping from s to z
- Stability and the unit circle
- Partial fractions and parallel sections
Matched Z-Transform and Bilinear Transform
Lecture 15. Mapping poles and zeros, the bilinear substitution, frequency warping and pre-warping.Matched Z-Transform and Bilinear Transform presents two further routes from an analogue design to a digital filter.
- Mapping poles and zeros directly
- Real coefficients from conjugate pairs
- The matched z-transform resonator
- Limits of sampling-based mappings
- The bilinear substitution
- Frequency warping and pre-warping
Second-Order and Fixed-Point IIR Filters
Lectures 16 and 17. Biquads, notch filters, direct forms, library designs and integer coefficients.Second-Order and Fixed-Point IIR Filters builds practical IIR filters from second-order sections. A biquad is a ratio of two second-order polynomials whose zeros and poles come in conjugate pairs, which guarantees real coefficients.
- Biquads from conjugate pairs
- Zeros on the unit circle and DC removal
- Resonant poles and the radius r
- The notch filter
- Cascades of second-order sections
- Direct form I against direct form II
They begin with how a converter samples, quantises and codes a physical signal, why a sampling rate must exceed twice the highest wanted frequency, and how much rounding noise a given bit depth adds.
The Fourier series, sinc reconstruction, the spectral copies created by sampling and the DFT and FFT then give the tools for reading a real spectrum bin by bin.
The middle of the course describes systems: causality, convolution, the Laplace transform, group delay and the z-transform, with windowing and leakage explaining why a finite record blurs a spectrum. The second half designs filters.
FIR filters are derived from an ideal response and shaped by a window, or drawn directly in FFT bins, then implemented sample by sample with a ring buffer. Fixed-point arithmetic, matched filters for detection and LMS adaptive filters follow.
The IIR block derives recursive filters from analogue prototypes by impulse invariance, the matched z-transform and the bilinear transform, and finishes with biquads, notch filters and integer coefficients.
Assessment is a written exam worth 70% with four compulsory questions of equal weight, two team lab reports worth 10% each on speech spectra and ECG filtering, and an individual IIR quiz worth 10%.
The labs reward the same habits as the exam: state the sampling rate, convert every frequency to bins or cycles per sample, check the mirror bin, and close each design with its delay, stability check and cost.
Worked example · free
Choose a sampling rate and predict an alias
- 2The Nyquist condition requires a rate strictly above twice the highest wanted frequency: 8 kHz is greater than 2 × 3 kHz = 6 kHz, so the wanted band is safe.
- 2The Nyquist frequency is 4 kHz. The 7 kHz tone lies above it, so it folds to 8 − 7 = 1 kHz, giving exactly the same samples as a 1 kHz cosine.
- 1The alias now sits inside the wanted 0 to 3 kHz band, where no later digital filter can separate it from real content.
- 1Fit an analogue anti-alias lowpass before the converter, attenuating everything above 4 kHz, or raise the rate and filter with more margin.
Key terms
- Sampling rate
- The number of samples taken per second, the reciprocal of the sampling interval, which links sample index to time.
- Quantisation step
- The spacing between adjacent converter levels, equal to the input range divided by the number of levels less one.
- Nyquist frequency
- Half the sampling rate, the highest frequency a sampled sequence can represent without ambiguity.
- Aliasing
- The appearance of one analogue frequency as a different frequency after sampling, caused by overlapping spectral copies.
- Bin spacing
- The frequency step between DFT coefficients, the sampling rate divided by the number of points.
- Impulse response
- The output of a system driven by a unit impulse, which fully describes a linear time-invariant system.
- Group delay
- The negative derivative of phase with respect to frequency, giving the delay of a narrow band of frequencies.
- Z-transform
- A power series in the one-sample delay operator that turns a sequence into a transfer function.
- Linear phase
- A response whose phase falls in proportion to frequency, so every component is delayed equally.
- Window function
- A taper applied to coefficients or records to trade sidelobe level against main-lobe width.
- Adaptive filter
- A filter whose coefficients are updated from an error signal while it runs, as in the LMS rule.
- Bilinear transform
- A substitution for s that maps an analogue transfer function to a stable digital one, with frequency warping.
ENG5027 FAQ
How difficult is this course?
The difficulty is in switching units and checking details rather than in long proofs. Each topic uses hertz, bins, cycles per sample and radians per sample, and most lost marks come from a missing mirror bin, an unchecked pole radius or an unwarped cut-off. Regular hand calculation removes most of that risk.
What is the assessment structure?
A written exam contributes 70% of the result. Two team lab reports, one on Fourier analysis of speech and one on FIR filtering of ECG data, contribute 10% each, and an individual online quiz on IIR filters contributes the final 10%.
What does the written exam look like?
Teaching slides state that every question must be attempted and that the four carry equal weight. Questions are built in parts that follow one processing problem, for example from samples to a spectrum, then a modification, then a judgement about the type of noise. The exam date is announced by the School.
Which calculator may I take into the exam?
Only models on the approved calculator list of the James Watt School of Engineering are permitted in its exams. Check your own model against the current list on the course site well before the exam, because a model that is not on the list cannot be used.
Is there a past paper to practise with?
Yes. The course site provides an example paper from 2020. Its questions cover a notch filter, FIR design, practical FIR implementation and matched-filter detection. Use it to rehearse structure and timing, and treat its delivery arrangements as belonging to that year.
How do the lab assignments work?
Each lab is done in a team of four. Teams book one-hour lab slots, one member uploads a single zip containing the report and code, and every member receives the joint mark. The briefs allow the FFT and its inverse but ban high-level filtering calls.
How much Python do I need?
Basic experience of writing Python is expected. The lectures use NumPy arrays, indexing, slicing and vectorised operations to inspect sampled data, and the labs require object-oriented filter code that processes one sample at a time. General Python references are linked from the course site.
What should I revise first?
Start with sampling, aliasing and DFT bin arithmetic, because every later design uses them. Then practise one FIR design by windowing, one by the DFT and one IIR design by the bilinear transform from start to finish, including the dataflow diagram and the stability or symmetry check.
Questions students ask in each ENG5027 chapter
- Does adding bits extend the converter range?
- No. Extra bits divide the same input range into finer steps, which lowers rounding error and noise, but any input beyond the end levels still saturates. Range and resolution are separate design choices. Chapter 01 · Sampling and Quantisation
- Why do real signals need negative frequencies?
- A single complex exponential is not real. Pairing the term at plus k with its conjugate at minus k cancels the imaginary parts and leaves a real cosine, which is why a real signal's coefficients satisfy that symmetry. Chapter 02 · Fourier Series and Signal Reconstruction
- Why does the DTFT repeat every cycle per sample?
- A complex exponential at normalised frequency f and one at f plus one produce the same values at every integer sample index. The transform therefore cannot distinguish them, and its graph repeats with period one. Chapter 03 · Sampling in the Frequency Domain
- Why does a real signal produce two peaks for one tone?
- A real cosine is the sum of two complex exponentials at plus and minus its frequency. The DFT stores the negative one in the upper half of the array, so one tone appears in bin k and again in bin N minus k. Chapter 04 · The DFT and FFT for Real Spectra
- Is a fast program the same as a causal one?
- No. A program that loads a whole recording and filters it at once can run quickly yet use future samples at every point, which makes it non-causal. Causality depends only on which inputs each output may use. Chapter 05 · Convolution and the Laplace Transform
- How is z related to a delay?
- The z-transform is built by defining z to the minus one as the Laplace form of a delay of one sampling interval. Every power of z to the minus one in a transfer function therefore means one more sample of delay. Chapter 06 · Discrete-Time Systems and the Z-Transform
- Why is an FIR filter always stable?
- It has no feedback, so each output depends on a finite number of inputs and the impulse response ends after the last coefficient. A bounded input can therefore only produce a bounded output. Chapter 07 · Deriving and Implementing FIR Filters
- Why is the ideal impulse response non-causal?
- The inverse transform of a brick-wall response is a sinc extending in both directions, so it has non-zero values before time zero. Truncating it and shifting it forward makes it causal at the price of a delay. Chapter 08 · FIR Design by Windowing
- Why must the mirror bins be zeroed too?
- A real impulse response needs a conjugate-symmetric spectrum. If only the positive bins are changed, the inverse FFT has an imaginary part and the filter no longer corresponds to a real-valued set of coefficients. Chapter 09 · FIR Design Using the DFT
- Why does a temporary overflow not ruin the result?
- In two's complement, wrapping past the largest value and later wrapping back cancel exactly. As long as the finished sum fits in the accumulator, the intermediate overflows leave no trace in the output. Chapter 10 · Matched and Adaptive Filters in Fixed Point
- Why does feedback make the impulse response infinite?
- Each output is computed from the previous output, so an impulse keeps circulating through the feedback path and decays by the pole factor every sample without ever reaching exactly zero. Chapter 11 · IIR Filters by Impulse Invariance
- Why does the matched z-transform give real coefficients?
- It maps a conjugate pair of poles together into one second-order factor. Multiplying the two conjugate factors cancels the imaginary parts, so the denominator coefficients are real and no complex arithmetic is needed. Chapter 12 · Matched Z-Transform and Bilinear Transform
- How does the pole radius change a notch?
- Moving the poles closer to the zeros on the unit circle makes the rejected band narrower and leaves the gain elsewhere closer to one. The trade-off is time: the response then rings longer before it settles. Chapter 13 · Second-Order and Fixed-Point IIR Filters
How to study for the exam
Study ENG5027 as one chain rather than as separate topics. First, build fluency with units: for any tone, write its frequency in hertz, as a fraction of the sampling rate and as a DFT bin, and find its mirror.
Second, rework the lecture examples by hand until each takes a few minutes: the 4-bit converter, the 1 kHz and 7 kHz alias, the dialling-tone folding, the bin arithmetic at 1 kHz, the 50 Hz bandstop taps and the bilinear lowpass. Third, practise turning every design into code you could write in the lab: a ring-buffer FIR, a matched filter from a reversed template, an LMS update and a direct form I biquad in integers.
Fourth, rehearse full exam questions in four connected parts, because the paper asks for all four questions and weights them equally. Finish each answer with the delay, the stability or symmetry check and the cost per sample. In the final week, alternate one timed question with one session spent re-deriving a key result, such as the linear-phase condition or the pre-warping formula, from a blank page.
Your AI Electrical Engineering tutor for ENG5027
Stuck on a hard ENG5027 question? Sia is AskSia’s AI Electrical Engineering tutor — ask any ENG5027 Digital Signal Processing question and get a clear, step-by-step explanation grounded in how the course is actually taught and assessed. Read this whole study guide free, then take your hardest questions to Sia.