Mastering Xilinx DSP IP Cores
Four AMD/Xilinx DSP IP cores in Vivado 2024.2, from the theory of each algorithm to the IP core in simulation and on a Zynq board: FIR Compiler 7.2, CIC Compiler 4.0, DDS Compiler 6.0 and Fast Fourier Transform 9.1. Each algorithm starts in a float model, goes to fixed point, and then through the IP core. A test signal shows what the core does to it, and every output sample is checked against a golden model.
The DSP algorithms, each built with the IP core:
FIR Compiler: low-pass, band-pass and high-pass filters switched at run time, a band-stop filter reloaded at run time, decimation, interpolation and the Hilbert transform.
CIC Compiler: multiplier-free CIC decimation and interpolation, a CIC followed by a compensating FIR, and a decimation rate set at run time.
DDS Compiler: a tone, an LFM chirp, phase dithering and Taylor correction of the truncation spurs, and a BPSK pulse with a Barker code.
Fast Fourier Transform: spectra with windowing and a run-time length, scaling by a schedule, unscaled output and block floating point, and the inverse FFT.
The same designs then run on an Arty Z7-20 board: a Vivado block design with an AXI DMA, a bare-metal application on the ARM core, and a System ILA capture of the IP's input and output. One command per lab, on Linux or Windows, with the free AMD tools.
What You'll LearnFIR Filters and Rate Change
How one FIR Compiler holds several filters and switches or reloads their coefficients at run time. What the coefficient width does to the stopband, why plain downsampling brings back out-of-band signals and a decimator does not, where interpolation images come from, and how a Hilbert transformer makes an analytic signal.
DDS: Tones, Chirps and Spurs
How a phase accumulator and a sine table make a tone, and what sets the frequency resolution. How a streamed phase increment makes a chirp and a streamed phase offset a phase-modulated pulse, where truncation spurs come from, and what phase dithering and Taylor correction cost and gain.
Multiplier-Free CIC Filters
How a CIC filter decimates and interpolates with adders and registers only, and why its integrators may wrap around while the output stays exact. How the stages and the rate set the response, its nulls and its droop, how a short FIR compensates the droop, and how the rate changes at run time.
FFT: Spectra and Scaling
How bins, leakage and windows shape a spectrum, and how the transform length, set frame by frame at run time, sets the resolution. Why words grow through the stages, how a scaling schedule, the unscaled output and block floating point handle it, and how the inverse FFT returns the signal.
Measured, Not Estimated
Every plot is the output of the IP core itself, from Vivado's simulator or read back from the board, next to the float model and the theory. Every output sample is compared with a bit-true golden model, in simulation and on the board, so you know the hardware does what the model says.
From Simulation to the Board
How each IP core sits in a Zynq block design with an AXI DMA, how a bare-metal application configures it and streams a test signal from memory, and how a System ILA shows its input and output. What happens when a stream stalls, TLAST is missing or the core overflows.
Course Structure
-
Everything runs with the free AMD Vivado and Vitis 2024.2 tools and Python 3.12, on Linux, Windows or WSL2; the Zynq-7020 needs no paid licence. One command per lab creates the IP projects, simulates them headless and compares every sample with the golden model, then prints a results table and opens the plots. With an Arty Z7-20 board connected, the same command builds the block design, the bitstream and the bare-metal application, runs it and reads the output back. The projects open in the Vivado GUI and the Vitis IDE for your own changes.
-
Run-time configurable filtering: low-pass, band-pass and high-pass filters as coefficient sets of one core, switched over S_AXIS_CONFIG, and a band-stop filter reloaded over S_AXIS_RELOAD without a new bitstream. The filter specification (passband, transition band, stopband, ripple, attenuation, linear phase and group delay) and how a chirp shows the magnitude response in the time domain. Fixed point at the IP interface: coefficient quantization and its stopband floor, word growth, the output width the IP chooses and the bits to keep. Decimation with aliasing and the anti-aliasing filter, interpolation with its images and the anti-imaging filter, and the Hilbert transform that forms the analytic signal I + jQ.
-
CIC decimation: the sinc^N response, its nulls at the multiples of the output rate, the passband droop and the alias attenuation it gives. Bit growth and modular arithmetic: why the register width grows with the order and the rate, and why the integrators may wrap around while the output stays exact. Droop compensation: the CIC followed by a short decimating FIR from the FIR Compiler that flattens the passband and removes what folds. CIC interpolation: zero insertion, the images and their attenuation at the nulls, and the gain. A decimation rate set at run time over S_AXIS_CONFIG: the moving nulls, the changing gain and its correction by a shift.
-
The phase accumulator: how an integer phase increment becomes a frequency, the frequency resolution, and the error of a target frequency the accumulator cannot hit. Linear frequency modulation: an LFM chirp from a ramp of the phase increment, streamed one increment per sample. Phase truncation: why the phase addresses a smaller table, the periodic phase error, the spurs it makes and where they fall. Noise shaping: phase dithering and Taylor series correction, and what each does to the spurs and the noise floor. Phase modulation: a BPSK pulse from a streamed phase offset, the Barker code and its matched filter.
-
The DFT and its bins: what a bin is, where a tone lands and what the spectrum of a block of samples shows. Leakage and windowing: a tone between bins, the scalloping loss and what a Hann window changes. Frequency resolution: two close tones, merged or resolved, as the transform length changes frame by frame at run time. Word growth and scaling: why a tone grows through the stages, and the three ways to absorb it: a scaling schedule, the unscaled full-precision output and block floating point, with the overflow flag. The inverse transform: FFT then inverse FFT through the same core, scaled by the schedule.
-
One block design per IP core on the Arty Z7-20: the Zynq processing system, an AXI DMA, the IP core and a System ILA. A bare-metal application configures the core, streams the test signal from DDR memory and reads the output back; Python compares it with the golden model. Each report shows what happens when things go wrong: a stream that stalls, a missing TLAST, an overflow.
Website Workshop
Extended Edition. All four labs: the theory, the bit-true golden models, the IP projects and testbenches, one board design and bare-metal application per IP core, one-command build flow, four lab reports (PDF) with "Try it yourself" boxes, and a guide for working with an AI coding assistant.
Udemy
Lite Edition. How to configure, simulate and run the FIR, CIC, DDS and FFT IP cores, in video lectures with waveforms and Python plots. Best for learners who want the IP workflow in a compact course format.