Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ----------------------------------------------------------------------------------
- -- Company:
- -- Engineer: Nabil Sayegh
- --
- -- Create Date: 12:11:03 08/07/2009
- -- Design Name:
- -- Module Name: fifo_fwft - Behavioral
- -- Project Name:
- -- Target Devices:
- -- Tool versions:
- -- Description:
- --
- -- Dependencies:
- --
- -- Revision:
- -- Revision 0.01 - File Created
- -- Additional Comments:
- --
- ----------------------------------------------------------------------------------
- library ieee;
- use ieee.std_logic_1164.all;
- use ieee.numeric_std.all;
- entity fifo_fwft is
- generic
- (
- addr_width : Integer := 8;
- data_width : Integer := 8
- );
- port
- (
- clock : IN std_logic;
- reset : IN std_logic;
- wren : IN std_logic;
- rdack : IN std_logic;
- din : IN std_logic_vector(data_width-1 downto 0);
- dout : OUT std_logic_vector(data_width-1 downto 0);
- empty : OUT std_logic;
- almost_full : OUT std_logic
- );
- end entity fifo_fwft;
- architecture Behavioral of fifo_fwft is
- signal rden : std_logic;
- signal flag : std_logic;
- begin
- Inst_fifo: entity work.fifo_simple
- generic MAP
- (
- addr_width => addr_width,
- data_width => data_width
- )
- port map
- (
- clock => clock,
- reset => reset,
- wren => wren,
- rden => rden,
- din => din,
- dout => dout,
- empty => empty,
- almost_full => almost_full
- );
- rden <= (not flag and not empty) or rdack;
- process (clock, reset)
- begin
- if rising_edge(clock) then
- flag <= (flag and not rdack) or (not empty);
- end if;
- end process;
- end architecture Behavioral;
- ERROR:HDLParsers:1411 - "C:/Dokumente und Einstellungen/All Users/Dokumente/ssp/trunk/fifo_fwft.vhd" Line 67. Parameter empty of mode out can not be associated with a formal parameter of mode in.
- ERROR:HDLParsers:1411 - "C:/Dokumente und Einstellungen/All Users/Dokumente/ssp/trunk/fifo_fwft.vhd" Line 71. Parameter empty of mode out can not be associated with a formal parameter of mode in.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement