How to use DSPs in FINN? #888
-
Hello everyone, I would like to know how I can decide whether DSPs are used or not. Thank you. |
Beta Was this translation helpful? Give feedback.
Answered by
fpjentzsch
Oct 12, 2023
Replies: 1 comment
-
Hi, for the MatrixVectorActivation layer, you can set the This should instruct Vitis HLS to use DSPs for the MAC operations. A more efficient implementation is work-in-progress (#794). |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
auphelia
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
for the MatrixVectorActivation layer, you can set the
resType
attribute to "dsp": https://github.com/Xilinx/finn/blob/13313c293eb00d2eb88edcaf68386fdf52152aeb/src/finn/custom_op/fpgadataflow/matrixvectoractivation.py#L70C14-L70C21This should instruct Vitis HLS to use DSPs for the MAC operations. A more efficient implementation is work-in-progress (#794).