OpenCores
URL https://opencores.org/ocsvn/astron_fifo/astron_fifo/trunk

Subversion Repositories astron_fifo

[/] [astron_fifo/] [trunk/] [tech_fifo_dc.vhd] - Blame information for rev 2

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 danv
-------------------------------------------------------------------------------
2
--
3
-- Copyright (C) 2014
4
-- ASTRON (Netherlands Institute for Radio Astronomy) <http://www.astron.nl/>
5
-- P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
6
--
7
-- This program is free software: you can redistribute it and/or modify
8
-- it under the terms of the GNU General Public License as published by
9
-- the Free Software Foundation, either version 3 of the License, or
10
-- (at your option) any later version.
11
--
12
-- This program is distributed in the hope that it will be useful,
13
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
14
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
-- GNU General Public License for more details.
16
--
17
-- You should have received a copy of the GNU General Public License
18
-- along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
--
20
-------------------------------------------------------------------------------
21
 
22
LIBRARY ieee, technology_lib;
23
USE ieee.std_logic_1164.all;
24
USE work.tech_fifo_component_pkg.ALL;
25
USE technology_lib.technology_pkg.ALL;
26
USE technology_lib.technology_select_pkg.ALL;
27
 
28
-- Declare IP libraries to ensure default binding in simulation. The IP library clause is ignored by synthesis.
29
LIBRARY ip_stratixiv_fifo_lib;
30
--LIBRARY ip_arria10_fifo_lib;
31
--LIBRARY ip_arria10_e3sge3_fifo_lib;
32
--LIBRARY ip_arria10_e1sg_fifo_lib;
33
 
34
ENTITY tech_fifo_dc IS
35
  GENERIC (
36
    g_technology : NATURAL := c_tech_select_default;
37
    g_use_eab    : STRING := "ON";
38
    g_dat_w      : NATURAL;
39
    g_nof_words  : NATURAL
40
  );
41
  PORT (
42
    aclr    : IN STD_LOGIC  := '0';
43
    data    : IN STD_LOGIC_VECTOR (g_dat_w-1 DOWNTO 0);
44
    rdclk   : IN STD_LOGIC;
45
    rdreq   : IN STD_LOGIC;
46
    wrclk   : IN STD_LOGIC;
47
    wrreq   : IN STD_LOGIC;
48
    q       : OUT STD_LOGIC_VECTOR (g_dat_w-1 DOWNTO 0);
49
    rdempty : OUT STD_LOGIC;
50
    rdusedw : OUT STD_LOGIC_VECTOR (tech_ceil_log2(g_nof_words)-1 DOWNTO 0);
51
    wrfull  : OUT STD_LOGIC;
52
    wrusedw : OUT STD_LOGIC_VECTOR (tech_ceil_log2(g_nof_words)-1 DOWNTO 0)
53
  );
54
END tech_fifo_dc;
55
 
56
 
57
ARCHITECTURE str OF tech_fifo_dc IS
58
 
59
BEGIN
60
 
61
  gen_ip_stratixiv : IF g_technology=c_tech_stratixiv GENERATE
62
    u0 : ip_stratixiv_fifo_dc
63
    GENERIC MAP (g_dat_w, g_nof_words)
64
    PORT MAP (aclr, data, rdclk, rdreq, wrclk, wrreq, q, rdempty, rdusedw, wrfull, wrusedw);
65
  END GENERATE;
66
 
67
--  gen_ip_arria10 : IF g_technology=c_tech_arria10 GENERATE
68
--    u0 : ip_arria10_fifo_dc
69
--    GENERIC MAP (g_use_eab, g_dat_w, g_nof_words)
70
--    PORT MAP (aclr, data, rdclk, rdreq, wrclk, wrreq, q, rdempty, rdusedw, wrfull, wrusedw);
71
--  END GENERATE;
72
--
73
--  gen_ip_arria10_e3sge3 : IF g_technology=c_tech_arria10_e3sge3 GENERATE
74
--    u0 : ip_arria10_e3sge3_fifo_dc
75
--    GENERIC MAP (g_use_eab, g_dat_w, g_nof_words)
76
--    PORT MAP (aclr, data, rdclk, rdreq, wrclk, wrreq, q, rdempty, rdusedw, wrfull, wrusedw);
77
--  END GENERATE;
78
--  
79
--  gen_ip_arria10_e1sg : IF g_technology=c_tech_arria10_e1sg GENERATE
80
--    u0 : ip_arria10_e1sg_fifo_dc
81
--    GENERIC MAP (g_use_eab, g_dat_w, g_nof_words)
82
--    PORT MAP (aclr, data, rdclk, rdreq, wrclk, wrreq, q, rdempty, rdusedw, wrfull, wrusedw);
83
--  END GENERATE;
84
 
85
END ARCHITECTURE;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.