Skip to content

How to config the array_partition size in Vivado_HLS? #1229

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

You must be logged in to vote

Make sure your hls4ml is fully up-to-date or try installing from main. I recall this being a bug in hls4ml sometime ago but looking at the code base I think this was fixed before the last hls4ml release, but I might be wrong and this fix isn't yet reflected on PyPi.

Anyway, the quickest solution is to hardcode the value in hls4ml/templates/vivado/build_prj.tcl on line 164 to 4096 (https://github.com/fastmachinelearning/hls4ml/blob/88f1c5f3667b485873871578c819b17ff52b8bf8/hls4ml/templates/vivado/build_prj.tcl#L164C46-L164C58)

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@bo3z
Comment options

bo3z Mar 12, 2025
Maintainer

Answer selected by CHFang731
@CHFang731
Comment options

@bo3z
Comment options

bo3z Mar 13, 2025
Maintainer

@vloncar
Comment options

@CHFang731
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants