diff options
author | Tristan Gingold <tgingold@free.fr> | 2021-11-27 07:33:34 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2021-11-27 07:33:34 +0100 |
commit | 40fc2c2020ea9ed7e4315d0a5c6fe52e5deaf5ef (patch) | |
tree | 05f714896f649d256d88e7a7bb3917f77e806574 /testsuite/gna/issue1924/float32_pkg.vhdl | |
parent | 15b84d1fbcfb26b2fb4a4467727eec691c5b73a4 (diff) | |
download | ghdl-40fc2c2020ea9ed7e4315d0a5c6fe52e5deaf5ef.tar.gz ghdl-40fc2c2020ea9ed7e4315d0a5c6fe52e5deaf5ef.tar.bz2 ghdl-40fc2c2020ea9ed7e4315d0a5c6fe52e5deaf5ef.zip |
testsuite/gna: add test from #1924
Diffstat (limited to 'testsuite/gna/issue1924/float32_pkg.vhdl')
-rw-r--r-- | testsuite/gna/issue1924/float32_pkg.vhdl | 13 |
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 + ); |