[libre-riscv-dev] [Bug 208] implement CORDIC in a general way sufficient to do transcendentals
    bugzilla-daemon at libre-soc.org 
    bugzilla-daemon at libre-soc.org
       
    Tue May  5 14:17:18 BST 2020
    
    
  
https://bugs.libre-soc.org/show_bug.cgi?id=208
--- Comment #35 from Michael Nolan <mtnolan2640 at gmail.com> ---
So I think I got the floating point cordic all the way working yesterday. It
converts the floating point input to a fixed point 50 bit number, calculates
the sine and cosine, then converts them back to floating point.
However, for the conversion back to floating point I had to write my own class
to do so, as none of the existing ones (used in fpadd for instance) support
*two* outputs. I don't imagine we want to continue using my implementation, so
what would be the best way of going about this?
I also needed to write a module for counting the number of leading zeros in the
fixed point number. I don't imagine this would only be useful to the cordic;
where would be the best place to put it? fpcommon?
-- 
You are receiving this mail because:
You are on the CC list for the bug.
    
    
More information about the libre-riscv-dev
mailing list