Commit graph

9 commits

Author SHA1 Message Date
Camille Monière 7707d12e98
Add a synthesis-friendly option and yet another formatting
- If ENABLE_SOFTWARE is true, the behavior is the same than before. All
  tests and functions relying on std::complex are obfuscated otherwise.
  This is required for Xilinx tools.
2022-03-14 17:55:16 +01:00
Camille Monière 4a0236baea
Just an auto-formatting correction 2022-03-14 14:19:42 +01:00
Camille Monière f0035238bf
Correct the name and improve widely
- Fix the MC (Monte-Carlo) to the proper algoritm name, ML (maximum
  likelyhood) and remove HalfPi since the use of divider allow to
  theoretically support any pi / 2^k, k an integer. In reality, a too
  low rotation would require more stages than 7 but it is for futur
  improvements.
- Make use of `divider` template to provide rotation grain finer than pi
  / 2. Validated (unit-tested) with pi / 4 with the same margins than pi
  / 2 (2% of error with floating scaling, 3% with fixed scaling).
- Fix rom size which now use N_STAGES+1 bits instead of 8 regardless of
  N_STAGES. Simplify the cordic method implementation, which
  unexpectedly (and fortunately) improved its performance.
2022-03-14 14:07:10 +01:00
Camille Monière 08c18e63a0
Add support and validation for Pi / 4 in Constexpr variant 2022-03-11 18:38:14 +01:00
Camille Monière 5bc9c3eeb1
Big update, that compiles with Xilinx GCC 6.2
- Commit title implies possible Xilinx Vivado HLS 2019.1 support, thus support
  for e.g. all USRP Series 3 from Ettus.
- Add a new CORDIC version, Rom based and meta-programmed via CMake
  features, to be even compiled with earlier GCC (not quite tested, but
  by changing constexpr to const and using gcc 4.6 -sdt=c++0x, it
  worked).
- Class name modified, to be more explicit.
2022-02-18 21:33:59 +01:00
Camille Monière 9b83926968
Fix for GCC 9.4 support, formatting, and license addition. 2022-02-17 20:22:12 +01:00
Camille Monière 0947b52266
Add option to be PEDANTIC© 2022-02-15 19:25:45 +01:00
Camille Monière cbd04f1a3e
Clang works, not GCC 2022-02-11 19:17:42 +01:00
Camille Monière f2a7c0c886
Working AP template cordic 2022-02-11 18:17:13 +01:00