FPU help

Mucman

Diamond Member
Oct 10, 1999
7,246
1
0
Sorry to sway you guys here, but I need some help with my homework. I can't talk to the prof or the TA's because all of there office hours are during another class or when I am at work. I understand the big picture but some minor details have had me stumped for hours and I am starting to waste my time now.

I basicly need to design a FPU that adds two IEEE 754 32-bit numbers. The numbers are always positive so the sign bit will always be 0.

I understand the first step is to compare the exponents of both and shift the fraction of the smaller one the same number of places that the exponents differ.

Here is how I have done that...

VHDLish pseudocode

E1 is a register to hold the one exponent
E2 is a register to hold the second exponent.
F1 and F2 are the respective fractions in shift registers.

here is my algorithm

start :
if E1< E2 then
{
shift F1 right 1
E1 <= E1 + 1
goto start
}
elsif E2<E1 then
{
shift F2 right 1
E2 <= E2 + 1
goto start
}
else
{
SUM = F1 + F2
}

Now the first 1 in the before the fraction part is implied by the standard so do I load the fractions into a 24-bit register and load the 1 into the highest order bit? That way when I shift I don't have to do any combinational logic to figure out whether I put in a 1 or a 0 in the serial in.

As for the check for normalization, I just have to see if there is a 1 in the most significant bit right? The only way there wouldn't be a 1 is if I had to add 1.1 ... + 0.1 .... that would result in 10.0...

as you can see I am getting really confused. I have done tons of searching on the web and they explain the algorithm clearly but not much of the logic that goes behind it.

If don't think this is appropriate for this forum, please flame away and I will remove it

 

BurntKooshie

Diamond Member
Oct 9, 1999
4,204
0
0


<< I can't talk to the prof or the TA's because all of there office hours are during another class or when I am at work. >>

Maybe my school is weird, but all my proffs list their office hours with the addendum "or by appointment"...
 

Mucman

Diamond Member
Oct 10, 1999
7,246
1
0
Most of my profs are like that though... this one is over worked he teaches too many classes. When I had him before all of hos office hours had 10 people in line to talk to. him.
 

CTho9305

Elite Member
Jul 26, 2000
9,214
1
81
i'm sure the henesey & patterson book has some info... if not, google

i think the ansewr to the normalization part is yes, since these are always positive.
 

Mucman

Diamond Member
Oct 10, 1999
7,246
1
0
CTho9305 - thanks... I have been checking google for hours! I think I have gained an understanding of it now. This is really an enjoyable assignment. Maybe when it is complete I will post my answers on here and let you guys laugh at my inefficient digital logic design
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |