git-svn-id: http://moon:8086/svn/vhdl/trunk@1446 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
2021-03-22 12:42:32 +00:00
parent 1ab613da24
commit 2857236623
4 changed files with 8421 additions and 0 deletions
Binary file not shown.
+9
View File
@@ -0,0 +1,9 @@
SRCS += fixed_float_types_c.vhdl
SRCS += fixed_pkg_c.vhdl
# Compile
TARGET := fixed_pkg
WORK_LIB := ieee_proposed
include ../../../Common/make/ghdl.mk
@@ -0,0 +1,34 @@
-- --------------------------------------------------------------------
-- "fixed_float_types" package contains types used in the fixed and floating
-- point packages..
-- Please see the documentation for the floating point package.
-- This package should be compiled into "ieee_proposed" and used as follows:
--
-- This verison is designed to work with the VHDL-93 compilers. Please
-- note the "%%%" comments. These are where we diverge from the
-- VHDL-200X LRM.
--
-- --------------------------------------------------------------------
-- Version : $Revision: 1.21 $
-- Date : $Date: 2007-09-11 14:52:13-04 $
-- --------------------------------------------------------------------
package fixed_float_types is
-- Types used for generics of fixed_generic_pkg
type fixed_round_style_type is (fixed_round, fixed_truncate);
type fixed_overflow_style_type is (fixed_saturate, fixed_wrap);
-- Type used for generics of float_generic_pkg
-- These are the same as the C FE_TONEAREST, FE_UPWARD, FE_DOWNWARD,
-- and FE_TOWARDZERO floating point rounding macros.
type round_type is (round_nearest, -- Default, nearest LSB '0'
round_inf, -- Round toward positive infinity
round_neginf, -- Round toward negative infinity
round_zero); -- Round toward zero (truncate)
end package fixed_float_types;
File diff suppressed because it is too large Load Diff