Velocity Reviews > VHDL > Re: Floating Point Division

# Re: Floating Point Division

Derek Simmons
Guest
Posts: n/a

 05-09-2010
On May 8, 1:26*am, niyander <(E-Mail Removed)> wrote:
> Hello,
>
> I am trying to implement (simulation + synthesis) a 32bit floating
> point division unit.
> To perform division basically the 23+1bit (1 hidden bit) mantissa part
> is divided with the other mantissa, and then 8bit exponents are
> subtracted and finally normalization is applied.
> So for the mantissa division part I am following Binary Division by
> Shift and Subtract method (http://courses.cs.vt.edu/~cs1104/Division/
> ShiftSubtract/Shift.Subtract.html).
> I can use this algorithm if both the mantissa's are such that no
> remainder is left (i.e. remainder=0) but if mantissa's are such that a
> remainder is left then how can i proceed with the division? if i
> proceed then quotient would be inaccurate.
>
> I have already searched google for srt division algorithm but i am not
> able to find an simple example. If some one give me srt division
> example/algorithm for a value of 22/7 i would really appreciate that.
>
> Thanks

How about if the remainder is greater than half the number you're
dividing by add one to the least significant bit. If you can track
down a copy of the manual for the Motorola MC88000 processor they have
4 or 8 methods for rounding.

niyander
Guest
Posts: n/a

 05-09-2010
On May 9, 5:59*am, Derek Simmons <(E-Mail Removed)> wrote:
> On May 8, 1:26*am, niyander <(E-Mail Removed)> wrote:
>
>
>
> > Hello,

>
> > I am trying to implement (simulation + synthesis) a 32bit floating
> > point division unit.
> > To perform division basically the 23+1bit (1 hidden bit) mantissa part
> > is divided with the other mantissa, and then 8bit exponents are
> > subtracted and finally normalization is applied.
> > So for the mantissa division part I am following Binary Division by
> > Shift and Subtract method (http://courses.cs.vt.edu/~cs1104/Division/
> > ShiftSubtract/Shift.Subtract.html).
> > I can use this algorithm if both the mantissa's are such that no
> > remainder is left (i.e. remainder=0) but if mantissa's are such that a
> > remainder is left then how can i proceed with the division? if i
> > proceed then quotient would be inaccurate.

>
> > I have already searched google for srt division algorithm but i am not
> > able to find an simple example. If some one give me srt division
> > example/algorithm for a value of 22/7 i would really appreciate that.

>
> > Thanks

>
> How about if the remainder is greater than half the number you're
> dividing by add one to the least significant bit. If you can track
> down a copy of the manual for the Motorola MC88000 processor they have
> 4 or 8 methods for rounding.

thanks

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is OffTrackbacks are On Pingbacks are On Refbacks are Off Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Saraswati lakki ASP .Net 0 01-06-2012 06:39 AM sajsajsajsaj VHDL 0 06-05-2011 06:52 PM Pieter Hulshoff VHDL 2 12-07-2004 06:15 AM Michael Neumann Ruby 29 06-11-2004 09:48 AM sunwij VHDL 3 12-29-2003 04:44 AM