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

Subversion Repositories astron_fifo

[/] [astron_fifo/] [trunk/] [common_fifo_dc.vhd] - Diff between revs 3 and 4

Show entire file | Details | Blame | View Log

Rev 3 Rev 4
Line 18... Line 18...
--
--
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
 
 
-- Purpose: Dual clock FIFO
-- Purpose: Dual clock FIFO
 
 
LIBRARY IEEE, common_pkg_lib, common_components_lib, technology_lib, tech_fifo_lib;
LIBRARY IEEE, common_pkg_lib, common_components_lib;
USE IEEE.STD_LOGIC_1164.ALL;
USE IEEE.STD_LOGIC_1164.ALL;
USE common_pkg_lib.common_pkg.ALL;
USE common_pkg_lib.common_pkg.ALL;
USE technology_lib.technology_select_pkg.ALL;
--USE technology_lib.technology_select_pkg.ALL;
 
 
ENTITY common_fifo_dc IS
ENTITY common_fifo_dc IS
  GENERIC (
  GENERIC (
    g_technology  : NATURAL := c_tech_select_default;
    g_technology  : NATURAL := 0; --c_tech_select_default;
    g_note_is_ful : BOOLEAN := TRUE;   -- when TRUE report NOTE when FIFO goes full, fifo overflow is always reported as FAILURE
    g_note_is_ful : BOOLEAN := TRUE;   -- when TRUE report NOTE when FIFO goes full, fifo overflow is always reported as FAILURE
    g_fail_rd_emp : BOOLEAN := FALSE;  -- when TRUE report FAILURE when read from an empty FIFO
    g_fail_rd_emp : BOOLEAN := FALSE;  -- when TRUE report FAILURE when read from an empty FIFO
    g_dat_w       : NATURAL := 36;
    g_dat_w       : NATURAL := 36;
    g_nof_words   : NATURAL := 256   -- 36 * 256 = 1 M9K
    g_nof_words   : NATURAL := 256   -- 36 * 256 = 1 M9K
  );
  );
Line 112... Line 112...
    IF rising_edge(rd_clk) THEN
    IF rising_edge(rd_clk) THEN
      rd_val <= nxt_rd_val;
      rd_val <= nxt_rd_val;
    END IF;
    END IF;
  END PROCESS;
  END PROCESS;
 
 
  u_fifo : ENTITY tech_fifo_lib.tech_fifo_dc
  u_fifo : ENTITY work.tech_fifo_dc
  GENERIC MAP (
  GENERIC MAP (
    g_technology => g_technology,
    g_technology => g_technology,
    g_dat_w      => g_dat_w,
    g_dat_w      => g_dat_w,
    g_nof_words  => c_nof_words
    g_nof_words  => c_nof_words
  )
  )

powered by: WebSVN 2.1.0

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