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

A quarter-wave lookup table, a CORDIC and a polynomial, each sized to the same 90 dB SFDR. At 100 MHz the table spends 15 block RAMs, the CORDIC 721 LUTs and no block RAM or DSP, the polynomial 10 DSP blocks. All three meet timing at 100 and 250 MHz.

Choosing a DDS Architecture


Several samples per clock is how a DDS reaches the sample rate a wideband signal needs. All three architectures generate a linear FM chirp at 1, 2 and 4 samples per clock: at 250 MHz, 4 samples per clock gives 1000 MSPS. See what each extra lane costs: block RAM for the table, LUTs for the CORDIC, DSP blocks for the polynomial.

Throughput for Wideband Signals


How phase bits, LFSR dither and first-order Taylor correction trade table size for SFDR. With a 10-bit phase, plain truncation reaches 60.2 dBc; Taylor correction lifts the same table to 113.7 dBc for 3 DSP blocks. Dither reaches 97.3 dBc, which turns spurs into noise: that number depends on the FFT length (2^20 points here).

Trading Memory for Spectral Purity


SFDR and SNR from full-period 2^20-point spectra at two test tones, resources and timing slack after place and route, latency in cycles. Bit-exact checks at every stage, so you know the hardware does 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

Light Edition

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