blob: 866fa50bc9a26488619cb8435ded0dffd0187cd5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
-------------------------------------------------------------------------------
-- Module : fir_mac
-------------------------------------------------------------------------------
-- Author : Matthias Kamuf
-- Company : University of Applied Sciences Augsburg
-------------------------------------------------------------------------------
-- Description: Module fir_mac used as part of fir
--
-------------------------------------------------------------------------------
-- Revisions : see end of file
-------------------------------------------------------------------------------
LIBRARY IEEE;
USE IEEE.std_logic_1164.ALL;
USE IEEE.numeric_std.ALL;
ENTITY fir_mac IS
GENERIC (
gen_w_in : natural := 14;
gen_w_c : natural := 12);
PORT (
clk_i : IN std_ulogic;
rst_ni : IN std_ulogic;
hl_i : IN std_ulogic_vector(gen_w_c-1 DOWNTO 0); -- left coefficient
hr_i : IN std_ulogic_vector(gen_w_c-1 DOWNTO 0); -- right coefficient
d_i : IN std_ulogic_vector(gen_w_in-1 DOWNTO 0); -- data input first register
d_o : OUT std_ulogic_vector(gen_w_in-1 DOWNTO 0); -- data output second register
sum_o : OUT std_ulogic_vector(gen_w_in+gen_w_c DOWNTO 0)); -- registered output sum_o
END fir_mac;
ARCHITECTURE rtl OF fir_mac IS
BEGIN
-- shift register at sample rate
-- products left and right of first register
-- output sum (registered) at sample rate
END rtl;
-------------------------------------------------------------------------------
-- Revisions:
-- ----------
-- $Id:$
-------------------------------------------------------------------------------
|