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 3

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

Line No. Rev Author Line
1 2 danv
-------------------------------------------------------------------------------
2
--
3 3 danv
-- Copyright 2020
4 2 danv
-- ASTRON (Netherlands Institute for Radio Astronomy) <http://www.astron.nl/>
5
-- P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
6 3 danv
-- 
7
-- Licensed under the Apache License, Version 2.0 (the "License");
8
-- you may not use this file except in compliance with the License.
9
-- You may obtain a copy of the License at
10
-- 
11
--     http://www.apache.org/licenses/LICENSE-2.0
12
-- 
13
-- Unless required by applicable law or agreed to in writing, software
14
-- distributed under the License is distributed on an "AS IS" BASIS,
15
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
-- See the License for the specific language governing permissions and
17
-- limitations under the License.
18 2 danv
--
19
-------------------------------------------------------------------------------
20
 
21
LIBRARY ieee, technology_lib;
22
USE ieee.std_logic_1164.all;
23
USE work.tech_fifo_component_pkg.ALL;
24
USE technology_lib.technology_pkg.ALL;
25
USE technology_lib.technology_select_pkg.ALL;
26
 
27
-- Declare IP libraries to ensure default binding in simulation. The IP library clause is ignored by synthesis.
28
LIBRARY ip_stratixiv_fifo_lib;
29
--LIBRARY ip_arria10_fifo_lib;
30
--LIBRARY ip_arria10_e3sge3_fifo_lib;
31
--LIBRARY ip_arria10_e1sg_fifo_lib;
32
 
33
ENTITY tech_fifo_dc IS
34
  GENERIC (
35
    g_technology : NATURAL := c_tech_select_default;
36
    g_use_eab    : STRING := "ON";
37
    g_dat_w      : NATURAL;
38
    g_nof_words  : NATURAL
39
  );
40
  PORT (
41
    aclr    : IN STD_LOGIC  := '0';
42
    data    : IN STD_LOGIC_VECTOR (g_dat_w-1 DOWNTO 0);
43
    rdclk   : IN STD_LOGIC;
44
    rdreq   : IN STD_LOGIC;
45
    wrclk   : IN STD_LOGIC;
46
    wrreq   : IN STD_LOGIC;
47
    q       : OUT STD_LOGIC_VECTOR (g_dat_w-1 DOWNTO 0);
48
    rdempty : OUT STD_LOGIC;
49
    rdusedw : OUT STD_LOGIC_VECTOR (tech_ceil_log2(g_nof_words)-1 DOWNTO 0);
50
    wrfull  : OUT STD_LOGIC;
51
    wrusedw : OUT STD_LOGIC_VECTOR (tech_ceil_log2(g_nof_words)-1 DOWNTO 0)
52
  );
53
END tech_fifo_dc;
54
 
55
 
56
ARCHITECTURE str OF tech_fifo_dc IS
57
 
58
BEGIN
59
 
60
  gen_ip_stratixiv : IF g_technology=c_tech_stratixiv GENERATE
61
    u0 : ip_stratixiv_fifo_dc
62
    GENERIC MAP (g_dat_w, g_nof_words)
63
    PORT MAP (aclr, data, rdclk, rdreq, wrclk, wrreq, q, rdempty, rdusedw, wrfull, wrusedw);
64
  END GENERATE;
65
 
66
--  gen_ip_arria10 : IF g_technology=c_tech_arria10 GENERATE
67
--    u0 : ip_arria10_fifo_dc
68
--    GENERIC MAP (g_use_eab, g_dat_w, g_nof_words)
69
--    PORT MAP (aclr, data, rdclk, rdreq, wrclk, wrreq, q, rdempty, rdusedw, wrfull, wrusedw);
70
--  END GENERATE;
71
--
72
--  gen_ip_arria10_e3sge3 : IF g_technology=c_tech_arria10_e3sge3 GENERATE
73
--    u0 : ip_arria10_e3sge3_fifo_dc
74
--    GENERIC MAP (g_use_eab, g_dat_w, g_nof_words)
75
--    PORT MAP (aclr, data, rdclk, rdreq, wrclk, wrreq, q, rdempty, rdusedw, wrfull, wrusedw);
76
--  END GENERATE;
77
--  
78
--  gen_ip_arria10_e1sg : IF g_technology=c_tech_arria10_e1sg GENERATE
79
--    u0 : ip_arria10_e1sg_fifo_dc
80
--    GENERIC MAP (g_use_eab, g_dat_w, g_nof_words)
81
--    PORT MAP (aclr, data, rdclk, rdreq, wrclk, wrreq, q, rdempty, rdusedw, wrfull, wrusedw);
82
--  END GENERATE;
83
 
84
END ARCHITECTURE;

powered by: WebSVN 2.1.0

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