Parameters setting - 2025.1 English - XD100

Vitis Tutorials: AI Engine Development (XD100)

Document ID
XD100
Release Date
2025-08-25
Version
2025.1 English

To set the parameters to create a new twiddle header file, scroll down to the last lines of the Twiddle_gen.py script and set the parameters as needed.

If a mixed-radix implementation is desired, set mixed_radix to 1. For single radix, if a radix-4 is possible, but you want twiddle factors to perform a radix-2, set force_r2 to 1. If an output file containing the twiddle factors is desired, set file to 1, otherwise set it to 0. You can chose the name of the output file by modifying filename.

The datatype is encoded like this:

  • 0 = float32

  • 1 = bfloat

  • 2 = cint16

  • 3 = cint32

For the mixed-radix implementation, you must chose radixes and vectorizations values for each stage.

If you are modifying the twiddles to create a different FFT, also the twiddles declaration in the kernel header file must be changed. Set the variable variable_dec_file to 1 to generate a text file containing the declaration lines.