79175641

Date: 2024-11-10 20:05:50
Score: 2.5
Natty:
Report link

I found the problem. The fixed point precision was too low. This resulted in temp*fc always evaluating to zero. The compiler then optimized everything away as multiplication with zero is zero again - and sin(0) or cos(0) can also be calculated at compile time, therefore no CORDIC-Hardware was inferred. After playing a bit with the fixed point ranges everything works as it should.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mt_266