- fixed renamed package inclusion
- fixed problems after fixed_pkg update: explicit set round and saturation mode in Cordic and CIC git-svn-id: http://moon:8086/svn/vhdl/trunk@1325 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
@@ -23,7 +23,7 @@ use IEEE.MATH_REAL.ALL;
|
|||||||
USE ieee.numeric_std.ALL;
|
USE ieee.numeric_std.ALL;
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ use IEEE.MATH_REAL.ALL;
|
|||||||
USE ieee.numeric_std.ALL;
|
USE ieee.numeric_std.ALL;
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ use IEEE.MATH_REAL.ALL;
|
|||||||
use ieee.numeric_std.all;
|
use ieee.numeric_std.all;
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ use IEEE.MATH_REAL.ALL;
|
|||||||
USE ieee.numeric_std.ALL;
|
USE ieee.numeric_std.ALL;
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ use IEEE.STD_LOGIC_1164.ALL;
|
|||||||
use ieee.numeric_std.all;
|
use ieee.numeric_std.all;
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ use IEEE.MATH_REAL.ALL;
|
|||||||
use ieee.numeric_std.all;
|
use ieee.numeric_std.all;
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ use IEEE.MATH_REAL.ALL;
|
|||||||
USE ieee.numeric_std.ALL;
|
USE ieee.numeric_std.ALL;
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ use IEEE.MATH_REAL.ALL;
|
|||||||
USE ieee.numeric_std.ALL;
|
USE ieee.numeric_std.ALL;
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ use IEEE.STD_LOGIC_1164.ALL;
|
|||||||
use ieee.numeric_std.all;
|
use ieee.numeric_std.all;
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
package fir_stage_pkg is
|
package fir_stage_pkg is
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ use IEEE.MATH_REAL.ALL;
|
|||||||
USE ieee.numeric_std.ALL;
|
USE ieee.numeric_std.ALL;
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ USE ieee.numeric_std.ALL;
|
|||||||
use std.textio.all; -- Imports the standard textio package.
|
use std.textio.all; -- Imports the standard textio package.
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ USE ieee.numeric_std.ALL;
|
|||||||
use std.textio.all; -- Imports the standard textio package.
|
use std.textio.all; -- Imports the standard textio package.
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ USE ieee.numeric_std.ALL;
|
|||||||
use std.textio.all; -- Imports the standard textio package.
|
use std.textio.all; -- Imports the standard textio package.
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ USE ieee.numeric_std.ALL;
|
|||||||
use std.textio.all; -- Imports the standard textio package.
|
use std.textio.all; -- Imports the standard textio package.
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ USE ieee.numeric_std.ALL;
|
|||||||
use std.textio.all; -- Imports the standard textio package.
|
use std.textio.all; -- Imports the standard textio package.
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ use IEEE.NUMERIC_STD.ALL;
|
|||||||
use IEEE.MATH_REAL.ALL;
|
use IEEE.MATH_REAL.ALL;
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
package fixed_util_pkg is
|
package fixed_util_pkg is
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ use IEEE.STD_LOGIC_1164.ALL;
|
|||||||
USE ieee.numeric_std.ALL;
|
USE ieee.numeric_std.ALL;
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
@@ -88,9 +88,9 @@ cordic_proc_pre_stage:
|
|||||||
|
|
||||||
vld_out <= '1';
|
vld_out <= '1';
|
||||||
|
|
||||||
xi := resize(xin, xi);
|
xi := resize(xin, xi, fixed_wrap, fixed_truncate);
|
||||||
yi := resize(yin, yi);
|
yi := resize(yin, yi, fixed_wrap, fixed_truncate);
|
||||||
zi := resize(zin, zi);
|
zi := resize(zin, zi, fixed_wrap, fixed_truncate);
|
||||||
|
|
||||||
xo := resize(xi * gain_x, xo, cordic_saturate_mode, cordic_round_mode);
|
xo := resize(xi * gain_x, xo, cordic_saturate_mode, cordic_round_mode);
|
||||||
yo := resize(yi * gain_y, yo, cordic_saturate_mode, cordic_round_mode);
|
yo := resize(yi * gain_y, yo, cordic_saturate_mode, cordic_round_mode);
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ use IEEE.STD_LOGIC_1164.ALL;
|
|||||||
USE ieee.numeric_std.ALL;
|
USE ieee.numeric_std.ALL;
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
@@ -63,8 +63,8 @@ end cordic_pipe_pre;
|
|||||||
|
|
||||||
architecture Behavioral of cordic_pipe_pre is
|
architecture Behavioral of cordic_pipe_pre is
|
||||||
|
|
||||||
constant pi_sfix : sfixed := to_sfixed(z_range, sproto(nbits_z, nbits_z_frac), fixed_wrap, fixed_round);
|
constant pi_sfix : sfixed(shi(nbits_z, nbits_z_frac) downto slo(nbits_z, nbits_z_frac)) := to_sfixed(z_range, sproto(nbits_z, nbits_z_frac), fixed_wrap, fixed_truncate);
|
||||||
constant pi2_sfix : sfixed := to_sfixed(z_range/2.0, sproto(nbits_z, nbits_z_frac), fixed_wrap, fixed_round);
|
constant pi2_sfix : sfixed(shi(nbits_z, nbits_z_frac) downto slo(nbits_z, nbits_z_frac)) := to_sfixed(z_range/2.0, sproto(nbits_z, nbits_z_frac), fixed_wrap, fixed_truncate);
|
||||||
|
|
||||||
------------------------------------------------------------
|
------------------------------------------------------------
|
||||||
begin
|
begin
|
||||||
@@ -97,13 +97,13 @@ cordic_proc_pre_stage:
|
|||||||
zo := zi;
|
zo := zi;
|
||||||
|
|
||||||
if (zi < -pi2_sfix) then
|
if (zi < -pi2_sfix) then
|
||||||
xo := resize(-xi, xo);
|
xo := resize(-xi, xo, fixed_wrap, fixed_truncate);
|
||||||
yo := resize(-yi, yo);
|
yo := resize(-yi, yo, fixed_wrap, fixed_truncate);
|
||||||
zo := resize(zi + pi_sfix, zo);
|
zo := resize(zi + pi_sfix, zo, fixed_wrap, fixed_truncate);
|
||||||
elsif (zi > pi2_sfix) then
|
elsif (zi > pi2_sfix) then
|
||||||
xo := resize(-xi, xo);
|
xo := resize(-xi, xo, fixed_wrap, fixed_truncate);
|
||||||
yo := resize(-yi, yo);
|
yo := resize(-yi, yo, fixed_wrap, fixed_truncate);
|
||||||
zo := resize(zi - pi_sfix, zo);
|
zo := resize(zi - pi_sfix, zo, fixed_wrap, fixed_truncate);
|
||||||
end if;
|
end if;
|
||||||
|
|
||||||
xout <= xo after tpd;
|
xout <= xo after tpd;
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ use IEEE.STD_LOGIC_1164.ALL;
|
|||||||
USE ieee.numeric_std.ALL;
|
USE ieee.numeric_std.ALL;
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
@@ -95,13 +95,13 @@ cordic_proc_stage:
|
|||||||
yt := yi sra stage_num;
|
yt := yi sra stage_num;
|
||||||
|
|
||||||
if zi(zi'high) = '1' then
|
if zi(zi'high) = '1' then
|
||||||
xo := resize(xi + yt, xo);
|
xo := resize(xi + yt, xo, fixed_wrap, fixed_truncate);
|
||||||
yo := resize(yi - xt, yo);
|
yo := resize(yi - xt, yo, fixed_wrap, fixed_truncate);
|
||||||
zo := resize(zi + coeff, zo);
|
zo := resize(zi + coeff, zo, fixed_wrap, fixed_truncate);
|
||||||
else
|
else
|
||||||
xo := resize(xi - yt, xo);
|
xo := resize(xi - yt, xo, fixed_wrap, fixed_truncate);
|
||||||
yo := resize(yi + xt, yo);
|
yo := resize(yi + xt, yo, fixed_wrap, fixed_truncate);
|
||||||
zo := resize(zi - coeff, zo);
|
zo := resize(zi - coeff, zo, fixed_wrap, fixed_truncate);
|
||||||
end if;
|
end if;
|
||||||
|
|
||||||
xout <= xo after tpd;
|
xout <= xo after tpd;
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ use IEEE.MATH_REAL.ALL;
|
|||||||
USE ieee.numeric_std.ALL;
|
USE ieee.numeric_std.ALL;
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
@@ -194,13 +194,13 @@ signal post_vld : std_logic;
|
|||||||
|
|
||||||
begin
|
begin
|
||||||
|
|
||||||
pre_xin <= resize(xin, pre_xin);
|
pre_xin <= resize(xin, pre_xin, fixed_wrap, fixed_truncate);
|
||||||
pre_yin <= resize(yin, pre_yin);
|
pre_yin <= resize(yin, pre_yin, fixed_wrap, fixed_truncate);
|
||||||
pre_zin <= resize(zin, pre_zin);
|
pre_zin <= resize(zin, pre_zin, fixed_wrap, fixed_truncate);
|
||||||
|
|
||||||
stage_x(0) <= resize(pre_xout, stage_x(0));
|
stage_x(0) <= resize(pre_xout, stage_x(0), fixed_wrap, fixed_truncate);
|
||||||
stage_y(0) <= resize(pre_yout, stage_y(0));
|
stage_y(0) <= resize(pre_yout, stage_y(0), fixed_wrap, fixed_truncate);
|
||||||
stage_z(0) <= resize(pre_zout, stage_z(0));
|
stage_z(0) <= resize(pre_zout, stage_z(0), fixed_wrap, fixed_truncate);
|
||||||
|
|
||||||
post_xin <= resize(stage_x(nstages), post_xin, cordic_saturate_mode, cordic_round_mode);
|
post_xin <= resize(stage_x(nstages), post_xin, cordic_saturate_mode, cordic_round_mode);
|
||||||
post_yin <= resize(stage_y(nstages), post_yin, cordic_saturate_mode, cordic_round_mode);
|
post_yin <= resize(stage_y(nstages), post_yin, cordic_saturate_mode, cordic_round_mode);
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ use IEEE.STD_LOGIC_1164.ALL;
|
|||||||
use ieee.numeric_std.all;
|
use ieee.numeric_std.all;
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ USE ieee.std_logic_1164.ALL;
|
|||||||
USE ieee.numeric_std.ALL;
|
USE ieee.numeric_std.ALL;
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ use IEEE.STD_LOGIC_1164.ALL;
|
|||||||
USE ieee.numeric_std.ALL;
|
USE ieee.numeric_std.ALL;
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
@@ -100,9 +100,9 @@ gen_direct: if reg_mode = none generate
|
|||||||
else
|
else
|
||||||
ready_r <= '1';
|
ready_r <= '1';
|
||||||
valid_r <= ce;
|
valid_r <= ce;
|
||||||
xyz_in.x <= resize(xin, xyz_in.x'left, xyz_in.x'right);
|
xyz_in.x <= resize(xin, xyz_in.x'left, xyz_in.x'right, fixed_wrap, fixed_truncate);
|
||||||
xyz_in.y <= resize(yin, xyz_in.y'left, xyz_in.y'right);
|
xyz_in.y <= resize(yin, xyz_in.y'left, xyz_in.y'right, fixed_wrap, fixed_truncate);
|
||||||
xyz_in.z <= resize(zin, xyz_in.z'left, xyz_in.z'right);
|
xyz_in.z <= resize(zin, xyz_in.z'left, xyz_in.z'right, fixed_wrap, fixed_truncate);
|
||||||
end if;
|
end if;
|
||||||
end process;
|
end process;
|
||||||
|
|
||||||
@@ -140,9 +140,9 @@ gen_reg_in: if (reg_mode = reg_mode_in) generate
|
|||||||
ready_r <= '1';
|
ready_r <= '1';
|
||||||
valid_r <= ce;
|
valid_r <= ce;
|
||||||
if (ce = '1') then
|
if (ce = '1') then
|
||||||
xyz_in.x <= resize(xin, xyz_in.x'left, xyz_in.x'right);
|
xyz_in.x <= resize(xin, xyz_in.x'left, xyz_in.x'right, fixed_wrap, fixed_truncate);
|
||||||
xyz_in.y <= resize(yin, xyz_in.y'left, xyz_in.y'right);
|
xyz_in.y <= resize(yin, xyz_in.y'left, xyz_in.y'right, fixed_wrap, fixed_truncate);
|
||||||
xyz_in.z <= resize(zin, xyz_in.z'left, xyz_in.z'right);
|
xyz_in.z <= resize(zin, xyz_in.z'left, xyz_in.z'right, fixed_wrap, fixed_truncate);
|
||||||
end if;
|
end if;
|
||||||
end if;
|
end if;
|
||||||
end process;
|
end process;
|
||||||
@@ -180,9 +180,9 @@ gen_reg_out: if (reg_mode = reg_mode_out) generate
|
|||||||
else
|
else
|
||||||
ready_r <= '1';
|
ready_r <= '1';
|
||||||
valid_r <= ce;
|
valid_r <= ce;
|
||||||
xyz_in.x <= resize(xin, xyz_in.x'left, xyz_in.x'right);
|
xyz_in.x <= resize(xin, xyz_in.x'left, xyz_in.x'right, fixed_wrap, fixed_truncate);
|
||||||
xyz_in.y <= resize(yin, xyz_in.y'left, xyz_in.y'right);
|
xyz_in.y <= resize(yin, xyz_in.y'left, xyz_in.y'right, fixed_wrap, fixed_truncate);
|
||||||
xyz_in.z <= resize(zin, xyz_in.z'left, xyz_in.z'right);
|
xyz_in.z <= resize(zin, xyz_in.z'left, xyz_in.z'right, fixed_wrap, fixed_truncate);
|
||||||
end if;
|
end if;
|
||||||
end process;
|
end process;
|
||||||
|
|
||||||
@@ -222,9 +222,9 @@ gen_reg_inout: if (reg_mode = reg_mode_inout) generate
|
|||||||
ready_r <= '1';
|
ready_r <= '1';
|
||||||
valid_r <= ce;
|
valid_r <= ce;
|
||||||
if (ce = '1') then
|
if (ce = '1') then
|
||||||
xyz_in.x <= resize(xin, xyz_in.x'left, xyz_in.x'right);
|
xyz_in.x <= resize(xin, xyz_in.x'left, xyz_in.x'right, fixed_wrap, fixed_truncate);
|
||||||
xyz_in.y <= resize(yin, xyz_in.y'left, xyz_in.y'right);
|
xyz_in.y <= resize(yin, xyz_in.y'left, xyz_in.y'right, fixed_wrap, fixed_truncate);
|
||||||
xyz_in.z <= resize(zin, xyz_in.z'left, xyz_in.z'right);
|
xyz_in.z <= resize(zin, xyz_in.z'left, xyz_in.z'right, fixed_wrap, fixed_truncate);
|
||||||
end if;
|
end if;
|
||||||
end if;
|
end if;
|
||||||
end process;
|
end process;
|
||||||
@@ -276,13 +276,13 @@ begin
|
|||||||
y2 := xyz_in.y sra stage_count_r;
|
y2 := xyz_in.y sra stage_count_r;
|
||||||
|
|
||||||
if (dir_cw_r = '1') then
|
if (dir_cw_r = '1') then
|
||||||
xyz_out.x <= resize(xyz_in.x + y2, xyz_out.x'left, xyz_out.x'right) after tpd;
|
xyz_out.x <= resize(xyz_in.x + y2, xyz_out.x'left, xyz_out.x'right, fixed_wrap, fixed_truncate) after tpd;
|
||||||
xyz_out.y <= resize(xyz_in.y - x2, xyz_out.y'left, xyz_out.y'right) after tpd;
|
xyz_out.y <= resize(xyz_in.y - x2, xyz_out.y'left, xyz_out.y'right, fixed_wrap, fixed_truncate) after tpd;
|
||||||
xyz_out.z <= resize(xyz_in.z + coeff, xyz_out.z'left, xyz_out.z'right) after tpd;
|
xyz_out.z <= resize(xyz_in.z + coeff, xyz_out.z'left, xyz_out.z'right, fixed_wrap, fixed_truncate) after tpd;
|
||||||
else
|
else
|
||||||
xyz_out.x <= resize(xyz_in.x - y2, xyz_out.x'left, xyz_out.x'right) after tpd;
|
xyz_out.x <= resize(xyz_in.x - y2, xyz_out.x'left, xyz_out.x'right, fixed_wrap, fixed_truncate) after tpd;
|
||||||
xyz_out.y <= resize(xyz_in.y + x2, xyz_out.y'left, xyz_out.y'right) after tpd;
|
xyz_out.y <= resize(xyz_in.y + x2, xyz_out.y'left, xyz_out.y'right, fixed_wrap, fixed_truncate) after tpd;
|
||||||
xyz_out.z <= resize(xyz_in.z - coeff, xyz_out.z'left, xyz_out.z'right) after tpd;
|
xyz_out.z <= resize(xyz_in.z - coeff, xyz_out.z'left, xyz_out.z'right, fixed_wrap, fixed_truncate) after tpd;
|
||||||
end if;
|
end if;
|
||||||
end if;
|
end if;
|
||||||
end process;
|
end process;
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ use IEEE.STD_LOGIC_1164.ALL;
|
|||||||
USE ieee.numeric_std.ALL;
|
USE ieee.numeric_std.ALL;
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
@@ -98,9 +98,9 @@ gen_direct: if reg_mode = none generate
|
|||||||
else
|
else
|
||||||
ready_r <= '1';
|
ready_r <= '1';
|
||||||
valid_r <= ce;
|
valid_r <= ce;
|
||||||
xyz_in.x <= resize(xin, xyz_in.x'left, xyz_in.x'right);
|
xyz_in.x <= resize(xin, xyz_in.x'left, xyz_in.x'right, fixed_wrap, fixed_truncate);
|
||||||
xyz_in.y <= resize(yin, xyz_in.y'left, xyz_in.y'right);
|
xyz_in.y <= resize(yin, xyz_in.y'left, xyz_in.y'right, fixed_wrap, fixed_truncate);
|
||||||
xyz_in.z <= resize(zin, xyz_in.z'left, xyz_in.z'right);
|
xyz_in.z <= resize(zin, xyz_in.z'left, xyz_in.z'right, fixed_wrap, fixed_truncate);
|
||||||
end if;
|
end if;
|
||||||
end process;
|
end process;
|
||||||
|
|
||||||
@@ -138,9 +138,9 @@ gen_reg_in: if (reg_mode = reg_mode_in) generate
|
|||||||
ready_r <= '1';
|
ready_r <= '1';
|
||||||
valid_r <= ce;
|
valid_r <= ce;
|
||||||
if (ce = '1') then
|
if (ce = '1') then
|
||||||
xyz_in.x <= resize(xin, xyz_in.x'left, xyz_in.x'right);
|
xyz_in.x <= resize(xin, xyz_in.x'left, xyz_in.x'right, fixed_wrap, fixed_truncate);
|
||||||
xyz_in.y <= resize(yin, xyz_in.y'left, xyz_in.y'right);
|
xyz_in.y <= resize(yin, xyz_in.y'left, xyz_in.y'right, fixed_wrap, fixed_truncate);
|
||||||
xyz_in.z <= resize(zin, xyz_in.z'left, xyz_in.z'right);
|
xyz_in.z <= resize(zin, xyz_in.z'left, xyz_in.z'right, fixed_wrap, fixed_truncate);
|
||||||
end if;
|
end if;
|
||||||
end if;
|
end if;
|
||||||
end process;
|
end process;
|
||||||
@@ -178,9 +178,9 @@ gen_reg_out: if (reg_mode = reg_mode_out) generate
|
|||||||
else
|
else
|
||||||
ready_r <= '1';
|
ready_r <= '1';
|
||||||
valid_r <= ce;
|
valid_r <= ce;
|
||||||
xyz_in.x <= resize(xin, xyz_in.x'left, xyz_in.x'right);
|
xyz_in.x <= resize(xin, xyz_in.x'left, xyz_in.x'right, fixed_wrap, fixed_truncate);
|
||||||
xyz_in.y <= resize(yin, xyz_in.y'left, xyz_in.y'right);
|
xyz_in.y <= resize(yin, xyz_in.y'left, xyz_in.y'right, fixed_wrap, fixed_truncate);
|
||||||
xyz_in.z <= resize(zin, xyz_in.z'left, xyz_in.z'right);
|
xyz_in.z <= resize(zin, xyz_in.z'left, xyz_in.z'right, fixed_wrap, fixed_truncate);
|
||||||
end if;
|
end if;
|
||||||
end process;
|
end process;
|
||||||
|
|
||||||
@@ -220,9 +220,9 @@ gen_reg_inout: if (reg_mode = reg_mode_inout) generate
|
|||||||
ready_r <= '1';
|
ready_r <= '1';
|
||||||
valid_r <= ce;
|
valid_r <= ce;
|
||||||
if (ce = '1') then
|
if (ce = '1') then
|
||||||
xyz_in.x <= resize(xin, xyz_in.x'left, xyz_in.x'right);
|
xyz_in.x <= resize(xin, xyz_in.x'left, xyz_in.x'right, fixed_wrap, fixed_truncate);
|
||||||
xyz_in.y <= resize(yin, xyz_in.y'left, xyz_in.y'right);
|
xyz_in.y <= resize(yin, xyz_in.y'left, xyz_in.y'right, fixed_wrap, fixed_truncate);
|
||||||
xyz_in.z <= resize(zin, xyz_in.z'left, xyz_in.z'right);
|
xyz_in.z <= resize(zin, xyz_in.z'left, xyz_in.z'right, fixed_wrap, fixed_truncate);
|
||||||
end if;
|
end if;
|
||||||
end if;
|
end if;
|
||||||
end process;
|
end process;
|
||||||
@@ -252,9 +252,9 @@ gen_reg_inout: if (reg_mode = reg_mode_inout) generate
|
|||||||
cordic_post_stage: process(xyz_in, cordic_mode)
|
cordic_post_stage: process(xyz_in, cordic_mode)
|
||||||
begin
|
begin
|
||||||
|
|
||||||
xyz_out.x <= resize(xyz_in.x, xyz_out.x'left, xyz_out.x'right);
|
xyz_out.x <= resize(xyz_in.x, xyz_out.x'left, xyz_out.x'right, fixed_wrap, fixed_truncate);
|
||||||
xyz_out.y <= resize(xyz_in.y, xyz_out.y'left, xyz_out.y'right);
|
xyz_out.y <= resize(xyz_in.y, xyz_out.y'left, xyz_out.y'right, fixed_wrap, fixed_truncate);
|
||||||
xyz_out.z <= resize(xyz_in.z, xyz_out.z'left, xyz_out.z'right);
|
xyz_out.z <= resize(xyz_in.z, xyz_out.z'left, xyz_out.z'right, fixed_wrap, fixed_truncate);
|
||||||
|
|
||||||
case cordic_mode is
|
case cordic_mode is
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ use IEEE.STD_LOGIC_1164.ALL;
|
|||||||
USE ieee.numeric_std.ALL;
|
USE ieee.numeric_std.ALL;
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
@@ -101,9 +101,9 @@ gen_direct: if reg_mode = none generate
|
|||||||
else
|
else
|
||||||
ready_r <= '1';
|
ready_r <= '1';
|
||||||
valid_r <= ce;
|
valid_r <= ce;
|
||||||
xyz_in.x <= resize(xin, xyz_in.x'left, xyz_in.x'right);
|
xyz_in.x <= resize(xin, xyz_in.x'left, xyz_in.x'right, fixed_wrap, fixed_truncate);
|
||||||
xyz_in.y <= resize(yin, xyz_in.y'left, xyz_in.y'right);
|
xyz_in.y <= resize(yin, xyz_in.y'left, xyz_in.y'right, fixed_wrap, fixed_truncate);
|
||||||
xyz_in.z <= resize(zin, xyz_in.z'left, xyz_in.z'right);
|
xyz_in.z <= resize(zin, xyz_in.z'left, xyz_in.z'right, fixed_wrap, fixed_truncate);
|
||||||
end if;
|
end if;
|
||||||
end process;
|
end process;
|
||||||
|
|
||||||
@@ -141,9 +141,9 @@ gen_reg_in: if (reg_mode = reg_mode_in) generate
|
|||||||
ready_r <= '1';
|
ready_r <= '1';
|
||||||
valid_r <= ce;
|
valid_r <= ce;
|
||||||
if (ce = '1') then
|
if (ce = '1') then
|
||||||
xyz_in.x <= resize(xin, xyz_in.x'left, xyz_in.x'right);
|
xyz_in.x <= resize(xin, xyz_in.x'left, xyz_in.x'right, fixed_wrap, fixed_truncate);
|
||||||
xyz_in.y <= resize(yin, xyz_in.y'left, xyz_in.y'right);
|
xyz_in.y <= resize(yin, xyz_in.y'left, xyz_in.y'right, fixed_wrap, fixed_truncate);
|
||||||
xyz_in.z <= resize(zin, xyz_in.z'left, xyz_in.z'right);
|
xyz_in.z <= resize(zin, xyz_in.z'left, xyz_in.z'right, fixed_wrap, fixed_truncate);
|
||||||
end if;
|
end if;
|
||||||
end if;
|
end if;
|
||||||
end process;
|
end process;
|
||||||
@@ -181,9 +181,9 @@ gen_reg_out: if (reg_mode = reg_mode_out) generate
|
|||||||
else
|
else
|
||||||
ready_r <= '1';
|
ready_r <= '1';
|
||||||
valid_r <= ce;
|
valid_r <= ce;
|
||||||
xyz_in.x <= resize(xin, xyz_in.x'left, xyz_in.x'right);
|
xyz_in.x <= resize(xin, xyz_in.x'left, xyz_in.x'right, fixed_wrap, fixed_truncate);
|
||||||
xyz_in.y <= resize(yin, xyz_in.y'left, xyz_in.y'right);
|
xyz_in.y <= resize(yin, xyz_in.y'left, xyz_in.y'right, fixed_wrap, fixed_truncate);
|
||||||
xyz_in.z <= resize(zin, xyz_in.z'left, xyz_in.z'right);
|
xyz_in.z <= resize(zin, xyz_in.z'left, xyz_in.z'right, fixed_wrap, fixed_truncate);
|
||||||
end if;
|
end if;
|
||||||
end process;
|
end process;
|
||||||
|
|
||||||
@@ -223,9 +223,9 @@ gen_reg_inout: if (reg_mode = reg_mode_inout) generate
|
|||||||
ready_r <= '1';
|
ready_r <= '1';
|
||||||
valid_r <= ce;
|
valid_r <= ce;
|
||||||
if (ce = '1') then
|
if (ce = '1') then
|
||||||
xyz_in.x <= resize(xin, xyz_in.x'left, xyz_in.x'right);
|
xyz_in.x <= resize(xin, xyz_in.x'left, xyz_in.x'right, fixed_wrap, fixed_truncate);
|
||||||
xyz_in.y <= resize(yin, xyz_in.y'left, xyz_in.y'right);
|
xyz_in.y <= resize(yin, xyz_in.y'left, xyz_in.y'right, fixed_wrap, fixed_truncate);
|
||||||
xyz_in.z <= resize(zin, xyz_in.z'left, xyz_in.z'right);
|
xyz_in.z <= resize(zin, xyz_in.z'left, xyz_in.z'right, fixed_wrap, fixed_truncate);
|
||||||
end if;
|
end if;
|
||||||
end if;
|
end if;
|
||||||
end process;
|
end process;
|
||||||
@@ -255,40 +255,40 @@ gen_reg_inout: if (reg_mode = reg_mode_inout) generate
|
|||||||
cordic_proc_pre_stage: process(xyz_in, cordic_mode)
|
cordic_proc_pre_stage: process(xyz_in, cordic_mode)
|
||||||
begin
|
begin
|
||||||
|
|
||||||
xyz_out.x <= resize(xyz_in.x, xyz_out.x'left, xyz_out.x'right);
|
xyz_out.x <= resize(xyz_in.x, xyz_out.x'left, xyz_out.x'right, fixed_wrap, fixed_truncate);
|
||||||
xyz_out.y <= resize(xyz_in.y, xyz_out.y'left, xyz_out.y'right);
|
xyz_out.y <= resize(xyz_in.y, xyz_out.y'left, xyz_out.y'right, fixed_wrap, fixed_truncate);
|
||||||
xyz_out.z <= resize(xyz_in.z, xyz_out.z'left, xyz_out.z'right);
|
xyz_out.z <= resize(xyz_in.z, xyz_out.z'left, xyz_out.z'right, fixed_wrap, fixed_truncate);
|
||||||
|
|
||||||
case cordic_mode is
|
case cordic_mode is
|
||||||
|
|
||||||
when cordic_mode_rotate =>
|
when cordic_mode_rotate =>
|
||||||
|
|
||||||
if (xyz_in.z < -pi2_in_sfix) then
|
if (xyz_in.z < -pi2_in_sfix) then
|
||||||
xyz_out.x <= resize(-xyz_in.x, xyz_out.x'left, xyz_out.x'right);
|
xyz_out.x <= resize(-xyz_in.x, xyz_out.x'left, xyz_out.x'right, fixed_wrap, fixed_truncate);
|
||||||
xyz_out.y <= resize(-xyz_in.y, xyz_out.y'left, xyz_out.y'right);
|
xyz_out.y <= resize(-xyz_in.y, xyz_out.y'left, xyz_out.y'right, fixed_wrap, fixed_truncate);
|
||||||
xyz_out.z <= resize(xyz_in.z + pi_out_sfix, xyz_out.z'left, xyz_out.z'right);
|
xyz_out.z <= resize(xyz_in.z + pi_out_sfix, xyz_out.z'left, xyz_out.z'right, fixed_wrap, fixed_truncate);
|
||||||
elsif (xyz_in.z > pi2_in_sfix) then
|
elsif (xyz_in.z > pi2_in_sfix) then
|
||||||
xyz_out.x <= resize(-xyz_in.x, xyz_out.x'left, xyz_out.x'right);
|
xyz_out.x <= resize(-xyz_in.x, xyz_out.x'left, xyz_out.x'right, fixed_wrap, fixed_truncate);
|
||||||
xyz_out.y <= resize(-xyz_in.y, xyz_out.y'left, xyz_out.y'right);
|
xyz_out.y <= resize(-xyz_in.y, xyz_out.y'left, xyz_out.y'right, fixed_wrap, fixed_truncate);
|
||||||
xyz_out.z <= resize(xyz_in.z - pi_out_sfix, xyz_out.z'left, xyz_out.z'right);
|
xyz_out.z <= resize(xyz_in.z - pi_out_sfix, xyz_out.z'left, xyz_out.z'right, fixed_wrap, fixed_truncate);
|
||||||
end if;
|
end if;
|
||||||
|
|
||||||
|
|
||||||
when cordic_mode_vector =>
|
when cordic_mode_vector =>
|
||||||
|
|
||||||
-- if (xyz_in.x < zero_in_sfix) then
|
-- if (xyz_in.x < zero_in_sfix) then
|
||||||
-- xyz_out.x <= resize(-xyz_in.x, xyz_out.x'left, xyz_out.x'right);
|
-- xyz_out.x <= resize(-xyz_in.x, xyz_out.x'left, xyz_out.x'right, fixed_wrap, fixed_truncate);
|
||||||
-- xyz_out.y <= resize(-xyz_in.y, xyz_out.y'left, xyz_out.y'right);
|
-- xyz_out.y <= resize(-xyz_in.y, xyz_out.y'left, xyz_out.y'right, fixed_wrap, fixed_truncate);
|
||||||
-- xyz_out.z <= resize(xyz_in.z - pi_out_sfix, xyz_out.z'left, xyz_out.z'right);
|
-- xyz_out.z <= resize(xyz_in.z - pi_out_sfix, xyz_out.z'left, xyz_out.z'right, fixed_wrap, fixed_truncate);
|
||||||
-- end if;
|
-- end if;
|
||||||
if (xyz_in.y < zero_in_sfix) then
|
if (xyz_in.y < zero_in_sfix) then
|
||||||
xyz_out.x <= resize(-xyz_in.y, xyz_out.x'left, xyz_out.x'right);
|
xyz_out.x <= resize(-xyz_in.y, xyz_out.x'left, xyz_out.x'right, fixed_wrap, fixed_truncate);
|
||||||
xyz_out.y <= resize(xyz_in.x, xyz_out.y'left, xyz_out.y'right);
|
xyz_out.y <= resize(xyz_in.x, xyz_out.y'left, xyz_out.y'right, fixed_wrap, fixed_truncate);
|
||||||
xyz_out.z <= resize(xyz_in.z + pi2_out_sfix, xyz_out.z'left, xyz_out.z'right);
|
xyz_out.z <= resize(xyz_in.z + pi2_out_sfix, xyz_out.z'left, xyz_out.z'right, fixed_wrap, fixed_truncate);
|
||||||
else
|
else
|
||||||
xyz_out.x <= resize(xyz_in.y, xyz_out.x'left, xyz_out.x'right);
|
xyz_out.x <= resize(xyz_in.y, xyz_out.x'left, xyz_out.x'right, fixed_wrap, fixed_truncate);
|
||||||
xyz_out.y <= resize(-xyz_in.x, xyz_out.y'left, xyz_out.y'right);
|
xyz_out.y <= resize(-xyz_in.x, xyz_out.y'left, xyz_out.y'right, fixed_wrap, fixed_truncate);
|
||||||
xyz_out.z <= resize(xyz_in.z - pi2_out_sfix, xyz_out.z'left, xyz_out.z'right);
|
xyz_out.z <= resize(xyz_in.z - pi2_out_sfix, xyz_out.z'left, xyz_out.z'right, fixed_wrap, fixed_truncate);
|
||||||
end if;
|
end if;
|
||||||
|
|
||||||
when others => null;
|
when others => null;
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ use IEEE.MATH_REAL.ALL;
|
|||||||
USE ieee.numeric_std.ALL;
|
USE ieee.numeric_std.ALL;
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ USE ieee.numeric_std.ALL;
|
|||||||
use std.textio.all; -- Imports the standard textio package.
|
use std.textio.all; -- Imports the standard textio package.
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ USE ieee.numeric_std.ALL;
|
|||||||
use std.textio.all; -- Imports the standard textio package.
|
use std.textio.all; -- Imports the standard textio package.
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ use IEEE.MATH_REAL.ALL;
|
|||||||
USE ieee.numeric_std.ALL;
|
USE ieee.numeric_std.ALL;
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ use IEEE.MATH_REAL.ALL;
|
|||||||
USE ieee.numeric_std.ALL;
|
USE ieee.numeric_std.ALL;
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ use IEEE.MATH_REAL.ALL;
|
|||||||
USE ieee.numeric_std.ALL;
|
USE ieee.numeric_std.ALL;
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ use IEEE.MATH_REAL.ALL;
|
|||||||
USE ieee.numeric_std.ALL;
|
USE ieee.numeric_std.ALL;
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
--library altera;
|
--library altera;
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ use IEEE.MATH_REAL.ALL;
|
|||||||
USE ieee.numeric_std.ALL;
|
USE ieee.numeric_std.ALL;
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library altera;
|
library altera;
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ use IEEE.MATH_REAL.ALL;
|
|||||||
USE ieee.numeric_std.ALL;
|
USE ieee.numeric_std.ALL;
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ USE ieee.numeric_std.ALL;
|
|||||||
use std.textio.all; -- Imports the standard textio package.
|
use std.textio.all; -- Imports the standard textio package.
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ USE ieee.numeric_std.ALL;
|
|||||||
use std.textio.all; -- Imports the standard textio package.
|
use std.textio.all; -- Imports the standard textio package.
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ USE ieee.numeric_std.ALL;
|
|||||||
use std.textio.all; -- Imports the standard textio package.
|
use std.textio.all; -- Imports the standard textio package.
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ USE IEEE.STD_LOGIC_1164.ALL;
|
|||||||
USE IEEE.NUMERIC_STD.ALL;
|
USE IEEE.NUMERIC_STD.ALL;
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
@@ -72,7 +72,7 @@ delay_pipe_proc:
|
|||||||
-- word_pipe(i) <= (shi(max_width, max_width_frac) downto slo(max_width, max_width_frac) => '0');
|
-- word_pipe(i) <= (shi(max_width, max_width_frac) downto slo(max_width, max_width_frac) => '0');
|
||||||
-- end loop;
|
-- end loop;
|
||||||
elsif vld_in = '1' then
|
elsif vld_in = '1' then
|
||||||
word_pipe(1) <= resize(din, word_pipe(1));
|
word_pipe(1) <= resize(din, word_pipe(1), fixed_wrap, fixed_truncate);
|
||||||
for i in 2 to max_diff_delay loop
|
for i in 2 to max_diff_delay loop
|
||||||
word_pipe(i) <= word_pipe(i-1);
|
word_pipe(i) <= word_pipe(i-1);
|
||||||
end loop;
|
end loop;
|
||||||
@@ -88,13 +88,13 @@ comb_proc:
|
|||||||
begin
|
begin
|
||||||
if rising_edge(clk) then
|
if rising_edge(clk) then
|
||||||
vld_out <= '0';
|
vld_out <= '0';
|
||||||
x0 := resize(din, x0);
|
x0 := resize(din, x0, fixed_wrap, fixed_truncate);
|
||||||
x1 := word_pipe(diff_delay);
|
x1 := word_pipe(diff_delay);
|
||||||
if rst = '1' then
|
if rst = '1' then
|
||||||
dout <= (shi(max_width, max_width_frac) downto slo(max_width, max_width_frac) => '0');
|
dout <= (shi(max_width, max_width_frac) downto slo(max_width, max_width_frac) => '0');
|
||||||
elsif vld_in = '1' then
|
elsif vld_in = '1' then
|
||||||
vld_out <= '1';
|
vld_out <= '1';
|
||||||
dout <= resize(x0 - x1, shi(max_width, max_width_frac), slo(max_width, max_width_frac));
|
dout <= resize(x0 - x1, shi(max_width, max_width_frac), slo(max_width, max_width_frac), fixed_wrap, fixed_truncate);
|
||||||
end if;
|
end if;
|
||||||
end if;
|
end if;
|
||||||
end process;
|
end process;
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ use IEEE.MATH_REAL.ALL;
|
|||||||
USE ieee.numeric_std.ALL;
|
USE ieee.numeric_std.ALL;
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
@@ -125,7 +125,7 @@ input_scale:
|
|||||||
variable xsi : sfixed(shi(integ_nbits, integ_nbits_frac) downto slo(integ_nbits, integ_nbits_frac));
|
variable xsi : sfixed(shi(integ_nbits, integ_nbits_frac) downto slo(integ_nbits, integ_nbits_frac));
|
||||||
begin
|
begin
|
||||||
if rising_edge(clk) then
|
if rising_edge(clk) then
|
||||||
x := resize(din, x);
|
x := resize(din, x, fixed_wrap, fixed_truncate);
|
||||||
xs := x sra scale_nbits;
|
xs := x sra scale_nbits;
|
||||||
word_i_pipe(0) <= xs;
|
word_i_pipe(0) <= xs;
|
||||||
vld_i_pipe(0) <= vld_in;
|
vld_i_pipe(0) <= vld_in;
|
||||||
@@ -198,6 +198,6 @@ resampler_proc:
|
|||||||
end if;
|
end if;
|
||||||
end process;
|
end process;
|
||||||
|
|
||||||
dout <= resize(word_c_pipe(nstages), shi(out_width, out_width_frac), slo(out_width, out_width_frac));
|
dout <= resize(word_c_pipe(nstages), shi(out_width, out_width_frac), slo(out_width, out_width_frac), fixed_wrap, fixed_truncate);
|
||||||
|
|
||||||
END;
|
END;
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ use IEEE.MATH_REAL.ALL;
|
|||||||
USE ieee.numeric_std.ALL;
|
USE ieee.numeric_std.ALL;
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
@@ -131,7 +131,7 @@ input_scale:
|
|||||||
variable xsi : sfixed(shi(integ_nbits, integ_nbits_frac) downto slo(integ_nbits, integ_nbits_frac));
|
variable xsi : sfixed(shi(integ_nbits, integ_nbits_frac) downto slo(integ_nbits, integ_nbits_frac));
|
||||||
begin
|
begin
|
||||||
if rising_edge(clk) then
|
if rising_edge(clk) then
|
||||||
x := resize(din, x);
|
x := resize(din, x, fixed_wrap, fixed_truncate);
|
||||||
xs := x sra min_gain_bits;
|
xs := x sra min_gain_bits;
|
||||||
-- xsi := xs sra shift_in;
|
-- xsi := xs sra shift_in;
|
||||||
word_i_pipe(0) <= xs;
|
word_i_pipe(0) <= xs;
|
||||||
@@ -159,7 +159,7 @@ input_scale:
|
|||||||
);
|
);
|
||||||
end generate;
|
end generate;
|
||||||
|
|
||||||
word_c_pipe(0) <= resize(word_i_pipe(nstages), word_c_pipe(0));
|
word_c_pipe(0) <= resize(word_i_pipe(nstages), word_c_pipe(0), fixed_wrap, fixed_truncate);
|
||||||
vld_c_pipe(0) <= resample_vld;
|
vld_c_pipe(0) <= resample_vld;
|
||||||
vld_c <= vld_c_pipe(nstages);
|
vld_c <= vld_c_pipe(nstages);
|
||||||
|
|
||||||
@@ -205,6 +205,6 @@ resampler_proc:
|
|||||||
end if;
|
end if;
|
||||||
end process;
|
end process;
|
||||||
|
|
||||||
dout <= resize(word_c_pipe(nstages), shi(out_width, out_width_frac), slo(out_width, out_width_frac));
|
dout <= resize(word_c_pipe(nstages), shi(out_width, out_width_frac), slo(out_width, out_width_frac), fixed_wrap, fixed_truncate);
|
||||||
|
|
||||||
END;
|
END;
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ USE IEEE.STD_LOGIC_1164.ALL;
|
|||||||
USE IEEE.NUMERIC_STD.ALL;
|
USE IEEE.NUMERIC_STD.ALL;
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
@@ -57,7 +57,7 @@ signal accu : sfixed(shi(max_width, max_width_frac) downto slo(max_width, max_
|
|||||||
------------------------------------------------------------
|
------------------------------------------------------------
|
||||||
begin
|
begin
|
||||||
|
|
||||||
dout <= resize(accu, shi(max_width, max_width_frac), slo(max_width, max_width_frac));
|
dout <= resize(accu, shi(max_width, max_width_frac), slo(max_width, max_width_frac), fixed_wrap, fixed_truncate);
|
||||||
|
|
||||||
------------------------------------------------------------
|
------------------------------------------------------------
|
||||||
integ_proc:
|
integ_proc:
|
||||||
@@ -70,8 +70,8 @@ integ_proc:
|
|||||||
accu <= (shi(max_width, max_width_frac) downto slo(max_width, max_width_frac) => '0');
|
accu <= (shi(max_width, max_width_frac) downto slo(max_width, max_width_frac) => '0');
|
||||||
elsif vld_in = '1' then
|
elsif vld_in = '1' then
|
||||||
vld_out <= '1';
|
vld_out <= '1';
|
||||||
x := resize(din, x);
|
x := resize(din, x, fixed_wrap, fixed_truncate);
|
||||||
accu <= resize(x + accu, accu);
|
accu <= resize(x + accu, accu, fixed_wrap, fixed_truncate);
|
||||||
end if;
|
end if;
|
||||||
end if;
|
end if;
|
||||||
end process;
|
end process;
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ USE ieee.numeric_std.ALL;
|
|||||||
use std.textio.all; -- Imports the standard textio package.
|
use std.textio.all; -- Imports the standard textio package.
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ USE ieee.numeric_std.ALL;
|
|||||||
use std.textio.all; -- Imports the standard textio package.
|
use std.textio.all; -- Imports the standard textio package.
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ USE ieee.numeric_std.ALL;
|
|||||||
use std.textio.all; -- Imports the standard textio package.
|
use std.textio.all; -- Imports the standard textio package.
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ USE ieee.numeric_std.ALL;
|
|||||||
use std.textio.all; -- Imports the standard textio package.
|
use std.textio.all; -- Imports the standard textio package.
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ USE ieee.numeric_std.ALL;
|
|||||||
use std.textio.all; -- Imports the standard textio package.
|
use std.textio.all; -- Imports the standard textio package.
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ USE ieee.numeric_std.ALL;
|
|||||||
use std.textio.all; -- Imports the standard textio package.
|
use std.textio.all; -- Imports the standard textio package.
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ use IEEE.MATH_REAL.ALL;
|
|||||||
USE ieee.numeric_std.ALL;
|
USE ieee.numeric_std.ALL;
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ use IEEE.MATH_REAL.ALL;
|
|||||||
USE ieee.numeric_std.ALL;
|
USE ieee.numeric_std.ALL;
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ USE ieee.numeric_std.ALL;
|
|||||||
use std.textio.all; -- Imports the standard textio package.
|
use std.textio.all; -- Imports the standard textio package.
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ USE ieee.numeric_std.ALL;
|
|||||||
use std.textio.all; -- Imports the standard textio package.
|
use std.textio.all; -- Imports the standard textio package.
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ USE ieee.numeric_std.ALL;
|
|||||||
use std.textio.all; -- Imports the standard textio package.
|
use std.textio.all; -- Imports the standard textio package.
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ use IEEE.MATH_REAL.ALL;
|
|||||||
USE ieee.numeric_std.ALL;
|
USE ieee.numeric_std.ALL;
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
use work.fixed_util_pkg.all;
|
use work.fixed_util_pkg.all;
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ use IEEE.MATH_REAL.ALL;
|
|||||||
USE ieee.numeric_std.ALL;
|
USE ieee.numeric_std.ALL;
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ use IEEE.MATH_REAL.ALL;
|
|||||||
USE ieee.numeric_std.ALL;
|
USE ieee.numeric_std.ALL;
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ use IEEE.MATH_REAL.ALL;
|
|||||||
USE ieee.numeric_std.ALL;
|
USE ieee.numeric_std.ALL;
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ use ieee.numeric_std.all;
|
|||||||
use IEEE.MATH_REAL.ALL;
|
use IEEE.MATH_REAL.ALL;
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ USE ieee.numeric_std.ALL;
|
|||||||
use std.textio.all; -- Imports the standard textio package.
|
use std.textio.all; -- Imports the standard textio package.
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ USE ieee.numeric_std.ALL;
|
|||||||
use std.textio.all; -- Imports the standard textio package.
|
use std.textio.all; -- Imports the standard textio package.
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ USE ieee.numeric_std.ALL;
|
|||||||
use std.textio.all; -- Imports the standard textio package.
|
use std.textio.all; -- Imports the standard textio package.
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ use IEEE.MATH_REAL.ALL;
|
|||||||
USE ieee.numeric_std.ALL;
|
USE ieee.numeric_std.ALL;
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ use IEEE.MATH_REAL.ALL;
|
|||||||
USE ieee.numeric_std.ALL;
|
USE ieee.numeric_std.ALL;
|
||||||
|
|
||||||
library ieee_proposed;
|
library ieee_proposed;
|
||||||
use ieee_proposed.math_utility_pkg.all;
|
use ieee_proposed.fixed_float_types.all;
|
||||||
use ieee_proposed.fixed_pkg.all;
|
use ieee_proposed.fixed_pkg.all;
|
||||||
|
|
||||||
library work;
|
library work;
|
||||||
|
|||||||
Reference in New Issue
Block a user