Understanding the Resource Usage #533
HenningCode
started this conversation in
General
Replies: 1 comment 1 reply
-
You can read the per-layer reports in generated project directory, or open the project with Vivado HLS GUI and browse from there. For less than 9-10 bits, Vivado likes to use LUTs instead of DSPs, so you can check if that was the case. As for the BRAMs, for a given reuse factor, we need to access weights efficiently, and BRAMs have only 1 or 2 ports, so the lower the RF, the more BRAMs we need to split the weights in. So it won't be n_weights * bits / 18k, except perhaps for the largest RF in some cases. Again, I recommend browsing the reports from Vivado HLS GUI to see how BRAMs were allocated. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I want to understand the Resource usage of my Models:
I got this Model and I am creating the hls project with two different Reuse Factors. One time with the Maximum (12544,2048,1280) and one Time with a ReuseFactor of (14,16,16)
These are the corresponding resource usages:
Now for the Model with the Maximum Reuse for every Layer the DSPs are 3 which makes sense because for each layer one DSP is used. For the Model with Reuse of (14,16,16) the DSP usage is 936 which are only the DSP of the first layer 12544/14 = 896 and some more. Where are the DSPs for the other Layers? I am Calculating I should be using 12544/14 + 2048/16 + 1280/16 = 1104 DSPs. Furthermore I would like to understand why BRAM usages goes down that much. I though the weights are saved to the BRAM is that the case?
Thanks for your help.
I am using this branch if that helps: https://github.com/HenningCode/hls4ml/tree/zcu104
Beta Was this translation helpful? Give feedback.
All reactions