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
- FPGA Intellectual Property
- lpm divider output binary format

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

Altera_Forum

Honored Contributor I

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

08-21-2015
01:49 PM

741 Views

lpm divider output binary format

Is there an easy way to determine or predict the output fixed-point binary format of the lpm_divide function based on the formats of the inputs? I know if multiplying a Qm.n number (e.g. Q16.8 which has 16 integer bits & 8 fractional bits) by a Qp.q number, the output will be Q(m+p).(n+q), e.g. multiplying Q16.8 by Q4.8 will yield a Q20.16 output. For the divider, I used a numerator of Q24.8 and denomiator Q8.8 and it yielded a quotient in Q32.0 and remainder in Q8.8, but I had to determine that by trial & error. Someone know an easier way to know the formats in advance?

Thanks, GMMLink Copied

0 Replies

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.