How to maping add and multiplication calculation to FPGA logic element, not DSP unit in AOC environment !
In my project(most are added and multiplication calculation ) , the DSP unit used is more than 100%, but the logic element only 24% used . when the DSP is about 100%, it appear error while compile the AOCX file. So i want FPGA logic do the part of the calculation, not all by DSP???
Any compile guide or document for this ??
Thanks in advance !
Newer versions of the compiler will automatically map integer operations to logic when DSP overutilization is detected by the compiler. However, as far as I know, this will never happen with floating-point operations. I am pretty sure I opened a ticket with Intel Premiere Support a long time ago (before Intel acquired Altera) requesting a new feature to be added to the compiler to give programmers control over which math operations are mapped to DSPs and which are mapped to logic but as you can see, such functionality is still not available. Hence, I am afraid there is no straightforward way to fix your problem.
Thanks for your reply!
my aocl environment is :
AOCL VERSION: aocl 22.214.171.124 (Intel(R) FPGA SDK for OpenCL(TM), Version 19.1.0 Build 240 Pro Edition, Copyright (C) 2019 Intel Corporation)
data type : uchar (8 bit)
thanks for your help!
my coding is opencl, the kernel is *.cl file , not verilog HDL or any IP, the aocl compiler translate to DSP or logic by itself !
maybe any "compiler command" can help to do this when DSP over-utilization in theory , but i don't know the "compiler command"
Thanks for your help!
One reference example to avoid mapping MACs into the DSPs is the PipeCNN (you can find it on Github). They have wrapped their specific MAC, which is written in VHDL, into an OpenCL function. When you use this MAC function, you can see that it is only using FFs and LUTs, instead of DSPs.
Sorry , cpchan , it confused me !
"You can try to refer to the example by Saman. " who is Saman ??? SBioo or not ??
if so , i will get it from Github!
if not , could you give me the example ??? i will try
Thank you very much !!