UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor arash_azizi
Visitor
1,979 Views
Registered: ‎06-08-2017

using DSP slices fo 16-bit fixed-point addition

Hello,

I want to use the DSP slices for 16-bit fixed-point addition in Vivado HLS. How can I force the Vivado to use DPS slices instead of the LUTs? or how can I use the resource directive to force the tool to use the DSP slices?

thanks,

 

 Here is my test code: 

 

#include "ap_fixed.h"

typedef ap_fixed<16, 8> data_t;

 

void add(data_t inA, data_t inB, data_t *out)

{

data_t temp;

temp=inA+inB;

*out=temp;

}

 

 

0 Kudos
1 Reply
Xilinx Employee
Xilinx Employee
1,970 Views
Registered: ‎08-01-2008

Re: using DSP slices fo 16-bit fixed-point addition

It should infer by default . check this ARs as well
https://www.xilinx.com/support/answers/45518.html

check the synthesis
Thanks and Regards
Balkrishan
--------------------------------------------------------------------------------------------
Please mark the post as an answer "Accept as solution" in case it helped resolve your query.
Give kudos in case a post in case it guided to the solution.
0 Kudos