projects
/
microwatt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f01f3d2
)
fpu: Make inverse_table a constant
author
Anton Blanchard
<anton@linux.ibm.com>
Tue, 15 Mar 2022 05:03:34 +0000
(16:03 +1100)
committer
Anton Blanchard
<anton@ozlabs.org>
Tue, 15 Mar 2022 05:03:34 +0000
(16:03 +1100)
GHDL synthesis is complaining that inverse_table is never stored to.
Change it to a constant.
Signed-off-by: Anton Blanchard <anton@linux.ibm.com>
fpu.vhdl
patch
|
blob
|
history
diff --git
a/fpu.vhdl
b/fpu.vhdl
index 93fa9d68880c996be4aefcdb961bd9430284222f..cb71a4c24d1a78b08a54d03f9f59287c5d529c56 100644
(file)
--- a/
fpu.vhdl
+++ b/
fpu.vhdl
@@
-197,7
+197,7
@@
architecture behaviour of fpu is
-- Each output value is the inverse of the center of the input
-- range for the value, i.e. entry 0 is 1 / (1 + 1/512),
-- entry 1 is 1 / (1 + 3/512), etc.
-
signal
inverse_table : lookup_table := (
+
constant
inverse_table : lookup_table := (
-- 1/x lookup table
-- Unit bit is assumed to be 1, so input range is [1, 2)
18x"3fc01", 18x"3f411", 18x"3ec31", 18x"3e460", 18x"3dc9f", 18x"3d4ec", 18x"3cd49", 18x"3c5b5",