Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Intel Community
- FPGAs and Programmable Solutions
- Application Acceleration With FPGAs
- Dsp utilization for arithmetic operations

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

ADua0

Beginner

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

08-30-2019
01:27 AM

444 Views

Dsp utilization for arithmetic operations

I am trying doing accumulation and multiplication operations on 8 bit of data.

"for(int i =0 ;i<4;i++)

{

sum[i] += inp1[i] * inp2[i];

}

"

now both my inp1 and inp2 are 8 bit of data , and sum is 20 bits to. But somehow when I compile my code it is using dsp for multiplication , but of addition it is using luts. But for floating point 32 bits operations I have seen it using 1 dsp only for 1 accumulation and 1 multiplication. Is there a way where I can use dsp for addition instead of luts ?

Link Copied

2 Replies

HRZ

Valued Contributor II

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

08-30-2019
04:33 AM

82 Views

CheePin_C_Intel

Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

09-05-2019
05:30 AM

82 Views

Hi,

Sorry for the delay. Based on my understanding, Quartus will auto-select the optimal implementation for your operation and I am not aware of specific settings to tell Quartus to not using LUTs for addition.

Just would like to check with you which specific device and Quartus version that you are using?

For testing purpose, you may try to use the multiply and add IPs under the IP Catalog -> Basic Functions -> Arithmetic to see if it helps.

Please let me know if there is any concern. Thank you.

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

For more complete information about compiler optimizations, see our Optimization Notice.