- 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:
@@ -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;
|
||||
|
||||
@@ -188,7 +193,7 @@ proc_out_i: process(clk, wave_i, inv_i, zero_i)
|
||||
if z = '0' then
|
||||
w := wave_i;
|
||||
if inv = '1' then
|
||||
w := resize(-wave_i, w, fixed_truncate, fixed_wrap);
|
||||
w := resize(-wave_i, w, fixed_wrap, fixed_truncate);
|
||||
end if;
|
||||
end if;
|
||||
|
||||
@@ -217,7 +222,7 @@ proc_out_q: process(clk, wave_q, inv_q, zero_q)
|
||||
if z = '0' then
|
||||
w := wave_q;
|
||||
if inv = '1' then
|
||||
w := resize(-wave_q, w, fixed_truncate, fixed_wrap);
|
||||
w := resize(-wave_q, w, fixed_wrap, fixed_truncate);
|
||||
end if;
|
||||
end if;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user