Skip to content

Instantly share code, notes, and snippets.

View matth2k's full-sized avatar

Matt Hofmann matth2k

View GitHub Profile
@matth2k
matth2k / vitis.mk
Last active November 26, 2022 23:03
Xilinx Vitis Makefile
# How to use:
# 0. Include this file in a Makefile
# 1. Make sure XILINX_VITIS env variable is set.
# 2. Run 'make file.v', where 'file.cpp' exists and 'file' is the name of the top function
# 3. Inspect the result in file_xil_prj
# HW
XILINX_VITIS?=/opt/Xilinx/Vitis/2021.1
XILINX_SETTINGS=$(XILINX_VITIS)/settings64.sh
XILINX_HLS_RUN=source $(XILINX_SETTINGS); vitis_hls