P
pallav
Guest
Hi,
I have two questions I'm hoping I can get some input on.
1. I would like to learn a little bit about IEEE 754 floating point
unit . Does anybody have any recommendations on any good books that
talk about hardware implementation of addition/multiplication/division
algorithms, etc? My ultimate goal is to try to design a MIPS I FPU.
Not looking for a heavy mathematical treatise.
2. I am trying to implement "count leading one/zeros" for a 32 bit
register (for integer operations). Basically, if I have 111010101...,
the leading one count is 3 or 111100011..., the leading one count is
4. So far, the only way I can think to code this up is to hardcode all
the cases in a big casex statement. For counting leading zeros, I can
just invert the register and count leading ones. Are there any neat
tricks anyone is aware of to do this in a better way? There seems to
be lots of papers on leading one predictor for FPUs but that might be
an overkill for this.
Thanks for any ideas.
Kind regards,
I have two questions I'm hoping I can get some input on.
1. I would like to learn a little bit about IEEE 754 floating point
unit . Does anybody have any recommendations on any good books that
talk about hardware implementation of addition/multiplication/division
algorithms, etc? My ultimate goal is to try to design a MIPS I FPU.
Not looking for a heavy mathematical treatise.
2. I am trying to implement "count leading one/zeros" for a 32 bit
register (for integer operations). Basically, if I have 111010101...,
the leading one count is 3 or 111100011..., the leading one count is
4. So far, the only way I can think to code this up is to hardcode all
the cases in a big casex statement. For counting leading zeros, I can
just invert the register and count leading ones. Are there any neat
tricks anyone is aware of to do this in a better way? There seems to
be lots of papers on leading one predictor for FPUs but that might be
an overkill for this.
Thanks for any ideas.
Kind regards,