--- title: 'Xilinx Vivado HLS' disqus: hackmd --- # Xilinx Vivado HLS ## Board Setup 1. Create SD Card with Boot Image 1-1. Download the pynq image from [here](https://drive.google.com/file/d/1tpEP0tIlzALf_7Z5ZmmYuNDB8-yAn5qA/view?usp=sharing) or [official resource](https://github.com/Xilinx/PYNQ). > But if you choose the official resource, you should intall the environment following the userguide (skip 1-2) > 1-2. Download win32 磁碟映像工具 and follow the steps of this [website](https://blog.gtwang.org/iot/backup-and-restore-raspberry-pi-sd-card/) 2. Install the Xilinx tool chain [here](https://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/vivado-design-tools/2019-2.html) ## How to develope a HLS project > [Example project](https://drive.google.com/drive/folders/1-X3LifSG72AOdIt1GjICfVjOx490-T-Z?usp=sharing) 1. Clone the project at your linux-based enviroment 2. Choose a project that you want to try and use the tcl ``` vivado_hls run_xxxxx.tcl ``` This is the user guide from [Xilinx](https://github.com/Xilinx/HLS-Tiny-Tutorials) ## Reference Website 1. [Pragma optimization](https://www.xilinx.com/html_docs/xilinx2019_1/sdaccel_doc/hls-pragmas-okr1504034364623.html) 2. [Xilinx HLS Training Labs](https://github.com/chongxi/vivado_hls_training.git)