- uses ieee_proposed.fixed_pkg

git-svn-id: http://moon:8086/svn/vhdl/trunk@171 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
2008-12-30 05:35:51 +00:00
parent 8136d54172
commit 75f8ddd340
11 changed files with 51 additions and 14 deletions
+7 -2
View File
@@ -21,7 +21,12 @@ library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.MATH_REAL.ALL;
USE ieee.numeric_std.ALL;
use work.fixed_pkg.all;
library ieee_proposed;
use ieee_proposed.math_utility_pkg.all;
use ieee_proposed.fixed_pkg.all;
library work;
use work.fixed_util_pkg.all;
use work.nco_pkg.all;
@@ -60,7 +65,7 @@ function to_wave_mem(wave_real : real_array_t; len : integer; proto : sfixed) re
variable res : wave_mem_t;
begin
for i in 0 to len-1 loop
res(i) := to_sfixed(wave_real(i), proto, fixed_round, fixed_saturate);
res(i) := to_sfixed(wave_real(i), proto, fixed_saturate, fixed_round);
end loop;
return res;