Before beginning, download the Vitis Unified Installer, install the Vitis Software Platform, and acquire the Vitis HLS license.
In this tutorial, we’ll be using a snippet of code from the Kyber GitHub project. The code in the Vitis Tutorials has been trimmed down to just the Polyvec and NTT functions and made synthesizable for HLS. To start, if you’ve already sourced the settings script to setup Vitis, the following command will bring up this workspace (Click Update if a Update Workspace window pops up after executing the command):
cd <Relative_Path>/Vitis-Tutorials/Vitis_HLS/Design_Tutorials/01_Polynomial_Vectorization
vitis -w workspace
Open the workspace
Workspace
in the01_Polynomial_Vectorization
directory.
There are four components in the workspace that appears. Each implements the same polynomial vectorization functionality and uses the same testbench code.