From 2415e4c78bba3e72552049bf2697880ea04a3163 Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Mon, 22 Mar 2021 17:44:08 +0000 Subject: [PATCH] - added patch git-svn-id: http://moon:8086/svn/vhdl/trunk@1454 cc03376c-175c-47c8-b038-4cd826a8556b --- lib/fixed/ieee_proposed/fixed_pkg_c.patch | 36 +++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 lib/fixed/ieee_proposed/fixed_pkg_c.patch diff --git a/lib/fixed/ieee_proposed/fixed_pkg_c.patch b/lib/fixed/ieee_proposed/fixed_pkg_c.patch new file mode 100644 index 0000000..a498d20 --- /dev/null +++ b/lib/fixed/ieee_proposed/fixed_pkg_c.patch @@ -0,0 +1,36 @@ +Index: fixed_pkg_c.vhdl +=================================================================== +--- fixed_pkg_c.vhdl (Revision 1446) ++++ fixed_pkg_c.vhdl (Arbeitskopie) +@@ -2266,12 +2266,13 @@ + function to_sulv ( + arg : UNRESOLVED_ufixed) -- fixed point vector + return STD_ULOGIC_VECTOR is +- variable result : STD_ULOGIC_VECTOR (arg'length-1 downto 0); ++ subtype t is STD_ULOGIC_VECTOR(arg'length-1 downto 0); ++ variable result : t; + begin + if arg'length < 1 then + return NSLV; + end if; +- result := STD_ULOGIC_VECTOR (arg); ++ result := To_X01(t(arg)); + return result; + end function to_sulv; + +@@ -2278,12 +2279,13 @@ + function to_sulv ( + arg : UNRESOLVED_sfixed) -- fixed point vector + return STD_ULOGIC_VECTOR is +- variable result : STD_ULOGIC_VECTOR (arg'length-1 downto 0); ++ subtype t is STD_ULOGIC_VECTOR(arg'length-1 downto 0); ++ variable result : t; + begin + if arg'length < 1 then + return NSLV; + end if; +- result := STD_ULOGIC_VECTOR (arg); ++ result := To_X01(t(arg)); + return result; + end function to_sulv; +