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 4

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 4 danv
LIBRARY ieee, common_pkg_lib;
22 2 danv
USE ieee.std_logic_1164.all;
23
USE work.tech_fifo_component_pkg.ALL;
24 4 danv
USE common_pkg_lib.common_pkg.ALL;
25 2 danv
 
26 4 danv
--USE technology_lib.technology_pkg.ALL;
27
--USE technology_lib.technology_select_pkg.ALL;
28
 
29 2 danv
-- Declare IP libraries to ensure default binding in simulation. The IP library clause is ignored by synthesis.
30 4 danv
--LIBRARY ip_stratixiv_fifo_lib;
31 2 danv
--LIBRARY ip_arria10_fifo_lib;
32
--LIBRARY ip_arria10_e3sge3_fifo_lib;
33
--LIBRARY ip_arria10_e1sg_fifo_lib;
34
 
35
ENTITY tech_fifo_sc IS
36
  GENERIC (
37 4 danv
    g_technology : NATURAL := 0; --c_tech_select_default;
38 2 danv
    g_use_eab    : STRING := "ON";
39
    g_dat_w      : NATURAL;
40
    g_nof_words  : NATURAL
41
  );
42
  PORT (
43
    aclr  : IN STD_LOGIC;
44
    clock : IN STD_LOGIC;
45
    data  : IN STD_LOGIC_VECTOR (g_dat_w-1 DOWNTO 0);
46
    rdreq : IN STD_LOGIC;
47
    wrreq : IN STD_LOGIC;
48
    empty : OUT STD_LOGIC;
49
    full  : OUT STD_LOGIC;
50
    q     : OUT STD_LOGIC_VECTOR (g_dat_w-1 DOWNTO 0);
51 4 danv
    usedw : OUT STD_LOGIC_VECTOR (ceil_log2(g_nof_words)-1 DOWNTO 0)
52 2 danv
  );
53
END tech_fifo_sc;
54
 
55
 
56
ARCHITECTURE str OF tech_fifo_sc IS
57
 
58
BEGIN
59
 
60 4 danv
  gen_ip_stratixiv : IF g_technology=0 GENERATE
61 2 danv
    u0 : ip_stratixiv_fifo_sc
62
    GENERIC MAP (g_use_eab, g_dat_w, g_nof_words)
63
    PORT MAP (aclr, clock, data, rdreq, wrreq, empty, full, q, usedw);
64
  END GENERATE;
65
 
66
--  gen_ip_arria10 : IF g_technology=c_tech_arria10 GENERATE
67
--    u0 : ip_arria10_fifo_sc
68
--    GENERIC MAP (g_use_eab, g_dat_w, g_nof_words)
69
--    PORT MAP (aclr, clock, data, rdreq, wrreq, empty, full, q, usedw);
70
--  END GENERATE;
71
--
72
--  gen_ip_arria10_e3sge3 : IF g_technology=c_tech_arria10_e3sge3 GENERATE
73
--    u0 : ip_arria10_e3sge3_fifo_sc
74
--    GENERIC MAP (g_use_eab, g_dat_w, g_nof_words)
75
--    PORT MAP (aclr, clock, data, rdreq, wrreq, empty, full, q, usedw);
76
--  END GENERATE;
77
--
78
--  gen_ip_arria10_e1sg : IF g_technology=c_tech_arria10_e1sg GENERATE
79
--    u0 : ip_arria10_e1sg_fifo_sc
80
--    GENERIC MAP (g_use_eab, g_dat_w, g_nof_words)
81
--    PORT MAP (aclr, clock, data, rdreq, wrreq, empty, full, q, usedw);
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.