-
Hi, I am new to using hls4ml. And I found this discussion in hls4ml So I tried to modify the code in part7a_bitstream to configure the size of array_partition, as shown below When I configured MaximumSize to 4096 and compiled the model, my hls4ml_proj.yml was successfully configured, but my project.tcl was not configured. Does anyone know how to correctly configure the array_partition size? thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
my env:
|
Beta Was this translation helpful? Give feedback.
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)