entity fifo is
generic (
WIDTH : integer := 8;
DEPTH : integer := 8
);
port (
clk : in std_logic;
reset : in std_logic;
enq : in std_logic;
deq : in std_logic;
data_in: in std_logic_vector(WIDTH-1 downto 0);
data_out: out std_logic_vector(WIDTH-1 downto 0);
full : out std_logic;
empty : out std_logic
);
end entity fifo;
... -- 这里是FIFO缓冲区的VHDL实现