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

Subversion Repositories astron_fifo

[/] [astron_fifo/] [trunk/] [tech_fifo_sc.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_sc 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;
42
    clock : IN STD_LOGIC;
43
    data  : IN STD_LOGIC_VECTOR (g_dat_w-1 DOWNTO 0);
44
    rdreq : IN STD_LOGIC;
45
    wrreq : IN STD_LOGIC;
46
    empty : OUT STD_LOGIC;
47
    full  : OUT STD_LOGIC;
48
    q     : OUT STD_LOGIC_VECTOR (g_dat_w-1 DOWNTO 0);
49
    usedw : OUT STD_LOGIC_VECTOR (tech_ceil_log2(g_nof_words)-1 DOWNTO 0)
50
  );
51
END tech_fifo_sc;
52
 
53
 
54
ARCHITECTURE str OF tech_fifo_sc IS
55
 
56
BEGIN
57
 
58
  gen_ip_stratixiv : IF g_technology=c_tech_stratixiv GENERATE
59
    u0 : ip_stratixiv_fifo_sc
60
    GENERIC MAP (g_use_eab, g_dat_w, g_nof_words)
61
    PORT MAP (aclr, clock, data, rdreq, wrreq, empty, full, q, usedw);
62
  END GENERATE;
63
 
64
--  gen_ip_arria10 : IF g_technology=c_tech_arria10 GENERATE
65
--    u0 : ip_arria10_fifo_sc
66
--    GENERIC MAP (g_use_eab, g_dat_w, g_nof_words)
67
--    PORT MAP (aclr, clock, data, rdreq, wrreq, empty, full, q, usedw);
68
--  END GENERATE;
69
--
70
--  gen_ip_arria10_e3sge3 : IF g_technology=c_tech_arria10_e3sge3 GENERATE
71
--    u0 : ip_arria10_e3sge3_fifo_sc
72
--    GENERIC MAP (g_use_eab, g_dat_w, g_nof_words)
73
--    PORT MAP (aclr, clock, data, rdreq, wrreq, empty, full, q, usedw);
74
--  END GENERATE;
75
--
76
--  gen_ip_arria10_e1sg : IF g_technology=c_tech_arria10_e1sg GENERATE
77
--    u0 : ip_arria10_e1sg_fifo_sc
78
--    GENERIC MAP (g_use_eab, g_dat_w, g_nof_words)
79
--    PORT MAP (aclr, clock, data, rdreq, wrreq, empty, full, q, usedw);
80
--  END GENERATE;
81
 
82
END ARCHITECTURE;

powered by: WebSVN 2.1.0

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