Skip to content
Snippets Groups Projects
Select Git revision
  • l2ss-2062-test6
  • master default protected
  • refactor-control-power-properties
  • set_hba_element_power
  • L2SS-2199-apply-dab-to-xy
  • stop-using-mesh-gateway
  • test-pytango-10.0.3
  • revert-cs032-ccd-ip
  • deploy-components-parallel
  • fix-chrony-exporter
  • L2SS-2407-swap-iers-caltable-monitoring-port
  • L2SS-2357-fix-ruff
  • sync-up-with-meta-pypcc
  • stabilise-landing-page
  • all-stations-lofar2
  • v0.39.7-backports
  • Move-sdptr-to-v1.5.0
  • fix-build-ubuntu
  • tokens-in-env-files
  • fix-build
  • L2SS-2214-deploy-cdb
  • v0.52.8 protected
  • v0.52.7 protected
  • v0.55.5-r2 protected
  • v0.52.8-rc1 protected
  • v0.55.5 protected
  • v0.55.4 protected
  • 0.55.2.dev0
  • 0.55.1.dev0
  • 0.55.0.dev0
  • v0.54.0 protected
  • 0.53.2.dev0
  • 0.53.1.dev0
  • v0.52.3-r2 protected
  • remove-snmp-client
  • v0.52.3 protected
  • v0.52.3dev0 protected
  • 0.53.1dev0
  • v0.52.2-rc3 protected
  • v0.52.2-rc2 protected
  • v0.52.2-rc1 protected
41 results

NOTICE

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    tech_fifo_dc.vhd 3.75 KiB
    -------------------------------------------------------------------------------
    --
    -- Copyright (C) 2014
    -- ASTRON (Netherlands Institute for Radio Astronomy) <http://www.astron.nl/>
    -- P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
    --
    -- This program is free software: you can redistribute it and/or modify
    -- it under the terms of the GNU General Public License as published by
    -- the Free Software Foundation, either version 3 of the License, or
    -- (at your option) any later version.
    --
    -- This program is distributed in the hope that it will be useful,
    -- but WITHOUT ANY WARRANTY; without even the implied warranty of
    -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    -- GNU General Public License for more details.
    --
    -- You should have received a copy of the GNU General Public License
    -- along with this program.  If not, see <http://www.gnu.org/licenses/>.
    --
    -------------------------------------------------------------------------------
    
    LIBRARY ieee, technology_lib;
    USE ieee.std_logic_1164.all;
    USE work.tech_fifo_component_pkg.ALL;
    USE technology_lib.technology_pkg.ALL;
    USE technology_lib.technology_select_pkg.ALL;
    
    -- Declare IP libraries to ensure default binding in simulation. The IP library clause is ignored by synthesis.
    LIBRARY ip_stratixiv_fifo_lib;
    LIBRARY ip_arria10_fifo_lib;
    LIBRARY ip_arria10_e3sge3_fifo_lib;
    LIBRARY ip_arria10_e1sg_fifo_lib;
    LIBRARY ip_arria10_e2sg_fifo_lib;
    LIBRARY ip_ultrascale_fifo_lib;
    
    ENTITY tech_fifo_dc IS
      GENERIC (
        g_technology : NATURAL := c_tech_select_default;
        g_use_eab    : STRING := "ON";
        g_dat_w      : NATURAL;
        g_nof_words  : NATURAL
      );
      PORT (
        aclr    : IN STD_LOGIC  := '0';
        data    : IN STD_LOGIC_VECTOR (g_dat_w-1 DOWNTO 0);
        rdclk   : IN STD_LOGIC;
        rdreq   : IN STD_LOGIC;
        wrclk   : IN STD_LOGIC;
        wrreq   : IN STD_LOGIC;
        q       : OUT STD_LOGIC_VECTOR (g_dat_w-1 DOWNTO 0);
        rdempty : OUT STD_LOGIC;
        rdusedw : OUT STD_LOGIC_VECTOR (tech_ceil_log2(g_nof_words)-1 DOWNTO 0);
        wrfull  : OUT STD_LOGIC;
        wrusedw : OUT STD_LOGIC_VECTOR (tech_ceil_log2(g_nof_words)-1 DOWNTO 0)
      );
    END tech_fifo_dc;
    
    
    ARCHITECTURE str OF tech_fifo_dc IS
    
    BEGIN
    
      gen_ip_stratixiv : IF g_technology=c_tech_stratixiv GENERATE
        u0 : ip_stratixiv_fifo_dc
        GENERIC MAP (g_dat_w, g_nof_words)
        PORT MAP (aclr, data, rdclk, rdreq, wrclk, wrreq, q, rdempty, rdusedw, wrfull, wrusedw);
      END GENERATE;
       
      gen_ip_arria10 : IF g_technology=c_tech_arria10_proto GENERATE
        u0 : ip_arria10_fifo_dc
        GENERIC MAP (g_use_eab, g_dat_w, g_nof_words)
        PORT MAP (aclr, data, rdclk, rdreq, wrclk, wrreq, q, rdempty, rdusedw, wrfull, wrusedw);
      END GENERATE;
    
      gen_ip_arria10_e3sge3 : IF g_technology=c_tech_arria10_e3sge3 GENERATE
        u0 : ip_arria10_e3sge3_fifo_dc
        GENERIC MAP (g_use_eab, g_dat_w, g_nof_words)
        PORT MAP (aclr, data, rdclk, rdreq, wrclk, wrreq, q, rdempty, rdusedw, wrfull, wrusedw);
      END GENERATE;
      
      gen_ip_arria10_e1sg : IF g_technology=c_tech_arria10_e1sg GENERATE
        u0 : ip_arria10_e1sg_fifo_dc
        GENERIC MAP (g_use_eab, g_dat_w, g_nof_words)
        PORT MAP (aclr, data, rdclk, rdreq, wrclk, wrreq, q, rdempty, rdusedw, wrfull, wrusedw);
      END GENERATE;
    
      gen_ip_arria10_e2sg : IF g_technology=c_tech_arria10_e2sg GENERATE
        u0 : ip_arria10_e2sg_fifo_dc
        GENERIC MAP (g_use_eab, g_dat_w, g_nof_words)
        PORT MAP (aclr, data, rdclk, rdreq, wrclk, wrreq, q, rdempty, rdusedw, wrfull, wrusedw);
      END GENERATE;
    
      gen_ip_ultrascale : IF g_technology=c_tech_ultrascale GENERATE
        u0 : ip_ultrascale_fifo_dc
        GENERIC MAP (g_dat_w, g_nof_words)
        PORT MAP (aclr, data, rdclk, rdreq, wrclk, wrreq, q, rdempty, rdusedw, wrfull, wrusedw);
      END GENERATE;
    
    END ARCHITECTURE;