01-06-2020 12:26 AM
Hello,today T use HLS to achive a guidedFilter ,but the process of a single color channel involves 6 boxfilters and 4 hls::Resize, and the LUT consumption is too big,especially the consumption of hls::Resize.
Here are the combined results. ( By the way, can I use more BRAM_18K or DSP to reduce the consumption of LUT)
the total resource consumption of guidedfilter
the resource consumption of fast guidedfilter
the instance of fast guidedfilter
02-04-2020 07:09 AM
HI @mingyuexin447 ,
Have you tried using a resource pragma in your code ? If the RESOURCE pragma is not specified, Vivado HLS determines the resource to use.
Generally using a resource pragma we would be explicitly specifying which library resource is used to implement a variable (array, arithmetic operation or function argument) in the RTL.