cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
407 Views
Registered: ‎05-02-2019

how to reduce the LUT consumption of guidedFilter ,or can I use more BRAM_18K or DSP to reduce the consumption of LUT)

  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 guidedfilterthe total resource consumption of guidedfilter
the resource consumption of  fast guidedfilterthe resource consumption of fast guidedfilter
the instance of fast guidedfilterthe instance of fast guidedfilter

0 Kudos
1 Reply
Highlighted
Moderator
Moderator
289 Views
Registered: ‎05-31-2017

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. 

0 Kudos