Skip to content

DSP slice register usage #1140

Answered by bo3z
franhervas99 asked this question in Q&A
Discussion options

You must be logged in to vote

This is not exposed in Python as it is too low-level for most users. As a first step, you could modify the build_prj.tcl script (I guess you are using Vivado/ Vitis): https://github.com/fastmachinelearning/hls4ml/blob/main/hls4ml/templates/vivado/build_prj.tcl to add the corresponding flag during synthesis.

Future work might look into adding general support for synthesis and PnR flags that are exposed from the Python interface, but so far it hasn't been a priority. If you find a way to implement such a feauture, supporting arbitrary Vivado flags, that can be passed by the user, we would welcome a PR contribution.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by franhervas99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants