From b5d416df741e016d096d412ef2d310f3d21595ea Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Wed, 27 Apr 2022 22:50:42 -0700 Subject: [PATCH] add FIXME comments --- src/soc/fu/div/experiment/goldschmidt_div_sqrt.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/soc/fu/div/experiment/goldschmidt_div_sqrt.py b/src/soc/fu/div/experiment/goldschmidt_div_sqrt.py index 055ff7c1..e17f64c7 100644 --- a/src/soc/fu/div/experiment/goldschmidt_div_sqrt.py +++ b/src/soc/fu/div/experiment/goldschmidt_div_sqrt.py @@ -1087,6 +1087,11 @@ def goldschmidt_sqrt_rsqrt_table(table_addr_bits, table_data_bits): # tuple for immutability return tuple(table) +# FIXME: add code to calculate error bounds and check that the algorithm will +# actually work (like in the goldschmidt division algorithm). +# FIXME: add code to calculate a good set of parameters based on the error +# bounds checking. + def goldschmidt_sqrt_rsqrt(radicand, io_width, frac_wid, extra_precision, table_addr_bits, table_data_bits, iter_count): -- 2.30.2