Skip to content

Commit

Permalink
add information about Vivado for part 7
Browse files Browse the repository at this point in the history
  • Loading branch information
JanFSchulte committed Dec 12, 2024
1 parent 935af3f commit 35969c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ conda activate hls4ml-tutorial
source /path/to/your/installtion/Xilinx/Vitis_HLS/202X.X/settings64.(c)sh
```

Note that part 7 of the tutorial makes use of the `VivadoAccelator` backend of hls4ml for which no Vitis equivalent is available yet. For this part of the tutorial it is therefore necesary to install and source Vivado HLS version 2019.2 or 2020.1, which can be obtained [here](https://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/vivado-design-tools/archive.html).

## Companion material
We have prepared a set of slides with some introduction and more details on each of the exercises.
Please find them [here](https://docs.google.com/presentation/d/1c4LvEc6yMByx2HJs8zUP5oxLtY6ACSizQdKvw5cg5Ck/edit?usp=sharing).
Expand Down
4 changes: 2 additions & 2 deletions part7a_bitstream.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"_add_supported_quantized_objects(co)\n",
"import os\n",
"\n",
"os.environ['PATH'] = os.environ['XILINX_Vivado'] + '/bin:' + os.environ['PATH']"
"os.environ['PATH'] = os.environ['XILINX_VIVADO'] + '/bin:' + os.environ['PATH']"
]
},
{
Expand Down Expand Up @@ -74,7 +74,7 @@
"import hls4ml\n",
"import plotting\n",
"\n",
"config = hls4ml.utils.config_from_keras_model(model, granularity='name', backend='Vitis')\n",
"config = hls4ml.utils.config_from_keras_model(model, granularity='name')\n",
"config['LayerName']['softmax']['exp_table_t'] = 'ap_fixed<18,8>'\n",
"config['LayerName']['softmax']['inv_table_t'] = 'ap_fixed<18,4>'\n",
"for layer in ['fc1', 'fc2', 'fc3', 'output']:\n",
Expand Down

0 comments on commit 35969c4

Please sign in to comment.