Direct Digital Synthesizer in Vitis HLS: stepped phase in, two HLS IP cores, spectrum with spurs and SFDR out

Direct Digital Synthesizer in Vitis HLS

A sin + cos direct digital synthesizer for an AMD Zynq-7020, written in Vitis HLS and measured: 20-bit phase accumulator, 16-bit outputs, 90 dB SFDR target. Three labs, each asking one design question and answering it with numbers from C simulation, HLS synthesis and Vivado place and route.

Every design is checked sample by sample against a Python golden model, in C simulation and in C/RTL co-simulation. You run every lab yourself with one command, on Linux or Windows, with the free AMD Vitis 2024.2 tools.

The labs cover the quarter-wave lookup table, CORDIC and polynomial architectures, phase truncation, LFSR dither, first-order Taylor correction, and 1, 2 and 4 samples per clock for wideband signals.

What You'll Learn

How a quarter-wave lookup table, a CORDIC and a polynomial turn phase into sine and cosine, and what each one spends for the same 90 dB SFDR: block RAM, logic or DSP blocks. How a faster clock is paid for in pipeline registers and latency, and how far the HLS estimates match place and route.

Choosing a DDS Architecture


How parallel lanes let a DDS compute several samples per clock and reach a sample rate above the clock rate. How a second accumulator turns it into a linear FM chirp generator, what each extra lane costs in block RAM, logic or DSP blocks, and which resource runs out first.

Throughput for Wideband Signals


How phase and amplitude bits set the size of a lookup table and what each bit buys in spectral purity. How LFSR dither turns spurs into noise, how first-order Taylor correction moves each sample back onto the sine for a few DSP blocks, and how to read from the spectrum which error limits the output.

Trading Memory for Spectral Purity


SFDR and SNR from full-period 2^20-point spectra at two test tones, latency in cycles, resources and timing slack after place and route. Every design is checked sample by sample against a bit-true Python golden model, so the hardware does exactly what the model says.

Measured, Not Estimated

Course Structure

Website Workshop

Extended Edition

Labs 1, 2 and 3: full Vitis HLS sources, Python golden model, one-command build flow, the three lab reports (PDF) and a guide for working with an AI coding assistant.

Udemy

Lite Edition

Labs 1 and 2: architecture and precision trade-offs. Best for learners who want the core DDS workflow in a compact course format.