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

Subversion Repositories gecko3

[/] [gecko3/] [trunk/] [GECKO3COM/] [gecko3com-ip/] [core/] [fifo_receive.vhd] - Blame information for rev 28

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

Line No. Rev Author Line
1 22 nussgipfel
--  GECKO3COM IP Core
2
--
3
--  Copyright (C) 2009 by
4
--   ___    ___   _   _
5
--  (  _ \ (  __)( ) ( )
6
--  | (_) )| (   | |_| |   Bern University of Applied Sciences
7
--  |  _ < |  _) |  _  |   School of Engineering and
8
--  | (_) )| |   | | | |   Information Technology
9
--  (____/ (_)   (_) (_)
10
--
11
--  This program is free software: you can redistribute it and/or modify
12
--  it under the terms of the GNU General Public License as published by
13
--  the Free Software Foundation, either version 3 of the License, or
14
--  (at your option) any later version.
15
--
16
--  This program is distributed in the hope that it will be useful,
17
--  but WITHOUT ANY WARRANTY; without even the implied warranty of
18
--  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19
--  GNU General Public License for more details. 
20
--  You should have received a copy of the GNU General Public License
21
--  along with this program.  If not, see <http://www.gnu.org/licenses/>.
22
--
23
--  URL to the project description: 
24
--    http://labs.ti.bfh.ch/gecko/wiki/systems/gecko3com/start
25
----------------------------------------------------------------------------------
26
--
27
--  Author:  Christoph Zimmermann
28
--  Date of creation: 17. December 2009
29
--  Description:
30 24 nussgipfel
--      This is a wrapper for a FIFO that was generated with the Xilinx
31
--      Coregenerator to hide the vendor specific stuff and match our naming
32
--      conventions.
33 22 nussgipfel
--
34
--  Target Devices:     Xilinx FPGA's due to use of Coregenerator IP cores
35
--  Tool versions:      11.1
36
--  Dependencies:
37
--
38
----------------------------------------------------------------------------------
39
 
40
library ieee;
41
use ieee.std_logic_1164.all;
42
 
43
library UNISIM;
44
use UNISIM.vcomponents.all;
45
 
46
library UNIMACRO;
47
use UNIMACRO.vcomponents.all;
48
 
49
library work;
50
use work.GECKO3COM_defines.all;
51
 
52
entity receive_fifo is
53
  generic (
54 24 nussgipfel
    BUSWIDTH : integer := 32);          -- vector size of the FIFO databusses
55 22 nussgipfel
  port (
56
    i_din    : in  std_logic_vector(SIZE_DBUS_GPIF-1 downto 0);
57 24 nussgipfel
    i_clk    : in  std_logic;
58 22 nussgipfel
    i_rd_en  : in  std_logic;
59
    i_rst    : in  std_logic;
60
    i_wr_en  : in  std_logic;
61
    o_dout   : out std_logic_vector(BUSWIDTH-1 downto 0);
62
    o_empty  : out std_logic;
63
    o_full   : out std_logic);
64
end receive_fifo;
65
 
66
architecture wrapper of receive_fifo is
67
 
68
  -----------------------------------------------------------------------------
69
  -- COMPONENTS
70
  -----------------------------------------------------------------------------
71
 
72
  component coregenerator_fifo_receive
73
    port (
74
      din    : in  std_logic_vector(SIZE_DBUS_GPIF-1 downto 0);
75
      rd_clk : in  std_logic;
76
      rd_en  : in  std_logic;
77
      rst    : in  std_logic;
78
      wr_clk : in  std_logic;
79
      wr_en  : in  std_logic;
80 24 nussgipfel
      dout   : out std_logic_vector(31 downto 0);
81 22 nussgipfel
      empty  : out std_logic;
82
      full   : out std_logic);
83
  end component;
84
 
85
  -- Synplicity black box declaration
86
  attribute syn_black_box                               : boolean;
87
  attribute syn_black_box of coregenerator_fifo_receive : component is true;
88
  attribute box_type of coregenerator_fifo_receive      : component is "black_box";
89
 
90
begin
91
 
92
  -----------------------------------------------------------------------------
93
  -- Port map
94
  -----------------------------------------------------------------------------
95
 
96
  FIFO : coregenerator_fifo_receive
97
    port map (
98
      din    => i_din,
99
      rd_clk => i_clk,
100
      rd_en  => i_rd_en,
101
      rst    => i_rst,
102
      wr_clk => i_clk ,
103
      wr_en  => i_wr_en,
104
      dout   => o_dout,
105
      empty  => o_empty,
106
      full   => o_full
107
      );
108
 
109
end wrapper;

powered by: WebSVN 2.1.0

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