hls4ml-tutorial
hls4ml-tutorial copied to clipboard
vivado_hls missing
Ubuntu 24.04 Vivado 2024.1 (64 bit)
Ran,
conda env create -f environment.yml
conda activate hls4ml-tutorial
I'm trying to run the "Get started" notebook.
Its all fine until I run 2nd to last cell hls_model.build(csim=False)
Which throws the following error,
Exception Traceback (most recent call last)
Cell In[15], line 1
----> 1 hls_model.build(csim=False)
File ~/anaconda3/envs/hls4ml-tutorial/lib/python3.10/site-packages/hls4ml/model/graph.py:854, in ModelGraph.build(self, **kwargs)
850 if not os.path.exists(self.config.get_output_dir()):
851 # Assume the project wasn't written before
852 self.write()
--> 854 return self.config.backend.build(self, **kwargs)
File ~/anaconda3/envs/hls4ml-tutorial/lib/python3.10/site-packages/hls4ml/backends/vivado/vivado_backend.py:203, in VivadoBackend.build(self, model, reset, csim, synth, cosim, validation, export, vsynth, fifo_opt)
201 found = os.system('command -v vivado_hls > /dev/null')
202 if found != 0:
--> 203 raise Exception('Vivado HLS installation not found. Make sure "vivado_hls" is on PATH.')
205 curr_dir = os.getcwd()
206 os.chdir(model.config.get_output_dir())
Exception: Vivado HLS installation not found. Make sure "vivado_hls" is on PATH.
Which version of Vivado are you using?