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

- Community Forums
- :
- Forums
- :
- Vivado RTL Development
- :
- Synthesis
- :
- Adding two floating points numbers in a vector

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

anomi17

Visitor

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

06-07-2018 03:04 AM

995 Views

Registered:
06-07-2018

Adding two floating points numbers in a vector

Hi!

I have a problem:

I need to add two floating point numbers that are stored in a vector (random size f.e. 0-7). The result of adding is also stored in a vector. Adding must be done by indexes that means if I have a number that is stored in a vector A <= 1,765 and the second number stored B <= 14,123 adding goes as follow C [0] = A [0] + B [0]. However, before adding, numbers that are stored in a vector must be filled in with 0 that coma is aligned. It would look like this A (001.7650) and B (014.1230).

Can you please help me, I'm struggling with this for some time :/ Thank you in advance. I'm working in ISE on Spartan 3

2 Replies

u4223374

Advisor

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

06-07-2018 05:05 AM

973 Views

Registered:
04-26-2015

Is this binary coded decimal floating point? What code have you written and tested so far?

anomi17

Visitor

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

06-08-2018 05:53 AM

929 Views

Registered:
06-07-2018