Debian Codegraph @

hdl/fpga/ip/nuand/synthesis/async_fifo.vhd

raw
1 -- Copyright (c) 2013 Nuand LLC
2 --
3 -- Permission is hereby granted, free of charge, to any person obtaining a copy
4 -- of this software and associated documentation files (the "Software"), to deal
5 -- in the Software without restriction, including without limitation the rights
6 -- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 -- copies of the Software, and to permit persons to whom the Software is
8 -- furnished to do so, subject to the following conditions:
9 --
10 -- The above copyright notice and this permission notice shall be included in
11 -- all copies or substantial portions of the Software.
12 --
13 -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 -- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 -- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 -- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 -- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 -- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 -- THE SOFTWARE.
20 library ieee ;
21 use ieee.std_logic_1164.all ;
22 use ieee.numeric_std.all ;
23
24 entity async_fifo is
25 port (
26 -- Global clear
27 clear : in std_logic ;
28
29 -- Write side
30 w_clock : in std_logic ;
31 w_enable : in std_logic ;
32 w_data : in std_logic_vector(7 downto 0) ;
33 w_empty : out std_logic ;
34 w_full : out std_logic ;
35
36 -- Read side
37 r_clock : in std_logic ;
38 r_enable : in std_logic ;
39 r_data : out std_logic_vector(7 downto 0) ;
40 r_empty : out std_logic ;
41 r_full : out std_logic
42 ) ;
43 end entity ; -- async_fifo
44
45 architecture arch of async_fifo is
46
47 -- Clear signals for their respective sides
48 signal r_clear : std_logic ;
49 signal w_clear : std_logic ;
50
51 type status_t is record
52 address : natural range 0 to 1023 ;
53 count : natural range 0 to 1023 ;
54 end record ;
55
56 begin
57
58 end architecture ; -- arch