fastmachinelearning / hls4ml

Machine learning on FPGAs using HLS
https://fastmachinelearning.org/hls4ml
Apache License 2.0
1.16k stars 385 forks source link

VIVADO HLS INSTALLATION INSTALLATION NOT FOUND MAKE SURE VIVADO HLS ON PATH #1015

Open Tf-arch opened 4 weeks ago

Tf-arch commented 4 weeks ago

We are using the vivado 2019.1 linux version lab edition

[Vivado 2019.1: Lab Edition - Linux] filename=Xilinx_Vivado_Lab_Lin_2019.1_0524_1430.tar.gz)

but it has no specific VIVADO_HLS. and we getting the error

VIVADO HLS INSTALLATION INSTALLATION NOT FOUND MAKE SURE VIVADO HLS ON PATH

when we run hls_model.build command

so could you us to tell us the exact version we should install so that we can get VIVADO HLS. we are working on ubunto 18?

RikPi commented 1 week ago

Hi, do you have vivado_hls executable on path? You can easily add it in Python by adding the following before calling hls_model.build

import os os.environ['PATH'] = '<CHANGE TO YOUR INSTALLATION PATH>/Xilinx/Vivado/2019.1/bin:' + os.environ['PATH']

For example, in my case it is: import os os.environ['PATH'] = '/tools/Xilinx/Vivado/2019.1/bin:' + os.environ['PATH']

To give a bit more context, you should find your vivado_hls executable inside the bin folder the path is pointing at in the commands above