- combine in/out_width to max_width
- uses ieee_proposed.fixed_pkg git-svn-id: http://moon:8086/svn/vhdl/trunk@167 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
@@ -21,8 +21,11 @@ LIBRARY IEEE;
|
||||
USE IEEE.STD_LOGIC_1164.ALL;
|
||||
USE IEEE.NUMERIC_STD.ALL;
|
||||
|
||||
library ieee_proposed;
|
||||
use ieee_proposed.math_utility_pkg.all;
|
||||
use ieee_proposed.fixed_pkg.all;
|
||||
|
||||
library work;
|
||||
use work.fixed_pkg.all;
|
||||
use work.fixed_util_pkg.all;
|
||||
|
||||
---- Uncomment the following library declaration if instantiating
|
||||
@@ -34,11 +37,7 @@ entity cic_i_pipe is
|
||||
Generic
|
||||
(
|
||||
max_width : integer := 32;
|
||||
max_width_frac : integer := 20;
|
||||
in_width : integer := 32;
|
||||
in_width_frac : integer := 20;
|
||||
out_width : integer := 32;
|
||||
out_width_frac : integer := 20
|
||||
max_width_frac : integer := 20
|
||||
);
|
||||
Port
|
||||
(
|
||||
@@ -58,7 +57,7 @@ signal accu : sfixed(shi(max_width, max_width_frac) downto slo(max_width, max_
|
||||
------------------------------------------------------------
|
||||
begin
|
||||
|
||||
dout <= resize(accu, shi(out_width, out_width_frac), slo(out_width, out_width_frac));
|
||||
dout <= resize(accu, shi(max_width, max_width_frac), slo(max_width, max_width_frac));
|
||||
|
||||
------------------------------------------------------------
|
||||
integ_proc:
|
||||
|
||||
Reference in New Issue
Block a user