Q1

The changes we would require is replacing sin and cos with CORDIC function that outputs approximations of those values.

  1. Required Code Changes:
  1. Resource Usage Impact: From the report's findings:
  1. Performance Impact: The report indicates:

Based on these findings, using a custom CORDIC would likely be beneficial for the DFT implementation as it would:

  1. Reduce DSP usage significantly
  2. Provide tunable accuracy-performance tradeoffs
  3. Improve latency compared to math functions
  4. Allow for optimization of data types for specific variables

The main tradeoff would be increased LUT usage, but the performance and DSP savings could make this worthwhile depending on your specific requirements and constraints.