aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue1924/float32_pkg.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/gna/issue1924/float32_pkg.vhdl')
-rw-r--r--testsuite/gna/issue1924/float32_pkg.vhdl13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/gna/issue1924/float32_pkg.vhdl b/testsuite/gna/issue1924/float32_pkg.vhdl
new file mode 100644
index 000000000..ce50fcd9a
--- /dev/null
+++ b/testsuite/gna/issue1924/float32_pkg.vhdl
@@ -0,0 +1,13 @@
+library ieee;
+
+package Package_Float32 is new ieee.float_generic_pkg
+ generic map (
+ FLOAT_EXPONENT_WIDTH => 8, -- float32'high
+ FLOAT_FRACTION_WIDTH => 23, -- -float32'low
+ FLOAT_ROUND_STYLE => ieee.fixed_float_types.ROUND_ZERO, -- Truncate
+ FLOAT_DENORMALIZE => false, -- Use IEEE extended floating
+ FLOAT_CHECK_ERROR => false, -- Turn on NAN and overflow processing
+ FLOAT_GUARD_BITS => 0, -- number of guard bits
+ NO_WARNING => false, -- show warnings
+ FIXED_PKG => work.Package_Fixed
+ );