J
John Speth
Guest
Hi folks-
I've asked this question on various FPGA formums so please excuse my
persistence. I'm hoping different eyes might see my question and be able to
help.
I'm looking for an HDL replacement for sprintf() that will do a float to
string conversion using the "%.3E" format specification. Such a conversion
in C source code is laborius in code and hence time consuming. I need to
convert in about 20 usec on a NIOS on FPGA clocking at 100 MHz.
I'm guessing the best way to do it is to use some C code coupled with
various HDL modules to reduce the C processing load. Such a solution is
acceptable to me as long as I can meet my conversion time target. The best
solution would be all in HDL if possible. I prefer verilog but will take
anything that works. An IP purchase is better than trying to figure out
somthing that isn't finished or is academic but at this point anything I can
find is better than nothing.
Can anyone recommend a good HDL sub for sprintf("%.3E")?
Thanks for your help on this,
John Speth
--- news://freenews.netfront.net/ - complaints: news@netfront.net ---
I've asked this question on various FPGA formums so please excuse my
persistence. I'm hoping different eyes might see my question and be able to
help.
I'm looking for an HDL replacement for sprintf() that will do a float to
string conversion using the "%.3E" format specification. Such a conversion
in C source code is laborius in code and hence time consuming. I need to
convert in about 20 usec on a NIOS on FPGA clocking at 100 MHz.
I'm guessing the best way to do it is to use some C code coupled with
various HDL modules to reduce the C processing load. Such a solution is
acceptable to me as long as I can meet my conversion time target. The best
solution would be all in HDL if possible. I prefer verilog but will take
anything that works. An IP purchase is better than trying to figure out
somthing that isn't finished or is academic but at this point anything I can
find is better than nothing.
Can anyone recommend a good HDL sub for sprintf("%.3E")?
Thanks for your help on this,
John Speth
--- news://freenews.netfront.net/ - complaints: news@netfront.net ---