content
stringlengths
1
1.04M
package FIFO_PKG is procedure AVERAGE_SAMPLES; procedure AVERAGE_SAMPLES ( constant a : in integer; signal b : in std_logic; variable c : in std_logic_vector(3 downto 0); signal d : out std_logic); -- Violations below this line procedure AVERAGE_SAMPLES; procedure AVERAGE_SAMPLES ( constant a : in integer; signal b : in std_logic; variable c : in std_logic_vector(3 downto 0); signal d : out std_logic); end package FIFO_PKG; package body FIFO_PKG is procedure AVERAGE_SAMPLES ( constant a : in integer; signal b : in std_logic; variable c : in std_logic_vector(3 downto 0); signal d : out std_logic) is variable sig1 : std_logic; file file1 : something; constant var1 : integer; alias alias1 is name; begin end procedure AVERAGE_SAMPLES; procedure AVERAGE_SAMPLES (constant x : in integer; constant a : in integer; signal b : in std_logic; variable c : in std_logic_vector(3 downto 0); signal d : out std_logic) is variable sig1 : std_logic; file file1 : something; constant var1 : integer; alias alias1 is name; begin end procedure AVERAGE_SAMPLES; -- Variations on end of procedure parameter and is keyword procedure AVERAGE_SAMPLES ( constant a : in integer; signal b : in std_logic; variable c : in std_logic_vector(3 downto 0); signal d : out std_logic) is variable sig1 : std_logic; file file1 : something; constant var1 : integer; begin end procedure AVERAGE_SAMPLES; procedure AVERAGE_SAMPLES ( constant a : in integer; signal b : in std_logic; variable c : in std_logic_vector(3 downto 0); signal d : out std_logic ) is variable sig1 : std_logic; file file1 : something; constant var1 : integer; begin end procedure AVERAGE_SAMPLES; procedure AVERAGE_SAMPLES ( constant a : in integer; signal b : in std_logic; variable c : in std_logic_vector(3 downto 0); signal d : out std_logic ) is variable sig1 : std_logic; file file1 : something; constant var1 : integer; begin end procedure AVERAGE_SAMPLES; end package body FIFO_PKG; architecture RTL of ENT is procedure AVERAGE_SAMPLES ( constant a : in integer; signal b : in std_logic; variable c : in std_logic_vector(3 downto 0); signal d : out std_logic) is variable sig1 : std_logic; file file1 : something; constant var1 : integer; begin end procedure AVERAGE_SAMPLES; procedure AVERAGE_SAMPLES (constant x : in integer; constant a : in integer; signal b : in std_logic; variable c : in std_logic_vector(3 downto 0); signal d : out std_logic) is variable sig1 : std_logic; file file1 : something; constant var1 : integer; begin end procedure AVERAGE_SAMPLES; function func_1 (a : integer) return integer is constant c : integer; variable v : integer; file f : something; begin end function func1; begin TEST_PROCESS : process procedure AVERAGE_SAMPLES ( constant a : in integer; signal b : in std_logic; variable c : in std_logic_vector(3 downto 0); signal d : out std_logic) is variable sig1 : std_logic; file file1 : something; constant var1 : integer; begin end procedure AVERAGE_SAMPLES; begin end process TEST_PROCESS; TEST_PROCESS : process procedure AVERAGE_SAMPLES (constant x : in integer; constant a : in integer; signal b : in std_logic; variable c : in std_logic_vector(3 downto 0); signal d : out std_logic) is variable sig1 : std_logic; file file1 : something; constant var1 : integer; begin end procedure AVERAGE_SAMPLES; begin end process TEST_PROCESS; end architecture RTL;
-- Copyright (C) 2001 Bill Billowitch. -- Some of the work to develop this test suite was done with Air Force -- support. The Air Force and Bill Billowitch assume no -- responsibilities for this software. -- This file is part of VESTs (Vhdl tESTs). -- VESTs 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 2 of the License, or (at -- your option) any later version. -- VESTs 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 VESTs; if not, write to the Free Software Foundation, -- Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -- --------------------------------------------------------------------- -- -- $Id: tc2753.vhd,v 1.2 2001-10-26 16:30:22 paw Exp $ -- $Revision: 1.2 $ -- -- --------------------------------------------------------------------- ENTITY c13s07b00x00p03n01i02753ent IS END c13s07b00x00p03n01i02753ent; ARCHITECTURE c13s07b00x00p03n01i02753arch OF c13s07b00x00p03n01i02753ent IS BEGIN TESTING: PROCESS variable bit_str : bit_vector (1 to 8) := o""; BEGIN assert FALSE report "***FAILED TEST: c13s07b00x00p03n01i02753 - Bit string must contain at least one digit.(Test for base specifier of O)" severity ERROR; wait; END PROCESS TESTING; END c13s07b00x00p03n01i02753arch;
-- Copyright (C) 2001 Bill Billowitch. -- Some of the work to develop this test suite was done with Air Force -- support. The Air Force and Bill Billowitch assume no -- responsibilities for this software. -- This file is part of VESTs (Vhdl tESTs). -- VESTs 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 2 of the License, or (at -- your option) any later version. -- VESTs 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 VESTs; if not, write to the Free Software Foundation, -- Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -- --------------------------------------------------------------------- -- -- $Id: tc2753.vhd,v 1.2 2001-10-26 16:30:22 paw Exp $ -- $Revision: 1.2 $ -- -- --------------------------------------------------------------------- ENTITY c13s07b00x00p03n01i02753ent IS END c13s07b00x00p03n01i02753ent; ARCHITECTURE c13s07b00x00p03n01i02753arch OF c13s07b00x00p03n01i02753ent IS BEGIN TESTING: PROCESS variable bit_str : bit_vector (1 to 8) := o""; BEGIN assert FALSE report "***FAILED TEST: c13s07b00x00p03n01i02753 - Bit string must contain at least one digit.(Test for base specifier of O)" severity ERROR; wait; END PROCESS TESTING; END c13s07b00x00p03n01i02753arch;
-- Copyright (C) 2001 Bill Billowitch. -- Some of the work to develop this test suite was done with Air Force -- support. The Air Force and Bill Billowitch assume no -- responsibilities for this software. -- This file is part of VESTs (Vhdl tESTs). -- VESTs 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 2 of the License, or (at -- your option) any later version. -- VESTs 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 VESTs; if not, write to the Free Software Foundation, -- Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -- --------------------------------------------------------------------- -- -- $Id: tc2753.vhd,v 1.2 2001-10-26 16:30:22 paw Exp $ -- $Revision: 1.2 $ -- -- --------------------------------------------------------------------- ENTITY c13s07b00x00p03n01i02753ent IS END c13s07b00x00p03n01i02753ent; ARCHITECTURE c13s07b00x00p03n01i02753arch OF c13s07b00x00p03n01i02753ent IS BEGIN TESTING: PROCESS variable bit_str : bit_vector (1 to 8) := o""; BEGIN assert FALSE report "***FAILED TEST: c13s07b00x00p03n01i02753 - Bit string must contain at least one digit.(Test for base specifier of O)" severity ERROR; wait; END PROCESS TESTING; END c13s07b00x00p03n01i02753arch;
-- Copyright (C) 1996 Morgan Kaufmann Publishers, Inc -- This file is part of VESTs (Vhdl tESTs). -- VESTs 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 2 of the License, or (at -- your option) any later version. -- VESTs 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 VESTs; if not, write to the Free Software Foundation, -- Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -- --------------------------------------------------------------------- -- -- $Id: ch_19_ds.vhd,v 1.1.1.1 2001-08-22 18:20:48 paw Exp $ -- $Revision: 1.1.1.1 $ -- -- --------------------------------------------------------------------- entity disk_system is end entity disk_system;
-- Copyright (C) 1996 Morgan Kaufmann Publishers, Inc -- This file is part of VESTs (Vhdl tESTs). -- VESTs 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 2 of the License, or (at -- your option) any later version. -- VESTs 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 VESTs; if not, write to the Free Software Foundation, -- Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -- --------------------------------------------------------------------- -- -- $Id: ch_19_ds.vhd,v 1.1.1.1 2001-08-22 18:20:48 paw Exp $ -- $Revision: 1.1.1.1 $ -- -- --------------------------------------------------------------------- entity disk_system is end entity disk_system;
-- Copyright (C) 1996 Morgan Kaufmann Publishers, Inc -- This file is part of VESTs (Vhdl tESTs). -- VESTs 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 2 of the License, or (at -- your option) any later version. -- VESTs 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 VESTs; if not, write to the Free Software Foundation, -- Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -- --------------------------------------------------------------------- -- -- $Id: ch_19_ds.vhd,v 1.1.1.1 2001-08-22 18:20:48 paw Exp $ -- $Revision: 1.1.1.1 $ -- -- --------------------------------------------------------------------- entity disk_system is end entity disk_system;
-- ============================================================== -- File generated by Vivado(TM) HLS - High-Level Synthesis from C, C++ and SystemC -- Version: 2017.3 -- Copyright (C) 1986-2017 Xilinx, Inc. All Rights Reserved. -- -- ============================================================== Library ieee; use ieee.std_logic_1164.all; entity convolve_kernel_fbkb is generic ( ID : integer := 1; NUM_STAGE : integer := 9; din0_WIDTH : integer := 32; din1_WIDTH : integer := 32; dout_WIDTH : integer := 32 ); port ( clk : in std_logic; reset : in std_logic; ce : in std_logic; din0 : in std_logic_vector(din0_WIDTH-1 downto 0); din1 : in std_logic_vector(din1_WIDTH-1 downto 0); dout : out std_logic_vector(dout_WIDTH-1 downto 0) ); end entity; architecture arch of convolve_kernel_fbkb is --------------------- Component --------------------- component convolve_kernel_ap_fadd_7_full_dsp_32 is port ( aclk : in std_logic; aclken : in std_logic; s_axis_a_tvalid : in std_logic; s_axis_a_tdata : in std_logic_vector(31 downto 0); s_axis_b_tvalid : in std_logic; s_axis_b_tdata : in std_logic_vector(31 downto 0); m_axis_result_tvalid : out std_logic; m_axis_result_tdata : out std_logic_vector(31 downto 0) ); end component; --------------------- Local signal ------------------ signal aclk : std_logic; signal aclken : std_logic; signal a_tvalid : std_logic; signal a_tdata : std_logic_vector(31 downto 0); signal b_tvalid : std_logic; signal b_tdata : std_logic_vector(31 downto 0); signal r_tvalid : std_logic; signal r_tdata : std_logic_vector(31 downto 0); signal din0_buf1 : std_logic_vector(din0_WIDTH-1 downto 0); signal din1_buf1 : std_logic_vector(din1_WIDTH-1 downto 0); signal ce_r : std_logic; signal dout_i : std_logic_vector(dout_WIDTH-1 downto 0); signal dout_r : std_logic_vector(dout_WIDTH-1 downto 0); begin --------------------- Instantiation ----------------- convolve_kernel_ap_fadd_7_full_dsp_32_u : component convolve_kernel_ap_fadd_7_full_dsp_32 port map ( aclk => aclk, aclken => aclken, s_axis_a_tvalid => a_tvalid, s_axis_a_tdata => a_tdata, s_axis_b_tvalid => b_tvalid, s_axis_b_tdata => b_tdata, m_axis_result_tvalid => r_tvalid, m_axis_result_tdata => r_tdata ); --------------------- Assignment -------------------- aclk <= clk; aclken <= ce_r; a_tvalid <= '1'; a_tdata <= din0_buf1; b_tvalid <= '1'; b_tdata <= din1_buf1; dout_i <= r_tdata; --------------------- Input buffer ------------------ process (clk) begin if clk'event and clk = '1' then if ce = '1' then din0_buf1 <= din0; din1_buf1 <= din1; end if; end if; end process; process (clk) begin if clk'event and clk = '1' then ce_r <= ce; end if; end process; process (clk) begin if clk'event and clk = '1' then if ce_r = '1' then dout_r <= dout_i; end if; end if; end process; dout <= dout_i when ce_r = '1' else dout_r; end architecture;
-- ============================================================== -- File generated by Vivado(TM) HLS - High-Level Synthesis from C, C++ and SystemC -- Version: 2017.3 -- Copyright (C) 1986-2017 Xilinx, Inc. All Rights Reserved. -- -- ============================================================== Library ieee; use ieee.std_logic_1164.all; entity convolve_kernel_fbkb is generic ( ID : integer := 1; NUM_STAGE : integer := 9; din0_WIDTH : integer := 32; din1_WIDTH : integer := 32; dout_WIDTH : integer := 32 ); port ( clk : in std_logic; reset : in std_logic; ce : in std_logic; din0 : in std_logic_vector(din0_WIDTH-1 downto 0); din1 : in std_logic_vector(din1_WIDTH-1 downto 0); dout : out std_logic_vector(dout_WIDTH-1 downto 0) ); end entity; architecture arch of convolve_kernel_fbkb is --------------------- Component --------------------- component convolve_kernel_ap_fadd_7_full_dsp_32 is port ( aclk : in std_logic; aclken : in std_logic; s_axis_a_tvalid : in std_logic; s_axis_a_tdata : in std_logic_vector(31 downto 0); s_axis_b_tvalid : in std_logic; s_axis_b_tdata : in std_logic_vector(31 downto 0); m_axis_result_tvalid : out std_logic; m_axis_result_tdata : out std_logic_vector(31 downto 0) ); end component; --------------------- Local signal ------------------ signal aclk : std_logic; signal aclken : std_logic; signal a_tvalid : std_logic; signal a_tdata : std_logic_vector(31 downto 0); signal b_tvalid : std_logic; signal b_tdata : std_logic_vector(31 downto 0); signal r_tvalid : std_logic; signal r_tdata : std_logic_vector(31 downto 0); signal din0_buf1 : std_logic_vector(din0_WIDTH-1 downto 0); signal din1_buf1 : std_logic_vector(din1_WIDTH-1 downto 0); signal ce_r : std_logic; signal dout_i : std_logic_vector(dout_WIDTH-1 downto 0); signal dout_r : std_logic_vector(dout_WIDTH-1 downto 0); begin --------------------- Instantiation ----------------- convolve_kernel_ap_fadd_7_full_dsp_32_u : component convolve_kernel_ap_fadd_7_full_dsp_32 port map ( aclk => aclk, aclken => aclken, s_axis_a_tvalid => a_tvalid, s_axis_a_tdata => a_tdata, s_axis_b_tvalid => b_tvalid, s_axis_b_tdata => b_tdata, m_axis_result_tvalid => r_tvalid, m_axis_result_tdata => r_tdata ); --------------------- Assignment -------------------- aclk <= clk; aclken <= ce_r; a_tvalid <= '1'; a_tdata <= din0_buf1; b_tvalid <= '1'; b_tdata <= din1_buf1; dout_i <= r_tdata; --------------------- Input buffer ------------------ process (clk) begin if clk'event and clk = '1' then if ce = '1' then din0_buf1 <= din0; din1_buf1 <= din1; end if; end if; end process; process (clk) begin if clk'event and clk = '1' then ce_r <= ce; end if; end process; process (clk) begin if clk'event and clk = '1' then if ce_r = '1' then dout_r <= dout_i; end if; end if; end process; dout <= dout_i when ce_r = '1' else dout_r; end architecture;
-- ============================================================== -- File generated by Vivado(TM) HLS - High-Level Synthesis from C, C++ and SystemC -- Version: 2017.3 -- Copyright (C) 1986-2017 Xilinx, Inc. All Rights Reserved. -- -- ============================================================== Library ieee; use ieee.std_logic_1164.all; entity convolve_kernel_fbkb is generic ( ID : integer := 1; NUM_STAGE : integer := 9; din0_WIDTH : integer := 32; din1_WIDTH : integer := 32; dout_WIDTH : integer := 32 ); port ( clk : in std_logic; reset : in std_logic; ce : in std_logic; din0 : in std_logic_vector(din0_WIDTH-1 downto 0); din1 : in std_logic_vector(din1_WIDTH-1 downto 0); dout : out std_logic_vector(dout_WIDTH-1 downto 0) ); end entity; architecture arch of convolve_kernel_fbkb is --------------------- Component --------------------- component convolve_kernel_ap_fadd_7_full_dsp_32 is port ( aclk : in std_logic; aclken : in std_logic; s_axis_a_tvalid : in std_logic; s_axis_a_tdata : in std_logic_vector(31 downto 0); s_axis_b_tvalid : in std_logic; s_axis_b_tdata : in std_logic_vector(31 downto 0); m_axis_result_tvalid : out std_logic; m_axis_result_tdata : out std_logic_vector(31 downto 0) ); end component; --------------------- Local signal ------------------ signal aclk : std_logic; signal aclken : std_logic; signal a_tvalid : std_logic; signal a_tdata : std_logic_vector(31 downto 0); signal b_tvalid : std_logic; signal b_tdata : std_logic_vector(31 downto 0); signal r_tvalid : std_logic; signal r_tdata : std_logic_vector(31 downto 0); signal din0_buf1 : std_logic_vector(din0_WIDTH-1 downto 0); signal din1_buf1 : std_logic_vector(din1_WIDTH-1 downto 0); signal ce_r : std_logic; signal dout_i : std_logic_vector(dout_WIDTH-1 downto 0); signal dout_r : std_logic_vector(dout_WIDTH-1 downto 0); begin --------------------- Instantiation ----------------- convolve_kernel_ap_fadd_7_full_dsp_32_u : component convolve_kernel_ap_fadd_7_full_dsp_32 port map ( aclk => aclk, aclken => aclken, s_axis_a_tvalid => a_tvalid, s_axis_a_tdata => a_tdata, s_axis_b_tvalid => b_tvalid, s_axis_b_tdata => b_tdata, m_axis_result_tvalid => r_tvalid, m_axis_result_tdata => r_tdata ); --------------------- Assignment -------------------- aclk <= clk; aclken <= ce_r; a_tvalid <= '1'; a_tdata <= din0_buf1; b_tvalid <= '1'; b_tdata <= din1_buf1; dout_i <= r_tdata; --------------------- Input buffer ------------------ process (clk) begin if clk'event and clk = '1' then if ce = '1' then din0_buf1 <= din0; din1_buf1 <= din1; end if; end if; end process; process (clk) begin if clk'event and clk = '1' then ce_r <= ce; end if; end process; process (clk) begin if clk'event and clk = '1' then if ce_r = '1' then dout_r <= dout_i; end if; end if; end process; dout <= dout_i when ce_r = '1' else dout_r; end architecture;
-- ============================================================== -- File generated by Vivado(TM) HLS - High-Level Synthesis from C, C++ and SystemC -- Version: 2017.3 -- Copyright (C) 1986-2017 Xilinx, Inc. All Rights Reserved. -- -- ============================================================== Library ieee; use ieee.std_logic_1164.all; entity convolve_kernel_fbkb is generic ( ID : integer := 1; NUM_STAGE : integer := 9; din0_WIDTH : integer := 32; din1_WIDTH : integer := 32; dout_WIDTH : integer := 32 ); port ( clk : in std_logic; reset : in std_logic; ce : in std_logic; din0 : in std_logic_vector(din0_WIDTH-1 downto 0); din1 : in std_logic_vector(din1_WIDTH-1 downto 0); dout : out std_logic_vector(dout_WIDTH-1 downto 0) ); end entity; architecture arch of convolve_kernel_fbkb is --------------------- Component --------------------- component convolve_kernel_ap_fadd_7_full_dsp_32 is port ( aclk : in std_logic; aclken : in std_logic; s_axis_a_tvalid : in std_logic; s_axis_a_tdata : in std_logic_vector(31 downto 0); s_axis_b_tvalid : in std_logic; s_axis_b_tdata : in std_logic_vector(31 downto 0); m_axis_result_tvalid : out std_logic; m_axis_result_tdata : out std_logic_vector(31 downto 0) ); end component; --------------------- Local signal ------------------ signal aclk : std_logic; signal aclken : std_logic; signal a_tvalid : std_logic; signal a_tdata : std_logic_vector(31 downto 0); signal b_tvalid : std_logic; signal b_tdata : std_logic_vector(31 downto 0); signal r_tvalid : std_logic; signal r_tdata : std_logic_vector(31 downto 0); signal din0_buf1 : std_logic_vector(din0_WIDTH-1 downto 0); signal din1_buf1 : std_logic_vector(din1_WIDTH-1 downto 0); signal ce_r : std_logic; signal dout_i : std_logic_vector(dout_WIDTH-1 downto 0); signal dout_r : std_logic_vector(dout_WIDTH-1 downto 0); begin --------------------- Instantiation ----------------- convolve_kernel_ap_fadd_7_full_dsp_32_u : component convolve_kernel_ap_fadd_7_full_dsp_32 port map ( aclk => aclk, aclken => aclken, s_axis_a_tvalid => a_tvalid, s_axis_a_tdata => a_tdata, s_axis_b_tvalid => b_tvalid, s_axis_b_tdata => b_tdata, m_axis_result_tvalid => r_tvalid, m_axis_result_tdata => r_tdata ); --------------------- Assignment -------------------- aclk <= clk; aclken <= ce_r; a_tvalid <= '1'; a_tdata <= din0_buf1; b_tvalid <= '1'; b_tdata <= din1_buf1; dout_i <= r_tdata; --------------------- Input buffer ------------------ process (clk) begin if clk'event and clk = '1' then if ce = '1' then din0_buf1 <= din0; din1_buf1 <= din1; end if; end if; end process; process (clk) begin if clk'event and clk = '1' then ce_r <= ce; end if; end process; process (clk) begin if clk'event and clk = '1' then if ce_r = '1' then dout_r <= dout_i; end if; end if; end process; dout <= dout_i when ce_r = '1' else dout_r; end architecture;
library ieee; use ieee.std_logic_1164.all; entity sequencer is generic ( seq : string ); port ( clk : in std_logic; data : out std_logic ); end entity sequencer; architecture rtl of sequencer is signal index : natural := seq'low; signal ch : character; function to_bit (a : in character) return std_logic is variable ret : std_logic; begin case a is when '0' | '_' => ret := '0'; when '1' | '-' => ret := '1'; when others => ret := 'X'; end case; return ret; end function to_bit; begin process (clk) is begin if rising_edge(clk) then if (index < seq'high) then index <= index + 1; end if; end if; end process; ch <= seq(index); data <= to_bit(ch); end architecture rtl; library ieee; use ieee.std_logic_1164.all; entity psl_next_event_a is end entity psl_next_event_a; architecture psl of psl_next_event_a is signal clk : std_logic := '0'; component sequencer is generic ( seq : string ); port ( clk : in std_logic; data : out std_logic ); end component sequencer; signal a, b, c : std_logic; begin -- 012345678901234 SEQ_A : sequencer generic map ("_-______________-____") port map (clk, a); SEQ_B : sequencer generic map ("--___--__----________") port map (clk, b); SEQ_C : sequencer generic map ("_____-___---_____----") port map (clk, c); -- All is sensitive to rising edge of clk default clock is rising_edge(clk); -- This assertion holds assert_NEXT_EVENT_a : assert always ((a and b) -> next_event_a(c)[1 to 4](b)); process begin for i in 1 to 2*20 loop wait for 1 ns; clk <= not clk; end loop; wait; end process; end architecture psl;
------------------------------------------------------------------------------ ---- ---- ---- Text Utils ---- ---- ---- ---- http://www.opencores.org/ ---- ---- ---- ---- Description: ---- ---- Utils to handle text. Used for the testbenches. ---- ---- ---- ---- To Do: ---- ---- - ---- ---- ---- ---- Author: ---- ---- - Øyvind Harboe, oyvind.harboe zylin.com ---- ---- ---- ------------------------------------------------------------------------------ ---- ---- ---- Copyright (c) 2008 Øyvind Harboe <oyvind.harboe zylin.com> ---- ---- ---- ---- Distributed under the BSD license ---- ---- ---- ------------------------------------------------------------------------------ ---- ---- ---- Design unit: txt_util (Package) ---- ---- File name: txt_util.vhdl ---- ---- Note: None ---- ---- Limitations: None known ---- ---- Errors: None known ---- ---- Library: zpu ---- ---- Dependencies: IEEE.std_logic_1164 ---- ---- IEEE.numeric_std ---- ---- std.textio ---- ---- Target FPGA: N/A ---- ---- Language: VHDL ---- ---- Wishbone: No ---- ---- Synthesis tools: Xilinx Release 9.2.03i - xst J.39 ---- ---- Simulation tools: GHDL [Sokcho edition] (0.2x) ---- ---- Text editor: SETEdit 0.5.x ---- ---- ---- ------------------------------------------------------------------------------ library IEEE; use IEEE.std_logic_1164.all; use IEEE.numeric_std.all; use std.textio.all; library zpu; package txt_util is -- prints a message to the screen procedure print(text: string); -- prints the message when active -- useful for debug switches procedure print(active: boolean; text: string); -- converts std_logic into a character function chr(sl: std_logic) return character; -- converts std_logic into a string (1 to 1) function str(sl: std_logic) return string; -- converts std_logic_vector into a string (binary base) function str(slv: std_logic_vector) return string; -- converts boolean into a string function str(b: boolean) return string; -- converts an integer into a single character -- (can also be used for hex conversion and other bases) function chr(int: integer) return character; -- converts integer into string using specified base function str(int: integer; base: integer) return string; -- converts integer to string, using base 10 function str(int: integer) return string; -- convert std_logic_vector into a string in hex format function hstr(slv: std_logic_vector) return string; function hstr(slv: unsigned) return string; -- functions to manipulate strings ----------------------------------- -- convert a character to upper case function to_upper(c: character) return character; -- convert a character to lower case function to_lower(c: character) return character; -- convert a string to upper case function to_upper(s: string) return string; -- convert a string to lower case function to_lower(s: string) return string; -- functions to convert strings into other formats -------------------------------------------------- -- converts a character into std_logic function to_std_logic(c: character) return std_logic; -- converts a string into std_logic_vector function to_std_logic_vector(s: string) return std_logic_vector; -- file I/O ----------- -- read variable length string from input file procedure str_read(file in_file: TEXT; res_string: out string); procedure str_write(file out_file: TEXT; new_string: in string); -- print string to a file and start new line procedure print(file out_file: TEXT; new_string: in string); -- print character to a file and start new line procedure print(file out_file: TEXT; char: in character); end package txt_util; package body txt_util is -- prints text to the screen procedure print(text: string) is variable msg_line: line; begin --synopsys translate off write(msg_line, text); writeline(output, msg_line); --synopsys translate on end procedure print; -- prints text to the screen when active procedure print(active: boolean; text: string) is begin if active then print(text); end if; end procedure print; -- converts std_logic into a character function chr(sl: std_logic) return character is variable c: character; begin case sl is when 'U' => c:= 'U'; when 'X' => c:= 'X'; when '0' => c:= '0'; when '1' => c:= '1'; when 'Z' => c:= 'Z'; when 'W' => c:= 'W'; when 'L' => c:= 'L'; when 'H' => c:= 'H'; when '-' => c:= '-'; end case; return c; end function chr; -- converts std_logic into a string (1 to 1) function str(sl: std_logic) return string is variable s: string(1 to 1); begin s(1):=chr(sl); return s; end function str; -- converts std_logic_vector into a string (binary base) -- (this also takes care of the fact that the range of -- a string is natural while a std_logic_vector may -- have an integer range) function str(slv: std_logic_vector) return string is variable result : string (1 to slv'length); variable r : integer; begin r:=1; for i in slv'range loop result(r) := chr(slv(i)); r:=r+1; end loop; return result; end function str; function str(b: boolean) return string is begin if b then return "true"; else return "false"; end if; end function str; -- converts an integer into a character -- for 0 to 9 the obvious mapping is used, higher -- values are mapped to the characters A-Z -- (this is usefull for systems with base > 10) -- (adapted from Steve Vogwell's posting in comp.lang.vhdl) function chr(int: integer) return character is variable c: character; begin case int is when 0 => c := '0'; when 1 => c := '1'; when 2 => c := '2'; when 3 => c := '3'; when 4 => c := '4'; when 5 => c := '5'; when 6 => c := '6'; when 7 => c := '7'; when 8 => c := '8'; when 9 => c := '9'; when 10 => c := 'A'; when 11 => c := 'B'; when 12 => c := 'C'; when 13 => c := 'D'; when 14 => c := 'E'; when 15 => c := 'F'; when 16 => c := 'G'; when 17 => c := 'H'; when 18 => c := 'I'; when 19 => c := 'J'; when 20 => c := 'K'; when 21 => c := 'L'; when 22 => c := 'M'; when 23 => c := 'N'; when 24 => c := 'O'; when 25 => c := 'P'; when 26 => c := 'Q'; when 27 => c := 'R'; when 28 => c := 'S'; when 29 => c := 'T'; when 30 => c := 'U'; when 31 => c := 'V'; when 32 => c := 'W'; when 33 => c := 'X'; when 34 => c := 'Y'; when 35 => c := 'Z'; when others => c := '?'; end case; return c; end function chr; -- convert integer to string using specified base -- (adapted from Steve Vogwell's posting in comp.lang.vhdl) function str(int: integer; base: integer) return string is variable temp : string(1 to 10); variable num : integer; variable abs_int : integer; variable len : integer:=1; variable power : integer:=1; begin -- bug fix for negative numbers abs_int:=abs(int); num :=abs_int; while num>=base loop -- Determine how many len:=len+1; -- characters required num:=num/base; -- to represent the end loop; -- number. for i in len downto 1 loop -- Convert the number to temp(i):=chr(abs_int/power mod base); -- a string starting power:=power*base; -- with the right hand end loop ; -- side. -- return result and add sign if required if int<0 then return '-'& temp(1 to len); else return temp(1 to len); end if; end function str; -- convert integer to string, using base 10 function str(int: integer) return string is begin return str(int, 10) ; end function str; -- converts a std_logic_vector into a hex string. function hstr(slv: std_logic_vector) return string is variable hexlen: integer; variable longslv : std_logic_vector(67 downto 0):=(others => '0'); variable hex : string(1 to 16); variable fourbit : std_logic_vector(3 downto 0); begin hexlen:=(slv'left+1)/4; if (slv'left+1) mod 4/=0 then hexlen := hexlen + 1; end if; longslv(slv'left downto 0) := slv; for i in (hexlen-1) downto 0 loop fourbit:=longslv(((i*4)+3) downto (i*4)); case fourbit is when "0000" => hex(hexlen-I):='0'; when "0001" => hex(hexlen-I):='1'; when "0010" => hex(hexlen-I):='2'; when "0011" => hex(hexlen-I):='3'; when "0100" => hex(hexlen-I):='4'; when "0101" => hex(hexlen-I):='5'; when "0110" => hex(hexlen-I):='6'; when "0111" => hex(hexlen-I):='7'; when "1000" => hex(hexlen-I):='8'; when "1001" => hex(hexlen-I):='9'; when "1010" => hex(hexlen-I):='A'; when "1011" => hex(hexlen-I):='B'; when "1100" => hex(hexlen-I):='C'; when "1101" => hex(hexlen-I):='D'; when "1110" => hex(hexlen-I):='E'; when "1111" => hex(hexlen-I):='F'; when "ZZZZ" => hex(hexlen-I):='z'; when "UUUU" => hex(hexlen-I):='u'; when "XXXX" => hex(hexlen-I):='x'; when others => hex(hexlen-I):='?'; end case; end loop; return hex(1 to hexlen); end function hstr; function hstr(slv: unsigned) return string is begin return hstr(std_logic_vector(slv)); end function hstr; -- functions to manipulate strings ----------------------------------- -- convert a character to upper case function to_upper(c: character) return character is variable u: character; begin case c is when 'a' => u:='A'; when 'b' => u:='B'; when 'c' => u:='C'; when 'd' => u:='D'; when 'e' => u:='E'; when 'f' => u:='F'; when 'g' => u:='G'; when 'h' => u:='H'; when 'i' => u:='I'; when 'j' => u:='J'; when 'k' => u:='K'; when 'l' => u:='L'; when 'm' => u:='M'; when 'n' => u:='N'; when 'o' => u:='O'; when 'p' => u:='P'; when 'q' => u:='Q'; when 'r' => u:='R'; when 's' => u:='S'; when 't' => u:='T'; when 'u' => u:='U'; when 'v' => u:='V'; when 'w' => u:='W'; when 'x' => u:='X'; when 'y' => u:='Y'; when 'z' => u:='Z'; when others => u:=c; end case; return u; end function to_upper; -- convert a character to lower case function to_lower(c: character) return character is variable l: character; begin case c is when 'A' => l:='a'; when 'B' => l:='b'; when 'C' => l:='c'; when 'D' => l:='d'; when 'E' => l:='e'; when 'F' => l:='f'; when 'G' => l:='g'; when 'H' => l:='h'; when 'I' => l:='i'; when 'J' => l:='j'; when 'K' => l:='k'; when 'L' => l:='l'; when 'M' => l:='m'; when 'N' => l:='n'; when 'O' => l:='o'; when 'P' => l:='p'; when 'Q' => l:='q'; when 'R' => l:='r'; when 'S' => l:='s'; when 'T' => l:='t'; when 'U' => l:='u'; when 'V' => l:='v'; when 'W' => l:='w'; when 'X' => l:='x'; when 'Y' => l:='y'; when 'Z' => l:='z'; when others => l:=c; end case; return l; end function to_lower; -- convert a string to upper case function to_upper(s: string) return string is variable uppercase: string (s'range); begin for i in s'range loop uppercase(i):=to_upper(s(i)); end loop; return uppercase; end to_upper; -- convert a string to lower case function to_lower(s: string) return string is variable lowercase: string (s'range); begin for i in s'range loop lowercase(i):=to_lower(s(i)); end loop; return lowercase; end to_lower; -- functions to convert strings into other types -- converts a character into a std_logic function to_std_logic(c: character) return std_logic is variable sl : std_logic; begin case c is when 'U' => sl:='U'; when 'X' => sl:='X'; when '0' => sl:='0'; when '1' => sl:='1'; when 'Z' => sl:='Z'; when 'W' => sl:='W'; when 'L' => sl:='L'; when 'H' => sl:='H'; when '-' => sl:='-'; when others => sl:='X'; end case; return sl; end function to_std_logic; -- converts a string into std_logic_vector function to_std_logic_vector(s: string) return std_logic_vector is variable slv : std_logic_vector(s'high-s'low downto 0); variable k : integer; begin k:=s'high-s'low; for i in s'range loop slv(k):=to_std_logic(s(i)); k :=k-1; end loop; return slv; end function to_std_logic_vector; ---------------- -- file I/O -- ---------------- -- read variable length string from input file procedure str_read(file in_file: TEXT; res_string: out string) is variable l : line; variable c : character; variable is_string : boolean; begin readline(in_file, l); -- clear the contents of the result string for i in res_string'range loop res_string(i):=' '; end loop; -- read all characters of the line, up to the length -- of the results string for i in res_string'range loop read(l,c,is_string); res_string(i):=c; if not is_string then -- found end of line exit; end if; end loop; end procedure str_read; -- print string to a file procedure print(file out_file: TEXT; new_string: in string) is variable l: line; begin write(l,new_string); writeline(out_file,l); end procedure print; -- print character to a file and start new line procedure print(file out_file: TEXT; char: in character) is variable l: line; begin write(l,char); writeline(out_file,l); end procedure print; -- appends contents of a string to a file until line feed occurs -- (LF is considered to be the end of the string) procedure str_write(file out_file: TEXT; new_string: in string) is begin for i in new_string'range loop print(out_file,new_string(i)); if new_string(i)=LF then -- end of string exit; end if; end loop; end str_write; end package body txt_util;
-------------------------------------------------------------------------------- -- Entity: tape_speed_control_tb -- Date:2016-04-17 -- Author: Gideon -- -- Description: Testbench -------------------------------------------------------------------------------- library ieee; use ieee.std_logic_1164.all; use ieee.std_logic_unsigned.all; entity tape_speed_control_tb is end tape_speed_control_tb; architecture arch of tape_speed_control_tb is signal clock : std_logic := '0'; signal reset : std_logic := '0'; signal tick_out : std_logic; signal motor_en : std_logic; signal clock_stop : boolean := false; begin clock <= not clock after 10 ns when not clock_stop; reset <= '1', '0' after 100 ns; i_mut: entity work.tape_speed_control port map ( clock => clock, reset => reset, motor_en => motor_en, tick_out => tick_out ); p_test: process begin motor_en <= '0'; wait for 1 ms; motor_en <= '1'; wait for 199 ms; motor_en <= '0'; wait for 400 ms; clock_stop <= true; end process; end arch;
LIBRARY IEEE; USE IEEE.std_logic_1164.all; PACKAGE PIC_pkg IS ------------------------------------------------------------------------------- -- Types for the RAM memory ------------------------------------------------------------------------------- SUBTYPE item_array8_ram IS std_logic_vector (7 downto 0); TYPE array8_ram IS array (integer range <>) of item_array8_ram; ------------------------------------------------------------------------------- -- Useful constants for addressing purposes ------------------------------------------------------------------------------- constant DMA_RX_BUFFER_MSB : std_logic_vector(7 downto 0) := X"00"; constant DMA_RX_BUFFER_MID : std_logic_vector(7 downto 0) := X"01"; constant DMA_RX_BUFFER_LSB : std_logic_vector(7 downto 0) := X"02"; constant NEW_INST : std_logic_vector(7 downto 0) := X"03"; constant DMA_TX_BUFFER_MSB : std_logic_vector(7 downto 0) := X"04"; constant DMA_TX_BUFFER_LSB : std_logic_vector(7 downto 0) := X"05"; constant SWITCH_BASE : std_logic_vector(7 downto 0) := X"10"; constant LEVER_BASE : std_logic_vector(7 downto 0) := X"20"; constant CAL_OP : std_logic_vector(7 downto 0) := X"30"; constant T_STAT : std_logic_vector(7 downto 0) := X"31"; constant GP_RAM_BASE : std_logic_vector(7 downto 0) := X"40"; ------------------------------------------------------------------------------- -- Constants to define Type 1 instructions (ALU) ------------------------------------------------------------------------------- constant TYPE_1 : std_logic_vector(1 downto 0) := "00"; constant ALU_ADD : std_logic_vector(5 downto 0) := "000000"; constant ALU_SUB : std_logic_vector(5 downto 0) := "000001"; constant ALU_SHIFTL : std_logic_vector(5 downto 0) := "000010"; constant ALU_SHIFTR : std_logic_vector(5 downto 0) := "000011"; constant ALU_AND : std_logic_vector(5 downto 0) := "000100"; constant ALU_OR : std_logic_vector(5 downto 0) := "000101"; constant ALU_XOR : std_logic_vector(5 downto 0) := "000110"; constant ALU_CMPE : std_logic_vector(5 downto 0) := "000111"; constant ALU_CMPG : std_logic_vector(5 downto 0) := "001000"; constant ALU_CMPL : std_logic_vector(5 downto 0) := "001001"; constant ALU_ASCII2BIN : std_logic_vector(5 downto 0) := "001010"; constant ALU_BIN2ASCII : std_logic_vector(5 downto 0) := "001011"; ------------------------------------------------------------------------------- -- Constants to define Type 2 instructions (JUMP) ------------------------------------------------------------------------------- constant TYPE_2 : std_logic_vector(1 downto 0) := "01"; constant JMP_UNCOND : std_logic_vector(5 downto 0) := "00" & X"0"; constant JMP_COND : std_logic_vector(5 downto 0) := "00" & X"1"; ------------------------------------------------------------------------------- -- Constants to define Type 3 instructions (LOAD & STORE) ------------------------------------------------------------------------------- constant TYPE_3 : std_logic_vector(1 downto 0) := "10"; -- instruction constant LD : std_logic := '0'; constant WR : std_logic := '1'; -- source constant SRC_ACC : std_logic_vector(1 downto 0) := "00"; constant SRC_CONSTANT : std_logic_vector(1 downto 0) := "01"; constant SRC_MEM : std_logic_vector(1 downto 0) := "10"; constant SRC_INDXD_MEM : std_logic_vector(1 downto 0) := "11"; -- destination constant DST_ACC : std_logic_vector(2 downto 0) := "000"; constant DST_A : std_logic_vector(2 downto 0) := "001"; constant DST_B : std_logic_vector(2 downto 0) := "010"; constant DST_INDX : std_logic_vector(2 downto 0) := "011"; constant DST_MEM : std_logic_vector(2 downto 0) := "100"; constant DST_INDXD_MEM : std_logic_vector(2 downto 0) := "101"; ------------------------------------------------------------------------------- -- Constants to define Type 4 instructions (SEND) ------------------------------------------------------------------------------- constant TYPE_4 : std_logic_vector(1 downto 0) := "11"; ------------------------------------------------------------------------------- -- Type containing the ALU instruction set ------------------------------------------------------------------------------- TYPE alu_op IS ( nop, -- no operation op_lda, op_ldb, op_ldacc, op_ldid, -- external value load op_mvacc2id, op_mvacc2a, op_mvacc2b, -- internal load op_add, op_sub, op_shiftl, op_shiftr, -- arithmetic operations op_and, op_or, op_xor, -- logic operations op_cmpe, op_cmpl, op_cmpg, -- compare operations op_ascii2bin, op_bin2ascii, -- conversion operations op_oeacc); -- output enable END PIC_pkg; PACKAGE BODY PIC_pkg IS END PIC_pkg;
-- ---------------------------------------------------------------------- --LOGI-hard --Copyright (c) 2013, Jonathan Piat, Michael Jones, All rights reserved. -- --This library is free software; you can redistribute it and/or --modify it under the terms of the GNU Lesser General Public --License as published by the Free Software Foundation; either --version 3.0 of the License, or (at your option) any later version. -- --This library 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 --Lesser General Public License for more details. -- --You should have received a copy of the GNU Lesser General Public --License along with this library. -- ---------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Company: -- Engineer: -- -- Create Date: 11:12:06 04/09/2013 -- Design Name: -- Module Name: /home/jpiat/development/FPGA/logi-family/logi-hard/test_bench/spi2ad_testbench.vhd -- Project Name: logibone_mining -- Target Device: -- Tool versions: ISE 14.1 -- Description: -- -- VHDL Test Bench Created by ISE for module: spi2ad_bus -- -- Dependencies: -- -- Revision: -- Revision 0.01 - File Created -- Additional Comments: -- -- Notes: -- This testbench has been automatically generated using types std_logic and -- std_logic_vector for the ports of the unit under test. Xilinx recommends -- that these types always be used for the top-level I/O of a design in order -- to guarantee that the testbench will bind correctly to the post-implementation -- simulation model. -------------------------------------------------------------------------------- LIBRARY ieee; USE ieee.std_logic_1164.ALL; -- Uncomment the following library declaration if using -- arithmetic functions with Signed or Unsigned values --USE ieee.numeric_std.ALL; ENTITY spi2ad_testbench IS END spi2ad_testbench; ARCHITECTURE behavior OF spi2ad_testbench IS -- Component Declaration for the Unit Under Test (UUT) COMPONENT spi2ad_bus PORT( clk : IN std_logic; resetn : IN std_logic; mosi : IN std_logic; ss : IN std_logic; sck : IN std_logic; miso : OUT std_logic; data_bus_out : OUT std_logic_vector(15 downto 0); data_bus_in : IN std_logic_vector(15 downto 0); addr_bus : OUT std_logic_vector(15 downto 0); wr : OUT std_logic; rd : OUT std_logic ); END COMPONENT; --Inputs signal clk : std_logic := '0'; signal resetn : std_logic := '0'; signal mosi : std_logic := '0'; signal ss : std_logic := '0'; signal sck : std_logic := '0'; signal data_bus_in : std_logic_vector(15 downto 0) := (others => '0'); --Outputs signal miso : std_logic; signal data_bus_out : std_logic_vector(15 downto 0); signal addr_bus : std_logic_vector(15 downto 0); signal wr : std_logic; signal rd : std_logic; -- Clock period definitions constant clk_period : time := 10 ns; constant sck_period : time := 100 ns; constant wr_conf : std_logic_vector(15 downto 0) := X"AA50"; constant data_wr : std_logic_vector(15 downto 0) := X"BB57"; BEGIN -- Instantiate the Unit Under Test (UUT) uut: spi2ad_bus PORT MAP ( clk => clk, resetn => resetn, mosi => mosi, ss => ss, sck => sck, miso => miso, data_bus_out => data_bus_out, data_bus_in => data_bus_in, addr_bus => addr_bus, wr => wr, rd => rd ); -- Clock process definitions clk_process :process begin clk <= '0'; wait for clk_period/2; clk <= '1'; wait for clk_period/2; end process; -- Stimulus process stim_proc: process begin -- hold reset state for 100 ns. resetn <= '0' ; ss <= '1' ; sck <= '0' ; data_bus_in <= X"FF32" ; wait for 100 ns; resetn <= '1' ; wait for clk_period*10; ss <= '0' ; loop1: FOR a IN 0 TO 15 LOOP -- la variable de boucle est a de 1 à 10 sck <= '0' ; mosi <= wr_conf(15 - a) ; WAIT FOR sck_period/2; -- attend la valeur de pulse_time sck <= '1' ; -- complémente clk1 WAIT FOR sck_period/2; END LOOP loop1; loop2: FOR a IN 0 TO 15 LOOP -- la variable de boucle est a de 1 à 10 sck <= '0' ; mosi <= data_wr(15 - a) ; WAIT FOR sck_period/2; -- attend la valeur de pulse_time sck <= '1' ; -- complémente clk1 WAIT FOR sck_period/2; END LOOP loop2; loop3: FOR a IN 0 TO 15 LOOP -- la variable de boucle est a de 1 à 10 sck <= '0' ; mosi <= data_wr(15 - a) ; WAIT FOR sck_period/2; -- attend la valeur de pulse_time sck <= '1' ; -- complémente clk1 WAIT FOR sck_period/2; END LOOP loop3; mosi <= '0' ; sck <= '0' ; WAIT FOR sck_period/2; ss <= '1' ; wait; end process; END;
-- ---------------------------------------------------------------------- --LOGI-hard --Copyright (c) 2013, Jonathan Piat, Michael Jones, All rights reserved. -- --This library is free software; you can redistribute it and/or --modify it under the terms of the GNU Lesser General Public --License as published by the Free Software Foundation; either --version 3.0 of the License, or (at your option) any later version. -- --This library 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 --Lesser General Public License for more details. -- --You should have received a copy of the GNU Lesser General Public --License along with this library. -- ---------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Company: -- Engineer: -- -- Create Date: 11:12:06 04/09/2013 -- Design Name: -- Module Name: /home/jpiat/development/FPGA/logi-family/logi-hard/test_bench/spi2ad_testbench.vhd -- Project Name: logibone_mining -- Target Device: -- Tool versions: ISE 14.1 -- Description: -- -- VHDL Test Bench Created by ISE for module: spi2ad_bus -- -- Dependencies: -- -- Revision: -- Revision 0.01 - File Created -- Additional Comments: -- -- Notes: -- This testbench has been automatically generated using types std_logic and -- std_logic_vector for the ports of the unit under test. Xilinx recommends -- that these types always be used for the top-level I/O of a design in order -- to guarantee that the testbench will bind correctly to the post-implementation -- simulation model. -------------------------------------------------------------------------------- LIBRARY ieee; USE ieee.std_logic_1164.ALL; -- Uncomment the following library declaration if using -- arithmetic functions with Signed or Unsigned values --USE ieee.numeric_std.ALL; ENTITY spi2ad_testbench IS END spi2ad_testbench; ARCHITECTURE behavior OF spi2ad_testbench IS -- Component Declaration for the Unit Under Test (UUT) COMPONENT spi2ad_bus PORT( clk : IN std_logic; resetn : IN std_logic; mosi : IN std_logic; ss : IN std_logic; sck : IN std_logic; miso : OUT std_logic; data_bus_out : OUT std_logic_vector(15 downto 0); data_bus_in : IN std_logic_vector(15 downto 0); addr_bus : OUT std_logic_vector(15 downto 0); wr : OUT std_logic; rd : OUT std_logic ); END COMPONENT; --Inputs signal clk : std_logic := '0'; signal resetn : std_logic := '0'; signal mosi : std_logic := '0'; signal ss : std_logic := '0'; signal sck : std_logic := '0'; signal data_bus_in : std_logic_vector(15 downto 0) := (others => '0'); --Outputs signal miso : std_logic; signal data_bus_out : std_logic_vector(15 downto 0); signal addr_bus : std_logic_vector(15 downto 0); signal wr : std_logic; signal rd : std_logic; -- Clock period definitions constant clk_period : time := 10 ns; constant sck_period : time := 100 ns; constant wr_conf : std_logic_vector(15 downto 0) := X"AA50"; constant data_wr : std_logic_vector(15 downto 0) := X"BB57"; BEGIN -- Instantiate the Unit Under Test (UUT) uut: spi2ad_bus PORT MAP ( clk => clk, resetn => resetn, mosi => mosi, ss => ss, sck => sck, miso => miso, data_bus_out => data_bus_out, data_bus_in => data_bus_in, addr_bus => addr_bus, wr => wr, rd => rd ); -- Clock process definitions clk_process :process begin clk <= '0'; wait for clk_period/2; clk <= '1'; wait for clk_period/2; end process; -- Stimulus process stim_proc: process begin -- hold reset state for 100 ns. resetn <= '0' ; ss <= '1' ; sck <= '0' ; data_bus_in <= X"FF32" ; wait for 100 ns; resetn <= '1' ; wait for clk_period*10; ss <= '0' ; loop1: FOR a IN 0 TO 15 LOOP -- la variable de boucle est a de 1 à 10 sck <= '0' ; mosi <= wr_conf(15 - a) ; WAIT FOR sck_period/2; -- attend la valeur de pulse_time sck <= '1' ; -- complémente clk1 WAIT FOR sck_period/2; END LOOP loop1; loop2: FOR a IN 0 TO 15 LOOP -- la variable de boucle est a de 1 à 10 sck <= '0' ; mosi <= data_wr(15 - a) ; WAIT FOR sck_period/2; -- attend la valeur de pulse_time sck <= '1' ; -- complémente clk1 WAIT FOR sck_period/2; END LOOP loop2; loop3: FOR a IN 0 TO 15 LOOP -- la variable de boucle est a de 1 à 10 sck <= '0' ; mosi <= data_wr(15 - a) ; WAIT FOR sck_period/2; -- attend la valeur de pulse_time sck <= '1' ; -- complémente clk1 WAIT FOR sck_period/2; END LOOP loop3; mosi <= '0' ; sck <= '0' ; WAIT FOR sck_period/2; ss <= '1' ; wait; end process; END;
------------------------------------------------------------------------------- -- Title : Bus Module for ADC MCP3008 -- Project : Loa ------------------------------------------------------------------------------- -- Copyright (c) 2012 ------------------------------------------------------------------------------- library ieee; use ieee.std_logic_1164.all; use ieee.numeric_std.all; library work; use work.bus_pkg.all; use work.reg_file_pkg.all; use work.adc_mcp3008_pkg.all; ------------------------------------------------------------------------------- entity adc_mcp3008_module is generic ( BASE_ADDRESS : integer range 0 to 16#7FFF#); port ( adc_out_p : out adc_mcp3008_spi_out_type; adc_in_p : in adc_mcp3008_spi_in_type; bus_o : out busdevice_out_type; bus_i : in busdevice_in_type; -- direct access to the read adc samples adc_values_o : out adc_mcp3008_values_type(7 downto 0); clk : in std_logic ); end adc_mcp3008_module; ------------------------------------------------------------------------------- architecture behavioral of adc_mcp3008_module is type adc_mcp3008_module_state_type is (IDLE, WAIT_FOR_ADC); type adc_mcp3008_module_type is record state : adc_mcp3008_module_state_type; start : std_logic; current_ch : integer range 0 to 7; reg : reg_file_type(7 downto 0); end record; ----------------------------------------------------------------------------- -- Internal signal declarations ----------------------------------------------------------------------------- signal r, rin : adc_mcp3008_module_type := (state => IDLE, current_ch => 7, start => '0', reg => (others => (others => '0'))); signal adc_mode_s : std_logic; signal channel_s : std_logic_vector(2 downto 0); signal value_s : std_logic_vector(9 downto 0); signal done_s : std_logic; signal reg_o : reg_file_type(7 downto 0); signal reg_i : reg_file_type(7 downto 0); signal mask_s : std_logic_vector(7 downto 0); begin -- mapping signals to adc i/f adc_mode_s <= '1'; -- we don't use differential mode channel_s <= std_logic_vector(to_unsigned(r.current_ch, 3)); reg_i <= r.reg; -- present last value of each channel on this modules ports copy_loop : for ii in 0 to 7 generate adc_values_o(ii) <= r.reg(ii)(9 downto 0); end generate copy_loop; -- register for channel mask mask_s <= reg_o(0)(7 downto 0); ----------------------------------------------------------------------------- -- seq part of FSM ----------------------------------------------------------------------------- seq_proc : process(clk) begin if rising_edge(clk) then r <= rin; end if; end process seq_proc; ----------------------------------------------------------------------------- -- transitions and actiosn of FSM ----------------------------------------------------------------------------- comb_proc : process(done_s, mask_s, r, value_s) variable v : adc_mcp3008_module_type; begin v := r; case v.state is when IDLE => -- in this state we iterate over the channels if v.current_ch = 7 then -- we wrap around (to 0) v.current_ch := 0; else -- or increment the currently selected channel v.current_ch := v.current_ch + 1; end if; -- if the channel isn't masked out, we take a sample if mask_s(v.current_ch) = '0' then v.start := '1'; v.state := WAIT_FOR_ADC; end if; when WAIT_FOR_ADC => -- adc i/f has already started conversion, we stay in this state until -- the conversion is over. v.start := '0'; if done_s = '1' then -- if the conversion is done we put its result in the right register, -- and return to the "idle" state. v.reg(v.current_ch) := "000000" & value_s; v.state := IDLE; end if; end case; rin <= v; end process comb_proc; ----------------------------------------------------------------------------- -- Component instantiations ----------------------------------------------------------------------------- -- Register file to present ADC values to bus -- and configuration reg_file_1 : reg_file generic map ( BASE_ADDRESS => BASE_ADDRESS, REG_ADDR_BIT => 3) port map ( bus_o => bus_o, bus_i => bus_i, reg_o => reg_o, reg_i => reg_i, clk => clk); -- ADC interface module adc_mcp3008_1 : adc_mcp3008 generic map ( DELAY => 39) port map ( adc_out => adc_out_p, adc_in => adc_in_p, start_p => r.start, adc_mode_p => adc_mode_s, channel_p => channel_s, value_p => value_s, done_p => done_s, clk => clk); end behavioral;
------------------------------------------------------------------------------- -- Title : Bus Module for ADC MCP3008 -- Project : Loa ------------------------------------------------------------------------------- -- Copyright (c) 2012 ------------------------------------------------------------------------------- library ieee; use ieee.std_logic_1164.all; use ieee.numeric_std.all; library work; use work.bus_pkg.all; use work.reg_file_pkg.all; use work.adc_mcp3008_pkg.all; ------------------------------------------------------------------------------- entity adc_mcp3008_module is generic ( BASE_ADDRESS : integer range 0 to 16#7FFF#); port ( adc_out_p : out adc_mcp3008_spi_out_type; adc_in_p : in adc_mcp3008_spi_in_type; bus_o : out busdevice_out_type; bus_i : in busdevice_in_type; -- direct access to the read adc samples adc_values_o : out adc_mcp3008_values_type(7 downto 0); clk : in std_logic ); end adc_mcp3008_module; ------------------------------------------------------------------------------- architecture behavioral of adc_mcp3008_module is type adc_mcp3008_module_state_type is (IDLE, WAIT_FOR_ADC); type adc_mcp3008_module_type is record state : adc_mcp3008_module_state_type; start : std_logic; current_ch : integer range 0 to 7; reg : reg_file_type(7 downto 0); end record; ----------------------------------------------------------------------------- -- Internal signal declarations ----------------------------------------------------------------------------- signal r, rin : adc_mcp3008_module_type := (state => IDLE, current_ch => 7, start => '0', reg => (others => (others => '0'))); signal adc_mode_s : std_logic; signal channel_s : std_logic_vector(2 downto 0); signal value_s : std_logic_vector(9 downto 0); signal done_s : std_logic; signal reg_o : reg_file_type(7 downto 0); signal reg_i : reg_file_type(7 downto 0); signal mask_s : std_logic_vector(7 downto 0); begin -- mapping signals to adc i/f adc_mode_s <= '1'; -- we don't use differential mode channel_s <= std_logic_vector(to_unsigned(r.current_ch, 3)); reg_i <= r.reg; -- present last value of each channel on this modules ports copy_loop : for ii in 0 to 7 generate adc_values_o(ii) <= r.reg(ii)(9 downto 0); end generate copy_loop; -- register for channel mask mask_s <= reg_o(0)(7 downto 0); ----------------------------------------------------------------------------- -- seq part of FSM ----------------------------------------------------------------------------- seq_proc : process(clk) begin if rising_edge(clk) then r <= rin; end if; end process seq_proc; ----------------------------------------------------------------------------- -- transitions and actiosn of FSM ----------------------------------------------------------------------------- comb_proc : process(done_s, mask_s, r, value_s) variable v : adc_mcp3008_module_type; begin v := r; case v.state is when IDLE => -- in this state we iterate over the channels if v.current_ch = 7 then -- we wrap around (to 0) v.current_ch := 0; else -- or increment the currently selected channel v.current_ch := v.current_ch + 1; end if; -- if the channel isn't masked out, we take a sample if mask_s(v.current_ch) = '0' then v.start := '1'; v.state := WAIT_FOR_ADC; end if; when WAIT_FOR_ADC => -- adc i/f has already started conversion, we stay in this state until -- the conversion is over. v.start := '0'; if done_s = '1' then -- if the conversion is done we put its result in the right register, -- and return to the "idle" state. v.reg(v.current_ch) := "000000" & value_s; v.state := IDLE; end if; end case; rin <= v; end process comb_proc; ----------------------------------------------------------------------------- -- Component instantiations ----------------------------------------------------------------------------- -- Register file to present ADC values to bus -- and configuration reg_file_1 : reg_file generic map ( BASE_ADDRESS => BASE_ADDRESS, REG_ADDR_BIT => 3) port map ( bus_o => bus_o, bus_i => bus_i, reg_o => reg_o, reg_i => reg_i, clk => clk); -- ADC interface module adc_mcp3008_1 : adc_mcp3008 generic map ( DELAY => 39) port map ( adc_out => adc_out_p, adc_in => adc_in_p, start_p => r.start, adc_mode_p => adc_mode_s, channel_p => channel_s, value_p => value_s, done_p => done_s, clk => clk); end behavioral;
entity ENTITY1 is generic ( wait_generic : std_logic := '0' ); port ( wait_port : std_logic := '1' ); end entity ENTITY1; architecture ARCH of ENTITY1 is signal wait_for_something : std_logic; component ENTITY2 is generic ( wait_generic : std_logic := '0' ); port ( wait_port : std_logic := '1' ); end component ENTITY2; begin PROC1 : process (wait_for_something) is -- wait <-- this should not be classified as a wait variable wait_for_other_thing : std_logic; begin wait for 10ns; wait on a,b; wait until a = '0'; end process PROC1; U_ENTITY2 : ENTITY2 generic map ( wait_generic => '0' ) port map ( wait_port => '1' ); end architecture ARCH;
---------------------------------------------------------------------------------- -- Company: -- Engineer: Ben Oztalay -- -- Create Date: 02:59:14 04/10/2009 -- Design Name: -- Module Name: Comp_7segDecoder - Behavioral -- Project Name: Seven segment display decoder -- Target Devices: -- Tool versions: -- Description: Takes in a 4-bit binary number and outputs it to a seven-segment display in hexadecimal -- -- Dependencies: None -- -- Revision: -- Revision 0.01 - File Created -- Additional Comments: -- ---------------------------------------------------------------------------------- library IEEE; use IEEE.STD_LOGIC_1164.ALL; use IEEE.STD_LOGIC_ARITH.ALL; use IEEE.STD_LOGIC_UNSIGNED.ALL; ---- Uncomment the following library declaration if instantiating ---- any Xilinx primitives in this code. --library UNISIM; --use UNISIM.VComponents.all; entity Comp_7segDecoder is Port ( A : in STD_LOGIC_VECTOR (3 downto 0); seg : out STD_LOGIC_VECTOR (6 downto 0)); end Comp_7segDecoder; architecture Behavioral of Comp_7segDecoder is begin with A select seg <= "0000001" when "0000", "1001111" when "0001", "0010010" when "0010", "0000110" when "0011", "1001100" when "0100", "0100100" when "0101", "0100000" when "0110", "0001111" when "0111", "0000000" when "1000", "0000100" when "1001", "0001000" when "1010", "1100000" when "1011", "0110001" when "1100", "1000010" when "1101", "0110000" when "1110", "0111000" when "1111", "0000001" when others; end Behavioral;
library IEEE; use IEEE.std_logic_1164.all; use WORK.alu_types.all; -- -- Generic n-bit mux with two input vectors and one output vector -- entity MUX is generic ( N: integer := NSUMG -- Number of bits ); port ( A: in std_logic_vector(N-1 downto 0); B: in std_logic_vector(N-1 downto 0); SEL: in std_logic; Y: out std_logic_vector(N-1 downto 0) ); end MUX; -- Architectures architecture STRUCTURAL of MUX is signal A_NAND: std_logic_vector(N-1 downto 0); -- Output of first nand A_NAND signal B_NAND: std_logic_vector(N-1 downto 0); -- Output of first nand B_NAND signal SEL_NOT: std_logic; component INVERTER port ( A: in std_logic; Y: out std_logic -- Y <= not A; ); end component; component NAND1 port ( A: in std_logic; B: in std_logic; Y: out std_logic --Y <= A nand B; ); end component; begin INV_GEN: INVERTER port map(SEL, SEL_NOT); -- Generates 3*N nand ports from the NAND1 compoment: -- N nands are used to evaluate A_NAND(i) = NOT( A(i) * SEL ) -- N nands are used to evaluate B_NAND(i) = NOT( B(i) * SEL_NOT ) -- Then these outputs are fed to other N nands to evaluate -- NOT( NOT( A(i) * SEL ) * NOT( B(i) * SEL_NOT ) ) = A * SEL + B * SEL_NOT -- which is the classic n-bit mux behavior NAND_GEN: for i in 0 to N-1 generate NAND_A :NAND1 port map(A(i), SEL, A_NAND(i)); NAND_B :NAND1 port map(B(i), SEL_NOT, B_NAND(i)); Y_GEN :NAND1 port map(A_NAND(i), B_NAND(i), Y(i)); end generate; end STRUCTURAL;
-- file: clk50m.vhd -- -- (c) Copyright 2008 - 2011 Xilinx, Inc. All rights reserved. -- -- This file contains confidential and proprietary information -- of Xilinx, Inc. and is protected under U.S. and -- international copyright and other intellectual property -- laws. -- -- DISCLAIMER -- This disclaimer is not a license and does not grant any -- rights to the materials distributed herewith. Except as -- otherwise provided in a valid license issued to you by -- Xilinx, and to the maximum extent permitted by applicable -- law: (1) THESE MATERIALS ARE MADE AVAILABLE "AS IS" AND -- WITH ALL FAULTS, AND XILINX HEREBY DISCLAIMS ALL WARRANTIES -- AND CONDITIONS, EXPRESS, IMPLIED, OR STATUTORY, INCLUDING -- BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, NON- -- INFRINGEMENT, OR FITNESS FOR ANY PARTICULAR PURPOSE; and -- (2) Xilinx shall not be liable (whether in contract or tort, -- including negligence, or under any other theory of -- liability) for any loss or damage of any kind or nature -- related to, arising under or in connection with these -- materials, including for any direct, or any indirect, -- special, incidental, or consequential loss or damage -- (including loss of data, profits, goodwill, or any type of -- loss or damage suffered as a result of any action brought -- by a third party) even if such damage or loss was -- reasonably foreseeable or Xilinx had been advised of the -- possibility of the same. -- -- CRITICAL APPLICATIONS -- Xilinx products are not designed or intended to be fail- -- safe, or for use in any application requiring fail-safe -- performance, such as life-support or safety devices or -- systems, Class III medical devices, nuclear facilities, -- applications related to the deployment of airbags, or any -- other applications that could lead to death, personal -- injury, or severe property or environmental damage -- (individually and collectively, "Critical -- Applications"). Customer assumes the sole risk and -- liability of any use of Xilinx products in Critical -- Applications, subject only to applicable laws and -- regulations governing limitations on product liability. -- -- THIS COPYRIGHT NOTICE AND DISCLAIMER MUST BE RETAINED AS -- PART OF THIS FILE AT ALL TIMES. -- ------------------------------------------------------------------------------ -- User entered comments ------------------------------------------------------------------------------ -- None -- ------------------------------------------------------------------------------ -- "Output Output Phase Duty Pk-to-Pk Phase" -- "Clock Freq (MHz) (degrees) Cycle (%) Jitter (ps) Error (ps)" ------------------------------------------------------------------------------ -- CLK_OUT1____50.000______0.000______50.0______200.000____150.000 -- CLK_OUT2____20.000______0.000______50.0_____1200.000____150.000 -- ------------------------------------------------------------------------------ -- "Input Clock Freq (MHz) Input Jitter (UI)" ------------------------------------------------------------------------------ -- __primary______________50____________0.010 library ieee; use ieee.std_logic_1164.all; use ieee.std_logic_unsigned.all; use ieee.std_logic_arith.all; use ieee.numeric_std.all; library unisim; use unisim.vcomponents.all; entity clk50m is port (-- Clock in ports inclk0 : in std_logic; -- Clock out ports c0 : out std_logic; c1 : out std_logic ); end clk50m; architecture xilinx of clk50m is attribute CORE_GENERATION_INFO : string; attribute CORE_GENERATION_INFO of xilinx : architecture is "clk50m,clk_wiz_v3_6,{component_name=clk50m,use_phase_alignment=true,use_min_o_jitter=false,use_max_i_jitter=false,use_dyn_phase_shift=false,use_inclk_switchover=false,use_dyn_reconfig=false,feedback_source=FDBK_AUTO,primtype_sel=DCM_SP,num_out_clk=2,clkin1_period=20.0,clkin2_period=20.0,use_power_down=false,use_reset=false,use_locked=false,use_inclk_stopped=false,use_status=false,use_freeze=false,use_clk_valid=false,feedback_type=SINGLE,clock_mgr_type=AUTO,manual_override=false}"; -- Input clock buffering / unused connectors signal clkin1 : std_logic; -- Output clock buffering signal clk_out1_internal : std_logic; signal clkfb : std_logic; signal clk0 : std_logic; signal clkfx : std_logic; signal clkfbout : std_logic; signal locked_internal : std_logic; signal status_internal : std_logic_vector(7 downto 0); begin -- Input buffering -------------------------------------- clkin1_buf : IBUFG port map (O => clkin1, I => inclk0); -- Clocking primitive -------------------------------------- -- Instantiation of the DCM primitive -- * Unused inputs are tied off -- * Unused outputs are labeled unused dcm_sp_inst: DCM_SP generic map (CLKDV_DIVIDE => 2.500, CLKFX_DIVIDE => 5, CLKFX_MULTIPLY => 2, CLKIN_DIVIDE_BY_2 => FALSE, CLKIN_PERIOD => 20.0, CLKOUT_PHASE_SHIFT => "NONE", CLK_FEEDBACK => "1X", DESKEW_ADJUST => "SYSTEM_SYNCHRONOUS", PHASE_SHIFT => 0, STARTUP_WAIT => FALSE) port map -- Input clock (CLKIN => clkin1, CLKFB => clkfb, -- Output clocks CLK0 => clk0, CLK90 => open, CLK180 => open, CLK270 => open, CLK2X => open, CLK2X180 => open, CLKFX => clkfx, CLKFX180 => open, CLKDV => open, -- Ports for dynamic phase shift PSCLK => '0', PSEN => '0', PSINCDEC => '0', PSDONE => open, -- Other control and status signals LOCKED => locked_internal, STATUS => status_internal, RST => '0', -- Unused pin, tie low DSSEN => '0'); -- Output buffering ------------------------------------- clkfb <= clk_out1_internal; clkout1_buf : BUFG port map (O => clk_out1_internal, I => clk0); c0 <= clk_out1_internal; clkout2_buf : BUFG port map (O => c1, I => clkfx); end xilinx;
package vital_timing is end package; PACKAGE BODY VITAL_Timing IS -- Types for fields of VitalTimingDataType TYPE VitalTimeArrayT IS ARRAY (INTEGER RANGE <>) OF TIME; TYPE VitalTimeArrayPT IS ACCESS VitalTimeArrayT; TYPE VitalBoolArrayT IS ARRAY (INTEGER RANGE <>) OF BOOLEAN; TYPE VitalBoolArrayPT IS ACCESS VitalBoolArrayT; TYPE VitalLogicArrayPT IS ACCESS bit_vector; TYPE VitalTimingDataType IS RECORD NotFirstFlag : BOOLEAN; RefTime : TIME; HoldEn : BOOLEAN; TestLast : bit; TestTime : TIME; SetupEn : BOOLEAN; TestLastA : VitalLogicArrayPT; TestTimeA : VitalTimeArrayPT; HoldEnA : VitalBoolArrayPT; SetupEnA : VitalBoolArrayPT; END RECORD; PROCEDURE VitalSetupHoldCheck ( VARIABLE TimingData : INOUT VitalTimingDataType; SIGNAL TestSignal : IN bit_vector; CONSTANT EnableHoldOnRef : IN BOOLEAN := TRUE --IR252 3/23/98 ) IS BEGIN TimingData.HoldEnA.all := (TestSignal'RANGE => EnableHoldOnRef); --IR252 3/23/98 END VitalSetupHoldCheck; END VITAL_Timing;
---------------------------------------------------------------------------------- -- Company: Federal University of Santa Catarina -- Engineer: Prof. Dr. Eng. Rafael Luiz Cancian -- -- Create Date: -- Design Name: -- Module Name: -- Project Name: -- Target Devices: -- Tool versions: -- Description: -- -- Dependencies: -- -- Revision: -- Revision 0.01 - File Created -- Additional Comments: -- ---------------------------------------------------------------------------------- library IEEE; use ieee.std_logic_1164.all; entity blocoOperativo is port( clock, reset: in std_logic; PCEscCond, PCEsc, IouD, LerMem, EscMem, MemParaReg, IREsc, RegDst, EscReg, ULAFonteA: in std_logic; ULAFonteB, ULAOp, FontePC: in std_logic_vector(1 downto 0); opcode: out std_logic_vector(5 downto 0) ); end entity; architecture estrutural of blocoOperativo is component ula is generic(largura: natural := 8); port( entradaA, entradaB: in std_logic_vector(largura-1 downto 0); Operacao: in std_logic_vector(2 downto 0); saida: out std_logic_vector(largura-1 downto 0); zero: out std_logic ); end component; component operacaoULA is port( ULAOp: in std_logic_vector(1 downto 0); funct: in std_logic_vector(5 downto 0); Operacao: out std_logic_vector(2 downto 0) ); end component; component memoria is port( clock: in std_logic; ReadMem, WrtMem: in std_logic; DataWrt: in std_logic_vector(31 downto 0); Address: in std_logic_vector(31 downto 0); DataRd: out std_logic_vector(31 downto 0) ); end component; component deslocadorEsquerda is generic(largura: natural := 8); port( entrada: in std_logic_vector(largura-1 downto 0); saida: out std_logic_vector(largura-1 downto 0) ); end component; component multiplexador4x1 is generic(largura: natural := 8); port( entrada0, entrada1, entrada2, entrada3: in std_logic_vector(largura-1 downto 0); selecao: in std_logic_vector(1 downto 0); saida: out std_logic_vector(largura-1 downto 0) ); end component; component multiplexador2x1 is generic(largura: natural := 8); port( entrada0, entrada1: in std_logic_vector(largura-1 downto 0); selecao: in std_logic; saida: out std_logic_vector(largura-1 downto 0) ); end component; component bancoRegistradores is generic( largura: natural := 8; bitsRegSerLido: natural := 2 ); port( clock, reset: in std_logic; EscReg: in std_logic; RegSerLido1, RegSerLido2, RegSerEscrito: in std_logic_vector(bitsRegSerLido-1 downto 0); DadoEscrita: in std_logic_vector(largura-1 downto 0); DadoLido1, DadoLido2: out std_logic_vector(largura-1 downto 0) ); end component; component registrador is generic(largura: natural := 8); port( clock, reset: in std_logic; en: in std_logic; d: in std_logic_vector(largura-1 downto 0); q: out std_logic_vector(largura-1 downto 0) ); end component; component extensaoSinal is generic( larguraOriginal: natural := 8; larguraExtendida: natural := 8); port( entrada: in std_logic_vector(larguraOriginal-1 downto 0); saida: out std_logic_vector(larguraExtendida-1 downto 0) ); end component; signal zeroULA, enablePC: std_logic; signal entradaPC, saidaRegPC, saidaMem, saidaMuxPC, saidaRegULA, saidaRegInstr: std_logic_vector(31 downto 0); signal regLido1, regLido2, saidaRegDadosMem, dadoEscReg, dadoEscMem, saidaRegA, saidaRegB: std_logic_vector(31 downto 0); signal saidaMuxAULA, saidaMuxBULA, saidaExtensaoSinal, saidaExtensaoSinalDesl, saidaULA: std_logic_vector(31 downto 0); --signal saidaRegULA : std_logic_vector(31 downto 0); signal saidaMuxRegSerEscrito: std_logic_vector(4 downto 0); signal ctrlULA : std_logic_vector(2 downto 0); signal deslEsq26to28 : std_logic_vector(31 downto 0); constant quatro : std_logic_vector(31 downto 0) := (3 => '1', others => '0'); begin enablePC <= PCEsc or (PCEscCond and zeroULA); regPC: registrador generic map(32) port map(clock, reset, enablePC, entradaPC, saidaRegPC); muxPC: multiplexador2x1 generic map(32) port map (saidaRegPC, saidaRegULA, IouD, saidaMuxPC); mem: memoria port map (clock, LerMem, EscMem, dadoEscMem, saidaMuxPC, saidaMem); regIntrucao: registrador generic map(32) port map(clock, reset, IREsc, saidaMem, saidaRegInstr); muxRegSerEscrito: multiplexador2x1 generic map (5) port map(saidaRegInstr(20 downto 16), saidaRegInstr(15 downto 11), RegDst, saidaMuxRegSerEscrito); bancoReg: bancoRegistradores generic map (32, 5) port map(clock, reset, EscReg, saidaRegInstr(25 downto 21), saidaRegInstr(20 downto 16), saidaMuxRegSerEscrito, regLido1, regLido2); regDadosMemoria: registrador generic map (32) port map(clock, reset, '1', saidaMem, saidaRegDadosMem); muxDadoEscReg: multiplexador2x1 generic map(32) port map (saidaRegULA, saidaRegDadosMem, MemParaReg, dadoEscReg); regA: registrador generic map (32) port map (clock, reset, '1', regLido1, saidaRegA); regB: registrador generic map (32) port map (clock, reset, '1', regLido2, saidaRegB); muxAEntradaULA : multiplexador2x1 generic map(32) port map (saidaRegPC, saidaRegA, ULAFonteA, saidaMuxAULA); muxBEntradaULA: multiplexador4x1 generic map(32) port map (saidaRegB, quatro, saidaExtensaoSinal, saidaExtensaoSinalDesl, ULAFonteB, saidaMuxBULA); extensorDeSinal : extensaoSinal generic map (16, 32) port map (saidaRegInstr(15 downto 0), saidaExtensaoSinal); saidaExtensaoSinalDesl <= saidaExtensaoSinal(29 downto 0)&"00"; opULA: OperacaoULA port map(ULAOp, saidaRegInstr(5 downto 0), ctrlULA); UnLogArit: ula generic map (32) port map (saidaMuxAULA, saidaMuxBULA, ctrlULA, saidaULA, zeroULA); regSaidaULA: registrador generic map (32) port map (clock, reset, '1', saidaULA, saidaRegULA); deslEsq26to28 <= saidaRegPC(31 downto 28)&saidaRegInstr(25 downto 0)&"00"; muxSaidaULA: multiplexador4x1 generic map (32) port map (saidaULA, saidaRegULA, deslEsq26to28, (others => '0'), FontePC, entradaPC); opcode <= saidaRegInstr(31 downto 26); end architecture;
-- ----------------------------------------------------------------------- -- -- Syntiac's generic VHDL support files. -- -- ----------------------------------------------------------------------- -- Copyright 2005-2010 by Peter Wendrich ([email protected]) -- http://www.syntiac.com/fpga64.html -- -- This source file is free software: you can redistribute it and/or modify -- it under the terms of the GNU Lesser General Public License as published -- by the Free Software Foundation, either version 3 of the License, or -- (at your option) any later version. -- -- This source file 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/>. -- -- ----------------------------------------------------------------------- -- -- gen_pipeline.vhd -- -- ----------------------------------------------------------------------- -- -- Configurable pipeline building block. -- -- ----------------------------------------------------------------------- -- pipelineLength - Length of the pipeline (in clock ticks), can also be zero -- bits - width of the pipeline -- clk - clock -- reset - Synchronous reset, set everything to zero -- ena - Clock enable -- d - Data input -- q - Data output -- ----------------------------------------------------------------------- library IEEE; use IEEE.STD_LOGIC_1164.ALL; use IEEE.numeric_std.ALL; -- ----------------------------------------------------------------------- entity gen_pipeline is generic ( pipelineLength : integer := 1; bits : integer := 8 ); port ( clk : in std_logic; reset : in std_logic := '0'; ena : in std_logic := '1'; d : in unsigned(bits-1 downto 0); q : out unsigned(bits-1 downto 0) ); end entity; -- ----------------------------------------------------------------------- architecture rtl of gen_pipeline is type pipelineDef is array(0 to pipelineLength) of unsigned(q'range); signal pipeline : pipelineDef := (others => (others => '0')); begin q <= pipeline(pipelineLength); process(clk, d) begin pipeline(0) <= d; if rising_edge(clk) then if ena = '1' then if pipelineLength > 0 then for i in 1 to pipelineLength loop pipeline(i) <= pipeline(i-1); end loop; end if; end if; if reset = '1' then if pipelineLength > 0 then for i in 1 to pipelineLength loop pipeline(i) <= (others => '0'); end loop; end if; end if; end if; end process; end architecture;
`protect begin_protected `protect version = 1 `protect encrypt_agent = "XILINX" `protect encrypt_agent_info = "Xilinx Encryption Tool 2013" `protect key_keyowner = "Cadence Design Systems.", key_keyname= "cds_rsa_key", key_method = "rsa" `protect encoding = (enctype = "BASE64", line_length = 76, bytes = 64) `protect key_block dNRxGTitl9KOkmkd730uho9xoqR8+ddVN9Yglom5BAeOfDaPNFQ+zwu7kwi8De8XfD62FMzXJbQ+ 1vgug/m9gA== `protect key_keyowner = "Mentor Graphics Corporation", key_keyname= "MGC-VERIF-SIM-RSA-1", key_method = "rsa" `protect encoding = (enctype = "BASE64", line_length = 76, bytes = 128) `protect key_block oqEez3P6ff6UIN8oBGlfmT6V4c5hyYcm+AOzUJrtMevF/Igu1FsU3igzdN+cIF7qB8KmZzHa15jR Ul0y7YDP/wnW+VlfMe6PpjaCG3utK4ZesndTOEYoxfrx7iOOERiEanQTghLs9E8WjFP1CzV7RT1E URZrlGzVdpq9dVFeSTs= `protect key_keyowner = "Xilinx", key_keyname= "xilinx_2013_09", key_method = "rsa" `protect encoding = (enctype = "BASE64", line_length = 76, bytes = 256) `protect key_block T8BwQ6cqJbYCE0qEDEpnlgHTdORBKod9tlXBTQ3VABRRfkyMIa0PkBBZAxhAKyO7gjFjbAuSbnCH lh5E+16giN4kb99hPUr9zcwEfMpbj/3w1pxpquJFTp2Ub3c5a1bshDY2ro2CGjQ5cYfK3OWC73Hi a0VpUNQM0GudS8G7QH2Zh/jh/8wCTaUW+ruTY+rujwSAGpci4m1+kd71du8KntuvuoZdl2ODdZCo neCC6aQD2nQF7y2UFD1DXJlitVnwy8kV2fqsbihTa4Swr5yB1WnMWoEIrSJwnVHdTLpX5gqMQDyc /OM/9PUhaBjpOzkJ9q1mVtXB6Is/GsH3ElCsFg== `protect key_keyowner = "Synopsys", key_keyname= "SNPS-VCS-RSA-1", key_method = "rsa" `protect encoding = (enctype = "BASE64", line_length = 76, bytes = 128) `protect key_block jv5VW8bCrKHX8DUcjijuGCaGtm1FrlMtT80qiZQVZmjbX/ZXBwujI45Nqg86C6+xSsgPhkIWJ1N4 G3LQVr9tQyWsYxaSBdyri2mIQ19XXExQn7/CuUZZGnyvRRI7sWKAkedZ6ZWA1BuMYDfguv1PGU4m PERZr9qCw9eZbACo8ko= `protect key_keyowner = "Aldec", key_keyname= "ALDEC08_001", key_method = "rsa" `protect encoding = (enctype = "BASE64", line_length = 76, bytes = 256) `protect key_block WX0Us4WHGFzE6wPk474YzEYyeuF6XxSgR2k85alZuRiFs36dq/Olfnh9PddbRFGoT6Dt3rULbtBY cyCpsDyudVWMhg8cICOggYpworES+ABYjhhfRJLAVKsbuKxY7viaNWgZeFFXVpkQo9IIYc44bJBM a9QnVPdIDVfRM62J2ffN452UFyj1X5RMq/3lkF0s5aOI2UtR5qAiHZj6mUweiVhuitq3KJxJ1JwE S5zWOn2LibA87tCrTBVzz67n1hUKwXHsVP5bXYSQQ2Yf+5JGX4TP3faNfMbMtoB3OKpJj8Wvsu6Y N4LJwQQGoTUWTuqIQQCQU71/eWU/jZKQ6ivyFA== `protect data_method = "AES128-CBC" `protect encoding = (enctype = "BASE64", line_length = 76, bytes = 7280) `protect data_block SbsZNWgsX7HcOL+0XOr/1Y2iBy5l+6Mv6ClYDBNwd1IbE7L/ICjyPopoqzc2oaM4oCPIALmei30P 6OeoXsLAdcj2uaumO75ZUd4gzJi04XDQ1ru2/jfb6UeJrAM7gJ9Vysy3+dCQBJzN6TAKrFc7dOmz YCOyrgYO1Kq0ZjO1K9xcvB3R56f6Ckdlr6VMVRLTL0zrPvcypIwonHvUglD6ojkQClMrLIRgQQTL aHjOMPVUtYcWphhZU7MdDSXVCwsO1U7ZMO+JAOszdZTxeAzJDVb0uJS4+VrX0SnNtU2vRRtP+ctp yWTet+QVVqXdrN8B+FmL5Qk5uwZiEKkBaDzv4ddPk+AW6Z9ihOQ71kmkxp6waTb2ZA2D8Xonzch0 /UYEqZGe0nt5ugCnlmErqsArafuiNepaC7h3B+VdLPp9Qc6I3nwyI6pioAuGygGcLnuVLH72oKDq nppaS4EZjJNlQZ4nYKK9WTdi15PKNrPz6+cAqh7wkyuHFSbnwU0/RL1ClROOgn13onF73GnHwBDO 0TJi9CjBqj+Qo3cwxqGVlxkC8KEUHRplC6mTStYELfRlKpKLwhDnxDOw7Z5QsLi7a8hZhMZexmXZ TZJ1X5Rl1DTH5YX1MCx6xQ1XYgiRg6pny0llZjCMe8cpMFdvGm13pfWObB/DxeDZsPXXQFui7hzi oVlqrRD4XILds7tHC4SFwim/6sUJYxgyqfq3dHTWZM8rLvyijdUJ6PIiiFWjg7dJK5rrwwvv/COT ZYhmyr746PF6IVrIXiP85H5kFnWH2aM/ictjDiq6hW4fS7hUYWiyC3HiMDapbk8Ktwx6VYJdhjUd 7UCSnwcdJslxlO7u0P2q1mqMU6e2xdkkyWw8RTGlaMkQVRy6fwferc2MQ149Nsu6I06CFc5r5a9F W0rpRN898yIHXmV+XKefAFrKNVjzztfmHCLjvGoWIibb/ez2F4+TJN5vETBMLdPce1RvlTCQhguH KncXdNuYp7H6yRj9YZNWmAasSYQ5eGxiRQdb1svbeuB+z9GDc6VEH8S6KbrKuBA0nSSkuE8x9qFt JPgbdR/zv6bNi7ScR0Kzt+PMlV24rLLZedEkiSrpkKaHnbHlGcw4A6Ee5pzOiV6hubMm2OthH6jO 5X/MOv2nPm4U/HEgSxCF7Xdo8E58UdfJYyjHGANqd9P4ITyolxquJyYKWmwgbKAeKudQECLCCx4n JMBgr2iLIJmrBDhpDWqPxfaKpaNBzDcxqbnM+JtHXEm0z47V6LTMIUrWSOkz/6ElIB6WIjpp2/E/ EXtcE7JvUIUc2ELiIygH4O/zwFzj5ebxCGTirEIhagbVwXCfsXXmuSMkKVHZykzxxZPY6Vx65843 HVgs7aMeUHq4JGxJu2HvaCZkahBPy8u4twFpcwviglptAn3HSlG2wzJ7dAyr4xjiPNrdESvpz18k eX44uPg7Fyv00UXU8pZuwLcwFEs8MWARv0b+NcdthrK+xTbde5z8VhrZEG8++pCEom6+TfUBr9dV FeXvWihHh/XeXxsZh/z7Q4Whjx/nXlAJDvxj0yHVIf7bl1Yh0ajL4DGaYmqaa7ITpg9AXbm0kLB2 HDcS3YYyciar8R6CLQ2OWhUY2GCGGNSUuE6c7/9RzzyhmCevF0WVj5QE3ENs3KKq3nN6UOVRXdCy oZU81g5QjgiIXOScFoy6dsJLD88qej6m8Tokz7TMTKdqXqtTK37dVePEeLSCRK++nrTSWBEhJPHE OdZUN32ED94hXsO063zXRpqVLdmvTjxocQEtp0zCmGsrN3m3Q0Lr7gznf/UNxDBoFD4CSbNxPggs kf0NzFnJOtbPC7EmAlQdAJMdo+bczzv2kmhUS3IG5pbWQNH/saIjlsdHxtPgb7/zaxMsgLlEIEDG JfBfftGR3Oqzpgo1ooR+d1poxk14scxRX9qyZftK3jDppXD+OK2A51TPsBfdn/svbUkFjL13AsSK wN3BRpUorDL33SJO0WWjhO7pWbSBWBccoxh73H5HOqxe7y3AMkgEQ8RWcs36qBNQhpYEzdtz3Mf+ tCdUKM7jwDduhf56rdDiv8dtSykhtHbHNGQzQ2mIULfdyMvPXvZ3uEzMrXqCwa6ZU+ww3v3fPAZb I0uFpeSvdJeKxzzQP0nQd5ihJEzxLvzCP31PVy02HhQQcupyLKKDgL0Q+xaw8Hk1kky8ofVRIB++ s827nJqzeVEPfwJQUow6Y/4BqnOEkOQ6iXgCBtNWj4AFwAQemgvF096eJQE0HlJ3CICCiM8saw+j t13I8HKtt96Flk6PN1auFHnci2/GxZSMSxy1beRW2LVLUwRPsp96mqRxae5ITupepj4BRFPjGIfn wgrVPxSNiNDTOZN5OK/pAcc/SFxAARC5yAB7k1OPx5t9ZqWKelsiXTqIA8C6UMgnhY+9asOigW4w uUXLH3d+yvpHokWlJbujmQmbL7mWHEJNe6piNSVrz9LDro04Y3A9NBjKWpodcOdkpqw5ZPEADrw1 ceLZfNraAEaJcRH8qBsHN5h7O8ZqSatfOFSVuGsoCMPEgYlBR+WDpy4j77F3cMJlM16rq2sA8yTr hVNWpuJRjYP28pitzkctue+yV9BXQbZix9NFTFk0ZNTe0PGWeCuLtipuiwCSCB1ZchpD2xho1d1y q17yhM8yIqN38vOTdW94ha/AGAzcjSBVg6EkpWV+DPC0HaUqHZiw1734C2UQ6D+pou109O+KFFpX lfI4RQAZUDZjWt+wALwIWYf4Uo+cAtnjkBp0Q+Nh85ncpHX2IW+hHRccPa1WEIeCCwSi002US6vm CYmiEPkDJPnvNa31U3X3JWqVMK0pQdI76TXRADvBdqtyrj/7hyP4ZLJL+8K7JfyP9aOeRk3qurbq FOsnkt32pQ+6PBlmHEfMO78Q9SFiVUYMzH/3K1XD8rGwrGJ5e3LNRi59O44pETiudeVwn5EjwEJo und2NYqt0S9IvzlFONQyDJ4OF6mP+vpU552P8K2L+0ly0ma9ekRXSL+a9wLVnPZ3Jv9qvi4ttK+z GvrU9sTUSomN6BP1ZdkoavjKXCUJOk/fz9aCwTe9rGcEuTiaSy+krC2S2B6lsSS3wA5VB2Ds2H8f EOqtOI51RqqtA8S9l1iYXpm3b3dzH1qMmTtWbJhBiFA9rdNdt+pYyy93mnTJDBO+b1npm4F5fVWT 77vZKNeV6IiPTDCGuLYL/zZ9W2GlgDTZAHRjrbrf74zYefmrGEFo0gQZHtvZKoW76Cw3+pEIQnOk Srz+hh4IeKWGoXU7B+4KZUbp4slyrwF8SThPGVwxU57e8X12JGxVkDropeLF9F+2SvypgY+TU7GY SJ+AMUup5+xGaAooEuxFRIeicF3Xb3LKLLCr8HNKFbh+jxk1eCK7QYgGbQZBb+MKgqewAu6l+tNH gh7C8DJ0x0YTnmjaiJbQrlc2JXIKxfPtJ8EFJblBFEy6hhJSkUuGrM5DhLPljdQqTYn5Ap+TekaA UVhzzzSDhV5jMRW2lr3k5Ut0VpMpuwD4p+lABGuM3qE6SJODi5Ng4fNhWlPvFEEF2bzHLybc+5nl kPTI2SibdcUM81cLWX1bb1Z6exIYJ3ZYQyT4DLAzVWOW3XF+OCNXWTtRwF/92/GMKI5PqutvgZLO GOV/qQz2Vr9J8bvRHUdDrsPiqqB7DoXFP0wJcpm9gdg0sv52YA83+57F9dvOV2x2HRjbS6ue+XWZ XhLAFfN039z8S/C4/hYi08DS/DwjRiSgG98aPxtS1pxut/IVBujYk0aOsfPXQHl2Lns831c++tG5 Y8SFC+m/DxYX8JVqPaqAWV8wphYsUss7F/rVIdsGuHsGc2aFS9WyhAmX1Gw+T8+aagOkv0i8dF49 EGSY1wu2uVsN9zOT0SDeOL+PJCwT/hc+y8QGRVrVq4ozUhVvXMC7M8BA8QEh+qTbju9TlcsxIEiL 3+hqLVTvGfsI8vZthi6ABDbIxWWDWdNYL8oWUUhOjglt+zCcs5Byb8fRhB62Z2yJCSakz7RKNRfO 9/pIAHKn+u6J6otUk5ESKbvfsvFZXzMJsL5YcIGB8/Y8jJQk4992LoUyFPX8de0kh/S/vSIGoGgt 4K7/+SpSXvVkvvfyGIAQFBHqRSPFtBwitxWWbMrzbcPHgNp+KFT4k90BaYs8HN0J8OxjlWDMQZI6 1x7Nf+B/z8wjutCaptYpuZG5wsjEJRx790fEfo+1UlC602miq0S3PzJHd4NhTnuNxW5L4h4cOWEk VsLb8uXp+2JVh5C05XVK/W+DX2hJtesd1Gc8xn12lRLgsTQ75JJcpbuwiHfEErO3cd0wu0lUbh4j pkcNOHBtG4lm7HXDEhzQAIoZ+EnIrwQkEosmc1w0vmsTHWhplCB1G6fy3kb4iBqL2Bx6kYj3oFQ7 aeNp08mVd1bl9AM9HTSde19JjIAagMrWobGvoqqtyv2Tq66Cs8jUrhA1TFjpSusKp/U9MUw6Dsn+ izcGt2jIyokpyeWWAidM07JxKytqUvbZ0694+tnG2cT53qSGidF4OwxVOb+sBDDiBqBxZAm9sru8 JFwD83Z7QkVfrBQqaKk/kZwmET7itxzusqfZilM9+1tmxAEbA3u9mNZIoB5UpxH3RHauOvoAiWBB wDrkRayodPqfLW26pv0JaaTEq3f6v8QjBq1GGlupVJ5de39Snaf/gtrA6BeixlljcHF1tdO2044g +uCVbkQgsevBWn3zuJmZzf2iYveK+Da9EMI/KSbHRqsTT7nftRD8woPzAlUBAsKulhM+59vSbXbH aAj+uNnf6fZ1SnjTHsXFb+lhzdIpsTHhjQwYB/iGk0J7D8jXVgr0Q214yhbzncyjzqi8OEtuD+5Z orZNL2sVGrZmMY0txx5Qz5yxYg1cG4/xzTHb0mgCS9D3r5mirXnTs4Wm3Q90b/HdGoFdPvoDd8R9 wAlp3GStaGvVypSbMtO3EsUViC1gY3yF/OyFqmh1ZtFSDcOQFdFltOnYlDS0cEy5Nw1NPvf8AjUL /+OW19a6MNqiKYoyrbSnYsXD7J14A7OdwynyIOewedyAZEBLvbMuUamC9QQ0AmVmhWQySUq31+yw Dg651C/tmuSQEMD3Sde55ni5bl/ukTpIlDrIczXHY8VURT+GWtZOaPG7NTtyKbOBaKT35epxOlbr mhRdOuThq+zwJ1Ep9ZVYbq0jZHjcE/XWApvXkVjk+8FYjnlf1kYRXSHJBF8g6c7ARq4NSSldW7PJ Ocv3Eq+JNiIpusUJJXwg9KS+Pl+bQpER/TReWTiT1yzA3VitROoO+W+fUH5UPfWBiICkIMwbGhJE 9dUrLrbTssRzL/YbX5wuGtpqnXEGpx5LjfBloizR3h4Y05WxsVMuSbsTuHrZhDZVhOzcPy8SH25y 9qO/KW6Y8fEnxdLOysLZiDd2XSltH9bAnGTZYZhC0G/OIVm79SPzjAXUMuzdReJTF09K8OBH1CBb jQoyYyRZoWOXco05bFPPgUS5HuT8upAzl3laKmHmuk/YncVmZyM3I9g6CSSuD3sAoEMf2eF/fQGM inaqa68AGUGRdRFOcMCDqo+saWzwVqPFC2R1vLW3EQeT3jiMPf+FAN+i1nLY/c59LhvhpIdAPJMv CXOPiJSLThtJwg7KcS9x/uU/MHOXQtCLHVS0WHXZWqjdYXq6YvmzE4wFC5hDN93xFKFYlx5hnX1J UOdsR0ncagJSJrzecXR14yNkQILoH6qv9ELNyMEb6dEwgVdzqW7t/spw+VRH2h6uDuESiDLemnQH uxCimzvx/3o/SmrQv6NFX9svHgMvXW81esLyicZ6zeUFb4C/Mh0r6gVXFGqkwM5Tj8QykZiwAC6V HvrbjF7QYblRZzZIO28mXEKBvH8GFG3Ml8Y0BqHZSB9oiNcdJkVc2PJ/A1zDvQaGlDtVrNjoFmHx xin8ptPdWlEtieLrEarwVP/nUUTp1Ewyq0rXnAfI/Kehq/HrAGalZiMxIyWWjzqKqD5Uo1MnWANU qv2f54JI6iPGPGMWx9aw103PIIaCYwu8vQ15Betz/nBxzRIEk6HjqarIZiNtcMC2+Xc6lEfslmaG WuHJpUz1rUirLhiapkeIBBwztd/YtGNLnRyqSfkbFGJacq8v4WIkqs9L8lTZdMK0L3AQ9f//UEfV Xygy0KaOHn8GxNXhVjyv7CH2KcIkhj21HrasIw7chvjv8UfXhIK6pVRDhj+VZIQE7TlDKiwtNvVz s6UNl4xZeHgGykHfVULrBKKcI7GVTGwDkhiKjlRKyZLTyzKGi529/O2kBj2Vcu3v97NWl/RSTXmO MiLEqGSZMzxfqVMEUBjEMEXhWI0tJof0SCcCmORGN8fUsHrZs4mn6qoJn5TKLr3bd0WVTxw5w9UZ haoPDxonx+8t4ws22/1t7EMiW+GscAuGnP2AUdi6qhbfS0s/y6iGs6dKKG9jwSGCuBhH5FF6xBMi QUII6EGx8wZ6BUdBB9jc7ObEosUJ+3qJtndpHq3QYw4DjIja5mVEz1SM1YNtxFLYgKCneteteHEx Ij/magrJEXgNXrSEWopxk+zy9tBXwCF9JFP6b6Z7qYa8/ZprKhGcFfTRrYQBXXRC4mk3GNm3Wdsb 6+z8ZjmA+U0KKxMBtAGVsceUIJUiMV7nqj8BeHI56VVi7C5v/Z6QAGFxk1Iwl2UsrRxtnDm2lZfH yijY7T/ApDrdv2rOPnYU/9E1J7K2EmOt2fHgIALQ8OK23c4f9s6YO+REIvInhdw+tkTKsW4AC2tj YZv9hxhJX2mP5AnuGTfeum7lfbzcEpJsSkHizJWuXH6IXK2ToC1ujGJ9bcS2OBBmuh+X4PezaKBB 3QSuEUTu08a5UmqUBJ7XQ7Q3eAu87C/JRbbJ0eE7pcvPNNVv//RWan1ld5a6oKvk4t3Zp4sNl8gh qW+VKTy6gc4AvbvQH6OKSeWzK8xAJOsXJ04PMg7VJWUyfa8jixMXzx34K7l3C822XIn3v0KU54oH 3Vw/xtimyDqLNy96mxhFM5zAuGG9uL0PQK4KUMYoIqUzmD5jE9qMo6Y+cDvwlhDHqNHMYMF7KWS6 ZOYQNm+BKHJrJRbZ++bpqZWt2DlzZM4hU4/V1aQ2tZKfUYt6iA3E07ptypmeowM/mB6G1t6Ey82z acu2fJVFammwS3K+vNEMQWRCt/aclXyyNpW92Vl0U4bmmpcbDNBooG/f33OlqfMVlAX9BODCoknu cMxNiBxIxg10+FGAAfpLlra5XGJ0hjmLbeaqtyPHHBYhcBGrCBVqIwqx1ZHIm7yKVqDMs5OJma2O Pk6P87f6y/iNxTuKpowAyPUWEDrxXvpcJqUEQthKvPzK3nT74bseQScUrcVePfXoHSNHB7f7tSr8 zMN6qsGOznhlOrIZPy0dfXVI+y4fy+16FPyat+04iQk+eqjcGwiQBI1vaWvLDRyclq82Jk22J0zv f4e8abPKmhRqAda0igZ5Z9kLwXQ74h6N1T7m53dx/2VBarr0TGlFpSv3UXEHJY/k5GGfSGcZ12Po lNYlTjGizM7xBtyFTLvdqaxg+SaOp3TFOQxiOjTcAaaJoS2TifQrf0M2vHJFjqFouFt8+nnjSisC XY0zu9KkDWSRW27QYwvWxl0lLucZosNwuPAUWNP/pXd0yh5L/nQo7/2DjfU/MsgIk0qSfuK1rmmt 7Hbs+a67qe+2sdXrIjxZcFTHt5XsZoNEweM7Z6zIE5prMrFK0vi55FLX661vz6FWk+8UkmA3sMPB xo8XN0+6SeNdSPfU4JL2j51Ez0Fc4guDfwGI+tWJ7FqU2spZ0N2ScV5ydpjNaf5NLFpBf8zmYdHE 6tCL2Czeon8K0u6DylZ/5JEcCnRsmJsjMkNEY6+ZFohP2QfDa2JH2Cw3zqyyn7atdXkpiRNVvPqq uC6dXSLeYJXrYjaN9pgAf/8CrHN1YwNLczDBJfPSmXpq356TMYfxGwszYTyCRIbA6OWKP/gbUetj xrvvJe/e0QUhJUhUGuRtKRZBb55Sdc1juL+Y4ihcX75/lSMooKAlXHim6H92fUJwC6xBB4cN6/4L mL2XYPfrobtiX6JV/s2Ti7smZ2gmazQrs0u2K8Yr0Y7Zt418BcLVQRxXkD5QNrtvyvQJt9M/pvCb yt+i8I8WP1xdYxN1U1Wk7UPEY6pCLoDYSzzcQHfbgX7DroNcj43zlLGMcfncMw8uHJcKMG5B/Mpf In7SDcQx7JOljIigx1Tz9G9fC7qXbHHSUuvdkzyc2Kqs1xD5tUsMBD4pk/USJx87IYrblN/oVPvn MlUYtkBcXTBy5cB6gkYXf3sm5mj/ye5Jx3lt38EhrYLnwZ7+SIVbtSYRLbhUHoky/+wf9vtw8x2N hy7VKs921PXCsqOCMUiZegINUxVhC1359wRPfuawdqdNQckvT45K44wIl8KyGbMsAXr0IJeDMEQw i00hCHIq5TYafmp7bL1QLKo0TSL6kSgfyOHotYG7z44ovEctQlTy5Feamz36zvWqSO0Qv9qFNr9N uKQoYqfNYPske0H+nSJ+b9LpEbrL/Q/8D3mZ8ztf3HQ98lHa3TmVTtfQp2TJE237PARproEAItKv R8vbn8qOkUFKEeWz9LBw9y6gfXki9ZOcKy1cLGRc/o6liGRuB4zvjRoY+sv6Fkxb/LNHbE1xmnto ZyUxUp2CJGkIvlrt3lDk4k/npfLf2t1XFt3jKzG7HKF7iytQ1CjiF3PE8ePWpfuAWiiOhWiHaPaY OonwQP1KtkQoWP2VKqFR1iqKQV5iAqe2LOzC0e7QJF8YqfV5apUqZ6n9kWHdlCm1BLrDS9DfIpKd cDFu9ogHNG3Pph0PqUStj62YRflwWx71fAvPldfbGlAG0iRfAtZlxBl48BPZOO8jnJyTbmjg/5im VZ9tZ92ctzzOGLvGig4x+iO09wUR5Sm5OR24pRv9sb1m3YfmK4CitC7qxGciVBN06/FbtQaXAipX 98frT8+m2ntqOaw/v5AnHTifuTur+OaSNvc7+fZRJY5/k0QBFwjVrXrR30p8uxSawa7HL9e2ur+/ wWlwCTV9mUWDWop2wifNWTyCyeKR/74PEH0skv235nBIEZs1vatEPib8Ec65CLzFqaYHCNTC+qu5 c3twXVq0m39fpXUogHvEbryrCbETRFcoROLkMWXAiZMhX3LbmZ64Q1FEHPzqHdkgQ1OwPtciEAl5 Gl55CfZ7VPwvjfXtYDe9PfeiL00I9cZtUhqb1wNYbCbbBbvwqG8s/cjE6yXALvd4y2eZHxkI6mNW /dc1fwuPu/E3s1FjD4RrmtHjckT1EGyC+yrJ1Uk+Sk86GfSXlhnPYp9qN2M8wyKu1tS5s6h1VzVk tky0DSHjQjXv0mbsXGxa5snoNTCUzR9YIkiPLOihwgVRrMRJzWwvhuihlmbOe+pNmd/gByLEBrPE 6ThtpsGf4UYx3maIHzo/P8noBVJAq1ArD5vy30c1oqteZAZsKUa3Y1GYMtHLYuUnvm9xVfwrTHTW II+tGl7hAhbpU409zCmke02WmdiiddQXAKrd5P09Bc8WbgcBGUbfoK2TWKWFAAY+ELGGYpFUL9bF ErPUi4p6uTievuardGj04AAShQaj0bz8sQOobVHcY/dN6qEmne9x6TRcKIBtz8EMCKiGb9+a9l7V 3yvBtzwLEQJUtbwd6cnr98WAS96BLnEkIzGJW7ySoKnrQYXrIpveT+A= `protect end_protected
`protect begin_protected `protect version = 1 `protect encrypt_agent = "XILINX" `protect encrypt_agent_info = "Xilinx Encryption Tool 2013" `protect key_keyowner = "Cadence Design Systems.", key_keyname= "cds_rsa_key", key_method = "rsa" `protect encoding = (enctype = "BASE64", line_length = 76, bytes = 64) `protect key_block dNRxGTitl9KOkmkd730uho9xoqR8+ddVN9Yglom5BAeOfDaPNFQ+zwu7kwi8De8XfD62FMzXJbQ+ 1vgug/m9gA== `protect key_keyowner = "Mentor Graphics Corporation", key_keyname= "MGC-VERIF-SIM-RSA-1", key_method = "rsa" `protect encoding = (enctype = "BASE64", line_length = 76, bytes = 128) `protect key_block oqEez3P6ff6UIN8oBGlfmT6V4c5hyYcm+AOzUJrtMevF/Igu1FsU3igzdN+cIF7qB8KmZzHa15jR Ul0y7YDP/wnW+VlfMe6PpjaCG3utK4ZesndTOEYoxfrx7iOOERiEanQTghLs9E8WjFP1CzV7RT1E URZrlGzVdpq9dVFeSTs= `protect key_keyowner = "Xilinx", key_keyname= "xilinx_2013_09", key_method = "rsa" `protect encoding = (enctype = "BASE64", line_length = 76, bytes = 256) `protect key_block T8BwQ6cqJbYCE0qEDEpnlgHTdORBKod9tlXBTQ3VABRRfkyMIa0PkBBZAxhAKyO7gjFjbAuSbnCH lh5E+16giN4kb99hPUr9zcwEfMpbj/3w1pxpquJFTp2Ub3c5a1bshDY2ro2CGjQ5cYfK3OWC73Hi a0VpUNQM0GudS8G7QH2Zh/jh/8wCTaUW+ruTY+rujwSAGpci4m1+kd71du8KntuvuoZdl2ODdZCo neCC6aQD2nQF7y2UFD1DXJlitVnwy8kV2fqsbihTa4Swr5yB1WnMWoEIrSJwnVHdTLpX5gqMQDyc /OM/9PUhaBjpOzkJ9q1mVtXB6Is/GsH3ElCsFg== `protect key_keyowner = "Synopsys", key_keyname= "SNPS-VCS-RSA-1", key_method = "rsa" `protect encoding = (enctype = "BASE64", line_length = 76, bytes = 128) `protect key_block jv5VW8bCrKHX8DUcjijuGCaGtm1FrlMtT80qiZQVZmjbX/ZXBwujI45Nqg86C6+xSsgPhkIWJ1N4 G3LQVr9tQyWsYxaSBdyri2mIQ19XXExQn7/CuUZZGnyvRRI7sWKAkedZ6ZWA1BuMYDfguv1PGU4m PERZr9qCw9eZbACo8ko= `protect key_keyowner = "Aldec", key_keyname= "ALDEC08_001", key_method = "rsa" `protect encoding = (enctype = "BASE64", line_length = 76, bytes = 256) `protect key_block WX0Us4WHGFzE6wPk474YzEYyeuF6XxSgR2k85alZuRiFs36dq/Olfnh9PddbRFGoT6Dt3rULbtBY cyCpsDyudVWMhg8cICOggYpworES+ABYjhhfRJLAVKsbuKxY7viaNWgZeFFXVpkQo9IIYc44bJBM a9QnVPdIDVfRM62J2ffN452UFyj1X5RMq/3lkF0s5aOI2UtR5qAiHZj6mUweiVhuitq3KJxJ1JwE S5zWOn2LibA87tCrTBVzz67n1hUKwXHsVP5bXYSQQ2Yf+5JGX4TP3faNfMbMtoB3OKpJj8Wvsu6Y N4LJwQQGoTUWTuqIQQCQU71/eWU/jZKQ6ivyFA== `protect data_method = "AES128-CBC" `protect encoding = (enctype = "BASE64", line_length = 76, bytes = 7280) `protect data_block SbsZNWgsX7HcOL+0XOr/1Y2iBy5l+6Mv6ClYDBNwd1IbE7L/ICjyPopoqzc2oaM4oCPIALmei30P 6OeoXsLAdcj2uaumO75ZUd4gzJi04XDQ1ru2/jfb6UeJrAM7gJ9Vysy3+dCQBJzN6TAKrFc7dOmz YCOyrgYO1Kq0ZjO1K9xcvB3R56f6Ckdlr6VMVRLTL0zrPvcypIwonHvUglD6ojkQClMrLIRgQQTL aHjOMPVUtYcWphhZU7MdDSXVCwsO1U7ZMO+JAOszdZTxeAzJDVb0uJS4+VrX0SnNtU2vRRtP+ctp yWTet+QVVqXdrN8B+FmL5Qk5uwZiEKkBaDzv4ddPk+AW6Z9ihOQ71kmkxp6waTb2ZA2D8Xonzch0 /UYEqZGe0nt5ugCnlmErqsArafuiNepaC7h3B+VdLPp9Qc6I3nwyI6pioAuGygGcLnuVLH72oKDq nppaS4EZjJNlQZ4nYKK9WTdi15PKNrPz6+cAqh7wkyuHFSbnwU0/RL1ClROOgn13onF73GnHwBDO 0TJi9CjBqj+Qo3cwxqGVlxkC8KEUHRplC6mTStYELfRlKpKLwhDnxDOw7Z5QsLi7a8hZhMZexmXZ TZJ1X5Rl1DTH5YX1MCx6xQ1XYgiRg6pny0llZjCMe8cpMFdvGm13pfWObB/DxeDZsPXXQFui7hzi oVlqrRD4XILds7tHC4SFwim/6sUJYxgyqfq3dHTWZM8rLvyijdUJ6PIiiFWjg7dJK5rrwwvv/COT ZYhmyr746PF6IVrIXiP85H5kFnWH2aM/ictjDiq6hW4fS7hUYWiyC3HiMDapbk8Ktwx6VYJdhjUd 7UCSnwcdJslxlO7u0P2q1mqMU6e2xdkkyWw8RTGlaMkQVRy6fwferc2MQ149Nsu6I06CFc5r5a9F W0rpRN898yIHXmV+XKefAFrKNVjzztfmHCLjvGoWIibb/ez2F4+TJN5vETBMLdPce1RvlTCQhguH KncXdNuYp7H6yRj9YZNWmAasSYQ5eGxiRQdb1svbeuB+z9GDc6VEH8S6KbrKuBA0nSSkuE8x9qFt JPgbdR/zv6bNi7ScR0Kzt+PMlV24rLLZedEkiSrpkKaHnbHlGcw4A6Ee5pzOiV6hubMm2OthH6jO 5X/MOv2nPm4U/HEgSxCF7Xdo8E58UdfJYyjHGANqd9P4ITyolxquJyYKWmwgbKAeKudQECLCCx4n JMBgr2iLIJmrBDhpDWqPxfaKpaNBzDcxqbnM+JtHXEm0z47V6LTMIUrWSOkz/6ElIB6WIjpp2/E/ EXtcE7JvUIUc2ELiIygH4O/zwFzj5ebxCGTirEIhagbVwXCfsXXmuSMkKVHZykzxxZPY6Vx65843 HVgs7aMeUHq4JGxJu2HvaCZkahBPy8u4twFpcwviglptAn3HSlG2wzJ7dAyr4xjiPNrdESvpz18k eX44uPg7Fyv00UXU8pZuwLcwFEs8MWARv0b+NcdthrK+xTbde5z8VhrZEG8++pCEom6+TfUBr9dV FeXvWihHh/XeXxsZh/z7Q4Whjx/nXlAJDvxj0yHVIf7bl1Yh0ajL4DGaYmqaa7ITpg9AXbm0kLB2 HDcS3YYyciar8R6CLQ2OWhUY2GCGGNSUuE6c7/9RzzyhmCevF0WVj5QE3ENs3KKq3nN6UOVRXdCy oZU81g5QjgiIXOScFoy6dsJLD88qej6m8Tokz7TMTKdqXqtTK37dVePEeLSCRK++nrTSWBEhJPHE OdZUN32ED94hXsO063zXRpqVLdmvTjxocQEtp0zCmGsrN3m3Q0Lr7gznf/UNxDBoFD4CSbNxPggs kf0NzFnJOtbPC7EmAlQdAJMdo+bczzv2kmhUS3IG5pbWQNH/saIjlsdHxtPgb7/zaxMsgLlEIEDG JfBfftGR3Oqzpgo1ooR+d1poxk14scxRX9qyZftK3jDppXD+OK2A51TPsBfdn/svbUkFjL13AsSK wN3BRpUorDL33SJO0WWjhO7pWbSBWBccoxh73H5HOqxe7y3AMkgEQ8RWcs36qBNQhpYEzdtz3Mf+ tCdUKM7jwDduhf56rdDiv8dtSykhtHbHNGQzQ2mIULfdyMvPXvZ3uEzMrXqCwa6ZU+ww3v3fPAZb I0uFpeSvdJeKxzzQP0nQd5ihJEzxLvzCP31PVy02HhQQcupyLKKDgL0Q+xaw8Hk1kky8ofVRIB++ s827nJqzeVEPfwJQUow6Y/4BqnOEkOQ6iXgCBtNWj4AFwAQemgvF096eJQE0HlJ3CICCiM8saw+j t13I8HKtt96Flk6PN1auFHnci2/GxZSMSxy1beRW2LVLUwRPsp96mqRxae5ITupepj4BRFPjGIfn wgrVPxSNiNDTOZN5OK/pAcc/SFxAARC5yAB7k1OPx5t9ZqWKelsiXTqIA8C6UMgnhY+9asOigW4w uUXLH3d+yvpHokWlJbujmQmbL7mWHEJNe6piNSVrz9LDro04Y3A9NBjKWpodcOdkpqw5ZPEADrw1 ceLZfNraAEaJcRH8qBsHN5h7O8ZqSatfOFSVuGsoCMPEgYlBR+WDpy4j77F3cMJlM16rq2sA8yTr hVNWpuJRjYP28pitzkctue+yV9BXQbZix9NFTFk0ZNTe0PGWeCuLtipuiwCSCB1ZchpD2xho1d1y q17yhM8yIqN38vOTdW94ha/AGAzcjSBVg6EkpWV+DPC0HaUqHZiw1734C2UQ6D+pou109O+KFFpX lfI4RQAZUDZjWt+wALwIWYf4Uo+cAtnjkBp0Q+Nh85ncpHX2IW+hHRccPa1WEIeCCwSi002US6vm CYmiEPkDJPnvNa31U3X3JWqVMK0pQdI76TXRADvBdqtyrj/7hyP4ZLJL+8K7JfyP9aOeRk3qurbq FOsnkt32pQ+6PBlmHEfMO78Q9SFiVUYMzH/3K1XD8rGwrGJ5e3LNRi59O44pETiudeVwn5EjwEJo und2NYqt0S9IvzlFONQyDJ4OF6mP+vpU552P8K2L+0ly0ma9ekRXSL+a9wLVnPZ3Jv9qvi4ttK+z GvrU9sTUSomN6BP1ZdkoavjKXCUJOk/fz9aCwTe9rGcEuTiaSy+krC2S2B6lsSS3wA5VB2Ds2H8f EOqtOI51RqqtA8S9l1iYXpm3b3dzH1qMmTtWbJhBiFA9rdNdt+pYyy93mnTJDBO+b1npm4F5fVWT 77vZKNeV6IiPTDCGuLYL/zZ9W2GlgDTZAHRjrbrf74zYefmrGEFo0gQZHtvZKoW76Cw3+pEIQnOk Srz+hh4IeKWGoXU7B+4KZUbp4slyrwF8SThPGVwxU57e8X12JGxVkDropeLF9F+2SvypgY+TU7GY SJ+AMUup5+xGaAooEuxFRIeicF3Xb3LKLLCr8HNKFbh+jxk1eCK7QYgGbQZBb+MKgqewAu6l+tNH gh7C8DJ0x0YTnmjaiJbQrlc2JXIKxfPtJ8EFJblBFEy6hhJSkUuGrM5DhLPljdQqTYn5Ap+TekaA UVhzzzSDhV5jMRW2lr3k5Ut0VpMpuwD4p+lABGuM3qE6SJODi5Ng4fNhWlPvFEEF2bzHLybc+5nl kPTI2SibdcUM81cLWX1bb1Z6exIYJ3ZYQyT4DLAzVWOW3XF+OCNXWTtRwF/92/GMKI5PqutvgZLO GOV/qQz2Vr9J8bvRHUdDrsPiqqB7DoXFP0wJcpm9gdg0sv52YA83+57F9dvOV2x2HRjbS6ue+XWZ XhLAFfN039z8S/C4/hYi08DS/DwjRiSgG98aPxtS1pxut/IVBujYk0aOsfPXQHl2Lns831c++tG5 Y8SFC+m/DxYX8JVqPaqAWV8wphYsUss7F/rVIdsGuHsGc2aFS9WyhAmX1Gw+T8+aagOkv0i8dF49 EGSY1wu2uVsN9zOT0SDeOL+PJCwT/hc+y8QGRVrVq4ozUhVvXMC7M8BA8QEh+qTbju9TlcsxIEiL 3+hqLVTvGfsI8vZthi6ABDbIxWWDWdNYL8oWUUhOjglt+zCcs5Byb8fRhB62Z2yJCSakz7RKNRfO 9/pIAHKn+u6J6otUk5ESKbvfsvFZXzMJsL5YcIGB8/Y8jJQk4992LoUyFPX8de0kh/S/vSIGoGgt 4K7/+SpSXvVkvvfyGIAQFBHqRSPFtBwitxWWbMrzbcPHgNp+KFT4k90BaYs8HN0J8OxjlWDMQZI6 1x7Nf+B/z8wjutCaptYpuZG5wsjEJRx790fEfo+1UlC602miq0S3PzJHd4NhTnuNxW5L4h4cOWEk VsLb8uXp+2JVh5C05XVK/W+DX2hJtesd1Gc8xn12lRLgsTQ75JJcpbuwiHfEErO3cd0wu0lUbh4j pkcNOHBtG4lm7HXDEhzQAIoZ+EnIrwQkEosmc1w0vmsTHWhplCB1G6fy3kb4iBqL2Bx6kYj3oFQ7 aeNp08mVd1bl9AM9HTSde19JjIAagMrWobGvoqqtyv2Tq66Cs8jUrhA1TFjpSusKp/U9MUw6Dsn+ izcGt2jIyokpyeWWAidM07JxKytqUvbZ0694+tnG2cT53qSGidF4OwxVOb+sBDDiBqBxZAm9sru8 JFwD83Z7QkVfrBQqaKk/kZwmET7itxzusqfZilM9+1tmxAEbA3u9mNZIoB5UpxH3RHauOvoAiWBB wDrkRayodPqfLW26pv0JaaTEq3f6v8QjBq1GGlupVJ5de39Snaf/gtrA6BeixlljcHF1tdO2044g +uCVbkQgsevBWn3zuJmZzf2iYveK+Da9EMI/KSbHRqsTT7nftRD8woPzAlUBAsKulhM+59vSbXbH aAj+uNnf6fZ1SnjTHsXFb+lhzdIpsTHhjQwYB/iGk0J7D8jXVgr0Q214yhbzncyjzqi8OEtuD+5Z orZNL2sVGrZmMY0txx5Qz5yxYg1cG4/xzTHb0mgCS9D3r5mirXnTs4Wm3Q90b/HdGoFdPvoDd8R9 wAlp3GStaGvVypSbMtO3EsUViC1gY3yF/OyFqmh1ZtFSDcOQFdFltOnYlDS0cEy5Nw1NPvf8AjUL /+OW19a6MNqiKYoyrbSnYsXD7J14A7OdwynyIOewedyAZEBLvbMuUamC9QQ0AmVmhWQySUq31+yw Dg651C/tmuSQEMD3Sde55ni5bl/ukTpIlDrIczXHY8VURT+GWtZOaPG7NTtyKbOBaKT35epxOlbr mhRdOuThq+zwJ1Ep9ZVYbq0jZHjcE/XWApvXkVjk+8FYjnlf1kYRXSHJBF8g6c7ARq4NSSldW7PJ Ocv3Eq+JNiIpusUJJXwg9KS+Pl+bQpER/TReWTiT1yzA3VitROoO+W+fUH5UPfWBiICkIMwbGhJE 9dUrLrbTssRzL/YbX5wuGtpqnXEGpx5LjfBloizR3h4Y05WxsVMuSbsTuHrZhDZVhOzcPy8SH25y 9qO/KW6Y8fEnxdLOysLZiDd2XSltH9bAnGTZYZhC0G/OIVm79SPzjAXUMuzdReJTF09K8OBH1CBb jQoyYyRZoWOXco05bFPPgUS5HuT8upAzl3laKmHmuk/YncVmZyM3I9g6CSSuD3sAoEMf2eF/fQGM inaqa68AGUGRdRFOcMCDqo+saWzwVqPFC2R1vLW3EQeT3jiMPf+FAN+i1nLY/c59LhvhpIdAPJMv CXOPiJSLThtJwg7KcS9x/uU/MHOXQtCLHVS0WHXZWqjdYXq6YvmzE4wFC5hDN93xFKFYlx5hnX1J UOdsR0ncagJSJrzecXR14yNkQILoH6qv9ELNyMEb6dEwgVdzqW7t/spw+VRH2h6uDuESiDLemnQH uxCimzvx/3o/SmrQv6NFX9svHgMvXW81esLyicZ6zeUFb4C/Mh0r6gVXFGqkwM5Tj8QykZiwAC6V HvrbjF7QYblRZzZIO28mXEKBvH8GFG3Ml8Y0BqHZSB9oiNcdJkVc2PJ/A1zDvQaGlDtVrNjoFmHx xin8ptPdWlEtieLrEarwVP/nUUTp1Ewyq0rXnAfI/Kehq/HrAGalZiMxIyWWjzqKqD5Uo1MnWANU qv2f54JI6iPGPGMWx9aw103PIIaCYwu8vQ15Betz/nBxzRIEk6HjqarIZiNtcMC2+Xc6lEfslmaG WuHJpUz1rUirLhiapkeIBBwztd/YtGNLnRyqSfkbFGJacq8v4WIkqs9L8lTZdMK0L3AQ9f//UEfV Xygy0KaOHn8GxNXhVjyv7CH2KcIkhj21HrasIw7chvjv8UfXhIK6pVRDhj+VZIQE7TlDKiwtNvVz s6UNl4xZeHgGykHfVULrBKKcI7GVTGwDkhiKjlRKyZLTyzKGi529/O2kBj2Vcu3v97NWl/RSTXmO MiLEqGSZMzxfqVMEUBjEMEXhWI0tJof0SCcCmORGN8fUsHrZs4mn6qoJn5TKLr3bd0WVTxw5w9UZ haoPDxonx+8t4ws22/1t7EMiW+GscAuGnP2AUdi6qhbfS0s/y6iGs6dKKG9jwSGCuBhH5FF6xBMi QUII6EGx8wZ6BUdBB9jc7ObEosUJ+3qJtndpHq3QYw4DjIja5mVEz1SM1YNtxFLYgKCneteteHEx Ij/magrJEXgNXrSEWopxk+zy9tBXwCF9JFP6b6Z7qYa8/ZprKhGcFfTRrYQBXXRC4mk3GNm3Wdsb 6+z8ZjmA+U0KKxMBtAGVsceUIJUiMV7nqj8BeHI56VVi7C5v/Z6QAGFxk1Iwl2UsrRxtnDm2lZfH yijY7T/ApDrdv2rOPnYU/9E1J7K2EmOt2fHgIALQ8OK23c4f9s6YO+REIvInhdw+tkTKsW4AC2tj YZv9hxhJX2mP5AnuGTfeum7lfbzcEpJsSkHizJWuXH6IXK2ToC1ujGJ9bcS2OBBmuh+X4PezaKBB 3QSuEUTu08a5UmqUBJ7XQ7Q3eAu87C/JRbbJ0eE7pcvPNNVv//RWan1ld5a6oKvk4t3Zp4sNl8gh qW+VKTy6gc4AvbvQH6OKSeWzK8xAJOsXJ04PMg7VJWUyfa8jixMXzx34K7l3C822XIn3v0KU54oH 3Vw/xtimyDqLNy96mxhFM5zAuGG9uL0PQK4KUMYoIqUzmD5jE9qMo6Y+cDvwlhDHqNHMYMF7KWS6 ZOYQNm+BKHJrJRbZ++bpqZWt2DlzZM4hU4/V1aQ2tZKfUYt6iA3E07ptypmeowM/mB6G1t6Ey82z acu2fJVFammwS3K+vNEMQWRCt/aclXyyNpW92Vl0U4bmmpcbDNBooG/f33OlqfMVlAX9BODCoknu cMxNiBxIxg10+FGAAfpLlra5XGJ0hjmLbeaqtyPHHBYhcBGrCBVqIwqx1ZHIm7yKVqDMs5OJma2O Pk6P87f6y/iNxTuKpowAyPUWEDrxXvpcJqUEQthKvPzK3nT74bseQScUrcVePfXoHSNHB7f7tSr8 zMN6qsGOznhlOrIZPy0dfXVI+y4fy+16FPyat+04iQk+eqjcGwiQBI1vaWvLDRyclq82Jk22J0zv f4e8abPKmhRqAda0igZ5Z9kLwXQ74h6N1T7m53dx/2VBarr0TGlFpSv3UXEHJY/k5GGfSGcZ12Po lNYlTjGizM7xBtyFTLvdqaxg+SaOp3TFOQxiOjTcAaaJoS2TifQrf0M2vHJFjqFouFt8+nnjSisC XY0zu9KkDWSRW27QYwvWxl0lLucZosNwuPAUWNP/pXd0yh5L/nQo7/2DjfU/MsgIk0qSfuK1rmmt 7Hbs+a67qe+2sdXrIjxZcFTHt5XsZoNEweM7Z6zIE5prMrFK0vi55FLX661vz6FWk+8UkmA3sMPB xo8XN0+6SeNdSPfU4JL2j51Ez0Fc4guDfwGI+tWJ7FqU2spZ0N2ScV5ydpjNaf5NLFpBf8zmYdHE 6tCL2Czeon8K0u6DylZ/5JEcCnRsmJsjMkNEY6+ZFohP2QfDa2JH2Cw3zqyyn7atdXkpiRNVvPqq uC6dXSLeYJXrYjaN9pgAf/8CrHN1YwNLczDBJfPSmXpq356TMYfxGwszYTyCRIbA6OWKP/gbUetj xrvvJe/e0QUhJUhUGuRtKRZBb55Sdc1juL+Y4ihcX75/lSMooKAlXHim6H92fUJwC6xBB4cN6/4L mL2XYPfrobtiX6JV/s2Ti7smZ2gmazQrs0u2K8Yr0Y7Zt418BcLVQRxXkD5QNrtvyvQJt9M/pvCb yt+i8I8WP1xdYxN1U1Wk7UPEY6pCLoDYSzzcQHfbgX7DroNcj43zlLGMcfncMw8uHJcKMG5B/Mpf In7SDcQx7JOljIigx1Tz9G9fC7qXbHHSUuvdkzyc2Kqs1xD5tUsMBD4pk/USJx87IYrblN/oVPvn MlUYtkBcXTBy5cB6gkYXf3sm5mj/ye5Jx3lt38EhrYLnwZ7+SIVbtSYRLbhUHoky/+wf9vtw8x2N hy7VKs921PXCsqOCMUiZegINUxVhC1359wRPfuawdqdNQckvT45K44wIl8KyGbMsAXr0IJeDMEQw i00hCHIq5TYafmp7bL1QLKo0TSL6kSgfyOHotYG7z44ovEctQlTy5Feamz36zvWqSO0Qv9qFNr9N uKQoYqfNYPske0H+nSJ+b9LpEbrL/Q/8D3mZ8ztf3HQ98lHa3TmVTtfQp2TJE237PARproEAItKv R8vbn8qOkUFKEeWz9LBw9y6gfXki9ZOcKy1cLGRc/o6liGRuB4zvjRoY+sv6Fkxb/LNHbE1xmnto ZyUxUp2CJGkIvlrt3lDk4k/npfLf2t1XFt3jKzG7HKF7iytQ1CjiF3PE8ePWpfuAWiiOhWiHaPaY OonwQP1KtkQoWP2VKqFR1iqKQV5iAqe2LOzC0e7QJF8YqfV5apUqZ6n9kWHdlCm1BLrDS9DfIpKd cDFu9ogHNG3Pph0PqUStj62YRflwWx71fAvPldfbGlAG0iRfAtZlxBl48BPZOO8jnJyTbmjg/5im VZ9tZ92ctzzOGLvGig4x+iO09wUR5Sm5OR24pRv9sb1m3YfmK4CitC7qxGciVBN06/FbtQaXAipX 98frT8+m2ntqOaw/v5AnHTifuTur+OaSNvc7+fZRJY5/k0QBFwjVrXrR30p8uxSawa7HL9e2ur+/ wWlwCTV9mUWDWop2wifNWTyCyeKR/74PEH0skv235nBIEZs1vatEPib8Ec65CLzFqaYHCNTC+qu5 c3twXVq0m39fpXUogHvEbryrCbETRFcoROLkMWXAiZMhX3LbmZ64Q1FEHPzqHdkgQ1OwPtciEAl5 Gl55CfZ7VPwvjfXtYDe9PfeiL00I9cZtUhqb1wNYbCbbBbvwqG8s/cjE6yXALvd4y2eZHxkI6mNW /dc1fwuPu/E3s1FjD4RrmtHjckT1EGyC+yrJ1Uk+Sk86GfSXlhnPYp9qN2M8wyKu1tS5s6h1VzVk tky0DSHjQjXv0mbsXGxa5snoNTCUzR9YIkiPLOihwgVRrMRJzWwvhuihlmbOe+pNmd/gByLEBrPE 6ThtpsGf4UYx3maIHzo/P8noBVJAq1ArD5vy30c1oqteZAZsKUa3Y1GYMtHLYuUnvm9xVfwrTHTW II+tGl7hAhbpU409zCmke02WmdiiddQXAKrd5P09Bc8WbgcBGUbfoK2TWKWFAAY+ELGGYpFUL9bF ErPUi4p6uTievuardGj04AAShQaj0bz8sQOobVHcY/dN6qEmne9x6TRcKIBtz8EMCKiGb9+a9l7V 3yvBtzwLEQJUtbwd6cnr98WAS96BLnEkIzGJW7ySoKnrQYXrIpveT+A= `protect end_protected
-- Generation properties: -- Format : flat -- Generic mappings : exclude -- Leaf-level entities : direct binding -- Regular libraries : use work -- View name : include -- library work; configuration r65c02_tc_config of R65C02_TC is for struct for all : core use entity work.core(struct); for struct for all : regbank_axy use entity work.regbank_axy(struct); for struct end for; end for; for all : reg_pc use entity work.reg_pc(struct); for struct end for; end for; for all : reg_sp use entity work.reg_sp(struct); for struct end for; end for; for all : fsm_execution_unit use entity work.fsm_execution_unit(fsm); end for; for all : fsm_intnmi use entity work.fsm_intnmi(fsm); end for; end for; end for; end for; end r65c02_tc_config;
library ieee; use ieee.std_logic_1164.all; use ieee.numeric_std.all; library work; use work.usb_pkg.all; use work.tl_vector_pkg.all; use work.tl_string_util_pkg.all; use work.tl_flat_memory_model_pkg.all; entity tb_ulpi_host is end ; architecture tb of tb_ulpi_host is signal clock : std_logic := '0'; signal reset : std_logic; signal descr_addr : std_logic_vector(8 downto 0); signal descr_rdata : std_logic_vector(31 downto 0); signal descr_wdata : std_logic_vector(31 downto 0); signal descr_en : std_logic; signal descr_we : std_logic; signal buf_addr : std_logic_vector(11 downto 0); signal buf_rdata : std_logic_vector(7 downto 0); signal buf_wdata : std_logic_vector(7 downto 0); signal buf_en : std_logic; signal buf_we : std_logic; signal tx_busy : std_logic; signal tx_ack : std_logic; signal send_token : std_logic; signal send_handsh : std_logic; signal tx_pid : std_logic_vector(3 downto 0); signal tx_token : std_logic_vector(10 downto 0); signal send_data : std_logic; signal no_data : std_logic; signal user_data : std_logic_vector(7 downto 0); signal user_last : std_logic; signal user_valid : std_logic; signal user_next : std_logic; signal rx_pid : std_logic_vector(3 downto 0) := X"0"; signal rx_token : std_logic_vector(10 downto 0) := (others => '0'); signal valid_token : std_logic := '0'; signal valid_handsh : std_logic := '0'; signal valid_packet : std_logic := '0'; signal data_valid : std_logic := '0'; signal data_start : std_logic := '0'; signal data_out : std_logic_vector(7 downto 0) := X"12"; signal rx_error : std_logic := '0'; begin i_mut: entity work.ulpi_host port map ( clock => clock, reset => reset, -- Descriptor RAM interface descr_addr => descr_addr, descr_rdata => descr_rdata, descr_wdata => descr_wdata, descr_en => descr_en, descr_we => descr_we, -- Buffer RAM interface buf_addr => buf_addr, buf_rdata => buf_rdata, buf_wdata => buf_wdata, buf_en => buf_en, buf_we => buf_we, -- Transmit Path Interface tx_busy => tx_busy, tx_ack => tx_ack, -- Interface to send tokens and handshakes send_token => send_token, send_handsh => send_handsh, tx_pid => tx_pid, tx_token => tx_token, -- Interface to send data packets send_data => send_data, no_data => no_data, user_data => user_data, user_last => user_last, user_valid => user_valid, user_next => user_next, do_reset => open, power_en => open, reset_done => '1', speed => "10", reset_pkt => '0', reset_data => X"00", reset_last => '0', reset_valid => '0', -- Receive Path Interface rx_pid => rx_pid, rx_token => rx_token, valid_token => valid_token, valid_handsh => valid_handsh, valid_packet => valid_packet, data_valid => data_valid, data_start => data_start, data_out => data_out, rx_error => rx_error ); clock <= not clock after 10 ns; reset <= '1', '0' after 100 ns; i_descr_ram: entity work.bram_model_32sp generic map("descriptors", 9) port map ( CLK => clock, SSR => reset, EN => descr_en, WE => descr_we, ADDR => descr_addr, DI => descr_wdata, DO => descr_rdata ); i_buf_ram: entity work.bram_model_8sp generic map("buffer", 12) port map ( CLK => clock, SSR => reset, EN => buf_en, WE => buf_we, ADDR => buf_addr, DI => buf_wdata, DO => buf_rdata ); b_tx_bfm: block signal tx_delay : integer range 0 to 31 := 0; begin process(clock) begin if rising_edge(clock) then tx_ack <= '0'; user_next <= '0'; if tx_delay = 28 then -- transmit packet user_next <= '1'; if user_last='1' and user_valid='1' then tx_delay <= 0; -- done; user_next <= '0'; end if; elsif tx_delay = 0 then if send_token='1' then tx_delay <= 6; tx_ack <= '1'; elsif send_handsh='1' then tx_delay <= 4; tx_ack <= '1'; elsif send_data='1' then tx_ack <= '1'; if no_data='1' then tx_delay <= 5; else tx_delay <= 31; end if; end if; else tx_delay <= tx_delay - 1; end if; end if; end process; tx_busy <= '0' when tx_delay = 0 else '1'; end block; p_test: process variable desc : h_mem_object; variable buf : h_mem_object; procedure packet(pkt : t_std_logic_8_vector) is begin for i in pkt'range loop wait until clock='1'; data_out <= pkt(i); data_valid <= '1'; if i = pkt'left then data_start <= '1'; else data_start <= '0'; end if; end loop; wait until clock='1'; data_valid <= '0'; data_start <= '0'; wait until clock='1'; wait until clock='1'; wait until clock='1'; end procedure packet; begin bind_mem_model("descriptors", desc); bind_mem_model("buffer", buf); wait until reset='0'; write_memory_32(desc, X"0000_0100", t_transaction_to_data(( transaction_type => control, state => busy, -- activate pipe_pointer => "00000", transfer_length => to_unsigned(8, 11), buffer_address => to_unsigned(100, 12) ))); write_memory_32(desc, X"0000_0104", t_transaction_to_data(( transaction_type => bulk, state => busy, -- activate pipe_pointer => "00001", transfer_length => to_unsigned(60, 11), buffer_address => to_unsigned(256, 12) ))); write_memory_32(desc, X"0000_0000", t_pipe_to_data(( state => initialized, direction => dir_out, device_address => (others => '0'), device_endpoint => (others => '0'), max_transfer => to_unsigned(64, 11), data_toggle => '0' ) )); write_memory_32(desc, X"0000_0004", t_pipe_to_data(( state => initialized, direction => dir_out, device_address => (others => '0'), device_endpoint => (others => '0'), max_transfer => to_unsigned(8, 11), data_toggle => '0' ) )); for i in 0 to 7 loop write_memory_8(buf, std_logic_vector(to_unsigned(100+i,32)), std_logic_vector(to_unsigned(33+i,8))); end loop; wait until tx_busy='0'; -- first sof token wait until tx_busy='0'; -- setup token wait until tx_busy='0'; -- setup data wait until tx_busy='0'; -- retried setup token wait until tx_busy='0'; -- retried setup data wait until clock='1'; wait until clock='1'; wait until clock='1'; wait until clock='1'; wait until clock='1'; valid_handsh <= '1'; rx_pid <= c_pid_ack; wait until clock='1'; valid_handsh <= '0'; -- control out for i in 0 to 7 loop wait until tx_busy='0'; -- out token wait until tx_busy='0'; -- out data wait until clock='1'; wait until clock='1'; wait until clock='1'; valid_handsh <= '1'; rx_pid <= c_pid_ack; wait until clock='1'; valid_handsh <= '0'; end loop; wait until tx_busy='0'; -- in token assert tx_pid = c_pid_in report "Expected in token! (pid = " & hstr(tx_pid) & ")" severity error; wait until clock='1'; wait until clock='1'; wait until clock='1'; valid_packet <= '1'; wait until clock='1'; valid_packet <= '0'; -- -- control in.. -- wait until send_token='1'; -- wait until tx_busy='0'; -- in token done -- wait until clock='1'; -- wait until clock='1'; -- wait until clock='1'; -- packet((X"01", X"02", X"03", X"04", X"05", X"06")); -- valid_packet <= '1'; -- wait until clock='1'; -- valid_packet <= '0'; wait; end process; end tb;
library ieee; use ieee.std_logic_1164.all; use ieee.numeric_std.all; library work; use work.usb_pkg.all; use work.tl_vector_pkg.all; use work.tl_string_util_pkg.all; use work.tl_flat_memory_model_pkg.all; entity tb_ulpi_host is end ; architecture tb of tb_ulpi_host is signal clock : std_logic := '0'; signal reset : std_logic; signal descr_addr : std_logic_vector(8 downto 0); signal descr_rdata : std_logic_vector(31 downto 0); signal descr_wdata : std_logic_vector(31 downto 0); signal descr_en : std_logic; signal descr_we : std_logic; signal buf_addr : std_logic_vector(11 downto 0); signal buf_rdata : std_logic_vector(7 downto 0); signal buf_wdata : std_logic_vector(7 downto 0); signal buf_en : std_logic; signal buf_we : std_logic; signal tx_busy : std_logic; signal tx_ack : std_logic; signal send_token : std_logic; signal send_handsh : std_logic; signal tx_pid : std_logic_vector(3 downto 0); signal tx_token : std_logic_vector(10 downto 0); signal send_data : std_logic; signal no_data : std_logic; signal user_data : std_logic_vector(7 downto 0); signal user_last : std_logic; signal user_valid : std_logic; signal user_next : std_logic; signal rx_pid : std_logic_vector(3 downto 0) := X"0"; signal rx_token : std_logic_vector(10 downto 0) := (others => '0'); signal valid_token : std_logic := '0'; signal valid_handsh : std_logic := '0'; signal valid_packet : std_logic := '0'; signal data_valid : std_logic := '0'; signal data_start : std_logic := '0'; signal data_out : std_logic_vector(7 downto 0) := X"12"; signal rx_error : std_logic := '0'; begin i_mut: entity work.ulpi_host port map ( clock => clock, reset => reset, -- Descriptor RAM interface descr_addr => descr_addr, descr_rdata => descr_rdata, descr_wdata => descr_wdata, descr_en => descr_en, descr_we => descr_we, -- Buffer RAM interface buf_addr => buf_addr, buf_rdata => buf_rdata, buf_wdata => buf_wdata, buf_en => buf_en, buf_we => buf_we, -- Transmit Path Interface tx_busy => tx_busy, tx_ack => tx_ack, -- Interface to send tokens and handshakes send_token => send_token, send_handsh => send_handsh, tx_pid => tx_pid, tx_token => tx_token, -- Interface to send data packets send_data => send_data, no_data => no_data, user_data => user_data, user_last => user_last, user_valid => user_valid, user_next => user_next, do_reset => open, power_en => open, reset_done => '1', speed => "10", reset_pkt => '0', reset_data => X"00", reset_last => '0', reset_valid => '0', -- Receive Path Interface rx_pid => rx_pid, rx_token => rx_token, valid_token => valid_token, valid_handsh => valid_handsh, valid_packet => valid_packet, data_valid => data_valid, data_start => data_start, data_out => data_out, rx_error => rx_error ); clock <= not clock after 10 ns; reset <= '1', '0' after 100 ns; i_descr_ram: entity work.bram_model_32sp generic map("descriptors", 9) port map ( CLK => clock, SSR => reset, EN => descr_en, WE => descr_we, ADDR => descr_addr, DI => descr_wdata, DO => descr_rdata ); i_buf_ram: entity work.bram_model_8sp generic map("buffer", 12) port map ( CLK => clock, SSR => reset, EN => buf_en, WE => buf_we, ADDR => buf_addr, DI => buf_wdata, DO => buf_rdata ); b_tx_bfm: block signal tx_delay : integer range 0 to 31 := 0; begin process(clock) begin if rising_edge(clock) then tx_ack <= '0'; user_next <= '0'; if tx_delay = 28 then -- transmit packet user_next <= '1'; if user_last='1' and user_valid='1' then tx_delay <= 0; -- done; user_next <= '0'; end if; elsif tx_delay = 0 then if send_token='1' then tx_delay <= 6; tx_ack <= '1'; elsif send_handsh='1' then tx_delay <= 4; tx_ack <= '1'; elsif send_data='1' then tx_ack <= '1'; if no_data='1' then tx_delay <= 5; else tx_delay <= 31; end if; end if; else tx_delay <= tx_delay - 1; end if; end if; end process; tx_busy <= '0' when tx_delay = 0 else '1'; end block; p_test: process variable desc : h_mem_object; variable buf : h_mem_object; procedure packet(pkt : t_std_logic_8_vector) is begin for i in pkt'range loop wait until clock='1'; data_out <= pkt(i); data_valid <= '1'; if i = pkt'left then data_start <= '1'; else data_start <= '0'; end if; end loop; wait until clock='1'; data_valid <= '0'; data_start <= '0'; wait until clock='1'; wait until clock='1'; wait until clock='1'; end procedure packet; begin bind_mem_model("descriptors", desc); bind_mem_model("buffer", buf); wait until reset='0'; write_memory_32(desc, X"0000_0100", t_transaction_to_data(( transaction_type => control, state => busy, -- activate pipe_pointer => "00000", transfer_length => to_unsigned(8, 11), buffer_address => to_unsigned(100, 12) ))); write_memory_32(desc, X"0000_0104", t_transaction_to_data(( transaction_type => bulk, state => busy, -- activate pipe_pointer => "00001", transfer_length => to_unsigned(60, 11), buffer_address => to_unsigned(256, 12) ))); write_memory_32(desc, X"0000_0000", t_pipe_to_data(( state => initialized, direction => dir_out, device_address => (others => '0'), device_endpoint => (others => '0'), max_transfer => to_unsigned(64, 11), data_toggle => '0' ) )); write_memory_32(desc, X"0000_0004", t_pipe_to_data(( state => initialized, direction => dir_out, device_address => (others => '0'), device_endpoint => (others => '0'), max_transfer => to_unsigned(8, 11), data_toggle => '0' ) )); for i in 0 to 7 loop write_memory_8(buf, std_logic_vector(to_unsigned(100+i,32)), std_logic_vector(to_unsigned(33+i,8))); end loop; wait until tx_busy='0'; -- first sof token wait until tx_busy='0'; -- setup token wait until tx_busy='0'; -- setup data wait until tx_busy='0'; -- retried setup token wait until tx_busy='0'; -- retried setup data wait until clock='1'; wait until clock='1'; wait until clock='1'; wait until clock='1'; wait until clock='1'; valid_handsh <= '1'; rx_pid <= c_pid_ack; wait until clock='1'; valid_handsh <= '0'; -- control out for i in 0 to 7 loop wait until tx_busy='0'; -- out token wait until tx_busy='0'; -- out data wait until clock='1'; wait until clock='1'; wait until clock='1'; valid_handsh <= '1'; rx_pid <= c_pid_ack; wait until clock='1'; valid_handsh <= '0'; end loop; wait until tx_busy='0'; -- in token assert tx_pid = c_pid_in report "Expected in token! (pid = " & hstr(tx_pid) & ")" severity error; wait until clock='1'; wait until clock='1'; wait until clock='1'; valid_packet <= '1'; wait until clock='1'; valid_packet <= '0'; -- -- control in.. -- wait until send_token='1'; -- wait until tx_busy='0'; -- in token done -- wait until clock='1'; -- wait until clock='1'; -- wait until clock='1'; -- packet((X"01", X"02", X"03", X"04", X"05", X"06")); -- valid_packet <= '1'; -- wait until clock='1'; -- valid_packet <= '0'; wait; end process; end tb;
library ieee; use ieee.std_logic_1164.all; use ieee.numeric_std.all; library work; use work.usb_pkg.all; use work.tl_vector_pkg.all; use work.tl_string_util_pkg.all; use work.tl_flat_memory_model_pkg.all; entity tb_ulpi_host is end ; architecture tb of tb_ulpi_host is signal clock : std_logic := '0'; signal reset : std_logic; signal descr_addr : std_logic_vector(8 downto 0); signal descr_rdata : std_logic_vector(31 downto 0); signal descr_wdata : std_logic_vector(31 downto 0); signal descr_en : std_logic; signal descr_we : std_logic; signal buf_addr : std_logic_vector(11 downto 0); signal buf_rdata : std_logic_vector(7 downto 0); signal buf_wdata : std_logic_vector(7 downto 0); signal buf_en : std_logic; signal buf_we : std_logic; signal tx_busy : std_logic; signal tx_ack : std_logic; signal send_token : std_logic; signal send_handsh : std_logic; signal tx_pid : std_logic_vector(3 downto 0); signal tx_token : std_logic_vector(10 downto 0); signal send_data : std_logic; signal no_data : std_logic; signal user_data : std_logic_vector(7 downto 0); signal user_last : std_logic; signal user_valid : std_logic; signal user_next : std_logic; signal rx_pid : std_logic_vector(3 downto 0) := X"0"; signal rx_token : std_logic_vector(10 downto 0) := (others => '0'); signal valid_token : std_logic := '0'; signal valid_handsh : std_logic := '0'; signal valid_packet : std_logic := '0'; signal data_valid : std_logic := '0'; signal data_start : std_logic := '0'; signal data_out : std_logic_vector(7 downto 0) := X"12"; signal rx_error : std_logic := '0'; begin i_mut: entity work.ulpi_host port map ( clock => clock, reset => reset, -- Descriptor RAM interface descr_addr => descr_addr, descr_rdata => descr_rdata, descr_wdata => descr_wdata, descr_en => descr_en, descr_we => descr_we, -- Buffer RAM interface buf_addr => buf_addr, buf_rdata => buf_rdata, buf_wdata => buf_wdata, buf_en => buf_en, buf_we => buf_we, -- Transmit Path Interface tx_busy => tx_busy, tx_ack => tx_ack, -- Interface to send tokens and handshakes send_token => send_token, send_handsh => send_handsh, tx_pid => tx_pid, tx_token => tx_token, -- Interface to send data packets send_data => send_data, no_data => no_data, user_data => user_data, user_last => user_last, user_valid => user_valid, user_next => user_next, do_reset => open, power_en => open, reset_done => '1', speed => "10", reset_pkt => '0', reset_data => X"00", reset_last => '0', reset_valid => '0', -- Receive Path Interface rx_pid => rx_pid, rx_token => rx_token, valid_token => valid_token, valid_handsh => valid_handsh, valid_packet => valid_packet, data_valid => data_valid, data_start => data_start, data_out => data_out, rx_error => rx_error ); clock <= not clock after 10 ns; reset <= '1', '0' after 100 ns; i_descr_ram: entity work.bram_model_32sp generic map("descriptors", 9) port map ( CLK => clock, SSR => reset, EN => descr_en, WE => descr_we, ADDR => descr_addr, DI => descr_wdata, DO => descr_rdata ); i_buf_ram: entity work.bram_model_8sp generic map("buffer", 12) port map ( CLK => clock, SSR => reset, EN => buf_en, WE => buf_we, ADDR => buf_addr, DI => buf_wdata, DO => buf_rdata ); b_tx_bfm: block signal tx_delay : integer range 0 to 31 := 0; begin process(clock) begin if rising_edge(clock) then tx_ack <= '0'; user_next <= '0'; if tx_delay = 28 then -- transmit packet user_next <= '1'; if user_last='1' and user_valid='1' then tx_delay <= 0; -- done; user_next <= '0'; end if; elsif tx_delay = 0 then if send_token='1' then tx_delay <= 6; tx_ack <= '1'; elsif send_handsh='1' then tx_delay <= 4; tx_ack <= '1'; elsif send_data='1' then tx_ack <= '1'; if no_data='1' then tx_delay <= 5; else tx_delay <= 31; end if; end if; else tx_delay <= tx_delay - 1; end if; end if; end process; tx_busy <= '0' when tx_delay = 0 else '1'; end block; p_test: process variable desc : h_mem_object; variable buf : h_mem_object; procedure packet(pkt : t_std_logic_8_vector) is begin for i in pkt'range loop wait until clock='1'; data_out <= pkt(i); data_valid <= '1'; if i = pkt'left then data_start <= '1'; else data_start <= '0'; end if; end loop; wait until clock='1'; data_valid <= '0'; data_start <= '0'; wait until clock='1'; wait until clock='1'; wait until clock='1'; end procedure packet; begin bind_mem_model("descriptors", desc); bind_mem_model("buffer", buf); wait until reset='0'; write_memory_32(desc, X"0000_0100", t_transaction_to_data(( transaction_type => control, state => busy, -- activate pipe_pointer => "00000", transfer_length => to_unsigned(8, 11), buffer_address => to_unsigned(100, 12) ))); write_memory_32(desc, X"0000_0104", t_transaction_to_data(( transaction_type => bulk, state => busy, -- activate pipe_pointer => "00001", transfer_length => to_unsigned(60, 11), buffer_address => to_unsigned(256, 12) ))); write_memory_32(desc, X"0000_0000", t_pipe_to_data(( state => initialized, direction => dir_out, device_address => (others => '0'), device_endpoint => (others => '0'), max_transfer => to_unsigned(64, 11), data_toggle => '0' ) )); write_memory_32(desc, X"0000_0004", t_pipe_to_data(( state => initialized, direction => dir_out, device_address => (others => '0'), device_endpoint => (others => '0'), max_transfer => to_unsigned(8, 11), data_toggle => '0' ) )); for i in 0 to 7 loop write_memory_8(buf, std_logic_vector(to_unsigned(100+i,32)), std_logic_vector(to_unsigned(33+i,8))); end loop; wait until tx_busy='0'; -- first sof token wait until tx_busy='0'; -- setup token wait until tx_busy='0'; -- setup data wait until tx_busy='0'; -- retried setup token wait until tx_busy='0'; -- retried setup data wait until clock='1'; wait until clock='1'; wait until clock='1'; wait until clock='1'; wait until clock='1'; valid_handsh <= '1'; rx_pid <= c_pid_ack; wait until clock='1'; valid_handsh <= '0'; -- control out for i in 0 to 7 loop wait until tx_busy='0'; -- out token wait until tx_busy='0'; -- out data wait until clock='1'; wait until clock='1'; wait until clock='1'; valid_handsh <= '1'; rx_pid <= c_pid_ack; wait until clock='1'; valid_handsh <= '0'; end loop; wait until tx_busy='0'; -- in token assert tx_pid = c_pid_in report "Expected in token! (pid = " & hstr(tx_pid) & ")" severity error; wait until clock='1'; wait until clock='1'; wait until clock='1'; valid_packet <= '1'; wait until clock='1'; valid_packet <= '0'; -- -- control in.. -- wait until send_token='1'; -- wait until tx_busy='0'; -- in token done -- wait until clock='1'; -- wait until clock='1'; -- wait until clock='1'; -- packet((X"01", X"02", X"03", X"04", X"05", X"06")); -- valid_packet <= '1'; -- wait until clock='1'; -- valid_packet <= '0'; wait; end process; end tb;
--------------------------------------------------- -- School: University of Massachusetts Dartmouth -- Department: Computer and Electrical Engineering -- Class: ECE 368 Digital Design -- Engineer: [Engineer 1] -- [Engineer 2] -- -- Create Date: [Date] -- Module Name: [Module Name] -- Project Name: [Project Name] -- Target Devices: Spartan-3E -- Tool versions: Xilinx ISE 14.7 -- -- Description: -- [Insert Description] -- -- Notes: -- [Insert Notes] -- -- Revision: -- [Insert Revision] -- --------------------------------------------------- library IEEE; use IEEE.STD_LOGIC_1164.ALL; entity [Name] is generic( [VariableName]:integer:=8 ); port ( CLK : in STD_LOGIC; [IN_Port0] : in STD_LOGIC; [IN_Port1] : in STD_LOGIC_VECTOR (DATA_WIDTH-1 downto 0); [OUT_Port0] : out STD_LOGIC; [OUT_Port1] : out STD_LOGIC_VECTOR (DATA_WIDTH-1 downto 0) ); end [Name]; architecture Behavioral of [Name] is begin process (CLK) begin if (CLK'event and CLK='0') then [IN_Port1] <= [OUT_Port1]; end if; end process; end Behavioral;
---------------------------------------------------------------------------------- -- Company: -- Engineer: -- -- Create Date: 23:44:37 05/17/2011 -- Design Name: -- Module Name: spi_loopback - Behavioral -- Project Name: -- Target Devices: -- Tool versions: -- Description: -- This is a simple wrapper for the 'spi_master' and 'spi_slave' cores, to synthesize the 2 cores and -- test them in the simulator. -- -- Dependencies: -- -- Revision: -- Revision 0.01 - File Created -- Additional Comments: -- ---------------------------------------------------------------------------------- library ieee; use ieee.std_logic_1164.all; library work; use work.all; entity spi_loopback is Generic ( N : positive := 32; -- 32bit serial word length is default CPOL : std_logic := '0'; -- SPI mode selection (mode 0 default) CPHA : std_logic := '1'; -- CPOL = clock polarity, CPHA = clock phase. PREFETCH : positive := 2; -- prefetch lookahead cycles SPI_2X_CLK_DIV : positive := 5 -- for a 100MHz sclk_i, yields a 10MHz SCK ); Port( ----------------MASTER----------------------- m_clk_i : IN std_logic; m_rst_i : IN std_logic; m_spi_ssel_o : OUT std_logic; m_spi_sck_o : OUT std_logic; m_spi_mosi_o : OUT std_logic; m_spi_miso_i : IN std_logic; m_di_req_o : OUT std_logic; m_di_i : IN std_logic_vector(N-1 downto 0); m_wren_i : IN std_logic; m_do_valid_o : OUT std_logic; m_do_o : OUT std_logic_vector(N-1 downto 0); ----- debug ----- m_do_transfer_o : OUT std_logic; m_wren_o : OUT std_logic; m_wren_ack_o : OUT std_logic; m_rx_bit_reg_o : OUT std_logic; m_state_dbg_o : OUT std_logic_vector(5 downto 0); m_core_clk_o : OUT std_logic; m_core_n_clk_o : OUT std_logic; m_sh_reg_dbg_o : OUT std_logic_vector(N-1 downto 0); ----------------SLAVE----------------------- s_clk_i : IN std_logic; s_spi_ssel_i : IN std_logic; s_spi_sck_i : IN std_logic; s_spi_mosi_i : IN std_logic; s_spi_miso_o : OUT std_logic; s_di_req_o : OUT std_logic; -- preload lookahead data request line s_di_i : IN std_logic_vector (N-1 downto 0) := (others => 'X'); -- parallel load data in (clocked in on rising edge of clk_i) s_wren_i : IN std_logic := 'X'; -- user data write enable s_do_valid_o : OUT std_logic; -- do_o data valid strobe, valid during one clk_i rising edge. s_do_o : OUT std_logic_vector (N-1 downto 0); -- parallel output (clocked out on falling clk_i) ----- debug ----- s_do_transfer_o : OUT std_logic; -- debug: internal transfer driver s_wren_o : OUT std_logic; s_wren_ack_o : OUT std_logic; s_rx_bit_reg_o : OUT std_logic; s_state_dbg_o : OUT std_logic_vector (5 downto 0) -- debug: internal state register -- s_sh_reg_dbg_o : OUT std_logic_vector (N-1 downto 0) -- debug: internal shift register ); end spi_loopback; architecture Structural of spi_loopback is begin --============================================================================================= -- Component instantiation for the SPI master port --============================================================================================= Inst_spi_master: entity work.spi_master(rtl) generic map (N => N, CPOL => CPOL, CPHA => CPHA, PREFETCH => PREFETCH, SPI_2X_CLK_DIV => SPI_2X_CLK_DIV) port map( sclk_i => m_clk_i, -- system clock is used for serial and parallel ports pclk_i => m_clk_i, rst_i => m_rst_i, spi_ssel_o => m_spi_ssel_o, spi_sck_o => m_spi_sck_o, spi_mosi_o => m_spi_mosi_o, spi_miso_i => m_spi_miso_i, di_req_o => m_di_req_o, di_i => m_di_i, wren_i => m_wren_i, do_valid_o => m_do_valid_o, do_o => m_do_o, ----- debug ----- do_transfer_o => m_do_transfer_o, wren_o => m_wren_o, wren_ack_o => m_wren_ack_o, rx_bit_reg_o => m_rx_bit_reg_o, state_dbg_o => m_state_dbg_o, core_clk_o => m_core_clk_o, core_n_clk_o => m_core_n_clk_o, sh_reg_dbg_o => m_sh_reg_dbg_o ); --============================================================================================= -- Component instantiation for the SPI slave port --============================================================================================= Inst_spi_slave: entity work.spi_slave(rtl) generic map (N => N, CPOL => CPOL, CPHA => CPHA, PREFETCH => PREFETCH) port map( clk_i => s_clk_i, spi_ssel_i => s_spi_ssel_i, spi_sck_i => s_spi_sck_i, spi_mosi_i => s_spi_mosi_i, spi_miso_o => s_spi_miso_o, di_req_o => s_di_req_o, di_i => s_di_i, wren_i => s_wren_i, do_valid_o => s_do_valid_o, do_o => s_do_o, ----- debug ----- do_transfer_o => s_do_transfer_o, wren_o => s_wren_o, wren_ack_o => s_wren_ack_o, rx_bit_reg_o => s_rx_bit_reg_o, state_dbg_o => s_state_dbg_o -- sh_reg_dbg_o => s_sh_reg_dbg_o ); end Structural;
---------------------------------------------------------------------------------- -- Company: -- Engineer: -- -- Create Date: 23:44:37 05/17/2011 -- Design Name: -- Module Name: spi_loopback - Behavioral -- Project Name: -- Target Devices: -- Tool versions: -- Description: -- This is a simple wrapper for the 'spi_master' and 'spi_slave' cores, to synthesize the 2 cores and -- test them in the simulator. -- -- Dependencies: -- -- Revision: -- Revision 0.01 - File Created -- Additional Comments: -- ---------------------------------------------------------------------------------- library ieee; use ieee.std_logic_1164.all; library work; use work.all; entity spi_loopback is Generic ( N : positive := 32; -- 32bit serial word length is default CPOL : std_logic := '0'; -- SPI mode selection (mode 0 default) CPHA : std_logic := '1'; -- CPOL = clock polarity, CPHA = clock phase. PREFETCH : positive := 2; -- prefetch lookahead cycles SPI_2X_CLK_DIV : positive := 5 -- for a 100MHz sclk_i, yields a 10MHz SCK ); Port( ----------------MASTER----------------------- m_clk_i : IN std_logic; m_rst_i : IN std_logic; m_spi_ssel_o : OUT std_logic; m_spi_sck_o : OUT std_logic; m_spi_mosi_o : OUT std_logic; m_spi_miso_i : IN std_logic; m_di_req_o : OUT std_logic; m_di_i : IN std_logic_vector(N-1 downto 0); m_wren_i : IN std_logic; m_do_valid_o : OUT std_logic; m_do_o : OUT std_logic_vector(N-1 downto 0); ----- debug ----- m_do_transfer_o : OUT std_logic; m_wren_o : OUT std_logic; m_wren_ack_o : OUT std_logic; m_rx_bit_reg_o : OUT std_logic; m_state_dbg_o : OUT std_logic_vector(5 downto 0); m_core_clk_o : OUT std_logic; m_core_n_clk_o : OUT std_logic; m_sh_reg_dbg_o : OUT std_logic_vector(N-1 downto 0); ----------------SLAVE----------------------- s_clk_i : IN std_logic; s_spi_ssel_i : IN std_logic; s_spi_sck_i : IN std_logic; s_spi_mosi_i : IN std_logic; s_spi_miso_o : OUT std_logic; s_di_req_o : OUT std_logic; -- preload lookahead data request line s_di_i : IN std_logic_vector (N-1 downto 0) := (others => 'X'); -- parallel load data in (clocked in on rising edge of clk_i) s_wren_i : IN std_logic := 'X'; -- user data write enable s_do_valid_o : OUT std_logic; -- do_o data valid strobe, valid during one clk_i rising edge. s_do_o : OUT std_logic_vector (N-1 downto 0); -- parallel output (clocked out on falling clk_i) ----- debug ----- s_do_transfer_o : OUT std_logic; -- debug: internal transfer driver s_wren_o : OUT std_logic; s_wren_ack_o : OUT std_logic; s_rx_bit_reg_o : OUT std_logic; s_state_dbg_o : OUT std_logic_vector (5 downto 0) -- debug: internal state register -- s_sh_reg_dbg_o : OUT std_logic_vector (N-1 downto 0) -- debug: internal shift register ); end spi_loopback; architecture Structural of spi_loopback is begin --============================================================================================= -- Component instantiation for the SPI master port --============================================================================================= Inst_spi_master: entity work.spi_master(rtl) generic map (N => N, CPOL => CPOL, CPHA => CPHA, PREFETCH => PREFETCH, SPI_2X_CLK_DIV => SPI_2X_CLK_DIV) port map( sclk_i => m_clk_i, -- system clock is used for serial and parallel ports pclk_i => m_clk_i, rst_i => m_rst_i, spi_ssel_o => m_spi_ssel_o, spi_sck_o => m_spi_sck_o, spi_mosi_o => m_spi_mosi_o, spi_miso_i => m_spi_miso_i, di_req_o => m_di_req_o, di_i => m_di_i, wren_i => m_wren_i, do_valid_o => m_do_valid_o, do_o => m_do_o, ----- debug ----- do_transfer_o => m_do_transfer_o, wren_o => m_wren_o, wren_ack_o => m_wren_ack_o, rx_bit_reg_o => m_rx_bit_reg_o, state_dbg_o => m_state_dbg_o, core_clk_o => m_core_clk_o, core_n_clk_o => m_core_n_clk_o, sh_reg_dbg_o => m_sh_reg_dbg_o ); --============================================================================================= -- Component instantiation for the SPI slave port --============================================================================================= Inst_spi_slave: entity work.spi_slave(rtl) generic map (N => N, CPOL => CPOL, CPHA => CPHA, PREFETCH => PREFETCH) port map( clk_i => s_clk_i, spi_ssel_i => s_spi_ssel_i, spi_sck_i => s_spi_sck_i, spi_mosi_i => s_spi_mosi_i, spi_miso_o => s_spi_miso_o, di_req_o => s_di_req_o, di_i => s_di_i, wren_i => s_wren_i, do_valid_o => s_do_valid_o, do_o => s_do_o, ----- debug ----- do_transfer_o => s_do_transfer_o, wren_o => s_wren_o, wren_ack_o => s_wren_ack_o, rx_bit_reg_o => s_rx_bit_reg_o, state_dbg_o => s_state_dbg_o -- sh_reg_dbg_o => s_sh_reg_dbg_o ); end Structural;
---------------------------------------------------------------------------------- -- Company: -- Engineer: -- -- Create Date: 23:44:37 05/17/2011 -- Design Name: -- Module Name: spi_loopback - Behavioral -- Project Name: -- Target Devices: -- Tool versions: -- Description: -- This is a simple wrapper for the 'spi_master' and 'spi_slave' cores, to synthesize the 2 cores and -- test them in the simulator. -- -- Dependencies: -- -- Revision: -- Revision 0.01 - File Created -- Additional Comments: -- ---------------------------------------------------------------------------------- library ieee; use ieee.std_logic_1164.all; library work; use work.all; entity spi_loopback is Generic ( N : positive := 32; -- 32bit serial word length is default CPOL : std_logic := '0'; -- SPI mode selection (mode 0 default) CPHA : std_logic := '1'; -- CPOL = clock polarity, CPHA = clock phase. PREFETCH : positive := 2; -- prefetch lookahead cycles SPI_2X_CLK_DIV : positive := 5 -- for a 100MHz sclk_i, yields a 10MHz SCK ); Port( ----------------MASTER----------------------- m_clk_i : IN std_logic; m_rst_i : IN std_logic; m_spi_ssel_o : OUT std_logic; m_spi_sck_o : OUT std_logic; m_spi_mosi_o : OUT std_logic; m_spi_miso_i : IN std_logic; m_di_req_o : OUT std_logic; m_di_i : IN std_logic_vector(N-1 downto 0); m_wren_i : IN std_logic; m_do_valid_o : OUT std_logic; m_do_o : OUT std_logic_vector(N-1 downto 0); ----- debug ----- m_do_transfer_o : OUT std_logic; m_wren_o : OUT std_logic; m_wren_ack_o : OUT std_logic; m_rx_bit_reg_o : OUT std_logic; m_state_dbg_o : OUT std_logic_vector(5 downto 0); m_core_clk_o : OUT std_logic; m_core_n_clk_o : OUT std_logic; m_sh_reg_dbg_o : OUT std_logic_vector(N-1 downto 0); ----------------SLAVE----------------------- s_clk_i : IN std_logic; s_spi_ssel_i : IN std_logic; s_spi_sck_i : IN std_logic; s_spi_mosi_i : IN std_logic; s_spi_miso_o : OUT std_logic; s_di_req_o : OUT std_logic; -- preload lookahead data request line s_di_i : IN std_logic_vector (N-1 downto 0) := (others => 'X'); -- parallel load data in (clocked in on rising edge of clk_i) s_wren_i : IN std_logic := 'X'; -- user data write enable s_do_valid_o : OUT std_logic; -- do_o data valid strobe, valid during one clk_i rising edge. s_do_o : OUT std_logic_vector (N-1 downto 0); -- parallel output (clocked out on falling clk_i) ----- debug ----- s_do_transfer_o : OUT std_logic; -- debug: internal transfer driver s_wren_o : OUT std_logic; s_wren_ack_o : OUT std_logic; s_rx_bit_reg_o : OUT std_logic; s_state_dbg_o : OUT std_logic_vector (5 downto 0) -- debug: internal state register -- s_sh_reg_dbg_o : OUT std_logic_vector (N-1 downto 0) -- debug: internal shift register ); end spi_loopback; architecture Structural of spi_loopback is begin --============================================================================================= -- Component instantiation for the SPI master port --============================================================================================= Inst_spi_master: entity work.spi_master(rtl) generic map (N => N, CPOL => CPOL, CPHA => CPHA, PREFETCH => PREFETCH, SPI_2X_CLK_DIV => SPI_2X_CLK_DIV) port map( sclk_i => m_clk_i, -- system clock is used for serial and parallel ports pclk_i => m_clk_i, rst_i => m_rst_i, spi_ssel_o => m_spi_ssel_o, spi_sck_o => m_spi_sck_o, spi_mosi_o => m_spi_mosi_o, spi_miso_i => m_spi_miso_i, di_req_o => m_di_req_o, di_i => m_di_i, wren_i => m_wren_i, do_valid_o => m_do_valid_o, do_o => m_do_o, ----- debug ----- do_transfer_o => m_do_transfer_o, wren_o => m_wren_o, wren_ack_o => m_wren_ack_o, rx_bit_reg_o => m_rx_bit_reg_o, state_dbg_o => m_state_dbg_o, core_clk_o => m_core_clk_o, core_n_clk_o => m_core_n_clk_o, sh_reg_dbg_o => m_sh_reg_dbg_o ); --============================================================================================= -- Component instantiation for the SPI slave port --============================================================================================= Inst_spi_slave: entity work.spi_slave(rtl) generic map (N => N, CPOL => CPOL, CPHA => CPHA, PREFETCH => PREFETCH) port map( clk_i => s_clk_i, spi_ssel_i => s_spi_ssel_i, spi_sck_i => s_spi_sck_i, spi_mosi_i => s_spi_mosi_i, spi_miso_o => s_spi_miso_o, di_req_o => s_di_req_o, di_i => s_di_i, wren_i => s_wren_i, do_valid_o => s_do_valid_o, do_o => s_do_o, ----- debug ----- do_transfer_o => s_do_transfer_o, wren_o => s_wren_o, wren_ack_o => s_wren_ack_o, rx_bit_reg_o => s_rx_bit_reg_o, state_dbg_o => s_state_dbg_o -- sh_reg_dbg_o => s_sh_reg_dbg_o ); end Structural;
---------------------------------------------------------------------------------- -- Company: -- Engineer: -- -- Create Date: 23:44:37 05/17/2011 -- Design Name: -- Module Name: spi_loopback - Behavioral -- Project Name: -- Target Devices: -- Tool versions: -- Description: -- This is a simple wrapper for the 'spi_master' and 'spi_slave' cores, to synthesize the 2 cores and -- test them in the simulator. -- -- Dependencies: -- -- Revision: -- Revision 0.01 - File Created -- Additional Comments: -- ---------------------------------------------------------------------------------- library ieee; use ieee.std_logic_1164.all; library work; use work.all; entity spi_loopback is Generic ( N : positive := 32; -- 32bit serial word length is default CPOL : std_logic := '0'; -- SPI mode selection (mode 0 default) CPHA : std_logic := '1'; -- CPOL = clock polarity, CPHA = clock phase. PREFETCH : positive := 2; -- prefetch lookahead cycles SPI_2X_CLK_DIV : positive := 5 -- for a 100MHz sclk_i, yields a 10MHz SCK ); Port( ----------------MASTER----------------------- m_clk_i : IN std_logic; m_rst_i : IN std_logic; m_spi_ssel_o : OUT std_logic; m_spi_sck_o : OUT std_logic; m_spi_mosi_o : OUT std_logic; m_spi_miso_i : IN std_logic; m_di_req_o : OUT std_logic; m_di_i : IN std_logic_vector(N-1 downto 0); m_wren_i : IN std_logic; m_do_valid_o : OUT std_logic; m_do_o : OUT std_logic_vector(N-1 downto 0); ----- debug ----- m_do_transfer_o : OUT std_logic; m_wren_o : OUT std_logic; m_wren_ack_o : OUT std_logic; m_rx_bit_reg_o : OUT std_logic; m_state_dbg_o : OUT std_logic_vector(5 downto 0); m_core_clk_o : OUT std_logic; m_core_n_clk_o : OUT std_logic; m_sh_reg_dbg_o : OUT std_logic_vector(N-1 downto 0); ----------------SLAVE----------------------- s_clk_i : IN std_logic; s_spi_ssel_i : IN std_logic; s_spi_sck_i : IN std_logic; s_spi_mosi_i : IN std_logic; s_spi_miso_o : OUT std_logic; s_di_req_o : OUT std_logic; -- preload lookahead data request line s_di_i : IN std_logic_vector (N-1 downto 0) := (others => 'X'); -- parallel load data in (clocked in on rising edge of clk_i) s_wren_i : IN std_logic := 'X'; -- user data write enable s_do_valid_o : OUT std_logic; -- do_o data valid strobe, valid during one clk_i rising edge. s_do_o : OUT std_logic_vector (N-1 downto 0); -- parallel output (clocked out on falling clk_i) ----- debug ----- s_do_transfer_o : OUT std_logic; -- debug: internal transfer driver s_wren_o : OUT std_logic; s_wren_ack_o : OUT std_logic; s_rx_bit_reg_o : OUT std_logic; s_state_dbg_o : OUT std_logic_vector (5 downto 0) -- debug: internal state register -- s_sh_reg_dbg_o : OUT std_logic_vector (N-1 downto 0) -- debug: internal shift register ); end spi_loopback; architecture Structural of spi_loopback is begin --============================================================================================= -- Component instantiation for the SPI master port --============================================================================================= Inst_spi_master: entity work.spi_master(rtl) generic map (N => N, CPOL => CPOL, CPHA => CPHA, PREFETCH => PREFETCH, SPI_2X_CLK_DIV => SPI_2X_CLK_DIV) port map( sclk_i => m_clk_i, -- system clock is used for serial and parallel ports pclk_i => m_clk_i, rst_i => m_rst_i, spi_ssel_o => m_spi_ssel_o, spi_sck_o => m_spi_sck_o, spi_mosi_o => m_spi_mosi_o, spi_miso_i => m_spi_miso_i, di_req_o => m_di_req_o, di_i => m_di_i, wren_i => m_wren_i, do_valid_o => m_do_valid_o, do_o => m_do_o, ----- debug ----- do_transfer_o => m_do_transfer_o, wren_o => m_wren_o, wren_ack_o => m_wren_ack_o, rx_bit_reg_o => m_rx_bit_reg_o, state_dbg_o => m_state_dbg_o, core_clk_o => m_core_clk_o, core_n_clk_o => m_core_n_clk_o, sh_reg_dbg_o => m_sh_reg_dbg_o ); --============================================================================================= -- Component instantiation for the SPI slave port --============================================================================================= Inst_spi_slave: entity work.spi_slave(rtl) generic map (N => N, CPOL => CPOL, CPHA => CPHA, PREFETCH => PREFETCH) port map( clk_i => s_clk_i, spi_ssel_i => s_spi_ssel_i, spi_sck_i => s_spi_sck_i, spi_mosi_i => s_spi_mosi_i, spi_miso_o => s_spi_miso_o, di_req_o => s_di_req_o, di_i => s_di_i, wren_i => s_wren_i, do_valid_o => s_do_valid_o, do_o => s_do_o, ----- debug ----- do_transfer_o => s_do_transfer_o, wren_o => s_wren_o, wren_ack_o => s_wren_ack_o, rx_bit_reg_o => s_rx_bit_reg_o, state_dbg_o => s_state_dbg_o -- sh_reg_dbg_o => s_sh_reg_dbg_o ); end Structural;
-- (c) Copyright 1995-2014 Xilinx, Inc. All rights reserved. -- -- This file contains confidential and proprietary information -- of Xilinx, Inc. and is protected under U.S. and -- international copyright and other intellectual property -- laws. -- -- DISCLAIMER -- This disclaimer is not a license and does not grant any -- rights to the materials distributed herewith. Except as -- otherwise provided in a valid license issued to you by -- Xilinx, and to the maximum extent permitted by applicable -- law: (1) THESE MATERIALS ARE MADE AVAILABLE "AS IS" AND -- WITH ALL FAULTS, AND XILINX HEREBY DISCLAIMS ALL WARRANTIES -- AND CONDITIONS, EXPRESS, IMPLIED, OR STATUTORY, INCLUDING -- BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, NON- -- INFRINGEMENT, OR FITNESS FOR ANY PARTICULAR PURPOSE; and -- (2) Xilinx shall not be liable (whether in contract or tort, -- including negligence, or under any other theory of -- liability) for any loss or damage of any kind or nature -- related to, arising under or in connection with these -- materials, including for any direct, or any indirect, -- special, incidental, or consequential loss or damage -- (including loss of data, profits, goodwill, or any type of -- loss or damage suffered as a result of any action brought -- by a third party) even if such damage or loss was -- reasonably foreseeable or Xilinx had been advised of the -- possibility of the same. -- -- CRITICAL APPLICATIONS -- Xilinx products are not designed or intended to be fail- -- safe, or for use in any application requiring fail-safe -- performance, such as life-support or safety devices or -- systems, Class III medical devices, nuclear facilities, -- applications related to the deployment of airbags, or any -- other applications that could lead to death, personal -- injury, or severe property or environmental damage -- (individually and collectively, "Critical -- Applications"). Customer assumes the sole risk and -- liability of any use of Xilinx products in Critical -- Applications, subject only to applicable laws and -- regulations governing limitations on product liability. -- -- THIS COPYRIGHT NOTICE AND DISCLAIMER MUST BE RETAINED AS -- PART OF THIS FILE AT ALL TIMES. -- -- DO NOT MODIFY THIS FILE. -- IP VLNV: xilinx.com:ip:blk_mem_gen:8.2 -- IP Revision: 0 LIBRARY ieee; USE ieee.std_logic_1164.ALL; USE ieee.numeric_std.ALL; LIBRARY blk_mem_gen_v8_2; USE blk_mem_gen_v8_2.blk_mem_gen_v8_2; ENTITY bram IS PORT ( clka : IN STD_LOGIC; wea : IN STD_LOGIC_VECTOR(0 DOWNTO 0); addra : IN STD_LOGIC_VECTOR(10 DOWNTO 0); dina : IN STD_LOGIC_VECTOR(15 DOWNTO 0); clkb : IN STD_LOGIC; addrb : IN STD_LOGIC_VECTOR(10 DOWNTO 0); doutb : OUT STD_LOGIC_VECTOR(15 DOWNTO 0) ); END bram; ARCHITECTURE bram_arch OF bram IS ATTRIBUTE DowngradeIPIdentifiedWarnings : string; ATTRIBUTE DowngradeIPIdentifiedWarnings OF bram_arch: ARCHITECTURE IS "yes"; COMPONENT blk_mem_gen_v8_2 IS GENERIC ( C_FAMILY : STRING; C_XDEVICEFAMILY : STRING; C_ELABORATION_DIR : STRING; C_INTERFACE_TYPE : INTEGER; C_AXI_TYPE : INTEGER; C_AXI_SLAVE_TYPE : INTEGER; C_USE_BRAM_BLOCK : INTEGER; C_ENABLE_32BIT_ADDRESS : INTEGER; C_CTRL_ECC_ALGO : STRING; C_HAS_AXI_ID : INTEGER; C_AXI_ID_WIDTH : INTEGER; C_MEM_TYPE : INTEGER; C_BYTE_SIZE : INTEGER; C_ALGORITHM : INTEGER; C_PRIM_TYPE : INTEGER; C_LOAD_INIT_FILE : INTEGER; C_INIT_FILE_NAME : STRING; C_INIT_FILE : STRING; C_USE_DEFAULT_DATA : INTEGER; C_DEFAULT_DATA : STRING; C_HAS_RSTA : INTEGER; C_RST_PRIORITY_A : STRING; C_RSTRAM_A : INTEGER; C_INITA_VAL : STRING; C_HAS_ENA : INTEGER; C_HAS_REGCEA : INTEGER; C_USE_BYTE_WEA : INTEGER; C_WEA_WIDTH : INTEGER; C_WRITE_MODE_A : STRING; C_WRITE_WIDTH_A : INTEGER; C_READ_WIDTH_A : INTEGER; C_WRITE_DEPTH_A : INTEGER; C_READ_DEPTH_A : INTEGER; C_ADDRA_WIDTH : INTEGER; C_HAS_RSTB : INTEGER; C_RST_PRIORITY_B : STRING; C_RSTRAM_B : INTEGER; C_INITB_VAL : STRING; C_HAS_ENB : INTEGER; C_HAS_REGCEB : INTEGER; C_USE_BYTE_WEB : INTEGER; C_WEB_WIDTH : INTEGER; C_WRITE_MODE_B : STRING; C_WRITE_WIDTH_B : INTEGER; C_READ_WIDTH_B : INTEGER; C_WRITE_DEPTH_B : INTEGER; C_READ_DEPTH_B : INTEGER; C_ADDRB_WIDTH : INTEGER; C_HAS_MEM_OUTPUT_REGS_A : INTEGER; C_HAS_MEM_OUTPUT_REGS_B : INTEGER; C_HAS_MUX_OUTPUT_REGS_A : INTEGER; C_HAS_MUX_OUTPUT_REGS_B : INTEGER; C_MUX_PIPELINE_STAGES : INTEGER; C_HAS_SOFTECC_INPUT_REGS_A : INTEGER; C_HAS_SOFTECC_OUTPUT_REGS_B : INTEGER; C_USE_SOFTECC : INTEGER; C_USE_ECC : INTEGER; C_EN_ECC_PIPE : INTEGER; C_HAS_INJECTERR : INTEGER; C_SIM_COLLISION_CHECK : STRING; C_COMMON_CLK : INTEGER; C_DISABLE_WARN_BHV_COLL : INTEGER; C_EN_SLEEP_PIN : INTEGER; C_DISABLE_WARN_BHV_RANGE : INTEGER; C_COUNT_36K_BRAM : STRING; C_COUNT_18K_BRAM : STRING; C_EST_POWER_SUMMARY : STRING ); PORT ( clka : IN STD_LOGIC; rsta : IN STD_LOGIC; ena : IN STD_LOGIC; regcea : IN STD_LOGIC; wea : IN STD_LOGIC_VECTOR(0 DOWNTO 0); addra : IN STD_LOGIC_VECTOR(10 DOWNTO 0); dina : IN STD_LOGIC_VECTOR(15 DOWNTO 0); douta : OUT STD_LOGIC_VECTOR(15 DOWNTO 0); clkb : IN STD_LOGIC; rstb : IN STD_LOGIC; enb : IN STD_LOGIC; regceb : IN STD_LOGIC; web : IN STD_LOGIC_VECTOR(0 DOWNTO 0); addrb : IN STD_LOGIC_VECTOR(10 DOWNTO 0); dinb : IN STD_LOGIC_VECTOR(15 DOWNTO 0); doutb : OUT STD_LOGIC_VECTOR(15 DOWNTO 0); injectsbiterr : IN STD_LOGIC; injectdbiterr : IN STD_LOGIC; eccpipece : IN STD_LOGIC; sbiterr : OUT STD_LOGIC; dbiterr : OUT STD_LOGIC; rdaddrecc : OUT STD_LOGIC_VECTOR(10 DOWNTO 0); sleep : IN STD_LOGIC; s_aclk : IN STD_LOGIC; s_aresetn : IN STD_LOGIC; s_axi_awid : IN STD_LOGIC_VECTOR(3 DOWNTO 0); s_axi_awaddr : IN STD_LOGIC_VECTOR(31 DOWNTO 0); s_axi_awlen : IN STD_LOGIC_VECTOR(7 DOWNTO 0); s_axi_awsize : IN STD_LOGIC_VECTOR(2 DOWNTO 0); s_axi_awburst : IN STD_LOGIC_VECTOR(1 DOWNTO 0); s_axi_awvalid : IN STD_LOGIC; s_axi_awready : OUT STD_LOGIC; s_axi_wdata : IN STD_LOGIC_VECTOR(15 DOWNTO 0); s_axi_wstrb : IN STD_LOGIC_VECTOR(0 DOWNTO 0); s_axi_wlast : IN STD_LOGIC; s_axi_wvalid : IN STD_LOGIC; s_axi_wready : OUT STD_LOGIC; s_axi_bid : OUT STD_LOGIC_VECTOR(3 DOWNTO 0); s_axi_bresp : OUT STD_LOGIC_VECTOR(1 DOWNTO 0); s_axi_bvalid : OUT STD_LOGIC; s_axi_bready : IN STD_LOGIC; s_axi_arid : IN STD_LOGIC_VECTOR(3 DOWNTO 0); s_axi_araddr : IN STD_LOGIC_VECTOR(31 DOWNTO 0); s_axi_arlen : IN STD_LOGIC_VECTOR(7 DOWNTO 0); s_axi_arsize : IN STD_LOGIC_VECTOR(2 DOWNTO 0); s_axi_arburst : IN STD_LOGIC_VECTOR(1 DOWNTO 0); s_axi_arvalid : IN STD_LOGIC; s_axi_arready : OUT STD_LOGIC; s_axi_rid : OUT STD_LOGIC_VECTOR(3 DOWNTO 0); s_axi_rdata : OUT STD_LOGIC_VECTOR(15 DOWNTO 0); s_axi_rresp : OUT STD_LOGIC_VECTOR(1 DOWNTO 0); s_axi_rlast : OUT STD_LOGIC; s_axi_rvalid : OUT STD_LOGIC; s_axi_rready : IN STD_LOGIC; s_axi_injectsbiterr : IN STD_LOGIC; s_axi_injectdbiterr : IN STD_LOGIC; s_axi_sbiterr : OUT STD_LOGIC; s_axi_dbiterr : OUT STD_LOGIC; s_axi_rdaddrecc : OUT STD_LOGIC_VECTOR(10 DOWNTO 0) ); END COMPONENT blk_mem_gen_v8_2; ATTRIBUTE X_INTERFACE_INFO : STRING; ATTRIBUTE X_INTERFACE_INFO OF clka: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTA CLK"; ATTRIBUTE X_INTERFACE_INFO OF wea: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTA WE"; ATTRIBUTE X_INTERFACE_INFO OF addra: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTA ADDR"; ATTRIBUTE X_INTERFACE_INFO OF dina: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTA DIN"; ATTRIBUTE X_INTERFACE_INFO OF clkb: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTB CLK"; ATTRIBUTE X_INTERFACE_INFO OF addrb: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTB ADDR"; ATTRIBUTE X_INTERFACE_INFO OF doutb: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTB DOUT"; BEGIN U0 : blk_mem_gen_v8_2 GENERIC MAP ( C_FAMILY => "zynq", C_XDEVICEFAMILY => "zynq", C_ELABORATION_DIR => "./", C_INTERFACE_TYPE => 0, C_AXI_TYPE => 1, C_AXI_SLAVE_TYPE => 0, C_USE_BRAM_BLOCK => 0, C_ENABLE_32BIT_ADDRESS => 0, C_CTRL_ECC_ALGO => "NONE", C_HAS_AXI_ID => 0, C_AXI_ID_WIDTH => 4, C_MEM_TYPE => 1, C_BYTE_SIZE => 9, C_ALGORITHM => 1, C_PRIM_TYPE => 1, C_LOAD_INIT_FILE => 0, C_INIT_FILE_NAME => "no_coe_file_loaded", C_INIT_FILE => "bram.mem", C_USE_DEFAULT_DATA => 0, C_DEFAULT_DATA => "0", C_HAS_RSTA => 0, C_RST_PRIORITY_A => "CE", C_RSTRAM_A => 0, C_INITA_VAL => "0", C_HAS_ENA => 0, C_HAS_REGCEA => 0, C_USE_BYTE_WEA => 0, C_WEA_WIDTH => 1, C_WRITE_MODE_A => "WRITE_FIRST", C_WRITE_WIDTH_A => 16, C_READ_WIDTH_A => 16, C_WRITE_DEPTH_A => 2048, C_READ_DEPTH_A => 2048, C_ADDRA_WIDTH => 11, C_HAS_RSTB => 0, C_RST_PRIORITY_B => "CE", C_RSTRAM_B => 0, C_INITB_VAL => "0", C_HAS_ENB => 0, C_HAS_REGCEB => 0, C_USE_BYTE_WEB => 0, C_WEB_WIDTH => 1, C_WRITE_MODE_B => "WRITE_FIRST", C_WRITE_WIDTH_B => 16, C_READ_WIDTH_B => 16, C_WRITE_DEPTH_B => 2048, C_READ_DEPTH_B => 2048, C_ADDRB_WIDTH => 11, C_HAS_MEM_OUTPUT_REGS_A => 0, C_HAS_MEM_OUTPUT_REGS_B => 1, C_HAS_MUX_OUTPUT_REGS_A => 0, C_HAS_MUX_OUTPUT_REGS_B => 0, C_MUX_PIPELINE_STAGES => 0, C_HAS_SOFTECC_INPUT_REGS_A => 0, C_HAS_SOFTECC_OUTPUT_REGS_B => 0, C_USE_SOFTECC => 0, C_USE_ECC => 0, C_EN_ECC_PIPE => 0, C_HAS_INJECTERR => 0, C_SIM_COLLISION_CHECK => "ALL", C_COMMON_CLK => 0, C_DISABLE_WARN_BHV_COLL => 0, C_EN_SLEEP_PIN => 0, C_DISABLE_WARN_BHV_RANGE => 0, C_COUNT_36K_BRAM => "1", C_COUNT_18K_BRAM => "0", C_EST_POWER_SUMMARY => "Estimated Power for IP : 5.11005 mW" ) PORT MAP ( clka => clka, rsta => '0', ena => '0', regcea => '0', wea => wea, addra => addra, dina => dina, clkb => clkb, rstb => '0', enb => '0', regceb => '0', web => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 1)), addrb => addrb, dinb => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 16)), doutb => doutb, injectsbiterr => '0', injectdbiterr => '0', eccpipece => '0', sleep => '0', s_aclk => '0', s_aresetn => '0', s_axi_awid => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 4)), s_axi_awaddr => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 32)), s_axi_awlen => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 8)), s_axi_awsize => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 3)), s_axi_awburst => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 2)), s_axi_awvalid => '0', s_axi_wdata => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 16)), s_axi_wstrb => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 1)), s_axi_wlast => '0', s_axi_wvalid => '0', s_axi_bready => '0', s_axi_arid => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 4)), s_axi_araddr => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 32)), s_axi_arlen => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 8)), s_axi_arsize => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 3)), s_axi_arburst => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 2)), s_axi_arvalid => '0', s_axi_rready => '0', s_axi_injectsbiterr => '0', s_axi_injectdbiterr => '0' ); END bram_arch;
-- (c) Copyright 1995-2014 Xilinx, Inc. All rights reserved. -- -- This file contains confidential and proprietary information -- of Xilinx, Inc. and is protected under U.S. and -- international copyright and other intellectual property -- laws. -- -- DISCLAIMER -- This disclaimer is not a license and does not grant any -- rights to the materials distributed herewith. Except as -- otherwise provided in a valid license issued to you by -- Xilinx, and to the maximum extent permitted by applicable -- law: (1) THESE MATERIALS ARE MADE AVAILABLE "AS IS" AND -- WITH ALL FAULTS, AND XILINX HEREBY DISCLAIMS ALL WARRANTIES -- AND CONDITIONS, EXPRESS, IMPLIED, OR STATUTORY, INCLUDING -- BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, NON- -- INFRINGEMENT, OR FITNESS FOR ANY PARTICULAR PURPOSE; and -- (2) Xilinx shall not be liable (whether in contract or tort, -- including negligence, or under any other theory of -- liability) for any loss or damage of any kind or nature -- related to, arising under or in connection with these -- materials, including for any direct, or any indirect, -- special, incidental, or consequential loss or damage -- (including loss of data, profits, goodwill, or any type of -- loss or damage suffered as a result of any action brought -- by a third party) even if such damage or loss was -- reasonably foreseeable or Xilinx had been advised of the -- possibility of the same. -- -- CRITICAL APPLICATIONS -- Xilinx products are not designed or intended to be fail- -- safe, or for use in any application requiring fail-safe -- performance, such as life-support or safety devices or -- systems, Class III medical devices, nuclear facilities, -- applications related to the deployment of airbags, or any -- other applications that could lead to death, personal -- injury, or severe property or environmental damage -- (individually and collectively, "Critical -- Applications"). Customer assumes the sole risk and -- liability of any use of Xilinx products in Critical -- Applications, subject only to applicable laws and -- regulations governing limitations on product liability. -- -- THIS COPYRIGHT NOTICE AND DISCLAIMER MUST BE RETAINED AS -- PART OF THIS FILE AT ALL TIMES. -- -- DO NOT MODIFY THIS FILE. -- IP VLNV: xilinx.com:ip:blk_mem_gen:8.2 -- IP Revision: 0 LIBRARY ieee; USE ieee.std_logic_1164.ALL; USE ieee.numeric_std.ALL; LIBRARY blk_mem_gen_v8_2; USE blk_mem_gen_v8_2.blk_mem_gen_v8_2; ENTITY bram IS PORT ( clka : IN STD_LOGIC; wea : IN STD_LOGIC_VECTOR(0 DOWNTO 0); addra : IN STD_LOGIC_VECTOR(10 DOWNTO 0); dina : IN STD_LOGIC_VECTOR(15 DOWNTO 0); clkb : IN STD_LOGIC; addrb : IN STD_LOGIC_VECTOR(10 DOWNTO 0); doutb : OUT STD_LOGIC_VECTOR(15 DOWNTO 0) ); END bram; ARCHITECTURE bram_arch OF bram IS ATTRIBUTE DowngradeIPIdentifiedWarnings : string; ATTRIBUTE DowngradeIPIdentifiedWarnings OF bram_arch: ARCHITECTURE IS "yes"; COMPONENT blk_mem_gen_v8_2 IS GENERIC ( C_FAMILY : STRING; C_XDEVICEFAMILY : STRING; C_ELABORATION_DIR : STRING; C_INTERFACE_TYPE : INTEGER; C_AXI_TYPE : INTEGER; C_AXI_SLAVE_TYPE : INTEGER; C_USE_BRAM_BLOCK : INTEGER; C_ENABLE_32BIT_ADDRESS : INTEGER; C_CTRL_ECC_ALGO : STRING; C_HAS_AXI_ID : INTEGER; C_AXI_ID_WIDTH : INTEGER; C_MEM_TYPE : INTEGER; C_BYTE_SIZE : INTEGER; C_ALGORITHM : INTEGER; C_PRIM_TYPE : INTEGER; C_LOAD_INIT_FILE : INTEGER; C_INIT_FILE_NAME : STRING; C_INIT_FILE : STRING; C_USE_DEFAULT_DATA : INTEGER; C_DEFAULT_DATA : STRING; C_HAS_RSTA : INTEGER; C_RST_PRIORITY_A : STRING; C_RSTRAM_A : INTEGER; C_INITA_VAL : STRING; C_HAS_ENA : INTEGER; C_HAS_REGCEA : INTEGER; C_USE_BYTE_WEA : INTEGER; C_WEA_WIDTH : INTEGER; C_WRITE_MODE_A : STRING; C_WRITE_WIDTH_A : INTEGER; C_READ_WIDTH_A : INTEGER; C_WRITE_DEPTH_A : INTEGER; C_READ_DEPTH_A : INTEGER; C_ADDRA_WIDTH : INTEGER; C_HAS_RSTB : INTEGER; C_RST_PRIORITY_B : STRING; C_RSTRAM_B : INTEGER; C_INITB_VAL : STRING; C_HAS_ENB : INTEGER; C_HAS_REGCEB : INTEGER; C_USE_BYTE_WEB : INTEGER; C_WEB_WIDTH : INTEGER; C_WRITE_MODE_B : STRING; C_WRITE_WIDTH_B : INTEGER; C_READ_WIDTH_B : INTEGER; C_WRITE_DEPTH_B : INTEGER; C_READ_DEPTH_B : INTEGER; C_ADDRB_WIDTH : INTEGER; C_HAS_MEM_OUTPUT_REGS_A : INTEGER; C_HAS_MEM_OUTPUT_REGS_B : INTEGER; C_HAS_MUX_OUTPUT_REGS_A : INTEGER; C_HAS_MUX_OUTPUT_REGS_B : INTEGER; C_MUX_PIPELINE_STAGES : INTEGER; C_HAS_SOFTECC_INPUT_REGS_A : INTEGER; C_HAS_SOFTECC_OUTPUT_REGS_B : INTEGER; C_USE_SOFTECC : INTEGER; C_USE_ECC : INTEGER; C_EN_ECC_PIPE : INTEGER; C_HAS_INJECTERR : INTEGER; C_SIM_COLLISION_CHECK : STRING; C_COMMON_CLK : INTEGER; C_DISABLE_WARN_BHV_COLL : INTEGER; C_EN_SLEEP_PIN : INTEGER; C_DISABLE_WARN_BHV_RANGE : INTEGER; C_COUNT_36K_BRAM : STRING; C_COUNT_18K_BRAM : STRING; C_EST_POWER_SUMMARY : STRING ); PORT ( clka : IN STD_LOGIC; rsta : IN STD_LOGIC; ena : IN STD_LOGIC; regcea : IN STD_LOGIC; wea : IN STD_LOGIC_VECTOR(0 DOWNTO 0); addra : IN STD_LOGIC_VECTOR(10 DOWNTO 0); dina : IN STD_LOGIC_VECTOR(15 DOWNTO 0); douta : OUT STD_LOGIC_VECTOR(15 DOWNTO 0); clkb : IN STD_LOGIC; rstb : IN STD_LOGIC; enb : IN STD_LOGIC; regceb : IN STD_LOGIC; web : IN STD_LOGIC_VECTOR(0 DOWNTO 0); addrb : IN STD_LOGIC_VECTOR(10 DOWNTO 0); dinb : IN STD_LOGIC_VECTOR(15 DOWNTO 0); doutb : OUT STD_LOGIC_VECTOR(15 DOWNTO 0); injectsbiterr : IN STD_LOGIC; injectdbiterr : IN STD_LOGIC; eccpipece : IN STD_LOGIC; sbiterr : OUT STD_LOGIC; dbiterr : OUT STD_LOGIC; rdaddrecc : OUT STD_LOGIC_VECTOR(10 DOWNTO 0); sleep : IN STD_LOGIC; s_aclk : IN STD_LOGIC; s_aresetn : IN STD_LOGIC; s_axi_awid : IN STD_LOGIC_VECTOR(3 DOWNTO 0); s_axi_awaddr : IN STD_LOGIC_VECTOR(31 DOWNTO 0); s_axi_awlen : IN STD_LOGIC_VECTOR(7 DOWNTO 0); s_axi_awsize : IN STD_LOGIC_VECTOR(2 DOWNTO 0); s_axi_awburst : IN STD_LOGIC_VECTOR(1 DOWNTO 0); s_axi_awvalid : IN STD_LOGIC; s_axi_awready : OUT STD_LOGIC; s_axi_wdata : IN STD_LOGIC_VECTOR(15 DOWNTO 0); s_axi_wstrb : IN STD_LOGIC_VECTOR(0 DOWNTO 0); s_axi_wlast : IN STD_LOGIC; s_axi_wvalid : IN STD_LOGIC; s_axi_wready : OUT STD_LOGIC; s_axi_bid : OUT STD_LOGIC_VECTOR(3 DOWNTO 0); s_axi_bresp : OUT STD_LOGIC_VECTOR(1 DOWNTO 0); s_axi_bvalid : OUT STD_LOGIC; s_axi_bready : IN STD_LOGIC; s_axi_arid : IN STD_LOGIC_VECTOR(3 DOWNTO 0); s_axi_araddr : IN STD_LOGIC_VECTOR(31 DOWNTO 0); s_axi_arlen : IN STD_LOGIC_VECTOR(7 DOWNTO 0); s_axi_arsize : IN STD_LOGIC_VECTOR(2 DOWNTO 0); s_axi_arburst : IN STD_LOGIC_VECTOR(1 DOWNTO 0); s_axi_arvalid : IN STD_LOGIC; s_axi_arready : OUT STD_LOGIC; s_axi_rid : OUT STD_LOGIC_VECTOR(3 DOWNTO 0); s_axi_rdata : OUT STD_LOGIC_VECTOR(15 DOWNTO 0); s_axi_rresp : OUT STD_LOGIC_VECTOR(1 DOWNTO 0); s_axi_rlast : OUT STD_LOGIC; s_axi_rvalid : OUT STD_LOGIC; s_axi_rready : IN STD_LOGIC; s_axi_injectsbiterr : IN STD_LOGIC; s_axi_injectdbiterr : IN STD_LOGIC; s_axi_sbiterr : OUT STD_LOGIC; s_axi_dbiterr : OUT STD_LOGIC; s_axi_rdaddrecc : OUT STD_LOGIC_VECTOR(10 DOWNTO 0) ); END COMPONENT blk_mem_gen_v8_2; ATTRIBUTE X_INTERFACE_INFO : STRING; ATTRIBUTE X_INTERFACE_INFO OF clka: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTA CLK"; ATTRIBUTE X_INTERFACE_INFO OF wea: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTA WE"; ATTRIBUTE X_INTERFACE_INFO OF addra: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTA ADDR"; ATTRIBUTE X_INTERFACE_INFO OF dina: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTA DIN"; ATTRIBUTE X_INTERFACE_INFO OF clkb: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTB CLK"; ATTRIBUTE X_INTERFACE_INFO OF addrb: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTB ADDR"; ATTRIBUTE X_INTERFACE_INFO OF doutb: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTB DOUT"; BEGIN U0 : blk_mem_gen_v8_2 GENERIC MAP ( C_FAMILY => "zynq", C_XDEVICEFAMILY => "zynq", C_ELABORATION_DIR => "./", C_INTERFACE_TYPE => 0, C_AXI_TYPE => 1, C_AXI_SLAVE_TYPE => 0, C_USE_BRAM_BLOCK => 0, C_ENABLE_32BIT_ADDRESS => 0, C_CTRL_ECC_ALGO => "NONE", C_HAS_AXI_ID => 0, C_AXI_ID_WIDTH => 4, C_MEM_TYPE => 1, C_BYTE_SIZE => 9, C_ALGORITHM => 1, C_PRIM_TYPE => 1, C_LOAD_INIT_FILE => 0, C_INIT_FILE_NAME => "no_coe_file_loaded", C_INIT_FILE => "bram.mem", C_USE_DEFAULT_DATA => 0, C_DEFAULT_DATA => "0", C_HAS_RSTA => 0, C_RST_PRIORITY_A => "CE", C_RSTRAM_A => 0, C_INITA_VAL => "0", C_HAS_ENA => 0, C_HAS_REGCEA => 0, C_USE_BYTE_WEA => 0, C_WEA_WIDTH => 1, C_WRITE_MODE_A => "WRITE_FIRST", C_WRITE_WIDTH_A => 16, C_READ_WIDTH_A => 16, C_WRITE_DEPTH_A => 2048, C_READ_DEPTH_A => 2048, C_ADDRA_WIDTH => 11, C_HAS_RSTB => 0, C_RST_PRIORITY_B => "CE", C_RSTRAM_B => 0, C_INITB_VAL => "0", C_HAS_ENB => 0, C_HAS_REGCEB => 0, C_USE_BYTE_WEB => 0, C_WEB_WIDTH => 1, C_WRITE_MODE_B => "WRITE_FIRST", C_WRITE_WIDTH_B => 16, C_READ_WIDTH_B => 16, C_WRITE_DEPTH_B => 2048, C_READ_DEPTH_B => 2048, C_ADDRB_WIDTH => 11, C_HAS_MEM_OUTPUT_REGS_A => 0, C_HAS_MEM_OUTPUT_REGS_B => 1, C_HAS_MUX_OUTPUT_REGS_A => 0, C_HAS_MUX_OUTPUT_REGS_B => 0, C_MUX_PIPELINE_STAGES => 0, C_HAS_SOFTECC_INPUT_REGS_A => 0, C_HAS_SOFTECC_OUTPUT_REGS_B => 0, C_USE_SOFTECC => 0, C_USE_ECC => 0, C_EN_ECC_PIPE => 0, C_HAS_INJECTERR => 0, C_SIM_COLLISION_CHECK => "ALL", C_COMMON_CLK => 0, C_DISABLE_WARN_BHV_COLL => 0, C_EN_SLEEP_PIN => 0, C_DISABLE_WARN_BHV_RANGE => 0, C_COUNT_36K_BRAM => "1", C_COUNT_18K_BRAM => "0", C_EST_POWER_SUMMARY => "Estimated Power for IP : 5.11005 mW" ) PORT MAP ( clka => clka, rsta => '0', ena => '0', regcea => '0', wea => wea, addra => addra, dina => dina, clkb => clkb, rstb => '0', enb => '0', regceb => '0', web => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 1)), addrb => addrb, dinb => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 16)), doutb => doutb, injectsbiterr => '0', injectdbiterr => '0', eccpipece => '0', sleep => '0', s_aclk => '0', s_aresetn => '0', s_axi_awid => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 4)), s_axi_awaddr => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 32)), s_axi_awlen => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 8)), s_axi_awsize => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 3)), s_axi_awburst => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 2)), s_axi_awvalid => '0', s_axi_wdata => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 16)), s_axi_wstrb => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 1)), s_axi_wlast => '0', s_axi_wvalid => '0', s_axi_bready => '0', s_axi_arid => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 4)), s_axi_araddr => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 32)), s_axi_arlen => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 8)), s_axi_arsize => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 3)), s_axi_arburst => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 2)), s_axi_arvalid => '0', s_axi_rready => '0', s_axi_injectsbiterr => '0', s_axi_injectdbiterr => '0' ); END bram_arch;
-- (c) Copyright 1995-2014 Xilinx, Inc. All rights reserved. -- -- This file contains confidential and proprietary information -- of Xilinx, Inc. and is protected under U.S. and -- international copyright and other intellectual property -- laws. -- -- DISCLAIMER -- This disclaimer is not a license and does not grant any -- rights to the materials distributed herewith. Except as -- otherwise provided in a valid license issued to you by -- Xilinx, and to the maximum extent permitted by applicable -- law: (1) THESE MATERIALS ARE MADE AVAILABLE "AS IS" AND -- WITH ALL FAULTS, AND XILINX HEREBY DISCLAIMS ALL WARRANTIES -- AND CONDITIONS, EXPRESS, IMPLIED, OR STATUTORY, INCLUDING -- BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, NON- -- INFRINGEMENT, OR FITNESS FOR ANY PARTICULAR PURPOSE; and -- (2) Xilinx shall not be liable (whether in contract or tort, -- including negligence, or under any other theory of -- liability) for any loss or damage of any kind or nature -- related to, arising under or in connection with these -- materials, including for any direct, or any indirect, -- special, incidental, or consequential loss or damage -- (including loss of data, profits, goodwill, or any type of -- loss or damage suffered as a result of any action brought -- by a third party) even if such damage or loss was -- reasonably foreseeable or Xilinx had been advised of the -- possibility of the same. -- -- CRITICAL APPLICATIONS -- Xilinx products are not designed or intended to be fail- -- safe, or for use in any application requiring fail-safe -- performance, such as life-support or safety devices or -- systems, Class III medical devices, nuclear facilities, -- applications related to the deployment of airbags, or any -- other applications that could lead to death, personal -- injury, or severe property or environmental damage -- (individually and collectively, "Critical -- Applications"). Customer assumes the sole risk and -- liability of any use of Xilinx products in Critical -- Applications, subject only to applicable laws and -- regulations governing limitations on product liability. -- -- THIS COPYRIGHT NOTICE AND DISCLAIMER MUST BE RETAINED AS -- PART OF THIS FILE AT ALL TIMES. -- -- DO NOT MODIFY THIS FILE. -- IP VLNV: xilinx.com:ip:blk_mem_gen:8.2 -- IP Revision: 0 LIBRARY ieee; USE ieee.std_logic_1164.ALL; USE ieee.numeric_std.ALL; LIBRARY blk_mem_gen_v8_2; USE blk_mem_gen_v8_2.blk_mem_gen_v8_2; ENTITY bram IS PORT ( clka : IN STD_LOGIC; wea : IN STD_LOGIC_VECTOR(0 DOWNTO 0); addra : IN STD_LOGIC_VECTOR(10 DOWNTO 0); dina : IN STD_LOGIC_VECTOR(15 DOWNTO 0); clkb : IN STD_LOGIC; addrb : IN STD_LOGIC_VECTOR(10 DOWNTO 0); doutb : OUT STD_LOGIC_VECTOR(15 DOWNTO 0) ); END bram; ARCHITECTURE bram_arch OF bram IS ATTRIBUTE DowngradeIPIdentifiedWarnings : string; ATTRIBUTE DowngradeIPIdentifiedWarnings OF bram_arch: ARCHITECTURE IS "yes"; COMPONENT blk_mem_gen_v8_2 IS GENERIC ( C_FAMILY : STRING; C_XDEVICEFAMILY : STRING; C_ELABORATION_DIR : STRING; C_INTERFACE_TYPE : INTEGER; C_AXI_TYPE : INTEGER; C_AXI_SLAVE_TYPE : INTEGER; C_USE_BRAM_BLOCK : INTEGER; C_ENABLE_32BIT_ADDRESS : INTEGER; C_CTRL_ECC_ALGO : STRING; C_HAS_AXI_ID : INTEGER; C_AXI_ID_WIDTH : INTEGER; C_MEM_TYPE : INTEGER; C_BYTE_SIZE : INTEGER; C_ALGORITHM : INTEGER; C_PRIM_TYPE : INTEGER; C_LOAD_INIT_FILE : INTEGER; C_INIT_FILE_NAME : STRING; C_INIT_FILE : STRING; C_USE_DEFAULT_DATA : INTEGER; C_DEFAULT_DATA : STRING; C_HAS_RSTA : INTEGER; C_RST_PRIORITY_A : STRING; C_RSTRAM_A : INTEGER; C_INITA_VAL : STRING; C_HAS_ENA : INTEGER; C_HAS_REGCEA : INTEGER; C_USE_BYTE_WEA : INTEGER; C_WEA_WIDTH : INTEGER; C_WRITE_MODE_A : STRING; C_WRITE_WIDTH_A : INTEGER; C_READ_WIDTH_A : INTEGER; C_WRITE_DEPTH_A : INTEGER; C_READ_DEPTH_A : INTEGER; C_ADDRA_WIDTH : INTEGER; C_HAS_RSTB : INTEGER; C_RST_PRIORITY_B : STRING; C_RSTRAM_B : INTEGER; C_INITB_VAL : STRING; C_HAS_ENB : INTEGER; C_HAS_REGCEB : INTEGER; C_USE_BYTE_WEB : INTEGER; C_WEB_WIDTH : INTEGER; C_WRITE_MODE_B : STRING; C_WRITE_WIDTH_B : INTEGER; C_READ_WIDTH_B : INTEGER; C_WRITE_DEPTH_B : INTEGER; C_READ_DEPTH_B : INTEGER; C_ADDRB_WIDTH : INTEGER; C_HAS_MEM_OUTPUT_REGS_A : INTEGER; C_HAS_MEM_OUTPUT_REGS_B : INTEGER; C_HAS_MUX_OUTPUT_REGS_A : INTEGER; C_HAS_MUX_OUTPUT_REGS_B : INTEGER; C_MUX_PIPELINE_STAGES : INTEGER; C_HAS_SOFTECC_INPUT_REGS_A : INTEGER; C_HAS_SOFTECC_OUTPUT_REGS_B : INTEGER; C_USE_SOFTECC : INTEGER; C_USE_ECC : INTEGER; C_EN_ECC_PIPE : INTEGER; C_HAS_INJECTERR : INTEGER; C_SIM_COLLISION_CHECK : STRING; C_COMMON_CLK : INTEGER; C_DISABLE_WARN_BHV_COLL : INTEGER; C_EN_SLEEP_PIN : INTEGER; C_DISABLE_WARN_BHV_RANGE : INTEGER; C_COUNT_36K_BRAM : STRING; C_COUNT_18K_BRAM : STRING; C_EST_POWER_SUMMARY : STRING ); PORT ( clka : IN STD_LOGIC; rsta : IN STD_LOGIC; ena : IN STD_LOGIC; regcea : IN STD_LOGIC; wea : IN STD_LOGIC_VECTOR(0 DOWNTO 0); addra : IN STD_LOGIC_VECTOR(10 DOWNTO 0); dina : IN STD_LOGIC_VECTOR(15 DOWNTO 0); douta : OUT STD_LOGIC_VECTOR(15 DOWNTO 0); clkb : IN STD_LOGIC; rstb : IN STD_LOGIC; enb : IN STD_LOGIC; regceb : IN STD_LOGIC; web : IN STD_LOGIC_VECTOR(0 DOWNTO 0); addrb : IN STD_LOGIC_VECTOR(10 DOWNTO 0); dinb : IN STD_LOGIC_VECTOR(15 DOWNTO 0); doutb : OUT STD_LOGIC_VECTOR(15 DOWNTO 0); injectsbiterr : IN STD_LOGIC; injectdbiterr : IN STD_LOGIC; eccpipece : IN STD_LOGIC; sbiterr : OUT STD_LOGIC; dbiterr : OUT STD_LOGIC; rdaddrecc : OUT STD_LOGIC_VECTOR(10 DOWNTO 0); sleep : IN STD_LOGIC; s_aclk : IN STD_LOGIC; s_aresetn : IN STD_LOGIC; s_axi_awid : IN STD_LOGIC_VECTOR(3 DOWNTO 0); s_axi_awaddr : IN STD_LOGIC_VECTOR(31 DOWNTO 0); s_axi_awlen : IN STD_LOGIC_VECTOR(7 DOWNTO 0); s_axi_awsize : IN STD_LOGIC_VECTOR(2 DOWNTO 0); s_axi_awburst : IN STD_LOGIC_VECTOR(1 DOWNTO 0); s_axi_awvalid : IN STD_LOGIC; s_axi_awready : OUT STD_LOGIC; s_axi_wdata : IN STD_LOGIC_VECTOR(15 DOWNTO 0); s_axi_wstrb : IN STD_LOGIC_VECTOR(0 DOWNTO 0); s_axi_wlast : IN STD_LOGIC; s_axi_wvalid : IN STD_LOGIC; s_axi_wready : OUT STD_LOGIC; s_axi_bid : OUT STD_LOGIC_VECTOR(3 DOWNTO 0); s_axi_bresp : OUT STD_LOGIC_VECTOR(1 DOWNTO 0); s_axi_bvalid : OUT STD_LOGIC; s_axi_bready : IN STD_LOGIC; s_axi_arid : IN STD_LOGIC_VECTOR(3 DOWNTO 0); s_axi_araddr : IN STD_LOGIC_VECTOR(31 DOWNTO 0); s_axi_arlen : IN STD_LOGIC_VECTOR(7 DOWNTO 0); s_axi_arsize : IN STD_LOGIC_VECTOR(2 DOWNTO 0); s_axi_arburst : IN STD_LOGIC_VECTOR(1 DOWNTO 0); s_axi_arvalid : IN STD_LOGIC; s_axi_arready : OUT STD_LOGIC; s_axi_rid : OUT STD_LOGIC_VECTOR(3 DOWNTO 0); s_axi_rdata : OUT STD_LOGIC_VECTOR(15 DOWNTO 0); s_axi_rresp : OUT STD_LOGIC_VECTOR(1 DOWNTO 0); s_axi_rlast : OUT STD_LOGIC; s_axi_rvalid : OUT STD_LOGIC; s_axi_rready : IN STD_LOGIC; s_axi_injectsbiterr : IN STD_LOGIC; s_axi_injectdbiterr : IN STD_LOGIC; s_axi_sbiterr : OUT STD_LOGIC; s_axi_dbiterr : OUT STD_LOGIC; s_axi_rdaddrecc : OUT STD_LOGIC_VECTOR(10 DOWNTO 0) ); END COMPONENT blk_mem_gen_v8_2; ATTRIBUTE X_INTERFACE_INFO : STRING; ATTRIBUTE X_INTERFACE_INFO OF clka: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTA CLK"; ATTRIBUTE X_INTERFACE_INFO OF wea: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTA WE"; ATTRIBUTE X_INTERFACE_INFO OF addra: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTA ADDR"; ATTRIBUTE X_INTERFACE_INFO OF dina: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTA DIN"; ATTRIBUTE X_INTERFACE_INFO OF clkb: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTB CLK"; ATTRIBUTE X_INTERFACE_INFO OF addrb: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTB ADDR"; ATTRIBUTE X_INTERFACE_INFO OF doutb: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTB DOUT"; BEGIN U0 : blk_mem_gen_v8_2 GENERIC MAP ( C_FAMILY => "zynq", C_XDEVICEFAMILY => "zynq", C_ELABORATION_DIR => "./", C_INTERFACE_TYPE => 0, C_AXI_TYPE => 1, C_AXI_SLAVE_TYPE => 0, C_USE_BRAM_BLOCK => 0, C_ENABLE_32BIT_ADDRESS => 0, C_CTRL_ECC_ALGO => "NONE", C_HAS_AXI_ID => 0, C_AXI_ID_WIDTH => 4, C_MEM_TYPE => 1, C_BYTE_SIZE => 9, C_ALGORITHM => 1, C_PRIM_TYPE => 1, C_LOAD_INIT_FILE => 0, C_INIT_FILE_NAME => "no_coe_file_loaded", C_INIT_FILE => "bram.mem", C_USE_DEFAULT_DATA => 0, C_DEFAULT_DATA => "0", C_HAS_RSTA => 0, C_RST_PRIORITY_A => "CE", C_RSTRAM_A => 0, C_INITA_VAL => "0", C_HAS_ENA => 0, C_HAS_REGCEA => 0, C_USE_BYTE_WEA => 0, C_WEA_WIDTH => 1, C_WRITE_MODE_A => "WRITE_FIRST", C_WRITE_WIDTH_A => 16, C_READ_WIDTH_A => 16, C_WRITE_DEPTH_A => 2048, C_READ_DEPTH_A => 2048, C_ADDRA_WIDTH => 11, C_HAS_RSTB => 0, C_RST_PRIORITY_B => "CE", C_RSTRAM_B => 0, C_INITB_VAL => "0", C_HAS_ENB => 0, C_HAS_REGCEB => 0, C_USE_BYTE_WEB => 0, C_WEB_WIDTH => 1, C_WRITE_MODE_B => "WRITE_FIRST", C_WRITE_WIDTH_B => 16, C_READ_WIDTH_B => 16, C_WRITE_DEPTH_B => 2048, C_READ_DEPTH_B => 2048, C_ADDRB_WIDTH => 11, C_HAS_MEM_OUTPUT_REGS_A => 0, C_HAS_MEM_OUTPUT_REGS_B => 1, C_HAS_MUX_OUTPUT_REGS_A => 0, C_HAS_MUX_OUTPUT_REGS_B => 0, C_MUX_PIPELINE_STAGES => 0, C_HAS_SOFTECC_INPUT_REGS_A => 0, C_HAS_SOFTECC_OUTPUT_REGS_B => 0, C_USE_SOFTECC => 0, C_USE_ECC => 0, C_EN_ECC_PIPE => 0, C_HAS_INJECTERR => 0, C_SIM_COLLISION_CHECK => "ALL", C_COMMON_CLK => 0, C_DISABLE_WARN_BHV_COLL => 0, C_EN_SLEEP_PIN => 0, C_DISABLE_WARN_BHV_RANGE => 0, C_COUNT_36K_BRAM => "1", C_COUNT_18K_BRAM => "0", C_EST_POWER_SUMMARY => "Estimated Power for IP : 5.11005 mW" ) PORT MAP ( clka => clka, rsta => '0', ena => '0', regcea => '0', wea => wea, addra => addra, dina => dina, clkb => clkb, rstb => '0', enb => '0', regceb => '0', web => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 1)), addrb => addrb, dinb => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 16)), doutb => doutb, injectsbiterr => '0', injectdbiterr => '0', eccpipece => '0', sleep => '0', s_aclk => '0', s_aresetn => '0', s_axi_awid => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 4)), s_axi_awaddr => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 32)), s_axi_awlen => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 8)), s_axi_awsize => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 3)), s_axi_awburst => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 2)), s_axi_awvalid => '0', s_axi_wdata => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 16)), s_axi_wstrb => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 1)), s_axi_wlast => '0', s_axi_wvalid => '0', s_axi_bready => '0', s_axi_arid => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 4)), s_axi_araddr => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 32)), s_axi_arlen => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 8)), s_axi_arsize => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 3)), s_axi_arburst => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 2)), s_axi_arvalid => '0', s_axi_rready => '0', s_axi_injectsbiterr => '0', s_axi_injectdbiterr => '0' ); END bram_arch;
-- NEED RESULT: ARCH00483: The expression in an attribute specification may be locally static passed ------------------------------------------------------------------------------- -- -- Copyright (c) 1989 by Intermetrics, Inc. -- All rights reserved. -- ------------------------------------------------------------------------------- -- -- TEST NAME: -- -- CT00483 -- -- AUTHOR: -- -- G. Tominovich -- -- TEST OBJECTIVES: -- -- 5.1 (8) -- -- DESIGN UNIT ORDERING: -- -- E00000(ARCH00483) -- ENT00483_Test_Bench(ARCH00483_Test_Bench) -- -- REVISION HISTORY: -- -- 07-AUG-1987 - initial revision -- -- NOTES: -- -- self-checking -- automatically generated -- use WORK.STANDARD_TYPES.all ; architecture ARCH00483 of E00000 is signal S : Integer := 0 ; attribute A_boolean : boolean ; attribute A_boolean of S : signal is c_boolean_1 ; -- attribute A_bit : bit ; attribute A_bit of S : signal is c_bit_1 ; -- attribute A_severity_level : severity_level ; attribute A_severity_level of S : signal is c_severity_level_1 ; -- attribute A_character : character ; attribute A_character of S : signal is c_character_1 ; -- attribute A_st_enum1 : st_enum1 ; attribute A_st_enum1 of S : signal is c_st_enum1_1 ; -- attribute A_integer : integer ; attribute A_integer of S : signal is c_integer_1 ; -- attribute A_st_int1 : st_int1 ; attribute A_st_int1 of S : signal is c_st_int1_1 ; -- attribute A_time : time ; attribute A_time of S : signal is c_time_1 ; -- attribute A_st_phys1 : st_phys1 ; attribute A_st_phys1 of S : signal is c_st_phys1_1 ; -- attribute A_real : real ; attribute A_real of S : signal is c_real_1 ; -- attribute A_st_real1 : st_real1 ; attribute A_st_real1 of S : signal is c_st_real1_1 ; -- attribute A_st_rec1 : st_rec1 ; attribute A_st_rec1 of S : signal is c_st_rec1_1 ; -- attribute A_st_rec2 : st_rec2 ; attribute A_st_rec2 of S : signal is c_st_rec2_1 ; -- attribute A_st_rec3 : st_rec3 ; attribute A_st_rec3 of S : signal is c_st_rec3_1 ; -- attribute A_st_arr1 : st_arr1 ; attribute A_st_arr1 of S : signal is c_st_arr1_1 ; -- attribute A_st_arr2 : st_arr2 ; attribute A_st_arr2 of S : signal is c_st_arr2_1 ; -- attribute A_st_arr3 : st_arr3 ; attribute A_st_arr3 of S : signal is c_st_arr3_1 ; -- -- begin process variable correct : boolean := true; begin correct := correct and (S'A_boolean = c_boolean_1) ; correct := correct and (S'A_bit = c_bit_1) ; correct := correct and (S'A_severity_level = c_severity_level_1) ; correct := correct and (S'A_character = c_character_1) ; correct := correct and (S'A_st_enum1 = c_st_enum1_1) ; correct := correct and (S'A_integer = c_integer_1) ; correct := correct and (S'A_st_int1 = c_st_int1_1) ; correct := correct and (S'A_time = c_time_1) ; correct := correct and (S'A_st_phys1 = c_st_phys1_1) ; correct := correct and (S'A_real = c_real_1) ; correct := correct and (S'A_st_real1 = c_st_real1_1) ; correct := correct and (S'A_st_rec1 = c_st_rec1_1) ; correct := correct and (S'A_st_rec2 = c_st_rec2_1) ; correct := correct and (S'A_st_rec3 = c_st_rec3_1) ; correct := correct and (S'A_st_arr1 = c_st_arr1_1) ; correct := correct and (S'A_st_arr2 = c_st_arr2_1) ; correct := correct and (S'A_st_arr3 = c_st_arr3_1) ; test_report ( "ARCH00483" , "The expression in an attribute specification "& "may be locally static" , correct ); wait ; end process ; end ARCH00483 ; -- -- entity ENT00483_Test_Bench is end ENT00483_Test_Bench ; -- use WORK.STANDARD_TYPES.all ; architecture ARCH00483_Test_Bench of ENT00483_Test_Bench is begin L1: block component UUT end component ; for CIS1 : UUT use entity WORK.E00000 ( ARCH00483 ) ; begin CIS1 : UUT ; end block L1 ; end ARCH00483_Test_Bench ;
library ieee; use ieee.std_logic_1164.all; use ieee.numeric_std.all; library unisim; use unisim.vcomponents.all; library work; use work.fmc150_pkg.all; entity fmc150_testbench is generic( g_sim : integer := 0 ); port ( rst : in std_logic; clk_100Mhz : in std_logic; clk_200Mhz : in std_logic; adc_clk_ab_p : in std_logic; adc_clk_ab_n : in std_logic; -- Start Simulation Only! sim_adc_clk_i : in std_logic; sim_adc_clk2x_i : in std_logic; -- End of Simulation Only! adc_cha_p : in std_logic_vector(6 downto 0); adc_cha_n : in std_logic_vector(6 downto 0); adc_chb_p : in std_logic_vector(6 downto 0); adc_chb_n : in std_logic_vector(6 downto 0); -- Start Simulation Only! sim_adc_cha_data_i : in std_logic_vector(13 downto 0); sim_adc_chb_data_i : in std_logic_vector(13 downto 0); -- End of Simulation Only! dac_dclk_p : out std_logic; dac_dclk_n : out std_logic; dac_data_p : out std_logic_vector(7 downto 0); dac_data_n : out std_logic_vector(7 downto 0); dac_frame_p : out std_logic; dac_frame_n : out std_logic; txenable : out std_logic; --clk_to_fpga_p : in std_logic; --clk_to_fpga_n : in std_logic; --ext_trigger_p : in std_logic; --ext_trigger_n : in std_logic; spi_sclk : out std_logic; spi_sdata : out std_logic; rd_n_wr : in std_logic; addr : in std_logic_vector(15 downto 0); idata : in std_logic_vector(31 downto 0); odata : out std_logic_vector(31 downto 0); busy : out std_logic; cdce72010_valid : in std_logic; ads62p49_valid : in std_logic; dac3283_valid : in std_logic; amc7823_valid : in std_logic; external_clock : in std_logic; adc_n_en : out std_logic; adc_sdo : in std_logic; adc_reset : out std_logic; cdce_n_en : out std_logic; cdce_sdo : in std_logic; cdce_n_reset : out std_logic; cdce_n_pd : out std_logic; ref_en : out std_logic; pll_status : in std_logic; dac_n_en : out std_logic; dac_sdo : in std_logic; mon_n_en : out std_logic; mon_sdo : in std_logic; mon_n_reset : out std_logic; mon_n_int : in std_logic; prsnt_m2c_l : in std_logic; adc_delay_update_i : in std_logic; adc_str_cntvaluein_i : in std_logic_vector(4 downto 0); adc_cha_cntvaluein_i : in std_logic_vector(4 downto 0); adc_chb_cntvaluein_i : in std_logic_vector(4 downto 0); adc_str_cntvalueout_o : out std_logic_vector(4 downto 0); adc_dout_o : out std_logic_vector(31 downto 0); clk_adc_o : out std_logic; mmcm_adc_locked_o : out std_logic ); end fmc150_testbench; architecture rtl of fmc150_testbench is ---------------------------------------------------------------------------------------------------- -- Constant declaration ---------------------------------------------------------------------------------------------------- constant ADC_STR_IDELAY : integer := 0; -- Initial number of delay taps on ADC clock input constant ADC_CHA_IDELAY : integer := 0; -- Initial number of delay taps on ADC data port A constant ADC_CHB_IDELAY : integer := 0; -- Initial number of delay taps on ADC data port B ---------------------------------------------------------------------------------------------------- -- Signal declaration ---------------------------------------------------------------------------------------------------- signal clk_ab_l : std_logic; signal clk_ab_dly : std_logic; signal adc_cha_ddr : std_logic_vector(6 downto 0); -- Double Data Rate signal adc_cha_ddr_dly : std_logic_vector(6 downto 0); -- Double Data Rate, Delayed signal adc_cha_sdr : std_logic_vector(13 downto 0); -- Single Data Rate signal adc_chb_ddr : std_logic_vector(6 downto 0); -- Double Data Rate signal adc_chb_ddr_dly : std_logic_vector(6 downto 0); -- Double Data Rate, Delayed signal adc_chb_sdr : std_logic_vector(13 downto 0); -- Single Data Rate signal adc_dout_a : std_logic_vector(15 downto 0); -- Single Data Rate, Extended to 16-bit signal adc_dout_b : std_logic_vector(15 downto 0); -- Single Data Rate, Extended to 16-bit signal adc_str : std_logic; signal clk_adc : std_logic; signal mmcm_adc_locked : std_logic; signal fmc150_ctrl_in : t_fmc150_ctrl_in; signal fmc150_ctrl_out : t_fmc150_ctrl_out; signal clk_to_fpga : std_logic; signal clk_adc_2x : std_logic; signal dac_din_c : std_logic_vector(15 downto 0); signal dac_din_d : std_logic_vector(15 downto 0); signal adc_str_fbin, adc_str_out, adc_str_2x_out, adc_str_fbout : std_logic; -- simulation only signal toggle_ff_q : std_logic := '0'; signal toggle_ff_d : std_logic := '0'; begin -- Synthesis Only gen_clk : if (g_sim = 0) generate -- I/O delay control cmp_idelayctrl : idelayctrl port map ( rst => rst, refclk => clk_200MHz, rdy => open ); -- ADC Clock PLL cmp_mmcm_adc : MMCM_ADV generic map ( BANDWIDTH => "OPTIMIZED", CLKOUT4_CASCADE => FALSE, CLOCK_HOLD => FALSE, COMPENSATION => "ZHOLD", STARTUP_WAIT => FALSE, DIVCLK_DIVIDE => 1, CLKFBOUT_MULT_F => 16.000, --CLKFBOUT_MULT_F => 8.000, CLKFBOUT_PHASE => 0.000, CLKFBOUT_USE_FINE_PS => FALSE, CLKOUT0_DIVIDE_F => 16.000, --CLKOUT0_DIVIDE_F => 8.000, CLKOUT0_PHASE => 0.000, CLKOUT0_DUTY_CYCLE => 0.500, CLKOUT0_USE_FINE_PS => FALSE, CLKOUT1_DIVIDE => 8, --CLKOUT1_DIVIDE => 4, CLKOUT1_PHASE => 0.000, CLKOUT1_DUTY_CYCLE => 0.500, CLKOUT1_USE_FINE_PS => FALSE, -- 61.44 MHZ input clock CLKIN1_PERIOD => 16.276, -- 122.88 MHZ input clock --CLKIN1_PERIOD => 8.138, REF_JITTER1 => 0.010, -- Not used. Just to bypass Xilinx errors -- Just input 61.44 MHz input clock CLKIN2_PERIOD => 16.276, REF_JITTER2 => 0.010 ) port map ( -- Output clocks CLKFBOUT => adc_str_fbout, CLKFBOUTB => open, CLKOUT0 => adc_str_out, CLKOUT0B => open, CLKOUT1 => adc_str_2x_out, CLKOUT1B => open, CLKOUT2 => open, CLKOUT2B => open, CLKOUT3 => open, CLKOUT3B => open, CLKOUT4 => open, CLKOUT5 => open, CLKOUT6 => open, -- Input clock control CLKFBIN => adc_str_fbin, CLKIN1 => adc_str, CLKIN2 => '0', -- Tied to always select the primary input clock CLKINSEL => '1', -- Ports for dynamic reconfiguration DADDR => (others => '0'), DCLK => '0', DEN => '0', DI => (others => '0'), DO => open, DRDY => open, DWE => '0', -- Ports for dynamic phase shift PSCLK => '0', PSEN => '0', PSINCDEC => '0', PSDONE => open, -- Other control and status signals LOCKED => mmcm_adc_locked, CLKINSTOPPED => open, CLKFBSTOPPED => open, PWRDWN => '0', RST => rst ); -- Global clock buffers for "cmp_mmcm_adc" instance cmp_clkf_bufg : BUFG port map ( O => adc_str_fbin, I => adc_str_fbout ); cmp_adc_str_out_bufg : BUFG port map ( O => clk_adc, I => adc_str_out ); cmp_adc_str_2x_out_bufg : BUFG port map ( O => clk_adc_2x, I => adc_str_2x_out ); end generate; -- Double clock circuit. only for SIMULATION! gen_clk_sim : if (g_sim = 1) generate clk_adc <= sim_adc_clk_i; clk_adc_2x <= sim_adc_clk2x_i; end generate; clk_adc_o <= clk_adc;--adc_str; -- ADC Interface cmp_adc_if : fmc150_adc_if generic map( g_sim => g_sim ) port map ( --clk_200MHz_i => clk_200MHz, clk_100MHz_i => clk_100MHz, rst_i => mmcm_adc_locked, str_p_i => adc_clk_ab_p, str_n_i => adc_clk_ab_n, cha_p_i => adc_cha_p, cha_n_i => adc_cha_n, chb_p_i => adc_chb_p, chb_n_i => adc_chb_n, cha_data_o => adc_cha_sdr, chb_data_o => adc_chb_sdr, str_o => adc_str, -- Not used for now. Should it be removed? clk_adc_i => adc_str,--clk_adc, delay_update_i => adc_delay_update_i, str_cntvalue_i => adc_str_cntvaluein_i, cha_cntvalue_i => adc_cha_cntvaluein_i, chb_cntvalue_i => adc_chb_cntvaluein_i, str_cntvalue_o => adc_str_cntvalueout_o ); -- Extend to 16-bit and register ADC data output -- p_extend_adc_output : process (clk_adc) -- begin -- if (rising_edge(clk_adc)) then gen_data : if (g_sim = 0) generate p_extend_adc_output : process (adc_str) begin if (rising_edge(adc_str)) then -- Left justify the data of both channels on 16-bits adc_dout_a <= adc_cha_sdr(13) & adc_cha_sdr(13) & adc_cha_sdr; adc_dout_b <= adc_chb_sdr(13) & adc_chb_sdr(13) & adc_chb_sdr; -- adc_dout_a <= std_logic_vector(unsigned(adc_dout_a)+1); -- adc_dout_b <= std_logic_vector(unsigned(adc_dout_b)-1); end if; end process; end generate; gen_data_sim : if (g_sim = 1) generate adc_dout_a <= sim_adc_cha_data_i(13) & sim_adc_cha_data_i(13) & sim_adc_cha_data_i; adc_dout_b <= sim_adc_chb_data_i(13) & sim_adc_chb_data_i(13) & sim_adc_chb_data_i; end generate; adc_dout_o <= adc_dout_a & adc_dout_b; --adc_dout_o <= dac_din_c & dac_din_d; -- DAC Interface cmp_dac_if : fmc150_dac_if port map ( rst_i => mmcm_adc_locked, clk_dac_i => clk_adc, clk_dac_2x_i => clk_adc_2x, dac_din_c_i => dac_din_c, dac_din_d_i => dac_din_d, dac_data_p_o => dac_data_p, dac_data_n_o => dac_data_n, dac_dclk_p_o => dac_dclk_p, dac_dclk_n_o => dac_dclk_n, dac_frame_p_o => dac_frame_p, dac_frame_n_o => dac_frame_n, txenable_o => txenable ); mmcm_adc_locked_o <= mmcm_adc_locked; -- Reference signal generation (need external netlist file) -- cmp_sin_cos : sin_cos -- port map -- ( -- clk => clk_adc, -- cosine => dac_din_c, -- sine => dac_din_d, -- phase_out => open -- ); -- FMC150 control (SPI and direct signals) cmp_fmc150_ctrl : fmc150_spi_ctrl generic map( g_sim => g_sim ) port map ( rst => rst, clk => clk_100MHz, rd_n_wr => rd_n_wr, addr => addr, idata => idata, odata => odata, busy => busy, cdce72010_valid => cdce72010_valid, ads62p49_valid => ads62p49_valid, dac3283_valid => dac3283_valid, amc7823_valid => amc7823_valid, external_clock => external_clock, adc_n_en => adc_n_en, adc_sdo => adc_sdo, adc_reset => adc_reset, cdce_n_en => cdce_n_en, cdce_sdo => cdce_sdo, cdce_n_reset => cdce_n_reset, cdce_n_pd => cdce_n_pd, ref_en => ref_en, pll_status => pll_status, dac_n_en => dac_n_en, dac_sdo => dac_sdo, mon_n_en => mon_n_en, mon_sdo => mon_sdo, mon_n_reset => mon_n_reset, mon_n_int => mon_n_int, spi_sclk => spi_sclk, spi_sdata => spi_sdata, prsnt_m2c_l => prsnt_m2c_l ); end rtl;
---------------------------------------------------------------------------------- -- Company: N/A -- Engineer: WTMW -- Create Date: 22:27:15 09/26/2014 -- Design Name: -- Module Name: hardware_interface.vhd -- Project Name: project_nrf -- Target Devices: Nexys 4 -- Tool versions: ISE WEBPACK 64-Bit -- Description: Interface to PIN/PORT and combines/split signals ---------------------------------------------------------------------------------- library IEEE; use IEEE.STD_LOGIC_1164.ALL; use IEEE.STD_LOGIC_ARITH.ALL; use IEEE.STD_LOGIC_UNSIGNED.ALL; use IEEE.NUMERIC_STD.ALL; LIBRARY work; use work.project_nrf_subprog.all; entity hardware_interface is Port ( ssegAnode : out STD_LOGIC_VECTOR (7 downto 0); ssegCathode : out STD_LOGIC_VECTOR (7 downto 0); slideSwitches : in STD_LOGIC_VECTOR (15 downto 0); pushButtons : in STD_LOGIC_VECTOR (4 downto 0); LEDs : out STD_LOGIC_VECTOR (15 downto 0); clk100mhz : in STD_LOGIC; logic_analyzer : out STD_LOGIC_VECTOR (7 downto 0); RGB1_Red : OUT std_logic; RGB1_Green : OUT std_logic; RGB1_Blue : OUT std_logic; RGB2_Red : OUT std_logic; RGB2_Green : OUT std_logic; RGB2_Blue : OUT std_logic; JD_I : in STD_LOGIC_VECTOR(1 downto 0); JD_O : out std_logic_vector(5 downto 0) ); end hardware_interface; architecture Behavioral of hardware_interface is component ssegDriver port ( clk : in std_logic; rst : in std_logic; cathode_p : out std_logic_vector(7 downto 0); anode_p : out std_logic_vector(7 downto 0); digit1_p : in std_logic_vector(3 downto 0); digit2_p : in std_logic_vector(3 downto 0); digit3_p : in std_logic_vector(3 downto 0); digit4_p : in std_logic_vector(3 downto 0); digit5_p : in std_logic_vector(3 downto 0); digit6_p : in std_logic_vector(3 downto 0); digit7_p : in std_logic_vector(3 downto 0); digit8_p : in std_logic_vector(3 downto 0) ); end component; --Central Button signal masterReset : std_logic := '0'; signal buttonLeft : std_logic := '0'; signal buttonRight : std_logic := '0'; signal buttonUp : std_logic := '0'; signal buttonDown : std_logic := '0'; -- Create 1 HIGH CLK signal, for button debouncing type DEBOUNCE_FSM is (DB_IDLE, DB_HIGH); signal bLeftSig : std_logic := '0'; signal bLeft_state : DEBOUNCE_FSM := DB_IDLE; signal bRightSig : std_logic := '0'; signal bRight_state : DEBOUNCE_FSM := DB_IDLE; signal bUpSig : std_logic := '0'; signal bUp_state : DEBOUNCE_FSM := DB_IDLE; signal bDownSig : std_logic := '0'; signal bDown_state : DEBOUNCE_FSM := DB_IDLE; signal displayLower : std_logic_vector(15 downto 0) := (others => '0'); signal displayUpper : std_logic_vector(15 downto 0) := (others => '0'); signal clockScalers : std_logic_vector(26 downto 0) := (others => '0'); signal hamming_error : std_logic_vector(7 downto 0) := (others => '0'); signal data_nib : std_logic_vector(3 downto 0) := (others => '0'); signal LED_UART : std_logic_vector(2 downto 0) := (others => '0'); signal LED_SPI : std_logic_vector(2 downto 0) := (others => '0'); signal MISO : std_logic := '0'; -- In Lines JD_I signal MOSI : std_logic; -- OUT line JD_O signal SCLK : std_logic; -- OUT signal CS : std_logic; -- OUT signal CE : std_logic; -- OUT signal IRQ : std_logic := '0'; -- OUT signal sTransmissionChange : std_logic_vector(2 downto 0) := (others => '0'); signal sHighSpeedTrans : std_logic := '0'; COMPONENT top_controller Port ( clk : in STD_LOGIC; masterReset : in STD_LOGIC; bSend : in STD_LOGIC; -- Right Button bModeChange : in STD_LOGIC; -- Up Button bEnterData : in STD_LOGIC; -- Bottom Button bCount : in STD_LOGIC; -- Left Button sTransmission : in STD_LOGIC_VECTOR(2 downto 0); sHighSpeed : in STD_LOGIC; displayLower : out STD_LOGIC_VECTOR(15 downto 0); displayUpper : out STD_LOGIC_VECTOR(15 downto 0); data_nib : in std_logic_vector(3 downto 0); -- NRF CTRL Lines fed down to SPI_CTRL hamming_err : IN std_logic_vector(7 downto 0); IRQ : in std_logic; CE : OUT std_logic; CS : OUT std_logic; SCLK : OUT std_logic; MOSI : OUT std_logic; MISO : IN std_logic; LED_SPI : OUT std_logic_vector(2 downto 0) ); END COMPONENT; begin D1 : ssegDriver port map ( clk => clockScalers(11), rst => masterReset, cathode_p => ssegCathode, anode_p => ssegAnode, digit1_p => displayLower (3 downto 0), digit2_p => displayLower (7 downto 4), digit3_p => displayLower (11 downto 8), digit4_p => displayLower (15 downto 12), digit5_p => displayUpper (3 downto 0), digit6_p => displayUpper (7 downto 4), digit7_p => displayUpper (11 downto 8), digit8_p => displayUpper (15 downto 12) ); -- Central Button masterReset <= pushButtons(4); buttonLeft <= pushButtons(3); buttonRight <= pushButtons(0); buttonUp <= pushButtons(2); buttonDown <= pushButtons(1); -- Button Debouncing -- Generate HIGH for 1 CLK Cycle -- LEFT Button process begin if (masterReset = '1') then bLeftSig <= '0'; bLeft_State <= DB_IDLE; elsif rising_edge(clk100mHz) then case bLeft_State is when DB_IDLE => if (buttonLeft = '1') then bLeftSig <= '1'; bLeft_State <= DB_HIGH; else bLeftSig <= '0'; bLeft_State <= DB_IDLE; end if; when DB_HIGH => bLeftSig <= '0'; if (buttonLeft = '0') then bLeft_State <= DB_IDLE; end if; end case; end if; end process; -- Right Button process begin if (masterReset = '1') then bRightSig <= '0'; bRight_State <= DB_IDLE; elsif rising_edge(clk100mHz) then case bRight_State is when DB_IDLE => if (buttonright = '1') then bRightSig <= '1'; bRight_State <= DB_HIGH; else bRightSig <= '0'; bRight_State <= DB_IDLE; end if; when DB_HIGH => bRightSig <= '0'; if (buttonRight = '0') then bRight_State <= DB_IDLE; end if; end case; end if; end process; -- Up Button process begin if (masterReset = '1') then bUpSig <= '0'; bUp_State <= DB_IDLE; elsif rising_edge(clk100mHz) then case bUp_State is when DB_IDLE => if (buttonUp = '1') then bUpSig <= '1'; bUp_State <= DB_HIGH; else bUpSig <= '0'; bUp_State <= DB_IDLE; end if; when DB_HIGH => bUpSig <= '0'; if (buttonUp = '0') then bUp_State <= DB_IDLE; end if; end case; end if; end process; -- Down Button process begin if (masterReset = '1') then bDownSig <= '0'; bDown_State <= DB_IDLE; elsif rising_edge(clk100mHz) then case bDown_State is when DB_IDLE => if (buttonDown = '1') then bDownSig <= '1'; bDown_State <= DB_HIGH; else bDownSig <= '0'; bDown_State <= DB_IDLE; end if; when DB_HIGH => bDownSig <= '0'; if (buttonDown = '0') then bDown_State <= DB_IDLE; end if; end case; end if; end process; process (clk100mhz, masterReset) begin if (masterReset = '1') then clockScalers <= "000000000000000000000000000"; elsif rising_edge(clk100mhz) then clockScalers <= clockScalers + '1'; end if; end process; LEDs (15 downto 0) <= clockScalers(26 downto 11); logic_analyzer (7 downto 0) <= clockScalers(26 downto 19); -- Tri-Colour Debug LED hamming_error <= slideSwitches(11 downto 4); data_nib <= slideSwitches(3 downto 0); sTransmissionChange <= slideSwitches(15 downto 13); sHighSpeedTrans <= slideSwitches(12); RGB1_Red <= LED_UART(0); RGB1_Green <= LED_UART(1); RGB1_Blue <= LED_UART(2); RGB2_Red <= LED_SPI(0); RGB2_Green <= LED_SPI(1); RGB2_Blue <= LED_SPI(2); -- SPI Control Lines MISO <= JD_I(0); JD_O(0) <= MOSI; JD_O(1) <= SCLK; JD_O(2) <= CS; JD_O(3) <= CE; IRQ <= JD_I(1); JD_O(4) <= '0'; JD_O(5) <= '0'; CT_S : top_controller PORT MAP ( clk100mHz, masterReset, bRightSig, bUpSig, bDownSig, bLeftSig, sTransmissionChange, sHighSpeedTrans, displayLower, displayUpper, data_nib, hamming_error, IRQ, CE, CS, SCLK, MOSI, MISO, LED_SPI ); end Behavioral;
-- -- \file burst_ram.vhd -- -- Highly parametrizable local RAM block for hardware threads -- -- Port A is thread-side, port AX is optional thread-side, port b is osif-side. -- If configured for two thread-side ports, each port will access one half of -- the total burst RAM. -- -- Possible combinations of generics: -- -- G_PORTA_DWIDTH = 32 (fixed) -- G_PORTB_DWIDTH = 64 (fixed) -- -- G_PORTA_PORTS | G_PORTA_AWIDTH | G_PORTB_AWIDTH | size -- ---------------+----------------+----------------+----- -- 1 | 10 | 9 | 4kB -- 1 | 11 | 10 | 8kB -- 1 | 12 | 11 | 16kB -- 1 | 13 | 12 | 32kB -- 1 | 14 | 13 | 64kB -- 2 | 10 | 10 | 8kB -- 2 | 11 | 11 | 16kB -- 2 | 12 | 12 | 32kB -- 2 | 13 | 13 | 64kB -- -- \author Enno Luebbers <[email protected]> -- \date 08.05.2007 -- ----------------------------------------------------------------------------- -- %%%RECONOS_COPYRIGHT_BEGIN%%% -- -- This file is part of ReconOS (http://www.reconos.de). -- Copyright (c) 2006-2010 The ReconOS Project and contributors (see AUTHORS). -- All rights reserved. -- -- ReconOS 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. -- -- ReconOS 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 ReconOS. If not, see <http://www.gnu.org/licenses/>. -- -- %%%RECONOS_COPYRIGHT_END%%% ----------------------------------------------------------------------------- -- library IEEE; use IEEE.STD_LOGIC_1164.ALL; use IEEE.NUMERIC_STD.ALL; --library reconos_v1_02_a; --use reconos_v1_02_a.reconos_pkg.ALL; ---- Uncomment the following library declaration if instantiating ---- any Xilinx primitives in this code. --library UNISIM; --use UNISIM.VComponents.all; entity burst_ram is generic ( -- address and data widths, THREAD-side and OSIF-side G_PORTA_AWIDTH : integer := 10; G_PORTA_DWIDTH : integer := 32; -- this is fixed! G_PORTA_PORTS : integer := 2; G_PORTB_AWIDTH : integer := 10; G_PORTB_DWIDTH : integer := 64; -- this is fixed! G_PORTB_USE_BE : integer := 0 -- use byte-enable on Port B ); port ( -- A is thread-side, AX is secondary thread-side, B is OSIF-side addra : in std_logic_vector(G_PORTA_AWIDTH-1 downto 0); addrax: in std_logic_vector(G_PORTA_AWIDTH-1 downto 0); addrb : in std_logic_vector(G_PORTB_AWIDTH-1 downto 0); clka : in std_logic; clkax : in std_logic; clkb : in std_logic; dina : in std_logic_vector(G_PORTA_DWIDTH-1 downto 0); -- these widths are fixed dinax : in std_logic_vector(G_PORTA_DWIDTH-1 downto 0); -- dinb : in std_logic_vector(G_PORTB_DWIDTH-1 downto 0); -- douta : out std_logic_vector(G_PORTA_DWIDTH-1 downto 0); -- doutax: out std_logic_vector(G_PORTA_DWIDTH-1 downto 0); -- doutb : out std_logic_vector(G_PORTB_DWIDTH-1 downto 0); -- wea : in std_logic; weax : in std_logic; web : in std_logic; ena : in std_logic; enax : in std_logic; enb : in std_logic; beb : in std_logic_vector(G_PORTB_DWIDTH/8-1 downto 0) ); end burst_ram; architecture Behavioral of burst_ram is --== DERIVED CONSTANTS ==-- -- RAM size derived from Port A constant C_PORTA_SIZE_BYTES : natural := 2**G_PORTA_AWIDTH * (G_PORTA_DWIDTH/8) * G_PORTA_PORTS; -- RAM size derived from Port B constant C_PORTB_SIZE_BYTES : natural := 2**G_PORTB_AWIDTH * (G_PORTB_DWIDTH/8); constant C_RAM_SIZE_KB : natural := C_PORTA_SIZE_BYTES / 1024; -- constant C_OSIF_AWIDTH : natural := log2(C_RAM_SIZE_BYTES); -- constant C_THREAD_AWIDTH : natural := C_OSIF_AWIDTH - 2 - log2(G_THREAD_PORTS); -- number of BRAM blocks constant C_NUM_BRAMS : natural := C_RAM_SIZE_KB / 2; -- thread-side data width of a single BRAM block constant C_PORTA_BRAM_DWIDTH : natural := G_PORTA_DWIDTH * G_PORTA_PORTS / C_NUM_BRAMS; constant C_PORTB_BRAM_DWIDTH : natural := C_PORTA_BRAM_DWIDTH * 2; -- ratio of data widths constant C_BRAM_DWIDTH_RATIO : natural := C_PORTB_BRAM_DWIDTH / C_PORTA_BRAM_DWIDTH; -- always 2 -- RAM primitive component declaration component ram_single is generic ( -- address and data widths, THREAD-side and OSIF-side G_PORTA_AWIDTH : integer := 10; G_PORTA_DWIDTH : integer := 32; -- this is fixed! G_PORTB_AWIDTH : integer := 10; G_PORTB_DWIDTH : integer := 64; -- this is fixed! G_PORTB_USE_BE : integer := 0 -- use byte-enable on Port B ); port ( -- A is thread-side, AX is secondary thread-side, B is OSIF-side addra : in std_logic_vector(G_PORTA_AWIDTH-1 downto 0); addrb : in std_logic_vector(G_PORTB_AWIDTH-1 downto 0); clka : in std_logic; clkb : in std_logic; dina : in std_logic_vector(G_PORTA_DWIDTH-1 downto 0); -- these widths are fixed dinb : in std_logic_vector(G_PORTB_DWIDTH-1 downto 0); -- douta : out std_logic_vector(G_PORTA_DWIDTH-1 downto 0); -- doutb : out std_logic_vector(G_PORTB_DWIDTH-1 downto 0); -- wea : in std_logic; web : in std_logic; ena : in std_logic; enb : in std_logic; beb : in std_logic_vector(G_PORTB_DWIDTH/8-1 downto 0) ); end component; type mux_vec_array_t is array (G_PORTA_PORTS-1 downto 0) of std_logic_vector(G_PORTB_DWIDTH-1 downto 0); -- helper signals for PORTB multiplexer signal sel : std_logic; signal doutb_tmp : mux_vec_array_t; signal web_tmp : std_logic_vector(G_PORTA_PORTS-1 downto 0); -- 1 is upper RAM (lower addresses) -- 0 is lower RAM (higher addresses) begin -- check generics for feasibility assert G_PORTA_DWIDTH = 32 report "thread-side (PORTA) data width must be 32" severity failure; assert G_PORTB_DWIDTH = 64 report "OSIF-side (PORTB) data width must be 64" severity failure; -- this will not catch two-port/14 bit, which is not supported) assert (G_PORTA_AWIDTH >= 10) and (G_PORTA_AWIDTH <= 14) report "PORTA must have address width between 10 and 14 bits" severity failure; -- this will not catch two-port/9 bit, which is not supported) assert (G_PORTB_AWIDTH >= 9) and (G_PORTA_AWIDTH <= 13) report "PORTB must have address width between 9 and 13 bits" severity failure; assert (G_PORTA_PORTS <= 2) and (G_PORTA_PORTS > 0) report "only one or two thread-side (PORTA) ports supported" severity failure; assert C_PORTA_SIZE_BYTES = C_PORTB_SIZE_BYTES report "combination of data and address widths impossible" severity failure; assert (G_PORTB_USE_BE = 0) or (C_PORTB_BRAM_DWIDTH <= 8) report "port B byte enables cannot be used with this memory size" severity failure; ------------------------ SINGLE PORT --------------------------------------------- single_port: if G_PORTA_PORTS = 1 generate -- one thread-side port => no multiplexers ram_inst: ram_single generic map ( G_PORTA_AWIDTH => G_PORTA_AWIDTH, G_PORTA_DWIDTH => G_PORTA_DWIDTH, G_PORTB_AWIDTH => G_PORTB_AWIDTH, G_PORTB_DWIDTH => G_PORTB_DWIDTH, G_PORTB_USE_BE => G_PORTB_USE_BE ) port map ( addra => addra, addrb => addrb, clka => clka, clkb => clkb, dina => dina, dinb => dinb, douta => douta, doutb => doutb, wea => wea, web => web, ena => ena, enb => enb, beb => beb ); doutax <= (others => '0'); end generate; -- single_port ------------------------ MULTI PORT --------------------------------------------- multi_ports: if G_PORTA_PORTS = 2 generate -- assert false report "multiple ports not yet implemented!" severity failure; -- PORTA RAM ram_porta: ram_single generic map ( G_PORTA_AWIDTH => G_PORTA_AWIDTH, G_PORTA_DWIDTH => G_PORTA_DWIDTH, G_PORTB_AWIDTH => G_PORTB_AWIDTH-1, G_PORTB_DWIDTH => G_PORTB_DWIDTH, G_PORTB_USE_BE => G_PORTB_USE_BE ) port map ( addra => addra, addrb => addrb(G_PORTB_AWIDTH-2 downto 0), clka => clka, clkb => clkb, dina => dina, dinb => dinb, douta => douta, doutb => doutb_tmp(1), wea => wea, web => web_tmp(1), ena => ena, enb => enb, beb => beb ); -- PORTAX RAM ram_portax: ram_single generic map ( G_PORTA_AWIDTH => G_PORTA_AWIDTH, G_PORTA_DWIDTH => G_PORTA_DWIDTH, G_PORTB_AWIDTH => G_PORTB_AWIDTH-1, G_PORTB_DWIDTH => G_PORTB_DWIDTH, G_PORTB_USE_BE => G_PORTB_USE_BE ) port map ( addra => addrax, addrb => addrb(G_PORTB_AWIDTH-2 downto 0), clka => clkax, clkb => clkb, dina => dinax, dinb => dinb, douta => doutax, doutb => doutb_tmp(0), wea => weax, web => web_tmp(0), ena => enax, enb => enb, beb => beb ); -- multiplexer sel <= addrb(G_PORTB_AWIDTH-1); doutb <= doutb_tmp(1) when sel = '0' else doutb_tmp(0); web_tmp(1 downto 0) <= (web and not sel) & (web and sel); end generate; end Behavioral;
-- Copyright 1986-2015 Xilinx, Inc. All Rights Reserved. -- -------------------------------------------------------------------------------- -- Tool Version: Vivado v.2015.3 (win64) Build 1368829 Mon Sep 28 20:06:43 MDT 2015 -- Date : Wed Mar 30 14:52:12 2016 -- Host : DESKTOP-5FTSDRT running 64-bit major release (build 9200) -- Command : write_vhdl -force -mode funcsim -- C:/Users/SKL/Desktop/ECE532/repo/streamed_encoder_ip_prj2/project_1.runs/scfifo_5in_5out_5kb_synth_1/scfifo_5in_5out_5kb_sim_netlist.vhdl -- Design : scfifo_5in_5out_5kb -- Purpose : This VHDL netlist is a functional simulation representation of the design and should not be modified or -- synthesized. This netlist cannot be used for SDF annotated simulation. -- Device : xc7a200tsbg484-1 -- -------------------------------------------------------------------------------- library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_blk_mem_gen_prim_wrapper is port ( D : out STD_LOGIC_VECTOR ( 4 downto 0 ); clk : in STD_LOGIC; ram_full_fb_i_reg : in STD_LOGIC_VECTOR ( 0 to 0 ); tmp_ram_rd_en : in STD_LOGIC; Q : in STD_LOGIC_VECTOR ( 0 to 0 ); \gcc0.gc0.count_d1_reg[9]\ : in STD_LOGIC_VECTOR ( 9 downto 0 ); \gc0.count_d1_reg[9]\ : in STD_LOGIC_VECTOR ( 9 downto 0 ); din : in STD_LOGIC_VECTOR ( 4 downto 0 ) ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_blk_mem_gen_prim_wrapper : entity is "blk_mem_gen_prim_wrapper"; end scfifo_5in_5out_5kb_blk_mem_gen_prim_wrapper; architecture STRUCTURE of scfifo_5in_5out_5kb_blk_mem_gen_prim_wrapper is signal \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_16\ : STD_LOGIC; signal \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_17\ : STD_LOGIC; signal \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_18\ : STD_LOGIC; signal \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_19\ : STD_LOGIC; signal \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_20\ : STD_LOGIC; signal \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_21\ : STD_LOGIC; signal \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_24\ : STD_LOGIC; signal \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_25\ : STD_LOGIC; signal \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_26\ : STD_LOGIC; signal \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_27\ : STD_LOGIC; signal \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_28\ : STD_LOGIC; signal \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_34\ : STD_LOGIC; signal \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_35\ : STD_LOGIC; signal \NLW_DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_DOADO_UNCONNECTED\ : STD_LOGIC_VECTOR ( 15 downto 0 ); signal \NLW_DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_DOPADOP_UNCONNECTED\ : STD_LOGIC_VECTOR ( 1 downto 0 ); attribute CLOCK_DOMAINS : string; attribute CLOCK_DOMAINS of \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram\ : label is "COMMON"; attribute box_type : string; attribute box_type of \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram\ : label is "PRIMITIVE"; begin \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram\: unisim.vcomponents.RAMB18E1 generic map( DOA_REG => 0, DOB_REG => 0, INITP_00 => X"0000000000000000000000000000000000000000000000000000000000000000", INITP_01 => X"0000000000000000000000000000000000000000000000000000000000000000", INITP_02 => X"0000000000000000000000000000000000000000000000000000000000000000", INITP_03 => X"0000000000000000000000000000000000000000000000000000000000000000", INITP_04 => X"0000000000000000000000000000000000000000000000000000000000000000", INITP_05 => X"0000000000000000000000000000000000000000000000000000000000000000", INITP_06 => X"0000000000000000000000000000000000000000000000000000000000000000", INITP_07 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_00 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_01 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_02 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_03 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_04 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_05 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_06 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_07 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_08 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_09 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_0A => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_0B => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_0C => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_0D => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_0E => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_0F => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_10 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_11 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_12 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_13 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_14 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_15 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_16 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_17 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_18 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_19 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_1A => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_1B => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_1C => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_1D => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_1E => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_1F => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_20 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_21 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_22 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_23 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_24 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_25 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_26 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_27 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_28 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_29 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_2A => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_2B => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_2C => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_2D => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_2E => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_2F => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_30 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_31 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_32 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_33 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_34 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_35 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_36 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_37 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_38 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_39 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_3A => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_3B => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_3C => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_3D => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_3E => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_3F => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_A => X"00000", INIT_B => X"00000", INIT_FILE => "NONE", IS_CLKARDCLK_INVERTED => '0', IS_CLKBWRCLK_INVERTED => '0', IS_ENARDEN_INVERTED => '0', IS_ENBWREN_INVERTED => '0', IS_RSTRAMARSTRAM_INVERTED => '0', IS_RSTRAMB_INVERTED => '0', IS_RSTREGARSTREG_INVERTED => '0', IS_RSTREGB_INVERTED => '0', RAM_MODE => "TDP", RDADDR_COLLISION_HWCONFIG => "DELAYED_WRITE", READ_WIDTH_A => 18, READ_WIDTH_B => 18, RSTREG_PRIORITY_A => "REGCE", RSTREG_PRIORITY_B => "REGCE", SIM_COLLISION_CHECK => "ALL", SIM_DEVICE => "7SERIES", SRVAL_A => X"00000", SRVAL_B => X"00000", WRITE_MODE_A => "WRITE_FIRST", WRITE_MODE_B => "WRITE_FIRST", WRITE_WIDTH_A => 18, WRITE_WIDTH_B => 18 ) port map ( ADDRARDADDR(13 downto 4) => \gcc0.gc0.count_d1_reg[9]\(9 downto 0), ADDRARDADDR(3 downto 0) => B"0000", ADDRBWRADDR(13 downto 4) => \gc0.count_d1_reg[9]\(9 downto 0), ADDRBWRADDR(3 downto 0) => B"0000", CLKARDCLK => clk, CLKBWRCLK => clk, DIADI(15 downto 10) => B"000000", DIADI(9 downto 8) => din(4 downto 3), DIADI(7 downto 3) => B"00000", DIADI(2 downto 0) => din(2 downto 0), DIBDI(15 downto 0) => B"0000000000000000", DIPADIP(1 downto 0) => B"00", DIPBDIP(1 downto 0) => B"00", DOADO(15 downto 0) => \NLW_DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_DOADO_UNCONNECTED\(15 downto 0), DOBDO(15) => \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_16\, DOBDO(14) => \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_17\, DOBDO(13) => \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_18\, DOBDO(12) => \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_19\, DOBDO(11) => \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_20\, DOBDO(10) => \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_21\, DOBDO(9 downto 8) => D(4 downto 3), DOBDO(7) => \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_24\, DOBDO(6) => \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_25\, DOBDO(5) => \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_26\, DOBDO(4) => \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_27\, DOBDO(3) => \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_28\, DOBDO(2 downto 0) => D(2 downto 0), DOPADOP(1 downto 0) => \NLW_DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_DOPADOP_UNCONNECTED\(1 downto 0), DOPBDOP(1) => \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_34\, DOPBDOP(0) => \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_35\, ENARDEN => ram_full_fb_i_reg(0), ENBWREN => tmp_ram_rd_en, REGCEAREGCE => '0', REGCEB => '0', RSTRAMARSTRAM => '0', RSTRAMB => Q(0), RSTREGARSTREG => '0', RSTREGB => '0', WEA(1) => ram_full_fb_i_reg(0), WEA(0) => ram_full_fb_i_reg(0), WEBWE(3 downto 0) => B"0000" ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_compare is port ( comp0 : out STD_LOGIC; v1_reg : in STD_LOGIC_VECTOR ( 4 downto 0 ) ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_compare : entity is "compare"; end scfifo_5in_5out_5kb_compare; architecture STRUCTURE of scfifo_5in_5out_5kb_compare is signal \gmux.gm[3].gms.ms_n_0\ : STD_LOGIC; signal \NLW_gmux.gm[0].gm1.m1_CARRY4_CO_UNCONNECTED\ : STD_LOGIC_VECTOR ( 2 downto 0 ); signal \NLW_gmux.gm[0].gm1.m1_CARRY4_O_UNCONNECTED\ : STD_LOGIC_VECTOR ( 3 downto 0 ); signal \NLW_gmux.gm[4].gms.ms_CARRY4_CO_UNCONNECTED\ : STD_LOGIC_VECTOR ( 3 downto 1 ); signal \NLW_gmux.gm[4].gms.ms_CARRY4_DI_UNCONNECTED\ : STD_LOGIC_VECTOR ( 3 downto 1 ); signal \NLW_gmux.gm[4].gms.ms_CARRY4_O_UNCONNECTED\ : STD_LOGIC_VECTOR ( 3 downto 0 ); signal \NLW_gmux.gm[4].gms.ms_CARRY4_S_UNCONNECTED\ : STD_LOGIC_VECTOR ( 3 downto 1 ); attribute XILINX_LEGACY_PRIM : string; attribute XILINX_LEGACY_PRIM of \gmux.gm[0].gm1.m1_CARRY4\ : label is "(MUXCY,XORCY)"; attribute box_type : string; attribute box_type of \gmux.gm[0].gm1.m1_CARRY4\ : label is "PRIMITIVE"; attribute XILINX_LEGACY_PRIM of \gmux.gm[4].gms.ms_CARRY4\ : label is "(MUXCY,XORCY)"; attribute box_type of \gmux.gm[4].gms.ms_CARRY4\ : label is "PRIMITIVE"; begin \gmux.gm[0].gm1.m1_CARRY4\: unisim.vcomponents.CARRY4 port map ( CI => '0', CO(3) => \gmux.gm[3].gms.ms_n_0\, CO(2 downto 0) => \NLW_gmux.gm[0].gm1.m1_CARRY4_CO_UNCONNECTED\(2 downto 0), CYINIT => '1', DI(3 downto 0) => B"0000", O(3 downto 0) => \NLW_gmux.gm[0].gm1.m1_CARRY4_O_UNCONNECTED\(3 downto 0), S(3 downto 0) => v1_reg(3 downto 0) ); \gmux.gm[4].gms.ms_CARRY4\: unisim.vcomponents.CARRY4 port map ( CI => \gmux.gm[3].gms.ms_n_0\, CO(3 downto 1) => \NLW_gmux.gm[4].gms.ms_CARRY4_CO_UNCONNECTED\(3 downto 1), CO(0) => comp0, CYINIT => '0', DI(3 downto 1) => \NLW_gmux.gm[4].gms.ms_CARRY4_DI_UNCONNECTED\(3 downto 1), DI(0) => '0', O(3 downto 0) => \NLW_gmux.gm[4].gms.ms_CARRY4_O_UNCONNECTED\(3 downto 0), S(3 downto 1) => \NLW_gmux.gm[4].gms.ms_CARRY4_S_UNCONNECTED\(3 downto 1), S(0) => v1_reg(4) ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_compare_0 is port ( comp1 : out STD_LOGIC; v1_reg_1 : in STD_LOGIC_VECTOR ( 4 downto 0 ) ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_compare_0 : entity is "compare"; end scfifo_5in_5out_5kb_compare_0; architecture STRUCTURE of scfifo_5in_5out_5kb_compare_0 is signal \gmux.gm[3].gms.ms_n_0\ : STD_LOGIC; signal \NLW_gmux.gm[0].gm1.m1_CARRY4_CO_UNCONNECTED\ : STD_LOGIC_VECTOR ( 2 downto 0 ); signal \NLW_gmux.gm[0].gm1.m1_CARRY4_O_UNCONNECTED\ : STD_LOGIC_VECTOR ( 3 downto 0 ); signal \NLW_gmux.gm[4].gms.ms_CARRY4_CO_UNCONNECTED\ : STD_LOGIC_VECTOR ( 3 downto 1 ); signal \NLW_gmux.gm[4].gms.ms_CARRY4_DI_UNCONNECTED\ : STD_LOGIC_VECTOR ( 3 downto 1 ); signal \NLW_gmux.gm[4].gms.ms_CARRY4_O_UNCONNECTED\ : STD_LOGIC_VECTOR ( 3 downto 0 ); signal \NLW_gmux.gm[4].gms.ms_CARRY4_S_UNCONNECTED\ : STD_LOGIC_VECTOR ( 3 downto 1 ); attribute XILINX_LEGACY_PRIM : string; attribute XILINX_LEGACY_PRIM of \gmux.gm[0].gm1.m1_CARRY4\ : label is "(MUXCY,XORCY)"; attribute box_type : string; attribute box_type of \gmux.gm[0].gm1.m1_CARRY4\ : label is "PRIMITIVE"; attribute XILINX_LEGACY_PRIM of \gmux.gm[4].gms.ms_CARRY4\ : label is "(MUXCY,XORCY)"; attribute box_type of \gmux.gm[4].gms.ms_CARRY4\ : label is "PRIMITIVE"; begin \gmux.gm[0].gm1.m1_CARRY4\: unisim.vcomponents.CARRY4 port map ( CI => '0', CO(3) => \gmux.gm[3].gms.ms_n_0\, CO(2 downto 0) => \NLW_gmux.gm[0].gm1.m1_CARRY4_CO_UNCONNECTED\(2 downto 0), CYINIT => '1', DI(3 downto 0) => B"0000", O(3 downto 0) => \NLW_gmux.gm[0].gm1.m1_CARRY4_O_UNCONNECTED\(3 downto 0), S(3 downto 0) => v1_reg_1(3 downto 0) ); \gmux.gm[4].gms.ms_CARRY4\: unisim.vcomponents.CARRY4 port map ( CI => \gmux.gm[3].gms.ms_n_0\, CO(3 downto 1) => \NLW_gmux.gm[4].gms.ms_CARRY4_CO_UNCONNECTED\(3 downto 1), CO(0) => comp1, CYINIT => '0', DI(3 downto 1) => \NLW_gmux.gm[4].gms.ms_CARRY4_DI_UNCONNECTED\(3 downto 1), DI(0) => '0', O(3 downto 0) => \NLW_gmux.gm[4].gms.ms_CARRY4_O_UNCONNECTED\(3 downto 0), S(3 downto 1) => \NLW_gmux.gm[4].gms.ms_CARRY4_S_UNCONNECTED\(3 downto 1), S(0) => v1_reg_1(4) ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_compare_1 is port ( comp0 : out STD_LOGIC; v1_reg_0 : in STD_LOGIC_VECTOR ( 4 downto 0 ) ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_compare_1 : entity is "compare"; end scfifo_5in_5out_5kb_compare_1; architecture STRUCTURE of scfifo_5in_5out_5kb_compare_1 is signal \gmux.gm[3].gms.ms_n_0\ : STD_LOGIC; signal \NLW_gmux.gm[0].gm1.m1_CARRY4_CO_UNCONNECTED\ : STD_LOGIC_VECTOR ( 2 downto 0 ); signal \NLW_gmux.gm[0].gm1.m1_CARRY4_O_UNCONNECTED\ : STD_LOGIC_VECTOR ( 3 downto 0 ); signal \NLW_gmux.gm[4].gms.ms_CARRY4_CO_UNCONNECTED\ : STD_LOGIC_VECTOR ( 3 downto 1 ); signal \NLW_gmux.gm[4].gms.ms_CARRY4_DI_UNCONNECTED\ : STD_LOGIC_VECTOR ( 3 downto 1 ); signal \NLW_gmux.gm[4].gms.ms_CARRY4_O_UNCONNECTED\ : STD_LOGIC_VECTOR ( 3 downto 0 ); signal \NLW_gmux.gm[4].gms.ms_CARRY4_S_UNCONNECTED\ : STD_LOGIC_VECTOR ( 3 downto 1 ); attribute XILINX_LEGACY_PRIM : string; attribute XILINX_LEGACY_PRIM of \gmux.gm[0].gm1.m1_CARRY4\ : label is "(MUXCY,XORCY)"; attribute box_type : string; attribute box_type of \gmux.gm[0].gm1.m1_CARRY4\ : label is "PRIMITIVE"; attribute XILINX_LEGACY_PRIM of \gmux.gm[4].gms.ms_CARRY4\ : label is "(MUXCY,XORCY)"; attribute box_type of \gmux.gm[4].gms.ms_CARRY4\ : label is "PRIMITIVE"; begin \gmux.gm[0].gm1.m1_CARRY4\: unisim.vcomponents.CARRY4 port map ( CI => '0', CO(3) => \gmux.gm[3].gms.ms_n_0\, CO(2 downto 0) => \NLW_gmux.gm[0].gm1.m1_CARRY4_CO_UNCONNECTED\(2 downto 0), CYINIT => '1', DI(3 downto 0) => B"0000", O(3 downto 0) => \NLW_gmux.gm[0].gm1.m1_CARRY4_O_UNCONNECTED\(3 downto 0), S(3 downto 0) => v1_reg_0(3 downto 0) ); \gmux.gm[4].gms.ms_CARRY4\: unisim.vcomponents.CARRY4 port map ( CI => \gmux.gm[3].gms.ms_n_0\, CO(3 downto 1) => \NLW_gmux.gm[4].gms.ms_CARRY4_CO_UNCONNECTED\(3 downto 1), CO(0) => comp0, CYINIT => '0', DI(3 downto 1) => \NLW_gmux.gm[4].gms.ms_CARRY4_DI_UNCONNECTED\(3 downto 1), DI(0) => '0', O(3 downto 0) => \NLW_gmux.gm[4].gms.ms_CARRY4_O_UNCONNECTED\(3 downto 0), S(3 downto 1) => \NLW_gmux.gm[4].gms.ms_CARRY4_S_UNCONNECTED\(3 downto 1), S(0) => v1_reg_0(4) ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_compare_2 is port ( comp1 : out STD_LOGIC; v1_reg_1 : in STD_LOGIC_VECTOR ( 4 downto 0 ) ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_compare_2 : entity is "compare"; end scfifo_5in_5out_5kb_compare_2; architecture STRUCTURE of scfifo_5in_5out_5kb_compare_2 is signal \gmux.gm[3].gms.ms_n_0\ : STD_LOGIC; signal \NLW_gmux.gm[0].gm1.m1_CARRY4_CO_UNCONNECTED\ : STD_LOGIC_VECTOR ( 2 downto 0 ); signal \NLW_gmux.gm[0].gm1.m1_CARRY4_O_UNCONNECTED\ : STD_LOGIC_VECTOR ( 3 downto 0 ); signal \NLW_gmux.gm[4].gms.ms_CARRY4_CO_UNCONNECTED\ : STD_LOGIC_VECTOR ( 3 downto 1 ); signal \NLW_gmux.gm[4].gms.ms_CARRY4_DI_UNCONNECTED\ : STD_LOGIC_VECTOR ( 3 downto 1 ); signal \NLW_gmux.gm[4].gms.ms_CARRY4_O_UNCONNECTED\ : STD_LOGIC_VECTOR ( 3 downto 0 ); signal \NLW_gmux.gm[4].gms.ms_CARRY4_S_UNCONNECTED\ : STD_LOGIC_VECTOR ( 3 downto 1 ); attribute XILINX_LEGACY_PRIM : string; attribute XILINX_LEGACY_PRIM of \gmux.gm[0].gm1.m1_CARRY4\ : label is "(MUXCY,XORCY)"; attribute box_type : string; attribute box_type of \gmux.gm[0].gm1.m1_CARRY4\ : label is "PRIMITIVE"; attribute XILINX_LEGACY_PRIM of \gmux.gm[4].gms.ms_CARRY4\ : label is "(MUXCY,XORCY)"; attribute box_type of \gmux.gm[4].gms.ms_CARRY4\ : label is "PRIMITIVE"; begin \gmux.gm[0].gm1.m1_CARRY4\: unisim.vcomponents.CARRY4 port map ( CI => '0', CO(3) => \gmux.gm[3].gms.ms_n_0\, CO(2 downto 0) => \NLW_gmux.gm[0].gm1.m1_CARRY4_CO_UNCONNECTED\(2 downto 0), CYINIT => '1', DI(3 downto 0) => B"0000", O(3 downto 0) => \NLW_gmux.gm[0].gm1.m1_CARRY4_O_UNCONNECTED\(3 downto 0), S(3 downto 0) => v1_reg_1(3 downto 0) ); \gmux.gm[4].gms.ms_CARRY4\: unisim.vcomponents.CARRY4 port map ( CI => \gmux.gm[3].gms.ms_n_0\, CO(3 downto 1) => \NLW_gmux.gm[4].gms.ms_CARRY4_CO_UNCONNECTED\(3 downto 1), CO(0) => comp1, CYINIT => '0', DI(3 downto 1) => \NLW_gmux.gm[4].gms.ms_CARRY4_DI_UNCONNECTED\(3 downto 1), DI(0) => '0', O(3 downto 0) => \NLW_gmux.gm[4].gms.ms_CARRY4_O_UNCONNECTED\(3 downto 0), S(3 downto 1) => \NLW_gmux.gm[4].gms.ms_CARRY4_S_UNCONNECTED\(3 downto 1), S(0) => v1_reg_1(4) ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_rd_bin_cntr is port ( Q : out STD_LOGIC_VECTOR ( 9 downto 0 ); v1_reg : out STD_LOGIC_VECTOR ( 4 downto 0 ); \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram\ : out STD_LOGIC_VECTOR ( 9 downto 0 ); \gcc0.gc0.count_reg[9]\ : in STD_LOGIC_VECTOR ( 9 downto 0 ); E : in STD_LOGIC_VECTOR ( 0 to 0 ); clk : in STD_LOGIC; \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\ : in STD_LOGIC_VECTOR ( 0 to 0 ) ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_rd_bin_cntr : entity is "rd_bin_cntr"; end scfifo_5in_5out_5kb_rd_bin_cntr; architecture STRUCTURE of scfifo_5in_5out_5kb_rd_bin_cntr is signal \^device_7series.no_bmm_info.sdp.simple_prim18.ram\ : STD_LOGIC_VECTOR ( 9 downto 0 ); signal \^q\ : STD_LOGIC_VECTOR ( 9 downto 0 ); signal \gc0.count[9]_i_2_n_0\ : STD_LOGIC; signal plusOp : STD_LOGIC_VECTOR ( 9 downto 0 ); attribute SOFT_HLUTNM : string; attribute SOFT_HLUTNM of \gc0.count[1]_i_1\ : label is "soft_lutpair4"; attribute SOFT_HLUTNM of \gc0.count[2]_i_1\ : label is "soft_lutpair4"; attribute SOFT_HLUTNM of \gc0.count[3]_i_1\ : label is "soft_lutpair2"; attribute SOFT_HLUTNM of \gc0.count[4]_i_1\ : label is "soft_lutpair2"; attribute SOFT_HLUTNM of \gc0.count[6]_i_1\ : label is "soft_lutpair5"; attribute SOFT_HLUTNM of \gc0.count[7]_i_1\ : label is "soft_lutpair5"; attribute SOFT_HLUTNM of \gc0.count[8]_i_1\ : label is "soft_lutpair3"; attribute SOFT_HLUTNM of \gc0.count[9]_i_1\ : label is "soft_lutpair3"; begin \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram\(9 downto 0) <= \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(9 downto 0); Q(9 downto 0) <= \^q\(9 downto 0); \gc0.count[0]_i_1\: unisim.vcomponents.LUT1 generic map( INIT => X"1" ) port map ( I0 => \^q\(0), O => plusOp(0) ); \gc0.count[1]_i_1\: unisim.vcomponents.LUT2 generic map( INIT => X"6" ) port map ( I0 => \^q\(0), I1 => \^q\(1), O => plusOp(1) ); \gc0.count[2]_i_1\: unisim.vcomponents.LUT3 generic map( INIT => X"78" ) port map ( I0 => \^q\(0), I1 => \^q\(1), I2 => \^q\(2), O => plusOp(2) ); \gc0.count[3]_i_1\: unisim.vcomponents.LUT4 generic map( INIT => X"7F80" ) port map ( I0 => \^q\(1), I1 => \^q\(0), I2 => \^q\(2), I3 => \^q\(3), O => plusOp(3) ); \gc0.count[4]_i_1\: unisim.vcomponents.LUT5 generic map( INIT => X"7FFF8000" ) port map ( I0 => \^q\(2), I1 => \^q\(0), I2 => \^q\(1), I3 => \^q\(3), I4 => \^q\(4), O => plusOp(4) ); \gc0.count[5]_i_1\: unisim.vcomponents.LUT6 generic map( INIT => X"7FFFFFFF80000000" ) port map ( I0 => \^q\(3), I1 => \^q\(1), I2 => \^q\(0), I3 => \^q\(2), I4 => \^q\(4), I5 => \^q\(5), O => plusOp(5) ); \gc0.count[6]_i_1\: unisim.vcomponents.LUT2 generic map( INIT => X"9" ) port map ( I0 => \gc0.count[9]_i_2_n_0\, I1 => \^q\(6), O => plusOp(6) ); \gc0.count[7]_i_1\: unisim.vcomponents.LUT3 generic map( INIT => X"B4" ) port map ( I0 => \gc0.count[9]_i_2_n_0\, I1 => \^q\(6), I2 => \^q\(7), O => plusOp(7) ); \gc0.count[8]_i_1\: unisim.vcomponents.LUT4 generic map( INIT => X"DF20" ) port map ( I0 => \^q\(6), I1 => \gc0.count[9]_i_2_n_0\, I2 => \^q\(7), I3 => \^q\(8), O => plusOp(8) ); \gc0.count[9]_i_1\: unisim.vcomponents.LUT5 generic map( INIT => X"F7FF0800" ) port map ( I0 => \^q\(8), I1 => \^q\(7), I2 => \gc0.count[9]_i_2_n_0\, I3 => \^q\(6), I4 => \^q\(9), O => plusOp(9) ); \gc0.count[9]_i_2\: unisim.vcomponents.LUT6 generic map( INIT => X"7FFFFFFFFFFFFFFF" ) port map ( I0 => \^q\(5), I1 => \^q\(3), I2 => \^q\(1), I3 => \^q\(0), I4 => \^q\(2), I5 => \^q\(4), O => \gc0.count[9]_i_2_n_0\ ); \gc0.count_d1_reg[0]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), CLR => \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0), D => \^q\(0), Q => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(0) ); \gc0.count_d1_reg[1]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), CLR => \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0), D => \^q\(1), Q => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(1) ); \gc0.count_d1_reg[2]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), CLR => \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0), D => \^q\(2), Q => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(2) ); \gc0.count_d1_reg[3]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), CLR => \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0), D => \^q\(3), Q => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(3) ); \gc0.count_d1_reg[4]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), CLR => \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0), D => \^q\(4), Q => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(4) ); \gc0.count_d1_reg[5]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), CLR => \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0), D => \^q\(5), Q => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(5) ); \gc0.count_d1_reg[6]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), CLR => \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0), D => \^q\(6), Q => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(6) ); \gc0.count_d1_reg[7]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), CLR => \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0), D => \^q\(7), Q => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(7) ); \gc0.count_d1_reg[8]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), CLR => \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0), D => \^q\(8), Q => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(8) ); \gc0.count_d1_reg[9]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), CLR => \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0), D => \^q\(9), Q => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(9) ); \gc0.count_reg[0]\: unisim.vcomponents.FDPE generic map( INIT => '1' ) port map ( C => clk, CE => E(0), D => plusOp(0), PRE => \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0), Q => \^q\(0) ); \gc0.count_reg[1]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), CLR => \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0), D => plusOp(1), Q => \^q\(1) ); \gc0.count_reg[2]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), CLR => \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0), D => plusOp(2), Q => \^q\(2) ); \gc0.count_reg[3]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), CLR => \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0), D => plusOp(3), Q => \^q\(3) ); \gc0.count_reg[4]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), CLR => \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0), D => plusOp(4), Q => \^q\(4) ); \gc0.count_reg[5]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), CLR => \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0), D => plusOp(5), Q => \^q\(5) ); \gc0.count_reg[6]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), CLR => \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0), D => plusOp(6), Q => \^q\(6) ); \gc0.count_reg[7]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), CLR => \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0), D => plusOp(7), Q => \^q\(7) ); \gc0.count_reg[8]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), CLR => \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0), D => plusOp(8), Q => \^q\(8) ); \gc0.count_reg[9]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), CLR => \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0), D => plusOp(9), Q => \^q\(9) ); \gmux.gm[0].gm1.m1_i_1__2\: unisim.vcomponents.LUT4 generic map( INIT => X"9009" ) port map ( I0 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(0), I1 => \gcc0.gc0.count_reg[9]\(0), I2 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(1), I3 => \gcc0.gc0.count_reg[9]\(1), O => v1_reg(0) ); \gmux.gm[1].gms.ms_i_1__2\: unisim.vcomponents.LUT4 generic map( INIT => X"9009" ) port map ( I0 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(2), I1 => \gcc0.gc0.count_reg[9]\(2), I2 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(3), I3 => \gcc0.gc0.count_reg[9]\(3), O => v1_reg(1) ); \gmux.gm[2].gms.ms_i_1__2\: unisim.vcomponents.LUT4 generic map( INIT => X"9009" ) port map ( I0 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(4), I1 => \gcc0.gc0.count_reg[9]\(4), I2 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(5), I3 => \gcc0.gc0.count_reg[9]\(5), O => v1_reg(2) ); \gmux.gm[3].gms.ms_i_1__2\: unisim.vcomponents.LUT4 generic map( INIT => X"9009" ) port map ( I0 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(6), I1 => \gcc0.gc0.count_reg[9]\(6), I2 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(7), I3 => \gcc0.gc0.count_reg[9]\(7), O => v1_reg(3) ); \gmux.gm[4].gms.ms_i_1__2\: unisim.vcomponents.LUT4 generic map( INIT => X"9009" ) port map ( I0 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(8), I1 => \gcc0.gc0.count_reg[9]\(8), I2 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(9), I3 => \gcc0.gc0.count_reg[9]\(9), O => v1_reg(4) ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_rd_fwft is port ( empty : out STD_LOGIC; tmp_ram_rd_en : out STD_LOGIC; E : out STD_LOGIC_VECTOR ( 0 to 0 ); \goreg_bm.dout_i_reg[4]\ : out STD_LOGIC_VECTOR ( 0 to 0 ); clk : in STD_LOGIC; Q : in STD_LOGIC_VECTOR ( 1 downto 0 ); ram_empty_fb_i_reg : in STD_LOGIC; rd_en : in STD_LOGIC ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_rd_fwft : entity is "rd_fwft"; end scfifo_5in_5out_5kb_rd_fwft; architecture STRUCTURE of scfifo_5in_5out_5kb_rd_fwft is signal curr_fwft_state : STD_LOGIC_VECTOR ( 0 to 0 ); signal empty_fwft_fb : STD_LOGIC; signal empty_fwft_i0 : STD_LOGIC; signal \gpregsm1.curr_fwft_state_reg_n_0_[1]\ : STD_LOGIC; signal next_fwft_state : STD_LOGIC_VECTOR ( 1 downto 0 ); attribute equivalent_register_removal : string; attribute equivalent_register_removal of empty_fwft_fb_reg : label is "no"; attribute SOFT_HLUTNM : string; attribute SOFT_HLUTNM of empty_fwft_i_i_1 : label is "soft_lutpair1"; attribute equivalent_register_removal of empty_fwft_i_reg : label is "no"; attribute SOFT_HLUTNM of \gc0.count_d1[9]_i_1\ : label is "soft_lutpair0"; attribute SOFT_HLUTNM of \goreg_bm.dout_i[4]_i_1\ : label is "soft_lutpair1"; attribute SOFT_HLUTNM of \gpregsm1.curr_fwft_state[1]_i_1\ : label is "soft_lutpair0"; attribute equivalent_register_removal of \gpregsm1.curr_fwft_state_reg[0]\ : label is "no"; attribute equivalent_register_removal of \gpregsm1.curr_fwft_state_reg[1]\ : label is "no"; begin \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_i_2\: unisim.vcomponents.LUT5 generic map( INIT => X"FFFF4555" ) port map ( I0 => ram_empty_fb_i_reg, I1 => rd_en, I2 => curr_fwft_state(0), I3 => \gpregsm1.curr_fwft_state_reg_n_0_[1]\, I4 => Q(0), O => tmp_ram_rd_en ); empty_fwft_fb_reg: unisim.vcomponents.FDPE generic map( INIT => '1' ) port map ( C => clk, CE => '1', D => empty_fwft_i0, PRE => Q(1), Q => empty_fwft_fb ); empty_fwft_i_i_1: unisim.vcomponents.LUT4 generic map( INIT => X"88EA" ) port map ( I0 => empty_fwft_fb, I1 => curr_fwft_state(0), I2 => rd_en, I3 => \gpregsm1.curr_fwft_state_reg_n_0_[1]\, O => empty_fwft_i0 ); empty_fwft_i_reg: unisim.vcomponents.FDPE generic map( INIT => '1' ) port map ( C => clk, CE => '1', D => empty_fwft_i0, PRE => Q(1), Q => empty ); \gc0.count_d1[9]_i_1\: unisim.vcomponents.LUT4 generic map( INIT => X"0B0F" ) port map ( I0 => rd_en, I1 => curr_fwft_state(0), I2 => ram_empty_fb_i_reg, I3 => \gpregsm1.curr_fwft_state_reg_n_0_[1]\, O => E(0) ); \goreg_bm.dout_i[4]_i_1\: unisim.vcomponents.LUT3 generic map( INIT => X"D0" ) port map ( I0 => curr_fwft_state(0), I1 => rd_en, I2 => \gpregsm1.curr_fwft_state_reg_n_0_[1]\, O => \goreg_bm.dout_i_reg[4]\(0) ); \gpregsm1.curr_fwft_state[0]_i_1\: unisim.vcomponents.LUT3 generic map( INIT => X"BA" ) port map ( I0 => \gpregsm1.curr_fwft_state_reg_n_0_[1]\, I1 => rd_en, I2 => curr_fwft_state(0), O => next_fwft_state(0) ); \gpregsm1.curr_fwft_state[1]_i_1\: unisim.vcomponents.LUT4 generic map( INIT => X"3B33" ) port map ( I0 => \gpregsm1.curr_fwft_state_reg_n_0_[1]\, I1 => ram_empty_fb_i_reg, I2 => rd_en, I3 => curr_fwft_state(0), O => next_fwft_state(1) ); \gpregsm1.curr_fwft_state_reg[0]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => '1', CLR => Q(1), D => next_fwft_state(0), Q => curr_fwft_state(0) ); \gpregsm1.curr_fwft_state_reg[1]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => '1', CLR => Q(1), D => next_fwft_state(1), Q => \gpregsm1.curr_fwft_state_reg_n_0_[1]\ ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_reset_blk_ramfifo is port ( s_aclk : in STD_LOGIC; s_aresetn : in STD_LOGIC ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_reset_blk_ramfifo : entity is "reset_blk_ramfifo"; end scfifo_5in_5out_5kb_reset_blk_ramfifo; architecture STRUCTURE of scfifo_5in_5out_5kb_reset_blk_ramfifo is signal inverted_reset : STD_LOGIC; signal rst_d1 : STD_LOGIC; attribute async_reg : string; attribute async_reg of rst_d1 : signal is "true"; attribute msgon : string; attribute msgon of rst_d1 : signal is "true"; signal rst_d2 : STD_LOGIC; attribute async_reg of rst_d2 : signal is "true"; attribute msgon of rst_d2 : signal is "true"; signal rst_d3 : STD_LOGIC; attribute async_reg of rst_d3 : signal is "true"; attribute msgon of rst_d3 : signal is "true"; signal rst_rd_reg1 : STD_LOGIC; attribute async_reg of rst_rd_reg1 : signal is "true"; attribute msgon of rst_rd_reg1 : signal is "true"; signal rst_rd_reg2 : STD_LOGIC; attribute async_reg of rst_rd_reg2 : signal is "true"; attribute msgon of rst_rd_reg2 : signal is "true"; signal rst_wr_reg1 : STD_LOGIC; attribute async_reg of rst_wr_reg1 : signal is "true"; attribute msgon of rst_wr_reg1 : signal is "true"; signal rst_wr_reg2 : STD_LOGIC; attribute async_reg of rst_wr_reg2 : signal is "true"; attribute msgon of rst_wr_reg2 : signal is "true"; attribute ASYNC_REG_boolean : boolean; attribute ASYNC_REG_boolean of \grstd1.grst_full.grst_f.rst_d1_reg\ : label is std.standard.true; attribute KEEP : string; attribute KEEP of \grstd1.grst_full.grst_f.rst_d1_reg\ : label is "yes"; attribute msgon of \grstd1.grst_full.grst_f.rst_d1_reg\ : label is "true"; attribute ASYNC_REG_boolean of \grstd1.grst_full.grst_f.rst_d2_reg\ : label is std.standard.true; attribute KEEP of \grstd1.grst_full.grst_f.rst_d2_reg\ : label is "yes"; attribute msgon of \grstd1.grst_full.grst_f.rst_d2_reg\ : label is "true"; attribute ASYNC_REG_boolean of \grstd1.grst_full.grst_f.rst_d3_reg\ : label is std.standard.true; attribute KEEP of \grstd1.grst_full.grst_f.rst_d3_reg\ : label is "yes"; attribute msgon of \grstd1.grst_full.grst_f.rst_d3_reg\ : label is "true"; attribute ASYNC_REG_boolean of \ngwrdrst.grst.g7serrst.rst_rd_reg1_reg\ : label is std.standard.true; attribute KEEP of \ngwrdrst.grst.g7serrst.rst_rd_reg1_reg\ : label is "yes"; attribute msgon of \ngwrdrst.grst.g7serrst.rst_rd_reg1_reg\ : label is "true"; attribute ASYNC_REG_boolean of \ngwrdrst.grst.g7serrst.rst_rd_reg2_reg\ : label is std.standard.true; attribute KEEP of \ngwrdrst.grst.g7serrst.rst_rd_reg2_reg\ : label is "yes"; attribute msgon of \ngwrdrst.grst.g7serrst.rst_rd_reg2_reg\ : label is "true"; attribute ASYNC_REG_boolean of \ngwrdrst.grst.g7serrst.rst_wr_reg1_reg\ : label is std.standard.true; attribute KEEP of \ngwrdrst.grst.g7serrst.rst_wr_reg1_reg\ : label is "yes"; attribute msgon of \ngwrdrst.grst.g7serrst.rst_wr_reg1_reg\ : label is "true"; attribute ASYNC_REG_boolean of \ngwrdrst.grst.g7serrst.rst_wr_reg2_reg\ : label is std.standard.true; attribute KEEP of \ngwrdrst.grst.g7serrst.rst_wr_reg2_reg\ : label is "yes"; attribute msgon of \ngwrdrst.grst.g7serrst.rst_wr_reg2_reg\ : label is "true"; begin \grstd1.grst_full.grst_f.rst_d1_reg\: unisim.vcomponents.FDPE generic map( INIT => '1' ) port map ( C => s_aclk, CE => '1', D => '0', PRE => inverted_reset, Q => rst_d1 ); \grstd1.grst_full.grst_f.rst_d2_reg\: unisim.vcomponents.FDPE generic map( INIT => '1' ) port map ( C => s_aclk, CE => '1', D => rst_d1, PRE => inverted_reset, Q => rst_d2 ); \grstd1.grst_full.grst_f.rst_d3_reg\: unisim.vcomponents.FDPE generic map( INIT => '1' ) port map ( C => s_aclk, CE => '1', D => rst_d2, PRE => inverted_reset, Q => rst_d3 ); \ngwrdrst.grst.g7serrst.rst_rd_reg1_reg\: unisim.vcomponents.FDPE generic map( INIT => '0' ) port map ( C => s_aclk, CE => '1', D => '0', PRE => inverted_reset, Q => rst_rd_reg1 ); \ngwrdrst.grst.g7serrst.rst_rd_reg2_reg\: unisim.vcomponents.FDPE generic map( INIT => '0' ) port map ( C => s_aclk, CE => '1', D => rst_rd_reg1, PRE => inverted_reset, Q => rst_rd_reg2 ); \ngwrdrst.grst.g7serrst.rst_wr_reg1_i_1\: unisim.vcomponents.LUT1 generic map( INIT => X"1" ) port map ( I0 => s_aresetn, O => inverted_reset ); \ngwrdrst.grst.g7serrst.rst_wr_reg1_reg\: unisim.vcomponents.FDPE generic map( INIT => '0' ) port map ( C => s_aclk, CE => '1', D => '0', PRE => inverted_reset, Q => rst_wr_reg1 ); \ngwrdrst.grst.g7serrst.rst_wr_reg2_reg\: unisim.vcomponents.FDPE generic map( INIT => '0' ) port map ( C => s_aclk, CE => '1', D => rst_wr_reg1, PRE => inverted_reset, Q => rst_wr_reg2 ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity \scfifo_5in_5out_5kb_reset_blk_ramfifo__parameterized0\ is port ( rst_full_ff_i : out STD_LOGIC; rst_full_gen_i : out STD_LOGIC; AR : out STD_LOGIC_VECTOR ( 0 to 0 ); Q : out STD_LOGIC_VECTOR ( 1 downto 0 ); clk : in STD_LOGIC; rst : in STD_LOGIC ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of \scfifo_5in_5out_5kb_reset_blk_ramfifo__parameterized0\ : entity is "reset_blk_ramfifo"; end \scfifo_5in_5out_5kb_reset_blk_ramfifo__parameterized0\; architecture STRUCTURE of \scfifo_5in_5out_5kb_reset_blk_ramfifo__parameterized0\ is signal \ngwrdrst.grst.g7serrst.rd_rst_asreg_d1_reg_n_0\ : STD_LOGIC; signal \ngwrdrst.grst.g7serrst.rd_rst_asreg_i_1_n_0\ : STD_LOGIC; signal \ngwrdrst.grst.g7serrst.rd_rst_reg[2]_i_1_n_0\ : STD_LOGIC; signal \ngwrdrst.grst.g7serrst.wr_rst_asreg_d1_reg_n_0\ : STD_LOGIC; signal \ngwrdrst.grst.g7serrst.wr_rst_asreg_i_1_n_0\ : STD_LOGIC; signal \ngwrdrst.grst.g7serrst.wr_rst_reg[1]_i_1_n_0\ : STD_LOGIC; signal rd_rst_asreg : STD_LOGIC; signal rd_rst_asreg_d2 : STD_LOGIC; signal rst_d1 : STD_LOGIC; attribute async_reg : string; attribute async_reg of rst_d1 : signal is "true"; attribute msgon : string; attribute msgon of rst_d1 : signal is "true"; signal rst_d2 : STD_LOGIC; attribute async_reg of rst_d2 : signal is "true"; attribute msgon of rst_d2 : signal is "true"; signal rst_d3 : STD_LOGIC; attribute async_reg of rst_d3 : signal is "true"; attribute msgon of rst_d3 : signal is "true"; signal rst_rd_reg1 : STD_LOGIC; attribute async_reg of rst_rd_reg1 : signal is "true"; attribute msgon of rst_rd_reg1 : signal is "true"; signal rst_rd_reg2 : STD_LOGIC; attribute async_reg of rst_rd_reg2 : signal is "true"; attribute msgon of rst_rd_reg2 : signal is "true"; signal rst_wr_reg1 : STD_LOGIC; attribute async_reg of rst_wr_reg1 : signal is "true"; attribute msgon of rst_wr_reg1 : signal is "true"; signal rst_wr_reg2 : STD_LOGIC; attribute async_reg of rst_wr_reg2 : signal is "true"; attribute msgon of rst_wr_reg2 : signal is "true"; signal wr_rst_asreg : STD_LOGIC; signal wr_rst_asreg_d2 : STD_LOGIC; attribute ASYNC_REG_boolean : boolean; attribute ASYNC_REG_boolean of \grstd1.grst_full.grst_f.rst_d1_reg\ : label is std.standard.true; attribute KEEP : string; attribute KEEP of \grstd1.grst_full.grst_f.rst_d1_reg\ : label is "yes"; attribute msgon of \grstd1.grst_full.grst_f.rst_d1_reg\ : label is "true"; attribute ASYNC_REG_boolean of \grstd1.grst_full.grst_f.rst_d2_reg\ : label is std.standard.true; attribute KEEP of \grstd1.grst_full.grst_f.rst_d2_reg\ : label is "yes"; attribute msgon of \grstd1.grst_full.grst_f.rst_d2_reg\ : label is "true"; attribute ASYNC_REG_boolean of \grstd1.grst_full.grst_f.rst_d3_reg\ : label is std.standard.true; attribute KEEP of \grstd1.grst_full.grst_f.rst_d3_reg\ : label is "yes"; attribute msgon of \grstd1.grst_full.grst_f.rst_d3_reg\ : label is "true"; attribute equivalent_register_removal : string; attribute equivalent_register_removal of \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[0]\ : label is "no"; attribute equivalent_register_removal of \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\ : label is "no"; attribute ASYNC_REG_boolean of \ngwrdrst.grst.g7serrst.rst_rd_reg1_reg\ : label is std.standard.true; attribute KEEP of \ngwrdrst.grst.g7serrst.rst_rd_reg1_reg\ : label is "yes"; attribute msgon of \ngwrdrst.grst.g7serrst.rst_rd_reg1_reg\ : label is "true"; attribute ASYNC_REG_boolean of \ngwrdrst.grst.g7serrst.rst_rd_reg2_reg\ : label is std.standard.true; attribute KEEP of \ngwrdrst.grst.g7serrst.rst_rd_reg2_reg\ : label is "yes"; attribute msgon of \ngwrdrst.grst.g7serrst.rst_rd_reg2_reg\ : label is "true"; attribute ASYNC_REG_boolean of \ngwrdrst.grst.g7serrst.rst_wr_reg1_reg\ : label is std.standard.true; attribute KEEP of \ngwrdrst.grst.g7serrst.rst_wr_reg1_reg\ : label is "yes"; attribute msgon of \ngwrdrst.grst.g7serrst.rst_wr_reg1_reg\ : label is "true"; attribute ASYNC_REG_boolean of \ngwrdrst.grst.g7serrst.rst_wr_reg2_reg\ : label is std.standard.true; attribute KEEP of \ngwrdrst.grst.g7serrst.rst_wr_reg2_reg\ : label is "yes"; attribute msgon of \ngwrdrst.grst.g7serrst.rst_wr_reg2_reg\ : label is "true"; attribute equivalent_register_removal of \ngwrdrst.grst.g7serrst.wr_rst_reg_reg[1]\ : label is "no"; begin rst_full_ff_i <= rst_d2; rst_full_gen_i <= rst_d3; \grstd1.grst_full.grst_f.rst_d1_reg\: unisim.vcomponents.FDPE generic map( INIT => '1' ) port map ( C => clk, CE => '1', D => '0', PRE => rst, Q => rst_d1 ); \grstd1.grst_full.grst_f.rst_d2_reg\: unisim.vcomponents.FDPE generic map( INIT => '1' ) port map ( C => clk, CE => '1', D => rst_d1, PRE => rst, Q => rst_d2 ); \grstd1.grst_full.grst_f.rst_d3_reg\: unisim.vcomponents.FDPE generic map( INIT => '1' ) port map ( C => clk, CE => '1', D => rst_d2, PRE => rst, Q => rst_d3 ); \ngwrdrst.grst.g7serrst.rd_rst_asreg_d1_reg\: unisim.vcomponents.FDRE generic map( INIT => '0' ) port map ( C => clk, CE => '1', D => rd_rst_asreg, Q => \ngwrdrst.grst.g7serrst.rd_rst_asreg_d1_reg_n_0\, R => '0' ); \ngwrdrst.grst.g7serrst.rd_rst_asreg_d2_reg\: unisim.vcomponents.FDRE generic map( INIT => '0' ) port map ( C => clk, CE => '1', D => \ngwrdrst.grst.g7serrst.rd_rst_asreg_d1_reg_n_0\, Q => rd_rst_asreg_d2, R => '0' ); \ngwrdrst.grst.g7serrst.rd_rst_asreg_i_1\: unisim.vcomponents.LUT2 generic map( INIT => X"2" ) port map ( I0 => rd_rst_asreg, I1 => \ngwrdrst.grst.g7serrst.rd_rst_asreg_d1_reg_n_0\, O => \ngwrdrst.grst.g7serrst.rd_rst_asreg_i_1_n_0\ ); \ngwrdrst.grst.g7serrst.rd_rst_asreg_reg\: unisim.vcomponents.FDPE generic map( INIT => '1' ) port map ( C => clk, CE => '1', D => \ngwrdrst.grst.g7serrst.rd_rst_asreg_i_1_n_0\, PRE => rst_rd_reg2, Q => rd_rst_asreg ); \ngwrdrst.grst.g7serrst.rd_rst_reg[2]_i_1\: unisim.vcomponents.LUT2 generic map( INIT => X"2" ) port map ( I0 => rd_rst_asreg, I1 => rd_rst_asreg_d2, O => \ngwrdrst.grst.g7serrst.rd_rst_reg[2]_i_1_n_0\ ); \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[0]\: unisim.vcomponents.FDPE generic map( INIT => '1' ) port map ( C => clk, CE => '1', D => '0', PRE => \ngwrdrst.grst.g7serrst.rd_rst_reg[2]_i_1_n_0\, Q => Q(0) ); \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\: unisim.vcomponents.FDPE generic map( INIT => '1' ) port map ( C => clk, CE => '1', D => '0', PRE => \ngwrdrst.grst.g7serrst.rd_rst_reg[2]_i_1_n_0\, Q => Q(1) ); \ngwrdrst.grst.g7serrst.rst_rd_reg1_reg\: unisim.vcomponents.FDPE generic map( INIT => '0' ) port map ( C => clk, CE => '1', D => '0', PRE => rst, Q => rst_rd_reg1 ); \ngwrdrst.grst.g7serrst.rst_rd_reg2_reg\: unisim.vcomponents.FDPE generic map( INIT => '0' ) port map ( C => clk, CE => '1', D => rst_rd_reg1, PRE => rst, Q => rst_rd_reg2 ); \ngwrdrst.grst.g7serrst.rst_wr_reg1_reg\: unisim.vcomponents.FDPE generic map( INIT => '0' ) port map ( C => clk, CE => '1', D => '0', PRE => rst, Q => rst_wr_reg1 ); \ngwrdrst.grst.g7serrst.rst_wr_reg2_reg\: unisim.vcomponents.FDPE generic map( INIT => '0' ) port map ( C => clk, CE => '1', D => rst_wr_reg1, PRE => rst, Q => rst_wr_reg2 ); \ngwrdrst.grst.g7serrst.wr_rst_asreg_d1_reg\: unisim.vcomponents.FDRE generic map( INIT => '0' ) port map ( C => clk, CE => '1', D => wr_rst_asreg, Q => \ngwrdrst.grst.g7serrst.wr_rst_asreg_d1_reg_n_0\, R => '0' ); \ngwrdrst.grst.g7serrst.wr_rst_asreg_d2_reg\: unisim.vcomponents.FDRE generic map( INIT => '0' ) port map ( C => clk, CE => '1', D => \ngwrdrst.grst.g7serrst.wr_rst_asreg_d1_reg_n_0\, Q => wr_rst_asreg_d2, R => '0' ); \ngwrdrst.grst.g7serrst.wr_rst_asreg_i_1\: unisim.vcomponents.LUT2 generic map( INIT => X"2" ) port map ( I0 => wr_rst_asreg, I1 => \ngwrdrst.grst.g7serrst.wr_rst_asreg_d1_reg_n_0\, O => \ngwrdrst.grst.g7serrst.wr_rst_asreg_i_1_n_0\ ); \ngwrdrst.grst.g7serrst.wr_rst_asreg_reg\: unisim.vcomponents.FDPE generic map( INIT => '1' ) port map ( C => clk, CE => '1', D => \ngwrdrst.grst.g7serrst.wr_rst_asreg_i_1_n_0\, PRE => rst_wr_reg2, Q => wr_rst_asreg ); \ngwrdrst.grst.g7serrst.wr_rst_reg[1]_i_1\: unisim.vcomponents.LUT2 generic map( INIT => X"2" ) port map ( I0 => wr_rst_asreg, I1 => wr_rst_asreg_d2, O => \ngwrdrst.grst.g7serrst.wr_rst_reg[1]_i_1_n_0\ ); \ngwrdrst.grst.g7serrst.wr_rst_reg_reg[1]\: unisim.vcomponents.FDPE generic map( INIT => '1' ) port map ( C => clk, CE => '1', D => '0', PRE => \ngwrdrst.grst.g7serrst.wr_rst_reg[1]_i_1_n_0\, Q => AR(0) ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_wr_bin_cntr is port ( Q : out STD_LOGIC_VECTOR ( 9 downto 0 ); ram_empty_fb_i_reg : out STD_LOGIC; ram_full_comb : out STD_LOGIC; v1_reg_1 : out STD_LOGIC_VECTOR ( 4 downto 0 ); \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram\ : out STD_LOGIC_VECTOR ( 9 downto 0 ); v1_reg : out STD_LOGIC_VECTOR ( 4 downto 0 ); v1_reg_0 : out STD_LOGIC_VECTOR ( 4 downto 0 ); p_18_out : in STD_LOGIC; comp0 : in STD_LOGIC; E : in STD_LOGIC_VECTOR ( 0 to 0 ); wr_en : in STD_LOGIC; p_1_out : in STD_LOGIC; comp1 : in STD_LOGIC; comp0_2 : in STD_LOGIC; rst_full_gen_i : in STD_LOGIC; comp1_3 : in STD_LOGIC; \gc0.count_d1_reg[9]\ : in STD_LOGIC_VECTOR ( 9 downto 0 ); \gc0.count_reg[9]\ : in STD_LOGIC_VECTOR ( 9 downto 0 ); ram_full_fb_i_reg : in STD_LOGIC_VECTOR ( 0 to 0 ); clk : in STD_LOGIC; AR : in STD_LOGIC_VECTOR ( 0 to 0 ) ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_wr_bin_cntr : entity is "wr_bin_cntr"; end scfifo_5in_5out_5kb_wr_bin_cntr; architecture STRUCTURE of scfifo_5in_5out_5kb_wr_bin_cntr is signal \^device_7series.no_bmm_info.sdp.simple_prim18.ram\ : STD_LOGIC_VECTOR ( 9 downto 0 ); signal \^q\ : STD_LOGIC_VECTOR ( 9 downto 0 ); signal \gcc0.gc0.count[9]_i_2_n_0\ : STD_LOGIC; signal \plusOp__0\ : STD_LOGIC_VECTOR ( 9 downto 0 ); attribute SOFT_HLUTNM : string; attribute SOFT_HLUTNM of \gcc0.gc0.count[1]_i_1\ : label is "soft_lutpair9"; attribute SOFT_HLUTNM of \gcc0.gc0.count[2]_i_1\ : label is "soft_lutpair9"; attribute SOFT_HLUTNM of \gcc0.gc0.count[3]_i_1\ : label is "soft_lutpair6"; attribute SOFT_HLUTNM of \gcc0.gc0.count[4]_i_1\ : label is "soft_lutpair6"; attribute SOFT_HLUTNM of \gcc0.gc0.count[6]_i_1\ : label is "soft_lutpair8"; attribute SOFT_HLUTNM of \gcc0.gc0.count[7]_i_1\ : label is "soft_lutpair8"; attribute SOFT_HLUTNM of \gcc0.gc0.count[8]_i_1\ : label is "soft_lutpair7"; attribute SOFT_HLUTNM of \gcc0.gc0.count[9]_i_1\ : label is "soft_lutpair7"; begin \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram\(9 downto 0) <= \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(9 downto 0); Q(9 downto 0) <= \^q\(9 downto 0); \gcc0.gc0.count[0]_i_1\: unisim.vcomponents.LUT1 generic map( INIT => X"1" ) port map ( I0 => \^q\(0), O => \plusOp__0\(0) ); \gcc0.gc0.count[1]_i_1\: unisim.vcomponents.LUT2 generic map( INIT => X"6" ) port map ( I0 => \^q\(0), I1 => \^q\(1), O => \plusOp__0\(1) ); \gcc0.gc0.count[2]_i_1\: unisim.vcomponents.LUT3 generic map( INIT => X"78" ) port map ( I0 => \^q\(0), I1 => \^q\(1), I2 => \^q\(2), O => \plusOp__0\(2) ); \gcc0.gc0.count[3]_i_1\: unisim.vcomponents.LUT4 generic map( INIT => X"7F80" ) port map ( I0 => \^q\(1), I1 => \^q\(0), I2 => \^q\(2), I3 => \^q\(3), O => \plusOp__0\(3) ); \gcc0.gc0.count[4]_i_1\: unisim.vcomponents.LUT5 generic map( INIT => X"7FFF8000" ) port map ( I0 => \^q\(2), I1 => \^q\(0), I2 => \^q\(1), I3 => \^q\(3), I4 => \^q\(4), O => \plusOp__0\(4) ); \gcc0.gc0.count[5]_i_1\: unisim.vcomponents.LUT6 generic map( INIT => X"7FFFFFFF80000000" ) port map ( I0 => \^q\(3), I1 => \^q\(1), I2 => \^q\(0), I3 => \^q\(2), I4 => \^q\(4), I5 => \^q\(5), O => \plusOp__0\(5) ); \gcc0.gc0.count[6]_i_1\: unisim.vcomponents.LUT2 generic map( INIT => X"9" ) port map ( I0 => \gcc0.gc0.count[9]_i_2_n_0\, I1 => \^q\(6), O => \plusOp__0\(6) ); \gcc0.gc0.count[7]_i_1\: unisim.vcomponents.LUT3 generic map( INIT => X"B4" ) port map ( I0 => \gcc0.gc0.count[9]_i_2_n_0\, I1 => \^q\(6), I2 => \^q\(7), O => \plusOp__0\(7) ); \gcc0.gc0.count[8]_i_1\: unisim.vcomponents.LUT4 generic map( INIT => X"DF20" ) port map ( I0 => \^q\(6), I1 => \gcc0.gc0.count[9]_i_2_n_0\, I2 => \^q\(7), I3 => \^q\(8), O => \plusOp__0\(8) ); \gcc0.gc0.count[9]_i_1\: unisim.vcomponents.LUT5 generic map( INIT => X"F7FF0800" ) port map ( I0 => \^q\(8), I1 => \^q\(7), I2 => \gcc0.gc0.count[9]_i_2_n_0\, I3 => \^q\(6), I4 => \^q\(9), O => \plusOp__0\(9) ); \gcc0.gc0.count[9]_i_2\: unisim.vcomponents.LUT6 generic map( INIT => X"7FFFFFFFFFFFFFFF" ) port map ( I0 => \^q\(5), I1 => \^q\(3), I2 => \^q\(1), I3 => \^q\(0), I4 => \^q\(2), I5 => \^q\(4), O => \gcc0.gc0.count[9]_i_2_n_0\ ); \gcc0.gc0.count_d1_reg[0]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => ram_full_fb_i_reg(0), CLR => AR(0), D => \^q\(0), Q => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(0) ); \gcc0.gc0.count_d1_reg[1]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => ram_full_fb_i_reg(0), CLR => AR(0), D => \^q\(1), Q => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(1) ); \gcc0.gc0.count_d1_reg[2]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => ram_full_fb_i_reg(0), CLR => AR(0), D => \^q\(2), Q => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(2) ); \gcc0.gc0.count_d1_reg[3]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => ram_full_fb_i_reg(0), CLR => AR(0), D => \^q\(3), Q => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(3) ); \gcc0.gc0.count_d1_reg[4]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => ram_full_fb_i_reg(0), CLR => AR(0), D => \^q\(4), Q => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(4) ); \gcc0.gc0.count_d1_reg[5]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => ram_full_fb_i_reg(0), CLR => AR(0), D => \^q\(5), Q => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(5) ); \gcc0.gc0.count_d1_reg[6]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => ram_full_fb_i_reg(0), CLR => AR(0), D => \^q\(6), Q => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(6) ); \gcc0.gc0.count_d1_reg[7]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => ram_full_fb_i_reg(0), CLR => AR(0), D => \^q\(7), Q => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(7) ); \gcc0.gc0.count_d1_reg[8]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => ram_full_fb_i_reg(0), CLR => AR(0), D => \^q\(8), Q => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(8) ); \gcc0.gc0.count_d1_reg[9]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => ram_full_fb_i_reg(0), CLR => AR(0), D => \^q\(9), Q => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(9) ); \gcc0.gc0.count_reg[0]\: unisim.vcomponents.FDPE generic map( INIT => '1' ) port map ( C => clk, CE => ram_full_fb_i_reg(0), D => \plusOp__0\(0), PRE => AR(0), Q => \^q\(0) ); \gcc0.gc0.count_reg[1]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => ram_full_fb_i_reg(0), CLR => AR(0), D => \plusOp__0\(1), Q => \^q\(1) ); \gcc0.gc0.count_reg[2]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => ram_full_fb_i_reg(0), CLR => AR(0), D => \plusOp__0\(2), Q => \^q\(2) ); \gcc0.gc0.count_reg[3]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => ram_full_fb_i_reg(0), CLR => AR(0), D => \plusOp__0\(3), Q => \^q\(3) ); \gcc0.gc0.count_reg[4]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => ram_full_fb_i_reg(0), CLR => AR(0), D => \plusOp__0\(4), Q => \^q\(4) ); \gcc0.gc0.count_reg[5]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => ram_full_fb_i_reg(0), CLR => AR(0), D => \plusOp__0\(5), Q => \^q\(5) ); \gcc0.gc0.count_reg[6]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => ram_full_fb_i_reg(0), CLR => AR(0), D => \plusOp__0\(6), Q => \^q\(6) ); \gcc0.gc0.count_reg[7]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => ram_full_fb_i_reg(0), CLR => AR(0), D => \plusOp__0\(7), Q => \^q\(7) ); \gcc0.gc0.count_reg[8]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => ram_full_fb_i_reg(0), CLR => AR(0), D => \plusOp__0\(8), Q => \^q\(8) ); \gcc0.gc0.count_reg[9]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => ram_full_fb_i_reg(0), CLR => AR(0), D => \plusOp__0\(9), Q => \^q\(9) ); \gmux.gm[0].gm1.m1_i_1\: unisim.vcomponents.LUT4 generic map( INIT => X"9009" ) port map ( I0 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(1), I1 => \gc0.count_d1_reg[9]\(1), I2 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(0), I3 => \gc0.count_d1_reg[9]\(0), O => v1_reg_1(0) ); \gmux.gm[0].gm1.m1_i_1__0\: unisim.vcomponents.LUT4 generic map( INIT => X"9009" ) port map ( I0 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(1), I1 => \gc0.count_d1_reg[9]\(1), I2 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(0), I3 => \gc0.count_d1_reg[9]\(0), O => v1_reg(0) ); \gmux.gm[0].gm1.m1_i_1__1\: unisim.vcomponents.LUT4 generic map( INIT => X"9009" ) port map ( I0 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(0), I1 => \gc0.count_reg[9]\(0), I2 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(1), I3 => \gc0.count_reg[9]\(1), O => v1_reg_0(0) ); \gmux.gm[1].gms.ms_i_1\: unisim.vcomponents.LUT4 generic map( INIT => X"9009" ) port map ( I0 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(3), I1 => \gc0.count_d1_reg[9]\(3), I2 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(2), I3 => \gc0.count_d1_reg[9]\(2), O => v1_reg_1(1) ); \gmux.gm[1].gms.ms_i_1__0\: unisim.vcomponents.LUT4 generic map( INIT => X"9009" ) port map ( I0 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(3), I1 => \gc0.count_d1_reg[9]\(3), I2 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(2), I3 => \gc0.count_d1_reg[9]\(2), O => v1_reg(1) ); \gmux.gm[1].gms.ms_i_1__1\: unisim.vcomponents.LUT4 generic map( INIT => X"9009" ) port map ( I0 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(2), I1 => \gc0.count_reg[9]\(2), I2 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(3), I3 => \gc0.count_reg[9]\(3), O => v1_reg_0(1) ); \gmux.gm[2].gms.ms_i_1\: unisim.vcomponents.LUT4 generic map( INIT => X"9009" ) port map ( I0 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(5), I1 => \gc0.count_d1_reg[9]\(5), I2 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(4), I3 => \gc0.count_d1_reg[9]\(4), O => v1_reg_1(2) ); \gmux.gm[2].gms.ms_i_1__0\: unisim.vcomponents.LUT4 generic map( INIT => X"9009" ) port map ( I0 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(5), I1 => \gc0.count_d1_reg[9]\(5), I2 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(4), I3 => \gc0.count_d1_reg[9]\(4), O => v1_reg(2) ); \gmux.gm[2].gms.ms_i_1__1\: unisim.vcomponents.LUT4 generic map( INIT => X"9009" ) port map ( I0 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(4), I1 => \gc0.count_reg[9]\(4), I2 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(5), I3 => \gc0.count_reg[9]\(5), O => v1_reg_0(2) ); \gmux.gm[3].gms.ms_i_1\: unisim.vcomponents.LUT4 generic map( INIT => X"9009" ) port map ( I0 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(7), I1 => \gc0.count_d1_reg[9]\(7), I2 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(6), I3 => \gc0.count_d1_reg[9]\(6), O => v1_reg_1(3) ); \gmux.gm[3].gms.ms_i_1__0\: unisim.vcomponents.LUT4 generic map( INIT => X"9009" ) port map ( I0 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(7), I1 => \gc0.count_d1_reg[9]\(7), I2 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(6), I3 => \gc0.count_d1_reg[9]\(6), O => v1_reg(3) ); \gmux.gm[3].gms.ms_i_1__1\: unisim.vcomponents.LUT4 generic map( INIT => X"9009" ) port map ( I0 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(6), I1 => \gc0.count_reg[9]\(6), I2 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(7), I3 => \gc0.count_reg[9]\(7), O => v1_reg_0(3) ); \gmux.gm[4].gms.ms_i_1\: unisim.vcomponents.LUT4 generic map( INIT => X"9009" ) port map ( I0 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(9), I1 => \gc0.count_d1_reg[9]\(9), I2 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(8), I3 => \gc0.count_d1_reg[9]\(8), O => v1_reg_1(4) ); \gmux.gm[4].gms.ms_i_1__0\: unisim.vcomponents.LUT4 generic map( INIT => X"9009" ) port map ( I0 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(9), I1 => \gc0.count_d1_reg[9]\(9), I2 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(8), I3 => \gc0.count_d1_reg[9]\(8), O => v1_reg(4) ); \gmux.gm[4].gms.ms_i_1__1\: unisim.vcomponents.LUT4 generic map( INIT => X"9009" ) port map ( I0 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(8), I1 => \gc0.count_reg[9]\(8), I2 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(9), I3 => \gc0.count_reg[9]\(9), O => v1_reg_0(4) ); ram_empty_fb_i_i_1: unisim.vcomponents.LUT6 generic map( INIT => X"FAFA22FAAAAA22AA" ) port map ( I0 => p_18_out, I1 => comp0, I2 => E(0), I3 => wr_en, I4 => p_1_out, I5 => comp1, O => ram_empty_fb_i_reg ); ram_full_i_i_1: unisim.vcomponents.LUT6 generic map( INIT => X"131313130F000000" ) port map ( I0 => comp0_2, I1 => rst_full_gen_i, I2 => E(0), I3 => comp1_3, I4 => wr_en, I5 => p_1_out, O => ram_full_comb ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_blk_mem_gen_prim_width is port ( D : out STD_LOGIC_VECTOR ( 4 downto 0 ); clk : in STD_LOGIC; ram_full_fb_i_reg : in STD_LOGIC_VECTOR ( 0 to 0 ); tmp_ram_rd_en : in STD_LOGIC; Q : in STD_LOGIC_VECTOR ( 0 to 0 ); \gcc0.gc0.count_d1_reg[9]\ : in STD_LOGIC_VECTOR ( 9 downto 0 ); \gc0.count_d1_reg[9]\ : in STD_LOGIC_VECTOR ( 9 downto 0 ); din : in STD_LOGIC_VECTOR ( 4 downto 0 ) ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_blk_mem_gen_prim_width : entity is "blk_mem_gen_prim_width"; end scfifo_5in_5out_5kb_blk_mem_gen_prim_width; architecture STRUCTURE of scfifo_5in_5out_5kb_blk_mem_gen_prim_width is begin \prim_noinit.ram\: entity work.scfifo_5in_5out_5kb_blk_mem_gen_prim_wrapper port map ( D(4 downto 0) => D(4 downto 0), Q(0) => Q(0), clk => clk, din(4 downto 0) => din(4 downto 0), \gc0.count_d1_reg[9]\(9 downto 0) => \gc0.count_d1_reg[9]\(9 downto 0), \gcc0.gc0.count_d1_reg[9]\(9 downto 0) => \gcc0.gc0.count_d1_reg[9]\(9 downto 0), ram_full_fb_i_reg(0) => ram_full_fb_i_reg(0), tmp_ram_rd_en => tmp_ram_rd_en ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_rd_status_flags_ss is port ( comp0 : out STD_LOGIC; comp1 : out STD_LOGIC; p_18_out : out STD_LOGIC; v1_reg_0 : in STD_LOGIC_VECTOR ( 4 downto 0 ); v1_reg_1 : in STD_LOGIC_VECTOR ( 4 downto 0 ); ram_empty_fb_i_reg_0 : in STD_LOGIC; clk : in STD_LOGIC; Q : in STD_LOGIC_VECTOR ( 0 to 0 ) ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_rd_status_flags_ss : entity is "rd_status_flags_ss"; end scfifo_5in_5out_5kb_rd_status_flags_ss; architecture STRUCTURE of scfifo_5in_5out_5kb_rd_status_flags_ss is attribute equivalent_register_removal : string; attribute equivalent_register_removal of ram_empty_fb_i_reg : label is "no"; begin c1: entity work.scfifo_5in_5out_5kb_compare_1 port map ( comp0 => comp0, v1_reg_0(4 downto 0) => v1_reg_0(4 downto 0) ); c2: entity work.scfifo_5in_5out_5kb_compare_2 port map ( comp1 => comp1, v1_reg_1(4 downto 0) => v1_reg_1(4 downto 0) ); ram_empty_fb_i_reg: unisim.vcomponents.FDPE generic map( INIT => '1' ) port map ( C => clk, CE => '1', D => ram_empty_fb_i_reg_0, PRE => Q(0), Q => p_18_out ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_wr_status_flags_ss is port ( comp0 : out STD_LOGIC; comp1 : out STD_LOGIC; p_1_out : out STD_LOGIC; full : out STD_LOGIC; E : out STD_LOGIC_VECTOR ( 0 to 0 ); v1_reg : in STD_LOGIC_VECTOR ( 4 downto 0 ); v1_reg_1 : in STD_LOGIC_VECTOR ( 4 downto 0 ); ram_full_comb : in STD_LOGIC; clk : in STD_LOGIC; rst_full_ff_i : in STD_LOGIC; wr_en : in STD_LOGIC ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_wr_status_flags_ss : entity is "wr_status_flags_ss"; end scfifo_5in_5out_5kb_wr_status_flags_ss; architecture STRUCTURE of scfifo_5in_5out_5kb_wr_status_flags_ss is signal \^p_1_out\ : STD_LOGIC; attribute equivalent_register_removal : string; attribute equivalent_register_removal of ram_full_fb_i_reg : label is "no"; attribute equivalent_register_removal of ram_full_i_reg : label is "no"; begin p_1_out <= \^p_1_out\; \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_i_1\: unisim.vcomponents.LUT2 generic map( INIT => X"2" ) port map ( I0 => wr_en, I1 => \^p_1_out\, O => E(0) ); c0: entity work.scfifo_5in_5out_5kb_compare port map ( comp0 => comp0, v1_reg(4 downto 0) => v1_reg(4 downto 0) ); c1: entity work.scfifo_5in_5out_5kb_compare_0 port map ( comp1 => comp1, v1_reg_1(4 downto 0) => v1_reg_1(4 downto 0) ); ram_full_fb_i_reg: unisim.vcomponents.FDPE generic map( INIT => '1' ) port map ( C => clk, CE => '1', D => ram_full_comb, PRE => rst_full_ff_i, Q => \^p_1_out\ ); ram_full_i_reg: unisim.vcomponents.FDPE generic map( INIT => '1' ) port map ( C => clk, CE => '1', D => ram_full_comb, PRE => rst_full_ff_i, Q => full ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_blk_mem_gen_generic_cstr is port ( D : out STD_LOGIC_VECTOR ( 4 downto 0 ); clk : in STD_LOGIC; ram_full_fb_i_reg : in STD_LOGIC_VECTOR ( 0 to 0 ); tmp_ram_rd_en : in STD_LOGIC; Q : in STD_LOGIC_VECTOR ( 0 to 0 ); \gcc0.gc0.count_d1_reg[9]\ : in STD_LOGIC_VECTOR ( 9 downto 0 ); \gc0.count_d1_reg[9]\ : in STD_LOGIC_VECTOR ( 9 downto 0 ); din : in STD_LOGIC_VECTOR ( 4 downto 0 ) ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_blk_mem_gen_generic_cstr : entity is "blk_mem_gen_generic_cstr"; end scfifo_5in_5out_5kb_blk_mem_gen_generic_cstr; architecture STRUCTURE of scfifo_5in_5out_5kb_blk_mem_gen_generic_cstr is begin \ramloop[0].ram.r\: entity work.scfifo_5in_5out_5kb_blk_mem_gen_prim_width port map ( D(4 downto 0) => D(4 downto 0), Q(0) => Q(0), clk => clk, din(4 downto 0) => din(4 downto 0), \gc0.count_d1_reg[9]\(9 downto 0) => \gc0.count_d1_reg[9]\(9 downto 0), \gcc0.gc0.count_d1_reg[9]\(9 downto 0) => \gcc0.gc0.count_d1_reg[9]\(9 downto 0), ram_full_fb_i_reg(0) => ram_full_fb_i_reg(0), tmp_ram_rd_en => tmp_ram_rd_en ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_rd_logic is port ( comp0 : out STD_LOGIC; comp1 : out STD_LOGIC; p_18_out : out STD_LOGIC; empty : out STD_LOGIC; \gc0.count_d1_reg[9]\ : out STD_LOGIC_VECTOR ( 9 downto 0 ); tmp_ram_rd_en : out STD_LOGIC; E : out STD_LOGIC_VECTOR ( 0 to 0 ); \goreg_bm.dout_i_reg[4]\ : out STD_LOGIC_VECTOR ( 0 to 0 ); v1_reg : out STD_LOGIC_VECTOR ( 4 downto 0 ); \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram\ : out STD_LOGIC_VECTOR ( 9 downto 0 ); v1_reg_0 : in STD_LOGIC_VECTOR ( 4 downto 0 ); v1_reg_1 : in STD_LOGIC_VECTOR ( 4 downto 0 ); ram_empty_fb_i_reg : in STD_LOGIC; clk : in STD_LOGIC; Q : in STD_LOGIC_VECTOR ( 1 downto 0 ); rd_en : in STD_LOGIC; \gcc0.gc0.count_reg[9]\ : in STD_LOGIC_VECTOR ( 9 downto 0 ) ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_rd_logic : entity is "rd_logic"; end scfifo_5in_5out_5kb_rd_logic; architecture STRUCTURE of scfifo_5in_5out_5kb_rd_logic is signal \^e\ : STD_LOGIC_VECTOR ( 0 to 0 ); signal \^p_18_out\ : STD_LOGIC; begin E(0) <= \^e\(0); p_18_out <= \^p_18_out\; \gr1.rfwft\: entity work.scfifo_5in_5out_5kb_rd_fwft port map ( E(0) => \^e\(0), Q(1 downto 0) => Q(1 downto 0), clk => clk, empty => empty, \goreg_bm.dout_i_reg[4]\(0) => \goreg_bm.dout_i_reg[4]\(0), ram_empty_fb_i_reg => \^p_18_out\, rd_en => rd_en, tmp_ram_rd_en => tmp_ram_rd_en ); \grss.rsts\: entity work.scfifo_5in_5out_5kb_rd_status_flags_ss port map ( Q(0) => Q(1), clk => clk, comp0 => comp0, comp1 => comp1, p_18_out => \^p_18_out\, ram_empty_fb_i_reg_0 => ram_empty_fb_i_reg, v1_reg_0(4 downto 0) => v1_reg_0(4 downto 0), v1_reg_1(4 downto 0) => v1_reg_1(4 downto 0) ); rpntr: entity work.scfifo_5in_5out_5kb_rd_bin_cntr port map ( \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram\(9 downto 0) => \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram\(9 downto 0), E(0) => \^e\(0), Q(9 downto 0) => \gc0.count_d1_reg[9]\(9 downto 0), clk => clk, \gcc0.gc0.count_reg[9]\(9 downto 0) => \gcc0.gc0.count_reg[9]\(9 downto 0), \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0) => Q(1), v1_reg(4 downto 0) => v1_reg(4 downto 0) ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_wr_logic is port ( full : out STD_LOGIC; Q : out STD_LOGIC_VECTOR ( 9 downto 0 ); ram_empty_fb_i_reg : out STD_LOGIC; \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram\ : out STD_LOGIC_VECTOR ( 9 downto 0 ); v1_reg : out STD_LOGIC_VECTOR ( 4 downto 0 ); v1_reg_0 : out STD_LOGIC_VECTOR ( 4 downto 0 ); \gcc0.gc0.count_reg[9]\ : out STD_LOGIC_VECTOR ( 0 to 0 ); v1_reg_1 : in STD_LOGIC_VECTOR ( 4 downto 0 ); clk : in STD_LOGIC; rst_full_ff_i : in STD_LOGIC; p_18_out : in STD_LOGIC; comp0 : in STD_LOGIC; E : in STD_LOGIC_VECTOR ( 0 to 0 ); wr_en : in STD_LOGIC; comp1 : in STD_LOGIC; rst_full_gen_i : in STD_LOGIC; \gc0.count_d1_reg[9]\ : in STD_LOGIC_VECTOR ( 9 downto 0 ); \gc0.count_reg[9]\ : in STD_LOGIC_VECTOR ( 9 downto 0 ); AR : in STD_LOGIC_VECTOR ( 0 to 0 ) ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_wr_logic : entity is "wr_logic"; end scfifo_5in_5out_5kb_wr_logic; architecture STRUCTURE of scfifo_5in_5out_5kb_wr_logic is signal \c0/v1_reg\ : STD_LOGIC_VECTOR ( 4 downto 0 ); signal comp0_1 : STD_LOGIC; signal comp1_0 : STD_LOGIC; signal \^gcc0.gc0.count_reg[9]\ : STD_LOGIC_VECTOR ( 0 to 0 ); signal p_1_out : STD_LOGIC; signal ram_full_comb : STD_LOGIC; begin \gcc0.gc0.count_reg[9]\(0) <= \^gcc0.gc0.count_reg[9]\(0); \gwss.wsts\: entity work.scfifo_5in_5out_5kb_wr_status_flags_ss port map ( E(0) => \^gcc0.gc0.count_reg[9]\(0), clk => clk, comp0 => comp0_1, comp1 => comp1_0, full => full, p_1_out => p_1_out, ram_full_comb => ram_full_comb, rst_full_ff_i => rst_full_ff_i, v1_reg(4 downto 0) => \c0/v1_reg\(4 downto 0), v1_reg_1(4 downto 0) => v1_reg_1(4 downto 0), wr_en => wr_en ); wpntr: entity work.scfifo_5in_5out_5kb_wr_bin_cntr port map ( AR(0) => AR(0), \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram\(9 downto 0) => \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram\(9 downto 0), E(0) => E(0), Q(9 downto 0) => Q(9 downto 0), clk => clk, comp0 => comp0, comp0_2 => comp0_1, comp1 => comp1, comp1_3 => comp1_0, \gc0.count_d1_reg[9]\(9 downto 0) => \gc0.count_d1_reg[9]\(9 downto 0), \gc0.count_reg[9]\(9 downto 0) => \gc0.count_reg[9]\(9 downto 0), p_18_out => p_18_out, p_1_out => p_1_out, ram_empty_fb_i_reg => ram_empty_fb_i_reg, ram_full_comb => ram_full_comb, ram_full_fb_i_reg(0) => \^gcc0.gc0.count_reg[9]\(0), rst_full_gen_i => rst_full_gen_i, v1_reg(4 downto 0) => v1_reg(4 downto 0), v1_reg_0(4 downto 0) => v1_reg_0(4 downto 0), v1_reg_1(4 downto 0) => \c0/v1_reg\(4 downto 0), wr_en => wr_en ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_blk_mem_gen_top is port ( D : out STD_LOGIC_VECTOR ( 4 downto 0 ); clk : in STD_LOGIC; ram_full_fb_i_reg : in STD_LOGIC_VECTOR ( 0 to 0 ); tmp_ram_rd_en : in STD_LOGIC; Q : in STD_LOGIC_VECTOR ( 0 to 0 ); \gcc0.gc0.count_d1_reg[9]\ : in STD_LOGIC_VECTOR ( 9 downto 0 ); \gc0.count_d1_reg[9]\ : in STD_LOGIC_VECTOR ( 9 downto 0 ); din : in STD_LOGIC_VECTOR ( 4 downto 0 ) ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_blk_mem_gen_top : entity is "blk_mem_gen_top"; end scfifo_5in_5out_5kb_blk_mem_gen_top; architecture STRUCTURE of scfifo_5in_5out_5kb_blk_mem_gen_top is begin \valid.cstr\: entity work.scfifo_5in_5out_5kb_blk_mem_gen_generic_cstr port map ( D(4 downto 0) => D(4 downto 0), Q(0) => Q(0), clk => clk, din(4 downto 0) => din(4 downto 0), \gc0.count_d1_reg[9]\(9 downto 0) => \gc0.count_d1_reg[9]\(9 downto 0), \gcc0.gc0.count_d1_reg[9]\(9 downto 0) => \gcc0.gc0.count_d1_reg[9]\(9 downto 0), ram_full_fb_i_reg(0) => ram_full_fb_i_reg(0), tmp_ram_rd_en => tmp_ram_rd_en ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_blk_mem_gen_v8_3_0_synth is port ( D : out STD_LOGIC_VECTOR ( 4 downto 0 ); clk : in STD_LOGIC; ram_full_fb_i_reg : in STD_LOGIC_VECTOR ( 0 to 0 ); tmp_ram_rd_en : in STD_LOGIC; Q : in STD_LOGIC_VECTOR ( 0 to 0 ); \gcc0.gc0.count_d1_reg[9]\ : in STD_LOGIC_VECTOR ( 9 downto 0 ); \gc0.count_d1_reg[9]\ : in STD_LOGIC_VECTOR ( 9 downto 0 ); din : in STD_LOGIC_VECTOR ( 4 downto 0 ) ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_blk_mem_gen_v8_3_0_synth : entity is "blk_mem_gen_v8_3_0_synth"; end scfifo_5in_5out_5kb_blk_mem_gen_v8_3_0_synth; architecture STRUCTURE of scfifo_5in_5out_5kb_blk_mem_gen_v8_3_0_synth is begin \gnativebmg.native_blk_mem_gen\: entity work.scfifo_5in_5out_5kb_blk_mem_gen_top port map ( D(4 downto 0) => D(4 downto 0), Q(0) => Q(0), clk => clk, din(4 downto 0) => din(4 downto 0), \gc0.count_d1_reg[9]\(9 downto 0) => \gc0.count_d1_reg[9]\(9 downto 0), \gcc0.gc0.count_d1_reg[9]\(9 downto 0) => \gcc0.gc0.count_d1_reg[9]\(9 downto 0), ram_full_fb_i_reg(0) => ram_full_fb_i_reg(0), tmp_ram_rd_en => tmp_ram_rd_en ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_blk_mem_gen_v8_3_0 is port ( D : out STD_LOGIC_VECTOR ( 4 downto 0 ); clk : in STD_LOGIC; ram_full_fb_i_reg : in STD_LOGIC_VECTOR ( 0 to 0 ); tmp_ram_rd_en : in STD_LOGIC; Q : in STD_LOGIC_VECTOR ( 0 to 0 ); \gcc0.gc0.count_d1_reg[9]\ : in STD_LOGIC_VECTOR ( 9 downto 0 ); \gc0.count_d1_reg[9]\ : in STD_LOGIC_VECTOR ( 9 downto 0 ); din : in STD_LOGIC_VECTOR ( 4 downto 0 ) ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_blk_mem_gen_v8_3_0 : entity is "blk_mem_gen_v8_3_0"; end scfifo_5in_5out_5kb_blk_mem_gen_v8_3_0; architecture STRUCTURE of scfifo_5in_5out_5kb_blk_mem_gen_v8_3_0 is begin inst_blk_mem_gen: entity work.scfifo_5in_5out_5kb_blk_mem_gen_v8_3_0_synth port map ( D(4 downto 0) => D(4 downto 0), Q(0) => Q(0), clk => clk, din(4 downto 0) => din(4 downto 0), \gc0.count_d1_reg[9]\(9 downto 0) => \gc0.count_d1_reg[9]\(9 downto 0), \gcc0.gc0.count_d1_reg[9]\(9 downto 0) => \gcc0.gc0.count_d1_reg[9]\(9 downto 0), ram_full_fb_i_reg(0) => ram_full_fb_i_reg(0), tmp_ram_rd_en => tmp_ram_rd_en ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_memory is port ( dout : out STD_LOGIC_VECTOR ( 4 downto 0 ); clk : in STD_LOGIC; ram_full_fb_i_reg : in STD_LOGIC_VECTOR ( 0 to 0 ); tmp_ram_rd_en : in STD_LOGIC; Q : in STD_LOGIC_VECTOR ( 0 to 0 ); \gcc0.gc0.count_d1_reg[9]\ : in STD_LOGIC_VECTOR ( 9 downto 0 ); \gc0.count_d1_reg[9]\ : in STD_LOGIC_VECTOR ( 9 downto 0 ); din : in STD_LOGIC_VECTOR ( 4 downto 0 ); E : in STD_LOGIC_VECTOR ( 0 to 0 ) ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_memory : entity is "memory"; end scfifo_5in_5out_5kb_memory; architecture STRUCTURE of scfifo_5in_5out_5kb_memory is signal doutb : STD_LOGIC_VECTOR ( 4 downto 0 ); begin \gbm.gbmg.gbmga.ngecc.bmg\: entity work.scfifo_5in_5out_5kb_blk_mem_gen_v8_3_0 port map ( D(4 downto 0) => doutb(4 downto 0), Q(0) => Q(0), clk => clk, din(4 downto 0) => din(4 downto 0), \gc0.count_d1_reg[9]\(9 downto 0) => \gc0.count_d1_reg[9]\(9 downto 0), \gcc0.gc0.count_d1_reg[9]\(9 downto 0) => \gcc0.gc0.count_d1_reg[9]\(9 downto 0), ram_full_fb_i_reg(0) => ram_full_fb_i_reg(0), tmp_ram_rd_en => tmp_ram_rd_en ); \goreg_bm.dout_i_reg[0]\: unisim.vcomponents.FDRE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), D => doutb(0), Q => dout(0), R => Q(0) ); \goreg_bm.dout_i_reg[1]\: unisim.vcomponents.FDRE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), D => doutb(1), Q => dout(1), R => Q(0) ); \goreg_bm.dout_i_reg[2]\: unisim.vcomponents.FDRE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), D => doutb(2), Q => dout(2), R => Q(0) ); \goreg_bm.dout_i_reg[3]\: unisim.vcomponents.FDRE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), D => doutb(3), Q => dout(3), R => Q(0) ); \goreg_bm.dout_i_reg[4]\: unisim.vcomponents.FDRE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), D => doutb(4), Q => dout(4), R => Q(0) ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_fifo_generator_ramfifo is port ( empty : out STD_LOGIC; full : out STD_LOGIC; dout : out STD_LOGIC_VECTOR ( 4 downto 0 ); clk : in STD_LOGIC; din : in STD_LOGIC_VECTOR ( 4 downto 0 ); rst : in STD_LOGIC; rd_en : in STD_LOGIC; wr_en : in STD_LOGIC ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_fifo_generator_ramfifo : entity is "fifo_generator_ramfifo"; end scfifo_5in_5out_5kb_fifo_generator_ramfifo; architecture STRUCTURE of scfifo_5in_5out_5kb_fifo_generator_ramfifo is signal RD_RST : STD_LOGIC; signal \^rst\ : STD_LOGIC; signal \gntv_or_sync_fifo.gl0.wr_n_11\ : STD_LOGIC; signal \grss.rsts/c1/v1_reg\ : STD_LOGIC_VECTOR ( 4 downto 0 ); signal \grss.rsts/c2/v1_reg\ : STD_LOGIC_VECTOR ( 4 downto 0 ); signal \grss.rsts/comp0\ : STD_LOGIC; signal \grss.rsts/comp1\ : STD_LOGIC; signal \gwss.wsts/c1/v1_reg\ : STD_LOGIC_VECTOR ( 4 downto 0 ); signal p_10_out : STD_LOGIC_VECTOR ( 9 downto 0 ); signal p_14_out : STD_LOGIC; signal p_15_out : STD_LOGIC; signal p_18_out : STD_LOGIC; signal p_20_out : STD_LOGIC_VECTOR ( 9 downto 0 ); signal p_4_out : STD_LOGIC; signal p_9_out : STD_LOGIC_VECTOR ( 9 downto 0 ); signal rd_pntr_plus1 : STD_LOGIC_VECTOR ( 9 downto 0 ); signal rd_rst_i : STD_LOGIC_VECTOR ( 0 to 0 ); signal rst_full_ff_i : STD_LOGIC; signal rst_full_gen_i : STD_LOGIC; signal tmp_ram_rd_en : STD_LOGIC; begin \gntv_or_sync_fifo.gl0.rd\: entity work.scfifo_5in_5out_5kb_rd_logic port map ( \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram\(9 downto 0) => p_20_out(9 downto 0), E(0) => p_14_out, Q(1) => RD_RST, Q(0) => rd_rst_i(0), clk => clk, comp0 => \grss.rsts/comp0\, comp1 => \grss.rsts/comp1\, empty => empty, \gc0.count_d1_reg[9]\(9 downto 0) => rd_pntr_plus1(9 downto 0), \gcc0.gc0.count_reg[9]\(9 downto 0) => p_9_out(9 downto 0), \goreg_bm.dout_i_reg[4]\(0) => p_15_out, p_18_out => p_18_out, ram_empty_fb_i_reg => \gntv_or_sync_fifo.gl0.wr_n_11\, rd_en => rd_en, tmp_ram_rd_en => tmp_ram_rd_en, v1_reg(4 downto 0) => \gwss.wsts/c1/v1_reg\(4 downto 0), v1_reg_0(4 downto 0) => \grss.rsts/c1/v1_reg\(4 downto 0), v1_reg_1(4 downto 0) => \grss.rsts/c2/v1_reg\(4 downto 0) ); \gntv_or_sync_fifo.gl0.wr\: entity work.scfifo_5in_5out_5kb_wr_logic port map ( AR(0) => \^rst\, \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram\(9 downto 0) => p_10_out(9 downto 0), E(0) => p_14_out, Q(9 downto 0) => p_9_out(9 downto 0), clk => clk, comp0 => \grss.rsts/comp0\, comp1 => \grss.rsts/comp1\, full => full, \gc0.count_d1_reg[9]\(9 downto 0) => p_20_out(9 downto 0), \gc0.count_reg[9]\(9 downto 0) => rd_pntr_plus1(9 downto 0), \gcc0.gc0.count_reg[9]\(0) => p_4_out, p_18_out => p_18_out, ram_empty_fb_i_reg => \gntv_or_sync_fifo.gl0.wr_n_11\, rst_full_ff_i => rst_full_ff_i, rst_full_gen_i => rst_full_gen_i, v1_reg(4 downto 0) => \grss.rsts/c1/v1_reg\(4 downto 0), v1_reg_0(4 downto 0) => \grss.rsts/c2/v1_reg\(4 downto 0), v1_reg_1(4 downto 0) => \gwss.wsts/c1/v1_reg\(4 downto 0), wr_en => wr_en ); \gntv_or_sync_fifo.mem\: entity work.scfifo_5in_5out_5kb_memory port map ( E(0) => p_15_out, Q(0) => rd_rst_i(0), clk => clk, din(4 downto 0) => din(4 downto 0), dout(4 downto 0) => dout(4 downto 0), \gc0.count_d1_reg[9]\(9 downto 0) => p_20_out(9 downto 0), \gcc0.gc0.count_d1_reg[9]\(9 downto 0) => p_10_out(9 downto 0), ram_full_fb_i_reg(0) => p_4_out, tmp_ram_rd_en => tmp_ram_rd_en ); rstblk: entity work.\scfifo_5in_5out_5kb_reset_blk_ramfifo__parameterized0\ port map ( AR(0) => \^rst\, Q(1) => RD_RST, Q(0) => rd_rst_i(0), clk => clk, rst => rst, rst_full_ff_i => rst_full_ff_i, rst_full_gen_i => rst_full_gen_i ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_fifo_generator_top is port ( empty : out STD_LOGIC; full : out STD_LOGIC; dout : out STD_LOGIC_VECTOR ( 4 downto 0 ); clk : in STD_LOGIC; din : in STD_LOGIC_VECTOR ( 4 downto 0 ); rst : in STD_LOGIC; rd_en : in STD_LOGIC; wr_en : in STD_LOGIC ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_fifo_generator_top : entity is "fifo_generator_top"; end scfifo_5in_5out_5kb_fifo_generator_top; architecture STRUCTURE of scfifo_5in_5out_5kb_fifo_generator_top is begin \grf.rf\: entity work.scfifo_5in_5out_5kb_fifo_generator_ramfifo port map ( clk => clk, din(4 downto 0) => din(4 downto 0), dout(4 downto 0) => dout(4 downto 0), empty => empty, full => full, rd_en => rd_en, rst => rst, wr_en => wr_en ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_fifo_generator_v13_0_0_synth is port ( dout : out STD_LOGIC_VECTOR ( 4 downto 0 ); empty : out STD_LOGIC; full : out STD_LOGIC; clk : in STD_LOGIC; din : in STD_LOGIC_VECTOR ( 4 downto 0 ); s_aclk : in STD_LOGIC; rst : in STD_LOGIC; rd_en : in STD_LOGIC; wr_en : in STD_LOGIC; s_aresetn : in STD_LOGIC ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_fifo_generator_v13_0_0_synth : entity is "fifo_generator_v13_0_0_synth"; end scfifo_5in_5out_5kb_fifo_generator_v13_0_0_synth; architecture STRUCTURE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0_synth is begin \gconvfifo.rf\: entity work.scfifo_5in_5out_5kb_fifo_generator_top port map ( clk => clk, din(4 downto 0) => din(4 downto 0), dout(4 downto 0) => dout(4 downto 0), empty => empty, full => full, rd_en => rd_en, rst => rst, wr_en => wr_en ); \reset_gen_cc.rstblk_cc\: entity work.scfifo_5in_5out_5kb_reset_blk_ramfifo port map ( s_aclk => s_aclk, s_aresetn => s_aresetn ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_fifo_generator_v13_0_0 is port ( backup : in STD_LOGIC; backup_marker : in STD_LOGIC; clk : in STD_LOGIC; rst : in STD_LOGIC; srst : in STD_LOGIC; wr_clk : in STD_LOGIC; wr_rst : in STD_LOGIC; rd_clk : in STD_LOGIC; rd_rst : in STD_LOGIC; din : in STD_LOGIC_VECTOR ( 4 downto 0 ); wr_en : in STD_LOGIC; rd_en : in STD_LOGIC; prog_empty_thresh : in STD_LOGIC_VECTOR ( 9 downto 0 ); prog_empty_thresh_assert : in STD_LOGIC_VECTOR ( 9 downto 0 ); prog_empty_thresh_negate : in STD_LOGIC_VECTOR ( 9 downto 0 ); prog_full_thresh : in STD_LOGIC_VECTOR ( 9 downto 0 ); prog_full_thresh_assert : in STD_LOGIC_VECTOR ( 9 downto 0 ); prog_full_thresh_negate : in STD_LOGIC_VECTOR ( 9 downto 0 ); int_clk : in STD_LOGIC; injectdbiterr : in STD_LOGIC; injectsbiterr : in STD_LOGIC; sleep : in STD_LOGIC; dout : out STD_LOGIC_VECTOR ( 4 downto 0 ); full : out STD_LOGIC; almost_full : out STD_LOGIC; wr_ack : out STD_LOGIC; overflow : out STD_LOGIC; empty : out STD_LOGIC; almost_empty : out STD_LOGIC; valid : out STD_LOGIC; underflow : out STD_LOGIC; data_count : out STD_LOGIC_VECTOR ( 10 downto 0 ); rd_data_count : out STD_LOGIC_VECTOR ( 10 downto 0 ); wr_data_count : out STD_LOGIC_VECTOR ( 10 downto 0 ); prog_full : out STD_LOGIC; prog_empty : out STD_LOGIC; sbiterr : out STD_LOGIC; dbiterr : out STD_LOGIC; wr_rst_busy : out STD_LOGIC; rd_rst_busy : out STD_LOGIC; m_aclk : in STD_LOGIC; s_aclk : in STD_LOGIC; s_aresetn : in STD_LOGIC; m_aclk_en : in STD_LOGIC; s_aclk_en : in STD_LOGIC; s_axi_awid : in STD_LOGIC_VECTOR ( 0 to 0 ); s_axi_awaddr : in STD_LOGIC_VECTOR ( 31 downto 0 ); s_axi_awlen : in STD_LOGIC_VECTOR ( 7 downto 0 ); s_axi_awsize : in STD_LOGIC_VECTOR ( 2 downto 0 ); s_axi_awburst : in STD_LOGIC_VECTOR ( 1 downto 0 ); s_axi_awlock : in STD_LOGIC_VECTOR ( 0 to 0 ); s_axi_awcache : in STD_LOGIC_VECTOR ( 3 downto 0 ); s_axi_awprot : in STD_LOGIC_VECTOR ( 2 downto 0 ); s_axi_awqos : in STD_LOGIC_VECTOR ( 3 downto 0 ); s_axi_awregion : in STD_LOGIC_VECTOR ( 3 downto 0 ); s_axi_awuser : in STD_LOGIC_VECTOR ( 0 to 0 ); s_axi_awvalid : in STD_LOGIC; s_axi_awready : out STD_LOGIC; s_axi_wid : in STD_LOGIC_VECTOR ( 0 to 0 ); s_axi_wdata : in STD_LOGIC_VECTOR ( 63 downto 0 ); s_axi_wstrb : in STD_LOGIC_VECTOR ( 7 downto 0 ); s_axi_wlast : in STD_LOGIC; s_axi_wuser : in STD_LOGIC_VECTOR ( 0 to 0 ); s_axi_wvalid : in STD_LOGIC; s_axi_wready : out STD_LOGIC; s_axi_bid : out STD_LOGIC_VECTOR ( 0 to 0 ); s_axi_bresp : out STD_LOGIC_VECTOR ( 1 downto 0 ); s_axi_buser : out STD_LOGIC_VECTOR ( 0 to 0 ); s_axi_bvalid : out STD_LOGIC; s_axi_bready : in STD_LOGIC; m_axi_awid : out STD_LOGIC_VECTOR ( 0 to 0 ); m_axi_awaddr : out STD_LOGIC_VECTOR ( 31 downto 0 ); m_axi_awlen : out STD_LOGIC_VECTOR ( 7 downto 0 ); m_axi_awsize : out STD_LOGIC_VECTOR ( 2 downto 0 ); m_axi_awburst : out STD_LOGIC_VECTOR ( 1 downto 0 ); m_axi_awlock : out STD_LOGIC_VECTOR ( 0 to 0 ); m_axi_awcache : out STD_LOGIC_VECTOR ( 3 downto 0 ); m_axi_awprot : out STD_LOGIC_VECTOR ( 2 downto 0 ); m_axi_awqos : out STD_LOGIC_VECTOR ( 3 downto 0 ); m_axi_awregion : out STD_LOGIC_VECTOR ( 3 downto 0 ); m_axi_awuser : out STD_LOGIC_VECTOR ( 0 to 0 ); m_axi_awvalid : out STD_LOGIC; m_axi_awready : in STD_LOGIC; m_axi_wid : out STD_LOGIC_VECTOR ( 0 to 0 ); m_axi_wdata : out STD_LOGIC_VECTOR ( 63 downto 0 ); m_axi_wstrb : out STD_LOGIC_VECTOR ( 7 downto 0 ); m_axi_wlast : out STD_LOGIC; m_axi_wuser : out STD_LOGIC_VECTOR ( 0 to 0 ); m_axi_wvalid : out STD_LOGIC; m_axi_wready : in STD_LOGIC; m_axi_bid : in STD_LOGIC_VECTOR ( 0 to 0 ); m_axi_bresp : in STD_LOGIC_VECTOR ( 1 downto 0 ); m_axi_buser : in STD_LOGIC_VECTOR ( 0 to 0 ); m_axi_bvalid : in STD_LOGIC; m_axi_bready : out STD_LOGIC; s_axi_arid : in STD_LOGIC_VECTOR ( 0 to 0 ); s_axi_araddr : in STD_LOGIC_VECTOR ( 31 downto 0 ); s_axi_arlen : in STD_LOGIC_VECTOR ( 7 downto 0 ); s_axi_arsize : in STD_LOGIC_VECTOR ( 2 downto 0 ); s_axi_arburst : in STD_LOGIC_VECTOR ( 1 downto 0 ); s_axi_arlock : in STD_LOGIC_VECTOR ( 0 to 0 ); s_axi_arcache : in STD_LOGIC_VECTOR ( 3 downto 0 ); s_axi_arprot : in STD_LOGIC_VECTOR ( 2 downto 0 ); s_axi_arqos : in STD_LOGIC_VECTOR ( 3 downto 0 ); s_axi_arregion : in STD_LOGIC_VECTOR ( 3 downto 0 ); s_axi_aruser : in STD_LOGIC_VECTOR ( 0 to 0 ); s_axi_arvalid : in STD_LOGIC; s_axi_arready : out STD_LOGIC; s_axi_rid : out STD_LOGIC_VECTOR ( 0 to 0 ); s_axi_rdata : out STD_LOGIC_VECTOR ( 63 downto 0 ); s_axi_rresp : out STD_LOGIC_VECTOR ( 1 downto 0 ); s_axi_rlast : out STD_LOGIC; s_axi_ruser : out STD_LOGIC_VECTOR ( 0 to 0 ); s_axi_rvalid : out STD_LOGIC; s_axi_rready : in STD_LOGIC; m_axi_arid : out STD_LOGIC_VECTOR ( 0 to 0 ); m_axi_araddr : out STD_LOGIC_VECTOR ( 31 downto 0 ); m_axi_arlen : out STD_LOGIC_VECTOR ( 7 downto 0 ); m_axi_arsize : out STD_LOGIC_VECTOR ( 2 downto 0 ); m_axi_arburst : out STD_LOGIC_VECTOR ( 1 downto 0 ); m_axi_arlock : out STD_LOGIC_VECTOR ( 0 to 0 ); m_axi_arcache : out STD_LOGIC_VECTOR ( 3 downto 0 ); m_axi_arprot : out STD_LOGIC_VECTOR ( 2 downto 0 ); m_axi_arqos : out STD_LOGIC_VECTOR ( 3 downto 0 ); m_axi_arregion : out STD_LOGIC_VECTOR ( 3 downto 0 ); m_axi_aruser : out STD_LOGIC_VECTOR ( 0 to 0 ); m_axi_arvalid : out STD_LOGIC; m_axi_arready : in STD_LOGIC; m_axi_rid : in STD_LOGIC_VECTOR ( 0 to 0 ); m_axi_rdata : in STD_LOGIC_VECTOR ( 63 downto 0 ); m_axi_rresp : in STD_LOGIC_VECTOR ( 1 downto 0 ); m_axi_rlast : in STD_LOGIC; m_axi_ruser : in STD_LOGIC_VECTOR ( 0 to 0 ); m_axi_rvalid : in STD_LOGIC; m_axi_rready : out STD_LOGIC; s_axis_tvalid : in STD_LOGIC; s_axis_tready : out STD_LOGIC; s_axis_tdata : in STD_LOGIC_VECTOR ( 7 downto 0 ); s_axis_tstrb : in STD_LOGIC_VECTOR ( 0 to 0 ); s_axis_tkeep : in STD_LOGIC_VECTOR ( 0 to 0 ); s_axis_tlast : in STD_LOGIC; s_axis_tid : in STD_LOGIC_VECTOR ( 0 to 0 ); s_axis_tdest : in STD_LOGIC_VECTOR ( 0 to 0 ); s_axis_tuser : in STD_LOGIC_VECTOR ( 3 downto 0 ); m_axis_tvalid : out STD_LOGIC; m_axis_tready : in STD_LOGIC; m_axis_tdata : out STD_LOGIC_VECTOR ( 7 downto 0 ); m_axis_tstrb : out STD_LOGIC_VECTOR ( 0 to 0 ); m_axis_tkeep : out STD_LOGIC_VECTOR ( 0 to 0 ); m_axis_tlast : out STD_LOGIC; m_axis_tid : out STD_LOGIC_VECTOR ( 0 to 0 ); m_axis_tdest : out STD_LOGIC_VECTOR ( 0 to 0 ); m_axis_tuser : out STD_LOGIC_VECTOR ( 3 downto 0 ); axi_aw_injectsbiterr : in STD_LOGIC; axi_aw_injectdbiterr : in STD_LOGIC; axi_aw_prog_full_thresh : in STD_LOGIC_VECTOR ( 3 downto 0 ); axi_aw_prog_empty_thresh : in STD_LOGIC_VECTOR ( 3 downto 0 ); axi_aw_data_count : out STD_LOGIC_VECTOR ( 4 downto 0 ); axi_aw_wr_data_count : out STD_LOGIC_VECTOR ( 4 downto 0 ); axi_aw_rd_data_count : out STD_LOGIC_VECTOR ( 4 downto 0 ); axi_aw_sbiterr : out STD_LOGIC; axi_aw_dbiterr : out STD_LOGIC; axi_aw_overflow : out STD_LOGIC; axi_aw_underflow : out STD_LOGIC; axi_aw_prog_full : out STD_LOGIC; axi_aw_prog_empty : out STD_LOGIC; axi_w_injectsbiterr : in STD_LOGIC; axi_w_injectdbiterr : in STD_LOGIC; axi_w_prog_full_thresh : in STD_LOGIC_VECTOR ( 9 downto 0 ); axi_w_prog_empty_thresh : in STD_LOGIC_VECTOR ( 9 downto 0 ); axi_w_data_count : out STD_LOGIC_VECTOR ( 10 downto 0 ); axi_w_wr_data_count : out STD_LOGIC_VECTOR ( 10 downto 0 ); axi_w_rd_data_count : out STD_LOGIC_VECTOR ( 10 downto 0 ); axi_w_sbiterr : out STD_LOGIC; axi_w_dbiterr : out STD_LOGIC; axi_w_overflow : out STD_LOGIC; axi_w_underflow : out STD_LOGIC; axi_w_prog_full : out STD_LOGIC; axi_w_prog_empty : out STD_LOGIC; axi_b_injectsbiterr : in STD_LOGIC; axi_b_injectdbiterr : in STD_LOGIC; axi_b_prog_full_thresh : in STD_LOGIC_VECTOR ( 3 downto 0 ); axi_b_prog_empty_thresh : in STD_LOGIC_VECTOR ( 3 downto 0 ); axi_b_data_count : out STD_LOGIC_VECTOR ( 4 downto 0 ); axi_b_wr_data_count : out STD_LOGIC_VECTOR ( 4 downto 0 ); axi_b_rd_data_count : out STD_LOGIC_VECTOR ( 4 downto 0 ); axi_b_sbiterr : out STD_LOGIC; axi_b_dbiterr : out STD_LOGIC; axi_b_overflow : out STD_LOGIC; axi_b_underflow : out STD_LOGIC; axi_b_prog_full : out STD_LOGIC; axi_b_prog_empty : out STD_LOGIC; axi_ar_injectsbiterr : in STD_LOGIC; axi_ar_injectdbiterr : in STD_LOGIC; axi_ar_prog_full_thresh : in STD_LOGIC_VECTOR ( 3 downto 0 ); axi_ar_prog_empty_thresh : in STD_LOGIC_VECTOR ( 3 downto 0 ); axi_ar_data_count : out STD_LOGIC_VECTOR ( 4 downto 0 ); axi_ar_wr_data_count : out STD_LOGIC_VECTOR ( 4 downto 0 ); axi_ar_rd_data_count : out STD_LOGIC_VECTOR ( 4 downto 0 ); axi_ar_sbiterr : out STD_LOGIC; axi_ar_dbiterr : out STD_LOGIC; axi_ar_overflow : out STD_LOGIC; axi_ar_underflow : out STD_LOGIC; axi_ar_prog_full : out STD_LOGIC; axi_ar_prog_empty : out STD_LOGIC; axi_r_injectsbiterr : in STD_LOGIC; axi_r_injectdbiterr : in STD_LOGIC; axi_r_prog_full_thresh : in STD_LOGIC_VECTOR ( 9 downto 0 ); axi_r_prog_empty_thresh : in STD_LOGIC_VECTOR ( 9 downto 0 ); axi_r_data_count : out STD_LOGIC_VECTOR ( 10 downto 0 ); axi_r_wr_data_count : out STD_LOGIC_VECTOR ( 10 downto 0 ); axi_r_rd_data_count : out STD_LOGIC_VECTOR ( 10 downto 0 ); axi_r_sbiterr : out STD_LOGIC; axi_r_dbiterr : out STD_LOGIC; axi_r_overflow : out STD_LOGIC; axi_r_underflow : out STD_LOGIC; axi_r_prog_full : out STD_LOGIC; axi_r_prog_empty : out STD_LOGIC; axis_injectsbiterr : in STD_LOGIC; axis_injectdbiterr : in STD_LOGIC; axis_prog_full_thresh : in STD_LOGIC_VECTOR ( 9 downto 0 ); axis_prog_empty_thresh : in STD_LOGIC_VECTOR ( 9 downto 0 ); axis_data_count : out STD_LOGIC_VECTOR ( 10 downto 0 ); axis_wr_data_count : out STD_LOGIC_VECTOR ( 10 downto 0 ); axis_rd_data_count : out STD_LOGIC_VECTOR ( 10 downto 0 ); axis_sbiterr : out STD_LOGIC; axis_dbiterr : out STD_LOGIC; axis_overflow : out STD_LOGIC; axis_underflow : out STD_LOGIC; axis_prog_full : out STD_LOGIC; axis_prog_empty : out STD_LOGIC ); attribute C_ADD_NGC_CONSTRAINT : integer; attribute C_ADD_NGC_CONSTRAINT of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_APPLICATION_TYPE_AXIS : integer; attribute C_APPLICATION_TYPE_AXIS of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_APPLICATION_TYPE_RACH : integer; attribute C_APPLICATION_TYPE_RACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_APPLICATION_TYPE_RDCH : integer; attribute C_APPLICATION_TYPE_RDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_APPLICATION_TYPE_WACH : integer; attribute C_APPLICATION_TYPE_WACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_APPLICATION_TYPE_WDCH : integer; attribute C_APPLICATION_TYPE_WDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_APPLICATION_TYPE_WRCH : integer; attribute C_APPLICATION_TYPE_WRCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_AXIS_TDATA_WIDTH : integer; attribute C_AXIS_TDATA_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 8; attribute C_AXIS_TDEST_WIDTH : integer; attribute C_AXIS_TDEST_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_AXIS_TID_WIDTH : integer; attribute C_AXIS_TID_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_AXIS_TKEEP_WIDTH : integer; attribute C_AXIS_TKEEP_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_AXIS_TSTRB_WIDTH : integer; attribute C_AXIS_TSTRB_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_AXIS_TUSER_WIDTH : integer; attribute C_AXIS_TUSER_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 4; attribute C_AXIS_TYPE : integer; attribute C_AXIS_TYPE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_AXI_ADDR_WIDTH : integer; attribute C_AXI_ADDR_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 32; attribute C_AXI_ARUSER_WIDTH : integer; attribute C_AXI_ARUSER_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_AXI_AWUSER_WIDTH : integer; attribute C_AXI_AWUSER_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_AXI_BUSER_WIDTH : integer; attribute C_AXI_BUSER_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_AXI_DATA_WIDTH : integer; attribute C_AXI_DATA_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 64; attribute C_AXI_ID_WIDTH : integer; attribute C_AXI_ID_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_AXI_LEN_WIDTH : integer; attribute C_AXI_LEN_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 8; attribute C_AXI_LOCK_WIDTH : integer; attribute C_AXI_LOCK_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_AXI_RUSER_WIDTH : integer; attribute C_AXI_RUSER_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_AXI_TYPE : integer; attribute C_AXI_TYPE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_AXI_WUSER_WIDTH : integer; attribute C_AXI_WUSER_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_COMMON_CLOCK : integer; attribute C_COMMON_CLOCK of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_COUNT_TYPE : integer; attribute C_COUNT_TYPE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_DATA_COUNT_WIDTH : integer; attribute C_DATA_COUNT_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 11; attribute C_DEFAULT_VALUE : string; attribute C_DEFAULT_VALUE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is "BlankString"; attribute C_DIN_WIDTH : integer; attribute C_DIN_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 5; attribute C_DIN_WIDTH_AXIS : integer; attribute C_DIN_WIDTH_AXIS of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_DIN_WIDTH_RACH : integer; attribute C_DIN_WIDTH_RACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 32; attribute C_DIN_WIDTH_RDCH : integer; attribute C_DIN_WIDTH_RDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 64; attribute C_DIN_WIDTH_WACH : integer; attribute C_DIN_WIDTH_WACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 32; attribute C_DIN_WIDTH_WDCH : integer; attribute C_DIN_WIDTH_WDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 64; attribute C_DIN_WIDTH_WRCH : integer; attribute C_DIN_WIDTH_WRCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 2; attribute C_DOUT_RST_VAL : string; attribute C_DOUT_RST_VAL of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is "0"; attribute C_DOUT_WIDTH : integer; attribute C_DOUT_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 5; attribute C_ENABLE_RLOCS : integer; attribute C_ENABLE_RLOCS of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_ENABLE_RST_SYNC : integer; attribute C_ENABLE_RST_SYNC of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_EN_SAFETY_CKT : integer; attribute C_EN_SAFETY_CKT of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_ERROR_INJECTION_TYPE : integer; attribute C_ERROR_INJECTION_TYPE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_ERROR_INJECTION_TYPE_AXIS : integer; attribute C_ERROR_INJECTION_TYPE_AXIS of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_ERROR_INJECTION_TYPE_RACH : integer; attribute C_ERROR_INJECTION_TYPE_RACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_ERROR_INJECTION_TYPE_RDCH : integer; attribute C_ERROR_INJECTION_TYPE_RDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_ERROR_INJECTION_TYPE_WACH : integer; attribute C_ERROR_INJECTION_TYPE_WACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_ERROR_INJECTION_TYPE_WDCH : integer; attribute C_ERROR_INJECTION_TYPE_WDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_ERROR_INJECTION_TYPE_WRCH : integer; attribute C_ERROR_INJECTION_TYPE_WRCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_FAMILY : string; attribute C_FAMILY of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is "artix7"; attribute C_FULL_FLAGS_RST_VAL : integer; attribute C_FULL_FLAGS_RST_VAL of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_HAS_ALMOST_EMPTY : integer; attribute C_HAS_ALMOST_EMPTY of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_ALMOST_FULL : integer; attribute C_HAS_ALMOST_FULL of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_AXIS_TDATA : integer; attribute C_HAS_AXIS_TDATA of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_HAS_AXIS_TDEST : integer; attribute C_HAS_AXIS_TDEST of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_AXIS_TID : integer; attribute C_HAS_AXIS_TID of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_AXIS_TKEEP : integer; attribute C_HAS_AXIS_TKEEP of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_AXIS_TLAST : integer; attribute C_HAS_AXIS_TLAST of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_AXIS_TREADY : integer; attribute C_HAS_AXIS_TREADY of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_HAS_AXIS_TSTRB : integer; attribute C_HAS_AXIS_TSTRB of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_AXIS_TUSER : integer; attribute C_HAS_AXIS_TUSER of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_HAS_AXI_ARUSER : integer; attribute C_HAS_AXI_ARUSER of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_AXI_AWUSER : integer; attribute C_HAS_AXI_AWUSER of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_AXI_BUSER : integer; attribute C_HAS_AXI_BUSER of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_AXI_ID : integer; attribute C_HAS_AXI_ID of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_AXI_RD_CHANNEL : integer; attribute C_HAS_AXI_RD_CHANNEL of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_HAS_AXI_RUSER : integer; attribute C_HAS_AXI_RUSER of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_AXI_WR_CHANNEL : integer; attribute C_HAS_AXI_WR_CHANNEL of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_HAS_AXI_WUSER : integer; attribute C_HAS_AXI_WUSER of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_BACKUP : integer; attribute C_HAS_BACKUP of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_DATA_COUNT : integer; attribute C_HAS_DATA_COUNT of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_DATA_COUNTS_AXIS : integer; attribute C_HAS_DATA_COUNTS_AXIS of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_DATA_COUNTS_RACH : integer; attribute C_HAS_DATA_COUNTS_RACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_DATA_COUNTS_RDCH : integer; attribute C_HAS_DATA_COUNTS_RDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_DATA_COUNTS_WACH : integer; attribute C_HAS_DATA_COUNTS_WACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_DATA_COUNTS_WDCH : integer; attribute C_HAS_DATA_COUNTS_WDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_DATA_COUNTS_WRCH : integer; attribute C_HAS_DATA_COUNTS_WRCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_INT_CLK : integer; attribute C_HAS_INT_CLK of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_MASTER_CE : integer; attribute C_HAS_MASTER_CE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_MEMINIT_FILE : integer; attribute C_HAS_MEMINIT_FILE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_OVERFLOW : integer; attribute C_HAS_OVERFLOW of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_PROG_FLAGS_AXIS : integer; attribute C_HAS_PROG_FLAGS_AXIS of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_PROG_FLAGS_RACH : integer; attribute C_HAS_PROG_FLAGS_RACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_PROG_FLAGS_RDCH : integer; attribute C_HAS_PROG_FLAGS_RDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_PROG_FLAGS_WACH : integer; attribute C_HAS_PROG_FLAGS_WACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_PROG_FLAGS_WDCH : integer; attribute C_HAS_PROG_FLAGS_WDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_PROG_FLAGS_WRCH : integer; attribute C_HAS_PROG_FLAGS_WRCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_RD_DATA_COUNT : integer; attribute C_HAS_RD_DATA_COUNT of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_RD_RST : integer; attribute C_HAS_RD_RST of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_RST : integer; attribute C_HAS_RST of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_HAS_SLAVE_CE : integer; attribute C_HAS_SLAVE_CE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_SRST : integer; attribute C_HAS_SRST of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_UNDERFLOW : integer; attribute C_HAS_UNDERFLOW of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_VALID : integer; attribute C_HAS_VALID of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_WR_ACK : integer; attribute C_HAS_WR_ACK of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_WR_DATA_COUNT : integer; attribute C_HAS_WR_DATA_COUNT of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_WR_RST : integer; attribute C_HAS_WR_RST of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_IMPLEMENTATION_TYPE : integer; attribute C_IMPLEMENTATION_TYPE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_IMPLEMENTATION_TYPE_AXIS : integer; attribute C_IMPLEMENTATION_TYPE_AXIS of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_IMPLEMENTATION_TYPE_RACH : integer; attribute C_IMPLEMENTATION_TYPE_RACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_IMPLEMENTATION_TYPE_RDCH : integer; attribute C_IMPLEMENTATION_TYPE_RDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_IMPLEMENTATION_TYPE_WACH : integer; attribute C_IMPLEMENTATION_TYPE_WACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_IMPLEMENTATION_TYPE_WDCH : integer; attribute C_IMPLEMENTATION_TYPE_WDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_IMPLEMENTATION_TYPE_WRCH : integer; attribute C_IMPLEMENTATION_TYPE_WRCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_INIT_WR_PNTR_VAL : integer; attribute C_INIT_WR_PNTR_VAL of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_INTERFACE_TYPE : integer; attribute C_INTERFACE_TYPE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_MEMORY_TYPE : integer; attribute C_MEMORY_TYPE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_MIF_FILE_NAME : string; attribute C_MIF_FILE_NAME of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is "BlankString"; attribute C_MSGON_VAL : integer; attribute C_MSGON_VAL of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_OPTIMIZATION_MODE : integer; attribute C_OPTIMIZATION_MODE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_OVERFLOW_LOW : integer; attribute C_OVERFLOW_LOW of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_POWER_SAVING_MODE : integer; attribute C_POWER_SAVING_MODE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_PRELOAD_LATENCY : integer; attribute C_PRELOAD_LATENCY of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_PRELOAD_REGS : integer; attribute C_PRELOAD_REGS of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_PRIM_FIFO_TYPE : string; attribute C_PRIM_FIFO_TYPE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is "1kx18"; attribute C_PRIM_FIFO_TYPE_AXIS : string; attribute C_PRIM_FIFO_TYPE_AXIS of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is "1kx18"; attribute C_PRIM_FIFO_TYPE_RACH : string; attribute C_PRIM_FIFO_TYPE_RACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is "512x36"; attribute C_PRIM_FIFO_TYPE_RDCH : string; attribute C_PRIM_FIFO_TYPE_RDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is "1kx36"; attribute C_PRIM_FIFO_TYPE_WACH : string; attribute C_PRIM_FIFO_TYPE_WACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is "512x36"; attribute C_PRIM_FIFO_TYPE_WDCH : string; attribute C_PRIM_FIFO_TYPE_WDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is "1kx36"; attribute C_PRIM_FIFO_TYPE_WRCH : string; attribute C_PRIM_FIFO_TYPE_WRCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is "512x36"; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL : integer; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 4; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_AXIS : integer; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_AXIS of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1022; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_RACH : integer; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_RACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1022; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_RDCH : integer; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_RDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1022; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_WACH : integer; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_WACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1022; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_WDCH : integer; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_WDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1022; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_WRCH : integer; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_WRCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1022; attribute C_PROG_EMPTY_THRESH_NEGATE_VAL : integer; attribute C_PROG_EMPTY_THRESH_NEGATE_VAL of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 5; attribute C_PROG_EMPTY_TYPE : integer; attribute C_PROG_EMPTY_TYPE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_PROG_EMPTY_TYPE_AXIS : integer; attribute C_PROG_EMPTY_TYPE_AXIS of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_PROG_EMPTY_TYPE_RACH : integer; attribute C_PROG_EMPTY_TYPE_RACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_PROG_EMPTY_TYPE_RDCH : integer; attribute C_PROG_EMPTY_TYPE_RDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_PROG_EMPTY_TYPE_WACH : integer; attribute C_PROG_EMPTY_TYPE_WACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_PROG_EMPTY_TYPE_WDCH : integer; attribute C_PROG_EMPTY_TYPE_WDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_PROG_EMPTY_TYPE_WRCH : integer; attribute C_PROG_EMPTY_TYPE_WRCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_PROG_FULL_THRESH_ASSERT_VAL : integer; attribute C_PROG_FULL_THRESH_ASSERT_VAL of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1023; attribute C_PROG_FULL_THRESH_ASSERT_VAL_AXIS : integer; attribute C_PROG_FULL_THRESH_ASSERT_VAL_AXIS of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1023; attribute C_PROG_FULL_THRESH_ASSERT_VAL_RACH : integer; attribute C_PROG_FULL_THRESH_ASSERT_VAL_RACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1023; attribute C_PROG_FULL_THRESH_ASSERT_VAL_RDCH : integer; attribute C_PROG_FULL_THRESH_ASSERT_VAL_RDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1023; attribute C_PROG_FULL_THRESH_ASSERT_VAL_WACH : integer; attribute C_PROG_FULL_THRESH_ASSERT_VAL_WACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1023; attribute C_PROG_FULL_THRESH_ASSERT_VAL_WDCH : integer; attribute C_PROG_FULL_THRESH_ASSERT_VAL_WDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1023; attribute C_PROG_FULL_THRESH_ASSERT_VAL_WRCH : integer; attribute C_PROG_FULL_THRESH_ASSERT_VAL_WRCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1023; attribute C_PROG_FULL_THRESH_NEGATE_VAL : integer; attribute C_PROG_FULL_THRESH_NEGATE_VAL of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1022; attribute C_PROG_FULL_TYPE : integer; attribute C_PROG_FULL_TYPE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_PROG_FULL_TYPE_AXIS : integer; attribute C_PROG_FULL_TYPE_AXIS of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_PROG_FULL_TYPE_RACH : integer; attribute C_PROG_FULL_TYPE_RACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_PROG_FULL_TYPE_RDCH : integer; attribute C_PROG_FULL_TYPE_RDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_PROG_FULL_TYPE_WACH : integer; attribute C_PROG_FULL_TYPE_WACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_PROG_FULL_TYPE_WDCH : integer; attribute C_PROG_FULL_TYPE_WDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_PROG_FULL_TYPE_WRCH : integer; attribute C_PROG_FULL_TYPE_WRCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_RACH_TYPE : integer; attribute C_RACH_TYPE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_RDCH_TYPE : integer; attribute C_RDCH_TYPE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_RD_DATA_COUNT_WIDTH : integer; attribute C_RD_DATA_COUNT_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 11; attribute C_RD_DEPTH : integer; attribute C_RD_DEPTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1024; attribute C_RD_FREQ : integer; attribute C_RD_FREQ of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_RD_PNTR_WIDTH : integer; attribute C_RD_PNTR_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 10; attribute C_REG_SLICE_MODE_AXIS : integer; attribute C_REG_SLICE_MODE_AXIS of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_REG_SLICE_MODE_RACH : integer; attribute C_REG_SLICE_MODE_RACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_REG_SLICE_MODE_RDCH : integer; attribute C_REG_SLICE_MODE_RDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_REG_SLICE_MODE_WACH : integer; attribute C_REG_SLICE_MODE_WACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_REG_SLICE_MODE_WDCH : integer; attribute C_REG_SLICE_MODE_WDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_REG_SLICE_MODE_WRCH : integer; attribute C_REG_SLICE_MODE_WRCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_SYNCHRONIZER_STAGE : integer; attribute C_SYNCHRONIZER_STAGE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 2; attribute C_UNDERFLOW_LOW : integer; attribute C_UNDERFLOW_LOW of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_USE_COMMON_OVERFLOW : integer; attribute C_USE_COMMON_OVERFLOW of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_USE_COMMON_UNDERFLOW : integer; attribute C_USE_COMMON_UNDERFLOW of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_USE_DEFAULT_SETTINGS : integer; attribute C_USE_DEFAULT_SETTINGS of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_USE_DOUT_RST : integer; attribute C_USE_DOUT_RST of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_USE_ECC : integer; attribute C_USE_ECC of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_USE_ECC_AXIS : integer; attribute C_USE_ECC_AXIS of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_USE_ECC_RACH : integer; attribute C_USE_ECC_RACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_USE_ECC_RDCH : integer; attribute C_USE_ECC_RDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_USE_ECC_WACH : integer; attribute C_USE_ECC_WACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_USE_ECC_WDCH : integer; attribute C_USE_ECC_WDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_USE_ECC_WRCH : integer; attribute C_USE_ECC_WRCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_USE_EMBEDDED_REG : integer; attribute C_USE_EMBEDDED_REG of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_USE_FIFO16_FLAGS : integer; attribute C_USE_FIFO16_FLAGS of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_USE_FWFT_DATA_COUNT : integer; attribute C_USE_FWFT_DATA_COUNT of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_USE_PIPELINE_REG : integer; attribute C_USE_PIPELINE_REG of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_VALID_LOW : integer; attribute C_VALID_LOW of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_WACH_TYPE : integer; attribute C_WACH_TYPE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_WDCH_TYPE : integer; attribute C_WDCH_TYPE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_WRCH_TYPE : integer; attribute C_WRCH_TYPE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_WR_ACK_LOW : integer; attribute C_WR_ACK_LOW of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_WR_DATA_COUNT_WIDTH : integer; attribute C_WR_DATA_COUNT_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 11; attribute C_WR_DEPTH : integer; attribute C_WR_DEPTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1024; attribute C_WR_DEPTH_AXIS : integer; attribute C_WR_DEPTH_AXIS of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1024; attribute C_WR_DEPTH_RACH : integer; attribute C_WR_DEPTH_RACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 16; attribute C_WR_DEPTH_RDCH : integer; attribute C_WR_DEPTH_RDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1024; attribute C_WR_DEPTH_WACH : integer; attribute C_WR_DEPTH_WACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 16; attribute C_WR_DEPTH_WDCH : integer; attribute C_WR_DEPTH_WDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1024; attribute C_WR_DEPTH_WRCH : integer; attribute C_WR_DEPTH_WRCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 16; attribute C_WR_FREQ : integer; attribute C_WR_FREQ of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_WR_PNTR_WIDTH : integer; attribute C_WR_PNTR_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 10; attribute C_WR_PNTR_WIDTH_AXIS : integer; attribute C_WR_PNTR_WIDTH_AXIS of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 10; attribute C_WR_PNTR_WIDTH_RACH : integer; attribute C_WR_PNTR_WIDTH_RACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 4; attribute C_WR_PNTR_WIDTH_RDCH : integer; attribute C_WR_PNTR_WIDTH_RDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 10; attribute C_WR_PNTR_WIDTH_WACH : integer; attribute C_WR_PNTR_WIDTH_WACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 4; attribute C_WR_PNTR_WIDTH_WDCH : integer; attribute C_WR_PNTR_WIDTH_WDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 10; attribute C_WR_PNTR_WIDTH_WRCH : integer; attribute C_WR_PNTR_WIDTH_WRCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 4; attribute C_WR_RESPONSE_LATENCY : integer; attribute C_WR_RESPONSE_LATENCY of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is "fifo_generator_v13_0_0"; end scfifo_5in_5out_5kb_fifo_generator_v13_0_0; architecture STRUCTURE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 is signal \<const0>\ : STD_LOGIC; signal \<const1>\ : STD_LOGIC; begin almost_empty <= \<const0>\; almost_full <= \<const0>\; axi_ar_data_count(4) <= \<const0>\; axi_ar_data_count(3) <= \<const0>\; axi_ar_data_count(2) <= \<const0>\; axi_ar_data_count(1) <= \<const0>\; axi_ar_data_count(0) <= \<const0>\; axi_ar_dbiterr <= \<const0>\; axi_ar_overflow <= \<const0>\; axi_ar_prog_empty <= \<const1>\; axi_ar_prog_full <= \<const0>\; axi_ar_rd_data_count(4) <= \<const0>\; axi_ar_rd_data_count(3) <= \<const0>\; axi_ar_rd_data_count(2) <= \<const0>\; axi_ar_rd_data_count(1) <= \<const0>\; axi_ar_rd_data_count(0) <= \<const0>\; axi_ar_sbiterr <= \<const0>\; axi_ar_underflow <= \<const0>\; axi_ar_wr_data_count(4) <= \<const0>\; axi_ar_wr_data_count(3) <= \<const0>\; axi_ar_wr_data_count(2) <= \<const0>\; axi_ar_wr_data_count(1) <= \<const0>\; axi_ar_wr_data_count(0) <= \<const0>\; axi_aw_data_count(4) <= \<const0>\; axi_aw_data_count(3) <= \<const0>\; axi_aw_data_count(2) <= \<const0>\; axi_aw_data_count(1) <= \<const0>\; axi_aw_data_count(0) <= \<const0>\; axi_aw_dbiterr <= \<const0>\; axi_aw_overflow <= \<const0>\; axi_aw_prog_empty <= \<const1>\; axi_aw_prog_full <= \<const0>\; axi_aw_rd_data_count(4) <= \<const0>\; axi_aw_rd_data_count(3) <= \<const0>\; axi_aw_rd_data_count(2) <= \<const0>\; axi_aw_rd_data_count(1) <= \<const0>\; axi_aw_rd_data_count(0) <= \<const0>\; axi_aw_sbiterr <= \<const0>\; axi_aw_underflow <= \<const0>\; axi_aw_wr_data_count(4) <= \<const0>\; axi_aw_wr_data_count(3) <= \<const0>\; axi_aw_wr_data_count(2) <= \<const0>\; axi_aw_wr_data_count(1) <= \<const0>\; axi_aw_wr_data_count(0) <= \<const0>\; axi_b_data_count(4) <= \<const0>\; axi_b_data_count(3) <= \<const0>\; axi_b_data_count(2) <= \<const0>\; axi_b_data_count(1) <= \<const0>\; axi_b_data_count(0) <= \<const0>\; axi_b_dbiterr <= \<const0>\; axi_b_overflow <= \<const0>\; axi_b_prog_empty <= \<const1>\; axi_b_prog_full <= \<const0>\; axi_b_rd_data_count(4) <= \<const0>\; axi_b_rd_data_count(3) <= \<const0>\; axi_b_rd_data_count(2) <= \<const0>\; axi_b_rd_data_count(1) <= \<const0>\; axi_b_rd_data_count(0) <= \<const0>\; axi_b_sbiterr <= \<const0>\; axi_b_underflow <= \<const0>\; axi_b_wr_data_count(4) <= \<const0>\; axi_b_wr_data_count(3) <= \<const0>\; axi_b_wr_data_count(2) <= \<const0>\; axi_b_wr_data_count(1) <= \<const0>\; axi_b_wr_data_count(0) <= \<const0>\; axi_r_data_count(10) <= \<const0>\; axi_r_data_count(9) <= \<const0>\; axi_r_data_count(8) <= \<const0>\; axi_r_data_count(7) <= \<const0>\; axi_r_data_count(6) <= \<const0>\; axi_r_data_count(5) <= \<const0>\; axi_r_data_count(4) <= \<const0>\; axi_r_data_count(3) <= \<const0>\; axi_r_data_count(2) <= \<const0>\; axi_r_data_count(1) <= \<const0>\; axi_r_data_count(0) <= \<const0>\; axi_r_dbiterr <= \<const0>\; axi_r_overflow <= \<const0>\; axi_r_prog_empty <= \<const1>\; axi_r_prog_full <= \<const0>\; axi_r_rd_data_count(10) <= \<const0>\; axi_r_rd_data_count(9) <= \<const0>\; axi_r_rd_data_count(8) <= \<const0>\; axi_r_rd_data_count(7) <= \<const0>\; axi_r_rd_data_count(6) <= \<const0>\; axi_r_rd_data_count(5) <= \<const0>\; axi_r_rd_data_count(4) <= \<const0>\; axi_r_rd_data_count(3) <= \<const0>\; axi_r_rd_data_count(2) <= \<const0>\; axi_r_rd_data_count(1) <= \<const0>\; axi_r_rd_data_count(0) <= \<const0>\; axi_r_sbiterr <= \<const0>\; axi_r_underflow <= \<const0>\; axi_r_wr_data_count(10) <= \<const0>\; axi_r_wr_data_count(9) <= \<const0>\; axi_r_wr_data_count(8) <= \<const0>\; axi_r_wr_data_count(7) <= \<const0>\; axi_r_wr_data_count(6) <= \<const0>\; axi_r_wr_data_count(5) <= \<const0>\; axi_r_wr_data_count(4) <= \<const0>\; axi_r_wr_data_count(3) <= \<const0>\; axi_r_wr_data_count(2) <= \<const0>\; axi_r_wr_data_count(1) <= \<const0>\; axi_r_wr_data_count(0) <= \<const0>\; axi_w_data_count(10) <= \<const0>\; axi_w_data_count(9) <= \<const0>\; axi_w_data_count(8) <= \<const0>\; axi_w_data_count(7) <= \<const0>\; axi_w_data_count(6) <= \<const0>\; axi_w_data_count(5) <= \<const0>\; axi_w_data_count(4) <= \<const0>\; axi_w_data_count(3) <= \<const0>\; axi_w_data_count(2) <= \<const0>\; axi_w_data_count(1) <= \<const0>\; axi_w_data_count(0) <= \<const0>\; axi_w_dbiterr <= \<const0>\; axi_w_overflow <= \<const0>\; axi_w_prog_empty <= \<const1>\; axi_w_prog_full <= \<const0>\; axi_w_rd_data_count(10) <= \<const0>\; axi_w_rd_data_count(9) <= \<const0>\; axi_w_rd_data_count(8) <= \<const0>\; axi_w_rd_data_count(7) <= \<const0>\; axi_w_rd_data_count(6) <= \<const0>\; axi_w_rd_data_count(5) <= \<const0>\; axi_w_rd_data_count(4) <= \<const0>\; axi_w_rd_data_count(3) <= \<const0>\; axi_w_rd_data_count(2) <= \<const0>\; axi_w_rd_data_count(1) <= \<const0>\; axi_w_rd_data_count(0) <= \<const0>\; axi_w_sbiterr <= \<const0>\; axi_w_underflow <= \<const0>\; axi_w_wr_data_count(10) <= \<const0>\; axi_w_wr_data_count(9) <= \<const0>\; axi_w_wr_data_count(8) <= \<const0>\; axi_w_wr_data_count(7) <= \<const0>\; axi_w_wr_data_count(6) <= \<const0>\; axi_w_wr_data_count(5) <= \<const0>\; axi_w_wr_data_count(4) <= \<const0>\; axi_w_wr_data_count(3) <= \<const0>\; axi_w_wr_data_count(2) <= \<const0>\; axi_w_wr_data_count(1) <= \<const0>\; axi_w_wr_data_count(0) <= \<const0>\; axis_data_count(10) <= \<const0>\; axis_data_count(9) <= \<const0>\; axis_data_count(8) <= \<const0>\; axis_data_count(7) <= \<const0>\; axis_data_count(6) <= \<const0>\; axis_data_count(5) <= \<const0>\; axis_data_count(4) <= \<const0>\; axis_data_count(3) <= \<const0>\; axis_data_count(2) <= \<const0>\; axis_data_count(1) <= \<const0>\; axis_data_count(0) <= \<const0>\; axis_dbiterr <= \<const0>\; axis_overflow <= \<const0>\; axis_prog_empty <= \<const1>\; axis_prog_full <= \<const0>\; axis_rd_data_count(10) <= \<const0>\; axis_rd_data_count(9) <= \<const0>\; axis_rd_data_count(8) <= \<const0>\; axis_rd_data_count(7) <= \<const0>\; axis_rd_data_count(6) <= \<const0>\; axis_rd_data_count(5) <= \<const0>\; axis_rd_data_count(4) <= \<const0>\; axis_rd_data_count(3) <= \<const0>\; axis_rd_data_count(2) <= \<const0>\; axis_rd_data_count(1) <= \<const0>\; axis_rd_data_count(0) <= \<const0>\; axis_sbiterr <= \<const0>\; axis_underflow <= \<const0>\; axis_wr_data_count(10) <= \<const0>\; axis_wr_data_count(9) <= \<const0>\; axis_wr_data_count(8) <= \<const0>\; axis_wr_data_count(7) <= \<const0>\; axis_wr_data_count(6) <= \<const0>\; axis_wr_data_count(5) <= \<const0>\; axis_wr_data_count(4) <= \<const0>\; axis_wr_data_count(3) <= \<const0>\; axis_wr_data_count(2) <= \<const0>\; axis_wr_data_count(1) <= \<const0>\; axis_wr_data_count(0) <= \<const0>\; data_count(10) <= \<const0>\; data_count(9) <= \<const0>\; data_count(8) <= \<const0>\; data_count(7) <= \<const0>\; data_count(6) <= \<const0>\; data_count(5) <= \<const0>\; data_count(4) <= \<const0>\; data_count(3) <= \<const0>\; data_count(2) <= \<const0>\; data_count(1) <= \<const0>\; data_count(0) <= \<const0>\; dbiterr <= \<const0>\; m_axi_araddr(31) <= \<const0>\; m_axi_araddr(30) <= \<const0>\; m_axi_araddr(29) <= \<const0>\; m_axi_araddr(28) <= \<const0>\; m_axi_araddr(27) <= \<const0>\; m_axi_araddr(26) <= \<const0>\; m_axi_araddr(25) <= \<const0>\; m_axi_araddr(24) <= \<const0>\; m_axi_araddr(23) <= \<const0>\; m_axi_araddr(22) <= \<const0>\; m_axi_araddr(21) <= \<const0>\; m_axi_araddr(20) <= \<const0>\; m_axi_araddr(19) <= \<const0>\; m_axi_araddr(18) <= \<const0>\; m_axi_araddr(17) <= \<const0>\; m_axi_araddr(16) <= \<const0>\; m_axi_araddr(15) <= \<const0>\; m_axi_araddr(14) <= \<const0>\; m_axi_araddr(13) <= \<const0>\; m_axi_araddr(12) <= \<const0>\; m_axi_araddr(11) <= \<const0>\; m_axi_araddr(10) <= \<const0>\; m_axi_araddr(9) <= \<const0>\; m_axi_araddr(8) <= \<const0>\; m_axi_araddr(7) <= \<const0>\; m_axi_araddr(6) <= \<const0>\; m_axi_araddr(5) <= \<const0>\; m_axi_araddr(4) <= \<const0>\; m_axi_araddr(3) <= \<const0>\; m_axi_araddr(2) <= \<const0>\; m_axi_araddr(1) <= \<const0>\; m_axi_araddr(0) <= \<const0>\; m_axi_arburst(1) <= \<const0>\; m_axi_arburst(0) <= \<const0>\; m_axi_arcache(3) <= \<const0>\; m_axi_arcache(2) <= \<const0>\; m_axi_arcache(1) <= \<const0>\; m_axi_arcache(0) <= \<const0>\; m_axi_arid(0) <= \<const0>\; m_axi_arlen(7) <= \<const0>\; m_axi_arlen(6) <= \<const0>\; m_axi_arlen(5) <= \<const0>\; m_axi_arlen(4) <= \<const0>\; m_axi_arlen(3) <= \<const0>\; m_axi_arlen(2) <= \<const0>\; m_axi_arlen(1) <= \<const0>\; m_axi_arlen(0) <= \<const0>\; m_axi_arlock(0) <= \<const0>\; m_axi_arprot(2) <= \<const0>\; m_axi_arprot(1) <= \<const0>\; m_axi_arprot(0) <= \<const0>\; m_axi_arqos(3) <= \<const0>\; m_axi_arqos(2) <= \<const0>\; m_axi_arqos(1) <= \<const0>\; m_axi_arqos(0) <= \<const0>\; m_axi_arregion(3) <= \<const0>\; m_axi_arregion(2) <= \<const0>\; m_axi_arregion(1) <= \<const0>\; m_axi_arregion(0) <= \<const0>\; m_axi_arsize(2) <= \<const0>\; m_axi_arsize(1) <= \<const0>\; m_axi_arsize(0) <= \<const0>\; m_axi_aruser(0) <= \<const0>\; m_axi_arvalid <= \<const0>\; m_axi_awaddr(31) <= \<const0>\; m_axi_awaddr(30) <= \<const0>\; m_axi_awaddr(29) <= \<const0>\; m_axi_awaddr(28) <= \<const0>\; m_axi_awaddr(27) <= \<const0>\; m_axi_awaddr(26) <= \<const0>\; m_axi_awaddr(25) <= \<const0>\; m_axi_awaddr(24) <= \<const0>\; m_axi_awaddr(23) <= \<const0>\; m_axi_awaddr(22) <= \<const0>\; m_axi_awaddr(21) <= \<const0>\; m_axi_awaddr(20) <= \<const0>\; m_axi_awaddr(19) <= \<const0>\; m_axi_awaddr(18) <= \<const0>\; m_axi_awaddr(17) <= \<const0>\; m_axi_awaddr(16) <= \<const0>\; m_axi_awaddr(15) <= \<const0>\; m_axi_awaddr(14) <= \<const0>\; m_axi_awaddr(13) <= \<const0>\; m_axi_awaddr(12) <= \<const0>\; m_axi_awaddr(11) <= \<const0>\; m_axi_awaddr(10) <= \<const0>\; m_axi_awaddr(9) <= \<const0>\; m_axi_awaddr(8) <= \<const0>\; m_axi_awaddr(7) <= \<const0>\; m_axi_awaddr(6) <= \<const0>\; m_axi_awaddr(5) <= \<const0>\; m_axi_awaddr(4) <= \<const0>\; m_axi_awaddr(3) <= \<const0>\; m_axi_awaddr(2) <= \<const0>\; m_axi_awaddr(1) <= \<const0>\; m_axi_awaddr(0) <= \<const0>\; m_axi_awburst(1) <= \<const0>\; m_axi_awburst(0) <= \<const0>\; m_axi_awcache(3) <= \<const0>\; m_axi_awcache(2) <= \<const0>\; m_axi_awcache(1) <= \<const0>\; m_axi_awcache(0) <= \<const0>\; m_axi_awid(0) <= \<const0>\; m_axi_awlen(7) <= \<const0>\; m_axi_awlen(6) <= \<const0>\; m_axi_awlen(5) <= \<const0>\; m_axi_awlen(4) <= \<const0>\; m_axi_awlen(3) <= \<const0>\; m_axi_awlen(2) <= \<const0>\; m_axi_awlen(1) <= \<const0>\; m_axi_awlen(0) <= \<const0>\; m_axi_awlock(0) <= \<const0>\; m_axi_awprot(2) <= \<const0>\; m_axi_awprot(1) <= \<const0>\; m_axi_awprot(0) <= \<const0>\; m_axi_awqos(3) <= \<const0>\; m_axi_awqos(2) <= \<const0>\; m_axi_awqos(1) <= \<const0>\; m_axi_awqos(0) <= \<const0>\; m_axi_awregion(3) <= \<const0>\; m_axi_awregion(2) <= \<const0>\; m_axi_awregion(1) <= \<const0>\; m_axi_awregion(0) <= \<const0>\; m_axi_awsize(2) <= \<const0>\; m_axi_awsize(1) <= \<const0>\; m_axi_awsize(0) <= \<const0>\; m_axi_awuser(0) <= \<const0>\; m_axi_awvalid <= \<const0>\; m_axi_bready <= \<const0>\; m_axi_rready <= \<const0>\; m_axi_wdata(63) <= \<const0>\; m_axi_wdata(62) <= \<const0>\; m_axi_wdata(61) <= \<const0>\; m_axi_wdata(60) <= \<const0>\; m_axi_wdata(59) <= \<const0>\; m_axi_wdata(58) <= \<const0>\; m_axi_wdata(57) <= \<const0>\; m_axi_wdata(56) <= \<const0>\; m_axi_wdata(55) <= \<const0>\; m_axi_wdata(54) <= \<const0>\; m_axi_wdata(53) <= \<const0>\; m_axi_wdata(52) <= \<const0>\; m_axi_wdata(51) <= \<const0>\; m_axi_wdata(50) <= \<const0>\; m_axi_wdata(49) <= \<const0>\; m_axi_wdata(48) <= \<const0>\; m_axi_wdata(47) <= \<const0>\; m_axi_wdata(46) <= \<const0>\; m_axi_wdata(45) <= \<const0>\; m_axi_wdata(44) <= \<const0>\; m_axi_wdata(43) <= \<const0>\; m_axi_wdata(42) <= \<const0>\; m_axi_wdata(41) <= \<const0>\; m_axi_wdata(40) <= \<const0>\; m_axi_wdata(39) <= \<const0>\; m_axi_wdata(38) <= \<const0>\; m_axi_wdata(37) <= \<const0>\; m_axi_wdata(36) <= \<const0>\; m_axi_wdata(35) <= \<const0>\; m_axi_wdata(34) <= \<const0>\; m_axi_wdata(33) <= \<const0>\; m_axi_wdata(32) <= \<const0>\; m_axi_wdata(31) <= \<const0>\; m_axi_wdata(30) <= \<const0>\; m_axi_wdata(29) <= \<const0>\; m_axi_wdata(28) <= \<const0>\; m_axi_wdata(27) <= \<const0>\; m_axi_wdata(26) <= \<const0>\; m_axi_wdata(25) <= \<const0>\; m_axi_wdata(24) <= \<const0>\; m_axi_wdata(23) <= \<const0>\; m_axi_wdata(22) <= \<const0>\; m_axi_wdata(21) <= \<const0>\; m_axi_wdata(20) <= \<const0>\; m_axi_wdata(19) <= \<const0>\; m_axi_wdata(18) <= \<const0>\; m_axi_wdata(17) <= \<const0>\; m_axi_wdata(16) <= \<const0>\; m_axi_wdata(15) <= \<const0>\; m_axi_wdata(14) <= \<const0>\; m_axi_wdata(13) <= \<const0>\; m_axi_wdata(12) <= \<const0>\; m_axi_wdata(11) <= \<const0>\; m_axi_wdata(10) <= \<const0>\; m_axi_wdata(9) <= \<const0>\; m_axi_wdata(8) <= \<const0>\; m_axi_wdata(7) <= \<const0>\; m_axi_wdata(6) <= \<const0>\; m_axi_wdata(5) <= \<const0>\; m_axi_wdata(4) <= \<const0>\; m_axi_wdata(3) <= \<const0>\; m_axi_wdata(2) <= \<const0>\; m_axi_wdata(1) <= \<const0>\; m_axi_wdata(0) <= \<const0>\; m_axi_wid(0) <= \<const0>\; m_axi_wlast <= \<const0>\; m_axi_wstrb(7) <= \<const0>\; m_axi_wstrb(6) <= \<const0>\; m_axi_wstrb(5) <= \<const0>\; m_axi_wstrb(4) <= \<const0>\; m_axi_wstrb(3) <= \<const0>\; m_axi_wstrb(2) <= \<const0>\; m_axi_wstrb(1) <= \<const0>\; m_axi_wstrb(0) <= \<const0>\; m_axi_wuser(0) <= \<const0>\; m_axi_wvalid <= \<const0>\; m_axis_tdata(7) <= \<const0>\; m_axis_tdata(6) <= \<const0>\; m_axis_tdata(5) <= \<const0>\; m_axis_tdata(4) <= \<const0>\; m_axis_tdata(3) <= \<const0>\; m_axis_tdata(2) <= \<const0>\; m_axis_tdata(1) <= \<const0>\; m_axis_tdata(0) <= \<const0>\; m_axis_tdest(0) <= \<const0>\; m_axis_tid(0) <= \<const0>\; m_axis_tkeep(0) <= \<const0>\; m_axis_tlast <= \<const0>\; m_axis_tstrb(0) <= \<const0>\; m_axis_tuser(3) <= \<const0>\; m_axis_tuser(2) <= \<const0>\; m_axis_tuser(1) <= \<const0>\; m_axis_tuser(0) <= \<const0>\; m_axis_tvalid <= \<const0>\; overflow <= \<const0>\; prog_empty <= \<const0>\; prog_full <= \<const0>\; rd_data_count(10) <= \<const0>\; rd_data_count(9) <= \<const0>\; rd_data_count(8) <= \<const0>\; rd_data_count(7) <= \<const0>\; rd_data_count(6) <= \<const0>\; rd_data_count(5) <= \<const0>\; rd_data_count(4) <= \<const0>\; rd_data_count(3) <= \<const0>\; rd_data_count(2) <= \<const0>\; rd_data_count(1) <= \<const0>\; rd_data_count(0) <= \<const0>\; rd_rst_busy <= \<const0>\; s_axi_arready <= \<const0>\; s_axi_awready <= \<const0>\; s_axi_bid(0) <= \<const0>\; s_axi_bresp(1) <= \<const0>\; s_axi_bresp(0) <= \<const0>\; s_axi_buser(0) <= \<const0>\; s_axi_bvalid <= \<const0>\; s_axi_rdata(63) <= \<const0>\; s_axi_rdata(62) <= \<const0>\; s_axi_rdata(61) <= \<const0>\; s_axi_rdata(60) <= \<const0>\; s_axi_rdata(59) <= \<const0>\; s_axi_rdata(58) <= \<const0>\; s_axi_rdata(57) <= \<const0>\; s_axi_rdata(56) <= \<const0>\; s_axi_rdata(55) <= \<const0>\; s_axi_rdata(54) <= \<const0>\; s_axi_rdata(53) <= \<const0>\; s_axi_rdata(52) <= \<const0>\; s_axi_rdata(51) <= \<const0>\; s_axi_rdata(50) <= \<const0>\; s_axi_rdata(49) <= \<const0>\; s_axi_rdata(48) <= \<const0>\; s_axi_rdata(47) <= \<const0>\; s_axi_rdata(46) <= \<const0>\; s_axi_rdata(45) <= \<const0>\; s_axi_rdata(44) <= \<const0>\; s_axi_rdata(43) <= \<const0>\; s_axi_rdata(42) <= \<const0>\; s_axi_rdata(41) <= \<const0>\; s_axi_rdata(40) <= \<const0>\; s_axi_rdata(39) <= \<const0>\; s_axi_rdata(38) <= \<const0>\; s_axi_rdata(37) <= \<const0>\; s_axi_rdata(36) <= \<const0>\; s_axi_rdata(35) <= \<const0>\; s_axi_rdata(34) <= \<const0>\; s_axi_rdata(33) <= \<const0>\; s_axi_rdata(32) <= \<const0>\; s_axi_rdata(31) <= \<const0>\; s_axi_rdata(30) <= \<const0>\; s_axi_rdata(29) <= \<const0>\; s_axi_rdata(28) <= \<const0>\; s_axi_rdata(27) <= \<const0>\; s_axi_rdata(26) <= \<const0>\; s_axi_rdata(25) <= \<const0>\; s_axi_rdata(24) <= \<const0>\; s_axi_rdata(23) <= \<const0>\; s_axi_rdata(22) <= \<const0>\; s_axi_rdata(21) <= \<const0>\; s_axi_rdata(20) <= \<const0>\; s_axi_rdata(19) <= \<const0>\; s_axi_rdata(18) <= \<const0>\; s_axi_rdata(17) <= \<const0>\; s_axi_rdata(16) <= \<const0>\; s_axi_rdata(15) <= \<const0>\; s_axi_rdata(14) <= \<const0>\; s_axi_rdata(13) <= \<const0>\; s_axi_rdata(12) <= \<const0>\; s_axi_rdata(11) <= \<const0>\; s_axi_rdata(10) <= \<const0>\; s_axi_rdata(9) <= \<const0>\; s_axi_rdata(8) <= \<const0>\; s_axi_rdata(7) <= \<const0>\; s_axi_rdata(6) <= \<const0>\; s_axi_rdata(5) <= \<const0>\; s_axi_rdata(4) <= \<const0>\; s_axi_rdata(3) <= \<const0>\; s_axi_rdata(2) <= \<const0>\; s_axi_rdata(1) <= \<const0>\; s_axi_rdata(0) <= \<const0>\; s_axi_rid(0) <= \<const0>\; s_axi_rlast <= \<const0>\; s_axi_rresp(1) <= \<const0>\; s_axi_rresp(0) <= \<const0>\; s_axi_ruser(0) <= \<const0>\; s_axi_rvalid <= \<const0>\; s_axi_wready <= \<const0>\; s_axis_tready <= \<const0>\; sbiterr <= \<const0>\; underflow <= \<const0>\; valid <= \<const0>\; wr_ack <= \<const0>\; wr_data_count(10) <= \<const0>\; wr_data_count(9) <= \<const0>\; wr_data_count(8) <= \<const0>\; wr_data_count(7) <= \<const0>\; wr_data_count(6) <= \<const0>\; wr_data_count(5) <= \<const0>\; wr_data_count(4) <= \<const0>\; wr_data_count(3) <= \<const0>\; wr_data_count(2) <= \<const0>\; wr_data_count(1) <= \<const0>\; wr_data_count(0) <= \<const0>\; wr_rst_busy <= \<const0>\; GND: unisim.vcomponents.GND port map ( G => \<const0>\ ); VCC: unisim.vcomponents.VCC port map ( P => \<const1>\ ); inst_fifo_gen: entity work.scfifo_5in_5out_5kb_fifo_generator_v13_0_0_synth port map ( clk => clk, din(4 downto 0) => din(4 downto 0), dout(4 downto 0) => dout(4 downto 0), empty => empty, full => full, rd_en => rd_en, rst => rst, s_aclk => s_aclk, s_aresetn => s_aresetn, wr_en => wr_en ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb is port ( clk : in STD_LOGIC; rst : in STD_LOGIC; din : in STD_LOGIC_VECTOR ( 4 downto 0 ); wr_en : in STD_LOGIC; rd_en : in STD_LOGIC; dout : out STD_LOGIC_VECTOR ( 4 downto 0 ); full : out STD_LOGIC; empty : out STD_LOGIC ); attribute NotValidForBitStream : boolean; attribute NotValidForBitStream of scfifo_5in_5out_5kb : entity is true; attribute CHECK_LICENSE_TYPE : string; attribute CHECK_LICENSE_TYPE of scfifo_5in_5out_5kb : entity is "scfifo_5in_5out_5kb,fifo_generator_v13_0_0,{}"; attribute core_generation_info : string; attribute core_generation_info of scfifo_5in_5out_5kb : entity is "scfifo_5in_5out_5kb,fifo_generator_v13_0_0,{x_ipProduct=Vivado 2015.3,x_ipVendor=xilinx.com,x_ipLibrary=ip,x_ipName=fifo_generator,x_ipVersion=13.0,x_ipCoreRevision=0,x_ipLanguage=VERILOG,x_ipSimLanguage=MIXED,C_COMMON_CLOCK=1,C_COUNT_TYPE=0,C_DATA_COUNT_WIDTH=11,C_DEFAULT_VALUE=BlankString,C_DIN_WIDTH=5,C_DOUT_RST_VAL=0,C_DOUT_WIDTH=5,C_ENABLE_RLOCS=0,C_FAMILY=artix7,C_FULL_FLAGS_RST_VAL=1,C_HAS_ALMOST_EMPTY=0,C_HAS_ALMOST_FULL=0,C_HAS_BACKUP=0,C_HAS_DATA_COUNT=0,C_HAS_INT_CLK=0,C_HAS_MEMINIT_FILE=0,C_HAS_OVERFLOW=0,C_HAS_RD_DATA_COUNT=0,C_HAS_RD_RST=0,C_HAS_RST=1,C_HAS_SRST=0,C_HAS_UNDERFLOW=0,C_HAS_VALID=0,C_HAS_WR_ACK=0,C_HAS_WR_DATA_COUNT=0,C_HAS_WR_RST=0,C_IMPLEMENTATION_TYPE=0,C_INIT_WR_PNTR_VAL=0,C_MEMORY_TYPE=1,C_MIF_FILE_NAME=BlankString,C_OPTIMIZATION_MODE=0,C_OVERFLOW_LOW=0,C_PRELOAD_LATENCY=0,C_PRELOAD_REGS=1,C_PRIM_FIFO_TYPE=1kx18,C_PROG_EMPTY_THRESH_ASSERT_VAL=4,C_PROG_EMPTY_THRESH_NEGATE_VAL=5,C_PROG_EMPTY_TYPE=0,C_PROG_FULL_THRESH_ASSERT_VAL=1023,C_PROG_FULL_THRESH_NEGATE_VAL=1022,C_PROG_FULL_TYPE=0,C_RD_DATA_COUNT_WIDTH=11,C_RD_DEPTH=1024,C_RD_FREQ=1,C_RD_PNTR_WIDTH=10,C_UNDERFLOW_LOW=0,C_USE_DOUT_RST=1,C_USE_ECC=0,C_USE_EMBEDDED_REG=0,C_USE_PIPELINE_REG=0,C_POWER_SAVING_MODE=0,C_USE_FIFO16_FLAGS=0,C_USE_FWFT_DATA_COUNT=1,C_VALID_LOW=0,C_WR_ACK_LOW=0,C_WR_DATA_COUNT_WIDTH=11,C_WR_DEPTH=1024,C_WR_FREQ=1,C_WR_PNTR_WIDTH=10,C_WR_RESPONSE_LATENCY=1,C_MSGON_VAL=1,C_ENABLE_RST_SYNC=1,C_EN_SAFETY_CKT=0,C_ERROR_INJECTION_TYPE=0,C_SYNCHRONIZER_STAGE=2,C_INTERFACE_TYPE=0,C_AXI_TYPE=1,C_HAS_AXI_WR_CHANNEL=1,C_HAS_AXI_RD_CHANNEL=1,C_HAS_SLAVE_CE=0,C_HAS_MASTER_CE=0,C_ADD_NGC_CONSTRAINT=0,C_USE_COMMON_OVERFLOW=0,C_USE_COMMON_UNDERFLOW=0,C_USE_DEFAULT_SETTINGS=0,C_AXI_ID_WIDTH=1,C_AXI_ADDR_WIDTH=32,C_AXI_DATA_WIDTH=64,C_AXI_LEN_WIDTH=8,C_AXI_LOCK_WIDTH=1,C_HAS_AXI_ID=0,C_HAS_AXI_AWUSER=0,C_HAS_AXI_WUSER=0,C_HAS_AXI_BUSER=0,C_HAS_AXI_ARUSER=0,C_HAS_AXI_RUSER=0,C_AXI_ARUSER_WIDTH=1,C_AXI_AWUSER_WIDTH=1,C_AXI_WUSER_WIDTH=1,C_AXI_BUSER_WIDTH=1,C_AXI_RUSER_WIDTH=1,C_HAS_AXIS_TDATA=1,C_HAS_AXIS_TID=0,C_HAS_AXIS_TDEST=0,C_HAS_AXIS_TUSER=1,C_HAS_AXIS_TREADY=1,C_HAS_AXIS_TLAST=0,C_HAS_AXIS_TSTRB=0,C_HAS_AXIS_TKEEP=0,C_AXIS_TDATA_WIDTH=8,C_AXIS_TID_WIDTH=1,C_AXIS_TDEST_WIDTH=1,C_AXIS_TUSER_WIDTH=4,C_AXIS_TSTRB_WIDTH=1,C_AXIS_TKEEP_WIDTH=1,C_WACH_TYPE=0,C_WDCH_TYPE=0,C_WRCH_TYPE=0,C_RACH_TYPE=0,C_RDCH_TYPE=0,C_AXIS_TYPE=0,C_IMPLEMENTATION_TYPE_WACH=1,C_IMPLEMENTATION_TYPE_WDCH=1,C_IMPLEMENTATION_TYPE_WRCH=1,C_IMPLEMENTATION_TYPE_RACH=1,C_IMPLEMENTATION_TYPE_RDCH=1,C_IMPLEMENTATION_TYPE_AXIS=1,C_APPLICATION_TYPE_WACH=0,C_APPLICATION_TYPE_WDCH=0,C_APPLICATION_TYPE_WRCH=0,C_APPLICATION_TYPE_RACH=0,C_APPLICATION_TYPE_RDCH=0,C_APPLICATION_TYPE_AXIS=0,C_PRIM_FIFO_TYPE_WACH=512x36,C_PRIM_FIFO_TYPE_WDCH=1kx36,C_PRIM_FIFO_TYPE_WRCH=512x36,C_PRIM_FIFO_TYPE_RACH=512x36,C_PRIM_FIFO_TYPE_RDCH=1kx36,C_PRIM_FIFO_TYPE_AXIS=1kx18,C_USE_ECC_WACH=0,C_USE_ECC_WDCH=0,C_USE_ECC_WRCH=0,C_USE_ECC_RACH=0,C_USE_ECC_RDCH=0,C_USE_ECC_AXIS=0,C_ERROR_INJECTION_TYPE_WACH=0,C_ERROR_INJECTION_TYPE_WDCH=0,C_ERROR_INJECTION_TYPE_WRCH=0,C_ERROR_INJECTION_TYPE_RACH=0,C_ERROR_INJECTION_TYPE_RDCH=0,C_ERROR_INJECTION_TYPE_AXIS=0,C_DIN_WIDTH_WACH=32,C_DIN_WIDTH_WDCH=64,C_DIN_WIDTH_WRCH=2,C_DIN_WIDTH_RACH=32,C_DIN_WIDTH_RDCH=64,C_DIN_WIDTH_AXIS=1,C_WR_DEPTH_WACH=16,C_WR_DEPTH_WDCH=1024,C_WR_DEPTH_WRCH=16,C_WR_DEPTH_RACH=16,C_WR_DEPTH_RDCH=1024,C_WR_DEPTH_AXIS=1024,C_WR_PNTR_WIDTH_WACH=4,C_WR_PNTR_WIDTH_WDCH=10,C_WR_PNTR_WIDTH_WRCH=4,C_WR_PNTR_WIDTH_RACH=4,C_WR_PNTR_WIDTH_RDCH=10,C_WR_PNTR_WIDTH_AXIS=10,C_HAS_DATA_COUNTS_WACH=0,C_HAS_DATA_COUNTS_WDCH=0,C_HAS_DATA_COUNTS_WRCH=0,C_HAS_DATA_COUNTS_RACH=0,C_HAS_DATA_COUNTS_RDCH=0,C_HAS_DATA_COUNTS_AXIS=0,C_HAS_PROG_FLAGS_WACH=0,C_HAS_PROG_FLAGS_WDCH=0,C_HAS_PROG_FLAGS_WRCH=0,C_HAS_PROG_FLAGS_RACH=0,C_HAS_PROG_FLAGS_RDCH=0,C_HAS_PROG_FLAGS_AXIS=0,C_PROG_FULL_TYPE_WACH=0,C_PROG_FULL_TYPE_WDCH=0,C_PROG_FULL_TYPE_WRCH=0,C_PROG_FULL_TYPE_RACH=0,C_PROG_FULL_TYPE_RDCH=0,C_PROG_FULL_TYPE_AXIS=0,C_PROG_FULL_THRESH_ASSERT_VAL_WACH=1023,C_PROG_FULL_THRESH_ASSERT_VAL_WDCH=1023,C_PROG_FULL_THRESH_ASSERT_VAL_WRCH=1023,C_PROG_FULL_THRESH_ASSERT_VAL_RACH=1023,C_PROG_FULL_THRESH_ASSERT_VAL_RDCH=1023,C_PROG_FULL_THRESH_ASSERT_VAL_AXIS=1023,C_PROG_EMPTY_TYPE_WACH=0,C_PROG_EMPTY_TYPE_WDCH=0,C_PROG_EMPTY_TYPE_WRCH=0,C_PROG_EMPTY_TYPE_RACH=0,C_PROG_EMPTY_TYPE_RDCH=0,C_PROG_EMPTY_TYPE_AXIS=0,C_PROG_EMPTY_THRESH_ASSERT_VAL_WACH=1022,C_PROG_EMPTY_THRESH_ASSERT_VAL_WDCH=1022,C_PROG_EMPTY_THRESH_ASSERT_VAL_WRCH=1022,C_PROG_EMPTY_THRESH_ASSERT_VAL_RACH=1022,C_PROG_EMPTY_THRESH_ASSERT_VAL_RDCH=1022,C_PROG_EMPTY_THRESH_ASSERT_VAL_AXIS=1022,C_REG_SLICE_MODE_WACH=0,C_REG_SLICE_MODE_WDCH=0,C_REG_SLICE_MODE_WRCH=0,C_REG_SLICE_MODE_RACH=0,C_REG_SLICE_MODE_RDCH=0,C_REG_SLICE_MODE_AXIS=0}"; attribute downgradeipidentifiedwarnings : string; attribute downgradeipidentifiedwarnings of scfifo_5in_5out_5kb : entity is "yes"; attribute x_core_info : string; attribute x_core_info of scfifo_5in_5out_5kb : entity is "fifo_generator_v13_0_0,Vivado 2015.3"; end scfifo_5in_5out_5kb; architecture STRUCTURE of scfifo_5in_5out_5kb is signal NLW_U0_almost_empty_UNCONNECTED : STD_LOGIC; signal NLW_U0_almost_full_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_ar_dbiterr_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_ar_overflow_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_ar_prog_empty_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_ar_prog_full_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_ar_sbiterr_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_ar_underflow_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_aw_dbiterr_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_aw_overflow_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_aw_prog_empty_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_aw_prog_full_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_aw_sbiterr_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_aw_underflow_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_b_dbiterr_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_b_overflow_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_b_prog_empty_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_b_prog_full_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_b_sbiterr_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_b_underflow_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_r_dbiterr_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_r_overflow_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_r_prog_empty_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_r_prog_full_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_r_sbiterr_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_r_underflow_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_w_dbiterr_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_w_overflow_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_w_prog_empty_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_w_prog_full_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_w_sbiterr_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_w_underflow_UNCONNECTED : STD_LOGIC; signal NLW_U0_axis_dbiterr_UNCONNECTED : STD_LOGIC; signal NLW_U0_axis_overflow_UNCONNECTED : STD_LOGIC; signal NLW_U0_axis_prog_empty_UNCONNECTED : STD_LOGIC; signal NLW_U0_axis_prog_full_UNCONNECTED : STD_LOGIC; signal NLW_U0_axis_sbiterr_UNCONNECTED : STD_LOGIC; signal NLW_U0_axis_underflow_UNCONNECTED : STD_LOGIC; signal NLW_U0_dbiterr_UNCONNECTED : STD_LOGIC; signal NLW_U0_m_axi_arvalid_UNCONNECTED : STD_LOGIC; signal NLW_U0_m_axi_awvalid_UNCONNECTED : STD_LOGIC; signal NLW_U0_m_axi_bready_UNCONNECTED : STD_LOGIC; signal NLW_U0_m_axi_rready_UNCONNECTED : STD_LOGIC; signal NLW_U0_m_axi_wlast_UNCONNECTED : STD_LOGIC; signal NLW_U0_m_axi_wvalid_UNCONNECTED : STD_LOGIC; signal NLW_U0_m_axis_tlast_UNCONNECTED : STD_LOGIC; signal NLW_U0_m_axis_tvalid_UNCONNECTED : STD_LOGIC; signal NLW_U0_overflow_UNCONNECTED : STD_LOGIC; signal NLW_U0_prog_empty_UNCONNECTED : STD_LOGIC; signal NLW_U0_prog_full_UNCONNECTED : STD_LOGIC; signal NLW_U0_rd_rst_busy_UNCONNECTED : STD_LOGIC; signal NLW_U0_s_axi_arready_UNCONNECTED : STD_LOGIC; signal NLW_U0_s_axi_awready_UNCONNECTED : STD_LOGIC; signal NLW_U0_s_axi_bvalid_UNCONNECTED : STD_LOGIC; signal NLW_U0_s_axi_rlast_UNCONNECTED : STD_LOGIC; signal NLW_U0_s_axi_rvalid_UNCONNECTED : STD_LOGIC; signal NLW_U0_s_axi_wready_UNCONNECTED : STD_LOGIC; signal NLW_U0_s_axis_tready_UNCONNECTED : STD_LOGIC; signal NLW_U0_sbiterr_UNCONNECTED : STD_LOGIC; signal NLW_U0_underflow_UNCONNECTED : STD_LOGIC; signal NLW_U0_valid_UNCONNECTED : STD_LOGIC; signal NLW_U0_wr_ack_UNCONNECTED : STD_LOGIC; signal NLW_U0_wr_rst_busy_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_ar_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 4 downto 0 ); signal NLW_U0_axi_ar_rd_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 4 downto 0 ); signal NLW_U0_axi_ar_wr_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 4 downto 0 ); signal NLW_U0_axi_aw_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 4 downto 0 ); signal NLW_U0_axi_aw_rd_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 4 downto 0 ); signal NLW_U0_axi_aw_wr_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 4 downto 0 ); signal NLW_U0_axi_b_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 4 downto 0 ); signal NLW_U0_axi_b_rd_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 4 downto 0 ); signal NLW_U0_axi_b_wr_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 4 downto 0 ); signal NLW_U0_axi_r_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 10 downto 0 ); signal NLW_U0_axi_r_rd_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 10 downto 0 ); signal NLW_U0_axi_r_wr_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 10 downto 0 ); signal NLW_U0_axi_w_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 10 downto 0 ); signal NLW_U0_axi_w_rd_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 10 downto 0 ); signal NLW_U0_axi_w_wr_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 10 downto 0 ); signal NLW_U0_axis_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 10 downto 0 ); signal NLW_U0_axis_rd_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 10 downto 0 ); signal NLW_U0_axis_wr_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 10 downto 0 ); signal NLW_U0_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 10 downto 0 ); signal NLW_U0_m_axi_araddr_UNCONNECTED : STD_LOGIC_VECTOR ( 31 downto 0 ); signal NLW_U0_m_axi_arburst_UNCONNECTED : STD_LOGIC_VECTOR ( 1 downto 0 ); signal NLW_U0_m_axi_arcache_UNCONNECTED : STD_LOGIC_VECTOR ( 3 downto 0 ); signal NLW_U0_m_axi_arid_UNCONNECTED : STD_LOGIC_VECTOR ( 0 to 0 ); signal NLW_U0_m_axi_arlen_UNCONNECTED : STD_LOGIC_VECTOR ( 7 downto 0 ); signal NLW_U0_m_axi_arlock_UNCONNECTED : STD_LOGIC_VECTOR ( 0 to 0 ); signal NLW_U0_m_axi_arprot_UNCONNECTED : STD_LOGIC_VECTOR ( 2 downto 0 ); signal NLW_U0_m_axi_arqos_UNCONNECTED : STD_LOGIC_VECTOR ( 3 downto 0 ); signal NLW_U0_m_axi_arregion_UNCONNECTED : STD_LOGIC_VECTOR ( 3 downto 0 ); signal NLW_U0_m_axi_arsize_UNCONNECTED : STD_LOGIC_VECTOR ( 2 downto 0 ); signal NLW_U0_m_axi_aruser_UNCONNECTED : STD_LOGIC_VECTOR ( 0 to 0 ); signal NLW_U0_m_axi_awaddr_UNCONNECTED : STD_LOGIC_VECTOR ( 31 downto 0 ); signal NLW_U0_m_axi_awburst_UNCONNECTED : STD_LOGIC_VECTOR ( 1 downto 0 ); signal NLW_U0_m_axi_awcache_UNCONNECTED : STD_LOGIC_VECTOR ( 3 downto 0 ); signal NLW_U0_m_axi_awid_UNCONNECTED : STD_LOGIC_VECTOR ( 0 to 0 ); signal NLW_U0_m_axi_awlen_UNCONNECTED : STD_LOGIC_VECTOR ( 7 downto 0 ); signal NLW_U0_m_axi_awlock_UNCONNECTED : STD_LOGIC_VECTOR ( 0 to 0 ); signal NLW_U0_m_axi_awprot_UNCONNECTED : STD_LOGIC_VECTOR ( 2 downto 0 ); signal NLW_U0_m_axi_awqos_UNCONNECTED : STD_LOGIC_VECTOR ( 3 downto 0 ); signal NLW_U0_m_axi_awregion_UNCONNECTED : STD_LOGIC_VECTOR ( 3 downto 0 ); signal NLW_U0_m_axi_awsize_UNCONNECTED : STD_LOGIC_VECTOR ( 2 downto 0 ); signal NLW_U0_m_axi_awuser_UNCONNECTED : STD_LOGIC_VECTOR ( 0 to 0 ); signal NLW_U0_m_axi_wdata_UNCONNECTED : STD_LOGIC_VECTOR ( 63 downto 0 ); signal NLW_U0_m_axi_wid_UNCONNECTED : STD_LOGIC_VECTOR ( 0 to 0 ); signal NLW_U0_m_axi_wstrb_UNCONNECTED : STD_LOGIC_VECTOR ( 7 downto 0 ); signal NLW_U0_m_axi_wuser_UNCONNECTED : STD_LOGIC_VECTOR ( 0 to 0 ); signal NLW_U0_m_axis_tdata_UNCONNECTED : STD_LOGIC_VECTOR ( 7 downto 0 ); signal NLW_U0_m_axis_tdest_UNCONNECTED : STD_LOGIC_VECTOR ( 0 to 0 ); signal NLW_U0_m_axis_tid_UNCONNECTED : STD_LOGIC_VECTOR ( 0 to 0 ); signal NLW_U0_m_axis_tkeep_UNCONNECTED : STD_LOGIC_VECTOR ( 0 to 0 ); signal NLW_U0_m_axis_tstrb_UNCONNECTED : STD_LOGIC_VECTOR ( 0 to 0 ); signal NLW_U0_m_axis_tuser_UNCONNECTED : STD_LOGIC_VECTOR ( 3 downto 0 ); signal NLW_U0_rd_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 10 downto 0 ); signal NLW_U0_s_axi_bid_UNCONNECTED : STD_LOGIC_VECTOR ( 0 to 0 ); signal NLW_U0_s_axi_bresp_UNCONNECTED : STD_LOGIC_VECTOR ( 1 downto 0 ); signal NLW_U0_s_axi_buser_UNCONNECTED : STD_LOGIC_VECTOR ( 0 to 0 ); signal NLW_U0_s_axi_rdata_UNCONNECTED : STD_LOGIC_VECTOR ( 63 downto 0 ); signal NLW_U0_s_axi_rid_UNCONNECTED : STD_LOGIC_VECTOR ( 0 to 0 ); signal NLW_U0_s_axi_rresp_UNCONNECTED : STD_LOGIC_VECTOR ( 1 downto 0 ); signal NLW_U0_s_axi_ruser_UNCONNECTED : STD_LOGIC_VECTOR ( 0 to 0 ); signal NLW_U0_wr_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 10 downto 0 ); attribute C_ADD_NGC_CONSTRAINT : integer; attribute C_ADD_NGC_CONSTRAINT of U0 : label is 0; attribute C_APPLICATION_TYPE_AXIS : integer; attribute C_APPLICATION_TYPE_AXIS of U0 : label is 0; attribute C_APPLICATION_TYPE_RACH : integer; attribute C_APPLICATION_TYPE_RACH of U0 : label is 0; attribute C_APPLICATION_TYPE_RDCH : integer; attribute C_APPLICATION_TYPE_RDCH of U0 : label is 0; attribute C_APPLICATION_TYPE_WACH : integer; attribute C_APPLICATION_TYPE_WACH of U0 : label is 0; attribute C_APPLICATION_TYPE_WDCH : integer; attribute C_APPLICATION_TYPE_WDCH of U0 : label is 0; attribute C_APPLICATION_TYPE_WRCH : integer; attribute C_APPLICATION_TYPE_WRCH of U0 : label is 0; attribute C_AXIS_TDATA_WIDTH : integer; attribute C_AXIS_TDATA_WIDTH of U0 : label is 8; attribute C_AXIS_TDEST_WIDTH : integer; attribute C_AXIS_TDEST_WIDTH of U0 : label is 1; attribute C_AXIS_TID_WIDTH : integer; attribute C_AXIS_TID_WIDTH of U0 : label is 1; attribute C_AXIS_TKEEP_WIDTH : integer; attribute C_AXIS_TKEEP_WIDTH of U0 : label is 1; attribute C_AXIS_TSTRB_WIDTH : integer; attribute C_AXIS_TSTRB_WIDTH of U0 : label is 1; attribute C_AXIS_TUSER_WIDTH : integer; attribute C_AXIS_TUSER_WIDTH of U0 : label is 4; attribute C_AXIS_TYPE : integer; attribute C_AXIS_TYPE of U0 : label is 0; attribute C_AXI_ADDR_WIDTH : integer; attribute C_AXI_ADDR_WIDTH of U0 : label is 32; attribute C_AXI_ARUSER_WIDTH : integer; attribute C_AXI_ARUSER_WIDTH of U0 : label is 1; attribute C_AXI_AWUSER_WIDTH : integer; attribute C_AXI_AWUSER_WIDTH of U0 : label is 1; attribute C_AXI_BUSER_WIDTH : integer; attribute C_AXI_BUSER_WIDTH of U0 : label is 1; attribute C_AXI_DATA_WIDTH : integer; attribute C_AXI_DATA_WIDTH of U0 : label is 64; attribute C_AXI_ID_WIDTH : integer; attribute C_AXI_ID_WIDTH of U0 : label is 1; attribute C_AXI_LEN_WIDTH : integer; attribute C_AXI_LEN_WIDTH of U0 : label is 8; attribute C_AXI_LOCK_WIDTH : integer; attribute C_AXI_LOCK_WIDTH of U0 : label is 1; attribute C_AXI_RUSER_WIDTH : integer; attribute C_AXI_RUSER_WIDTH of U0 : label is 1; attribute C_AXI_TYPE : integer; attribute C_AXI_TYPE of U0 : label is 1; attribute C_AXI_WUSER_WIDTH : integer; attribute C_AXI_WUSER_WIDTH of U0 : label is 1; attribute C_COMMON_CLOCK : integer; attribute C_COMMON_CLOCK of U0 : label is 1; attribute C_COUNT_TYPE : integer; attribute C_COUNT_TYPE of U0 : label is 0; attribute C_DATA_COUNT_WIDTH : integer; attribute C_DATA_COUNT_WIDTH of U0 : label is 11; attribute C_DEFAULT_VALUE : string; attribute C_DEFAULT_VALUE of U0 : label is "BlankString"; attribute C_DIN_WIDTH : integer; attribute C_DIN_WIDTH of U0 : label is 5; attribute C_DIN_WIDTH_AXIS : integer; attribute C_DIN_WIDTH_AXIS of U0 : label is 1; attribute C_DIN_WIDTH_RACH : integer; attribute C_DIN_WIDTH_RACH of U0 : label is 32; attribute C_DIN_WIDTH_RDCH : integer; attribute C_DIN_WIDTH_RDCH of U0 : label is 64; attribute C_DIN_WIDTH_WACH : integer; attribute C_DIN_WIDTH_WACH of U0 : label is 32; attribute C_DIN_WIDTH_WDCH : integer; attribute C_DIN_WIDTH_WDCH of U0 : label is 64; attribute C_DIN_WIDTH_WRCH : integer; attribute C_DIN_WIDTH_WRCH of U0 : label is 2; attribute C_DOUT_RST_VAL : string; attribute C_DOUT_RST_VAL of U0 : label is "0"; attribute C_DOUT_WIDTH : integer; attribute C_DOUT_WIDTH of U0 : label is 5; attribute C_ENABLE_RLOCS : integer; attribute C_ENABLE_RLOCS of U0 : label is 0; attribute C_ENABLE_RST_SYNC : integer; attribute C_ENABLE_RST_SYNC of U0 : label is 1; attribute C_EN_SAFETY_CKT : integer; attribute C_EN_SAFETY_CKT of U0 : label is 0; attribute C_ERROR_INJECTION_TYPE : integer; attribute C_ERROR_INJECTION_TYPE of U0 : label is 0; attribute C_ERROR_INJECTION_TYPE_AXIS : integer; attribute C_ERROR_INJECTION_TYPE_AXIS of U0 : label is 0; attribute C_ERROR_INJECTION_TYPE_RACH : integer; attribute C_ERROR_INJECTION_TYPE_RACH of U0 : label is 0; attribute C_ERROR_INJECTION_TYPE_RDCH : integer; attribute C_ERROR_INJECTION_TYPE_RDCH of U0 : label is 0; attribute C_ERROR_INJECTION_TYPE_WACH : integer; attribute C_ERROR_INJECTION_TYPE_WACH of U0 : label is 0; attribute C_ERROR_INJECTION_TYPE_WDCH : integer; attribute C_ERROR_INJECTION_TYPE_WDCH of U0 : label is 0; attribute C_ERROR_INJECTION_TYPE_WRCH : integer; attribute C_ERROR_INJECTION_TYPE_WRCH of U0 : label is 0; attribute C_FAMILY : string; attribute C_FAMILY of U0 : label is "artix7"; attribute C_FULL_FLAGS_RST_VAL : integer; attribute C_FULL_FLAGS_RST_VAL of U0 : label is 1; attribute C_HAS_ALMOST_EMPTY : integer; attribute C_HAS_ALMOST_EMPTY of U0 : label is 0; attribute C_HAS_ALMOST_FULL : integer; attribute C_HAS_ALMOST_FULL of U0 : label is 0; attribute C_HAS_AXIS_TDATA : integer; attribute C_HAS_AXIS_TDATA of U0 : label is 1; attribute C_HAS_AXIS_TDEST : integer; attribute C_HAS_AXIS_TDEST of U0 : label is 0; attribute C_HAS_AXIS_TID : integer; attribute C_HAS_AXIS_TID of U0 : label is 0; attribute C_HAS_AXIS_TKEEP : integer; attribute C_HAS_AXIS_TKEEP of U0 : label is 0; attribute C_HAS_AXIS_TLAST : integer; attribute C_HAS_AXIS_TLAST of U0 : label is 0; attribute C_HAS_AXIS_TREADY : integer; attribute C_HAS_AXIS_TREADY of U0 : label is 1; attribute C_HAS_AXIS_TSTRB : integer; attribute C_HAS_AXIS_TSTRB of U0 : label is 0; attribute C_HAS_AXIS_TUSER : integer; attribute C_HAS_AXIS_TUSER of U0 : label is 1; attribute C_HAS_AXI_ARUSER : integer; attribute C_HAS_AXI_ARUSER of U0 : label is 0; attribute C_HAS_AXI_AWUSER : integer; attribute C_HAS_AXI_AWUSER of U0 : label is 0; attribute C_HAS_AXI_BUSER : integer; attribute C_HAS_AXI_BUSER of U0 : label is 0; attribute C_HAS_AXI_ID : integer; attribute C_HAS_AXI_ID of U0 : label is 0; attribute C_HAS_AXI_RD_CHANNEL : integer; attribute C_HAS_AXI_RD_CHANNEL of U0 : label is 1; attribute C_HAS_AXI_RUSER : integer; attribute C_HAS_AXI_RUSER of U0 : label is 0; attribute C_HAS_AXI_WR_CHANNEL : integer; attribute C_HAS_AXI_WR_CHANNEL of U0 : label is 1; attribute C_HAS_AXI_WUSER : integer; attribute C_HAS_AXI_WUSER of U0 : label is 0; attribute C_HAS_BACKUP : integer; attribute C_HAS_BACKUP of U0 : label is 0; attribute C_HAS_DATA_COUNT : integer; attribute C_HAS_DATA_COUNT of U0 : label is 0; attribute C_HAS_DATA_COUNTS_AXIS : integer; attribute C_HAS_DATA_COUNTS_AXIS of U0 : label is 0; attribute C_HAS_DATA_COUNTS_RACH : integer; attribute C_HAS_DATA_COUNTS_RACH of U0 : label is 0; attribute C_HAS_DATA_COUNTS_RDCH : integer; attribute C_HAS_DATA_COUNTS_RDCH of U0 : label is 0; attribute C_HAS_DATA_COUNTS_WACH : integer; attribute C_HAS_DATA_COUNTS_WACH of U0 : label is 0; attribute C_HAS_DATA_COUNTS_WDCH : integer; attribute C_HAS_DATA_COUNTS_WDCH of U0 : label is 0; attribute C_HAS_DATA_COUNTS_WRCH : integer; attribute C_HAS_DATA_COUNTS_WRCH of U0 : label is 0; attribute C_HAS_INT_CLK : integer; attribute C_HAS_INT_CLK of U0 : label is 0; attribute C_HAS_MASTER_CE : integer; attribute C_HAS_MASTER_CE of U0 : label is 0; attribute C_HAS_MEMINIT_FILE : integer; attribute C_HAS_MEMINIT_FILE of U0 : label is 0; attribute C_HAS_OVERFLOW : integer; attribute C_HAS_OVERFLOW of U0 : label is 0; attribute C_HAS_PROG_FLAGS_AXIS : integer; attribute C_HAS_PROG_FLAGS_AXIS of U0 : label is 0; attribute C_HAS_PROG_FLAGS_RACH : integer; attribute C_HAS_PROG_FLAGS_RACH of U0 : label is 0; attribute C_HAS_PROG_FLAGS_RDCH : integer; attribute C_HAS_PROG_FLAGS_RDCH of U0 : label is 0; attribute C_HAS_PROG_FLAGS_WACH : integer; attribute C_HAS_PROG_FLAGS_WACH of U0 : label is 0; attribute C_HAS_PROG_FLAGS_WDCH : integer; attribute C_HAS_PROG_FLAGS_WDCH of U0 : label is 0; attribute C_HAS_PROG_FLAGS_WRCH : integer; attribute C_HAS_PROG_FLAGS_WRCH of U0 : label is 0; attribute C_HAS_RD_DATA_COUNT : integer; attribute C_HAS_RD_DATA_COUNT of U0 : label is 0; attribute C_HAS_RD_RST : integer; attribute C_HAS_RD_RST of U0 : label is 0; attribute C_HAS_RST : integer; attribute C_HAS_RST of U0 : label is 1; attribute C_HAS_SLAVE_CE : integer; attribute C_HAS_SLAVE_CE of U0 : label is 0; attribute C_HAS_SRST : integer; attribute C_HAS_SRST of U0 : label is 0; attribute C_HAS_UNDERFLOW : integer; attribute C_HAS_UNDERFLOW of U0 : label is 0; attribute C_HAS_VALID : integer; attribute C_HAS_VALID of U0 : label is 0; attribute C_HAS_WR_ACK : integer; attribute C_HAS_WR_ACK of U0 : label is 0; attribute C_HAS_WR_DATA_COUNT : integer; attribute C_HAS_WR_DATA_COUNT of U0 : label is 0; attribute C_HAS_WR_RST : integer; attribute C_HAS_WR_RST of U0 : label is 0; attribute C_IMPLEMENTATION_TYPE : integer; attribute C_IMPLEMENTATION_TYPE of U0 : label is 0; attribute C_IMPLEMENTATION_TYPE_AXIS : integer; attribute C_IMPLEMENTATION_TYPE_AXIS of U0 : label is 1; attribute C_IMPLEMENTATION_TYPE_RACH : integer; attribute C_IMPLEMENTATION_TYPE_RACH of U0 : label is 1; attribute C_IMPLEMENTATION_TYPE_RDCH : integer; attribute C_IMPLEMENTATION_TYPE_RDCH of U0 : label is 1; attribute C_IMPLEMENTATION_TYPE_WACH : integer; attribute C_IMPLEMENTATION_TYPE_WACH of U0 : label is 1; attribute C_IMPLEMENTATION_TYPE_WDCH : integer; attribute C_IMPLEMENTATION_TYPE_WDCH of U0 : label is 1; attribute C_IMPLEMENTATION_TYPE_WRCH : integer; attribute C_IMPLEMENTATION_TYPE_WRCH of U0 : label is 1; attribute C_INIT_WR_PNTR_VAL : integer; attribute C_INIT_WR_PNTR_VAL of U0 : label is 0; attribute C_INTERFACE_TYPE : integer; attribute C_INTERFACE_TYPE of U0 : label is 0; attribute C_MEMORY_TYPE : integer; attribute C_MEMORY_TYPE of U0 : label is 1; attribute C_MIF_FILE_NAME : string; attribute C_MIF_FILE_NAME of U0 : label is "BlankString"; attribute C_MSGON_VAL : integer; attribute C_MSGON_VAL of U0 : label is 1; attribute C_OPTIMIZATION_MODE : integer; attribute C_OPTIMIZATION_MODE of U0 : label is 0; attribute C_OVERFLOW_LOW : integer; attribute C_OVERFLOW_LOW of U0 : label is 0; attribute C_POWER_SAVING_MODE : integer; attribute C_POWER_SAVING_MODE of U0 : label is 0; attribute C_PRELOAD_LATENCY : integer; attribute C_PRELOAD_LATENCY of U0 : label is 0; attribute C_PRELOAD_REGS : integer; attribute C_PRELOAD_REGS of U0 : label is 1; attribute C_PRIM_FIFO_TYPE : string; attribute C_PRIM_FIFO_TYPE of U0 : label is "1kx18"; attribute C_PRIM_FIFO_TYPE_AXIS : string; attribute C_PRIM_FIFO_TYPE_AXIS of U0 : label is "1kx18"; attribute C_PRIM_FIFO_TYPE_RACH : string; attribute C_PRIM_FIFO_TYPE_RACH of U0 : label is "512x36"; attribute C_PRIM_FIFO_TYPE_RDCH : string; attribute C_PRIM_FIFO_TYPE_RDCH of U0 : label is "1kx36"; attribute C_PRIM_FIFO_TYPE_WACH : string; attribute C_PRIM_FIFO_TYPE_WACH of U0 : label is "512x36"; attribute C_PRIM_FIFO_TYPE_WDCH : string; attribute C_PRIM_FIFO_TYPE_WDCH of U0 : label is "1kx36"; attribute C_PRIM_FIFO_TYPE_WRCH : string; attribute C_PRIM_FIFO_TYPE_WRCH of U0 : label is "512x36"; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL : integer; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL of U0 : label is 4; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_AXIS : integer; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_AXIS of U0 : label is 1022; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_RACH : integer; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_RACH of U0 : label is 1022; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_RDCH : integer; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_RDCH of U0 : label is 1022; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_WACH : integer; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_WACH of U0 : label is 1022; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_WDCH : integer; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_WDCH of U0 : label is 1022; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_WRCH : integer; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_WRCH of U0 : label is 1022; attribute C_PROG_EMPTY_THRESH_NEGATE_VAL : integer; attribute C_PROG_EMPTY_THRESH_NEGATE_VAL of U0 : label is 5; attribute C_PROG_EMPTY_TYPE : integer; attribute C_PROG_EMPTY_TYPE of U0 : label is 0; attribute C_PROG_EMPTY_TYPE_AXIS : integer; attribute C_PROG_EMPTY_TYPE_AXIS of U0 : label is 0; attribute C_PROG_EMPTY_TYPE_RACH : integer; attribute C_PROG_EMPTY_TYPE_RACH of U0 : label is 0; attribute C_PROG_EMPTY_TYPE_RDCH : integer; attribute C_PROG_EMPTY_TYPE_RDCH of U0 : label is 0; attribute C_PROG_EMPTY_TYPE_WACH : integer; attribute C_PROG_EMPTY_TYPE_WACH of U0 : label is 0; attribute C_PROG_EMPTY_TYPE_WDCH : integer; attribute C_PROG_EMPTY_TYPE_WDCH of U0 : label is 0; attribute C_PROG_EMPTY_TYPE_WRCH : integer; attribute C_PROG_EMPTY_TYPE_WRCH of U0 : label is 0; attribute C_PROG_FULL_THRESH_ASSERT_VAL : integer; attribute C_PROG_FULL_THRESH_ASSERT_VAL of U0 : label is 1023; attribute C_PROG_FULL_THRESH_ASSERT_VAL_AXIS : integer; attribute C_PROG_FULL_THRESH_ASSERT_VAL_AXIS of U0 : label is 1023; attribute C_PROG_FULL_THRESH_ASSERT_VAL_RACH : integer; attribute C_PROG_FULL_THRESH_ASSERT_VAL_RACH of U0 : label is 1023; attribute C_PROG_FULL_THRESH_ASSERT_VAL_RDCH : integer; attribute C_PROG_FULL_THRESH_ASSERT_VAL_RDCH of U0 : label is 1023; attribute C_PROG_FULL_THRESH_ASSERT_VAL_WACH : integer; attribute C_PROG_FULL_THRESH_ASSERT_VAL_WACH of U0 : label is 1023; attribute C_PROG_FULL_THRESH_ASSERT_VAL_WDCH : integer; attribute C_PROG_FULL_THRESH_ASSERT_VAL_WDCH of U0 : label is 1023; attribute C_PROG_FULL_THRESH_ASSERT_VAL_WRCH : integer; attribute C_PROG_FULL_THRESH_ASSERT_VAL_WRCH of U0 : label is 1023; attribute C_PROG_FULL_THRESH_NEGATE_VAL : integer; attribute C_PROG_FULL_THRESH_NEGATE_VAL of U0 : label is 1022; attribute C_PROG_FULL_TYPE : integer; attribute C_PROG_FULL_TYPE of U0 : label is 0; attribute C_PROG_FULL_TYPE_AXIS : integer; attribute C_PROG_FULL_TYPE_AXIS of U0 : label is 0; attribute C_PROG_FULL_TYPE_RACH : integer; attribute C_PROG_FULL_TYPE_RACH of U0 : label is 0; attribute C_PROG_FULL_TYPE_RDCH : integer; attribute C_PROG_FULL_TYPE_RDCH of U0 : label is 0; attribute C_PROG_FULL_TYPE_WACH : integer; attribute C_PROG_FULL_TYPE_WACH of U0 : label is 0; attribute C_PROG_FULL_TYPE_WDCH : integer; attribute C_PROG_FULL_TYPE_WDCH of U0 : label is 0; attribute C_PROG_FULL_TYPE_WRCH : integer; attribute C_PROG_FULL_TYPE_WRCH of U0 : label is 0; attribute C_RACH_TYPE : integer; attribute C_RACH_TYPE of U0 : label is 0; attribute C_RDCH_TYPE : integer; attribute C_RDCH_TYPE of U0 : label is 0; attribute C_RD_DATA_COUNT_WIDTH : integer; attribute C_RD_DATA_COUNT_WIDTH of U0 : label is 11; attribute C_RD_DEPTH : integer; attribute C_RD_DEPTH of U0 : label is 1024; attribute C_RD_FREQ : integer; attribute C_RD_FREQ of U0 : label is 1; attribute C_RD_PNTR_WIDTH : integer; attribute C_RD_PNTR_WIDTH of U0 : label is 10; attribute C_REG_SLICE_MODE_AXIS : integer; attribute C_REG_SLICE_MODE_AXIS of U0 : label is 0; attribute C_REG_SLICE_MODE_RACH : integer; attribute C_REG_SLICE_MODE_RACH of U0 : label is 0; attribute C_REG_SLICE_MODE_RDCH : integer; attribute C_REG_SLICE_MODE_RDCH of U0 : label is 0; attribute C_REG_SLICE_MODE_WACH : integer; attribute C_REG_SLICE_MODE_WACH of U0 : label is 0; attribute C_REG_SLICE_MODE_WDCH : integer; attribute C_REG_SLICE_MODE_WDCH of U0 : label is 0; attribute C_REG_SLICE_MODE_WRCH : integer; attribute C_REG_SLICE_MODE_WRCH of U0 : label is 0; attribute C_SYNCHRONIZER_STAGE : integer; attribute C_SYNCHRONIZER_STAGE of U0 : label is 2; attribute C_UNDERFLOW_LOW : integer; attribute C_UNDERFLOW_LOW of U0 : label is 0; attribute C_USE_COMMON_OVERFLOW : integer; attribute C_USE_COMMON_OVERFLOW of U0 : label is 0; attribute C_USE_COMMON_UNDERFLOW : integer; attribute C_USE_COMMON_UNDERFLOW of U0 : label is 0; attribute C_USE_DEFAULT_SETTINGS : integer; attribute C_USE_DEFAULT_SETTINGS of U0 : label is 0; attribute C_USE_DOUT_RST : integer; attribute C_USE_DOUT_RST of U0 : label is 1; attribute C_USE_ECC : integer; attribute C_USE_ECC of U0 : label is 0; attribute C_USE_ECC_AXIS : integer; attribute C_USE_ECC_AXIS of U0 : label is 0; attribute C_USE_ECC_RACH : integer; attribute C_USE_ECC_RACH of U0 : label is 0; attribute C_USE_ECC_RDCH : integer; attribute C_USE_ECC_RDCH of U0 : label is 0; attribute C_USE_ECC_WACH : integer; attribute C_USE_ECC_WACH of U0 : label is 0; attribute C_USE_ECC_WDCH : integer; attribute C_USE_ECC_WDCH of U0 : label is 0; attribute C_USE_ECC_WRCH : integer; attribute C_USE_ECC_WRCH of U0 : label is 0; attribute C_USE_EMBEDDED_REG : integer; attribute C_USE_EMBEDDED_REG of U0 : label is 0; attribute C_USE_FIFO16_FLAGS : integer; attribute C_USE_FIFO16_FLAGS of U0 : label is 0; attribute C_USE_FWFT_DATA_COUNT : integer; attribute C_USE_FWFT_DATA_COUNT of U0 : label is 1; attribute C_USE_PIPELINE_REG : integer; attribute C_USE_PIPELINE_REG of U0 : label is 0; attribute C_VALID_LOW : integer; attribute C_VALID_LOW of U0 : label is 0; attribute C_WACH_TYPE : integer; attribute C_WACH_TYPE of U0 : label is 0; attribute C_WDCH_TYPE : integer; attribute C_WDCH_TYPE of U0 : label is 0; attribute C_WRCH_TYPE : integer; attribute C_WRCH_TYPE of U0 : label is 0; attribute C_WR_ACK_LOW : integer; attribute C_WR_ACK_LOW of U0 : label is 0; attribute C_WR_DATA_COUNT_WIDTH : integer; attribute C_WR_DATA_COUNT_WIDTH of U0 : label is 11; attribute C_WR_DEPTH : integer; attribute C_WR_DEPTH of U0 : label is 1024; attribute C_WR_DEPTH_AXIS : integer; attribute C_WR_DEPTH_AXIS of U0 : label is 1024; attribute C_WR_DEPTH_RACH : integer; attribute C_WR_DEPTH_RACH of U0 : label is 16; attribute C_WR_DEPTH_RDCH : integer; attribute C_WR_DEPTH_RDCH of U0 : label is 1024; attribute C_WR_DEPTH_WACH : integer; attribute C_WR_DEPTH_WACH of U0 : label is 16; attribute C_WR_DEPTH_WDCH : integer; attribute C_WR_DEPTH_WDCH of U0 : label is 1024; attribute C_WR_DEPTH_WRCH : integer; attribute C_WR_DEPTH_WRCH of U0 : label is 16; attribute C_WR_FREQ : integer; attribute C_WR_FREQ of U0 : label is 1; attribute C_WR_PNTR_WIDTH : integer; attribute C_WR_PNTR_WIDTH of U0 : label is 10; attribute C_WR_PNTR_WIDTH_AXIS : integer; attribute C_WR_PNTR_WIDTH_AXIS of U0 : label is 10; attribute C_WR_PNTR_WIDTH_RACH : integer; attribute C_WR_PNTR_WIDTH_RACH of U0 : label is 4; attribute C_WR_PNTR_WIDTH_RDCH : integer; attribute C_WR_PNTR_WIDTH_RDCH of U0 : label is 10; attribute C_WR_PNTR_WIDTH_WACH : integer; attribute C_WR_PNTR_WIDTH_WACH of U0 : label is 4; attribute C_WR_PNTR_WIDTH_WDCH : integer; attribute C_WR_PNTR_WIDTH_WDCH of U0 : label is 10; attribute C_WR_PNTR_WIDTH_WRCH : integer; attribute C_WR_PNTR_WIDTH_WRCH of U0 : label is 4; attribute C_WR_RESPONSE_LATENCY : integer; attribute C_WR_RESPONSE_LATENCY of U0 : label is 1; attribute x_interface_info : string; attribute x_interface_info of U0 : label is "xilinx.com:interface:fifo_read:1.0 FIFO_READ RD_DATA"; begin U0: entity work.scfifo_5in_5out_5kb_fifo_generator_v13_0_0 port map ( almost_empty => NLW_U0_almost_empty_UNCONNECTED, almost_full => NLW_U0_almost_full_UNCONNECTED, axi_ar_data_count(4 downto 0) => NLW_U0_axi_ar_data_count_UNCONNECTED(4 downto 0), axi_ar_dbiterr => NLW_U0_axi_ar_dbiterr_UNCONNECTED, axi_ar_injectdbiterr => '0', axi_ar_injectsbiterr => '0', axi_ar_overflow => NLW_U0_axi_ar_overflow_UNCONNECTED, axi_ar_prog_empty => NLW_U0_axi_ar_prog_empty_UNCONNECTED, axi_ar_prog_empty_thresh(3 downto 0) => B"0000", axi_ar_prog_full => NLW_U0_axi_ar_prog_full_UNCONNECTED, axi_ar_prog_full_thresh(3 downto 0) => B"0000", axi_ar_rd_data_count(4 downto 0) => NLW_U0_axi_ar_rd_data_count_UNCONNECTED(4 downto 0), axi_ar_sbiterr => NLW_U0_axi_ar_sbiterr_UNCONNECTED, axi_ar_underflow => NLW_U0_axi_ar_underflow_UNCONNECTED, axi_ar_wr_data_count(4 downto 0) => NLW_U0_axi_ar_wr_data_count_UNCONNECTED(4 downto 0), axi_aw_data_count(4 downto 0) => NLW_U0_axi_aw_data_count_UNCONNECTED(4 downto 0), axi_aw_dbiterr => NLW_U0_axi_aw_dbiterr_UNCONNECTED, axi_aw_injectdbiterr => '0', axi_aw_injectsbiterr => '0', axi_aw_overflow => NLW_U0_axi_aw_overflow_UNCONNECTED, axi_aw_prog_empty => NLW_U0_axi_aw_prog_empty_UNCONNECTED, axi_aw_prog_empty_thresh(3 downto 0) => B"0000", axi_aw_prog_full => NLW_U0_axi_aw_prog_full_UNCONNECTED, axi_aw_prog_full_thresh(3 downto 0) => B"0000", axi_aw_rd_data_count(4 downto 0) => NLW_U0_axi_aw_rd_data_count_UNCONNECTED(4 downto 0), axi_aw_sbiterr => NLW_U0_axi_aw_sbiterr_UNCONNECTED, axi_aw_underflow => NLW_U0_axi_aw_underflow_UNCONNECTED, axi_aw_wr_data_count(4 downto 0) => NLW_U0_axi_aw_wr_data_count_UNCONNECTED(4 downto 0), axi_b_data_count(4 downto 0) => NLW_U0_axi_b_data_count_UNCONNECTED(4 downto 0), axi_b_dbiterr => NLW_U0_axi_b_dbiterr_UNCONNECTED, axi_b_injectdbiterr => '0', axi_b_injectsbiterr => '0', axi_b_overflow => NLW_U0_axi_b_overflow_UNCONNECTED, axi_b_prog_empty => NLW_U0_axi_b_prog_empty_UNCONNECTED, axi_b_prog_empty_thresh(3 downto 0) => B"0000", axi_b_prog_full => NLW_U0_axi_b_prog_full_UNCONNECTED, axi_b_prog_full_thresh(3 downto 0) => B"0000", axi_b_rd_data_count(4 downto 0) => NLW_U0_axi_b_rd_data_count_UNCONNECTED(4 downto 0), axi_b_sbiterr => NLW_U0_axi_b_sbiterr_UNCONNECTED, axi_b_underflow => NLW_U0_axi_b_underflow_UNCONNECTED, axi_b_wr_data_count(4 downto 0) => NLW_U0_axi_b_wr_data_count_UNCONNECTED(4 downto 0), axi_r_data_count(10 downto 0) => NLW_U0_axi_r_data_count_UNCONNECTED(10 downto 0), axi_r_dbiterr => NLW_U0_axi_r_dbiterr_UNCONNECTED, axi_r_injectdbiterr => '0', axi_r_injectsbiterr => '0', axi_r_overflow => NLW_U0_axi_r_overflow_UNCONNECTED, axi_r_prog_empty => NLW_U0_axi_r_prog_empty_UNCONNECTED, axi_r_prog_empty_thresh(9 downto 0) => B"0000000000", axi_r_prog_full => NLW_U0_axi_r_prog_full_UNCONNECTED, axi_r_prog_full_thresh(9 downto 0) => B"0000000000", axi_r_rd_data_count(10 downto 0) => NLW_U0_axi_r_rd_data_count_UNCONNECTED(10 downto 0), axi_r_sbiterr => NLW_U0_axi_r_sbiterr_UNCONNECTED, axi_r_underflow => NLW_U0_axi_r_underflow_UNCONNECTED, axi_r_wr_data_count(10 downto 0) => NLW_U0_axi_r_wr_data_count_UNCONNECTED(10 downto 0), axi_w_data_count(10 downto 0) => NLW_U0_axi_w_data_count_UNCONNECTED(10 downto 0), axi_w_dbiterr => NLW_U0_axi_w_dbiterr_UNCONNECTED, axi_w_injectdbiterr => '0', axi_w_injectsbiterr => '0', axi_w_overflow => NLW_U0_axi_w_overflow_UNCONNECTED, axi_w_prog_empty => NLW_U0_axi_w_prog_empty_UNCONNECTED, axi_w_prog_empty_thresh(9 downto 0) => B"0000000000", axi_w_prog_full => NLW_U0_axi_w_prog_full_UNCONNECTED, axi_w_prog_full_thresh(9 downto 0) => B"0000000000", axi_w_rd_data_count(10 downto 0) => NLW_U0_axi_w_rd_data_count_UNCONNECTED(10 downto 0), axi_w_sbiterr => NLW_U0_axi_w_sbiterr_UNCONNECTED, axi_w_underflow => NLW_U0_axi_w_underflow_UNCONNECTED, axi_w_wr_data_count(10 downto 0) => NLW_U0_axi_w_wr_data_count_UNCONNECTED(10 downto 0), axis_data_count(10 downto 0) => NLW_U0_axis_data_count_UNCONNECTED(10 downto 0), axis_dbiterr => NLW_U0_axis_dbiterr_UNCONNECTED, axis_injectdbiterr => '0', axis_injectsbiterr => '0', axis_overflow => NLW_U0_axis_overflow_UNCONNECTED, axis_prog_empty => NLW_U0_axis_prog_empty_UNCONNECTED, axis_prog_empty_thresh(9 downto 0) => B"0000000000", axis_prog_full => NLW_U0_axis_prog_full_UNCONNECTED, axis_prog_full_thresh(9 downto 0) => B"0000000000", axis_rd_data_count(10 downto 0) => NLW_U0_axis_rd_data_count_UNCONNECTED(10 downto 0), axis_sbiterr => NLW_U0_axis_sbiterr_UNCONNECTED, axis_underflow => NLW_U0_axis_underflow_UNCONNECTED, axis_wr_data_count(10 downto 0) => NLW_U0_axis_wr_data_count_UNCONNECTED(10 downto 0), backup => '0', backup_marker => '0', clk => clk, data_count(10 downto 0) => NLW_U0_data_count_UNCONNECTED(10 downto 0), dbiterr => NLW_U0_dbiterr_UNCONNECTED, din(4 downto 0) => din(4 downto 0), dout(4 downto 0) => dout(4 downto 0), empty => empty, full => full, injectdbiterr => '0', injectsbiterr => '0', int_clk => '0', m_aclk => '0', m_aclk_en => '0', m_axi_araddr(31 downto 0) => NLW_U0_m_axi_araddr_UNCONNECTED(31 downto 0), m_axi_arburst(1 downto 0) => NLW_U0_m_axi_arburst_UNCONNECTED(1 downto 0), m_axi_arcache(3 downto 0) => NLW_U0_m_axi_arcache_UNCONNECTED(3 downto 0), m_axi_arid(0) => NLW_U0_m_axi_arid_UNCONNECTED(0), m_axi_arlen(7 downto 0) => NLW_U0_m_axi_arlen_UNCONNECTED(7 downto 0), m_axi_arlock(0) => NLW_U0_m_axi_arlock_UNCONNECTED(0), m_axi_arprot(2 downto 0) => NLW_U0_m_axi_arprot_UNCONNECTED(2 downto 0), m_axi_arqos(3 downto 0) => NLW_U0_m_axi_arqos_UNCONNECTED(3 downto 0), m_axi_arready => '0', m_axi_arregion(3 downto 0) => NLW_U0_m_axi_arregion_UNCONNECTED(3 downto 0), m_axi_arsize(2 downto 0) => NLW_U0_m_axi_arsize_UNCONNECTED(2 downto 0), m_axi_aruser(0) => NLW_U0_m_axi_aruser_UNCONNECTED(0), m_axi_arvalid => NLW_U0_m_axi_arvalid_UNCONNECTED, m_axi_awaddr(31 downto 0) => NLW_U0_m_axi_awaddr_UNCONNECTED(31 downto 0), m_axi_awburst(1 downto 0) => NLW_U0_m_axi_awburst_UNCONNECTED(1 downto 0), m_axi_awcache(3 downto 0) => NLW_U0_m_axi_awcache_UNCONNECTED(3 downto 0), m_axi_awid(0) => NLW_U0_m_axi_awid_UNCONNECTED(0), m_axi_awlen(7 downto 0) => NLW_U0_m_axi_awlen_UNCONNECTED(7 downto 0), m_axi_awlock(0) => NLW_U0_m_axi_awlock_UNCONNECTED(0), m_axi_awprot(2 downto 0) => NLW_U0_m_axi_awprot_UNCONNECTED(2 downto 0), m_axi_awqos(3 downto 0) => NLW_U0_m_axi_awqos_UNCONNECTED(3 downto 0), m_axi_awready => '0', m_axi_awregion(3 downto 0) => NLW_U0_m_axi_awregion_UNCONNECTED(3 downto 0), m_axi_awsize(2 downto 0) => NLW_U0_m_axi_awsize_UNCONNECTED(2 downto 0), m_axi_awuser(0) => NLW_U0_m_axi_awuser_UNCONNECTED(0), m_axi_awvalid => NLW_U0_m_axi_awvalid_UNCONNECTED, m_axi_bid(0) => '0', m_axi_bready => NLW_U0_m_axi_bready_UNCONNECTED, m_axi_bresp(1 downto 0) => B"00", m_axi_buser(0) => '0', m_axi_bvalid => '0', m_axi_rdata(63 downto 0) => B"0000000000000000000000000000000000000000000000000000000000000000", m_axi_rid(0) => '0', m_axi_rlast => '0', m_axi_rready => NLW_U0_m_axi_rready_UNCONNECTED, m_axi_rresp(1 downto 0) => B"00", m_axi_ruser(0) => '0', m_axi_rvalid => '0', m_axi_wdata(63 downto 0) => NLW_U0_m_axi_wdata_UNCONNECTED(63 downto 0), m_axi_wid(0) => NLW_U0_m_axi_wid_UNCONNECTED(0), m_axi_wlast => NLW_U0_m_axi_wlast_UNCONNECTED, m_axi_wready => '0', m_axi_wstrb(7 downto 0) => NLW_U0_m_axi_wstrb_UNCONNECTED(7 downto 0), m_axi_wuser(0) => NLW_U0_m_axi_wuser_UNCONNECTED(0), m_axi_wvalid => NLW_U0_m_axi_wvalid_UNCONNECTED, m_axis_tdata(7 downto 0) => NLW_U0_m_axis_tdata_UNCONNECTED(7 downto 0), m_axis_tdest(0) => NLW_U0_m_axis_tdest_UNCONNECTED(0), m_axis_tid(0) => NLW_U0_m_axis_tid_UNCONNECTED(0), m_axis_tkeep(0) => NLW_U0_m_axis_tkeep_UNCONNECTED(0), m_axis_tlast => NLW_U0_m_axis_tlast_UNCONNECTED, m_axis_tready => '0', m_axis_tstrb(0) => NLW_U0_m_axis_tstrb_UNCONNECTED(0), m_axis_tuser(3 downto 0) => NLW_U0_m_axis_tuser_UNCONNECTED(3 downto 0), m_axis_tvalid => NLW_U0_m_axis_tvalid_UNCONNECTED, overflow => NLW_U0_overflow_UNCONNECTED, prog_empty => NLW_U0_prog_empty_UNCONNECTED, prog_empty_thresh(9 downto 0) => B"0000000000", prog_empty_thresh_assert(9 downto 0) => B"0000000000", prog_empty_thresh_negate(9 downto 0) => B"0000000000", prog_full => NLW_U0_prog_full_UNCONNECTED, prog_full_thresh(9 downto 0) => B"0000000000", prog_full_thresh_assert(9 downto 0) => B"0000000000", prog_full_thresh_negate(9 downto 0) => B"0000000000", rd_clk => '0', rd_data_count(10 downto 0) => NLW_U0_rd_data_count_UNCONNECTED(10 downto 0), rd_en => rd_en, rd_rst => '0', rd_rst_busy => NLW_U0_rd_rst_busy_UNCONNECTED, rst => rst, s_aclk => '0', s_aclk_en => '0', s_aresetn => '0', s_axi_araddr(31 downto 0) => B"00000000000000000000000000000000", s_axi_arburst(1 downto 0) => B"00", s_axi_arcache(3 downto 0) => B"0000", s_axi_arid(0) => '0', s_axi_arlen(7 downto 0) => B"00000000", s_axi_arlock(0) => '0', s_axi_arprot(2 downto 0) => B"000", s_axi_arqos(3 downto 0) => B"0000", s_axi_arready => NLW_U0_s_axi_arready_UNCONNECTED, s_axi_arregion(3 downto 0) => B"0000", s_axi_arsize(2 downto 0) => B"000", s_axi_aruser(0) => '0', s_axi_arvalid => '0', s_axi_awaddr(31 downto 0) => B"00000000000000000000000000000000", s_axi_awburst(1 downto 0) => B"00", s_axi_awcache(3 downto 0) => B"0000", s_axi_awid(0) => '0', s_axi_awlen(7 downto 0) => B"00000000", s_axi_awlock(0) => '0', s_axi_awprot(2 downto 0) => B"000", s_axi_awqos(3 downto 0) => B"0000", s_axi_awready => NLW_U0_s_axi_awready_UNCONNECTED, s_axi_awregion(3 downto 0) => B"0000", s_axi_awsize(2 downto 0) => B"000", s_axi_awuser(0) => '0', s_axi_awvalid => '0', s_axi_bid(0) => NLW_U0_s_axi_bid_UNCONNECTED(0), s_axi_bready => '0', s_axi_bresp(1 downto 0) => NLW_U0_s_axi_bresp_UNCONNECTED(1 downto 0), s_axi_buser(0) => NLW_U0_s_axi_buser_UNCONNECTED(0), s_axi_bvalid => NLW_U0_s_axi_bvalid_UNCONNECTED, s_axi_rdata(63 downto 0) => NLW_U0_s_axi_rdata_UNCONNECTED(63 downto 0), s_axi_rid(0) => NLW_U0_s_axi_rid_UNCONNECTED(0), s_axi_rlast => NLW_U0_s_axi_rlast_UNCONNECTED, s_axi_rready => '0', s_axi_rresp(1 downto 0) => NLW_U0_s_axi_rresp_UNCONNECTED(1 downto 0), s_axi_ruser(0) => NLW_U0_s_axi_ruser_UNCONNECTED(0), s_axi_rvalid => NLW_U0_s_axi_rvalid_UNCONNECTED, s_axi_wdata(63 downto 0) => B"0000000000000000000000000000000000000000000000000000000000000000", s_axi_wid(0) => '0', s_axi_wlast => '0', s_axi_wready => NLW_U0_s_axi_wready_UNCONNECTED, s_axi_wstrb(7 downto 0) => B"00000000", s_axi_wuser(0) => '0', s_axi_wvalid => '0', s_axis_tdata(7 downto 0) => B"00000000", s_axis_tdest(0) => '0', s_axis_tid(0) => '0', s_axis_tkeep(0) => '0', s_axis_tlast => '0', s_axis_tready => NLW_U0_s_axis_tready_UNCONNECTED, s_axis_tstrb(0) => '0', s_axis_tuser(3 downto 0) => B"0000", s_axis_tvalid => '0', sbiterr => NLW_U0_sbiterr_UNCONNECTED, sleep => '0', srst => '0', underflow => NLW_U0_underflow_UNCONNECTED, valid => NLW_U0_valid_UNCONNECTED, wr_ack => NLW_U0_wr_ack_UNCONNECTED, wr_clk => '0', wr_data_count(10 downto 0) => NLW_U0_wr_data_count_UNCONNECTED(10 downto 0), wr_en => wr_en, wr_rst => '0', wr_rst_busy => NLW_U0_wr_rst_busy_UNCONNECTED ); end STRUCTURE;
-- Copyright 1986-2015 Xilinx, Inc. All Rights Reserved. -- -------------------------------------------------------------------------------- -- Tool Version: Vivado v.2015.3 (win64) Build 1368829 Mon Sep 28 20:06:43 MDT 2015 -- Date : Wed Mar 30 14:52:12 2016 -- Host : DESKTOP-5FTSDRT running 64-bit major release (build 9200) -- Command : write_vhdl -force -mode funcsim -- C:/Users/SKL/Desktop/ECE532/repo/streamed_encoder_ip_prj2/project_1.runs/scfifo_5in_5out_5kb_synth_1/scfifo_5in_5out_5kb_sim_netlist.vhdl -- Design : scfifo_5in_5out_5kb -- Purpose : This VHDL netlist is a functional simulation representation of the design and should not be modified or -- synthesized. This netlist cannot be used for SDF annotated simulation. -- Device : xc7a200tsbg484-1 -- -------------------------------------------------------------------------------- library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_blk_mem_gen_prim_wrapper is port ( D : out STD_LOGIC_VECTOR ( 4 downto 0 ); clk : in STD_LOGIC; ram_full_fb_i_reg : in STD_LOGIC_VECTOR ( 0 to 0 ); tmp_ram_rd_en : in STD_LOGIC; Q : in STD_LOGIC_VECTOR ( 0 to 0 ); \gcc0.gc0.count_d1_reg[9]\ : in STD_LOGIC_VECTOR ( 9 downto 0 ); \gc0.count_d1_reg[9]\ : in STD_LOGIC_VECTOR ( 9 downto 0 ); din : in STD_LOGIC_VECTOR ( 4 downto 0 ) ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_blk_mem_gen_prim_wrapper : entity is "blk_mem_gen_prim_wrapper"; end scfifo_5in_5out_5kb_blk_mem_gen_prim_wrapper; architecture STRUCTURE of scfifo_5in_5out_5kb_blk_mem_gen_prim_wrapper is signal \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_16\ : STD_LOGIC; signal \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_17\ : STD_LOGIC; signal \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_18\ : STD_LOGIC; signal \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_19\ : STD_LOGIC; signal \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_20\ : STD_LOGIC; signal \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_21\ : STD_LOGIC; signal \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_24\ : STD_LOGIC; signal \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_25\ : STD_LOGIC; signal \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_26\ : STD_LOGIC; signal \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_27\ : STD_LOGIC; signal \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_28\ : STD_LOGIC; signal \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_34\ : STD_LOGIC; signal \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_35\ : STD_LOGIC; signal \NLW_DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_DOADO_UNCONNECTED\ : STD_LOGIC_VECTOR ( 15 downto 0 ); signal \NLW_DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_DOPADOP_UNCONNECTED\ : STD_LOGIC_VECTOR ( 1 downto 0 ); attribute CLOCK_DOMAINS : string; attribute CLOCK_DOMAINS of \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram\ : label is "COMMON"; attribute box_type : string; attribute box_type of \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram\ : label is "PRIMITIVE"; begin \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram\: unisim.vcomponents.RAMB18E1 generic map( DOA_REG => 0, DOB_REG => 0, INITP_00 => X"0000000000000000000000000000000000000000000000000000000000000000", INITP_01 => X"0000000000000000000000000000000000000000000000000000000000000000", INITP_02 => X"0000000000000000000000000000000000000000000000000000000000000000", INITP_03 => X"0000000000000000000000000000000000000000000000000000000000000000", INITP_04 => X"0000000000000000000000000000000000000000000000000000000000000000", INITP_05 => X"0000000000000000000000000000000000000000000000000000000000000000", INITP_06 => X"0000000000000000000000000000000000000000000000000000000000000000", INITP_07 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_00 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_01 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_02 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_03 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_04 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_05 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_06 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_07 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_08 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_09 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_0A => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_0B => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_0C => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_0D => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_0E => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_0F => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_10 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_11 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_12 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_13 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_14 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_15 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_16 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_17 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_18 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_19 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_1A => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_1B => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_1C => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_1D => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_1E => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_1F => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_20 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_21 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_22 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_23 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_24 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_25 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_26 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_27 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_28 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_29 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_2A => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_2B => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_2C => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_2D => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_2E => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_2F => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_30 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_31 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_32 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_33 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_34 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_35 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_36 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_37 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_38 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_39 => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_3A => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_3B => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_3C => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_3D => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_3E => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_3F => X"0000000000000000000000000000000000000000000000000000000000000000", INIT_A => X"00000", INIT_B => X"00000", INIT_FILE => "NONE", IS_CLKARDCLK_INVERTED => '0', IS_CLKBWRCLK_INVERTED => '0', IS_ENARDEN_INVERTED => '0', IS_ENBWREN_INVERTED => '0', IS_RSTRAMARSTRAM_INVERTED => '0', IS_RSTRAMB_INVERTED => '0', IS_RSTREGARSTREG_INVERTED => '0', IS_RSTREGB_INVERTED => '0', RAM_MODE => "TDP", RDADDR_COLLISION_HWCONFIG => "DELAYED_WRITE", READ_WIDTH_A => 18, READ_WIDTH_B => 18, RSTREG_PRIORITY_A => "REGCE", RSTREG_PRIORITY_B => "REGCE", SIM_COLLISION_CHECK => "ALL", SIM_DEVICE => "7SERIES", SRVAL_A => X"00000", SRVAL_B => X"00000", WRITE_MODE_A => "WRITE_FIRST", WRITE_MODE_B => "WRITE_FIRST", WRITE_WIDTH_A => 18, WRITE_WIDTH_B => 18 ) port map ( ADDRARDADDR(13 downto 4) => \gcc0.gc0.count_d1_reg[9]\(9 downto 0), ADDRARDADDR(3 downto 0) => B"0000", ADDRBWRADDR(13 downto 4) => \gc0.count_d1_reg[9]\(9 downto 0), ADDRBWRADDR(3 downto 0) => B"0000", CLKARDCLK => clk, CLKBWRCLK => clk, DIADI(15 downto 10) => B"000000", DIADI(9 downto 8) => din(4 downto 3), DIADI(7 downto 3) => B"00000", DIADI(2 downto 0) => din(2 downto 0), DIBDI(15 downto 0) => B"0000000000000000", DIPADIP(1 downto 0) => B"00", DIPBDIP(1 downto 0) => B"00", DOADO(15 downto 0) => \NLW_DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_DOADO_UNCONNECTED\(15 downto 0), DOBDO(15) => \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_16\, DOBDO(14) => \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_17\, DOBDO(13) => \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_18\, DOBDO(12) => \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_19\, DOBDO(11) => \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_20\, DOBDO(10) => \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_21\, DOBDO(9 downto 8) => D(4 downto 3), DOBDO(7) => \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_24\, DOBDO(6) => \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_25\, DOBDO(5) => \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_26\, DOBDO(4) => \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_27\, DOBDO(3) => \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_28\, DOBDO(2 downto 0) => D(2 downto 0), DOPADOP(1 downto 0) => \NLW_DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_DOPADOP_UNCONNECTED\(1 downto 0), DOPBDOP(1) => \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_34\, DOPBDOP(0) => \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_n_35\, ENARDEN => ram_full_fb_i_reg(0), ENBWREN => tmp_ram_rd_en, REGCEAREGCE => '0', REGCEB => '0', RSTRAMARSTRAM => '0', RSTRAMB => Q(0), RSTREGARSTREG => '0', RSTREGB => '0', WEA(1) => ram_full_fb_i_reg(0), WEA(0) => ram_full_fb_i_reg(0), WEBWE(3 downto 0) => B"0000" ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_compare is port ( comp0 : out STD_LOGIC; v1_reg : in STD_LOGIC_VECTOR ( 4 downto 0 ) ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_compare : entity is "compare"; end scfifo_5in_5out_5kb_compare; architecture STRUCTURE of scfifo_5in_5out_5kb_compare is signal \gmux.gm[3].gms.ms_n_0\ : STD_LOGIC; signal \NLW_gmux.gm[0].gm1.m1_CARRY4_CO_UNCONNECTED\ : STD_LOGIC_VECTOR ( 2 downto 0 ); signal \NLW_gmux.gm[0].gm1.m1_CARRY4_O_UNCONNECTED\ : STD_LOGIC_VECTOR ( 3 downto 0 ); signal \NLW_gmux.gm[4].gms.ms_CARRY4_CO_UNCONNECTED\ : STD_LOGIC_VECTOR ( 3 downto 1 ); signal \NLW_gmux.gm[4].gms.ms_CARRY4_DI_UNCONNECTED\ : STD_LOGIC_VECTOR ( 3 downto 1 ); signal \NLW_gmux.gm[4].gms.ms_CARRY4_O_UNCONNECTED\ : STD_LOGIC_VECTOR ( 3 downto 0 ); signal \NLW_gmux.gm[4].gms.ms_CARRY4_S_UNCONNECTED\ : STD_LOGIC_VECTOR ( 3 downto 1 ); attribute XILINX_LEGACY_PRIM : string; attribute XILINX_LEGACY_PRIM of \gmux.gm[0].gm1.m1_CARRY4\ : label is "(MUXCY,XORCY)"; attribute box_type : string; attribute box_type of \gmux.gm[0].gm1.m1_CARRY4\ : label is "PRIMITIVE"; attribute XILINX_LEGACY_PRIM of \gmux.gm[4].gms.ms_CARRY4\ : label is "(MUXCY,XORCY)"; attribute box_type of \gmux.gm[4].gms.ms_CARRY4\ : label is "PRIMITIVE"; begin \gmux.gm[0].gm1.m1_CARRY4\: unisim.vcomponents.CARRY4 port map ( CI => '0', CO(3) => \gmux.gm[3].gms.ms_n_0\, CO(2 downto 0) => \NLW_gmux.gm[0].gm1.m1_CARRY4_CO_UNCONNECTED\(2 downto 0), CYINIT => '1', DI(3 downto 0) => B"0000", O(3 downto 0) => \NLW_gmux.gm[0].gm1.m1_CARRY4_O_UNCONNECTED\(3 downto 0), S(3 downto 0) => v1_reg(3 downto 0) ); \gmux.gm[4].gms.ms_CARRY4\: unisim.vcomponents.CARRY4 port map ( CI => \gmux.gm[3].gms.ms_n_0\, CO(3 downto 1) => \NLW_gmux.gm[4].gms.ms_CARRY4_CO_UNCONNECTED\(3 downto 1), CO(0) => comp0, CYINIT => '0', DI(3 downto 1) => \NLW_gmux.gm[4].gms.ms_CARRY4_DI_UNCONNECTED\(3 downto 1), DI(0) => '0', O(3 downto 0) => \NLW_gmux.gm[4].gms.ms_CARRY4_O_UNCONNECTED\(3 downto 0), S(3 downto 1) => \NLW_gmux.gm[4].gms.ms_CARRY4_S_UNCONNECTED\(3 downto 1), S(0) => v1_reg(4) ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_compare_0 is port ( comp1 : out STD_LOGIC; v1_reg_1 : in STD_LOGIC_VECTOR ( 4 downto 0 ) ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_compare_0 : entity is "compare"; end scfifo_5in_5out_5kb_compare_0; architecture STRUCTURE of scfifo_5in_5out_5kb_compare_0 is signal \gmux.gm[3].gms.ms_n_0\ : STD_LOGIC; signal \NLW_gmux.gm[0].gm1.m1_CARRY4_CO_UNCONNECTED\ : STD_LOGIC_VECTOR ( 2 downto 0 ); signal \NLW_gmux.gm[0].gm1.m1_CARRY4_O_UNCONNECTED\ : STD_LOGIC_VECTOR ( 3 downto 0 ); signal \NLW_gmux.gm[4].gms.ms_CARRY4_CO_UNCONNECTED\ : STD_LOGIC_VECTOR ( 3 downto 1 ); signal \NLW_gmux.gm[4].gms.ms_CARRY4_DI_UNCONNECTED\ : STD_LOGIC_VECTOR ( 3 downto 1 ); signal \NLW_gmux.gm[4].gms.ms_CARRY4_O_UNCONNECTED\ : STD_LOGIC_VECTOR ( 3 downto 0 ); signal \NLW_gmux.gm[4].gms.ms_CARRY4_S_UNCONNECTED\ : STD_LOGIC_VECTOR ( 3 downto 1 ); attribute XILINX_LEGACY_PRIM : string; attribute XILINX_LEGACY_PRIM of \gmux.gm[0].gm1.m1_CARRY4\ : label is "(MUXCY,XORCY)"; attribute box_type : string; attribute box_type of \gmux.gm[0].gm1.m1_CARRY4\ : label is "PRIMITIVE"; attribute XILINX_LEGACY_PRIM of \gmux.gm[4].gms.ms_CARRY4\ : label is "(MUXCY,XORCY)"; attribute box_type of \gmux.gm[4].gms.ms_CARRY4\ : label is "PRIMITIVE"; begin \gmux.gm[0].gm1.m1_CARRY4\: unisim.vcomponents.CARRY4 port map ( CI => '0', CO(3) => \gmux.gm[3].gms.ms_n_0\, CO(2 downto 0) => \NLW_gmux.gm[0].gm1.m1_CARRY4_CO_UNCONNECTED\(2 downto 0), CYINIT => '1', DI(3 downto 0) => B"0000", O(3 downto 0) => \NLW_gmux.gm[0].gm1.m1_CARRY4_O_UNCONNECTED\(3 downto 0), S(3 downto 0) => v1_reg_1(3 downto 0) ); \gmux.gm[4].gms.ms_CARRY4\: unisim.vcomponents.CARRY4 port map ( CI => \gmux.gm[3].gms.ms_n_0\, CO(3 downto 1) => \NLW_gmux.gm[4].gms.ms_CARRY4_CO_UNCONNECTED\(3 downto 1), CO(0) => comp1, CYINIT => '0', DI(3 downto 1) => \NLW_gmux.gm[4].gms.ms_CARRY4_DI_UNCONNECTED\(3 downto 1), DI(0) => '0', O(3 downto 0) => \NLW_gmux.gm[4].gms.ms_CARRY4_O_UNCONNECTED\(3 downto 0), S(3 downto 1) => \NLW_gmux.gm[4].gms.ms_CARRY4_S_UNCONNECTED\(3 downto 1), S(0) => v1_reg_1(4) ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_compare_1 is port ( comp0 : out STD_LOGIC; v1_reg_0 : in STD_LOGIC_VECTOR ( 4 downto 0 ) ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_compare_1 : entity is "compare"; end scfifo_5in_5out_5kb_compare_1; architecture STRUCTURE of scfifo_5in_5out_5kb_compare_1 is signal \gmux.gm[3].gms.ms_n_0\ : STD_LOGIC; signal \NLW_gmux.gm[0].gm1.m1_CARRY4_CO_UNCONNECTED\ : STD_LOGIC_VECTOR ( 2 downto 0 ); signal \NLW_gmux.gm[0].gm1.m1_CARRY4_O_UNCONNECTED\ : STD_LOGIC_VECTOR ( 3 downto 0 ); signal \NLW_gmux.gm[4].gms.ms_CARRY4_CO_UNCONNECTED\ : STD_LOGIC_VECTOR ( 3 downto 1 ); signal \NLW_gmux.gm[4].gms.ms_CARRY4_DI_UNCONNECTED\ : STD_LOGIC_VECTOR ( 3 downto 1 ); signal \NLW_gmux.gm[4].gms.ms_CARRY4_O_UNCONNECTED\ : STD_LOGIC_VECTOR ( 3 downto 0 ); signal \NLW_gmux.gm[4].gms.ms_CARRY4_S_UNCONNECTED\ : STD_LOGIC_VECTOR ( 3 downto 1 ); attribute XILINX_LEGACY_PRIM : string; attribute XILINX_LEGACY_PRIM of \gmux.gm[0].gm1.m1_CARRY4\ : label is "(MUXCY,XORCY)"; attribute box_type : string; attribute box_type of \gmux.gm[0].gm1.m1_CARRY4\ : label is "PRIMITIVE"; attribute XILINX_LEGACY_PRIM of \gmux.gm[4].gms.ms_CARRY4\ : label is "(MUXCY,XORCY)"; attribute box_type of \gmux.gm[4].gms.ms_CARRY4\ : label is "PRIMITIVE"; begin \gmux.gm[0].gm1.m1_CARRY4\: unisim.vcomponents.CARRY4 port map ( CI => '0', CO(3) => \gmux.gm[3].gms.ms_n_0\, CO(2 downto 0) => \NLW_gmux.gm[0].gm1.m1_CARRY4_CO_UNCONNECTED\(2 downto 0), CYINIT => '1', DI(3 downto 0) => B"0000", O(3 downto 0) => \NLW_gmux.gm[0].gm1.m1_CARRY4_O_UNCONNECTED\(3 downto 0), S(3 downto 0) => v1_reg_0(3 downto 0) ); \gmux.gm[4].gms.ms_CARRY4\: unisim.vcomponents.CARRY4 port map ( CI => \gmux.gm[3].gms.ms_n_0\, CO(3 downto 1) => \NLW_gmux.gm[4].gms.ms_CARRY4_CO_UNCONNECTED\(3 downto 1), CO(0) => comp0, CYINIT => '0', DI(3 downto 1) => \NLW_gmux.gm[4].gms.ms_CARRY4_DI_UNCONNECTED\(3 downto 1), DI(0) => '0', O(3 downto 0) => \NLW_gmux.gm[4].gms.ms_CARRY4_O_UNCONNECTED\(3 downto 0), S(3 downto 1) => \NLW_gmux.gm[4].gms.ms_CARRY4_S_UNCONNECTED\(3 downto 1), S(0) => v1_reg_0(4) ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_compare_2 is port ( comp1 : out STD_LOGIC; v1_reg_1 : in STD_LOGIC_VECTOR ( 4 downto 0 ) ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_compare_2 : entity is "compare"; end scfifo_5in_5out_5kb_compare_2; architecture STRUCTURE of scfifo_5in_5out_5kb_compare_2 is signal \gmux.gm[3].gms.ms_n_0\ : STD_LOGIC; signal \NLW_gmux.gm[0].gm1.m1_CARRY4_CO_UNCONNECTED\ : STD_LOGIC_VECTOR ( 2 downto 0 ); signal \NLW_gmux.gm[0].gm1.m1_CARRY4_O_UNCONNECTED\ : STD_LOGIC_VECTOR ( 3 downto 0 ); signal \NLW_gmux.gm[4].gms.ms_CARRY4_CO_UNCONNECTED\ : STD_LOGIC_VECTOR ( 3 downto 1 ); signal \NLW_gmux.gm[4].gms.ms_CARRY4_DI_UNCONNECTED\ : STD_LOGIC_VECTOR ( 3 downto 1 ); signal \NLW_gmux.gm[4].gms.ms_CARRY4_O_UNCONNECTED\ : STD_LOGIC_VECTOR ( 3 downto 0 ); signal \NLW_gmux.gm[4].gms.ms_CARRY4_S_UNCONNECTED\ : STD_LOGIC_VECTOR ( 3 downto 1 ); attribute XILINX_LEGACY_PRIM : string; attribute XILINX_LEGACY_PRIM of \gmux.gm[0].gm1.m1_CARRY4\ : label is "(MUXCY,XORCY)"; attribute box_type : string; attribute box_type of \gmux.gm[0].gm1.m1_CARRY4\ : label is "PRIMITIVE"; attribute XILINX_LEGACY_PRIM of \gmux.gm[4].gms.ms_CARRY4\ : label is "(MUXCY,XORCY)"; attribute box_type of \gmux.gm[4].gms.ms_CARRY4\ : label is "PRIMITIVE"; begin \gmux.gm[0].gm1.m1_CARRY4\: unisim.vcomponents.CARRY4 port map ( CI => '0', CO(3) => \gmux.gm[3].gms.ms_n_0\, CO(2 downto 0) => \NLW_gmux.gm[0].gm1.m1_CARRY4_CO_UNCONNECTED\(2 downto 0), CYINIT => '1', DI(3 downto 0) => B"0000", O(3 downto 0) => \NLW_gmux.gm[0].gm1.m1_CARRY4_O_UNCONNECTED\(3 downto 0), S(3 downto 0) => v1_reg_1(3 downto 0) ); \gmux.gm[4].gms.ms_CARRY4\: unisim.vcomponents.CARRY4 port map ( CI => \gmux.gm[3].gms.ms_n_0\, CO(3 downto 1) => \NLW_gmux.gm[4].gms.ms_CARRY4_CO_UNCONNECTED\(3 downto 1), CO(0) => comp1, CYINIT => '0', DI(3 downto 1) => \NLW_gmux.gm[4].gms.ms_CARRY4_DI_UNCONNECTED\(3 downto 1), DI(0) => '0', O(3 downto 0) => \NLW_gmux.gm[4].gms.ms_CARRY4_O_UNCONNECTED\(3 downto 0), S(3 downto 1) => \NLW_gmux.gm[4].gms.ms_CARRY4_S_UNCONNECTED\(3 downto 1), S(0) => v1_reg_1(4) ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_rd_bin_cntr is port ( Q : out STD_LOGIC_VECTOR ( 9 downto 0 ); v1_reg : out STD_LOGIC_VECTOR ( 4 downto 0 ); \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram\ : out STD_LOGIC_VECTOR ( 9 downto 0 ); \gcc0.gc0.count_reg[9]\ : in STD_LOGIC_VECTOR ( 9 downto 0 ); E : in STD_LOGIC_VECTOR ( 0 to 0 ); clk : in STD_LOGIC; \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\ : in STD_LOGIC_VECTOR ( 0 to 0 ) ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_rd_bin_cntr : entity is "rd_bin_cntr"; end scfifo_5in_5out_5kb_rd_bin_cntr; architecture STRUCTURE of scfifo_5in_5out_5kb_rd_bin_cntr is signal \^device_7series.no_bmm_info.sdp.simple_prim18.ram\ : STD_LOGIC_VECTOR ( 9 downto 0 ); signal \^q\ : STD_LOGIC_VECTOR ( 9 downto 0 ); signal \gc0.count[9]_i_2_n_0\ : STD_LOGIC; signal plusOp : STD_LOGIC_VECTOR ( 9 downto 0 ); attribute SOFT_HLUTNM : string; attribute SOFT_HLUTNM of \gc0.count[1]_i_1\ : label is "soft_lutpair4"; attribute SOFT_HLUTNM of \gc0.count[2]_i_1\ : label is "soft_lutpair4"; attribute SOFT_HLUTNM of \gc0.count[3]_i_1\ : label is "soft_lutpair2"; attribute SOFT_HLUTNM of \gc0.count[4]_i_1\ : label is "soft_lutpair2"; attribute SOFT_HLUTNM of \gc0.count[6]_i_1\ : label is "soft_lutpair5"; attribute SOFT_HLUTNM of \gc0.count[7]_i_1\ : label is "soft_lutpair5"; attribute SOFT_HLUTNM of \gc0.count[8]_i_1\ : label is "soft_lutpair3"; attribute SOFT_HLUTNM of \gc0.count[9]_i_1\ : label is "soft_lutpair3"; begin \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram\(9 downto 0) <= \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(9 downto 0); Q(9 downto 0) <= \^q\(9 downto 0); \gc0.count[0]_i_1\: unisim.vcomponents.LUT1 generic map( INIT => X"1" ) port map ( I0 => \^q\(0), O => plusOp(0) ); \gc0.count[1]_i_1\: unisim.vcomponents.LUT2 generic map( INIT => X"6" ) port map ( I0 => \^q\(0), I1 => \^q\(1), O => plusOp(1) ); \gc0.count[2]_i_1\: unisim.vcomponents.LUT3 generic map( INIT => X"78" ) port map ( I0 => \^q\(0), I1 => \^q\(1), I2 => \^q\(2), O => plusOp(2) ); \gc0.count[3]_i_1\: unisim.vcomponents.LUT4 generic map( INIT => X"7F80" ) port map ( I0 => \^q\(1), I1 => \^q\(0), I2 => \^q\(2), I3 => \^q\(3), O => plusOp(3) ); \gc0.count[4]_i_1\: unisim.vcomponents.LUT5 generic map( INIT => X"7FFF8000" ) port map ( I0 => \^q\(2), I1 => \^q\(0), I2 => \^q\(1), I3 => \^q\(3), I4 => \^q\(4), O => plusOp(4) ); \gc0.count[5]_i_1\: unisim.vcomponents.LUT6 generic map( INIT => X"7FFFFFFF80000000" ) port map ( I0 => \^q\(3), I1 => \^q\(1), I2 => \^q\(0), I3 => \^q\(2), I4 => \^q\(4), I5 => \^q\(5), O => plusOp(5) ); \gc0.count[6]_i_1\: unisim.vcomponents.LUT2 generic map( INIT => X"9" ) port map ( I0 => \gc0.count[9]_i_2_n_0\, I1 => \^q\(6), O => plusOp(6) ); \gc0.count[7]_i_1\: unisim.vcomponents.LUT3 generic map( INIT => X"B4" ) port map ( I0 => \gc0.count[9]_i_2_n_0\, I1 => \^q\(6), I2 => \^q\(7), O => plusOp(7) ); \gc0.count[8]_i_1\: unisim.vcomponents.LUT4 generic map( INIT => X"DF20" ) port map ( I0 => \^q\(6), I1 => \gc0.count[9]_i_2_n_0\, I2 => \^q\(7), I3 => \^q\(8), O => plusOp(8) ); \gc0.count[9]_i_1\: unisim.vcomponents.LUT5 generic map( INIT => X"F7FF0800" ) port map ( I0 => \^q\(8), I1 => \^q\(7), I2 => \gc0.count[9]_i_2_n_0\, I3 => \^q\(6), I4 => \^q\(9), O => plusOp(9) ); \gc0.count[9]_i_2\: unisim.vcomponents.LUT6 generic map( INIT => X"7FFFFFFFFFFFFFFF" ) port map ( I0 => \^q\(5), I1 => \^q\(3), I2 => \^q\(1), I3 => \^q\(0), I4 => \^q\(2), I5 => \^q\(4), O => \gc0.count[9]_i_2_n_0\ ); \gc0.count_d1_reg[0]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), CLR => \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0), D => \^q\(0), Q => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(0) ); \gc0.count_d1_reg[1]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), CLR => \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0), D => \^q\(1), Q => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(1) ); \gc0.count_d1_reg[2]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), CLR => \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0), D => \^q\(2), Q => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(2) ); \gc0.count_d1_reg[3]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), CLR => \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0), D => \^q\(3), Q => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(3) ); \gc0.count_d1_reg[4]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), CLR => \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0), D => \^q\(4), Q => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(4) ); \gc0.count_d1_reg[5]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), CLR => \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0), D => \^q\(5), Q => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(5) ); \gc0.count_d1_reg[6]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), CLR => \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0), D => \^q\(6), Q => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(6) ); \gc0.count_d1_reg[7]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), CLR => \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0), D => \^q\(7), Q => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(7) ); \gc0.count_d1_reg[8]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), CLR => \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0), D => \^q\(8), Q => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(8) ); \gc0.count_d1_reg[9]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), CLR => \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0), D => \^q\(9), Q => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(9) ); \gc0.count_reg[0]\: unisim.vcomponents.FDPE generic map( INIT => '1' ) port map ( C => clk, CE => E(0), D => plusOp(0), PRE => \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0), Q => \^q\(0) ); \gc0.count_reg[1]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), CLR => \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0), D => plusOp(1), Q => \^q\(1) ); \gc0.count_reg[2]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), CLR => \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0), D => plusOp(2), Q => \^q\(2) ); \gc0.count_reg[3]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), CLR => \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0), D => plusOp(3), Q => \^q\(3) ); \gc0.count_reg[4]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), CLR => \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0), D => plusOp(4), Q => \^q\(4) ); \gc0.count_reg[5]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), CLR => \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0), D => plusOp(5), Q => \^q\(5) ); \gc0.count_reg[6]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), CLR => \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0), D => plusOp(6), Q => \^q\(6) ); \gc0.count_reg[7]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), CLR => \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0), D => plusOp(7), Q => \^q\(7) ); \gc0.count_reg[8]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), CLR => \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0), D => plusOp(8), Q => \^q\(8) ); \gc0.count_reg[9]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), CLR => \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0), D => plusOp(9), Q => \^q\(9) ); \gmux.gm[0].gm1.m1_i_1__2\: unisim.vcomponents.LUT4 generic map( INIT => X"9009" ) port map ( I0 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(0), I1 => \gcc0.gc0.count_reg[9]\(0), I2 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(1), I3 => \gcc0.gc0.count_reg[9]\(1), O => v1_reg(0) ); \gmux.gm[1].gms.ms_i_1__2\: unisim.vcomponents.LUT4 generic map( INIT => X"9009" ) port map ( I0 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(2), I1 => \gcc0.gc0.count_reg[9]\(2), I2 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(3), I3 => \gcc0.gc0.count_reg[9]\(3), O => v1_reg(1) ); \gmux.gm[2].gms.ms_i_1__2\: unisim.vcomponents.LUT4 generic map( INIT => X"9009" ) port map ( I0 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(4), I1 => \gcc0.gc0.count_reg[9]\(4), I2 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(5), I3 => \gcc0.gc0.count_reg[9]\(5), O => v1_reg(2) ); \gmux.gm[3].gms.ms_i_1__2\: unisim.vcomponents.LUT4 generic map( INIT => X"9009" ) port map ( I0 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(6), I1 => \gcc0.gc0.count_reg[9]\(6), I2 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(7), I3 => \gcc0.gc0.count_reg[9]\(7), O => v1_reg(3) ); \gmux.gm[4].gms.ms_i_1__2\: unisim.vcomponents.LUT4 generic map( INIT => X"9009" ) port map ( I0 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(8), I1 => \gcc0.gc0.count_reg[9]\(8), I2 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(9), I3 => \gcc0.gc0.count_reg[9]\(9), O => v1_reg(4) ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_rd_fwft is port ( empty : out STD_LOGIC; tmp_ram_rd_en : out STD_LOGIC; E : out STD_LOGIC_VECTOR ( 0 to 0 ); \goreg_bm.dout_i_reg[4]\ : out STD_LOGIC_VECTOR ( 0 to 0 ); clk : in STD_LOGIC; Q : in STD_LOGIC_VECTOR ( 1 downto 0 ); ram_empty_fb_i_reg : in STD_LOGIC; rd_en : in STD_LOGIC ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_rd_fwft : entity is "rd_fwft"; end scfifo_5in_5out_5kb_rd_fwft; architecture STRUCTURE of scfifo_5in_5out_5kb_rd_fwft is signal curr_fwft_state : STD_LOGIC_VECTOR ( 0 to 0 ); signal empty_fwft_fb : STD_LOGIC; signal empty_fwft_i0 : STD_LOGIC; signal \gpregsm1.curr_fwft_state_reg_n_0_[1]\ : STD_LOGIC; signal next_fwft_state : STD_LOGIC_VECTOR ( 1 downto 0 ); attribute equivalent_register_removal : string; attribute equivalent_register_removal of empty_fwft_fb_reg : label is "no"; attribute SOFT_HLUTNM : string; attribute SOFT_HLUTNM of empty_fwft_i_i_1 : label is "soft_lutpair1"; attribute equivalent_register_removal of empty_fwft_i_reg : label is "no"; attribute SOFT_HLUTNM of \gc0.count_d1[9]_i_1\ : label is "soft_lutpair0"; attribute SOFT_HLUTNM of \goreg_bm.dout_i[4]_i_1\ : label is "soft_lutpair1"; attribute SOFT_HLUTNM of \gpregsm1.curr_fwft_state[1]_i_1\ : label is "soft_lutpair0"; attribute equivalent_register_removal of \gpregsm1.curr_fwft_state_reg[0]\ : label is "no"; attribute equivalent_register_removal of \gpregsm1.curr_fwft_state_reg[1]\ : label is "no"; begin \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_i_2\: unisim.vcomponents.LUT5 generic map( INIT => X"FFFF4555" ) port map ( I0 => ram_empty_fb_i_reg, I1 => rd_en, I2 => curr_fwft_state(0), I3 => \gpregsm1.curr_fwft_state_reg_n_0_[1]\, I4 => Q(0), O => tmp_ram_rd_en ); empty_fwft_fb_reg: unisim.vcomponents.FDPE generic map( INIT => '1' ) port map ( C => clk, CE => '1', D => empty_fwft_i0, PRE => Q(1), Q => empty_fwft_fb ); empty_fwft_i_i_1: unisim.vcomponents.LUT4 generic map( INIT => X"88EA" ) port map ( I0 => empty_fwft_fb, I1 => curr_fwft_state(0), I2 => rd_en, I3 => \gpregsm1.curr_fwft_state_reg_n_0_[1]\, O => empty_fwft_i0 ); empty_fwft_i_reg: unisim.vcomponents.FDPE generic map( INIT => '1' ) port map ( C => clk, CE => '1', D => empty_fwft_i0, PRE => Q(1), Q => empty ); \gc0.count_d1[9]_i_1\: unisim.vcomponents.LUT4 generic map( INIT => X"0B0F" ) port map ( I0 => rd_en, I1 => curr_fwft_state(0), I2 => ram_empty_fb_i_reg, I3 => \gpregsm1.curr_fwft_state_reg_n_0_[1]\, O => E(0) ); \goreg_bm.dout_i[4]_i_1\: unisim.vcomponents.LUT3 generic map( INIT => X"D0" ) port map ( I0 => curr_fwft_state(0), I1 => rd_en, I2 => \gpregsm1.curr_fwft_state_reg_n_0_[1]\, O => \goreg_bm.dout_i_reg[4]\(0) ); \gpregsm1.curr_fwft_state[0]_i_1\: unisim.vcomponents.LUT3 generic map( INIT => X"BA" ) port map ( I0 => \gpregsm1.curr_fwft_state_reg_n_0_[1]\, I1 => rd_en, I2 => curr_fwft_state(0), O => next_fwft_state(0) ); \gpregsm1.curr_fwft_state[1]_i_1\: unisim.vcomponents.LUT4 generic map( INIT => X"3B33" ) port map ( I0 => \gpregsm1.curr_fwft_state_reg_n_0_[1]\, I1 => ram_empty_fb_i_reg, I2 => rd_en, I3 => curr_fwft_state(0), O => next_fwft_state(1) ); \gpregsm1.curr_fwft_state_reg[0]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => '1', CLR => Q(1), D => next_fwft_state(0), Q => curr_fwft_state(0) ); \gpregsm1.curr_fwft_state_reg[1]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => '1', CLR => Q(1), D => next_fwft_state(1), Q => \gpregsm1.curr_fwft_state_reg_n_0_[1]\ ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_reset_blk_ramfifo is port ( s_aclk : in STD_LOGIC; s_aresetn : in STD_LOGIC ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_reset_blk_ramfifo : entity is "reset_blk_ramfifo"; end scfifo_5in_5out_5kb_reset_blk_ramfifo; architecture STRUCTURE of scfifo_5in_5out_5kb_reset_blk_ramfifo is signal inverted_reset : STD_LOGIC; signal rst_d1 : STD_LOGIC; attribute async_reg : string; attribute async_reg of rst_d1 : signal is "true"; attribute msgon : string; attribute msgon of rst_d1 : signal is "true"; signal rst_d2 : STD_LOGIC; attribute async_reg of rst_d2 : signal is "true"; attribute msgon of rst_d2 : signal is "true"; signal rst_d3 : STD_LOGIC; attribute async_reg of rst_d3 : signal is "true"; attribute msgon of rst_d3 : signal is "true"; signal rst_rd_reg1 : STD_LOGIC; attribute async_reg of rst_rd_reg1 : signal is "true"; attribute msgon of rst_rd_reg1 : signal is "true"; signal rst_rd_reg2 : STD_LOGIC; attribute async_reg of rst_rd_reg2 : signal is "true"; attribute msgon of rst_rd_reg2 : signal is "true"; signal rst_wr_reg1 : STD_LOGIC; attribute async_reg of rst_wr_reg1 : signal is "true"; attribute msgon of rst_wr_reg1 : signal is "true"; signal rst_wr_reg2 : STD_LOGIC; attribute async_reg of rst_wr_reg2 : signal is "true"; attribute msgon of rst_wr_reg2 : signal is "true"; attribute ASYNC_REG_boolean : boolean; attribute ASYNC_REG_boolean of \grstd1.grst_full.grst_f.rst_d1_reg\ : label is std.standard.true; attribute KEEP : string; attribute KEEP of \grstd1.grst_full.grst_f.rst_d1_reg\ : label is "yes"; attribute msgon of \grstd1.grst_full.grst_f.rst_d1_reg\ : label is "true"; attribute ASYNC_REG_boolean of \grstd1.grst_full.grst_f.rst_d2_reg\ : label is std.standard.true; attribute KEEP of \grstd1.grst_full.grst_f.rst_d2_reg\ : label is "yes"; attribute msgon of \grstd1.grst_full.grst_f.rst_d2_reg\ : label is "true"; attribute ASYNC_REG_boolean of \grstd1.grst_full.grst_f.rst_d3_reg\ : label is std.standard.true; attribute KEEP of \grstd1.grst_full.grst_f.rst_d3_reg\ : label is "yes"; attribute msgon of \grstd1.grst_full.grst_f.rst_d3_reg\ : label is "true"; attribute ASYNC_REG_boolean of \ngwrdrst.grst.g7serrst.rst_rd_reg1_reg\ : label is std.standard.true; attribute KEEP of \ngwrdrst.grst.g7serrst.rst_rd_reg1_reg\ : label is "yes"; attribute msgon of \ngwrdrst.grst.g7serrst.rst_rd_reg1_reg\ : label is "true"; attribute ASYNC_REG_boolean of \ngwrdrst.grst.g7serrst.rst_rd_reg2_reg\ : label is std.standard.true; attribute KEEP of \ngwrdrst.grst.g7serrst.rst_rd_reg2_reg\ : label is "yes"; attribute msgon of \ngwrdrst.grst.g7serrst.rst_rd_reg2_reg\ : label is "true"; attribute ASYNC_REG_boolean of \ngwrdrst.grst.g7serrst.rst_wr_reg1_reg\ : label is std.standard.true; attribute KEEP of \ngwrdrst.grst.g7serrst.rst_wr_reg1_reg\ : label is "yes"; attribute msgon of \ngwrdrst.grst.g7serrst.rst_wr_reg1_reg\ : label is "true"; attribute ASYNC_REG_boolean of \ngwrdrst.grst.g7serrst.rst_wr_reg2_reg\ : label is std.standard.true; attribute KEEP of \ngwrdrst.grst.g7serrst.rst_wr_reg2_reg\ : label is "yes"; attribute msgon of \ngwrdrst.grst.g7serrst.rst_wr_reg2_reg\ : label is "true"; begin \grstd1.grst_full.grst_f.rst_d1_reg\: unisim.vcomponents.FDPE generic map( INIT => '1' ) port map ( C => s_aclk, CE => '1', D => '0', PRE => inverted_reset, Q => rst_d1 ); \grstd1.grst_full.grst_f.rst_d2_reg\: unisim.vcomponents.FDPE generic map( INIT => '1' ) port map ( C => s_aclk, CE => '1', D => rst_d1, PRE => inverted_reset, Q => rst_d2 ); \grstd1.grst_full.grst_f.rst_d3_reg\: unisim.vcomponents.FDPE generic map( INIT => '1' ) port map ( C => s_aclk, CE => '1', D => rst_d2, PRE => inverted_reset, Q => rst_d3 ); \ngwrdrst.grst.g7serrst.rst_rd_reg1_reg\: unisim.vcomponents.FDPE generic map( INIT => '0' ) port map ( C => s_aclk, CE => '1', D => '0', PRE => inverted_reset, Q => rst_rd_reg1 ); \ngwrdrst.grst.g7serrst.rst_rd_reg2_reg\: unisim.vcomponents.FDPE generic map( INIT => '0' ) port map ( C => s_aclk, CE => '1', D => rst_rd_reg1, PRE => inverted_reset, Q => rst_rd_reg2 ); \ngwrdrst.grst.g7serrst.rst_wr_reg1_i_1\: unisim.vcomponents.LUT1 generic map( INIT => X"1" ) port map ( I0 => s_aresetn, O => inverted_reset ); \ngwrdrst.grst.g7serrst.rst_wr_reg1_reg\: unisim.vcomponents.FDPE generic map( INIT => '0' ) port map ( C => s_aclk, CE => '1', D => '0', PRE => inverted_reset, Q => rst_wr_reg1 ); \ngwrdrst.grst.g7serrst.rst_wr_reg2_reg\: unisim.vcomponents.FDPE generic map( INIT => '0' ) port map ( C => s_aclk, CE => '1', D => rst_wr_reg1, PRE => inverted_reset, Q => rst_wr_reg2 ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity \scfifo_5in_5out_5kb_reset_blk_ramfifo__parameterized0\ is port ( rst_full_ff_i : out STD_LOGIC; rst_full_gen_i : out STD_LOGIC; AR : out STD_LOGIC_VECTOR ( 0 to 0 ); Q : out STD_LOGIC_VECTOR ( 1 downto 0 ); clk : in STD_LOGIC; rst : in STD_LOGIC ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of \scfifo_5in_5out_5kb_reset_blk_ramfifo__parameterized0\ : entity is "reset_blk_ramfifo"; end \scfifo_5in_5out_5kb_reset_blk_ramfifo__parameterized0\; architecture STRUCTURE of \scfifo_5in_5out_5kb_reset_blk_ramfifo__parameterized0\ is signal \ngwrdrst.grst.g7serrst.rd_rst_asreg_d1_reg_n_0\ : STD_LOGIC; signal \ngwrdrst.grst.g7serrst.rd_rst_asreg_i_1_n_0\ : STD_LOGIC; signal \ngwrdrst.grst.g7serrst.rd_rst_reg[2]_i_1_n_0\ : STD_LOGIC; signal \ngwrdrst.grst.g7serrst.wr_rst_asreg_d1_reg_n_0\ : STD_LOGIC; signal \ngwrdrst.grst.g7serrst.wr_rst_asreg_i_1_n_0\ : STD_LOGIC; signal \ngwrdrst.grst.g7serrst.wr_rst_reg[1]_i_1_n_0\ : STD_LOGIC; signal rd_rst_asreg : STD_LOGIC; signal rd_rst_asreg_d2 : STD_LOGIC; signal rst_d1 : STD_LOGIC; attribute async_reg : string; attribute async_reg of rst_d1 : signal is "true"; attribute msgon : string; attribute msgon of rst_d1 : signal is "true"; signal rst_d2 : STD_LOGIC; attribute async_reg of rst_d2 : signal is "true"; attribute msgon of rst_d2 : signal is "true"; signal rst_d3 : STD_LOGIC; attribute async_reg of rst_d3 : signal is "true"; attribute msgon of rst_d3 : signal is "true"; signal rst_rd_reg1 : STD_LOGIC; attribute async_reg of rst_rd_reg1 : signal is "true"; attribute msgon of rst_rd_reg1 : signal is "true"; signal rst_rd_reg2 : STD_LOGIC; attribute async_reg of rst_rd_reg2 : signal is "true"; attribute msgon of rst_rd_reg2 : signal is "true"; signal rst_wr_reg1 : STD_LOGIC; attribute async_reg of rst_wr_reg1 : signal is "true"; attribute msgon of rst_wr_reg1 : signal is "true"; signal rst_wr_reg2 : STD_LOGIC; attribute async_reg of rst_wr_reg2 : signal is "true"; attribute msgon of rst_wr_reg2 : signal is "true"; signal wr_rst_asreg : STD_LOGIC; signal wr_rst_asreg_d2 : STD_LOGIC; attribute ASYNC_REG_boolean : boolean; attribute ASYNC_REG_boolean of \grstd1.grst_full.grst_f.rst_d1_reg\ : label is std.standard.true; attribute KEEP : string; attribute KEEP of \grstd1.grst_full.grst_f.rst_d1_reg\ : label is "yes"; attribute msgon of \grstd1.grst_full.grst_f.rst_d1_reg\ : label is "true"; attribute ASYNC_REG_boolean of \grstd1.grst_full.grst_f.rst_d2_reg\ : label is std.standard.true; attribute KEEP of \grstd1.grst_full.grst_f.rst_d2_reg\ : label is "yes"; attribute msgon of \grstd1.grst_full.grst_f.rst_d2_reg\ : label is "true"; attribute ASYNC_REG_boolean of \grstd1.grst_full.grst_f.rst_d3_reg\ : label is std.standard.true; attribute KEEP of \grstd1.grst_full.grst_f.rst_d3_reg\ : label is "yes"; attribute msgon of \grstd1.grst_full.grst_f.rst_d3_reg\ : label is "true"; attribute equivalent_register_removal : string; attribute equivalent_register_removal of \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[0]\ : label is "no"; attribute equivalent_register_removal of \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\ : label is "no"; attribute ASYNC_REG_boolean of \ngwrdrst.grst.g7serrst.rst_rd_reg1_reg\ : label is std.standard.true; attribute KEEP of \ngwrdrst.grst.g7serrst.rst_rd_reg1_reg\ : label is "yes"; attribute msgon of \ngwrdrst.grst.g7serrst.rst_rd_reg1_reg\ : label is "true"; attribute ASYNC_REG_boolean of \ngwrdrst.grst.g7serrst.rst_rd_reg2_reg\ : label is std.standard.true; attribute KEEP of \ngwrdrst.grst.g7serrst.rst_rd_reg2_reg\ : label is "yes"; attribute msgon of \ngwrdrst.grst.g7serrst.rst_rd_reg2_reg\ : label is "true"; attribute ASYNC_REG_boolean of \ngwrdrst.grst.g7serrst.rst_wr_reg1_reg\ : label is std.standard.true; attribute KEEP of \ngwrdrst.grst.g7serrst.rst_wr_reg1_reg\ : label is "yes"; attribute msgon of \ngwrdrst.grst.g7serrst.rst_wr_reg1_reg\ : label is "true"; attribute ASYNC_REG_boolean of \ngwrdrst.grst.g7serrst.rst_wr_reg2_reg\ : label is std.standard.true; attribute KEEP of \ngwrdrst.grst.g7serrst.rst_wr_reg2_reg\ : label is "yes"; attribute msgon of \ngwrdrst.grst.g7serrst.rst_wr_reg2_reg\ : label is "true"; attribute equivalent_register_removal of \ngwrdrst.grst.g7serrst.wr_rst_reg_reg[1]\ : label is "no"; begin rst_full_ff_i <= rst_d2; rst_full_gen_i <= rst_d3; \grstd1.grst_full.grst_f.rst_d1_reg\: unisim.vcomponents.FDPE generic map( INIT => '1' ) port map ( C => clk, CE => '1', D => '0', PRE => rst, Q => rst_d1 ); \grstd1.grst_full.grst_f.rst_d2_reg\: unisim.vcomponents.FDPE generic map( INIT => '1' ) port map ( C => clk, CE => '1', D => rst_d1, PRE => rst, Q => rst_d2 ); \grstd1.grst_full.grst_f.rst_d3_reg\: unisim.vcomponents.FDPE generic map( INIT => '1' ) port map ( C => clk, CE => '1', D => rst_d2, PRE => rst, Q => rst_d3 ); \ngwrdrst.grst.g7serrst.rd_rst_asreg_d1_reg\: unisim.vcomponents.FDRE generic map( INIT => '0' ) port map ( C => clk, CE => '1', D => rd_rst_asreg, Q => \ngwrdrst.grst.g7serrst.rd_rst_asreg_d1_reg_n_0\, R => '0' ); \ngwrdrst.grst.g7serrst.rd_rst_asreg_d2_reg\: unisim.vcomponents.FDRE generic map( INIT => '0' ) port map ( C => clk, CE => '1', D => \ngwrdrst.grst.g7serrst.rd_rst_asreg_d1_reg_n_0\, Q => rd_rst_asreg_d2, R => '0' ); \ngwrdrst.grst.g7serrst.rd_rst_asreg_i_1\: unisim.vcomponents.LUT2 generic map( INIT => X"2" ) port map ( I0 => rd_rst_asreg, I1 => \ngwrdrst.grst.g7serrst.rd_rst_asreg_d1_reg_n_0\, O => \ngwrdrst.grst.g7serrst.rd_rst_asreg_i_1_n_0\ ); \ngwrdrst.grst.g7serrst.rd_rst_asreg_reg\: unisim.vcomponents.FDPE generic map( INIT => '1' ) port map ( C => clk, CE => '1', D => \ngwrdrst.grst.g7serrst.rd_rst_asreg_i_1_n_0\, PRE => rst_rd_reg2, Q => rd_rst_asreg ); \ngwrdrst.grst.g7serrst.rd_rst_reg[2]_i_1\: unisim.vcomponents.LUT2 generic map( INIT => X"2" ) port map ( I0 => rd_rst_asreg, I1 => rd_rst_asreg_d2, O => \ngwrdrst.grst.g7serrst.rd_rst_reg[2]_i_1_n_0\ ); \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[0]\: unisim.vcomponents.FDPE generic map( INIT => '1' ) port map ( C => clk, CE => '1', D => '0', PRE => \ngwrdrst.grst.g7serrst.rd_rst_reg[2]_i_1_n_0\, Q => Q(0) ); \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\: unisim.vcomponents.FDPE generic map( INIT => '1' ) port map ( C => clk, CE => '1', D => '0', PRE => \ngwrdrst.grst.g7serrst.rd_rst_reg[2]_i_1_n_0\, Q => Q(1) ); \ngwrdrst.grst.g7serrst.rst_rd_reg1_reg\: unisim.vcomponents.FDPE generic map( INIT => '0' ) port map ( C => clk, CE => '1', D => '0', PRE => rst, Q => rst_rd_reg1 ); \ngwrdrst.grst.g7serrst.rst_rd_reg2_reg\: unisim.vcomponents.FDPE generic map( INIT => '0' ) port map ( C => clk, CE => '1', D => rst_rd_reg1, PRE => rst, Q => rst_rd_reg2 ); \ngwrdrst.grst.g7serrst.rst_wr_reg1_reg\: unisim.vcomponents.FDPE generic map( INIT => '0' ) port map ( C => clk, CE => '1', D => '0', PRE => rst, Q => rst_wr_reg1 ); \ngwrdrst.grst.g7serrst.rst_wr_reg2_reg\: unisim.vcomponents.FDPE generic map( INIT => '0' ) port map ( C => clk, CE => '1', D => rst_wr_reg1, PRE => rst, Q => rst_wr_reg2 ); \ngwrdrst.grst.g7serrst.wr_rst_asreg_d1_reg\: unisim.vcomponents.FDRE generic map( INIT => '0' ) port map ( C => clk, CE => '1', D => wr_rst_asreg, Q => \ngwrdrst.grst.g7serrst.wr_rst_asreg_d1_reg_n_0\, R => '0' ); \ngwrdrst.grst.g7serrst.wr_rst_asreg_d2_reg\: unisim.vcomponents.FDRE generic map( INIT => '0' ) port map ( C => clk, CE => '1', D => \ngwrdrst.grst.g7serrst.wr_rst_asreg_d1_reg_n_0\, Q => wr_rst_asreg_d2, R => '0' ); \ngwrdrst.grst.g7serrst.wr_rst_asreg_i_1\: unisim.vcomponents.LUT2 generic map( INIT => X"2" ) port map ( I0 => wr_rst_asreg, I1 => \ngwrdrst.grst.g7serrst.wr_rst_asreg_d1_reg_n_0\, O => \ngwrdrst.grst.g7serrst.wr_rst_asreg_i_1_n_0\ ); \ngwrdrst.grst.g7serrst.wr_rst_asreg_reg\: unisim.vcomponents.FDPE generic map( INIT => '1' ) port map ( C => clk, CE => '1', D => \ngwrdrst.grst.g7serrst.wr_rst_asreg_i_1_n_0\, PRE => rst_wr_reg2, Q => wr_rst_asreg ); \ngwrdrst.grst.g7serrst.wr_rst_reg[1]_i_1\: unisim.vcomponents.LUT2 generic map( INIT => X"2" ) port map ( I0 => wr_rst_asreg, I1 => wr_rst_asreg_d2, O => \ngwrdrst.grst.g7serrst.wr_rst_reg[1]_i_1_n_0\ ); \ngwrdrst.grst.g7serrst.wr_rst_reg_reg[1]\: unisim.vcomponents.FDPE generic map( INIT => '1' ) port map ( C => clk, CE => '1', D => '0', PRE => \ngwrdrst.grst.g7serrst.wr_rst_reg[1]_i_1_n_0\, Q => AR(0) ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_wr_bin_cntr is port ( Q : out STD_LOGIC_VECTOR ( 9 downto 0 ); ram_empty_fb_i_reg : out STD_LOGIC; ram_full_comb : out STD_LOGIC; v1_reg_1 : out STD_LOGIC_VECTOR ( 4 downto 0 ); \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram\ : out STD_LOGIC_VECTOR ( 9 downto 0 ); v1_reg : out STD_LOGIC_VECTOR ( 4 downto 0 ); v1_reg_0 : out STD_LOGIC_VECTOR ( 4 downto 0 ); p_18_out : in STD_LOGIC; comp0 : in STD_LOGIC; E : in STD_LOGIC_VECTOR ( 0 to 0 ); wr_en : in STD_LOGIC; p_1_out : in STD_LOGIC; comp1 : in STD_LOGIC; comp0_2 : in STD_LOGIC; rst_full_gen_i : in STD_LOGIC; comp1_3 : in STD_LOGIC; \gc0.count_d1_reg[9]\ : in STD_LOGIC_VECTOR ( 9 downto 0 ); \gc0.count_reg[9]\ : in STD_LOGIC_VECTOR ( 9 downto 0 ); ram_full_fb_i_reg : in STD_LOGIC_VECTOR ( 0 to 0 ); clk : in STD_LOGIC; AR : in STD_LOGIC_VECTOR ( 0 to 0 ) ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_wr_bin_cntr : entity is "wr_bin_cntr"; end scfifo_5in_5out_5kb_wr_bin_cntr; architecture STRUCTURE of scfifo_5in_5out_5kb_wr_bin_cntr is signal \^device_7series.no_bmm_info.sdp.simple_prim18.ram\ : STD_LOGIC_VECTOR ( 9 downto 0 ); signal \^q\ : STD_LOGIC_VECTOR ( 9 downto 0 ); signal \gcc0.gc0.count[9]_i_2_n_0\ : STD_LOGIC; signal \plusOp__0\ : STD_LOGIC_VECTOR ( 9 downto 0 ); attribute SOFT_HLUTNM : string; attribute SOFT_HLUTNM of \gcc0.gc0.count[1]_i_1\ : label is "soft_lutpair9"; attribute SOFT_HLUTNM of \gcc0.gc0.count[2]_i_1\ : label is "soft_lutpair9"; attribute SOFT_HLUTNM of \gcc0.gc0.count[3]_i_1\ : label is "soft_lutpair6"; attribute SOFT_HLUTNM of \gcc0.gc0.count[4]_i_1\ : label is "soft_lutpair6"; attribute SOFT_HLUTNM of \gcc0.gc0.count[6]_i_1\ : label is "soft_lutpair8"; attribute SOFT_HLUTNM of \gcc0.gc0.count[7]_i_1\ : label is "soft_lutpair8"; attribute SOFT_HLUTNM of \gcc0.gc0.count[8]_i_1\ : label is "soft_lutpair7"; attribute SOFT_HLUTNM of \gcc0.gc0.count[9]_i_1\ : label is "soft_lutpair7"; begin \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram\(9 downto 0) <= \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(9 downto 0); Q(9 downto 0) <= \^q\(9 downto 0); \gcc0.gc0.count[0]_i_1\: unisim.vcomponents.LUT1 generic map( INIT => X"1" ) port map ( I0 => \^q\(0), O => \plusOp__0\(0) ); \gcc0.gc0.count[1]_i_1\: unisim.vcomponents.LUT2 generic map( INIT => X"6" ) port map ( I0 => \^q\(0), I1 => \^q\(1), O => \plusOp__0\(1) ); \gcc0.gc0.count[2]_i_1\: unisim.vcomponents.LUT3 generic map( INIT => X"78" ) port map ( I0 => \^q\(0), I1 => \^q\(1), I2 => \^q\(2), O => \plusOp__0\(2) ); \gcc0.gc0.count[3]_i_1\: unisim.vcomponents.LUT4 generic map( INIT => X"7F80" ) port map ( I0 => \^q\(1), I1 => \^q\(0), I2 => \^q\(2), I3 => \^q\(3), O => \plusOp__0\(3) ); \gcc0.gc0.count[4]_i_1\: unisim.vcomponents.LUT5 generic map( INIT => X"7FFF8000" ) port map ( I0 => \^q\(2), I1 => \^q\(0), I2 => \^q\(1), I3 => \^q\(3), I4 => \^q\(4), O => \plusOp__0\(4) ); \gcc0.gc0.count[5]_i_1\: unisim.vcomponents.LUT6 generic map( INIT => X"7FFFFFFF80000000" ) port map ( I0 => \^q\(3), I1 => \^q\(1), I2 => \^q\(0), I3 => \^q\(2), I4 => \^q\(4), I5 => \^q\(5), O => \plusOp__0\(5) ); \gcc0.gc0.count[6]_i_1\: unisim.vcomponents.LUT2 generic map( INIT => X"9" ) port map ( I0 => \gcc0.gc0.count[9]_i_2_n_0\, I1 => \^q\(6), O => \plusOp__0\(6) ); \gcc0.gc0.count[7]_i_1\: unisim.vcomponents.LUT3 generic map( INIT => X"B4" ) port map ( I0 => \gcc0.gc0.count[9]_i_2_n_0\, I1 => \^q\(6), I2 => \^q\(7), O => \plusOp__0\(7) ); \gcc0.gc0.count[8]_i_1\: unisim.vcomponents.LUT4 generic map( INIT => X"DF20" ) port map ( I0 => \^q\(6), I1 => \gcc0.gc0.count[9]_i_2_n_0\, I2 => \^q\(7), I3 => \^q\(8), O => \plusOp__0\(8) ); \gcc0.gc0.count[9]_i_1\: unisim.vcomponents.LUT5 generic map( INIT => X"F7FF0800" ) port map ( I0 => \^q\(8), I1 => \^q\(7), I2 => \gcc0.gc0.count[9]_i_2_n_0\, I3 => \^q\(6), I4 => \^q\(9), O => \plusOp__0\(9) ); \gcc0.gc0.count[9]_i_2\: unisim.vcomponents.LUT6 generic map( INIT => X"7FFFFFFFFFFFFFFF" ) port map ( I0 => \^q\(5), I1 => \^q\(3), I2 => \^q\(1), I3 => \^q\(0), I4 => \^q\(2), I5 => \^q\(4), O => \gcc0.gc0.count[9]_i_2_n_0\ ); \gcc0.gc0.count_d1_reg[0]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => ram_full_fb_i_reg(0), CLR => AR(0), D => \^q\(0), Q => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(0) ); \gcc0.gc0.count_d1_reg[1]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => ram_full_fb_i_reg(0), CLR => AR(0), D => \^q\(1), Q => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(1) ); \gcc0.gc0.count_d1_reg[2]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => ram_full_fb_i_reg(0), CLR => AR(0), D => \^q\(2), Q => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(2) ); \gcc0.gc0.count_d1_reg[3]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => ram_full_fb_i_reg(0), CLR => AR(0), D => \^q\(3), Q => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(3) ); \gcc0.gc0.count_d1_reg[4]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => ram_full_fb_i_reg(0), CLR => AR(0), D => \^q\(4), Q => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(4) ); \gcc0.gc0.count_d1_reg[5]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => ram_full_fb_i_reg(0), CLR => AR(0), D => \^q\(5), Q => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(5) ); \gcc0.gc0.count_d1_reg[6]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => ram_full_fb_i_reg(0), CLR => AR(0), D => \^q\(6), Q => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(6) ); \gcc0.gc0.count_d1_reg[7]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => ram_full_fb_i_reg(0), CLR => AR(0), D => \^q\(7), Q => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(7) ); \gcc0.gc0.count_d1_reg[8]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => ram_full_fb_i_reg(0), CLR => AR(0), D => \^q\(8), Q => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(8) ); \gcc0.gc0.count_d1_reg[9]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => ram_full_fb_i_reg(0), CLR => AR(0), D => \^q\(9), Q => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(9) ); \gcc0.gc0.count_reg[0]\: unisim.vcomponents.FDPE generic map( INIT => '1' ) port map ( C => clk, CE => ram_full_fb_i_reg(0), D => \plusOp__0\(0), PRE => AR(0), Q => \^q\(0) ); \gcc0.gc0.count_reg[1]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => ram_full_fb_i_reg(0), CLR => AR(0), D => \plusOp__0\(1), Q => \^q\(1) ); \gcc0.gc0.count_reg[2]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => ram_full_fb_i_reg(0), CLR => AR(0), D => \plusOp__0\(2), Q => \^q\(2) ); \gcc0.gc0.count_reg[3]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => ram_full_fb_i_reg(0), CLR => AR(0), D => \plusOp__0\(3), Q => \^q\(3) ); \gcc0.gc0.count_reg[4]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => ram_full_fb_i_reg(0), CLR => AR(0), D => \plusOp__0\(4), Q => \^q\(4) ); \gcc0.gc0.count_reg[5]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => ram_full_fb_i_reg(0), CLR => AR(0), D => \plusOp__0\(5), Q => \^q\(5) ); \gcc0.gc0.count_reg[6]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => ram_full_fb_i_reg(0), CLR => AR(0), D => \plusOp__0\(6), Q => \^q\(6) ); \gcc0.gc0.count_reg[7]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => ram_full_fb_i_reg(0), CLR => AR(0), D => \plusOp__0\(7), Q => \^q\(7) ); \gcc0.gc0.count_reg[8]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => ram_full_fb_i_reg(0), CLR => AR(0), D => \plusOp__0\(8), Q => \^q\(8) ); \gcc0.gc0.count_reg[9]\: unisim.vcomponents.FDCE generic map( INIT => '0' ) port map ( C => clk, CE => ram_full_fb_i_reg(0), CLR => AR(0), D => \plusOp__0\(9), Q => \^q\(9) ); \gmux.gm[0].gm1.m1_i_1\: unisim.vcomponents.LUT4 generic map( INIT => X"9009" ) port map ( I0 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(1), I1 => \gc0.count_d1_reg[9]\(1), I2 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(0), I3 => \gc0.count_d1_reg[9]\(0), O => v1_reg_1(0) ); \gmux.gm[0].gm1.m1_i_1__0\: unisim.vcomponents.LUT4 generic map( INIT => X"9009" ) port map ( I0 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(1), I1 => \gc0.count_d1_reg[9]\(1), I2 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(0), I3 => \gc0.count_d1_reg[9]\(0), O => v1_reg(0) ); \gmux.gm[0].gm1.m1_i_1__1\: unisim.vcomponents.LUT4 generic map( INIT => X"9009" ) port map ( I0 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(0), I1 => \gc0.count_reg[9]\(0), I2 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(1), I3 => \gc0.count_reg[9]\(1), O => v1_reg_0(0) ); \gmux.gm[1].gms.ms_i_1\: unisim.vcomponents.LUT4 generic map( INIT => X"9009" ) port map ( I0 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(3), I1 => \gc0.count_d1_reg[9]\(3), I2 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(2), I3 => \gc0.count_d1_reg[9]\(2), O => v1_reg_1(1) ); \gmux.gm[1].gms.ms_i_1__0\: unisim.vcomponents.LUT4 generic map( INIT => X"9009" ) port map ( I0 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(3), I1 => \gc0.count_d1_reg[9]\(3), I2 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(2), I3 => \gc0.count_d1_reg[9]\(2), O => v1_reg(1) ); \gmux.gm[1].gms.ms_i_1__1\: unisim.vcomponents.LUT4 generic map( INIT => X"9009" ) port map ( I0 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(2), I1 => \gc0.count_reg[9]\(2), I2 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(3), I3 => \gc0.count_reg[9]\(3), O => v1_reg_0(1) ); \gmux.gm[2].gms.ms_i_1\: unisim.vcomponents.LUT4 generic map( INIT => X"9009" ) port map ( I0 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(5), I1 => \gc0.count_d1_reg[9]\(5), I2 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(4), I3 => \gc0.count_d1_reg[9]\(4), O => v1_reg_1(2) ); \gmux.gm[2].gms.ms_i_1__0\: unisim.vcomponents.LUT4 generic map( INIT => X"9009" ) port map ( I0 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(5), I1 => \gc0.count_d1_reg[9]\(5), I2 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(4), I3 => \gc0.count_d1_reg[9]\(4), O => v1_reg(2) ); \gmux.gm[2].gms.ms_i_1__1\: unisim.vcomponents.LUT4 generic map( INIT => X"9009" ) port map ( I0 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(4), I1 => \gc0.count_reg[9]\(4), I2 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(5), I3 => \gc0.count_reg[9]\(5), O => v1_reg_0(2) ); \gmux.gm[3].gms.ms_i_1\: unisim.vcomponents.LUT4 generic map( INIT => X"9009" ) port map ( I0 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(7), I1 => \gc0.count_d1_reg[9]\(7), I2 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(6), I3 => \gc0.count_d1_reg[9]\(6), O => v1_reg_1(3) ); \gmux.gm[3].gms.ms_i_1__0\: unisim.vcomponents.LUT4 generic map( INIT => X"9009" ) port map ( I0 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(7), I1 => \gc0.count_d1_reg[9]\(7), I2 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(6), I3 => \gc0.count_d1_reg[9]\(6), O => v1_reg(3) ); \gmux.gm[3].gms.ms_i_1__1\: unisim.vcomponents.LUT4 generic map( INIT => X"9009" ) port map ( I0 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(6), I1 => \gc0.count_reg[9]\(6), I2 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(7), I3 => \gc0.count_reg[9]\(7), O => v1_reg_0(3) ); \gmux.gm[4].gms.ms_i_1\: unisim.vcomponents.LUT4 generic map( INIT => X"9009" ) port map ( I0 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(9), I1 => \gc0.count_d1_reg[9]\(9), I2 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(8), I3 => \gc0.count_d1_reg[9]\(8), O => v1_reg_1(4) ); \gmux.gm[4].gms.ms_i_1__0\: unisim.vcomponents.LUT4 generic map( INIT => X"9009" ) port map ( I0 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(9), I1 => \gc0.count_d1_reg[9]\(9), I2 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(8), I3 => \gc0.count_d1_reg[9]\(8), O => v1_reg(4) ); \gmux.gm[4].gms.ms_i_1__1\: unisim.vcomponents.LUT4 generic map( INIT => X"9009" ) port map ( I0 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(8), I1 => \gc0.count_reg[9]\(8), I2 => \^device_7series.no_bmm_info.sdp.simple_prim18.ram\(9), I3 => \gc0.count_reg[9]\(9), O => v1_reg_0(4) ); ram_empty_fb_i_i_1: unisim.vcomponents.LUT6 generic map( INIT => X"FAFA22FAAAAA22AA" ) port map ( I0 => p_18_out, I1 => comp0, I2 => E(0), I3 => wr_en, I4 => p_1_out, I5 => comp1, O => ram_empty_fb_i_reg ); ram_full_i_i_1: unisim.vcomponents.LUT6 generic map( INIT => X"131313130F000000" ) port map ( I0 => comp0_2, I1 => rst_full_gen_i, I2 => E(0), I3 => comp1_3, I4 => wr_en, I5 => p_1_out, O => ram_full_comb ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_blk_mem_gen_prim_width is port ( D : out STD_LOGIC_VECTOR ( 4 downto 0 ); clk : in STD_LOGIC; ram_full_fb_i_reg : in STD_LOGIC_VECTOR ( 0 to 0 ); tmp_ram_rd_en : in STD_LOGIC; Q : in STD_LOGIC_VECTOR ( 0 to 0 ); \gcc0.gc0.count_d1_reg[9]\ : in STD_LOGIC_VECTOR ( 9 downto 0 ); \gc0.count_d1_reg[9]\ : in STD_LOGIC_VECTOR ( 9 downto 0 ); din : in STD_LOGIC_VECTOR ( 4 downto 0 ) ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_blk_mem_gen_prim_width : entity is "blk_mem_gen_prim_width"; end scfifo_5in_5out_5kb_blk_mem_gen_prim_width; architecture STRUCTURE of scfifo_5in_5out_5kb_blk_mem_gen_prim_width is begin \prim_noinit.ram\: entity work.scfifo_5in_5out_5kb_blk_mem_gen_prim_wrapper port map ( D(4 downto 0) => D(4 downto 0), Q(0) => Q(0), clk => clk, din(4 downto 0) => din(4 downto 0), \gc0.count_d1_reg[9]\(9 downto 0) => \gc0.count_d1_reg[9]\(9 downto 0), \gcc0.gc0.count_d1_reg[9]\(9 downto 0) => \gcc0.gc0.count_d1_reg[9]\(9 downto 0), ram_full_fb_i_reg(0) => ram_full_fb_i_reg(0), tmp_ram_rd_en => tmp_ram_rd_en ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_rd_status_flags_ss is port ( comp0 : out STD_LOGIC; comp1 : out STD_LOGIC; p_18_out : out STD_LOGIC; v1_reg_0 : in STD_LOGIC_VECTOR ( 4 downto 0 ); v1_reg_1 : in STD_LOGIC_VECTOR ( 4 downto 0 ); ram_empty_fb_i_reg_0 : in STD_LOGIC; clk : in STD_LOGIC; Q : in STD_LOGIC_VECTOR ( 0 to 0 ) ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_rd_status_flags_ss : entity is "rd_status_flags_ss"; end scfifo_5in_5out_5kb_rd_status_flags_ss; architecture STRUCTURE of scfifo_5in_5out_5kb_rd_status_flags_ss is attribute equivalent_register_removal : string; attribute equivalent_register_removal of ram_empty_fb_i_reg : label is "no"; begin c1: entity work.scfifo_5in_5out_5kb_compare_1 port map ( comp0 => comp0, v1_reg_0(4 downto 0) => v1_reg_0(4 downto 0) ); c2: entity work.scfifo_5in_5out_5kb_compare_2 port map ( comp1 => comp1, v1_reg_1(4 downto 0) => v1_reg_1(4 downto 0) ); ram_empty_fb_i_reg: unisim.vcomponents.FDPE generic map( INIT => '1' ) port map ( C => clk, CE => '1', D => ram_empty_fb_i_reg_0, PRE => Q(0), Q => p_18_out ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_wr_status_flags_ss is port ( comp0 : out STD_LOGIC; comp1 : out STD_LOGIC; p_1_out : out STD_LOGIC; full : out STD_LOGIC; E : out STD_LOGIC_VECTOR ( 0 to 0 ); v1_reg : in STD_LOGIC_VECTOR ( 4 downto 0 ); v1_reg_1 : in STD_LOGIC_VECTOR ( 4 downto 0 ); ram_full_comb : in STD_LOGIC; clk : in STD_LOGIC; rst_full_ff_i : in STD_LOGIC; wr_en : in STD_LOGIC ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_wr_status_flags_ss : entity is "wr_status_flags_ss"; end scfifo_5in_5out_5kb_wr_status_flags_ss; architecture STRUCTURE of scfifo_5in_5out_5kb_wr_status_flags_ss is signal \^p_1_out\ : STD_LOGIC; attribute equivalent_register_removal : string; attribute equivalent_register_removal of ram_full_fb_i_reg : label is "no"; attribute equivalent_register_removal of ram_full_i_reg : label is "no"; begin p_1_out <= \^p_1_out\; \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram_i_1\: unisim.vcomponents.LUT2 generic map( INIT => X"2" ) port map ( I0 => wr_en, I1 => \^p_1_out\, O => E(0) ); c0: entity work.scfifo_5in_5out_5kb_compare port map ( comp0 => comp0, v1_reg(4 downto 0) => v1_reg(4 downto 0) ); c1: entity work.scfifo_5in_5out_5kb_compare_0 port map ( comp1 => comp1, v1_reg_1(4 downto 0) => v1_reg_1(4 downto 0) ); ram_full_fb_i_reg: unisim.vcomponents.FDPE generic map( INIT => '1' ) port map ( C => clk, CE => '1', D => ram_full_comb, PRE => rst_full_ff_i, Q => \^p_1_out\ ); ram_full_i_reg: unisim.vcomponents.FDPE generic map( INIT => '1' ) port map ( C => clk, CE => '1', D => ram_full_comb, PRE => rst_full_ff_i, Q => full ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_blk_mem_gen_generic_cstr is port ( D : out STD_LOGIC_VECTOR ( 4 downto 0 ); clk : in STD_LOGIC; ram_full_fb_i_reg : in STD_LOGIC_VECTOR ( 0 to 0 ); tmp_ram_rd_en : in STD_LOGIC; Q : in STD_LOGIC_VECTOR ( 0 to 0 ); \gcc0.gc0.count_d1_reg[9]\ : in STD_LOGIC_VECTOR ( 9 downto 0 ); \gc0.count_d1_reg[9]\ : in STD_LOGIC_VECTOR ( 9 downto 0 ); din : in STD_LOGIC_VECTOR ( 4 downto 0 ) ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_blk_mem_gen_generic_cstr : entity is "blk_mem_gen_generic_cstr"; end scfifo_5in_5out_5kb_blk_mem_gen_generic_cstr; architecture STRUCTURE of scfifo_5in_5out_5kb_blk_mem_gen_generic_cstr is begin \ramloop[0].ram.r\: entity work.scfifo_5in_5out_5kb_blk_mem_gen_prim_width port map ( D(4 downto 0) => D(4 downto 0), Q(0) => Q(0), clk => clk, din(4 downto 0) => din(4 downto 0), \gc0.count_d1_reg[9]\(9 downto 0) => \gc0.count_d1_reg[9]\(9 downto 0), \gcc0.gc0.count_d1_reg[9]\(9 downto 0) => \gcc0.gc0.count_d1_reg[9]\(9 downto 0), ram_full_fb_i_reg(0) => ram_full_fb_i_reg(0), tmp_ram_rd_en => tmp_ram_rd_en ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_rd_logic is port ( comp0 : out STD_LOGIC; comp1 : out STD_LOGIC; p_18_out : out STD_LOGIC; empty : out STD_LOGIC; \gc0.count_d1_reg[9]\ : out STD_LOGIC_VECTOR ( 9 downto 0 ); tmp_ram_rd_en : out STD_LOGIC; E : out STD_LOGIC_VECTOR ( 0 to 0 ); \goreg_bm.dout_i_reg[4]\ : out STD_LOGIC_VECTOR ( 0 to 0 ); v1_reg : out STD_LOGIC_VECTOR ( 4 downto 0 ); \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram\ : out STD_LOGIC_VECTOR ( 9 downto 0 ); v1_reg_0 : in STD_LOGIC_VECTOR ( 4 downto 0 ); v1_reg_1 : in STD_LOGIC_VECTOR ( 4 downto 0 ); ram_empty_fb_i_reg : in STD_LOGIC; clk : in STD_LOGIC; Q : in STD_LOGIC_VECTOR ( 1 downto 0 ); rd_en : in STD_LOGIC; \gcc0.gc0.count_reg[9]\ : in STD_LOGIC_VECTOR ( 9 downto 0 ) ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_rd_logic : entity is "rd_logic"; end scfifo_5in_5out_5kb_rd_logic; architecture STRUCTURE of scfifo_5in_5out_5kb_rd_logic is signal \^e\ : STD_LOGIC_VECTOR ( 0 to 0 ); signal \^p_18_out\ : STD_LOGIC; begin E(0) <= \^e\(0); p_18_out <= \^p_18_out\; \gr1.rfwft\: entity work.scfifo_5in_5out_5kb_rd_fwft port map ( E(0) => \^e\(0), Q(1 downto 0) => Q(1 downto 0), clk => clk, empty => empty, \goreg_bm.dout_i_reg[4]\(0) => \goreg_bm.dout_i_reg[4]\(0), ram_empty_fb_i_reg => \^p_18_out\, rd_en => rd_en, tmp_ram_rd_en => tmp_ram_rd_en ); \grss.rsts\: entity work.scfifo_5in_5out_5kb_rd_status_flags_ss port map ( Q(0) => Q(1), clk => clk, comp0 => comp0, comp1 => comp1, p_18_out => \^p_18_out\, ram_empty_fb_i_reg_0 => ram_empty_fb_i_reg, v1_reg_0(4 downto 0) => v1_reg_0(4 downto 0), v1_reg_1(4 downto 0) => v1_reg_1(4 downto 0) ); rpntr: entity work.scfifo_5in_5out_5kb_rd_bin_cntr port map ( \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram\(9 downto 0) => \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram\(9 downto 0), E(0) => \^e\(0), Q(9 downto 0) => \gc0.count_d1_reg[9]\(9 downto 0), clk => clk, \gcc0.gc0.count_reg[9]\(9 downto 0) => \gcc0.gc0.count_reg[9]\(9 downto 0), \ngwrdrst.grst.g7serrst.rd_rst_reg_reg[2]\(0) => Q(1), v1_reg(4 downto 0) => v1_reg(4 downto 0) ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_wr_logic is port ( full : out STD_LOGIC; Q : out STD_LOGIC_VECTOR ( 9 downto 0 ); ram_empty_fb_i_reg : out STD_LOGIC; \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram\ : out STD_LOGIC_VECTOR ( 9 downto 0 ); v1_reg : out STD_LOGIC_VECTOR ( 4 downto 0 ); v1_reg_0 : out STD_LOGIC_VECTOR ( 4 downto 0 ); \gcc0.gc0.count_reg[9]\ : out STD_LOGIC_VECTOR ( 0 to 0 ); v1_reg_1 : in STD_LOGIC_VECTOR ( 4 downto 0 ); clk : in STD_LOGIC; rst_full_ff_i : in STD_LOGIC; p_18_out : in STD_LOGIC; comp0 : in STD_LOGIC; E : in STD_LOGIC_VECTOR ( 0 to 0 ); wr_en : in STD_LOGIC; comp1 : in STD_LOGIC; rst_full_gen_i : in STD_LOGIC; \gc0.count_d1_reg[9]\ : in STD_LOGIC_VECTOR ( 9 downto 0 ); \gc0.count_reg[9]\ : in STD_LOGIC_VECTOR ( 9 downto 0 ); AR : in STD_LOGIC_VECTOR ( 0 to 0 ) ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_wr_logic : entity is "wr_logic"; end scfifo_5in_5out_5kb_wr_logic; architecture STRUCTURE of scfifo_5in_5out_5kb_wr_logic is signal \c0/v1_reg\ : STD_LOGIC_VECTOR ( 4 downto 0 ); signal comp0_1 : STD_LOGIC; signal comp1_0 : STD_LOGIC; signal \^gcc0.gc0.count_reg[9]\ : STD_LOGIC_VECTOR ( 0 to 0 ); signal p_1_out : STD_LOGIC; signal ram_full_comb : STD_LOGIC; begin \gcc0.gc0.count_reg[9]\(0) <= \^gcc0.gc0.count_reg[9]\(0); \gwss.wsts\: entity work.scfifo_5in_5out_5kb_wr_status_flags_ss port map ( E(0) => \^gcc0.gc0.count_reg[9]\(0), clk => clk, comp0 => comp0_1, comp1 => comp1_0, full => full, p_1_out => p_1_out, ram_full_comb => ram_full_comb, rst_full_ff_i => rst_full_ff_i, v1_reg(4 downto 0) => \c0/v1_reg\(4 downto 0), v1_reg_1(4 downto 0) => v1_reg_1(4 downto 0), wr_en => wr_en ); wpntr: entity work.scfifo_5in_5out_5kb_wr_bin_cntr port map ( AR(0) => AR(0), \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram\(9 downto 0) => \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram\(9 downto 0), E(0) => E(0), Q(9 downto 0) => Q(9 downto 0), clk => clk, comp0 => comp0, comp0_2 => comp0_1, comp1 => comp1, comp1_3 => comp1_0, \gc0.count_d1_reg[9]\(9 downto 0) => \gc0.count_d1_reg[9]\(9 downto 0), \gc0.count_reg[9]\(9 downto 0) => \gc0.count_reg[9]\(9 downto 0), p_18_out => p_18_out, p_1_out => p_1_out, ram_empty_fb_i_reg => ram_empty_fb_i_reg, ram_full_comb => ram_full_comb, ram_full_fb_i_reg(0) => \^gcc0.gc0.count_reg[9]\(0), rst_full_gen_i => rst_full_gen_i, v1_reg(4 downto 0) => v1_reg(4 downto 0), v1_reg_0(4 downto 0) => v1_reg_0(4 downto 0), v1_reg_1(4 downto 0) => \c0/v1_reg\(4 downto 0), wr_en => wr_en ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_blk_mem_gen_top is port ( D : out STD_LOGIC_VECTOR ( 4 downto 0 ); clk : in STD_LOGIC; ram_full_fb_i_reg : in STD_LOGIC_VECTOR ( 0 to 0 ); tmp_ram_rd_en : in STD_LOGIC; Q : in STD_LOGIC_VECTOR ( 0 to 0 ); \gcc0.gc0.count_d1_reg[9]\ : in STD_LOGIC_VECTOR ( 9 downto 0 ); \gc0.count_d1_reg[9]\ : in STD_LOGIC_VECTOR ( 9 downto 0 ); din : in STD_LOGIC_VECTOR ( 4 downto 0 ) ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_blk_mem_gen_top : entity is "blk_mem_gen_top"; end scfifo_5in_5out_5kb_blk_mem_gen_top; architecture STRUCTURE of scfifo_5in_5out_5kb_blk_mem_gen_top is begin \valid.cstr\: entity work.scfifo_5in_5out_5kb_blk_mem_gen_generic_cstr port map ( D(4 downto 0) => D(4 downto 0), Q(0) => Q(0), clk => clk, din(4 downto 0) => din(4 downto 0), \gc0.count_d1_reg[9]\(9 downto 0) => \gc0.count_d1_reg[9]\(9 downto 0), \gcc0.gc0.count_d1_reg[9]\(9 downto 0) => \gcc0.gc0.count_d1_reg[9]\(9 downto 0), ram_full_fb_i_reg(0) => ram_full_fb_i_reg(0), tmp_ram_rd_en => tmp_ram_rd_en ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_blk_mem_gen_v8_3_0_synth is port ( D : out STD_LOGIC_VECTOR ( 4 downto 0 ); clk : in STD_LOGIC; ram_full_fb_i_reg : in STD_LOGIC_VECTOR ( 0 to 0 ); tmp_ram_rd_en : in STD_LOGIC; Q : in STD_LOGIC_VECTOR ( 0 to 0 ); \gcc0.gc0.count_d1_reg[9]\ : in STD_LOGIC_VECTOR ( 9 downto 0 ); \gc0.count_d1_reg[9]\ : in STD_LOGIC_VECTOR ( 9 downto 0 ); din : in STD_LOGIC_VECTOR ( 4 downto 0 ) ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_blk_mem_gen_v8_3_0_synth : entity is "blk_mem_gen_v8_3_0_synth"; end scfifo_5in_5out_5kb_blk_mem_gen_v8_3_0_synth; architecture STRUCTURE of scfifo_5in_5out_5kb_blk_mem_gen_v8_3_0_synth is begin \gnativebmg.native_blk_mem_gen\: entity work.scfifo_5in_5out_5kb_blk_mem_gen_top port map ( D(4 downto 0) => D(4 downto 0), Q(0) => Q(0), clk => clk, din(4 downto 0) => din(4 downto 0), \gc0.count_d1_reg[9]\(9 downto 0) => \gc0.count_d1_reg[9]\(9 downto 0), \gcc0.gc0.count_d1_reg[9]\(9 downto 0) => \gcc0.gc0.count_d1_reg[9]\(9 downto 0), ram_full_fb_i_reg(0) => ram_full_fb_i_reg(0), tmp_ram_rd_en => tmp_ram_rd_en ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_blk_mem_gen_v8_3_0 is port ( D : out STD_LOGIC_VECTOR ( 4 downto 0 ); clk : in STD_LOGIC; ram_full_fb_i_reg : in STD_LOGIC_VECTOR ( 0 to 0 ); tmp_ram_rd_en : in STD_LOGIC; Q : in STD_LOGIC_VECTOR ( 0 to 0 ); \gcc0.gc0.count_d1_reg[9]\ : in STD_LOGIC_VECTOR ( 9 downto 0 ); \gc0.count_d1_reg[9]\ : in STD_LOGIC_VECTOR ( 9 downto 0 ); din : in STD_LOGIC_VECTOR ( 4 downto 0 ) ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_blk_mem_gen_v8_3_0 : entity is "blk_mem_gen_v8_3_0"; end scfifo_5in_5out_5kb_blk_mem_gen_v8_3_0; architecture STRUCTURE of scfifo_5in_5out_5kb_blk_mem_gen_v8_3_0 is begin inst_blk_mem_gen: entity work.scfifo_5in_5out_5kb_blk_mem_gen_v8_3_0_synth port map ( D(4 downto 0) => D(4 downto 0), Q(0) => Q(0), clk => clk, din(4 downto 0) => din(4 downto 0), \gc0.count_d1_reg[9]\(9 downto 0) => \gc0.count_d1_reg[9]\(9 downto 0), \gcc0.gc0.count_d1_reg[9]\(9 downto 0) => \gcc0.gc0.count_d1_reg[9]\(9 downto 0), ram_full_fb_i_reg(0) => ram_full_fb_i_reg(0), tmp_ram_rd_en => tmp_ram_rd_en ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_memory is port ( dout : out STD_LOGIC_VECTOR ( 4 downto 0 ); clk : in STD_LOGIC; ram_full_fb_i_reg : in STD_LOGIC_VECTOR ( 0 to 0 ); tmp_ram_rd_en : in STD_LOGIC; Q : in STD_LOGIC_VECTOR ( 0 to 0 ); \gcc0.gc0.count_d1_reg[9]\ : in STD_LOGIC_VECTOR ( 9 downto 0 ); \gc0.count_d1_reg[9]\ : in STD_LOGIC_VECTOR ( 9 downto 0 ); din : in STD_LOGIC_VECTOR ( 4 downto 0 ); E : in STD_LOGIC_VECTOR ( 0 to 0 ) ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_memory : entity is "memory"; end scfifo_5in_5out_5kb_memory; architecture STRUCTURE of scfifo_5in_5out_5kb_memory is signal doutb : STD_LOGIC_VECTOR ( 4 downto 0 ); begin \gbm.gbmg.gbmga.ngecc.bmg\: entity work.scfifo_5in_5out_5kb_blk_mem_gen_v8_3_0 port map ( D(4 downto 0) => doutb(4 downto 0), Q(0) => Q(0), clk => clk, din(4 downto 0) => din(4 downto 0), \gc0.count_d1_reg[9]\(9 downto 0) => \gc0.count_d1_reg[9]\(9 downto 0), \gcc0.gc0.count_d1_reg[9]\(9 downto 0) => \gcc0.gc0.count_d1_reg[9]\(9 downto 0), ram_full_fb_i_reg(0) => ram_full_fb_i_reg(0), tmp_ram_rd_en => tmp_ram_rd_en ); \goreg_bm.dout_i_reg[0]\: unisim.vcomponents.FDRE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), D => doutb(0), Q => dout(0), R => Q(0) ); \goreg_bm.dout_i_reg[1]\: unisim.vcomponents.FDRE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), D => doutb(1), Q => dout(1), R => Q(0) ); \goreg_bm.dout_i_reg[2]\: unisim.vcomponents.FDRE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), D => doutb(2), Q => dout(2), R => Q(0) ); \goreg_bm.dout_i_reg[3]\: unisim.vcomponents.FDRE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), D => doutb(3), Q => dout(3), R => Q(0) ); \goreg_bm.dout_i_reg[4]\: unisim.vcomponents.FDRE generic map( INIT => '0' ) port map ( C => clk, CE => E(0), D => doutb(4), Q => dout(4), R => Q(0) ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_fifo_generator_ramfifo is port ( empty : out STD_LOGIC; full : out STD_LOGIC; dout : out STD_LOGIC_VECTOR ( 4 downto 0 ); clk : in STD_LOGIC; din : in STD_LOGIC_VECTOR ( 4 downto 0 ); rst : in STD_LOGIC; rd_en : in STD_LOGIC; wr_en : in STD_LOGIC ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_fifo_generator_ramfifo : entity is "fifo_generator_ramfifo"; end scfifo_5in_5out_5kb_fifo_generator_ramfifo; architecture STRUCTURE of scfifo_5in_5out_5kb_fifo_generator_ramfifo is signal RD_RST : STD_LOGIC; signal \^rst\ : STD_LOGIC; signal \gntv_or_sync_fifo.gl0.wr_n_11\ : STD_LOGIC; signal \grss.rsts/c1/v1_reg\ : STD_LOGIC_VECTOR ( 4 downto 0 ); signal \grss.rsts/c2/v1_reg\ : STD_LOGIC_VECTOR ( 4 downto 0 ); signal \grss.rsts/comp0\ : STD_LOGIC; signal \grss.rsts/comp1\ : STD_LOGIC; signal \gwss.wsts/c1/v1_reg\ : STD_LOGIC_VECTOR ( 4 downto 0 ); signal p_10_out : STD_LOGIC_VECTOR ( 9 downto 0 ); signal p_14_out : STD_LOGIC; signal p_15_out : STD_LOGIC; signal p_18_out : STD_LOGIC; signal p_20_out : STD_LOGIC_VECTOR ( 9 downto 0 ); signal p_4_out : STD_LOGIC; signal p_9_out : STD_LOGIC_VECTOR ( 9 downto 0 ); signal rd_pntr_plus1 : STD_LOGIC_VECTOR ( 9 downto 0 ); signal rd_rst_i : STD_LOGIC_VECTOR ( 0 to 0 ); signal rst_full_ff_i : STD_LOGIC; signal rst_full_gen_i : STD_LOGIC; signal tmp_ram_rd_en : STD_LOGIC; begin \gntv_or_sync_fifo.gl0.rd\: entity work.scfifo_5in_5out_5kb_rd_logic port map ( \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram\(9 downto 0) => p_20_out(9 downto 0), E(0) => p_14_out, Q(1) => RD_RST, Q(0) => rd_rst_i(0), clk => clk, comp0 => \grss.rsts/comp0\, comp1 => \grss.rsts/comp1\, empty => empty, \gc0.count_d1_reg[9]\(9 downto 0) => rd_pntr_plus1(9 downto 0), \gcc0.gc0.count_reg[9]\(9 downto 0) => p_9_out(9 downto 0), \goreg_bm.dout_i_reg[4]\(0) => p_15_out, p_18_out => p_18_out, ram_empty_fb_i_reg => \gntv_or_sync_fifo.gl0.wr_n_11\, rd_en => rd_en, tmp_ram_rd_en => tmp_ram_rd_en, v1_reg(4 downto 0) => \gwss.wsts/c1/v1_reg\(4 downto 0), v1_reg_0(4 downto 0) => \grss.rsts/c1/v1_reg\(4 downto 0), v1_reg_1(4 downto 0) => \grss.rsts/c2/v1_reg\(4 downto 0) ); \gntv_or_sync_fifo.gl0.wr\: entity work.scfifo_5in_5out_5kb_wr_logic port map ( AR(0) => \^rst\, \DEVICE_7SERIES.NO_BMM_INFO.SDP.SIMPLE_PRIM18.ram\(9 downto 0) => p_10_out(9 downto 0), E(0) => p_14_out, Q(9 downto 0) => p_9_out(9 downto 0), clk => clk, comp0 => \grss.rsts/comp0\, comp1 => \grss.rsts/comp1\, full => full, \gc0.count_d1_reg[9]\(9 downto 0) => p_20_out(9 downto 0), \gc0.count_reg[9]\(9 downto 0) => rd_pntr_plus1(9 downto 0), \gcc0.gc0.count_reg[9]\(0) => p_4_out, p_18_out => p_18_out, ram_empty_fb_i_reg => \gntv_or_sync_fifo.gl0.wr_n_11\, rst_full_ff_i => rst_full_ff_i, rst_full_gen_i => rst_full_gen_i, v1_reg(4 downto 0) => \grss.rsts/c1/v1_reg\(4 downto 0), v1_reg_0(4 downto 0) => \grss.rsts/c2/v1_reg\(4 downto 0), v1_reg_1(4 downto 0) => \gwss.wsts/c1/v1_reg\(4 downto 0), wr_en => wr_en ); \gntv_or_sync_fifo.mem\: entity work.scfifo_5in_5out_5kb_memory port map ( E(0) => p_15_out, Q(0) => rd_rst_i(0), clk => clk, din(4 downto 0) => din(4 downto 0), dout(4 downto 0) => dout(4 downto 0), \gc0.count_d1_reg[9]\(9 downto 0) => p_20_out(9 downto 0), \gcc0.gc0.count_d1_reg[9]\(9 downto 0) => p_10_out(9 downto 0), ram_full_fb_i_reg(0) => p_4_out, tmp_ram_rd_en => tmp_ram_rd_en ); rstblk: entity work.\scfifo_5in_5out_5kb_reset_blk_ramfifo__parameterized0\ port map ( AR(0) => \^rst\, Q(1) => RD_RST, Q(0) => rd_rst_i(0), clk => clk, rst => rst, rst_full_ff_i => rst_full_ff_i, rst_full_gen_i => rst_full_gen_i ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_fifo_generator_top is port ( empty : out STD_LOGIC; full : out STD_LOGIC; dout : out STD_LOGIC_VECTOR ( 4 downto 0 ); clk : in STD_LOGIC; din : in STD_LOGIC_VECTOR ( 4 downto 0 ); rst : in STD_LOGIC; rd_en : in STD_LOGIC; wr_en : in STD_LOGIC ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_fifo_generator_top : entity is "fifo_generator_top"; end scfifo_5in_5out_5kb_fifo_generator_top; architecture STRUCTURE of scfifo_5in_5out_5kb_fifo_generator_top is begin \grf.rf\: entity work.scfifo_5in_5out_5kb_fifo_generator_ramfifo port map ( clk => clk, din(4 downto 0) => din(4 downto 0), dout(4 downto 0) => dout(4 downto 0), empty => empty, full => full, rd_en => rd_en, rst => rst, wr_en => wr_en ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_fifo_generator_v13_0_0_synth is port ( dout : out STD_LOGIC_VECTOR ( 4 downto 0 ); empty : out STD_LOGIC; full : out STD_LOGIC; clk : in STD_LOGIC; din : in STD_LOGIC_VECTOR ( 4 downto 0 ); s_aclk : in STD_LOGIC; rst : in STD_LOGIC; rd_en : in STD_LOGIC; wr_en : in STD_LOGIC; s_aresetn : in STD_LOGIC ); attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_fifo_generator_v13_0_0_synth : entity is "fifo_generator_v13_0_0_synth"; end scfifo_5in_5out_5kb_fifo_generator_v13_0_0_synth; architecture STRUCTURE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0_synth is begin \gconvfifo.rf\: entity work.scfifo_5in_5out_5kb_fifo_generator_top port map ( clk => clk, din(4 downto 0) => din(4 downto 0), dout(4 downto 0) => dout(4 downto 0), empty => empty, full => full, rd_en => rd_en, rst => rst, wr_en => wr_en ); \reset_gen_cc.rstblk_cc\: entity work.scfifo_5in_5out_5kb_reset_blk_ramfifo port map ( s_aclk => s_aclk, s_aresetn => s_aresetn ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb_fifo_generator_v13_0_0 is port ( backup : in STD_LOGIC; backup_marker : in STD_LOGIC; clk : in STD_LOGIC; rst : in STD_LOGIC; srst : in STD_LOGIC; wr_clk : in STD_LOGIC; wr_rst : in STD_LOGIC; rd_clk : in STD_LOGIC; rd_rst : in STD_LOGIC; din : in STD_LOGIC_VECTOR ( 4 downto 0 ); wr_en : in STD_LOGIC; rd_en : in STD_LOGIC; prog_empty_thresh : in STD_LOGIC_VECTOR ( 9 downto 0 ); prog_empty_thresh_assert : in STD_LOGIC_VECTOR ( 9 downto 0 ); prog_empty_thresh_negate : in STD_LOGIC_VECTOR ( 9 downto 0 ); prog_full_thresh : in STD_LOGIC_VECTOR ( 9 downto 0 ); prog_full_thresh_assert : in STD_LOGIC_VECTOR ( 9 downto 0 ); prog_full_thresh_negate : in STD_LOGIC_VECTOR ( 9 downto 0 ); int_clk : in STD_LOGIC; injectdbiterr : in STD_LOGIC; injectsbiterr : in STD_LOGIC; sleep : in STD_LOGIC; dout : out STD_LOGIC_VECTOR ( 4 downto 0 ); full : out STD_LOGIC; almost_full : out STD_LOGIC; wr_ack : out STD_LOGIC; overflow : out STD_LOGIC; empty : out STD_LOGIC; almost_empty : out STD_LOGIC; valid : out STD_LOGIC; underflow : out STD_LOGIC; data_count : out STD_LOGIC_VECTOR ( 10 downto 0 ); rd_data_count : out STD_LOGIC_VECTOR ( 10 downto 0 ); wr_data_count : out STD_LOGIC_VECTOR ( 10 downto 0 ); prog_full : out STD_LOGIC; prog_empty : out STD_LOGIC; sbiterr : out STD_LOGIC; dbiterr : out STD_LOGIC; wr_rst_busy : out STD_LOGIC; rd_rst_busy : out STD_LOGIC; m_aclk : in STD_LOGIC; s_aclk : in STD_LOGIC; s_aresetn : in STD_LOGIC; m_aclk_en : in STD_LOGIC; s_aclk_en : in STD_LOGIC; s_axi_awid : in STD_LOGIC_VECTOR ( 0 to 0 ); s_axi_awaddr : in STD_LOGIC_VECTOR ( 31 downto 0 ); s_axi_awlen : in STD_LOGIC_VECTOR ( 7 downto 0 ); s_axi_awsize : in STD_LOGIC_VECTOR ( 2 downto 0 ); s_axi_awburst : in STD_LOGIC_VECTOR ( 1 downto 0 ); s_axi_awlock : in STD_LOGIC_VECTOR ( 0 to 0 ); s_axi_awcache : in STD_LOGIC_VECTOR ( 3 downto 0 ); s_axi_awprot : in STD_LOGIC_VECTOR ( 2 downto 0 ); s_axi_awqos : in STD_LOGIC_VECTOR ( 3 downto 0 ); s_axi_awregion : in STD_LOGIC_VECTOR ( 3 downto 0 ); s_axi_awuser : in STD_LOGIC_VECTOR ( 0 to 0 ); s_axi_awvalid : in STD_LOGIC; s_axi_awready : out STD_LOGIC; s_axi_wid : in STD_LOGIC_VECTOR ( 0 to 0 ); s_axi_wdata : in STD_LOGIC_VECTOR ( 63 downto 0 ); s_axi_wstrb : in STD_LOGIC_VECTOR ( 7 downto 0 ); s_axi_wlast : in STD_LOGIC; s_axi_wuser : in STD_LOGIC_VECTOR ( 0 to 0 ); s_axi_wvalid : in STD_LOGIC; s_axi_wready : out STD_LOGIC; s_axi_bid : out STD_LOGIC_VECTOR ( 0 to 0 ); s_axi_bresp : out STD_LOGIC_VECTOR ( 1 downto 0 ); s_axi_buser : out STD_LOGIC_VECTOR ( 0 to 0 ); s_axi_bvalid : out STD_LOGIC; s_axi_bready : in STD_LOGIC; m_axi_awid : out STD_LOGIC_VECTOR ( 0 to 0 ); m_axi_awaddr : out STD_LOGIC_VECTOR ( 31 downto 0 ); m_axi_awlen : out STD_LOGIC_VECTOR ( 7 downto 0 ); m_axi_awsize : out STD_LOGIC_VECTOR ( 2 downto 0 ); m_axi_awburst : out STD_LOGIC_VECTOR ( 1 downto 0 ); m_axi_awlock : out STD_LOGIC_VECTOR ( 0 to 0 ); m_axi_awcache : out STD_LOGIC_VECTOR ( 3 downto 0 ); m_axi_awprot : out STD_LOGIC_VECTOR ( 2 downto 0 ); m_axi_awqos : out STD_LOGIC_VECTOR ( 3 downto 0 ); m_axi_awregion : out STD_LOGIC_VECTOR ( 3 downto 0 ); m_axi_awuser : out STD_LOGIC_VECTOR ( 0 to 0 ); m_axi_awvalid : out STD_LOGIC; m_axi_awready : in STD_LOGIC; m_axi_wid : out STD_LOGIC_VECTOR ( 0 to 0 ); m_axi_wdata : out STD_LOGIC_VECTOR ( 63 downto 0 ); m_axi_wstrb : out STD_LOGIC_VECTOR ( 7 downto 0 ); m_axi_wlast : out STD_LOGIC; m_axi_wuser : out STD_LOGIC_VECTOR ( 0 to 0 ); m_axi_wvalid : out STD_LOGIC; m_axi_wready : in STD_LOGIC; m_axi_bid : in STD_LOGIC_VECTOR ( 0 to 0 ); m_axi_bresp : in STD_LOGIC_VECTOR ( 1 downto 0 ); m_axi_buser : in STD_LOGIC_VECTOR ( 0 to 0 ); m_axi_bvalid : in STD_LOGIC; m_axi_bready : out STD_LOGIC; s_axi_arid : in STD_LOGIC_VECTOR ( 0 to 0 ); s_axi_araddr : in STD_LOGIC_VECTOR ( 31 downto 0 ); s_axi_arlen : in STD_LOGIC_VECTOR ( 7 downto 0 ); s_axi_arsize : in STD_LOGIC_VECTOR ( 2 downto 0 ); s_axi_arburst : in STD_LOGIC_VECTOR ( 1 downto 0 ); s_axi_arlock : in STD_LOGIC_VECTOR ( 0 to 0 ); s_axi_arcache : in STD_LOGIC_VECTOR ( 3 downto 0 ); s_axi_arprot : in STD_LOGIC_VECTOR ( 2 downto 0 ); s_axi_arqos : in STD_LOGIC_VECTOR ( 3 downto 0 ); s_axi_arregion : in STD_LOGIC_VECTOR ( 3 downto 0 ); s_axi_aruser : in STD_LOGIC_VECTOR ( 0 to 0 ); s_axi_arvalid : in STD_LOGIC; s_axi_arready : out STD_LOGIC; s_axi_rid : out STD_LOGIC_VECTOR ( 0 to 0 ); s_axi_rdata : out STD_LOGIC_VECTOR ( 63 downto 0 ); s_axi_rresp : out STD_LOGIC_VECTOR ( 1 downto 0 ); s_axi_rlast : out STD_LOGIC; s_axi_ruser : out STD_LOGIC_VECTOR ( 0 to 0 ); s_axi_rvalid : out STD_LOGIC; s_axi_rready : in STD_LOGIC; m_axi_arid : out STD_LOGIC_VECTOR ( 0 to 0 ); m_axi_araddr : out STD_LOGIC_VECTOR ( 31 downto 0 ); m_axi_arlen : out STD_LOGIC_VECTOR ( 7 downto 0 ); m_axi_arsize : out STD_LOGIC_VECTOR ( 2 downto 0 ); m_axi_arburst : out STD_LOGIC_VECTOR ( 1 downto 0 ); m_axi_arlock : out STD_LOGIC_VECTOR ( 0 to 0 ); m_axi_arcache : out STD_LOGIC_VECTOR ( 3 downto 0 ); m_axi_arprot : out STD_LOGIC_VECTOR ( 2 downto 0 ); m_axi_arqos : out STD_LOGIC_VECTOR ( 3 downto 0 ); m_axi_arregion : out STD_LOGIC_VECTOR ( 3 downto 0 ); m_axi_aruser : out STD_LOGIC_VECTOR ( 0 to 0 ); m_axi_arvalid : out STD_LOGIC; m_axi_arready : in STD_LOGIC; m_axi_rid : in STD_LOGIC_VECTOR ( 0 to 0 ); m_axi_rdata : in STD_LOGIC_VECTOR ( 63 downto 0 ); m_axi_rresp : in STD_LOGIC_VECTOR ( 1 downto 0 ); m_axi_rlast : in STD_LOGIC; m_axi_ruser : in STD_LOGIC_VECTOR ( 0 to 0 ); m_axi_rvalid : in STD_LOGIC; m_axi_rready : out STD_LOGIC; s_axis_tvalid : in STD_LOGIC; s_axis_tready : out STD_LOGIC; s_axis_tdata : in STD_LOGIC_VECTOR ( 7 downto 0 ); s_axis_tstrb : in STD_LOGIC_VECTOR ( 0 to 0 ); s_axis_tkeep : in STD_LOGIC_VECTOR ( 0 to 0 ); s_axis_tlast : in STD_LOGIC; s_axis_tid : in STD_LOGIC_VECTOR ( 0 to 0 ); s_axis_tdest : in STD_LOGIC_VECTOR ( 0 to 0 ); s_axis_tuser : in STD_LOGIC_VECTOR ( 3 downto 0 ); m_axis_tvalid : out STD_LOGIC; m_axis_tready : in STD_LOGIC; m_axis_tdata : out STD_LOGIC_VECTOR ( 7 downto 0 ); m_axis_tstrb : out STD_LOGIC_VECTOR ( 0 to 0 ); m_axis_tkeep : out STD_LOGIC_VECTOR ( 0 to 0 ); m_axis_tlast : out STD_LOGIC; m_axis_tid : out STD_LOGIC_VECTOR ( 0 to 0 ); m_axis_tdest : out STD_LOGIC_VECTOR ( 0 to 0 ); m_axis_tuser : out STD_LOGIC_VECTOR ( 3 downto 0 ); axi_aw_injectsbiterr : in STD_LOGIC; axi_aw_injectdbiterr : in STD_LOGIC; axi_aw_prog_full_thresh : in STD_LOGIC_VECTOR ( 3 downto 0 ); axi_aw_prog_empty_thresh : in STD_LOGIC_VECTOR ( 3 downto 0 ); axi_aw_data_count : out STD_LOGIC_VECTOR ( 4 downto 0 ); axi_aw_wr_data_count : out STD_LOGIC_VECTOR ( 4 downto 0 ); axi_aw_rd_data_count : out STD_LOGIC_VECTOR ( 4 downto 0 ); axi_aw_sbiterr : out STD_LOGIC; axi_aw_dbiterr : out STD_LOGIC; axi_aw_overflow : out STD_LOGIC; axi_aw_underflow : out STD_LOGIC; axi_aw_prog_full : out STD_LOGIC; axi_aw_prog_empty : out STD_LOGIC; axi_w_injectsbiterr : in STD_LOGIC; axi_w_injectdbiterr : in STD_LOGIC; axi_w_prog_full_thresh : in STD_LOGIC_VECTOR ( 9 downto 0 ); axi_w_prog_empty_thresh : in STD_LOGIC_VECTOR ( 9 downto 0 ); axi_w_data_count : out STD_LOGIC_VECTOR ( 10 downto 0 ); axi_w_wr_data_count : out STD_LOGIC_VECTOR ( 10 downto 0 ); axi_w_rd_data_count : out STD_LOGIC_VECTOR ( 10 downto 0 ); axi_w_sbiterr : out STD_LOGIC; axi_w_dbiterr : out STD_LOGIC; axi_w_overflow : out STD_LOGIC; axi_w_underflow : out STD_LOGIC; axi_w_prog_full : out STD_LOGIC; axi_w_prog_empty : out STD_LOGIC; axi_b_injectsbiterr : in STD_LOGIC; axi_b_injectdbiterr : in STD_LOGIC; axi_b_prog_full_thresh : in STD_LOGIC_VECTOR ( 3 downto 0 ); axi_b_prog_empty_thresh : in STD_LOGIC_VECTOR ( 3 downto 0 ); axi_b_data_count : out STD_LOGIC_VECTOR ( 4 downto 0 ); axi_b_wr_data_count : out STD_LOGIC_VECTOR ( 4 downto 0 ); axi_b_rd_data_count : out STD_LOGIC_VECTOR ( 4 downto 0 ); axi_b_sbiterr : out STD_LOGIC; axi_b_dbiterr : out STD_LOGIC; axi_b_overflow : out STD_LOGIC; axi_b_underflow : out STD_LOGIC; axi_b_prog_full : out STD_LOGIC; axi_b_prog_empty : out STD_LOGIC; axi_ar_injectsbiterr : in STD_LOGIC; axi_ar_injectdbiterr : in STD_LOGIC; axi_ar_prog_full_thresh : in STD_LOGIC_VECTOR ( 3 downto 0 ); axi_ar_prog_empty_thresh : in STD_LOGIC_VECTOR ( 3 downto 0 ); axi_ar_data_count : out STD_LOGIC_VECTOR ( 4 downto 0 ); axi_ar_wr_data_count : out STD_LOGIC_VECTOR ( 4 downto 0 ); axi_ar_rd_data_count : out STD_LOGIC_VECTOR ( 4 downto 0 ); axi_ar_sbiterr : out STD_LOGIC; axi_ar_dbiterr : out STD_LOGIC; axi_ar_overflow : out STD_LOGIC; axi_ar_underflow : out STD_LOGIC; axi_ar_prog_full : out STD_LOGIC; axi_ar_prog_empty : out STD_LOGIC; axi_r_injectsbiterr : in STD_LOGIC; axi_r_injectdbiterr : in STD_LOGIC; axi_r_prog_full_thresh : in STD_LOGIC_VECTOR ( 9 downto 0 ); axi_r_prog_empty_thresh : in STD_LOGIC_VECTOR ( 9 downto 0 ); axi_r_data_count : out STD_LOGIC_VECTOR ( 10 downto 0 ); axi_r_wr_data_count : out STD_LOGIC_VECTOR ( 10 downto 0 ); axi_r_rd_data_count : out STD_LOGIC_VECTOR ( 10 downto 0 ); axi_r_sbiterr : out STD_LOGIC; axi_r_dbiterr : out STD_LOGIC; axi_r_overflow : out STD_LOGIC; axi_r_underflow : out STD_LOGIC; axi_r_prog_full : out STD_LOGIC; axi_r_prog_empty : out STD_LOGIC; axis_injectsbiterr : in STD_LOGIC; axis_injectdbiterr : in STD_LOGIC; axis_prog_full_thresh : in STD_LOGIC_VECTOR ( 9 downto 0 ); axis_prog_empty_thresh : in STD_LOGIC_VECTOR ( 9 downto 0 ); axis_data_count : out STD_LOGIC_VECTOR ( 10 downto 0 ); axis_wr_data_count : out STD_LOGIC_VECTOR ( 10 downto 0 ); axis_rd_data_count : out STD_LOGIC_VECTOR ( 10 downto 0 ); axis_sbiterr : out STD_LOGIC; axis_dbiterr : out STD_LOGIC; axis_overflow : out STD_LOGIC; axis_underflow : out STD_LOGIC; axis_prog_full : out STD_LOGIC; axis_prog_empty : out STD_LOGIC ); attribute C_ADD_NGC_CONSTRAINT : integer; attribute C_ADD_NGC_CONSTRAINT of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_APPLICATION_TYPE_AXIS : integer; attribute C_APPLICATION_TYPE_AXIS of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_APPLICATION_TYPE_RACH : integer; attribute C_APPLICATION_TYPE_RACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_APPLICATION_TYPE_RDCH : integer; attribute C_APPLICATION_TYPE_RDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_APPLICATION_TYPE_WACH : integer; attribute C_APPLICATION_TYPE_WACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_APPLICATION_TYPE_WDCH : integer; attribute C_APPLICATION_TYPE_WDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_APPLICATION_TYPE_WRCH : integer; attribute C_APPLICATION_TYPE_WRCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_AXIS_TDATA_WIDTH : integer; attribute C_AXIS_TDATA_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 8; attribute C_AXIS_TDEST_WIDTH : integer; attribute C_AXIS_TDEST_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_AXIS_TID_WIDTH : integer; attribute C_AXIS_TID_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_AXIS_TKEEP_WIDTH : integer; attribute C_AXIS_TKEEP_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_AXIS_TSTRB_WIDTH : integer; attribute C_AXIS_TSTRB_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_AXIS_TUSER_WIDTH : integer; attribute C_AXIS_TUSER_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 4; attribute C_AXIS_TYPE : integer; attribute C_AXIS_TYPE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_AXI_ADDR_WIDTH : integer; attribute C_AXI_ADDR_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 32; attribute C_AXI_ARUSER_WIDTH : integer; attribute C_AXI_ARUSER_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_AXI_AWUSER_WIDTH : integer; attribute C_AXI_AWUSER_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_AXI_BUSER_WIDTH : integer; attribute C_AXI_BUSER_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_AXI_DATA_WIDTH : integer; attribute C_AXI_DATA_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 64; attribute C_AXI_ID_WIDTH : integer; attribute C_AXI_ID_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_AXI_LEN_WIDTH : integer; attribute C_AXI_LEN_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 8; attribute C_AXI_LOCK_WIDTH : integer; attribute C_AXI_LOCK_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_AXI_RUSER_WIDTH : integer; attribute C_AXI_RUSER_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_AXI_TYPE : integer; attribute C_AXI_TYPE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_AXI_WUSER_WIDTH : integer; attribute C_AXI_WUSER_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_COMMON_CLOCK : integer; attribute C_COMMON_CLOCK of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_COUNT_TYPE : integer; attribute C_COUNT_TYPE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_DATA_COUNT_WIDTH : integer; attribute C_DATA_COUNT_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 11; attribute C_DEFAULT_VALUE : string; attribute C_DEFAULT_VALUE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is "BlankString"; attribute C_DIN_WIDTH : integer; attribute C_DIN_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 5; attribute C_DIN_WIDTH_AXIS : integer; attribute C_DIN_WIDTH_AXIS of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_DIN_WIDTH_RACH : integer; attribute C_DIN_WIDTH_RACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 32; attribute C_DIN_WIDTH_RDCH : integer; attribute C_DIN_WIDTH_RDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 64; attribute C_DIN_WIDTH_WACH : integer; attribute C_DIN_WIDTH_WACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 32; attribute C_DIN_WIDTH_WDCH : integer; attribute C_DIN_WIDTH_WDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 64; attribute C_DIN_WIDTH_WRCH : integer; attribute C_DIN_WIDTH_WRCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 2; attribute C_DOUT_RST_VAL : string; attribute C_DOUT_RST_VAL of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is "0"; attribute C_DOUT_WIDTH : integer; attribute C_DOUT_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 5; attribute C_ENABLE_RLOCS : integer; attribute C_ENABLE_RLOCS of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_ENABLE_RST_SYNC : integer; attribute C_ENABLE_RST_SYNC of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_EN_SAFETY_CKT : integer; attribute C_EN_SAFETY_CKT of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_ERROR_INJECTION_TYPE : integer; attribute C_ERROR_INJECTION_TYPE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_ERROR_INJECTION_TYPE_AXIS : integer; attribute C_ERROR_INJECTION_TYPE_AXIS of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_ERROR_INJECTION_TYPE_RACH : integer; attribute C_ERROR_INJECTION_TYPE_RACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_ERROR_INJECTION_TYPE_RDCH : integer; attribute C_ERROR_INJECTION_TYPE_RDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_ERROR_INJECTION_TYPE_WACH : integer; attribute C_ERROR_INJECTION_TYPE_WACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_ERROR_INJECTION_TYPE_WDCH : integer; attribute C_ERROR_INJECTION_TYPE_WDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_ERROR_INJECTION_TYPE_WRCH : integer; attribute C_ERROR_INJECTION_TYPE_WRCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_FAMILY : string; attribute C_FAMILY of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is "artix7"; attribute C_FULL_FLAGS_RST_VAL : integer; attribute C_FULL_FLAGS_RST_VAL of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_HAS_ALMOST_EMPTY : integer; attribute C_HAS_ALMOST_EMPTY of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_ALMOST_FULL : integer; attribute C_HAS_ALMOST_FULL of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_AXIS_TDATA : integer; attribute C_HAS_AXIS_TDATA of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_HAS_AXIS_TDEST : integer; attribute C_HAS_AXIS_TDEST of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_AXIS_TID : integer; attribute C_HAS_AXIS_TID of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_AXIS_TKEEP : integer; attribute C_HAS_AXIS_TKEEP of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_AXIS_TLAST : integer; attribute C_HAS_AXIS_TLAST of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_AXIS_TREADY : integer; attribute C_HAS_AXIS_TREADY of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_HAS_AXIS_TSTRB : integer; attribute C_HAS_AXIS_TSTRB of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_AXIS_TUSER : integer; attribute C_HAS_AXIS_TUSER of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_HAS_AXI_ARUSER : integer; attribute C_HAS_AXI_ARUSER of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_AXI_AWUSER : integer; attribute C_HAS_AXI_AWUSER of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_AXI_BUSER : integer; attribute C_HAS_AXI_BUSER of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_AXI_ID : integer; attribute C_HAS_AXI_ID of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_AXI_RD_CHANNEL : integer; attribute C_HAS_AXI_RD_CHANNEL of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_HAS_AXI_RUSER : integer; attribute C_HAS_AXI_RUSER of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_AXI_WR_CHANNEL : integer; attribute C_HAS_AXI_WR_CHANNEL of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_HAS_AXI_WUSER : integer; attribute C_HAS_AXI_WUSER of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_BACKUP : integer; attribute C_HAS_BACKUP of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_DATA_COUNT : integer; attribute C_HAS_DATA_COUNT of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_DATA_COUNTS_AXIS : integer; attribute C_HAS_DATA_COUNTS_AXIS of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_DATA_COUNTS_RACH : integer; attribute C_HAS_DATA_COUNTS_RACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_DATA_COUNTS_RDCH : integer; attribute C_HAS_DATA_COUNTS_RDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_DATA_COUNTS_WACH : integer; attribute C_HAS_DATA_COUNTS_WACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_DATA_COUNTS_WDCH : integer; attribute C_HAS_DATA_COUNTS_WDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_DATA_COUNTS_WRCH : integer; attribute C_HAS_DATA_COUNTS_WRCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_INT_CLK : integer; attribute C_HAS_INT_CLK of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_MASTER_CE : integer; attribute C_HAS_MASTER_CE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_MEMINIT_FILE : integer; attribute C_HAS_MEMINIT_FILE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_OVERFLOW : integer; attribute C_HAS_OVERFLOW of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_PROG_FLAGS_AXIS : integer; attribute C_HAS_PROG_FLAGS_AXIS of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_PROG_FLAGS_RACH : integer; attribute C_HAS_PROG_FLAGS_RACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_PROG_FLAGS_RDCH : integer; attribute C_HAS_PROG_FLAGS_RDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_PROG_FLAGS_WACH : integer; attribute C_HAS_PROG_FLAGS_WACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_PROG_FLAGS_WDCH : integer; attribute C_HAS_PROG_FLAGS_WDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_PROG_FLAGS_WRCH : integer; attribute C_HAS_PROG_FLAGS_WRCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_RD_DATA_COUNT : integer; attribute C_HAS_RD_DATA_COUNT of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_RD_RST : integer; attribute C_HAS_RD_RST of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_RST : integer; attribute C_HAS_RST of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_HAS_SLAVE_CE : integer; attribute C_HAS_SLAVE_CE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_SRST : integer; attribute C_HAS_SRST of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_UNDERFLOW : integer; attribute C_HAS_UNDERFLOW of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_VALID : integer; attribute C_HAS_VALID of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_WR_ACK : integer; attribute C_HAS_WR_ACK of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_WR_DATA_COUNT : integer; attribute C_HAS_WR_DATA_COUNT of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_HAS_WR_RST : integer; attribute C_HAS_WR_RST of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_IMPLEMENTATION_TYPE : integer; attribute C_IMPLEMENTATION_TYPE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_IMPLEMENTATION_TYPE_AXIS : integer; attribute C_IMPLEMENTATION_TYPE_AXIS of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_IMPLEMENTATION_TYPE_RACH : integer; attribute C_IMPLEMENTATION_TYPE_RACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_IMPLEMENTATION_TYPE_RDCH : integer; attribute C_IMPLEMENTATION_TYPE_RDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_IMPLEMENTATION_TYPE_WACH : integer; attribute C_IMPLEMENTATION_TYPE_WACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_IMPLEMENTATION_TYPE_WDCH : integer; attribute C_IMPLEMENTATION_TYPE_WDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_IMPLEMENTATION_TYPE_WRCH : integer; attribute C_IMPLEMENTATION_TYPE_WRCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_INIT_WR_PNTR_VAL : integer; attribute C_INIT_WR_PNTR_VAL of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_INTERFACE_TYPE : integer; attribute C_INTERFACE_TYPE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_MEMORY_TYPE : integer; attribute C_MEMORY_TYPE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_MIF_FILE_NAME : string; attribute C_MIF_FILE_NAME of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is "BlankString"; attribute C_MSGON_VAL : integer; attribute C_MSGON_VAL of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_OPTIMIZATION_MODE : integer; attribute C_OPTIMIZATION_MODE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_OVERFLOW_LOW : integer; attribute C_OVERFLOW_LOW of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_POWER_SAVING_MODE : integer; attribute C_POWER_SAVING_MODE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_PRELOAD_LATENCY : integer; attribute C_PRELOAD_LATENCY of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_PRELOAD_REGS : integer; attribute C_PRELOAD_REGS of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_PRIM_FIFO_TYPE : string; attribute C_PRIM_FIFO_TYPE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is "1kx18"; attribute C_PRIM_FIFO_TYPE_AXIS : string; attribute C_PRIM_FIFO_TYPE_AXIS of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is "1kx18"; attribute C_PRIM_FIFO_TYPE_RACH : string; attribute C_PRIM_FIFO_TYPE_RACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is "512x36"; attribute C_PRIM_FIFO_TYPE_RDCH : string; attribute C_PRIM_FIFO_TYPE_RDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is "1kx36"; attribute C_PRIM_FIFO_TYPE_WACH : string; attribute C_PRIM_FIFO_TYPE_WACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is "512x36"; attribute C_PRIM_FIFO_TYPE_WDCH : string; attribute C_PRIM_FIFO_TYPE_WDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is "1kx36"; attribute C_PRIM_FIFO_TYPE_WRCH : string; attribute C_PRIM_FIFO_TYPE_WRCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is "512x36"; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL : integer; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 4; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_AXIS : integer; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_AXIS of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1022; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_RACH : integer; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_RACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1022; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_RDCH : integer; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_RDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1022; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_WACH : integer; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_WACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1022; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_WDCH : integer; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_WDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1022; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_WRCH : integer; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_WRCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1022; attribute C_PROG_EMPTY_THRESH_NEGATE_VAL : integer; attribute C_PROG_EMPTY_THRESH_NEGATE_VAL of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 5; attribute C_PROG_EMPTY_TYPE : integer; attribute C_PROG_EMPTY_TYPE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_PROG_EMPTY_TYPE_AXIS : integer; attribute C_PROG_EMPTY_TYPE_AXIS of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_PROG_EMPTY_TYPE_RACH : integer; attribute C_PROG_EMPTY_TYPE_RACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_PROG_EMPTY_TYPE_RDCH : integer; attribute C_PROG_EMPTY_TYPE_RDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_PROG_EMPTY_TYPE_WACH : integer; attribute C_PROG_EMPTY_TYPE_WACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_PROG_EMPTY_TYPE_WDCH : integer; attribute C_PROG_EMPTY_TYPE_WDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_PROG_EMPTY_TYPE_WRCH : integer; attribute C_PROG_EMPTY_TYPE_WRCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_PROG_FULL_THRESH_ASSERT_VAL : integer; attribute C_PROG_FULL_THRESH_ASSERT_VAL of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1023; attribute C_PROG_FULL_THRESH_ASSERT_VAL_AXIS : integer; attribute C_PROG_FULL_THRESH_ASSERT_VAL_AXIS of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1023; attribute C_PROG_FULL_THRESH_ASSERT_VAL_RACH : integer; attribute C_PROG_FULL_THRESH_ASSERT_VAL_RACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1023; attribute C_PROG_FULL_THRESH_ASSERT_VAL_RDCH : integer; attribute C_PROG_FULL_THRESH_ASSERT_VAL_RDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1023; attribute C_PROG_FULL_THRESH_ASSERT_VAL_WACH : integer; attribute C_PROG_FULL_THRESH_ASSERT_VAL_WACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1023; attribute C_PROG_FULL_THRESH_ASSERT_VAL_WDCH : integer; attribute C_PROG_FULL_THRESH_ASSERT_VAL_WDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1023; attribute C_PROG_FULL_THRESH_ASSERT_VAL_WRCH : integer; attribute C_PROG_FULL_THRESH_ASSERT_VAL_WRCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1023; attribute C_PROG_FULL_THRESH_NEGATE_VAL : integer; attribute C_PROG_FULL_THRESH_NEGATE_VAL of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1022; attribute C_PROG_FULL_TYPE : integer; attribute C_PROG_FULL_TYPE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_PROG_FULL_TYPE_AXIS : integer; attribute C_PROG_FULL_TYPE_AXIS of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_PROG_FULL_TYPE_RACH : integer; attribute C_PROG_FULL_TYPE_RACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_PROG_FULL_TYPE_RDCH : integer; attribute C_PROG_FULL_TYPE_RDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_PROG_FULL_TYPE_WACH : integer; attribute C_PROG_FULL_TYPE_WACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_PROG_FULL_TYPE_WDCH : integer; attribute C_PROG_FULL_TYPE_WDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_PROG_FULL_TYPE_WRCH : integer; attribute C_PROG_FULL_TYPE_WRCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_RACH_TYPE : integer; attribute C_RACH_TYPE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_RDCH_TYPE : integer; attribute C_RDCH_TYPE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_RD_DATA_COUNT_WIDTH : integer; attribute C_RD_DATA_COUNT_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 11; attribute C_RD_DEPTH : integer; attribute C_RD_DEPTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1024; attribute C_RD_FREQ : integer; attribute C_RD_FREQ of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_RD_PNTR_WIDTH : integer; attribute C_RD_PNTR_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 10; attribute C_REG_SLICE_MODE_AXIS : integer; attribute C_REG_SLICE_MODE_AXIS of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_REG_SLICE_MODE_RACH : integer; attribute C_REG_SLICE_MODE_RACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_REG_SLICE_MODE_RDCH : integer; attribute C_REG_SLICE_MODE_RDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_REG_SLICE_MODE_WACH : integer; attribute C_REG_SLICE_MODE_WACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_REG_SLICE_MODE_WDCH : integer; attribute C_REG_SLICE_MODE_WDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_REG_SLICE_MODE_WRCH : integer; attribute C_REG_SLICE_MODE_WRCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_SYNCHRONIZER_STAGE : integer; attribute C_SYNCHRONIZER_STAGE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 2; attribute C_UNDERFLOW_LOW : integer; attribute C_UNDERFLOW_LOW of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_USE_COMMON_OVERFLOW : integer; attribute C_USE_COMMON_OVERFLOW of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_USE_COMMON_UNDERFLOW : integer; attribute C_USE_COMMON_UNDERFLOW of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_USE_DEFAULT_SETTINGS : integer; attribute C_USE_DEFAULT_SETTINGS of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_USE_DOUT_RST : integer; attribute C_USE_DOUT_RST of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_USE_ECC : integer; attribute C_USE_ECC of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_USE_ECC_AXIS : integer; attribute C_USE_ECC_AXIS of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_USE_ECC_RACH : integer; attribute C_USE_ECC_RACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_USE_ECC_RDCH : integer; attribute C_USE_ECC_RDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_USE_ECC_WACH : integer; attribute C_USE_ECC_WACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_USE_ECC_WDCH : integer; attribute C_USE_ECC_WDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_USE_ECC_WRCH : integer; attribute C_USE_ECC_WRCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_USE_EMBEDDED_REG : integer; attribute C_USE_EMBEDDED_REG of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_USE_FIFO16_FLAGS : integer; attribute C_USE_FIFO16_FLAGS of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_USE_FWFT_DATA_COUNT : integer; attribute C_USE_FWFT_DATA_COUNT of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_USE_PIPELINE_REG : integer; attribute C_USE_PIPELINE_REG of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_VALID_LOW : integer; attribute C_VALID_LOW of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_WACH_TYPE : integer; attribute C_WACH_TYPE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_WDCH_TYPE : integer; attribute C_WDCH_TYPE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_WRCH_TYPE : integer; attribute C_WRCH_TYPE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_WR_ACK_LOW : integer; attribute C_WR_ACK_LOW of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 0; attribute C_WR_DATA_COUNT_WIDTH : integer; attribute C_WR_DATA_COUNT_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 11; attribute C_WR_DEPTH : integer; attribute C_WR_DEPTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1024; attribute C_WR_DEPTH_AXIS : integer; attribute C_WR_DEPTH_AXIS of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1024; attribute C_WR_DEPTH_RACH : integer; attribute C_WR_DEPTH_RACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 16; attribute C_WR_DEPTH_RDCH : integer; attribute C_WR_DEPTH_RDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1024; attribute C_WR_DEPTH_WACH : integer; attribute C_WR_DEPTH_WACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 16; attribute C_WR_DEPTH_WDCH : integer; attribute C_WR_DEPTH_WDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1024; attribute C_WR_DEPTH_WRCH : integer; attribute C_WR_DEPTH_WRCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 16; attribute C_WR_FREQ : integer; attribute C_WR_FREQ of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute C_WR_PNTR_WIDTH : integer; attribute C_WR_PNTR_WIDTH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 10; attribute C_WR_PNTR_WIDTH_AXIS : integer; attribute C_WR_PNTR_WIDTH_AXIS of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 10; attribute C_WR_PNTR_WIDTH_RACH : integer; attribute C_WR_PNTR_WIDTH_RACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 4; attribute C_WR_PNTR_WIDTH_RDCH : integer; attribute C_WR_PNTR_WIDTH_RDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 10; attribute C_WR_PNTR_WIDTH_WACH : integer; attribute C_WR_PNTR_WIDTH_WACH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 4; attribute C_WR_PNTR_WIDTH_WDCH : integer; attribute C_WR_PNTR_WIDTH_WDCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 10; attribute C_WR_PNTR_WIDTH_WRCH : integer; attribute C_WR_PNTR_WIDTH_WRCH of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 4; attribute C_WR_RESPONSE_LATENCY : integer; attribute C_WR_RESPONSE_LATENCY of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is 1; attribute ORIG_REF_NAME : string; attribute ORIG_REF_NAME of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 : entity is "fifo_generator_v13_0_0"; end scfifo_5in_5out_5kb_fifo_generator_v13_0_0; architecture STRUCTURE of scfifo_5in_5out_5kb_fifo_generator_v13_0_0 is signal \<const0>\ : STD_LOGIC; signal \<const1>\ : STD_LOGIC; begin almost_empty <= \<const0>\; almost_full <= \<const0>\; axi_ar_data_count(4) <= \<const0>\; axi_ar_data_count(3) <= \<const0>\; axi_ar_data_count(2) <= \<const0>\; axi_ar_data_count(1) <= \<const0>\; axi_ar_data_count(0) <= \<const0>\; axi_ar_dbiterr <= \<const0>\; axi_ar_overflow <= \<const0>\; axi_ar_prog_empty <= \<const1>\; axi_ar_prog_full <= \<const0>\; axi_ar_rd_data_count(4) <= \<const0>\; axi_ar_rd_data_count(3) <= \<const0>\; axi_ar_rd_data_count(2) <= \<const0>\; axi_ar_rd_data_count(1) <= \<const0>\; axi_ar_rd_data_count(0) <= \<const0>\; axi_ar_sbiterr <= \<const0>\; axi_ar_underflow <= \<const0>\; axi_ar_wr_data_count(4) <= \<const0>\; axi_ar_wr_data_count(3) <= \<const0>\; axi_ar_wr_data_count(2) <= \<const0>\; axi_ar_wr_data_count(1) <= \<const0>\; axi_ar_wr_data_count(0) <= \<const0>\; axi_aw_data_count(4) <= \<const0>\; axi_aw_data_count(3) <= \<const0>\; axi_aw_data_count(2) <= \<const0>\; axi_aw_data_count(1) <= \<const0>\; axi_aw_data_count(0) <= \<const0>\; axi_aw_dbiterr <= \<const0>\; axi_aw_overflow <= \<const0>\; axi_aw_prog_empty <= \<const1>\; axi_aw_prog_full <= \<const0>\; axi_aw_rd_data_count(4) <= \<const0>\; axi_aw_rd_data_count(3) <= \<const0>\; axi_aw_rd_data_count(2) <= \<const0>\; axi_aw_rd_data_count(1) <= \<const0>\; axi_aw_rd_data_count(0) <= \<const0>\; axi_aw_sbiterr <= \<const0>\; axi_aw_underflow <= \<const0>\; axi_aw_wr_data_count(4) <= \<const0>\; axi_aw_wr_data_count(3) <= \<const0>\; axi_aw_wr_data_count(2) <= \<const0>\; axi_aw_wr_data_count(1) <= \<const0>\; axi_aw_wr_data_count(0) <= \<const0>\; axi_b_data_count(4) <= \<const0>\; axi_b_data_count(3) <= \<const0>\; axi_b_data_count(2) <= \<const0>\; axi_b_data_count(1) <= \<const0>\; axi_b_data_count(0) <= \<const0>\; axi_b_dbiterr <= \<const0>\; axi_b_overflow <= \<const0>\; axi_b_prog_empty <= \<const1>\; axi_b_prog_full <= \<const0>\; axi_b_rd_data_count(4) <= \<const0>\; axi_b_rd_data_count(3) <= \<const0>\; axi_b_rd_data_count(2) <= \<const0>\; axi_b_rd_data_count(1) <= \<const0>\; axi_b_rd_data_count(0) <= \<const0>\; axi_b_sbiterr <= \<const0>\; axi_b_underflow <= \<const0>\; axi_b_wr_data_count(4) <= \<const0>\; axi_b_wr_data_count(3) <= \<const0>\; axi_b_wr_data_count(2) <= \<const0>\; axi_b_wr_data_count(1) <= \<const0>\; axi_b_wr_data_count(0) <= \<const0>\; axi_r_data_count(10) <= \<const0>\; axi_r_data_count(9) <= \<const0>\; axi_r_data_count(8) <= \<const0>\; axi_r_data_count(7) <= \<const0>\; axi_r_data_count(6) <= \<const0>\; axi_r_data_count(5) <= \<const0>\; axi_r_data_count(4) <= \<const0>\; axi_r_data_count(3) <= \<const0>\; axi_r_data_count(2) <= \<const0>\; axi_r_data_count(1) <= \<const0>\; axi_r_data_count(0) <= \<const0>\; axi_r_dbiterr <= \<const0>\; axi_r_overflow <= \<const0>\; axi_r_prog_empty <= \<const1>\; axi_r_prog_full <= \<const0>\; axi_r_rd_data_count(10) <= \<const0>\; axi_r_rd_data_count(9) <= \<const0>\; axi_r_rd_data_count(8) <= \<const0>\; axi_r_rd_data_count(7) <= \<const0>\; axi_r_rd_data_count(6) <= \<const0>\; axi_r_rd_data_count(5) <= \<const0>\; axi_r_rd_data_count(4) <= \<const0>\; axi_r_rd_data_count(3) <= \<const0>\; axi_r_rd_data_count(2) <= \<const0>\; axi_r_rd_data_count(1) <= \<const0>\; axi_r_rd_data_count(0) <= \<const0>\; axi_r_sbiterr <= \<const0>\; axi_r_underflow <= \<const0>\; axi_r_wr_data_count(10) <= \<const0>\; axi_r_wr_data_count(9) <= \<const0>\; axi_r_wr_data_count(8) <= \<const0>\; axi_r_wr_data_count(7) <= \<const0>\; axi_r_wr_data_count(6) <= \<const0>\; axi_r_wr_data_count(5) <= \<const0>\; axi_r_wr_data_count(4) <= \<const0>\; axi_r_wr_data_count(3) <= \<const0>\; axi_r_wr_data_count(2) <= \<const0>\; axi_r_wr_data_count(1) <= \<const0>\; axi_r_wr_data_count(0) <= \<const0>\; axi_w_data_count(10) <= \<const0>\; axi_w_data_count(9) <= \<const0>\; axi_w_data_count(8) <= \<const0>\; axi_w_data_count(7) <= \<const0>\; axi_w_data_count(6) <= \<const0>\; axi_w_data_count(5) <= \<const0>\; axi_w_data_count(4) <= \<const0>\; axi_w_data_count(3) <= \<const0>\; axi_w_data_count(2) <= \<const0>\; axi_w_data_count(1) <= \<const0>\; axi_w_data_count(0) <= \<const0>\; axi_w_dbiterr <= \<const0>\; axi_w_overflow <= \<const0>\; axi_w_prog_empty <= \<const1>\; axi_w_prog_full <= \<const0>\; axi_w_rd_data_count(10) <= \<const0>\; axi_w_rd_data_count(9) <= \<const0>\; axi_w_rd_data_count(8) <= \<const0>\; axi_w_rd_data_count(7) <= \<const0>\; axi_w_rd_data_count(6) <= \<const0>\; axi_w_rd_data_count(5) <= \<const0>\; axi_w_rd_data_count(4) <= \<const0>\; axi_w_rd_data_count(3) <= \<const0>\; axi_w_rd_data_count(2) <= \<const0>\; axi_w_rd_data_count(1) <= \<const0>\; axi_w_rd_data_count(0) <= \<const0>\; axi_w_sbiterr <= \<const0>\; axi_w_underflow <= \<const0>\; axi_w_wr_data_count(10) <= \<const0>\; axi_w_wr_data_count(9) <= \<const0>\; axi_w_wr_data_count(8) <= \<const0>\; axi_w_wr_data_count(7) <= \<const0>\; axi_w_wr_data_count(6) <= \<const0>\; axi_w_wr_data_count(5) <= \<const0>\; axi_w_wr_data_count(4) <= \<const0>\; axi_w_wr_data_count(3) <= \<const0>\; axi_w_wr_data_count(2) <= \<const0>\; axi_w_wr_data_count(1) <= \<const0>\; axi_w_wr_data_count(0) <= \<const0>\; axis_data_count(10) <= \<const0>\; axis_data_count(9) <= \<const0>\; axis_data_count(8) <= \<const0>\; axis_data_count(7) <= \<const0>\; axis_data_count(6) <= \<const0>\; axis_data_count(5) <= \<const0>\; axis_data_count(4) <= \<const0>\; axis_data_count(3) <= \<const0>\; axis_data_count(2) <= \<const0>\; axis_data_count(1) <= \<const0>\; axis_data_count(0) <= \<const0>\; axis_dbiterr <= \<const0>\; axis_overflow <= \<const0>\; axis_prog_empty <= \<const1>\; axis_prog_full <= \<const0>\; axis_rd_data_count(10) <= \<const0>\; axis_rd_data_count(9) <= \<const0>\; axis_rd_data_count(8) <= \<const0>\; axis_rd_data_count(7) <= \<const0>\; axis_rd_data_count(6) <= \<const0>\; axis_rd_data_count(5) <= \<const0>\; axis_rd_data_count(4) <= \<const0>\; axis_rd_data_count(3) <= \<const0>\; axis_rd_data_count(2) <= \<const0>\; axis_rd_data_count(1) <= \<const0>\; axis_rd_data_count(0) <= \<const0>\; axis_sbiterr <= \<const0>\; axis_underflow <= \<const0>\; axis_wr_data_count(10) <= \<const0>\; axis_wr_data_count(9) <= \<const0>\; axis_wr_data_count(8) <= \<const0>\; axis_wr_data_count(7) <= \<const0>\; axis_wr_data_count(6) <= \<const0>\; axis_wr_data_count(5) <= \<const0>\; axis_wr_data_count(4) <= \<const0>\; axis_wr_data_count(3) <= \<const0>\; axis_wr_data_count(2) <= \<const0>\; axis_wr_data_count(1) <= \<const0>\; axis_wr_data_count(0) <= \<const0>\; data_count(10) <= \<const0>\; data_count(9) <= \<const0>\; data_count(8) <= \<const0>\; data_count(7) <= \<const0>\; data_count(6) <= \<const0>\; data_count(5) <= \<const0>\; data_count(4) <= \<const0>\; data_count(3) <= \<const0>\; data_count(2) <= \<const0>\; data_count(1) <= \<const0>\; data_count(0) <= \<const0>\; dbiterr <= \<const0>\; m_axi_araddr(31) <= \<const0>\; m_axi_araddr(30) <= \<const0>\; m_axi_araddr(29) <= \<const0>\; m_axi_araddr(28) <= \<const0>\; m_axi_araddr(27) <= \<const0>\; m_axi_araddr(26) <= \<const0>\; m_axi_araddr(25) <= \<const0>\; m_axi_araddr(24) <= \<const0>\; m_axi_araddr(23) <= \<const0>\; m_axi_araddr(22) <= \<const0>\; m_axi_araddr(21) <= \<const0>\; m_axi_araddr(20) <= \<const0>\; m_axi_araddr(19) <= \<const0>\; m_axi_araddr(18) <= \<const0>\; m_axi_araddr(17) <= \<const0>\; m_axi_araddr(16) <= \<const0>\; m_axi_araddr(15) <= \<const0>\; m_axi_araddr(14) <= \<const0>\; m_axi_araddr(13) <= \<const0>\; m_axi_araddr(12) <= \<const0>\; m_axi_araddr(11) <= \<const0>\; m_axi_araddr(10) <= \<const0>\; m_axi_araddr(9) <= \<const0>\; m_axi_araddr(8) <= \<const0>\; m_axi_araddr(7) <= \<const0>\; m_axi_araddr(6) <= \<const0>\; m_axi_araddr(5) <= \<const0>\; m_axi_araddr(4) <= \<const0>\; m_axi_araddr(3) <= \<const0>\; m_axi_araddr(2) <= \<const0>\; m_axi_araddr(1) <= \<const0>\; m_axi_araddr(0) <= \<const0>\; m_axi_arburst(1) <= \<const0>\; m_axi_arburst(0) <= \<const0>\; m_axi_arcache(3) <= \<const0>\; m_axi_arcache(2) <= \<const0>\; m_axi_arcache(1) <= \<const0>\; m_axi_arcache(0) <= \<const0>\; m_axi_arid(0) <= \<const0>\; m_axi_arlen(7) <= \<const0>\; m_axi_arlen(6) <= \<const0>\; m_axi_arlen(5) <= \<const0>\; m_axi_arlen(4) <= \<const0>\; m_axi_arlen(3) <= \<const0>\; m_axi_arlen(2) <= \<const0>\; m_axi_arlen(1) <= \<const0>\; m_axi_arlen(0) <= \<const0>\; m_axi_arlock(0) <= \<const0>\; m_axi_arprot(2) <= \<const0>\; m_axi_arprot(1) <= \<const0>\; m_axi_arprot(0) <= \<const0>\; m_axi_arqos(3) <= \<const0>\; m_axi_arqos(2) <= \<const0>\; m_axi_arqos(1) <= \<const0>\; m_axi_arqos(0) <= \<const0>\; m_axi_arregion(3) <= \<const0>\; m_axi_arregion(2) <= \<const0>\; m_axi_arregion(1) <= \<const0>\; m_axi_arregion(0) <= \<const0>\; m_axi_arsize(2) <= \<const0>\; m_axi_arsize(1) <= \<const0>\; m_axi_arsize(0) <= \<const0>\; m_axi_aruser(0) <= \<const0>\; m_axi_arvalid <= \<const0>\; m_axi_awaddr(31) <= \<const0>\; m_axi_awaddr(30) <= \<const0>\; m_axi_awaddr(29) <= \<const0>\; m_axi_awaddr(28) <= \<const0>\; m_axi_awaddr(27) <= \<const0>\; m_axi_awaddr(26) <= \<const0>\; m_axi_awaddr(25) <= \<const0>\; m_axi_awaddr(24) <= \<const0>\; m_axi_awaddr(23) <= \<const0>\; m_axi_awaddr(22) <= \<const0>\; m_axi_awaddr(21) <= \<const0>\; m_axi_awaddr(20) <= \<const0>\; m_axi_awaddr(19) <= \<const0>\; m_axi_awaddr(18) <= \<const0>\; m_axi_awaddr(17) <= \<const0>\; m_axi_awaddr(16) <= \<const0>\; m_axi_awaddr(15) <= \<const0>\; m_axi_awaddr(14) <= \<const0>\; m_axi_awaddr(13) <= \<const0>\; m_axi_awaddr(12) <= \<const0>\; m_axi_awaddr(11) <= \<const0>\; m_axi_awaddr(10) <= \<const0>\; m_axi_awaddr(9) <= \<const0>\; m_axi_awaddr(8) <= \<const0>\; m_axi_awaddr(7) <= \<const0>\; m_axi_awaddr(6) <= \<const0>\; m_axi_awaddr(5) <= \<const0>\; m_axi_awaddr(4) <= \<const0>\; m_axi_awaddr(3) <= \<const0>\; m_axi_awaddr(2) <= \<const0>\; m_axi_awaddr(1) <= \<const0>\; m_axi_awaddr(0) <= \<const0>\; m_axi_awburst(1) <= \<const0>\; m_axi_awburst(0) <= \<const0>\; m_axi_awcache(3) <= \<const0>\; m_axi_awcache(2) <= \<const0>\; m_axi_awcache(1) <= \<const0>\; m_axi_awcache(0) <= \<const0>\; m_axi_awid(0) <= \<const0>\; m_axi_awlen(7) <= \<const0>\; m_axi_awlen(6) <= \<const0>\; m_axi_awlen(5) <= \<const0>\; m_axi_awlen(4) <= \<const0>\; m_axi_awlen(3) <= \<const0>\; m_axi_awlen(2) <= \<const0>\; m_axi_awlen(1) <= \<const0>\; m_axi_awlen(0) <= \<const0>\; m_axi_awlock(0) <= \<const0>\; m_axi_awprot(2) <= \<const0>\; m_axi_awprot(1) <= \<const0>\; m_axi_awprot(0) <= \<const0>\; m_axi_awqos(3) <= \<const0>\; m_axi_awqos(2) <= \<const0>\; m_axi_awqos(1) <= \<const0>\; m_axi_awqos(0) <= \<const0>\; m_axi_awregion(3) <= \<const0>\; m_axi_awregion(2) <= \<const0>\; m_axi_awregion(1) <= \<const0>\; m_axi_awregion(0) <= \<const0>\; m_axi_awsize(2) <= \<const0>\; m_axi_awsize(1) <= \<const0>\; m_axi_awsize(0) <= \<const0>\; m_axi_awuser(0) <= \<const0>\; m_axi_awvalid <= \<const0>\; m_axi_bready <= \<const0>\; m_axi_rready <= \<const0>\; m_axi_wdata(63) <= \<const0>\; m_axi_wdata(62) <= \<const0>\; m_axi_wdata(61) <= \<const0>\; m_axi_wdata(60) <= \<const0>\; m_axi_wdata(59) <= \<const0>\; m_axi_wdata(58) <= \<const0>\; m_axi_wdata(57) <= \<const0>\; m_axi_wdata(56) <= \<const0>\; m_axi_wdata(55) <= \<const0>\; m_axi_wdata(54) <= \<const0>\; m_axi_wdata(53) <= \<const0>\; m_axi_wdata(52) <= \<const0>\; m_axi_wdata(51) <= \<const0>\; m_axi_wdata(50) <= \<const0>\; m_axi_wdata(49) <= \<const0>\; m_axi_wdata(48) <= \<const0>\; m_axi_wdata(47) <= \<const0>\; m_axi_wdata(46) <= \<const0>\; m_axi_wdata(45) <= \<const0>\; m_axi_wdata(44) <= \<const0>\; m_axi_wdata(43) <= \<const0>\; m_axi_wdata(42) <= \<const0>\; m_axi_wdata(41) <= \<const0>\; m_axi_wdata(40) <= \<const0>\; m_axi_wdata(39) <= \<const0>\; m_axi_wdata(38) <= \<const0>\; m_axi_wdata(37) <= \<const0>\; m_axi_wdata(36) <= \<const0>\; m_axi_wdata(35) <= \<const0>\; m_axi_wdata(34) <= \<const0>\; m_axi_wdata(33) <= \<const0>\; m_axi_wdata(32) <= \<const0>\; m_axi_wdata(31) <= \<const0>\; m_axi_wdata(30) <= \<const0>\; m_axi_wdata(29) <= \<const0>\; m_axi_wdata(28) <= \<const0>\; m_axi_wdata(27) <= \<const0>\; m_axi_wdata(26) <= \<const0>\; m_axi_wdata(25) <= \<const0>\; m_axi_wdata(24) <= \<const0>\; m_axi_wdata(23) <= \<const0>\; m_axi_wdata(22) <= \<const0>\; m_axi_wdata(21) <= \<const0>\; m_axi_wdata(20) <= \<const0>\; m_axi_wdata(19) <= \<const0>\; m_axi_wdata(18) <= \<const0>\; m_axi_wdata(17) <= \<const0>\; m_axi_wdata(16) <= \<const0>\; m_axi_wdata(15) <= \<const0>\; m_axi_wdata(14) <= \<const0>\; m_axi_wdata(13) <= \<const0>\; m_axi_wdata(12) <= \<const0>\; m_axi_wdata(11) <= \<const0>\; m_axi_wdata(10) <= \<const0>\; m_axi_wdata(9) <= \<const0>\; m_axi_wdata(8) <= \<const0>\; m_axi_wdata(7) <= \<const0>\; m_axi_wdata(6) <= \<const0>\; m_axi_wdata(5) <= \<const0>\; m_axi_wdata(4) <= \<const0>\; m_axi_wdata(3) <= \<const0>\; m_axi_wdata(2) <= \<const0>\; m_axi_wdata(1) <= \<const0>\; m_axi_wdata(0) <= \<const0>\; m_axi_wid(0) <= \<const0>\; m_axi_wlast <= \<const0>\; m_axi_wstrb(7) <= \<const0>\; m_axi_wstrb(6) <= \<const0>\; m_axi_wstrb(5) <= \<const0>\; m_axi_wstrb(4) <= \<const0>\; m_axi_wstrb(3) <= \<const0>\; m_axi_wstrb(2) <= \<const0>\; m_axi_wstrb(1) <= \<const0>\; m_axi_wstrb(0) <= \<const0>\; m_axi_wuser(0) <= \<const0>\; m_axi_wvalid <= \<const0>\; m_axis_tdata(7) <= \<const0>\; m_axis_tdata(6) <= \<const0>\; m_axis_tdata(5) <= \<const0>\; m_axis_tdata(4) <= \<const0>\; m_axis_tdata(3) <= \<const0>\; m_axis_tdata(2) <= \<const0>\; m_axis_tdata(1) <= \<const0>\; m_axis_tdata(0) <= \<const0>\; m_axis_tdest(0) <= \<const0>\; m_axis_tid(0) <= \<const0>\; m_axis_tkeep(0) <= \<const0>\; m_axis_tlast <= \<const0>\; m_axis_tstrb(0) <= \<const0>\; m_axis_tuser(3) <= \<const0>\; m_axis_tuser(2) <= \<const0>\; m_axis_tuser(1) <= \<const0>\; m_axis_tuser(0) <= \<const0>\; m_axis_tvalid <= \<const0>\; overflow <= \<const0>\; prog_empty <= \<const0>\; prog_full <= \<const0>\; rd_data_count(10) <= \<const0>\; rd_data_count(9) <= \<const0>\; rd_data_count(8) <= \<const0>\; rd_data_count(7) <= \<const0>\; rd_data_count(6) <= \<const0>\; rd_data_count(5) <= \<const0>\; rd_data_count(4) <= \<const0>\; rd_data_count(3) <= \<const0>\; rd_data_count(2) <= \<const0>\; rd_data_count(1) <= \<const0>\; rd_data_count(0) <= \<const0>\; rd_rst_busy <= \<const0>\; s_axi_arready <= \<const0>\; s_axi_awready <= \<const0>\; s_axi_bid(0) <= \<const0>\; s_axi_bresp(1) <= \<const0>\; s_axi_bresp(0) <= \<const0>\; s_axi_buser(0) <= \<const0>\; s_axi_bvalid <= \<const0>\; s_axi_rdata(63) <= \<const0>\; s_axi_rdata(62) <= \<const0>\; s_axi_rdata(61) <= \<const0>\; s_axi_rdata(60) <= \<const0>\; s_axi_rdata(59) <= \<const0>\; s_axi_rdata(58) <= \<const0>\; s_axi_rdata(57) <= \<const0>\; s_axi_rdata(56) <= \<const0>\; s_axi_rdata(55) <= \<const0>\; s_axi_rdata(54) <= \<const0>\; s_axi_rdata(53) <= \<const0>\; s_axi_rdata(52) <= \<const0>\; s_axi_rdata(51) <= \<const0>\; s_axi_rdata(50) <= \<const0>\; s_axi_rdata(49) <= \<const0>\; s_axi_rdata(48) <= \<const0>\; s_axi_rdata(47) <= \<const0>\; s_axi_rdata(46) <= \<const0>\; s_axi_rdata(45) <= \<const0>\; s_axi_rdata(44) <= \<const0>\; s_axi_rdata(43) <= \<const0>\; s_axi_rdata(42) <= \<const0>\; s_axi_rdata(41) <= \<const0>\; s_axi_rdata(40) <= \<const0>\; s_axi_rdata(39) <= \<const0>\; s_axi_rdata(38) <= \<const0>\; s_axi_rdata(37) <= \<const0>\; s_axi_rdata(36) <= \<const0>\; s_axi_rdata(35) <= \<const0>\; s_axi_rdata(34) <= \<const0>\; s_axi_rdata(33) <= \<const0>\; s_axi_rdata(32) <= \<const0>\; s_axi_rdata(31) <= \<const0>\; s_axi_rdata(30) <= \<const0>\; s_axi_rdata(29) <= \<const0>\; s_axi_rdata(28) <= \<const0>\; s_axi_rdata(27) <= \<const0>\; s_axi_rdata(26) <= \<const0>\; s_axi_rdata(25) <= \<const0>\; s_axi_rdata(24) <= \<const0>\; s_axi_rdata(23) <= \<const0>\; s_axi_rdata(22) <= \<const0>\; s_axi_rdata(21) <= \<const0>\; s_axi_rdata(20) <= \<const0>\; s_axi_rdata(19) <= \<const0>\; s_axi_rdata(18) <= \<const0>\; s_axi_rdata(17) <= \<const0>\; s_axi_rdata(16) <= \<const0>\; s_axi_rdata(15) <= \<const0>\; s_axi_rdata(14) <= \<const0>\; s_axi_rdata(13) <= \<const0>\; s_axi_rdata(12) <= \<const0>\; s_axi_rdata(11) <= \<const0>\; s_axi_rdata(10) <= \<const0>\; s_axi_rdata(9) <= \<const0>\; s_axi_rdata(8) <= \<const0>\; s_axi_rdata(7) <= \<const0>\; s_axi_rdata(6) <= \<const0>\; s_axi_rdata(5) <= \<const0>\; s_axi_rdata(4) <= \<const0>\; s_axi_rdata(3) <= \<const0>\; s_axi_rdata(2) <= \<const0>\; s_axi_rdata(1) <= \<const0>\; s_axi_rdata(0) <= \<const0>\; s_axi_rid(0) <= \<const0>\; s_axi_rlast <= \<const0>\; s_axi_rresp(1) <= \<const0>\; s_axi_rresp(0) <= \<const0>\; s_axi_ruser(0) <= \<const0>\; s_axi_rvalid <= \<const0>\; s_axi_wready <= \<const0>\; s_axis_tready <= \<const0>\; sbiterr <= \<const0>\; underflow <= \<const0>\; valid <= \<const0>\; wr_ack <= \<const0>\; wr_data_count(10) <= \<const0>\; wr_data_count(9) <= \<const0>\; wr_data_count(8) <= \<const0>\; wr_data_count(7) <= \<const0>\; wr_data_count(6) <= \<const0>\; wr_data_count(5) <= \<const0>\; wr_data_count(4) <= \<const0>\; wr_data_count(3) <= \<const0>\; wr_data_count(2) <= \<const0>\; wr_data_count(1) <= \<const0>\; wr_data_count(0) <= \<const0>\; wr_rst_busy <= \<const0>\; GND: unisim.vcomponents.GND port map ( G => \<const0>\ ); VCC: unisim.vcomponents.VCC port map ( P => \<const1>\ ); inst_fifo_gen: entity work.scfifo_5in_5out_5kb_fifo_generator_v13_0_0_synth port map ( clk => clk, din(4 downto 0) => din(4 downto 0), dout(4 downto 0) => dout(4 downto 0), empty => empty, full => full, rd_en => rd_en, rst => rst, s_aclk => s_aclk, s_aresetn => s_aresetn, wr_en => wr_en ); end STRUCTURE; library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity scfifo_5in_5out_5kb is port ( clk : in STD_LOGIC; rst : in STD_LOGIC; din : in STD_LOGIC_VECTOR ( 4 downto 0 ); wr_en : in STD_LOGIC; rd_en : in STD_LOGIC; dout : out STD_LOGIC_VECTOR ( 4 downto 0 ); full : out STD_LOGIC; empty : out STD_LOGIC ); attribute NotValidForBitStream : boolean; attribute NotValidForBitStream of scfifo_5in_5out_5kb : entity is true; attribute CHECK_LICENSE_TYPE : string; attribute CHECK_LICENSE_TYPE of scfifo_5in_5out_5kb : entity is "scfifo_5in_5out_5kb,fifo_generator_v13_0_0,{}"; attribute core_generation_info : string; attribute core_generation_info of scfifo_5in_5out_5kb : entity is "scfifo_5in_5out_5kb,fifo_generator_v13_0_0,{x_ipProduct=Vivado 2015.3,x_ipVendor=xilinx.com,x_ipLibrary=ip,x_ipName=fifo_generator,x_ipVersion=13.0,x_ipCoreRevision=0,x_ipLanguage=VERILOG,x_ipSimLanguage=MIXED,C_COMMON_CLOCK=1,C_COUNT_TYPE=0,C_DATA_COUNT_WIDTH=11,C_DEFAULT_VALUE=BlankString,C_DIN_WIDTH=5,C_DOUT_RST_VAL=0,C_DOUT_WIDTH=5,C_ENABLE_RLOCS=0,C_FAMILY=artix7,C_FULL_FLAGS_RST_VAL=1,C_HAS_ALMOST_EMPTY=0,C_HAS_ALMOST_FULL=0,C_HAS_BACKUP=0,C_HAS_DATA_COUNT=0,C_HAS_INT_CLK=0,C_HAS_MEMINIT_FILE=0,C_HAS_OVERFLOW=0,C_HAS_RD_DATA_COUNT=0,C_HAS_RD_RST=0,C_HAS_RST=1,C_HAS_SRST=0,C_HAS_UNDERFLOW=0,C_HAS_VALID=0,C_HAS_WR_ACK=0,C_HAS_WR_DATA_COUNT=0,C_HAS_WR_RST=0,C_IMPLEMENTATION_TYPE=0,C_INIT_WR_PNTR_VAL=0,C_MEMORY_TYPE=1,C_MIF_FILE_NAME=BlankString,C_OPTIMIZATION_MODE=0,C_OVERFLOW_LOW=0,C_PRELOAD_LATENCY=0,C_PRELOAD_REGS=1,C_PRIM_FIFO_TYPE=1kx18,C_PROG_EMPTY_THRESH_ASSERT_VAL=4,C_PROG_EMPTY_THRESH_NEGATE_VAL=5,C_PROG_EMPTY_TYPE=0,C_PROG_FULL_THRESH_ASSERT_VAL=1023,C_PROG_FULL_THRESH_NEGATE_VAL=1022,C_PROG_FULL_TYPE=0,C_RD_DATA_COUNT_WIDTH=11,C_RD_DEPTH=1024,C_RD_FREQ=1,C_RD_PNTR_WIDTH=10,C_UNDERFLOW_LOW=0,C_USE_DOUT_RST=1,C_USE_ECC=0,C_USE_EMBEDDED_REG=0,C_USE_PIPELINE_REG=0,C_POWER_SAVING_MODE=0,C_USE_FIFO16_FLAGS=0,C_USE_FWFT_DATA_COUNT=1,C_VALID_LOW=0,C_WR_ACK_LOW=0,C_WR_DATA_COUNT_WIDTH=11,C_WR_DEPTH=1024,C_WR_FREQ=1,C_WR_PNTR_WIDTH=10,C_WR_RESPONSE_LATENCY=1,C_MSGON_VAL=1,C_ENABLE_RST_SYNC=1,C_EN_SAFETY_CKT=0,C_ERROR_INJECTION_TYPE=0,C_SYNCHRONIZER_STAGE=2,C_INTERFACE_TYPE=0,C_AXI_TYPE=1,C_HAS_AXI_WR_CHANNEL=1,C_HAS_AXI_RD_CHANNEL=1,C_HAS_SLAVE_CE=0,C_HAS_MASTER_CE=0,C_ADD_NGC_CONSTRAINT=0,C_USE_COMMON_OVERFLOW=0,C_USE_COMMON_UNDERFLOW=0,C_USE_DEFAULT_SETTINGS=0,C_AXI_ID_WIDTH=1,C_AXI_ADDR_WIDTH=32,C_AXI_DATA_WIDTH=64,C_AXI_LEN_WIDTH=8,C_AXI_LOCK_WIDTH=1,C_HAS_AXI_ID=0,C_HAS_AXI_AWUSER=0,C_HAS_AXI_WUSER=0,C_HAS_AXI_BUSER=0,C_HAS_AXI_ARUSER=0,C_HAS_AXI_RUSER=0,C_AXI_ARUSER_WIDTH=1,C_AXI_AWUSER_WIDTH=1,C_AXI_WUSER_WIDTH=1,C_AXI_BUSER_WIDTH=1,C_AXI_RUSER_WIDTH=1,C_HAS_AXIS_TDATA=1,C_HAS_AXIS_TID=0,C_HAS_AXIS_TDEST=0,C_HAS_AXIS_TUSER=1,C_HAS_AXIS_TREADY=1,C_HAS_AXIS_TLAST=0,C_HAS_AXIS_TSTRB=0,C_HAS_AXIS_TKEEP=0,C_AXIS_TDATA_WIDTH=8,C_AXIS_TID_WIDTH=1,C_AXIS_TDEST_WIDTH=1,C_AXIS_TUSER_WIDTH=4,C_AXIS_TSTRB_WIDTH=1,C_AXIS_TKEEP_WIDTH=1,C_WACH_TYPE=0,C_WDCH_TYPE=0,C_WRCH_TYPE=0,C_RACH_TYPE=0,C_RDCH_TYPE=0,C_AXIS_TYPE=0,C_IMPLEMENTATION_TYPE_WACH=1,C_IMPLEMENTATION_TYPE_WDCH=1,C_IMPLEMENTATION_TYPE_WRCH=1,C_IMPLEMENTATION_TYPE_RACH=1,C_IMPLEMENTATION_TYPE_RDCH=1,C_IMPLEMENTATION_TYPE_AXIS=1,C_APPLICATION_TYPE_WACH=0,C_APPLICATION_TYPE_WDCH=0,C_APPLICATION_TYPE_WRCH=0,C_APPLICATION_TYPE_RACH=0,C_APPLICATION_TYPE_RDCH=0,C_APPLICATION_TYPE_AXIS=0,C_PRIM_FIFO_TYPE_WACH=512x36,C_PRIM_FIFO_TYPE_WDCH=1kx36,C_PRIM_FIFO_TYPE_WRCH=512x36,C_PRIM_FIFO_TYPE_RACH=512x36,C_PRIM_FIFO_TYPE_RDCH=1kx36,C_PRIM_FIFO_TYPE_AXIS=1kx18,C_USE_ECC_WACH=0,C_USE_ECC_WDCH=0,C_USE_ECC_WRCH=0,C_USE_ECC_RACH=0,C_USE_ECC_RDCH=0,C_USE_ECC_AXIS=0,C_ERROR_INJECTION_TYPE_WACH=0,C_ERROR_INJECTION_TYPE_WDCH=0,C_ERROR_INJECTION_TYPE_WRCH=0,C_ERROR_INJECTION_TYPE_RACH=0,C_ERROR_INJECTION_TYPE_RDCH=0,C_ERROR_INJECTION_TYPE_AXIS=0,C_DIN_WIDTH_WACH=32,C_DIN_WIDTH_WDCH=64,C_DIN_WIDTH_WRCH=2,C_DIN_WIDTH_RACH=32,C_DIN_WIDTH_RDCH=64,C_DIN_WIDTH_AXIS=1,C_WR_DEPTH_WACH=16,C_WR_DEPTH_WDCH=1024,C_WR_DEPTH_WRCH=16,C_WR_DEPTH_RACH=16,C_WR_DEPTH_RDCH=1024,C_WR_DEPTH_AXIS=1024,C_WR_PNTR_WIDTH_WACH=4,C_WR_PNTR_WIDTH_WDCH=10,C_WR_PNTR_WIDTH_WRCH=4,C_WR_PNTR_WIDTH_RACH=4,C_WR_PNTR_WIDTH_RDCH=10,C_WR_PNTR_WIDTH_AXIS=10,C_HAS_DATA_COUNTS_WACH=0,C_HAS_DATA_COUNTS_WDCH=0,C_HAS_DATA_COUNTS_WRCH=0,C_HAS_DATA_COUNTS_RACH=0,C_HAS_DATA_COUNTS_RDCH=0,C_HAS_DATA_COUNTS_AXIS=0,C_HAS_PROG_FLAGS_WACH=0,C_HAS_PROG_FLAGS_WDCH=0,C_HAS_PROG_FLAGS_WRCH=0,C_HAS_PROG_FLAGS_RACH=0,C_HAS_PROG_FLAGS_RDCH=0,C_HAS_PROG_FLAGS_AXIS=0,C_PROG_FULL_TYPE_WACH=0,C_PROG_FULL_TYPE_WDCH=0,C_PROG_FULL_TYPE_WRCH=0,C_PROG_FULL_TYPE_RACH=0,C_PROG_FULL_TYPE_RDCH=0,C_PROG_FULL_TYPE_AXIS=0,C_PROG_FULL_THRESH_ASSERT_VAL_WACH=1023,C_PROG_FULL_THRESH_ASSERT_VAL_WDCH=1023,C_PROG_FULL_THRESH_ASSERT_VAL_WRCH=1023,C_PROG_FULL_THRESH_ASSERT_VAL_RACH=1023,C_PROG_FULL_THRESH_ASSERT_VAL_RDCH=1023,C_PROG_FULL_THRESH_ASSERT_VAL_AXIS=1023,C_PROG_EMPTY_TYPE_WACH=0,C_PROG_EMPTY_TYPE_WDCH=0,C_PROG_EMPTY_TYPE_WRCH=0,C_PROG_EMPTY_TYPE_RACH=0,C_PROG_EMPTY_TYPE_RDCH=0,C_PROG_EMPTY_TYPE_AXIS=0,C_PROG_EMPTY_THRESH_ASSERT_VAL_WACH=1022,C_PROG_EMPTY_THRESH_ASSERT_VAL_WDCH=1022,C_PROG_EMPTY_THRESH_ASSERT_VAL_WRCH=1022,C_PROG_EMPTY_THRESH_ASSERT_VAL_RACH=1022,C_PROG_EMPTY_THRESH_ASSERT_VAL_RDCH=1022,C_PROG_EMPTY_THRESH_ASSERT_VAL_AXIS=1022,C_REG_SLICE_MODE_WACH=0,C_REG_SLICE_MODE_WDCH=0,C_REG_SLICE_MODE_WRCH=0,C_REG_SLICE_MODE_RACH=0,C_REG_SLICE_MODE_RDCH=0,C_REG_SLICE_MODE_AXIS=0}"; attribute downgradeipidentifiedwarnings : string; attribute downgradeipidentifiedwarnings of scfifo_5in_5out_5kb : entity is "yes"; attribute x_core_info : string; attribute x_core_info of scfifo_5in_5out_5kb : entity is "fifo_generator_v13_0_0,Vivado 2015.3"; end scfifo_5in_5out_5kb; architecture STRUCTURE of scfifo_5in_5out_5kb is signal NLW_U0_almost_empty_UNCONNECTED : STD_LOGIC; signal NLW_U0_almost_full_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_ar_dbiterr_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_ar_overflow_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_ar_prog_empty_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_ar_prog_full_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_ar_sbiterr_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_ar_underflow_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_aw_dbiterr_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_aw_overflow_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_aw_prog_empty_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_aw_prog_full_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_aw_sbiterr_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_aw_underflow_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_b_dbiterr_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_b_overflow_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_b_prog_empty_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_b_prog_full_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_b_sbiterr_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_b_underflow_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_r_dbiterr_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_r_overflow_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_r_prog_empty_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_r_prog_full_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_r_sbiterr_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_r_underflow_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_w_dbiterr_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_w_overflow_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_w_prog_empty_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_w_prog_full_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_w_sbiterr_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_w_underflow_UNCONNECTED : STD_LOGIC; signal NLW_U0_axis_dbiterr_UNCONNECTED : STD_LOGIC; signal NLW_U0_axis_overflow_UNCONNECTED : STD_LOGIC; signal NLW_U0_axis_prog_empty_UNCONNECTED : STD_LOGIC; signal NLW_U0_axis_prog_full_UNCONNECTED : STD_LOGIC; signal NLW_U0_axis_sbiterr_UNCONNECTED : STD_LOGIC; signal NLW_U0_axis_underflow_UNCONNECTED : STD_LOGIC; signal NLW_U0_dbiterr_UNCONNECTED : STD_LOGIC; signal NLW_U0_m_axi_arvalid_UNCONNECTED : STD_LOGIC; signal NLW_U0_m_axi_awvalid_UNCONNECTED : STD_LOGIC; signal NLW_U0_m_axi_bready_UNCONNECTED : STD_LOGIC; signal NLW_U0_m_axi_rready_UNCONNECTED : STD_LOGIC; signal NLW_U0_m_axi_wlast_UNCONNECTED : STD_LOGIC; signal NLW_U0_m_axi_wvalid_UNCONNECTED : STD_LOGIC; signal NLW_U0_m_axis_tlast_UNCONNECTED : STD_LOGIC; signal NLW_U0_m_axis_tvalid_UNCONNECTED : STD_LOGIC; signal NLW_U0_overflow_UNCONNECTED : STD_LOGIC; signal NLW_U0_prog_empty_UNCONNECTED : STD_LOGIC; signal NLW_U0_prog_full_UNCONNECTED : STD_LOGIC; signal NLW_U0_rd_rst_busy_UNCONNECTED : STD_LOGIC; signal NLW_U0_s_axi_arready_UNCONNECTED : STD_LOGIC; signal NLW_U0_s_axi_awready_UNCONNECTED : STD_LOGIC; signal NLW_U0_s_axi_bvalid_UNCONNECTED : STD_LOGIC; signal NLW_U0_s_axi_rlast_UNCONNECTED : STD_LOGIC; signal NLW_U0_s_axi_rvalid_UNCONNECTED : STD_LOGIC; signal NLW_U0_s_axi_wready_UNCONNECTED : STD_LOGIC; signal NLW_U0_s_axis_tready_UNCONNECTED : STD_LOGIC; signal NLW_U0_sbiterr_UNCONNECTED : STD_LOGIC; signal NLW_U0_underflow_UNCONNECTED : STD_LOGIC; signal NLW_U0_valid_UNCONNECTED : STD_LOGIC; signal NLW_U0_wr_ack_UNCONNECTED : STD_LOGIC; signal NLW_U0_wr_rst_busy_UNCONNECTED : STD_LOGIC; signal NLW_U0_axi_ar_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 4 downto 0 ); signal NLW_U0_axi_ar_rd_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 4 downto 0 ); signal NLW_U0_axi_ar_wr_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 4 downto 0 ); signal NLW_U0_axi_aw_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 4 downto 0 ); signal NLW_U0_axi_aw_rd_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 4 downto 0 ); signal NLW_U0_axi_aw_wr_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 4 downto 0 ); signal NLW_U0_axi_b_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 4 downto 0 ); signal NLW_U0_axi_b_rd_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 4 downto 0 ); signal NLW_U0_axi_b_wr_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 4 downto 0 ); signal NLW_U0_axi_r_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 10 downto 0 ); signal NLW_U0_axi_r_rd_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 10 downto 0 ); signal NLW_U0_axi_r_wr_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 10 downto 0 ); signal NLW_U0_axi_w_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 10 downto 0 ); signal NLW_U0_axi_w_rd_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 10 downto 0 ); signal NLW_U0_axi_w_wr_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 10 downto 0 ); signal NLW_U0_axis_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 10 downto 0 ); signal NLW_U0_axis_rd_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 10 downto 0 ); signal NLW_U0_axis_wr_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 10 downto 0 ); signal NLW_U0_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 10 downto 0 ); signal NLW_U0_m_axi_araddr_UNCONNECTED : STD_LOGIC_VECTOR ( 31 downto 0 ); signal NLW_U0_m_axi_arburst_UNCONNECTED : STD_LOGIC_VECTOR ( 1 downto 0 ); signal NLW_U0_m_axi_arcache_UNCONNECTED : STD_LOGIC_VECTOR ( 3 downto 0 ); signal NLW_U0_m_axi_arid_UNCONNECTED : STD_LOGIC_VECTOR ( 0 to 0 ); signal NLW_U0_m_axi_arlen_UNCONNECTED : STD_LOGIC_VECTOR ( 7 downto 0 ); signal NLW_U0_m_axi_arlock_UNCONNECTED : STD_LOGIC_VECTOR ( 0 to 0 ); signal NLW_U0_m_axi_arprot_UNCONNECTED : STD_LOGIC_VECTOR ( 2 downto 0 ); signal NLW_U0_m_axi_arqos_UNCONNECTED : STD_LOGIC_VECTOR ( 3 downto 0 ); signal NLW_U0_m_axi_arregion_UNCONNECTED : STD_LOGIC_VECTOR ( 3 downto 0 ); signal NLW_U0_m_axi_arsize_UNCONNECTED : STD_LOGIC_VECTOR ( 2 downto 0 ); signal NLW_U0_m_axi_aruser_UNCONNECTED : STD_LOGIC_VECTOR ( 0 to 0 ); signal NLW_U0_m_axi_awaddr_UNCONNECTED : STD_LOGIC_VECTOR ( 31 downto 0 ); signal NLW_U0_m_axi_awburst_UNCONNECTED : STD_LOGIC_VECTOR ( 1 downto 0 ); signal NLW_U0_m_axi_awcache_UNCONNECTED : STD_LOGIC_VECTOR ( 3 downto 0 ); signal NLW_U0_m_axi_awid_UNCONNECTED : STD_LOGIC_VECTOR ( 0 to 0 ); signal NLW_U0_m_axi_awlen_UNCONNECTED : STD_LOGIC_VECTOR ( 7 downto 0 ); signal NLW_U0_m_axi_awlock_UNCONNECTED : STD_LOGIC_VECTOR ( 0 to 0 ); signal NLW_U0_m_axi_awprot_UNCONNECTED : STD_LOGIC_VECTOR ( 2 downto 0 ); signal NLW_U0_m_axi_awqos_UNCONNECTED : STD_LOGIC_VECTOR ( 3 downto 0 ); signal NLW_U0_m_axi_awregion_UNCONNECTED : STD_LOGIC_VECTOR ( 3 downto 0 ); signal NLW_U0_m_axi_awsize_UNCONNECTED : STD_LOGIC_VECTOR ( 2 downto 0 ); signal NLW_U0_m_axi_awuser_UNCONNECTED : STD_LOGIC_VECTOR ( 0 to 0 ); signal NLW_U0_m_axi_wdata_UNCONNECTED : STD_LOGIC_VECTOR ( 63 downto 0 ); signal NLW_U0_m_axi_wid_UNCONNECTED : STD_LOGIC_VECTOR ( 0 to 0 ); signal NLW_U0_m_axi_wstrb_UNCONNECTED : STD_LOGIC_VECTOR ( 7 downto 0 ); signal NLW_U0_m_axi_wuser_UNCONNECTED : STD_LOGIC_VECTOR ( 0 to 0 ); signal NLW_U0_m_axis_tdata_UNCONNECTED : STD_LOGIC_VECTOR ( 7 downto 0 ); signal NLW_U0_m_axis_tdest_UNCONNECTED : STD_LOGIC_VECTOR ( 0 to 0 ); signal NLW_U0_m_axis_tid_UNCONNECTED : STD_LOGIC_VECTOR ( 0 to 0 ); signal NLW_U0_m_axis_tkeep_UNCONNECTED : STD_LOGIC_VECTOR ( 0 to 0 ); signal NLW_U0_m_axis_tstrb_UNCONNECTED : STD_LOGIC_VECTOR ( 0 to 0 ); signal NLW_U0_m_axis_tuser_UNCONNECTED : STD_LOGIC_VECTOR ( 3 downto 0 ); signal NLW_U0_rd_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 10 downto 0 ); signal NLW_U0_s_axi_bid_UNCONNECTED : STD_LOGIC_VECTOR ( 0 to 0 ); signal NLW_U0_s_axi_bresp_UNCONNECTED : STD_LOGIC_VECTOR ( 1 downto 0 ); signal NLW_U0_s_axi_buser_UNCONNECTED : STD_LOGIC_VECTOR ( 0 to 0 ); signal NLW_U0_s_axi_rdata_UNCONNECTED : STD_LOGIC_VECTOR ( 63 downto 0 ); signal NLW_U0_s_axi_rid_UNCONNECTED : STD_LOGIC_VECTOR ( 0 to 0 ); signal NLW_U0_s_axi_rresp_UNCONNECTED : STD_LOGIC_VECTOR ( 1 downto 0 ); signal NLW_U0_s_axi_ruser_UNCONNECTED : STD_LOGIC_VECTOR ( 0 to 0 ); signal NLW_U0_wr_data_count_UNCONNECTED : STD_LOGIC_VECTOR ( 10 downto 0 ); attribute C_ADD_NGC_CONSTRAINT : integer; attribute C_ADD_NGC_CONSTRAINT of U0 : label is 0; attribute C_APPLICATION_TYPE_AXIS : integer; attribute C_APPLICATION_TYPE_AXIS of U0 : label is 0; attribute C_APPLICATION_TYPE_RACH : integer; attribute C_APPLICATION_TYPE_RACH of U0 : label is 0; attribute C_APPLICATION_TYPE_RDCH : integer; attribute C_APPLICATION_TYPE_RDCH of U0 : label is 0; attribute C_APPLICATION_TYPE_WACH : integer; attribute C_APPLICATION_TYPE_WACH of U0 : label is 0; attribute C_APPLICATION_TYPE_WDCH : integer; attribute C_APPLICATION_TYPE_WDCH of U0 : label is 0; attribute C_APPLICATION_TYPE_WRCH : integer; attribute C_APPLICATION_TYPE_WRCH of U0 : label is 0; attribute C_AXIS_TDATA_WIDTH : integer; attribute C_AXIS_TDATA_WIDTH of U0 : label is 8; attribute C_AXIS_TDEST_WIDTH : integer; attribute C_AXIS_TDEST_WIDTH of U0 : label is 1; attribute C_AXIS_TID_WIDTH : integer; attribute C_AXIS_TID_WIDTH of U0 : label is 1; attribute C_AXIS_TKEEP_WIDTH : integer; attribute C_AXIS_TKEEP_WIDTH of U0 : label is 1; attribute C_AXIS_TSTRB_WIDTH : integer; attribute C_AXIS_TSTRB_WIDTH of U0 : label is 1; attribute C_AXIS_TUSER_WIDTH : integer; attribute C_AXIS_TUSER_WIDTH of U0 : label is 4; attribute C_AXIS_TYPE : integer; attribute C_AXIS_TYPE of U0 : label is 0; attribute C_AXI_ADDR_WIDTH : integer; attribute C_AXI_ADDR_WIDTH of U0 : label is 32; attribute C_AXI_ARUSER_WIDTH : integer; attribute C_AXI_ARUSER_WIDTH of U0 : label is 1; attribute C_AXI_AWUSER_WIDTH : integer; attribute C_AXI_AWUSER_WIDTH of U0 : label is 1; attribute C_AXI_BUSER_WIDTH : integer; attribute C_AXI_BUSER_WIDTH of U0 : label is 1; attribute C_AXI_DATA_WIDTH : integer; attribute C_AXI_DATA_WIDTH of U0 : label is 64; attribute C_AXI_ID_WIDTH : integer; attribute C_AXI_ID_WIDTH of U0 : label is 1; attribute C_AXI_LEN_WIDTH : integer; attribute C_AXI_LEN_WIDTH of U0 : label is 8; attribute C_AXI_LOCK_WIDTH : integer; attribute C_AXI_LOCK_WIDTH of U0 : label is 1; attribute C_AXI_RUSER_WIDTH : integer; attribute C_AXI_RUSER_WIDTH of U0 : label is 1; attribute C_AXI_TYPE : integer; attribute C_AXI_TYPE of U0 : label is 1; attribute C_AXI_WUSER_WIDTH : integer; attribute C_AXI_WUSER_WIDTH of U0 : label is 1; attribute C_COMMON_CLOCK : integer; attribute C_COMMON_CLOCK of U0 : label is 1; attribute C_COUNT_TYPE : integer; attribute C_COUNT_TYPE of U0 : label is 0; attribute C_DATA_COUNT_WIDTH : integer; attribute C_DATA_COUNT_WIDTH of U0 : label is 11; attribute C_DEFAULT_VALUE : string; attribute C_DEFAULT_VALUE of U0 : label is "BlankString"; attribute C_DIN_WIDTH : integer; attribute C_DIN_WIDTH of U0 : label is 5; attribute C_DIN_WIDTH_AXIS : integer; attribute C_DIN_WIDTH_AXIS of U0 : label is 1; attribute C_DIN_WIDTH_RACH : integer; attribute C_DIN_WIDTH_RACH of U0 : label is 32; attribute C_DIN_WIDTH_RDCH : integer; attribute C_DIN_WIDTH_RDCH of U0 : label is 64; attribute C_DIN_WIDTH_WACH : integer; attribute C_DIN_WIDTH_WACH of U0 : label is 32; attribute C_DIN_WIDTH_WDCH : integer; attribute C_DIN_WIDTH_WDCH of U0 : label is 64; attribute C_DIN_WIDTH_WRCH : integer; attribute C_DIN_WIDTH_WRCH of U0 : label is 2; attribute C_DOUT_RST_VAL : string; attribute C_DOUT_RST_VAL of U0 : label is "0"; attribute C_DOUT_WIDTH : integer; attribute C_DOUT_WIDTH of U0 : label is 5; attribute C_ENABLE_RLOCS : integer; attribute C_ENABLE_RLOCS of U0 : label is 0; attribute C_ENABLE_RST_SYNC : integer; attribute C_ENABLE_RST_SYNC of U0 : label is 1; attribute C_EN_SAFETY_CKT : integer; attribute C_EN_SAFETY_CKT of U0 : label is 0; attribute C_ERROR_INJECTION_TYPE : integer; attribute C_ERROR_INJECTION_TYPE of U0 : label is 0; attribute C_ERROR_INJECTION_TYPE_AXIS : integer; attribute C_ERROR_INJECTION_TYPE_AXIS of U0 : label is 0; attribute C_ERROR_INJECTION_TYPE_RACH : integer; attribute C_ERROR_INJECTION_TYPE_RACH of U0 : label is 0; attribute C_ERROR_INJECTION_TYPE_RDCH : integer; attribute C_ERROR_INJECTION_TYPE_RDCH of U0 : label is 0; attribute C_ERROR_INJECTION_TYPE_WACH : integer; attribute C_ERROR_INJECTION_TYPE_WACH of U0 : label is 0; attribute C_ERROR_INJECTION_TYPE_WDCH : integer; attribute C_ERROR_INJECTION_TYPE_WDCH of U0 : label is 0; attribute C_ERROR_INJECTION_TYPE_WRCH : integer; attribute C_ERROR_INJECTION_TYPE_WRCH of U0 : label is 0; attribute C_FAMILY : string; attribute C_FAMILY of U0 : label is "artix7"; attribute C_FULL_FLAGS_RST_VAL : integer; attribute C_FULL_FLAGS_RST_VAL of U0 : label is 1; attribute C_HAS_ALMOST_EMPTY : integer; attribute C_HAS_ALMOST_EMPTY of U0 : label is 0; attribute C_HAS_ALMOST_FULL : integer; attribute C_HAS_ALMOST_FULL of U0 : label is 0; attribute C_HAS_AXIS_TDATA : integer; attribute C_HAS_AXIS_TDATA of U0 : label is 1; attribute C_HAS_AXIS_TDEST : integer; attribute C_HAS_AXIS_TDEST of U0 : label is 0; attribute C_HAS_AXIS_TID : integer; attribute C_HAS_AXIS_TID of U0 : label is 0; attribute C_HAS_AXIS_TKEEP : integer; attribute C_HAS_AXIS_TKEEP of U0 : label is 0; attribute C_HAS_AXIS_TLAST : integer; attribute C_HAS_AXIS_TLAST of U0 : label is 0; attribute C_HAS_AXIS_TREADY : integer; attribute C_HAS_AXIS_TREADY of U0 : label is 1; attribute C_HAS_AXIS_TSTRB : integer; attribute C_HAS_AXIS_TSTRB of U0 : label is 0; attribute C_HAS_AXIS_TUSER : integer; attribute C_HAS_AXIS_TUSER of U0 : label is 1; attribute C_HAS_AXI_ARUSER : integer; attribute C_HAS_AXI_ARUSER of U0 : label is 0; attribute C_HAS_AXI_AWUSER : integer; attribute C_HAS_AXI_AWUSER of U0 : label is 0; attribute C_HAS_AXI_BUSER : integer; attribute C_HAS_AXI_BUSER of U0 : label is 0; attribute C_HAS_AXI_ID : integer; attribute C_HAS_AXI_ID of U0 : label is 0; attribute C_HAS_AXI_RD_CHANNEL : integer; attribute C_HAS_AXI_RD_CHANNEL of U0 : label is 1; attribute C_HAS_AXI_RUSER : integer; attribute C_HAS_AXI_RUSER of U0 : label is 0; attribute C_HAS_AXI_WR_CHANNEL : integer; attribute C_HAS_AXI_WR_CHANNEL of U0 : label is 1; attribute C_HAS_AXI_WUSER : integer; attribute C_HAS_AXI_WUSER of U0 : label is 0; attribute C_HAS_BACKUP : integer; attribute C_HAS_BACKUP of U0 : label is 0; attribute C_HAS_DATA_COUNT : integer; attribute C_HAS_DATA_COUNT of U0 : label is 0; attribute C_HAS_DATA_COUNTS_AXIS : integer; attribute C_HAS_DATA_COUNTS_AXIS of U0 : label is 0; attribute C_HAS_DATA_COUNTS_RACH : integer; attribute C_HAS_DATA_COUNTS_RACH of U0 : label is 0; attribute C_HAS_DATA_COUNTS_RDCH : integer; attribute C_HAS_DATA_COUNTS_RDCH of U0 : label is 0; attribute C_HAS_DATA_COUNTS_WACH : integer; attribute C_HAS_DATA_COUNTS_WACH of U0 : label is 0; attribute C_HAS_DATA_COUNTS_WDCH : integer; attribute C_HAS_DATA_COUNTS_WDCH of U0 : label is 0; attribute C_HAS_DATA_COUNTS_WRCH : integer; attribute C_HAS_DATA_COUNTS_WRCH of U0 : label is 0; attribute C_HAS_INT_CLK : integer; attribute C_HAS_INT_CLK of U0 : label is 0; attribute C_HAS_MASTER_CE : integer; attribute C_HAS_MASTER_CE of U0 : label is 0; attribute C_HAS_MEMINIT_FILE : integer; attribute C_HAS_MEMINIT_FILE of U0 : label is 0; attribute C_HAS_OVERFLOW : integer; attribute C_HAS_OVERFLOW of U0 : label is 0; attribute C_HAS_PROG_FLAGS_AXIS : integer; attribute C_HAS_PROG_FLAGS_AXIS of U0 : label is 0; attribute C_HAS_PROG_FLAGS_RACH : integer; attribute C_HAS_PROG_FLAGS_RACH of U0 : label is 0; attribute C_HAS_PROG_FLAGS_RDCH : integer; attribute C_HAS_PROG_FLAGS_RDCH of U0 : label is 0; attribute C_HAS_PROG_FLAGS_WACH : integer; attribute C_HAS_PROG_FLAGS_WACH of U0 : label is 0; attribute C_HAS_PROG_FLAGS_WDCH : integer; attribute C_HAS_PROG_FLAGS_WDCH of U0 : label is 0; attribute C_HAS_PROG_FLAGS_WRCH : integer; attribute C_HAS_PROG_FLAGS_WRCH of U0 : label is 0; attribute C_HAS_RD_DATA_COUNT : integer; attribute C_HAS_RD_DATA_COUNT of U0 : label is 0; attribute C_HAS_RD_RST : integer; attribute C_HAS_RD_RST of U0 : label is 0; attribute C_HAS_RST : integer; attribute C_HAS_RST of U0 : label is 1; attribute C_HAS_SLAVE_CE : integer; attribute C_HAS_SLAVE_CE of U0 : label is 0; attribute C_HAS_SRST : integer; attribute C_HAS_SRST of U0 : label is 0; attribute C_HAS_UNDERFLOW : integer; attribute C_HAS_UNDERFLOW of U0 : label is 0; attribute C_HAS_VALID : integer; attribute C_HAS_VALID of U0 : label is 0; attribute C_HAS_WR_ACK : integer; attribute C_HAS_WR_ACK of U0 : label is 0; attribute C_HAS_WR_DATA_COUNT : integer; attribute C_HAS_WR_DATA_COUNT of U0 : label is 0; attribute C_HAS_WR_RST : integer; attribute C_HAS_WR_RST of U0 : label is 0; attribute C_IMPLEMENTATION_TYPE : integer; attribute C_IMPLEMENTATION_TYPE of U0 : label is 0; attribute C_IMPLEMENTATION_TYPE_AXIS : integer; attribute C_IMPLEMENTATION_TYPE_AXIS of U0 : label is 1; attribute C_IMPLEMENTATION_TYPE_RACH : integer; attribute C_IMPLEMENTATION_TYPE_RACH of U0 : label is 1; attribute C_IMPLEMENTATION_TYPE_RDCH : integer; attribute C_IMPLEMENTATION_TYPE_RDCH of U0 : label is 1; attribute C_IMPLEMENTATION_TYPE_WACH : integer; attribute C_IMPLEMENTATION_TYPE_WACH of U0 : label is 1; attribute C_IMPLEMENTATION_TYPE_WDCH : integer; attribute C_IMPLEMENTATION_TYPE_WDCH of U0 : label is 1; attribute C_IMPLEMENTATION_TYPE_WRCH : integer; attribute C_IMPLEMENTATION_TYPE_WRCH of U0 : label is 1; attribute C_INIT_WR_PNTR_VAL : integer; attribute C_INIT_WR_PNTR_VAL of U0 : label is 0; attribute C_INTERFACE_TYPE : integer; attribute C_INTERFACE_TYPE of U0 : label is 0; attribute C_MEMORY_TYPE : integer; attribute C_MEMORY_TYPE of U0 : label is 1; attribute C_MIF_FILE_NAME : string; attribute C_MIF_FILE_NAME of U0 : label is "BlankString"; attribute C_MSGON_VAL : integer; attribute C_MSGON_VAL of U0 : label is 1; attribute C_OPTIMIZATION_MODE : integer; attribute C_OPTIMIZATION_MODE of U0 : label is 0; attribute C_OVERFLOW_LOW : integer; attribute C_OVERFLOW_LOW of U0 : label is 0; attribute C_POWER_SAVING_MODE : integer; attribute C_POWER_SAVING_MODE of U0 : label is 0; attribute C_PRELOAD_LATENCY : integer; attribute C_PRELOAD_LATENCY of U0 : label is 0; attribute C_PRELOAD_REGS : integer; attribute C_PRELOAD_REGS of U0 : label is 1; attribute C_PRIM_FIFO_TYPE : string; attribute C_PRIM_FIFO_TYPE of U0 : label is "1kx18"; attribute C_PRIM_FIFO_TYPE_AXIS : string; attribute C_PRIM_FIFO_TYPE_AXIS of U0 : label is "1kx18"; attribute C_PRIM_FIFO_TYPE_RACH : string; attribute C_PRIM_FIFO_TYPE_RACH of U0 : label is "512x36"; attribute C_PRIM_FIFO_TYPE_RDCH : string; attribute C_PRIM_FIFO_TYPE_RDCH of U0 : label is "1kx36"; attribute C_PRIM_FIFO_TYPE_WACH : string; attribute C_PRIM_FIFO_TYPE_WACH of U0 : label is "512x36"; attribute C_PRIM_FIFO_TYPE_WDCH : string; attribute C_PRIM_FIFO_TYPE_WDCH of U0 : label is "1kx36"; attribute C_PRIM_FIFO_TYPE_WRCH : string; attribute C_PRIM_FIFO_TYPE_WRCH of U0 : label is "512x36"; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL : integer; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL of U0 : label is 4; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_AXIS : integer; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_AXIS of U0 : label is 1022; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_RACH : integer; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_RACH of U0 : label is 1022; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_RDCH : integer; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_RDCH of U0 : label is 1022; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_WACH : integer; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_WACH of U0 : label is 1022; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_WDCH : integer; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_WDCH of U0 : label is 1022; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_WRCH : integer; attribute C_PROG_EMPTY_THRESH_ASSERT_VAL_WRCH of U0 : label is 1022; attribute C_PROG_EMPTY_THRESH_NEGATE_VAL : integer; attribute C_PROG_EMPTY_THRESH_NEGATE_VAL of U0 : label is 5; attribute C_PROG_EMPTY_TYPE : integer; attribute C_PROG_EMPTY_TYPE of U0 : label is 0; attribute C_PROG_EMPTY_TYPE_AXIS : integer; attribute C_PROG_EMPTY_TYPE_AXIS of U0 : label is 0; attribute C_PROG_EMPTY_TYPE_RACH : integer; attribute C_PROG_EMPTY_TYPE_RACH of U0 : label is 0; attribute C_PROG_EMPTY_TYPE_RDCH : integer; attribute C_PROG_EMPTY_TYPE_RDCH of U0 : label is 0; attribute C_PROG_EMPTY_TYPE_WACH : integer; attribute C_PROG_EMPTY_TYPE_WACH of U0 : label is 0; attribute C_PROG_EMPTY_TYPE_WDCH : integer; attribute C_PROG_EMPTY_TYPE_WDCH of U0 : label is 0; attribute C_PROG_EMPTY_TYPE_WRCH : integer; attribute C_PROG_EMPTY_TYPE_WRCH of U0 : label is 0; attribute C_PROG_FULL_THRESH_ASSERT_VAL : integer; attribute C_PROG_FULL_THRESH_ASSERT_VAL of U0 : label is 1023; attribute C_PROG_FULL_THRESH_ASSERT_VAL_AXIS : integer; attribute C_PROG_FULL_THRESH_ASSERT_VAL_AXIS of U0 : label is 1023; attribute C_PROG_FULL_THRESH_ASSERT_VAL_RACH : integer; attribute C_PROG_FULL_THRESH_ASSERT_VAL_RACH of U0 : label is 1023; attribute C_PROG_FULL_THRESH_ASSERT_VAL_RDCH : integer; attribute C_PROG_FULL_THRESH_ASSERT_VAL_RDCH of U0 : label is 1023; attribute C_PROG_FULL_THRESH_ASSERT_VAL_WACH : integer; attribute C_PROG_FULL_THRESH_ASSERT_VAL_WACH of U0 : label is 1023; attribute C_PROG_FULL_THRESH_ASSERT_VAL_WDCH : integer; attribute C_PROG_FULL_THRESH_ASSERT_VAL_WDCH of U0 : label is 1023; attribute C_PROG_FULL_THRESH_ASSERT_VAL_WRCH : integer; attribute C_PROG_FULL_THRESH_ASSERT_VAL_WRCH of U0 : label is 1023; attribute C_PROG_FULL_THRESH_NEGATE_VAL : integer; attribute C_PROG_FULL_THRESH_NEGATE_VAL of U0 : label is 1022; attribute C_PROG_FULL_TYPE : integer; attribute C_PROG_FULL_TYPE of U0 : label is 0; attribute C_PROG_FULL_TYPE_AXIS : integer; attribute C_PROG_FULL_TYPE_AXIS of U0 : label is 0; attribute C_PROG_FULL_TYPE_RACH : integer; attribute C_PROG_FULL_TYPE_RACH of U0 : label is 0; attribute C_PROG_FULL_TYPE_RDCH : integer; attribute C_PROG_FULL_TYPE_RDCH of U0 : label is 0; attribute C_PROG_FULL_TYPE_WACH : integer; attribute C_PROG_FULL_TYPE_WACH of U0 : label is 0; attribute C_PROG_FULL_TYPE_WDCH : integer; attribute C_PROG_FULL_TYPE_WDCH of U0 : label is 0; attribute C_PROG_FULL_TYPE_WRCH : integer; attribute C_PROG_FULL_TYPE_WRCH of U0 : label is 0; attribute C_RACH_TYPE : integer; attribute C_RACH_TYPE of U0 : label is 0; attribute C_RDCH_TYPE : integer; attribute C_RDCH_TYPE of U0 : label is 0; attribute C_RD_DATA_COUNT_WIDTH : integer; attribute C_RD_DATA_COUNT_WIDTH of U0 : label is 11; attribute C_RD_DEPTH : integer; attribute C_RD_DEPTH of U0 : label is 1024; attribute C_RD_FREQ : integer; attribute C_RD_FREQ of U0 : label is 1; attribute C_RD_PNTR_WIDTH : integer; attribute C_RD_PNTR_WIDTH of U0 : label is 10; attribute C_REG_SLICE_MODE_AXIS : integer; attribute C_REG_SLICE_MODE_AXIS of U0 : label is 0; attribute C_REG_SLICE_MODE_RACH : integer; attribute C_REG_SLICE_MODE_RACH of U0 : label is 0; attribute C_REG_SLICE_MODE_RDCH : integer; attribute C_REG_SLICE_MODE_RDCH of U0 : label is 0; attribute C_REG_SLICE_MODE_WACH : integer; attribute C_REG_SLICE_MODE_WACH of U0 : label is 0; attribute C_REG_SLICE_MODE_WDCH : integer; attribute C_REG_SLICE_MODE_WDCH of U0 : label is 0; attribute C_REG_SLICE_MODE_WRCH : integer; attribute C_REG_SLICE_MODE_WRCH of U0 : label is 0; attribute C_SYNCHRONIZER_STAGE : integer; attribute C_SYNCHRONIZER_STAGE of U0 : label is 2; attribute C_UNDERFLOW_LOW : integer; attribute C_UNDERFLOW_LOW of U0 : label is 0; attribute C_USE_COMMON_OVERFLOW : integer; attribute C_USE_COMMON_OVERFLOW of U0 : label is 0; attribute C_USE_COMMON_UNDERFLOW : integer; attribute C_USE_COMMON_UNDERFLOW of U0 : label is 0; attribute C_USE_DEFAULT_SETTINGS : integer; attribute C_USE_DEFAULT_SETTINGS of U0 : label is 0; attribute C_USE_DOUT_RST : integer; attribute C_USE_DOUT_RST of U0 : label is 1; attribute C_USE_ECC : integer; attribute C_USE_ECC of U0 : label is 0; attribute C_USE_ECC_AXIS : integer; attribute C_USE_ECC_AXIS of U0 : label is 0; attribute C_USE_ECC_RACH : integer; attribute C_USE_ECC_RACH of U0 : label is 0; attribute C_USE_ECC_RDCH : integer; attribute C_USE_ECC_RDCH of U0 : label is 0; attribute C_USE_ECC_WACH : integer; attribute C_USE_ECC_WACH of U0 : label is 0; attribute C_USE_ECC_WDCH : integer; attribute C_USE_ECC_WDCH of U0 : label is 0; attribute C_USE_ECC_WRCH : integer; attribute C_USE_ECC_WRCH of U0 : label is 0; attribute C_USE_EMBEDDED_REG : integer; attribute C_USE_EMBEDDED_REG of U0 : label is 0; attribute C_USE_FIFO16_FLAGS : integer; attribute C_USE_FIFO16_FLAGS of U0 : label is 0; attribute C_USE_FWFT_DATA_COUNT : integer; attribute C_USE_FWFT_DATA_COUNT of U0 : label is 1; attribute C_USE_PIPELINE_REG : integer; attribute C_USE_PIPELINE_REG of U0 : label is 0; attribute C_VALID_LOW : integer; attribute C_VALID_LOW of U0 : label is 0; attribute C_WACH_TYPE : integer; attribute C_WACH_TYPE of U0 : label is 0; attribute C_WDCH_TYPE : integer; attribute C_WDCH_TYPE of U0 : label is 0; attribute C_WRCH_TYPE : integer; attribute C_WRCH_TYPE of U0 : label is 0; attribute C_WR_ACK_LOW : integer; attribute C_WR_ACK_LOW of U0 : label is 0; attribute C_WR_DATA_COUNT_WIDTH : integer; attribute C_WR_DATA_COUNT_WIDTH of U0 : label is 11; attribute C_WR_DEPTH : integer; attribute C_WR_DEPTH of U0 : label is 1024; attribute C_WR_DEPTH_AXIS : integer; attribute C_WR_DEPTH_AXIS of U0 : label is 1024; attribute C_WR_DEPTH_RACH : integer; attribute C_WR_DEPTH_RACH of U0 : label is 16; attribute C_WR_DEPTH_RDCH : integer; attribute C_WR_DEPTH_RDCH of U0 : label is 1024; attribute C_WR_DEPTH_WACH : integer; attribute C_WR_DEPTH_WACH of U0 : label is 16; attribute C_WR_DEPTH_WDCH : integer; attribute C_WR_DEPTH_WDCH of U0 : label is 1024; attribute C_WR_DEPTH_WRCH : integer; attribute C_WR_DEPTH_WRCH of U0 : label is 16; attribute C_WR_FREQ : integer; attribute C_WR_FREQ of U0 : label is 1; attribute C_WR_PNTR_WIDTH : integer; attribute C_WR_PNTR_WIDTH of U0 : label is 10; attribute C_WR_PNTR_WIDTH_AXIS : integer; attribute C_WR_PNTR_WIDTH_AXIS of U0 : label is 10; attribute C_WR_PNTR_WIDTH_RACH : integer; attribute C_WR_PNTR_WIDTH_RACH of U0 : label is 4; attribute C_WR_PNTR_WIDTH_RDCH : integer; attribute C_WR_PNTR_WIDTH_RDCH of U0 : label is 10; attribute C_WR_PNTR_WIDTH_WACH : integer; attribute C_WR_PNTR_WIDTH_WACH of U0 : label is 4; attribute C_WR_PNTR_WIDTH_WDCH : integer; attribute C_WR_PNTR_WIDTH_WDCH of U0 : label is 10; attribute C_WR_PNTR_WIDTH_WRCH : integer; attribute C_WR_PNTR_WIDTH_WRCH of U0 : label is 4; attribute C_WR_RESPONSE_LATENCY : integer; attribute C_WR_RESPONSE_LATENCY of U0 : label is 1; attribute x_interface_info : string; attribute x_interface_info of U0 : label is "xilinx.com:interface:fifo_read:1.0 FIFO_READ RD_DATA"; begin U0: entity work.scfifo_5in_5out_5kb_fifo_generator_v13_0_0 port map ( almost_empty => NLW_U0_almost_empty_UNCONNECTED, almost_full => NLW_U0_almost_full_UNCONNECTED, axi_ar_data_count(4 downto 0) => NLW_U0_axi_ar_data_count_UNCONNECTED(4 downto 0), axi_ar_dbiterr => NLW_U0_axi_ar_dbiterr_UNCONNECTED, axi_ar_injectdbiterr => '0', axi_ar_injectsbiterr => '0', axi_ar_overflow => NLW_U0_axi_ar_overflow_UNCONNECTED, axi_ar_prog_empty => NLW_U0_axi_ar_prog_empty_UNCONNECTED, axi_ar_prog_empty_thresh(3 downto 0) => B"0000", axi_ar_prog_full => NLW_U0_axi_ar_prog_full_UNCONNECTED, axi_ar_prog_full_thresh(3 downto 0) => B"0000", axi_ar_rd_data_count(4 downto 0) => NLW_U0_axi_ar_rd_data_count_UNCONNECTED(4 downto 0), axi_ar_sbiterr => NLW_U0_axi_ar_sbiterr_UNCONNECTED, axi_ar_underflow => NLW_U0_axi_ar_underflow_UNCONNECTED, axi_ar_wr_data_count(4 downto 0) => NLW_U0_axi_ar_wr_data_count_UNCONNECTED(4 downto 0), axi_aw_data_count(4 downto 0) => NLW_U0_axi_aw_data_count_UNCONNECTED(4 downto 0), axi_aw_dbiterr => NLW_U0_axi_aw_dbiterr_UNCONNECTED, axi_aw_injectdbiterr => '0', axi_aw_injectsbiterr => '0', axi_aw_overflow => NLW_U0_axi_aw_overflow_UNCONNECTED, axi_aw_prog_empty => NLW_U0_axi_aw_prog_empty_UNCONNECTED, axi_aw_prog_empty_thresh(3 downto 0) => B"0000", axi_aw_prog_full => NLW_U0_axi_aw_prog_full_UNCONNECTED, axi_aw_prog_full_thresh(3 downto 0) => B"0000", axi_aw_rd_data_count(4 downto 0) => NLW_U0_axi_aw_rd_data_count_UNCONNECTED(4 downto 0), axi_aw_sbiterr => NLW_U0_axi_aw_sbiterr_UNCONNECTED, axi_aw_underflow => NLW_U0_axi_aw_underflow_UNCONNECTED, axi_aw_wr_data_count(4 downto 0) => NLW_U0_axi_aw_wr_data_count_UNCONNECTED(4 downto 0), axi_b_data_count(4 downto 0) => NLW_U0_axi_b_data_count_UNCONNECTED(4 downto 0), axi_b_dbiterr => NLW_U0_axi_b_dbiterr_UNCONNECTED, axi_b_injectdbiterr => '0', axi_b_injectsbiterr => '0', axi_b_overflow => NLW_U0_axi_b_overflow_UNCONNECTED, axi_b_prog_empty => NLW_U0_axi_b_prog_empty_UNCONNECTED, axi_b_prog_empty_thresh(3 downto 0) => B"0000", axi_b_prog_full => NLW_U0_axi_b_prog_full_UNCONNECTED, axi_b_prog_full_thresh(3 downto 0) => B"0000", axi_b_rd_data_count(4 downto 0) => NLW_U0_axi_b_rd_data_count_UNCONNECTED(4 downto 0), axi_b_sbiterr => NLW_U0_axi_b_sbiterr_UNCONNECTED, axi_b_underflow => NLW_U0_axi_b_underflow_UNCONNECTED, axi_b_wr_data_count(4 downto 0) => NLW_U0_axi_b_wr_data_count_UNCONNECTED(4 downto 0), axi_r_data_count(10 downto 0) => NLW_U0_axi_r_data_count_UNCONNECTED(10 downto 0), axi_r_dbiterr => NLW_U0_axi_r_dbiterr_UNCONNECTED, axi_r_injectdbiterr => '0', axi_r_injectsbiterr => '0', axi_r_overflow => NLW_U0_axi_r_overflow_UNCONNECTED, axi_r_prog_empty => NLW_U0_axi_r_prog_empty_UNCONNECTED, axi_r_prog_empty_thresh(9 downto 0) => B"0000000000", axi_r_prog_full => NLW_U0_axi_r_prog_full_UNCONNECTED, axi_r_prog_full_thresh(9 downto 0) => B"0000000000", axi_r_rd_data_count(10 downto 0) => NLW_U0_axi_r_rd_data_count_UNCONNECTED(10 downto 0), axi_r_sbiterr => NLW_U0_axi_r_sbiterr_UNCONNECTED, axi_r_underflow => NLW_U0_axi_r_underflow_UNCONNECTED, axi_r_wr_data_count(10 downto 0) => NLW_U0_axi_r_wr_data_count_UNCONNECTED(10 downto 0), axi_w_data_count(10 downto 0) => NLW_U0_axi_w_data_count_UNCONNECTED(10 downto 0), axi_w_dbiterr => NLW_U0_axi_w_dbiterr_UNCONNECTED, axi_w_injectdbiterr => '0', axi_w_injectsbiterr => '0', axi_w_overflow => NLW_U0_axi_w_overflow_UNCONNECTED, axi_w_prog_empty => NLW_U0_axi_w_prog_empty_UNCONNECTED, axi_w_prog_empty_thresh(9 downto 0) => B"0000000000", axi_w_prog_full => NLW_U0_axi_w_prog_full_UNCONNECTED, axi_w_prog_full_thresh(9 downto 0) => B"0000000000", axi_w_rd_data_count(10 downto 0) => NLW_U0_axi_w_rd_data_count_UNCONNECTED(10 downto 0), axi_w_sbiterr => NLW_U0_axi_w_sbiterr_UNCONNECTED, axi_w_underflow => NLW_U0_axi_w_underflow_UNCONNECTED, axi_w_wr_data_count(10 downto 0) => NLW_U0_axi_w_wr_data_count_UNCONNECTED(10 downto 0), axis_data_count(10 downto 0) => NLW_U0_axis_data_count_UNCONNECTED(10 downto 0), axis_dbiterr => NLW_U0_axis_dbiterr_UNCONNECTED, axis_injectdbiterr => '0', axis_injectsbiterr => '0', axis_overflow => NLW_U0_axis_overflow_UNCONNECTED, axis_prog_empty => NLW_U0_axis_prog_empty_UNCONNECTED, axis_prog_empty_thresh(9 downto 0) => B"0000000000", axis_prog_full => NLW_U0_axis_prog_full_UNCONNECTED, axis_prog_full_thresh(9 downto 0) => B"0000000000", axis_rd_data_count(10 downto 0) => NLW_U0_axis_rd_data_count_UNCONNECTED(10 downto 0), axis_sbiterr => NLW_U0_axis_sbiterr_UNCONNECTED, axis_underflow => NLW_U0_axis_underflow_UNCONNECTED, axis_wr_data_count(10 downto 0) => NLW_U0_axis_wr_data_count_UNCONNECTED(10 downto 0), backup => '0', backup_marker => '0', clk => clk, data_count(10 downto 0) => NLW_U0_data_count_UNCONNECTED(10 downto 0), dbiterr => NLW_U0_dbiterr_UNCONNECTED, din(4 downto 0) => din(4 downto 0), dout(4 downto 0) => dout(4 downto 0), empty => empty, full => full, injectdbiterr => '0', injectsbiterr => '0', int_clk => '0', m_aclk => '0', m_aclk_en => '0', m_axi_araddr(31 downto 0) => NLW_U0_m_axi_araddr_UNCONNECTED(31 downto 0), m_axi_arburst(1 downto 0) => NLW_U0_m_axi_arburst_UNCONNECTED(1 downto 0), m_axi_arcache(3 downto 0) => NLW_U0_m_axi_arcache_UNCONNECTED(3 downto 0), m_axi_arid(0) => NLW_U0_m_axi_arid_UNCONNECTED(0), m_axi_arlen(7 downto 0) => NLW_U0_m_axi_arlen_UNCONNECTED(7 downto 0), m_axi_arlock(0) => NLW_U0_m_axi_arlock_UNCONNECTED(0), m_axi_arprot(2 downto 0) => NLW_U0_m_axi_arprot_UNCONNECTED(2 downto 0), m_axi_arqos(3 downto 0) => NLW_U0_m_axi_arqos_UNCONNECTED(3 downto 0), m_axi_arready => '0', m_axi_arregion(3 downto 0) => NLW_U0_m_axi_arregion_UNCONNECTED(3 downto 0), m_axi_arsize(2 downto 0) => NLW_U0_m_axi_arsize_UNCONNECTED(2 downto 0), m_axi_aruser(0) => NLW_U0_m_axi_aruser_UNCONNECTED(0), m_axi_arvalid => NLW_U0_m_axi_arvalid_UNCONNECTED, m_axi_awaddr(31 downto 0) => NLW_U0_m_axi_awaddr_UNCONNECTED(31 downto 0), m_axi_awburst(1 downto 0) => NLW_U0_m_axi_awburst_UNCONNECTED(1 downto 0), m_axi_awcache(3 downto 0) => NLW_U0_m_axi_awcache_UNCONNECTED(3 downto 0), m_axi_awid(0) => NLW_U0_m_axi_awid_UNCONNECTED(0), m_axi_awlen(7 downto 0) => NLW_U0_m_axi_awlen_UNCONNECTED(7 downto 0), m_axi_awlock(0) => NLW_U0_m_axi_awlock_UNCONNECTED(0), m_axi_awprot(2 downto 0) => NLW_U0_m_axi_awprot_UNCONNECTED(2 downto 0), m_axi_awqos(3 downto 0) => NLW_U0_m_axi_awqos_UNCONNECTED(3 downto 0), m_axi_awready => '0', m_axi_awregion(3 downto 0) => NLW_U0_m_axi_awregion_UNCONNECTED(3 downto 0), m_axi_awsize(2 downto 0) => NLW_U0_m_axi_awsize_UNCONNECTED(2 downto 0), m_axi_awuser(0) => NLW_U0_m_axi_awuser_UNCONNECTED(0), m_axi_awvalid => NLW_U0_m_axi_awvalid_UNCONNECTED, m_axi_bid(0) => '0', m_axi_bready => NLW_U0_m_axi_bready_UNCONNECTED, m_axi_bresp(1 downto 0) => B"00", m_axi_buser(0) => '0', m_axi_bvalid => '0', m_axi_rdata(63 downto 0) => B"0000000000000000000000000000000000000000000000000000000000000000", m_axi_rid(0) => '0', m_axi_rlast => '0', m_axi_rready => NLW_U0_m_axi_rready_UNCONNECTED, m_axi_rresp(1 downto 0) => B"00", m_axi_ruser(0) => '0', m_axi_rvalid => '0', m_axi_wdata(63 downto 0) => NLW_U0_m_axi_wdata_UNCONNECTED(63 downto 0), m_axi_wid(0) => NLW_U0_m_axi_wid_UNCONNECTED(0), m_axi_wlast => NLW_U0_m_axi_wlast_UNCONNECTED, m_axi_wready => '0', m_axi_wstrb(7 downto 0) => NLW_U0_m_axi_wstrb_UNCONNECTED(7 downto 0), m_axi_wuser(0) => NLW_U0_m_axi_wuser_UNCONNECTED(0), m_axi_wvalid => NLW_U0_m_axi_wvalid_UNCONNECTED, m_axis_tdata(7 downto 0) => NLW_U0_m_axis_tdata_UNCONNECTED(7 downto 0), m_axis_tdest(0) => NLW_U0_m_axis_tdest_UNCONNECTED(0), m_axis_tid(0) => NLW_U0_m_axis_tid_UNCONNECTED(0), m_axis_tkeep(0) => NLW_U0_m_axis_tkeep_UNCONNECTED(0), m_axis_tlast => NLW_U0_m_axis_tlast_UNCONNECTED, m_axis_tready => '0', m_axis_tstrb(0) => NLW_U0_m_axis_tstrb_UNCONNECTED(0), m_axis_tuser(3 downto 0) => NLW_U0_m_axis_tuser_UNCONNECTED(3 downto 0), m_axis_tvalid => NLW_U0_m_axis_tvalid_UNCONNECTED, overflow => NLW_U0_overflow_UNCONNECTED, prog_empty => NLW_U0_prog_empty_UNCONNECTED, prog_empty_thresh(9 downto 0) => B"0000000000", prog_empty_thresh_assert(9 downto 0) => B"0000000000", prog_empty_thresh_negate(9 downto 0) => B"0000000000", prog_full => NLW_U0_prog_full_UNCONNECTED, prog_full_thresh(9 downto 0) => B"0000000000", prog_full_thresh_assert(9 downto 0) => B"0000000000", prog_full_thresh_negate(9 downto 0) => B"0000000000", rd_clk => '0', rd_data_count(10 downto 0) => NLW_U0_rd_data_count_UNCONNECTED(10 downto 0), rd_en => rd_en, rd_rst => '0', rd_rst_busy => NLW_U0_rd_rst_busy_UNCONNECTED, rst => rst, s_aclk => '0', s_aclk_en => '0', s_aresetn => '0', s_axi_araddr(31 downto 0) => B"00000000000000000000000000000000", s_axi_arburst(1 downto 0) => B"00", s_axi_arcache(3 downto 0) => B"0000", s_axi_arid(0) => '0', s_axi_arlen(7 downto 0) => B"00000000", s_axi_arlock(0) => '0', s_axi_arprot(2 downto 0) => B"000", s_axi_arqos(3 downto 0) => B"0000", s_axi_arready => NLW_U0_s_axi_arready_UNCONNECTED, s_axi_arregion(3 downto 0) => B"0000", s_axi_arsize(2 downto 0) => B"000", s_axi_aruser(0) => '0', s_axi_arvalid => '0', s_axi_awaddr(31 downto 0) => B"00000000000000000000000000000000", s_axi_awburst(1 downto 0) => B"00", s_axi_awcache(3 downto 0) => B"0000", s_axi_awid(0) => '0', s_axi_awlen(7 downto 0) => B"00000000", s_axi_awlock(0) => '0', s_axi_awprot(2 downto 0) => B"000", s_axi_awqos(3 downto 0) => B"0000", s_axi_awready => NLW_U0_s_axi_awready_UNCONNECTED, s_axi_awregion(3 downto 0) => B"0000", s_axi_awsize(2 downto 0) => B"000", s_axi_awuser(0) => '0', s_axi_awvalid => '0', s_axi_bid(0) => NLW_U0_s_axi_bid_UNCONNECTED(0), s_axi_bready => '0', s_axi_bresp(1 downto 0) => NLW_U0_s_axi_bresp_UNCONNECTED(1 downto 0), s_axi_buser(0) => NLW_U0_s_axi_buser_UNCONNECTED(0), s_axi_bvalid => NLW_U0_s_axi_bvalid_UNCONNECTED, s_axi_rdata(63 downto 0) => NLW_U0_s_axi_rdata_UNCONNECTED(63 downto 0), s_axi_rid(0) => NLW_U0_s_axi_rid_UNCONNECTED(0), s_axi_rlast => NLW_U0_s_axi_rlast_UNCONNECTED, s_axi_rready => '0', s_axi_rresp(1 downto 0) => NLW_U0_s_axi_rresp_UNCONNECTED(1 downto 0), s_axi_ruser(0) => NLW_U0_s_axi_ruser_UNCONNECTED(0), s_axi_rvalid => NLW_U0_s_axi_rvalid_UNCONNECTED, s_axi_wdata(63 downto 0) => B"0000000000000000000000000000000000000000000000000000000000000000", s_axi_wid(0) => '0', s_axi_wlast => '0', s_axi_wready => NLW_U0_s_axi_wready_UNCONNECTED, s_axi_wstrb(7 downto 0) => B"00000000", s_axi_wuser(0) => '0', s_axi_wvalid => '0', s_axis_tdata(7 downto 0) => B"00000000", s_axis_tdest(0) => '0', s_axis_tid(0) => '0', s_axis_tkeep(0) => '0', s_axis_tlast => '0', s_axis_tready => NLW_U0_s_axis_tready_UNCONNECTED, s_axis_tstrb(0) => '0', s_axis_tuser(3 downto 0) => B"0000", s_axis_tvalid => '0', sbiterr => NLW_U0_sbiterr_UNCONNECTED, sleep => '0', srst => '0', underflow => NLW_U0_underflow_UNCONNECTED, valid => NLW_U0_valid_UNCONNECTED, wr_ack => NLW_U0_wr_ack_UNCONNECTED, wr_clk => '0', wr_data_count(10 downto 0) => NLW_U0_wr_data_count_UNCONNECTED(10 downto 0), wr_en => wr_en, wr_rst => '0', wr_rst_busy => NLW_U0_wr_rst_busy_UNCONNECTED ); end STRUCTURE;
------------------------------------------------------------------------------- -- Title : Testbench for design "Core" -- Project : ------------------------------------------------------------------------------- -- File : Core_tb.vhd -- Author : Johann Glaser -- Company : -- Created : 2013-12-21 -- Last update: 2013-12-21 -- Platform : -- Standard : VHDL'87 ------------------------------------------------------------------------------- -- Description: ------------------------------------------------------------------------------- -- Copyright (c) 2013 ------------------------------------------------------------------------------- -- Revisions : -- Date Version Author Description -- 2013-12-21 1.0 hansi Created ------------------------------------------------------------------------------- library ieee; use ieee.std_logic_1164.all; ------------------------------------------------------------------------------- entity Core_tb is end Core_tb; ------------------------------------------------------------------------------- architecture behavior of Core_tb is component Core port ( Reset_n_i : in std_logic; Clk_i : in std_logic; LFXT_Clk_i : in std_logic; Cpu_En_i : in std_logic; Dbg_En_i : in std_logic; -- Dbg_UART_RxD_i : in std_logic; -- Dbg_UART_TxD_o : out std_logic; Dbg_SCL_i : in std_logic; Dbg_SDA_Out_o : out std_logic; Dbg_SDA_In_i : in std_logic; P1_DOut_o : out std_logic_vector(7 downto 0); P1_En_o : out std_logic_vector(7 downto 0); P1_DIn_i : in std_logic_vector(7 downto 0); P2_DOut_o : out std_logic_vector(7 downto 0); P2_En_o : out std_logic_vector(7 downto 0); P2_DIn_i : in std_logic_vector(7 downto 0); UartRxD_i : in std_logic; UartTxD_o : out std_logic; SCK_o : out std_logic; MOSI_o : out std_logic; MISO_i : in std_logic; Inputs_i : in std_logic_vector(7 downto 0); Outputs_o : out std_logic_vector(7 downto 0); SPIMISO_i : in std_logic; SPIMOSI_o : out std_logic; SPISCK_o : out std_logic; I2CSCL_o : out std_logic; I2CSDA_i : in std_logic; I2CSDA_o : out std_logic; -- OneWire_i : in std_logic; -- OneWire_o : out std_logic; -- PWMInput_i : in std_logic; -- SENTInput_i : in std_logic; -- SPCInput_i : in std_logic; -- SPCTrigger_o : out std_logic; AdcConvComplete_i : in std_logic; AdcDoConvert_o : out std_logic; AdcValue_i : in std_logic_vector(9 downto 0)); end component; -- component ports signal Reset_n_i : std_logic := '0'; signal Clk_i : std_logic := '1'; signal LFXT_Clk_i : std_logic := '0'; signal Cpu_En_i : std_logic := '1'; signal Dbg_En_i : std_logic := '0'; -- signal Dbg_UART_RxD_i : std_logic; -- signal Dbg_UART_TxD_o : std_logic; signal Dbg_SCL_i : std_logic := '1'; signal Dbg_SDA_Out_o : std_logic; signal Dbg_SDA_In_i : std_logic := '1'; signal P1_DOut_o : std_logic_vector(7 downto 0); signal P1_En_o : std_logic_vector(7 downto 0); signal P1_DIn_i : std_logic_vector(7 downto 0) := (others => '0'); signal P2_DOut_o : std_logic_vector(7 downto 0); signal P2_En_o : std_logic_vector(7 downto 0); signal P2_DIn_i : std_logic_vector(7 downto 0) := (others => '0'); signal UartRxD_i : std_logic := '0'; signal UartTxD_o : std_logic; signal SCK_o : std_logic; signal MOSI_o : std_logic; signal MISO_i : std_logic := '0'; signal Inputs_i : std_logic_vector(7 downto 0) := (others => '0'); signal Outputs_o : std_logic_vector(7 downto 0); signal SPIMISO_i : std_logic := '0'; signal SPIMOSI_o : std_logic; signal SPISCK_o : std_logic; signal I2CSCL_o : std_logic; signal I2CSDA_i : std_logic := '0'; signal I2CSDA_o : std_logic; -- signal OneWire_i : std_logic := '0'; -- signal OneWire_o : std_logic; -- signal PWMInput_i : std_logic := '0'; -- signal SENTInput_i : std_logic := '0'; -- signal SPCInput_i : std_logic := '0'; -- signal SPCTrigger_o : std_logic; signal AdcConvComplete_i : std_logic := '0'; signal AdcDoConvert_o : std_logic; signal AdcValue_i : std_logic_vector(9 downto 0) := (others => '0'); constant ClkPeriod : time := 100 ns; -- 10 MHz begin -- behavior -- component instantiation DUT: Core port map ( Reset_n_i => Reset_n_i, Clk_i => Clk_i, LFXT_Clk_i => LFXT_Clk_i, Cpu_En_i => Cpu_En_i, Dbg_En_i => Dbg_En_i, -- Dbg_UART_RxD_i => Dbg_UART_RxD_i, -- Dbg_UART_TxD_o => Dbg_UART_TxD_o, Dbg_SCL_i => Dbg_SCL_i, Dbg_SDA_Out_o => Dbg_SDA_Out_o, Dbg_SDA_In_i => Dbg_SDA_In_i, P1_DOut_o => P1_DOut_o, P1_En_o => P1_En_o, P1_DIn_i => P1_DIn_i, P2_DOut_o => P2_DOut_o, P2_En_o => P2_En_o, P2_DIn_i => P2_DIn_i, UartRxD_i => UartRxD_i, UartTxD_o => UartTxD_o, SCK_o => SCK_o, MOSI_o => MOSI_o, MISO_i => MISO_i, Inputs_i => Inputs_i, Outputs_o => Outputs_o, SPIMISO_i => SPIMISO_i, SPIMOSI_o => SPIMOSI_o, SPISCK_o => SPISCK_o, I2CSCL_o => I2CSCL_o, I2CSDA_i => I2CSDA_i, I2CSDA_o => I2CSDA_o, -- OneWire_i => OneWire_i, -- OneWire_o => OneWire_o, -- PWMInput_i => PWMInput_i, -- SENTInput_i => SENTInput_i, -- SPCInput_i => SPCInput_i, -- SPCTrigger_o => SPCTrigger_o, AdcConvComplete_i => AdcConvComplete_i, AdcDoConvert_o => AdcDoConvert_o, AdcValue_i => AdcValue_i ); -- clock generation Clk_i <= not Clk_i after ClkPeriod/2.0; -- waveform generation WaveGen_Proc: process begin wait for 5.2*ClkPeriod; Reset_n_i <= '1'; wait for 5000*ClkPeriod; report "### Simulation Finished ###" severity failure; end process WaveGen_Proc; end behavior;
architecture RTL of FIFO is begin process begin if (a = '1') then b <= '0'; end if; -- Violations below if (a = '1')then b <= '0'; end if; if (a = '1') then b <= '0'; end if; end process; end architecture RTL;
-------------------------------------------------------------------------------- -- ion_cpu.vhdl -- MIPS32r2(tm) compatible CPU core -------------------------------------------------------------------------------- -- project: ION (http://www.opencores.org/project,ion_cpu) -- author: Jose A. Ruiz ([email protected]) -- author: Paul Debayan ([email protected]) -------------------------------------------------------------------------------- -- FIXME refactor comments! -- -- Please read file /doc/ion_project.txt for usage instructions. -- -------------------------------------------------------------------------------- -- REFERENCES -- [1] doc/ion_core_ds.pdf -- ION core datasheet . -- [2] doc/ion_notes.pdf -- Design notes. -------------------------------------------------------------------------------- -- --### Things with provisional implementation -- -- 1.- Invalid instruction side effects: -- Invalid opcodes do trap but the logic that prevents bad opcodes from -- having side affects has not been tested yet. -- 2.- Kernel/user status. -- When in user mode, COP* instructions will trigger a 'CpU' exception. -- BUT there's no address checking and user code can still access kernel -- space in this version. -- -------------------------------------------------------------------------------- -- KNOWN BUGS: -- -------------------------------------------------------------------------------- -- This source file may be used and distributed without -- restriction provided that this copyright statement is not -- removed from the file and that any derivative work contains -- the original copyright notice and the associated disclaimer. -- -- This source file is free software; you can redistribute it -- and/or modify it under the terms of the GNU Lesser General -- Public License as published by the Free Software Foundation; -- either version 2.1 of the License, or (at your option) any -- later version. -- -- This source 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 Lesser General Public License for more -- details. -- -- You should have received a copy of the GNU Lesser General -- Public License along with this source; if not, download it -- from http://www.opencores.org/lgpl.shtml -------------------------------------------------------------------------------- library ieee; use ieee.std_logic_1164.all; use ieee.std_logic_arith.all; use ieee.std_logic_unsigned.all; use work.ION_INTERFACES_PKG.all; use work.ION_INTERNAL_PKG.all; entity ion_cpu is generic( -- Type of memory to be used for register bank in xilinx HW XILINX_REGBANK : string := "distributed" -- {distributed|block} ); port( CLK_I : in std_logic; RESET_I : in std_logic; DATA_MOSI_O : out t_cpumem_mosi; DATA_MISO_I : in t_cpumem_miso; CODE_MOSI_O : out t_cpumem_mosi; CODE_MISO_I : in t_cpumem_miso; CACHE_CTRL_MOSI_O : out t_cache_mosi; -- Common control MOSI port. ICACHE_CTRL_MISO_I : in t_cache_miso; -- I-Cache MISO. DCACHE_CTRL_MISO_I : in t_cache_miso; -- D-Cache MISO. COP2_MOSI_O : out t_cop2_mosi; -- COP2 interface. COP2_MISO_I : in t_cop2_miso; IRQ_I : in std_logic_vector(5 downto 0) ); end; --entity ion_cpu architecture rtl of ion_cpu is -------------------------------------------------------------------------------- -- Memory interface signal mem_wait : std_logic; signal data_rd : t_word; signal data_rd_reg : t_word; -------------------------------------------------------------------------------- -- Pipeline stage 0 signal p0_pc_reg : t_pc; signal p0_pc_incremented : t_pc; signal p0_pc_jump : t_pc; signal p0_pc_branch : t_pc; signal p0_pc_target : t_pc; signal p0_pc_restart : t_pc; signal p0_pc_load_pending : std_logic; signal p0_pc_increment : std_logic; signal p0_pc_next : t_pc; signal p0_rs_num : t_regnum; signal p0_rt_num : t_regnum; signal p0_jump_cond_value : std_logic; signal p0_rbank_rs_hazard : std_logic; signal p0_rbank_rt_hazard : std_logic; -------------------------------------------------------------------------------- -- Pipeline stage 1 signal p1_rbank : t_rbank := (others => X"00000000"); -- IMPORTANT: This attribute is used by Xilinx tools to select how to implement -- the register bank. If we don't use it, by default XST would infer 2 BRAMs for -- the 1024-bit 3-port reg bank, which you probably don't want. -- This can take the values {distributed|block}. attribute ram_style : string; attribute ram_style of p1_rbank : signal is XILINX_REGBANK; signal p1_rs, p1_rt : t_word; signal p1_rs_rbank : t_word; signal p1_rt_rbank : t_word; signal p1_rbank_forward : t_word; signal p1_rd_num : t_regnum; signal p1_c0_rs_num : t_regnum; signal p1_rbank_wr_addr : t_regnum; signal p1_rbank_we : std_logic; signal p1_rbank_wr_data : t_word; signal p1_alu_inp1 : t_word; signal p1_alu_inp2 : t_word; signal p1_alu_outp : t_word; -- ALU control inputs (shortened name for brevity in expressions) signal p1_ac : t_alu_control; -- ALU flag outputs (comparison results) signal p1_alu_flags : t_alu_flags; -- immediate data, sign- or zero-extended as required by IR signal p1_data_imm : t_word; signal p1_branch_offset : t_pc; signal p1_branch_offset_sex:std_logic_vector(31 downto 18); signal p1_rbank_rs_hazard : std_logic; signal p1_rbank_rt_hazard : std_logic; signal p1_jump_type_set0 : std_logic_vector(1 downto 0); signal p1_jump_type_set1 : std_logic_vector(1 downto 0); signal p1_ir_reg : std_logic_vector(31 downto 0); signal p1_ir_op : std_logic_vector(31 downto 26); signal p1_ir_fmt : std_logic_vector(25 downto 21); signal p1_ir_fn : std_logic_vector(5 downto 0); signal p1_op_special : std_logic; signal p1_op_special2 : std_logic; signal p1_exception : std_logic; signal p1_do_reg_jump : std_logic; signal p1_do_zero_ext_imm : std_logic; signal p1_set_cp : std_logic; signal p1_get_cp : std_logic; signal p1_set_cp0 : std_logic; signal p1_get_cp0 : std_logic; signal p1_set_cp2 : std_logic; signal p1_get_cp2 : std_logic; signal p1_rfe : std_logic; signal p1_eret : std_logic; signal p1_alu_op2_sel : std_logic_vector(1 downto 0); signal p1_alu_op2_sel_set0: std_logic_vector(1 downto 0); signal p1_alu_op2_sel_set1: std_logic_vector(1 downto 0); signal p1_do_load : std_logic; signal p1_do_store : std_logic; signal p1_sw_data : t_word; signal p1_store_size : std_logic_vector(1 downto 0); signal p1_we_control : std_logic_vector(5 downto 0); signal p1_load_alu : std_logic; signal p1_load_alu_set0 : std_logic; signal p1_load_alu_set1 : std_logic; signal p1_ld_upper_hword : std_logic; signal p1_ld_upper_byte : std_logic; signal p1_ld_unsigned : std_logic; signal p1_jump_type : std_logic_vector(1 downto 0); signal p1_link : std_logic; signal p1_jump_cond_sel : std_logic_vector(2 downto 0); signal p1_data_addr : t_addr; signal p1_data_offset : t_addr; signal p1_muldiv_result : t_word; signal p1_muldiv_func : t_mult_function; signal p1_special_ir_fn : std_logic_vector(7 downto 0); signal p1_muldiv_dontdisturb : std_logic; signal p1_muldiv_running : std_logic; signal p1_muldiv_started : std_logic; signal p1_muldiv_stall : std_logic; signal p1_unknown_opcode : std_logic; signal p1_cp_unavailable : std_logic; signal p1_hw_irq : std_logic; signal p1_hw_irq_pending : std_logic; signal p0_irq_reg : std_logic_vector(5 downto 0); signal irq_masked : std_logic_vector(5 downto 0); -------------------------------------------------------------------------------- -- Pipeline stage 2 signal p2_muldiv_started : std_logic; signal p2_exception : std_logic; signal p2_rd_addr : std_logic_vector(1 downto 0); signal p2_rd_mux_control : std_logic_vector(3 downto 0); signal p2_load_target : t_regnum; signal p2_do_load : std_logic; signal p2_ld_upper_hword : std_logic; signal p2_ld_upper_byte : std_logic; signal p2_ld_unsigned : std_logic; signal p2_wback_mux_sel : std_logic_vector(1 downto 0); signal p2_wback_cop_sel : std_logic; signal p2_cop_data_rd : t_word; signal p2_data_word_rd : t_word; signal p2_data_word_ext : std_logic; signal p2_load_pending : std_logic; -------------------------------------------------------------------------------- -- Global control signals signal load_interlock : std_logic; -- stall pipeline for any reason signal stall_pipeline : std_logic; -- pipeline is stalled for any reason signal pipeline_stalled : std_logic; -- pipeline is stalled because CODE or DATA buses are waited signal stalled_memwait : std_logic; -- pipeline is stalled because we´re waiting for the mul/div unit result signal stalled_muldiv : std_logic; -- pipeline is stalled because of a load instruction interlock signal stalled_interlock : std_logic; signal reset_done : std_logic_vector(1 downto 0); -------------------------------------------------------------------------------- -- CP0 interface signals signal cp0_mosi : t_cop0_mosi; signal cp0_miso : t_cop0_miso; begin --############################################################################## -- Register bank & datapath -- Register indices are 'decoded' out of the instruction word BEFORE loading IR p0_rs_num <= std_logic_vector(CODE_MISO_I.rd_data(25 downto 21)); with p1_ir_reg(31 downto 26) select p1_rd_num <= p1_ir_reg(15 downto 11) when "000000", p1_ir_reg(20 downto 16) when others; -- This is also called rs2 in the docs p0_rt_num <= std_logic_vector(CODE_MISO_I.rd_data(20 downto 16)); -------------------------------------------------------------------------------- -- Data input register and input shifter & masker (LB,LBU,LH,LHU,LW) -- If data can't be latched from the bus when it´s valid due to a stall, it will -- be registered here. data_input_register: process(CLK_I) begin if CLK_I'event and CLK_I='1' then if p2_load_pending='1' and DATA_MISO_I.mwait='0' then data_rd_reg <= DATA_MISO_I.rd_data; end if; end if; end process data_input_register; -- Data input mux: data_rd <= -- If pipeline was stalled when data was valid, use registered value... data_rd_reg when (p2_do_load='1') and p2_load_pending='0' else -- ...otherwise get the data straight from the data bus. DATA_MISO_I.rd_data; -- Byte and half-word shifter control. p2_rd_mux_control <= p2_ld_upper_hword & p2_ld_upper_byte & p2_rd_addr; -- Extension for unused bits will be zero or the sign (bit 7 or bit 15) p2_data_word_ext <= '0' when p2_ld_unsigned='1' else -- LH data_rd(31) when p2_ld_upper_byte='1' and p2_rd_addr="00" else data_rd(15) when p2_ld_upper_byte='1' and p2_rd_addr="10" else -- LB data_rd(7) when p2_rd_addr="11" else data_rd(15) when p2_rd_addr="10" else data_rd(23) when p2_rd_addr="01" else data_rd(31); -- byte 0 may come from any of the 4 bytes of the input word with p2_rd_mux_control select p2_data_word_rd(7 downto 0) <= data_rd(31 downto 24) when "0000", data_rd(23 downto 16) when "0001", data_rd(23 downto 16) when "0100", data_rd(15 downto 8) when "0010", data_rd( 7 downto 0) when others; -- byte 1 may come from input bytes 1 or 3 or may be extended for LB, LBU with p2_rd_mux_control select p2_data_word_rd(15 downto 8) <= data_rd(31 downto 24) when "0100", data_rd(15 downto 8) when "0110", data_rd(15 downto 8) when "1100", data_rd(15 downto 8) when "1101", data_rd(15 downto 8) when "1110", data_rd(15 downto 8) when "1111", (others => p2_data_word_ext) when others; -- bytes 2,3 come straight from input or are extended for LH,LHU with p2_ld_upper_hword select p2_data_word_rd(31 downto 16) <= (others => p2_data_word_ext) when '0', data_rd(31 downto 16) when others; -------------------------------------------------------------------------------- -- Reg bank input multiplexor -- Select which data is to be written back to the reg bank and where p1_rbank_wr_addr <= p1_rd_num when p2_do_load='0' and p1_link='0' else "11111" when p2_do_load='0' and p1_link='1' else p2_load_target; p2_wback_mux_sel <= "00" when p2_do_load='0' and p1_get_cp='0' and p1_link='0' else "01" when p2_do_load='1' and p1_get_cp='0' and p1_link='0' else "10" when p2_do_load='0' and p1_get_cp0='1' and p1_link='0' else "10" when p2_do_load='0' and p1_get_cp2='1' and p1_link='0' else "11"; p2_wback_cop_sel <= '1' when p1_get_cp2='1' else '0'; with (p2_wback_mux_sel) select p1_rbank_wr_data <= p1_alu_outp when "00", p2_data_word_rd when "01", p0_pc_incremented & "00" when "11", p2_cop_data_rd when others; with p2_wback_cop_sel select p2_cop_data_rd <= COP2_MISO_I.data when '1', cp0_miso.data when others; -------------------------------------------------------------------------------- -- Register bank RAM & Rbank WE logic -- Write data back onto the register bank in P1 stage of regular instructions -- or in P2 stage of load instructions... p1_rbank_we <= '1' when (p2_do_load='1' or p1_load_alu='1' or p1_link='1' or -- ...EXCEPT in some cases: -- If mfc* triggers privilege trap, don't load reg. (p1_get_cp0='1' and p1_cp_unavailable='0') or (p1_get_cp2='1' and p1_cp_unavailable='0') ) and -- If target register is $zero, ignore write. p1_rbank_wr_addr/="00000" and -- If pipeline is stalled for any reason, ignore write. stall_pipeline='0' and -- On exception, abort next instruction (by preventing -- regbank writeback). p2_exception='0' else '0'; -- Register bank as triple-port RAM. Should synth to 2 BRAMs unless you use -- synth attributes to prevent it (see 'ram_style' attribute above) or your -- FPGA has 3-port BRAMS, or has none. synchronous_reg_bank: process(CLK_I) begin if CLK_I'event and CLK_I='1' then if p1_rbank_we='1' then p1_rbank(conv_integer(p1_rbank_wr_addr)) <= p1_rbank_wr_data; end if; -- the rbank read port loads in the same conditions as the IR: don't -- update Rs or Rt if the pipeline is frozen if stall_pipeline='0' then p1_rt_rbank <= p1_rbank(conv_integer(p0_rt_num)); p1_rs_rbank <= p1_rbank(conv_integer(p0_rs_num)); end if; end if; end process synchronous_reg_bank; -------------------------------------------------------------------------------- -- Reg bank 'writeback' data forwarding -- Register writeback data in a DFF in case it needs to be forwarded. data_forward_register: process(CLK_I) begin if CLK_I'event and CLK_I='1' then if p1_rbank_we='1' then -- no need to check for stall cycles p1_rbank_forward <= p1_rbank_wr_data; end if; end if; end process data_forward_register; -- Bypass sync RAM if we're reading and writing to the same address. This saves -- 1 stall cycle and fixes the data hazard. p0_rbank_rs_hazard <= '1' when p1_rbank_wr_addr=p0_rs_num and p1_rbank_we='1' else '0'; p0_rbank_rt_hazard <= '1' when p1_rbank_wr_addr=p0_rt_num and p1_rbank_we='1' else '0'; p1_rs <= p1_rs_rbank when p1_rbank_rs_hazard='0' else p1_rbank_forward; p1_rt <= p1_rt_rbank when p1_rbank_rt_hazard='0' else p1_rbank_forward; -------------------------------------------------------------------------------- -- ALU & ALU input multiplexors p1_alu_inp1 <= p1_rs; with p1_alu_op2_sel select p1_alu_inp2 <= p1_data_imm when "11", p1_muldiv_result when "01", --p1_muldiv_result when "10", -- FIXME mux input wasted! p1_rt when others; alu_inst : entity work.ION_ALU port map ( CLK_I => CLK_I, RESET_I => RESET_I, AC_I => p1_ac, FLAGS_O => p1_alu_flags, OP1_I => p1_alu_inp1, OP2_I => p1_alu_inp2, RES_O => p1_alu_outp ); -------------------------------------------------------------------------------- -- Mul/Div block interface -- Compute the mdiv block function word. If p1_muldiv_func has any value other -- than MULT_NOTHING a new mdiv operation will start, truncating whatever other -- operation that may have been in course; which we don't want. -- So we encode here the function to be performed and make sure the value stays -- there for only one cycle (the first ALU cycle of the mul/div instruction). -- (this is what p1_muldiv_dontdisturb is meant to accomplish.) -- This will eventually be refactored along with the muldiv module. p1_muldiv_dontdisturb <= (p2_muldiv_started or p1_muldiv_running); p1_special_ir_fn(7 downto 6) <= "10" when p1_op_special='1' and p1_muldiv_dontdisturb='0' else "11" when p1_op_special2='1' and p1_muldiv_dontdisturb='0' else "00"; p1_special_ir_fn(5 downto 0) <= p1_ir_fn; with p1_special_ir_fn select p1_muldiv_func <= MULT_READ_LO when "10010010", MULT_READ_HI when "10010000", MULT_WRITE_LO when "10010011", MULT_WRITE_HI when "10010001", MULT_MULT when "10011001", MULT_SIGNED_MULT when "10011000", MULT_DIVIDE when "10011011", MULT_SIGNED_DIVIDE when "10011010", --MULT_MADDU when "11000000", --MULT_MADD when "11000001", MULT_NOTHING when others; mult_div: entity work.ION_MULDIV port map ( A_I => p1_rs, B_I => p1_rt, C_MULT_O => p1_muldiv_result, PAUSE_O => p1_muldiv_running, MULT_FN_I => p1_muldiv_func, CLK_I => CLK_I, RESET_I => RESET_I ); -- Active only for the 1st ALU cycle of any mul/div instruction p1_muldiv_started <= '1' when p1_op_special='1' and p1_ir_fn(5 downto 3)="011" and -- p1_muldiv_running='0' else '0'; -- Stall the pipeline to enable mdiv operation completion. -- We need p2_muldiv_started to distinguish the cycle before p1_muldiv_running -- is asserted and the cycle after it deasserts. -- Otherwise we would reexecute the same muldiv endlessly instruction after -- deassertion of p1_muldiv_running, since the IR was stalled and still contains -- the mul opcode... p1_muldiv_stall <= '1' when -- Active for the cycle immediately before p1_muldiv_running asserts -- and NOT for the cycle after it deasserts (p1_muldiv_started='1' and p2_muldiv_started='0') or -- Active until operation is complete p1_muldiv_running = '1' else '0'; --############################################################################## -- PC register and branch logic -- p0_pc_reg will not be incremented on stall cycles p0_pc_increment <= '1' when stall_pipeline='0' and p0_pc_load_pending='0' else '0'; --p0_pc_incremented <= p0_pc_reg + (not stall_pipeline); p0_pc_incremented <= p0_pc_reg + p0_pc_increment; -- main pc mux: jump or continue p0_pc_next <= cp0_miso.pc_load_value when cp0_miso.pc_load_en='1' and stall_pipeline='0' else p0_pc_target when -- We jump on jump instructions whose condition is met... ((p1_jump_type(1)='1' and p0_jump_cond_value='1' and -- ...except we abort any jump that follows the victim of an exception p2_exception='0')) -- We jump on exceptions too... -- ... but we only jump at all if the pipeline is not stalled and stall_pipeline='0' else p0_pc_incremented; -- Compute the restart address for this instruction. -- TODO evaluate cost of this and maybe simplify. p0_pc_restart <= p0_pc_reg -1 when -- EPC = Instruction BEFORE jump instruction... -- ...when the jump conditions are met. ((p1_jump_type(1)='1' and p0_jump_cond_value='1' and p2_exception='0')) and stall_pipeline='0' -- Otherwise EPC points to the next instruction. else p0_pc_reg + 1;--p0_pc_incremented; -- Flag p0_pc_load_pending inhibits PC increment when set; this is used to -- prevent spurious PC increments while an exception is pending. -- This is a nasty hach that should be refactored... pc_load_pending_fsm: process(CLK_I) begin if CLK_I'event and CLK_I='1' then if RESET_I='1' then p0_pc_load_pending <= '0'; else if cp0_miso.pc_load_en='1' and stall_pipeline='1' then p0_pc_load_pending <= '1'; elsif stall_pipeline='0' and reset_done(0)='1' then p0_pc_load_pending <= '0'; end if; end if; end if; end process pc_load_pending_fsm; pc_register: process(CLK_I) begin if CLK_I'event and CLK_I='1' then if cp0_miso.pc_load_en='1' then -- Load PC with value from COP0: exception vector or ret address. p0_pc_reg <= cp0_miso.pc_load_value; else -- p0_pc_reg holds the same value as external sync ram addr reg p0_pc_reg <= p0_pc_next; -- pc_restart = addr saved to EPC on interrupts (@note2) -- It's the addr of the instruction that "follows" the victim, -- except when the triggering instruction is in a delay slot. In -- that case, it the instruction preceding the victim. -- I.e. all as per the mips32r2 specs. cp0_mosi.pc_restart <= p0_pc_restart; end if; -- Remember if we are in delay slot, in case there's a trap if (p1_jump_type="00" or p0_jump_cond_value='0') then cp0_mosi.in_delay_slot <= '0'; -- NOT in a delay slot else cp0_mosi.in_delay_slot <= '1'; -- in a delay slot end if; end if; end process pc_register; -- Common rd/wr address; lowest 2 bits are output as debugging aid only DATA_MOSI_O.addr <= p1_data_addr(31 downto 0); -- 'Memory enable' signals for both memory interfaces DATA_MOSI_O.rd_en <= (p1_do_load) and not pipeline_stalled; CODE_MOSI_O.rd_en <= (not stall_pipeline) and reset_done(0); CODE_MOSI_O.wr_be <= "0000"; CODE_MOSI_O.wr_data <= (others => '0'); -- FIXME reset_done should come from COP0 -- reset_done will be asserted after the RESET_I process is finished, when the -- CPU can start operating normally. -- We only use it to make sure CODE_MOSI_O.rd_en is not asserted prematurely. wait_for_end_of_reset: process(CLK_I) begin if CLK_I'event and CLK_I='1' then if RESET_I='1' then reset_done <= "00"; else reset_done(1) <= reset_done(0); reset_done(0) <= '1'; end if; end if; end process wait_for_end_of_reset; -- The final value used to access code memory CODE_MOSI_O.addr(31 downto 2) <= p0_pc_next; CODE_MOSI_O.addr(1 downto 0) <= "00"; -- compute target of J/JR instructions p0_pc_jump <= p1_rs(31 downto 2) when p1_do_reg_jump='1' else p0_pc_reg(31 downto 28) & p1_ir_reg(25 downto 0); -- compute target of relative branch instructions p1_branch_offset_sex <= (others => p1_ir_reg(15)); p1_branch_offset <= p1_branch_offset_sex & p1_ir_reg(15 downto 0); -- p0_pc_reg is the addr of the instruction in delay slot p0_pc_branch <= p0_pc_reg + p1_branch_offset; -- decide which jump target is to be used p0_pc_target <= p0_pc_jump when p1_jump_type(0)='1' else p0_pc_branch; --############################################################################## -- Instruction decoding and IR instruction_register: process(CLK_I) begin if CLK_I'event and CLK_I='1' then if RESET_I='1' then p1_ir_reg <= (others => '0'); elsif reset_done(1)='1' then -- Load the IR with whatever the cache is giving us, provided: -- 1) The cache is ready (i.e. has already completed the first code -- refill after RESET_I. -- 2) The CPU has completed its reset sequence. -- 3) The pipeline is not stalled (@note4). if stall_pipeline='0' then p1_ir_reg <= CODE_MISO_I.rd_data; end if; end if; end if; end process instruction_register; -- Zero extension/Sign extension of instruction immediate data p1_data_imm(15 downto 0) <= p1_ir_reg(15 downto 0); with p1_do_zero_ext_imm select p1_data_imm(31 downto 16) <= (others => '0') when '1', (others => p1_ir_reg(15)) when others; -- 'Extract' main fields from IR, for convenience p1_ir_op <= p1_ir_reg(31 downto 26); p1_ir_fmt <= p1_ir_reg(25 downto 21); p1_ir_fn <= p1_ir_reg(5 downto 0); -- Decode jump type, if any, for instructions with op/=0 with p1_ir_op select p1_jump_type_set0 <= -- FIXME verify that we actually weed out ALL invalid instructions "10" when "000001", -- BLTZ, BGEZ, BLTZAL, BGTZAL "11" when "000010", -- J "11" when "000011", -- JAL "10" when "000100", -- BEQ "10" when "010100", -- BEQL "10" when "000101", -- BNE "10" when "010101", -- BNEL "10" when "000110", -- BLEZ "10" when "000111", -- BGTZ "00" when others; -- no jump -- Decode jump type, if any, for instructions with op=0 p1_jump_type_set1 <= "11" when p1_op_special='1' and p1_ir_reg(5 downto 1)="00100" else "00"; -- Decode jump type for the instruction in IR (composite of two formats) p1_jump_type <= p1_jump_type_set0 or p1_jump_type_set1; p1_link <= '1' when (p1_ir_op="000000" and p1_ir_reg(5 downto 0)="001001") or (p1_ir_op="000001" and p1_ir_reg(20)='1') or (p1_ir_op="000011") else '0'; -- Decode jump condition: encode a mux control signal from IR... p1_jump_cond_sel <= "001" when p1_ir_op="000001" and p1_ir_reg(16)='0' else -- op1 < 0 BLTZ* "101" when p1_ir_op="000001" and p1_ir_reg(16)='1' else -- !(op1 < 0) BNLTZ* "010" when p1_ir_op="000100" else -- op1 == op2 BEQ "010" when p1_ir_op="010100" else -- op1 == op2 BEQL "110" when p1_ir_op="000101" else -- !(op1 == op2) BNE "110" when p1_ir_op="010101" else -- !(op1 == op2) BNEL "011" when p1_ir_op="000110" else -- op1 <= 0 BLEZ "111" when p1_ir_op="000111" else -- !(op1 <= 0) BGTZ "000"; -- always -- ... and use mux control signal to select the condition value with p1_jump_cond_sel select p0_jump_cond_value <= p1_alu_flags.inp1_lt_zero when "001", not p1_alu_flags.inp1_lt_zero when "101", p1_alu_flags.inp1_eq_inp2 when "010", not p1_alu_flags.inp1_eq_inp2 when "110", (p1_alu_flags.inp1_lt_inp2 or p1_alu_flags.inp1_eq_inp2) when "011", not (p1_alu_flags.inp1_lt_inp2 or p1_alu_flags.inp1_eq_inp2) when "111", '1' when others; -- Decode instructions that launch exceptions p1_exception <= '1' when (p1_op_special='1' and p1_ir_reg(5 downto 1)="00110") or -- syscall/break p1_unknown_opcode='1' or p1_cp_unavailable='1' or p1_hw_irq='1' else '0'; -- Decode MTC0/MFC0 instructions (see @note3) p1_set_cp <= '1' when p1_ir_reg(31 downto 26)="010000" and p1_ir_fmt="00100" else -- MTC0 '1' when p1_ir_reg(31 downto 26)="010010" and p1_ir_fmt="00100" else -- MTC2 '1' when p1_ir_reg(31 downto 26)="010010" and p1_ir_fmt="00110" else -- CTC2 '0'; p1_get_cp <= '1' when p1_ir_reg(31 downto 26)="010000" and p1_ir_fmt="00000" else -- MFC0 '1' when p1_ir_reg(31 downto 26)="010010" and p1_ir_fmt="00000" else -- MFC2 '1' when p1_ir_reg(31 downto 26)="010010" and p1_ir_fmt="00010" else -- CFC2 '0'; p1_set_cp0 <= '1' when p1_ir_reg(27 downto 26)="00" and p1_set_cp='1' else '0'; p1_get_cp0 <= '1' when p1_ir_reg(27 downto 26)="00" and p1_get_cp='1' else '0'; p1_set_cp2 <= '1' when p1_ir_reg(27 downto 26)="10" and p1_set_cp='1' else '0'; p1_get_cp2 <= '1' when p1_ir_reg(27 downto 26)="10" and p1_get_cp='1' else '0'; -- Decode RFE instruction (see @note3) p1_rfe <= '1' when p1_ir_reg(31 downto 21)="01000010000" and p1_ir_reg(5 downto 0)="010000" else '0'; p1_eret <= '1' when p1_ir_reg(31 downto 21)="01000010000" and p1_ir_reg(5 downto 0)="011000" else '0'; -- Raise some signals for some particular group of opcodes p1_op_special <= '1' when p1_ir_op="000000" else '0'; -- group '0' opcodes p1_op_special2 <= '1' when p1_ir_op="011100" else '0'; -- 'special 2' opcodes p1_do_reg_jump <= '1' when p1_op_special='1' and p1_ir_fn(5 downto 1)="00100" else '0'; p1_do_zero_ext_imm <= '1' when (p1_ir_op(31 downto 28)="0011") else -- ANDI, ORI, XORI, LUI '1' when (p1_ir_op(31 downto 26)="001011") else -- SLTIU '0'; -- NOTE that ADDIU *does* sign extension. -- Decode input data mux control (LW, LH, LB, LBU, LHU) and load enable p1_do_load <= '1' when p1_ir_op(31 downto 29)="100" and p1_ir_op(28 downto 26)/="010" and -- LWL p1_ir_op(28 downto 26)/="110" and -- LWR p1_ir_op(28 downto 26)/="111" and -- LWR p2_exception='0' -- abort load if previous instruction triggered trap else '0'; p1_load_alu_set0 <= '1' when p1_op_special='1' and ((p1_ir_op(31 downto 29)="000" and p1_ir_op(27 downto 26)="00") or (p1_ir_op(31 downto 29)="000" and p1_ir_op(27 downto 26)="10") or (p1_ir_op(31 downto 29)="000" and p1_ir_op(27 downto 26)="11") or (p1_ir_op(31 downto 29)="000" and p1_ir_op(27 downto 26)="00") or (p1_ir_op(31 downto 28)="0100" and p1_ir_op(27 downto 26)="00") or (p1_ir_op(31 downto 28)="0100" and p1_ir_op(27 downto 26)="10") or (p1_ir_op(31 downto 28)="1000") or (p1_ir_op(31 downto 28)="1001") or (p1_ir_op(31 downto 28)="1010" and p1_ir_op(27 downto 26)="10") or (p1_ir_op(31 downto 28)="1010" and p1_ir_op(27 downto 26)="11") or (p1_ir_op(31 downto 28)="0010" and p1_ir_op(27 downto 26)="01")) else '0'; with p1_ir_op select p1_load_alu_set1 <= '1' when "001000", -- addi '1' when "001001", -- addiu '1' when "001010", -- slti '1' when "001011", -- sltiu '1' when "001100", -- andi '1' when "001101", -- ori '1' when "001110", -- xori '1' when "001111", -- lui '0' when others; p1_load_alu <= (p1_load_alu_set0 or p1_load_alu_set1) and not p1_unknown_opcode; p1_ld_upper_hword <= p1_ir_op(27); -- use input upper hword vs. sign extend/zero p1_ld_upper_byte <= p1_ir_op(26); -- use input upper byte vs. sign extend/zero p1_ld_unsigned <= p1_ir_op(28); -- sign extend vs. zero extend -- ALU input-2 selection: use external data for 2x opcodes (loads) p1_alu_op2_sel_set0 <= "11" when p1_ir_op(31 downto 30)="10" or p1_ir_op(29)='1' else "00"; -- ALU input-2 selection: use registers Hi and Lo for MFHI, MFLO p1_alu_op2_sel_set1 <= "01" when p1_op_special='1' and (p1_ir_fn="010000" or p1_ir_fn="010010") else "00"; -- ALU input-2 final selection p1_alu_op2_sel <= p1_alu_op2_sel_set0 or p1_alu_op2_sel_set1; -- Decode store operations p1_do_store <= '1' when p1_ir_op(31 downto 29)="101" and (p1_ir_op(28 downto 26)="000" or -- SB p1_ir_op(28 downto 26)="001" or -- SH p1_ir_op(28 downto 26)="011") and -- SWH p2_exception='0' -- abort when previous instruction triggered exception else '0'; p1_store_size <= p1_ir_op(27 downto 26); -- Extract source and destination C0 register indices p1_c0_rs_num <= p1_ir_reg(15 downto 11); -- Decode ALU control signals p1_ac.use_slt <= '1' when (p1_ir_op="000001" and p1_ir_reg(20 downto 16)="01000") or -- TGEI (?) (p1_ir_op="000000" and p1_ir_reg(5 downto 1)="10101") or -- SLT, SLTU p1_ir_op="001010" or -- SLTI p1_ir_op="001011" -- SLTIU else '0'; p1_ac.arith_unsigned <= p1_ac.use_slt and (p1_ir_reg(0) or p1_ir_op(26)); p1_ac.use_logic(0) <= '1' when (p1_op_special='1' and p1_ir_fn(5 downto 3)/="000") or -- all immediate arith and logic p1_ir_op(31 downto 29)="001" else '0'; p1_ac.use_logic(1) <= '1' when (p1_op_special='1' and p1_ir_fn="100111") else '0'; p1_ac.use_arith <= '1' when p1_ir_op(31 downto 28)="0010" or (p1_op_special='1' and (p1_ir_fn(5 downto 2)="1000" or p1_ir_fn(5 downto 2)="1010")) else '0'; -- selection of 2nd internal alu operand: {i2, /i2, i2<<16, 0x0} p1_ac.neg_sel(1)<= '1' when p1_ir_op(29 downto 26) = "1111" else '0'; p1_ac.neg_sel(0)<= '1' when p1_ir_op="001010" or p1_ir_op="001011" or p1_ir_op(31 downto 28)="0001" or (p1_op_special='1' and (p1_ir_fn="100010" or p1_ir_fn="100011" or p1_ir_fn(5 downto 2)="1010")) else '0'; p1_ac.cy_in <= p1_ac.neg_sel(0); p1_ac.shift_sel <= p1_ir_fn(1 downto 0); p1_ac.logic_sel <= "00" when (p1_op_special='1' and p1_ir_fn="100100") else "01" when (p1_op_special='1' and p1_ir_fn="100101") else "10" when (p1_op_special='1' and p1_ir_fn="100110") else "01" when (p1_op_special='1' and p1_ir_fn="100111") else "00" when (p1_ir_op="001100") else "01" when (p1_ir_op="001101") else "10" when (p1_ir_op="001110") else "11"; p1_ac.shift_amount <= p1_ir_reg(10 downto 6) when p1_ir_fn(2)='0' else p1_rs(4 downto 0); -------------------------------------------------------------------------------- -- Decoding of CACHE instruction functions with p1_ir_op select CACHE_CTRL_MOSI_O.function_en <= '1' when "101111", '0' when others; with p1_ir_reg(20 downto 16) select CACHE_CTRL_MOSI_O.function_code <= "001" when "00000", -- I Index Invalidate "001" when "00001", -- D Index Invalidate "010" when "01000", -- I Index Store Tag "010" when "01001", -- D Index Store Tag "101" when "10000", -- I Hit Invalidate "101" when "10001", -- D Hit Invalidate "100" when "10101", -- D Hit Writeback Invalidate "000" when others; CACHE_CTRL_MOSI_O.data_cache <= p1_ir_reg(16); -- 0 for I, 1 for D. -------------------------------------------------------------------------------- -- Decoding of unimplemented and privileged instructions -- NOTE: This is a MIPS-I CPU transitioning into a MIPS32r2, therefore the -- unimplemented set is going to change over time. -- Unimplemented instructions include: -- 1.- All instructions above architecture MIPS-I except: -- 1.1.- eret -- 2.- Unaligned stores and loads (LWL,LWR,SWL,SWR) -- 3.- All CP0 instructions other than mfc0 and mtc0 -- 4.- All CPi instructions -- For the time being, we'll decode them all together. -- FIXME: some of these should trap but others should just NOP (e.g. EHB) p1_unknown_opcode <= '1' when -- decode by 'opcode' field --(p1_ir_op(31 downto 29)="110" and -- p1_ir_op(28 downto 26)/="010") or -- LWC2 is valid --(p1_ir_op(31 downto 29)="111" and -- p1_ir_op(28 downto 26)/="010") or -- SWC2 is valid (p1_ir_op(31 downto 29)="010" and (p1_ir_op(28 downto 26)/="000" and -- COP0 is valid p1_ir_op(28 downto 26)/="100" and -- BEQL is valid p1_ir_op(28 downto 26)/="010" and -- COP2 is valid p1_ir_op(28 downto 26)/="101")) or -- BNEL is valid p1_ir_op="100010" or -- LWL p1_ir_op="100110" or -- LWR p1_ir_op="101010" or -- SWL p1_ir_op="101110" or -- SWR p1_ir_op="100111" or p1_ir_op="101100" or p1_ir_op="101101" or -- decode instructions in the 'special2' opcode group (p1_ir_op="011100" and (p1_ir_fn="000000" or -- MADD p1_ir_fn="000001")) or -- MADDU -- decode instructions in the 'special' opcode group (p1_ir_op="000000" and (p1_ir_fn(5 downto 4)="11" or p1_ir_fn="000001" or p1_ir_fn="000101" or p1_ir_fn="001010" or p1_ir_fn="001011" or p1_ir_fn="001110" or p1_ir_fn(5 downto 2)="0101" or p1_ir_fn(5 downto 2)="0111" or p1_ir_fn(5 downto 2)="1011")) or -- decode instructions in the 'regimm' opcode group (p1_ir_op="000001" and (p1_ir_reg(20 downto 16)/="00000" and -- BLTZ is valid p1_ir_reg(20 downto 16)/="00001" and -- BGEZ is valid p1_ir_reg(20 downto 16)/="10000" and -- BLTZAL is valid p1_ir_reg(20 downto 16)/="10001")) -- BGEZAL is valid else '0'; p1_cp_unavailable <= '1' when (p1_set_cp='1' and (p1_set_cp0='0' and p1_set_cp2='0')) or -- mtc1/3 (p1_get_cp='1' and (p1_get_cp0='0' and p1_get_cp2='0')) or -- mfc1/3 -- FIXME @hack1: ERET in user mode does not trigger trap ((p1_get_cp0='1' or p1_set_cp0='1' or p1_rfe='1' or -- p1_eret='1' or p1_get_cp2='1' or p1_set_cp2='1') and cp0_miso.kernel='0') -- COP0 user mode -- FIXME CP1/3 logic missing else '0'; --############################################################################## -- HW interrupt interface. -- Register incoming IRQ lines. interrupt_registers: process(CLK_I) begin if CLK_I'event and CLK_I='1' then if RESET_I='1' then p0_irq_reg <= (others => '0'); else -- Load p1_hw_irq in lockstep with the IR register, as if the IRQ -- was part of the opcode. -- FIXME use the "irq delay" signal? if stall_pipeline='0' then if irq_masked/="00000" and p0_irq_reg ="00000" then p1_hw_irq <= '1'; else p1_hw_irq <= '0'; end if; end if; -- Register interrupt lines every cycle. p0_irq_reg <= irq_masked; end if; end if; end process interrupt_registers; -- FIXME this should be done after registering! with cp0_miso.global_irq_enable select irq_masked <= IRQ_I and cp0_miso.hw_irq_enable_mask when '1', (others => '0') when others; --############################################################################## -- Pipeline registers & pipeline control logic -- Stage 1 pipeline register. Involved in ALU control. pipeline_stage1_register: process(CLK_I) begin if CLK_I'event and CLK_I='1' then if RESET_I='1' then p1_rbank_rs_hazard <= '0'; p1_rbank_rt_hazard <= '0'; elsif stall_pipeline='0' then p1_rbank_rs_hazard <= p0_rbank_rs_hazard; p1_rbank_rt_hazard <= p0_rbank_rt_hazard; end if; end if; end process pipeline_stage1_register; pipeline_stage1_register2: process(CLK_I) begin if CLK_I'event and CLK_I='1' then if RESET_I='1' then p2_muldiv_started <= '0'; else p2_muldiv_started <= p1_muldiv_running; end if; end if; end process pipeline_stage1_register2; -- Stage 2 pipeline register. Split in two for convenience. -- This register deals with two kinds of stalls: -- * When the pipeline stalls because of a load interlock, this register is -- allowed to update so that the load operation can complete while the rest of -- the pipeline is frozen. -- * When the stall is caused by any other reason, this register freezes with -- the rest of the machine. -- Part of stage 2 register that controls load operation pipeline_stage2_register_load_control: process(CLK_I) begin if CLK_I'event and CLK_I='1' then -- Clear load control, effectively preventing a load, at RESET_I or if -- the previous instruction raised an exception. if RESET_I='1' or p2_exception='1' then p2_do_load <= '0'; p2_ld_upper_hword <= '0'; p2_ld_upper_byte <= '0'; p2_ld_unsigned <= '0'; p2_load_target <= "00000"; else -- The P2 registers controlling load writeback are updated... -- ...if the pipeline is not stalled (@note1)... if stall_pipeline='0' or -- or if it is stalled due to a load interlock (@note2). (stall_pipeline='1' and load_interlock='1') then -- These signals control the input LOAD mux. p2_load_target <= p1_rd_num; p2_ld_upper_hword <= p1_ld_upper_hword; p2_ld_upper_byte <= p1_ld_upper_byte; p2_ld_unsigned <= p1_ld_unsigned; -- p2_do_load gates the reg bank WE and needs extra logic: -- Disable reg bank writeback if pipeline is stalled; this -- prevents duplicate writes in case the stall is a mem_wait. if pipeline_stalled='0' then p2_do_load <= p1_do_load; else p2_do_load <= '0'; end if; end if; end if; end if; end process pipeline_stage2_register_load_control; -- P2 register that controls the data input mux. -- Note this FF is never stalled: all we do here is record whether input data -- is to be taken straight from the bus of from the input register. The latter -- will only happen if there was any stall at the moment the data bus had the -- valid data and it has to be registered. pipeline_stage2_register_load_pending: process(CLK_I) begin if CLK_I'event and CLK_I='1' then if RESET_I='1' then p2_load_pending <= '0'; elsif (p1_do_load='1') and pipeline_stalled='0' then p2_load_pending <= '1'; elsif p2_load_pending='1' and DATA_MISO_I.mwait='0' then p2_load_pending <= '0'; end if; end if; end process pipeline_stage2_register_load_pending; -- All the rest of the stage 2 registers pipeline_stage2_register_others: process(CLK_I) begin if CLK_I'event and CLK_I='1' then if RESET_I='1' then p2_exception <= '0'; -- Load signals from previous stage only if there is no pipeline stall -- unless the stall is caused by interlock (@note1). elsif (stall_pipeline='0' or load_interlock='1') then p2_rd_addr <= p1_data_addr(1 downto 0); -- Prevent execution of exception victims and ERETs. -- FIXME rename p2_exception p2_exception <= p1_exception or p1_eret; elsif p1_exception='1' then p2_exception <= '1'; end if; end if; end process pipeline_stage2_register_others; -------------------------------------------------------------------------------- -- Pipeline control logic (stall control) -- These are the 4 conditions upon which the pipeline is stalled. stall_pipeline <= mem_wait or load_interlock or p1_muldiv_stall or COP2_MISO_I.stall; -- Either of the two buses will stall the pipeline when waited. mem_wait <= DATA_MISO_I.mwait or CODE_MISO_I.mwait; -- FIXME load interlock should happen only if the instruction following -- the load actually uses the load target register. Something like this: -- (p1_do_load='1' and (p1_rd_num=p0_rs_num or p1_rd_num=p0_rt_num)) load_interlock <= '1' when p1_do_load='1' and -- this is a load instruction pipeline_stalled='0' -- not already stalled (i.e. assert for 1 cycle) else '0'; -- We need to have a registered version of these pipeline_stall_registers: process(CLK_I) begin if CLK_I'event and CLK_I='1' then if RESET_I='1' then stalled_interlock <= '0'; stalled_memwait <= '0'; stalled_muldiv <= '0'; else stalled_memwait <= mem_wait; stalled_muldiv <= p1_muldiv_stall; stalled_interlock <= load_interlock; end if; end if; end process pipeline_stall_registers; pipeline_stalled <= stalled_interlock or stalled_memwait or stalled_muldiv; --############################################################################## -- Data memory interface -------------------------------------------------------------------------------- -- Memory addressing adder (data address generation) p1_data_offset(31 downto 16) <= (others => p1_data_imm(15)); p1_data_offset(15 downto 0) <= p1_data_imm(15 downto 0); p1_data_addr <= p1_rs + p1_data_offset; -------------------------------------------------------------------------------- -- Write enable vector -- DATA_MOSI_O.wr_be is a function of the write size and alignment -- size = {00=1,01=2,11=4}; we 3 is MSB, 0 is LSB; big endian => 00 is msb p1_we_control <= (mem_wait) & (p1_do_store) & p1_store_size & p1_data_addr(1 downto 0); -- FIXME: make sure this bug is gone, it should be. -- Bug: For two SW instructions in a row, the 2nd one will be stalled and lost: -- the write will never be executed by the cache. -- Fixed by stalling immediately after asserting DATA_MOSI_O.wr_be. -- FIXME the above fix has been tested but is still under trial (provisional) with p1_we_control select DATA_MOSI_O.wr_be <= "1000" when "010000", -- SB %0 "0100" when "010001", -- SB %1 "0010" when "010010", -- SB %2 "0001" when "010011", -- SB %3 "1100" when "010100", -- SH %0 "0011" when "010110", -- SH %2 "1111" when "011100", -- SW %4 "0000" when others; -- all other combinations are spurious so don't write -- Data to be stored always comes straight from the reg bank, but it needs to -- be shifted so that the LSB is aligned to the write address: p1_sw_data(7 downto 0) <= p1_rt(7 downto 0); with p1_we_control select p1_sw_data(15 downto 8) <= p1_rt( 7 downto 0) when "010010", -- SB %2 p1_rt(15 downto 8) when others; with p1_we_control select p1_sw_data(23 downto 16) <= p1_rt( 7 downto 0) when "010001", -- SB %1 p1_rt( 7 downto 0) when "010100", -- SH %0 p1_rt(23 downto 16) when others; with p1_we_control select p1_sw_data(31 downto 24) <= p1_rt( 7 downto 0) when "010000", -- SB %0 p1_rt(15 downto 8) when "010100", -- SH %0 p1_rt(31 downto 24) when others; DATA_MOSI_O.wr_data <= p1_sw_data; --############################################################################## -- COP0 block. cp0_mosi.index <= p1_c0_rs_num; cp0_mosi.we <= p1_set_cp0; cp0_mosi.data <= p1_rt; cp0_mosi.pipeline_stalled <= pipeline_stalled; cp0_mosi.exception <= p1_exception; cp0_mosi.hw_irq <= p1_hw_irq; cp0_mosi.hw_irq_reg <= p0_irq_reg; cp0_mosi.rfe <= p1_rfe; cp0_mosi.eret <= p1_eret; cp0_mosi.unknown_opcode <= p1_unknown_opcode; cp0_mosi.missing_cop <= p1_cp_unavailable; cp0_mosi.syscall <= not p1_ir_fn(0); cp0_mosi.stall <= stall_pipeline; cop0 : entity work.ION_COP0 port map ( CLK_I => CLK_I, RESET_I => RESET_I, CPU_I => cp0_mosi, CPU_O => cp0_miso ); --############################################################################## -- COP2 interface. COP2_MOSI_O.reg_rd_en <= p1_get_cp2; COP2_MOSI_O.reg_wr_en <= p1_set_cp2; COP2_MOSI_O.data <= p1_rt; COP2_MOSI_O.reg_rd.index <= CODE_MISO_I.rd_data(20 downto 16) when CODE_MISO_I.rd_data(31 downto 26)="111010" else CODE_MISO_I.rd_data(15 downto 11); COP2_MOSI_O.reg_rd.sel <= CODE_MISO_I.rd_data(2 downto 0); COP2_MOSI_O.reg_rd.control <= CODE_MISO_I.rd_data(22); COP2_MOSI_O.reg_wr.index <= p1_ir_reg(15 downto 11); COP2_MOSI_O.reg_wr.sel <= p1_ir_reg(2 downto 0); COP2_MOSI_O.reg_wr.control <= p1_ir_fmt(22); COP2_MOSI_O.cofun25_en <= '0'; COP2_MOSI_O.cofun16_en <= '0'; COP2_MOSI_O.cofun <= (others => '0'); COP2_MOSI_O.stall <= stall_pipeline; end architecture rtl; -------------------------------------------------------------------------------- -- Implementation notes -------------------------------------------------------------------------------- -- @note1 : -- This is the meaning of these two signals: -- pipeline_stalled & stalled_interlock => -- "00" => normal state -- "01" => normal state (makes for easier decoding) -- "10" => all stages of pipeline stalled, including rbank -- "11" => all stages of pipeline stalled, except reg bank write port -- -- Just to clarify, 'stage X stalled' here means that the registers named -- pX_* don't load. -- -- The register bank WE is enabled when the pipeline is not stalled and when -- it is stalled because of a load interlock; so that in case of interlock the -- load operation can complete while the rest of the pipeline is frozen. -- -- @note2: -- All instructions that follow a load instruction are stalled for one cycle. -- Otherwise the regbank write from the load and post-load instructions would -- clash. See {[2], sec. ?} for a full explanation. -- -- @note3: -- CP0 instructions (mtc0, mfc0 and rfe) are only partially decoded. -- This is possible because no other VALID MIPS* opcode shares the decoded -- part; that is, we're not going to misdecode a MIPS32 opcode, but we MIGHT -- mistake a bad opcode for a COP0; we'll live with that for the time being. -- -- @note4: -- The pipeline may be stalled for one of 5 reasons including code bus waits -- AND data bus waits; we need the code word to be valid when actually fetched, -- and that means it needs to be valid from the deassertion of code_miso.mwait -- to the edge after code_mosi.addr changes. See {[2], sec. ?}. -- --------------------------------------------------------------------------------
-- (c) Copyright 1995-2015 Xilinx, Inc. All rights reserved. -- -- This file contains confidential and proprietary information -- of Xilinx, Inc. and is protected under U.S. and -- international copyright and other intellectual property -- laws. -- -- DISCLAIMER -- This disclaimer is not a license and does not grant any -- rights to the materials distributed herewith. Except as -- otherwise provided in a valid license issued to you by -- Xilinx, and to the maximum extent permitted by applicable -- law: (1) THESE MATERIALS ARE MADE AVAILABLE "AS IS" AND -- WITH ALL FAULTS, AND XILINX HEREBY DISCLAIMS ALL WARRANTIES -- AND CONDITIONS, EXPRESS, IMPLIED, OR STATUTORY, INCLUDING -- BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, NON- -- INFRINGEMENT, OR FITNESS FOR ANY PARTICULAR PURPOSE; and -- (2) Xilinx shall not be liable (whether in contract or tort, -- including negligence, or under any other theory of -- liability) for any loss or damage of any kind or nature -- related to, arising under or in connection with these -- materials, including for any direct, or any indirect, -- special, incidental, or consequential loss or damage -- (including loss of data, profits, goodwill, or any type of -- loss or damage suffered as a result of any action brought -- by a third party) even if such damage or loss was -- reasonably foreseeable or Xilinx had been advised of the -- possibility of the same. -- -- CRITICAL APPLICATIONS -- Xilinx products are not designed or intended to be fail- -- safe, or for use in any application requiring fail-safe -- performance, such as life-support or safety devices or -- systems, Class III medical devices, nuclear facilities, -- applications related to the deployment of airbags, or any -- other applications that could lead to death, personal -- injury, or severe property or environmental damage -- (individually and collectively, "Critical -- Applications"). Customer assumes the sole risk and -- liability of any use of Xilinx products in Critical -- Applications, subject only to applicable laws and -- regulations governing limitations on product liability. -- -- THIS COPYRIGHT NOTICE AND DISCLAIMER MUST BE RETAINED AS -- PART OF THIS FILE AT ALL TIMES. -- -- DO NOT MODIFY THIS FILE. -- IP VLNV: xilinx.com:ip:blk_mem_gen:8.2 -- IP Revision: 6 LIBRARY ieee; USE ieee.std_logic_1164.ALL; USE ieee.numeric_std.ALL; LIBRARY blk_mem_gen_v8_2; USE blk_mem_gen_v8_2.blk_mem_gen_v8_2; ENTITY design_1_lmb_bram_0 IS PORT ( clka : IN STD_LOGIC; rsta : IN STD_LOGIC; ena : IN STD_LOGIC; wea : IN STD_LOGIC_VECTOR(3 DOWNTO 0); addra : IN STD_LOGIC_VECTOR(31 DOWNTO 0); dina : IN STD_LOGIC_VECTOR(31 DOWNTO 0); douta : OUT STD_LOGIC_VECTOR(31 DOWNTO 0); clkb : IN STD_LOGIC; rstb : IN STD_LOGIC; enb : IN STD_LOGIC; web : IN STD_LOGIC_VECTOR(3 DOWNTO 0); addrb : IN STD_LOGIC_VECTOR(31 DOWNTO 0); dinb : IN STD_LOGIC_VECTOR(31 DOWNTO 0); doutb : OUT STD_LOGIC_VECTOR(31 DOWNTO 0) ); END design_1_lmb_bram_0; ARCHITECTURE design_1_lmb_bram_0_arch OF design_1_lmb_bram_0 IS ATTRIBUTE DowngradeIPIdentifiedWarnings : string; ATTRIBUTE DowngradeIPIdentifiedWarnings OF design_1_lmb_bram_0_arch: ARCHITECTURE IS "yes"; COMPONENT blk_mem_gen_v8_2 IS GENERIC ( C_FAMILY : STRING; C_XDEVICEFAMILY : STRING; C_ELABORATION_DIR : STRING; C_INTERFACE_TYPE : INTEGER; C_AXI_TYPE : INTEGER; C_AXI_SLAVE_TYPE : INTEGER; C_USE_BRAM_BLOCK : INTEGER; C_ENABLE_32BIT_ADDRESS : INTEGER; C_CTRL_ECC_ALGO : STRING; C_HAS_AXI_ID : INTEGER; C_AXI_ID_WIDTH : INTEGER; C_MEM_TYPE : INTEGER; C_BYTE_SIZE : INTEGER; C_ALGORITHM : INTEGER; C_PRIM_TYPE : INTEGER; C_LOAD_INIT_FILE : INTEGER; C_INIT_FILE_NAME : STRING; C_INIT_FILE : STRING; C_USE_DEFAULT_DATA : INTEGER; C_DEFAULT_DATA : STRING; C_HAS_RSTA : INTEGER; C_RST_PRIORITY_A : STRING; C_RSTRAM_A : INTEGER; C_INITA_VAL : STRING; C_HAS_ENA : INTEGER; C_HAS_REGCEA : INTEGER; C_USE_BYTE_WEA : INTEGER; C_WEA_WIDTH : INTEGER; C_WRITE_MODE_A : STRING; C_WRITE_WIDTH_A : INTEGER; C_READ_WIDTH_A : INTEGER; C_WRITE_DEPTH_A : INTEGER; C_READ_DEPTH_A : INTEGER; C_ADDRA_WIDTH : INTEGER; C_HAS_RSTB : INTEGER; C_RST_PRIORITY_B : STRING; C_RSTRAM_B : INTEGER; C_INITB_VAL : STRING; C_HAS_ENB : INTEGER; C_HAS_REGCEB : INTEGER; C_USE_BYTE_WEB : INTEGER; C_WEB_WIDTH : INTEGER; C_WRITE_MODE_B : STRING; C_WRITE_WIDTH_B : INTEGER; C_READ_WIDTH_B : INTEGER; C_WRITE_DEPTH_B : INTEGER; C_READ_DEPTH_B : INTEGER; C_ADDRB_WIDTH : INTEGER; C_HAS_MEM_OUTPUT_REGS_A : INTEGER; C_HAS_MEM_OUTPUT_REGS_B : INTEGER; C_HAS_MUX_OUTPUT_REGS_A : INTEGER; C_HAS_MUX_OUTPUT_REGS_B : INTEGER; C_MUX_PIPELINE_STAGES : INTEGER; C_HAS_SOFTECC_INPUT_REGS_A : INTEGER; C_HAS_SOFTECC_OUTPUT_REGS_B : INTEGER; C_USE_SOFTECC : INTEGER; C_USE_ECC : INTEGER; C_EN_ECC_PIPE : INTEGER; C_HAS_INJECTERR : INTEGER; C_SIM_COLLISION_CHECK : STRING; C_COMMON_CLK : INTEGER; C_DISABLE_WARN_BHV_COLL : INTEGER; C_EN_SLEEP_PIN : INTEGER; C_USE_URAM : INTEGER; C_EN_RDADDRA_CHG : INTEGER; C_EN_RDADDRB_CHG : INTEGER; C_EN_DEEPSLEEP_PIN : INTEGER; C_EN_SHUTDOWN_PIN : INTEGER; C_DISABLE_WARN_BHV_RANGE : INTEGER; C_COUNT_36K_BRAM : STRING; C_COUNT_18K_BRAM : STRING; C_EST_POWER_SUMMARY : STRING ); PORT ( clka : IN STD_LOGIC; rsta : IN STD_LOGIC; ena : IN STD_LOGIC; regcea : IN STD_LOGIC; wea : IN STD_LOGIC_VECTOR(3 DOWNTO 0); addra : IN STD_LOGIC_VECTOR(31 DOWNTO 0); dina : IN STD_LOGIC_VECTOR(31 DOWNTO 0); douta : OUT STD_LOGIC_VECTOR(31 DOWNTO 0); clkb : IN STD_LOGIC; rstb : IN STD_LOGIC; enb : IN STD_LOGIC; regceb : IN STD_LOGIC; web : IN STD_LOGIC_VECTOR(3 DOWNTO 0); addrb : IN STD_LOGIC_VECTOR(31 DOWNTO 0); dinb : IN STD_LOGIC_VECTOR(31 DOWNTO 0); doutb : OUT STD_LOGIC_VECTOR(31 DOWNTO 0); injectsbiterr : IN STD_LOGIC; injectdbiterr : IN STD_LOGIC; eccpipece : IN STD_LOGIC; sbiterr : OUT STD_LOGIC; dbiterr : OUT STD_LOGIC; rdaddrecc : OUT STD_LOGIC_VECTOR(31 DOWNTO 0); sleep : IN STD_LOGIC; deepsleep : IN STD_LOGIC; shutdown : IN STD_LOGIC; s_aclk : IN STD_LOGIC; s_aresetn : IN STD_LOGIC; s_axi_awid : IN STD_LOGIC_VECTOR(3 DOWNTO 0); s_axi_awaddr : IN STD_LOGIC_VECTOR(31 DOWNTO 0); s_axi_awlen : IN STD_LOGIC_VECTOR(7 DOWNTO 0); s_axi_awsize : IN STD_LOGIC_VECTOR(2 DOWNTO 0); s_axi_awburst : IN STD_LOGIC_VECTOR(1 DOWNTO 0); s_axi_awvalid : IN STD_LOGIC; s_axi_awready : OUT STD_LOGIC; s_axi_wdata : IN STD_LOGIC_VECTOR(31 DOWNTO 0); s_axi_wstrb : IN STD_LOGIC_VECTOR(3 DOWNTO 0); s_axi_wlast : IN STD_LOGIC; s_axi_wvalid : IN STD_LOGIC; s_axi_wready : OUT STD_LOGIC; s_axi_bid : OUT STD_LOGIC_VECTOR(3 DOWNTO 0); s_axi_bresp : OUT STD_LOGIC_VECTOR(1 DOWNTO 0); s_axi_bvalid : OUT STD_LOGIC; s_axi_bready : IN STD_LOGIC; s_axi_arid : IN STD_LOGIC_VECTOR(3 DOWNTO 0); s_axi_araddr : IN STD_LOGIC_VECTOR(31 DOWNTO 0); s_axi_arlen : IN STD_LOGIC_VECTOR(7 DOWNTO 0); s_axi_arsize : IN STD_LOGIC_VECTOR(2 DOWNTO 0); s_axi_arburst : IN STD_LOGIC_VECTOR(1 DOWNTO 0); s_axi_arvalid : IN STD_LOGIC; s_axi_arready : OUT STD_LOGIC; s_axi_rid : OUT STD_LOGIC_VECTOR(3 DOWNTO 0); s_axi_rdata : OUT STD_LOGIC_VECTOR(31 DOWNTO 0); s_axi_rresp : OUT STD_LOGIC_VECTOR(1 DOWNTO 0); s_axi_rlast : OUT STD_LOGIC; s_axi_rvalid : OUT STD_LOGIC; s_axi_rready : IN STD_LOGIC; s_axi_injectsbiterr : IN STD_LOGIC; s_axi_injectdbiterr : IN STD_LOGIC; s_axi_sbiterr : OUT STD_LOGIC; s_axi_dbiterr : OUT STD_LOGIC; s_axi_rdaddrecc : OUT STD_LOGIC_VECTOR(31 DOWNTO 0) ); END COMPONENT blk_mem_gen_v8_2; ATTRIBUTE X_CORE_INFO : STRING; ATTRIBUTE X_CORE_INFO OF design_1_lmb_bram_0_arch: ARCHITECTURE IS "blk_mem_gen_v8_2,Vivado 2015.2"; ATTRIBUTE CHECK_LICENSE_TYPE : STRING; ATTRIBUTE CHECK_LICENSE_TYPE OF design_1_lmb_bram_0_arch : ARCHITECTURE IS "design_1_lmb_bram_0,blk_mem_gen_v8_2,{}"; ATTRIBUTE CORE_GENERATION_INFO : STRING; ATTRIBUTE CORE_GENERATION_INFO OF design_1_lmb_bram_0_arch: ARCHITECTURE IS "design_1_lmb_bram_0,blk_mem_gen_v8_2,{x_ipProduct=Vivado 2015.2,x_ipVendor=xilinx.com,x_ipLibrary=ip,x_ipName=blk_mem_gen,x_ipVersion=8.2,x_ipCoreRevision=6,x_ipLanguage=VHDL,x_ipSimLanguage=MIXED,C_FAMILY=artix7,C_XDEVICEFAMILY=artix7,C_ELABORATION_DIR=./,C_INTERFACE_TYPE=0,C_AXI_TYPE=1,C_AXI_SLAVE_TYPE=0,C_USE_BRAM_BLOCK=1,C_ENABLE_32BIT_ADDRESS=1,C_CTRL_ECC_ALGO=NONE,C_HAS_AXI_ID=0,C_AXI_ID_WIDTH=4,C_MEM_TYPE=2,C_BYTE_SIZE=8,C_ALGORITHM=1,C_PRIM_TYPE=1,C_LOAD_INIT_FILE=0,C_INIT_FILE_NAME=no_coe_file_loaded,C_INIT_FILE=design_1_lmb_bram_0.mem,C_USE_DEFAULT_DATA=0,C_DEFAULT_DATA=0,C_HAS_RSTA=1,C_RST_PRIORITY_A=CE,C_RSTRAM_A=0,C_INITA_VAL=0,C_HAS_ENA=1,C_HAS_REGCEA=0,C_USE_BYTE_WEA=1,C_WEA_WIDTH=4,C_WRITE_MODE_A=WRITE_FIRST,C_WRITE_WIDTH_A=32,C_READ_WIDTH_A=32,C_WRITE_DEPTH_A=8192,C_READ_DEPTH_A=8192,C_ADDRA_WIDTH=32,C_HAS_RSTB=1,C_RST_PRIORITY_B=CE,C_RSTRAM_B=0,C_INITB_VAL=0,C_HAS_ENB=1,C_HAS_REGCEB=0,C_USE_BYTE_WEB=1,C_WEB_WIDTH=4,C_WRITE_MODE_B=WRITE_FIRST,C_WRITE_WIDTH_B=32,C_READ_WIDTH_B=32,C_WRITE_DEPTH_B=8192,C_READ_DEPTH_B=8192,C_ADDRB_WIDTH=32,C_HAS_MEM_OUTPUT_REGS_A=0,C_HAS_MEM_OUTPUT_REGS_B=0,C_HAS_MUX_OUTPUT_REGS_A=0,C_HAS_MUX_OUTPUT_REGS_B=0,C_MUX_PIPELINE_STAGES=0,C_HAS_SOFTECC_INPUT_REGS_A=0,C_HAS_SOFTECC_OUTPUT_REGS_B=0,C_USE_SOFTECC=0,C_USE_ECC=0,C_EN_ECC_PIPE=0,C_HAS_INJECTERR=0,C_SIM_COLLISION_CHECK=ALL,C_COMMON_CLK=0,C_DISABLE_WARN_BHV_COLL=0,C_EN_SLEEP_PIN=0,C_USE_URAM=0,C_EN_RDADDRA_CHG=0,C_EN_RDADDRB_CHG=0,C_EN_DEEPSLEEP_PIN=0,C_EN_SHUTDOWN_PIN=0,C_DISABLE_WARN_BHV_RANGE=0,C_COUNT_36K_BRAM=8,C_COUNT_18K_BRAM=0,C_EST_POWER_SUMMARY=Estimated Power for IP _ 20.388 mW}"; ATTRIBUTE X_INTERFACE_INFO : STRING; ATTRIBUTE X_INTERFACE_INFO OF clka: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTA CLK"; ATTRIBUTE X_INTERFACE_INFO OF rsta: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTA RST"; ATTRIBUTE X_INTERFACE_INFO OF ena: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTA EN"; ATTRIBUTE X_INTERFACE_INFO OF wea: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTA WE"; ATTRIBUTE X_INTERFACE_INFO OF addra: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTA ADDR"; ATTRIBUTE X_INTERFACE_INFO OF dina: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTA DIN"; ATTRIBUTE X_INTERFACE_INFO OF douta: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTA DOUT"; ATTRIBUTE X_INTERFACE_INFO OF clkb: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTB CLK"; ATTRIBUTE X_INTERFACE_INFO OF rstb: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTB RST"; ATTRIBUTE X_INTERFACE_INFO OF enb: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTB EN"; ATTRIBUTE X_INTERFACE_INFO OF web: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTB WE"; ATTRIBUTE X_INTERFACE_INFO OF addrb: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTB ADDR"; ATTRIBUTE X_INTERFACE_INFO OF dinb: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTB DIN"; ATTRIBUTE X_INTERFACE_INFO OF doutb: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTB DOUT"; BEGIN U0 : blk_mem_gen_v8_2 GENERIC MAP ( C_FAMILY => "artix7", C_XDEVICEFAMILY => "artix7", C_ELABORATION_DIR => "./", C_INTERFACE_TYPE => 0, C_AXI_TYPE => 1, C_AXI_SLAVE_TYPE => 0, C_USE_BRAM_BLOCK => 1, C_ENABLE_32BIT_ADDRESS => 1, C_CTRL_ECC_ALGO => "NONE", C_HAS_AXI_ID => 0, C_AXI_ID_WIDTH => 4, C_MEM_TYPE => 2, C_BYTE_SIZE => 8, C_ALGORITHM => 1, C_PRIM_TYPE => 1, C_LOAD_INIT_FILE => 0, C_INIT_FILE_NAME => "no_coe_file_loaded", C_INIT_FILE => "design_1_lmb_bram_0.mem", C_USE_DEFAULT_DATA => 0, C_DEFAULT_DATA => "0", C_HAS_RSTA => 1, C_RST_PRIORITY_A => "CE", C_RSTRAM_A => 0, C_INITA_VAL => "0", C_HAS_ENA => 1, C_HAS_REGCEA => 0, C_USE_BYTE_WEA => 1, C_WEA_WIDTH => 4, C_WRITE_MODE_A => "WRITE_FIRST", C_WRITE_WIDTH_A => 32, C_READ_WIDTH_A => 32, C_WRITE_DEPTH_A => 8192, C_READ_DEPTH_A => 8192, C_ADDRA_WIDTH => 32, C_HAS_RSTB => 1, C_RST_PRIORITY_B => "CE", C_RSTRAM_B => 0, C_INITB_VAL => "0", C_HAS_ENB => 1, C_HAS_REGCEB => 0, C_USE_BYTE_WEB => 1, C_WEB_WIDTH => 4, C_WRITE_MODE_B => "WRITE_FIRST", C_WRITE_WIDTH_B => 32, C_READ_WIDTH_B => 32, C_WRITE_DEPTH_B => 8192, C_READ_DEPTH_B => 8192, C_ADDRB_WIDTH => 32, C_HAS_MEM_OUTPUT_REGS_A => 0, C_HAS_MEM_OUTPUT_REGS_B => 0, C_HAS_MUX_OUTPUT_REGS_A => 0, C_HAS_MUX_OUTPUT_REGS_B => 0, C_MUX_PIPELINE_STAGES => 0, C_HAS_SOFTECC_INPUT_REGS_A => 0, C_HAS_SOFTECC_OUTPUT_REGS_B => 0, C_USE_SOFTECC => 0, C_USE_ECC => 0, C_EN_ECC_PIPE => 0, C_HAS_INJECTERR => 0, C_SIM_COLLISION_CHECK => "ALL", C_COMMON_CLK => 0, C_DISABLE_WARN_BHV_COLL => 0, C_EN_SLEEP_PIN => 0, C_USE_URAM => 0, C_EN_RDADDRA_CHG => 0, C_EN_RDADDRB_CHG => 0, C_EN_DEEPSLEEP_PIN => 0, C_EN_SHUTDOWN_PIN => 0, C_DISABLE_WARN_BHV_RANGE => 0, C_COUNT_36K_BRAM => "8", C_COUNT_18K_BRAM => "0", C_EST_POWER_SUMMARY => "Estimated Power for IP : 20.388 mW" ) PORT MAP ( clka => clka, rsta => rsta, ena => ena, regcea => '0', wea => wea, addra => addra, dina => dina, douta => douta, clkb => clkb, rstb => rstb, enb => enb, regceb => '0', web => web, addrb => addrb, dinb => dinb, doutb => doutb, injectsbiterr => '0', injectdbiterr => '0', eccpipece => '0', sleep => '0', deepsleep => '0', shutdown => '0', s_aclk => '0', s_aresetn => '0', s_axi_awid => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 4)), s_axi_awaddr => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 32)), s_axi_awlen => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 8)), s_axi_awsize => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 3)), s_axi_awburst => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 2)), s_axi_awvalid => '0', s_axi_wdata => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 32)), s_axi_wstrb => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 4)), s_axi_wlast => '0', s_axi_wvalid => '0', s_axi_bready => '0', s_axi_arid => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 4)), s_axi_araddr => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 32)), s_axi_arlen => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 8)), s_axi_arsize => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 3)), s_axi_arburst => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 2)), s_axi_arvalid => '0', s_axi_rready => '0', s_axi_injectsbiterr => '0', s_axi_injectdbiterr => '0' ); END design_1_lmb_bram_0_arch;
-- (c) Copyright 1995-2015 Xilinx, Inc. All rights reserved. -- -- This file contains confidential and proprietary information -- of Xilinx, Inc. and is protected under U.S. and -- international copyright and other intellectual property -- laws. -- -- DISCLAIMER -- This disclaimer is not a license and does not grant any -- rights to the materials distributed herewith. Except as -- otherwise provided in a valid license issued to you by -- Xilinx, and to the maximum extent permitted by applicable -- law: (1) THESE MATERIALS ARE MADE AVAILABLE "AS IS" AND -- WITH ALL FAULTS, AND XILINX HEREBY DISCLAIMS ALL WARRANTIES -- AND CONDITIONS, EXPRESS, IMPLIED, OR STATUTORY, INCLUDING -- BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, NON- -- INFRINGEMENT, OR FITNESS FOR ANY PARTICULAR PURPOSE; and -- (2) Xilinx shall not be liable (whether in contract or tort, -- including negligence, or under any other theory of -- liability) for any loss or damage of any kind or nature -- related to, arising under or in connection with these -- materials, including for any direct, or any indirect, -- special, incidental, or consequential loss or damage -- (including loss of data, profits, goodwill, or any type of -- loss or damage suffered as a result of any action brought -- by a third party) even if such damage or loss was -- reasonably foreseeable or Xilinx had been advised of the -- possibility of the same. -- -- CRITICAL APPLICATIONS -- Xilinx products are not designed or intended to be fail- -- safe, or for use in any application requiring fail-safe -- performance, such as life-support or safety devices or -- systems, Class III medical devices, nuclear facilities, -- applications related to the deployment of airbags, or any -- other applications that could lead to death, personal -- injury, or severe property or environmental damage -- (individually and collectively, "Critical -- Applications"). Customer assumes the sole risk and -- liability of any use of Xilinx products in Critical -- Applications, subject only to applicable laws and -- regulations governing limitations on product liability. -- -- THIS COPYRIGHT NOTICE AND DISCLAIMER MUST BE RETAINED AS -- PART OF THIS FILE AT ALL TIMES. -- -- DO NOT MODIFY THIS FILE. -- IP VLNV: xilinx.com:ip:blk_mem_gen:8.2 -- IP Revision: 6 LIBRARY ieee; USE ieee.std_logic_1164.ALL; USE ieee.numeric_std.ALL; LIBRARY blk_mem_gen_v8_2; USE blk_mem_gen_v8_2.blk_mem_gen_v8_2; ENTITY design_1_lmb_bram_0 IS PORT ( clka : IN STD_LOGIC; rsta : IN STD_LOGIC; ena : IN STD_LOGIC; wea : IN STD_LOGIC_VECTOR(3 DOWNTO 0); addra : IN STD_LOGIC_VECTOR(31 DOWNTO 0); dina : IN STD_LOGIC_VECTOR(31 DOWNTO 0); douta : OUT STD_LOGIC_VECTOR(31 DOWNTO 0); clkb : IN STD_LOGIC; rstb : IN STD_LOGIC; enb : IN STD_LOGIC; web : IN STD_LOGIC_VECTOR(3 DOWNTO 0); addrb : IN STD_LOGIC_VECTOR(31 DOWNTO 0); dinb : IN STD_LOGIC_VECTOR(31 DOWNTO 0); doutb : OUT STD_LOGIC_VECTOR(31 DOWNTO 0) ); END design_1_lmb_bram_0; ARCHITECTURE design_1_lmb_bram_0_arch OF design_1_lmb_bram_0 IS ATTRIBUTE DowngradeIPIdentifiedWarnings : string; ATTRIBUTE DowngradeIPIdentifiedWarnings OF design_1_lmb_bram_0_arch: ARCHITECTURE IS "yes"; COMPONENT blk_mem_gen_v8_2 IS GENERIC ( C_FAMILY : STRING; C_XDEVICEFAMILY : STRING; C_ELABORATION_DIR : STRING; C_INTERFACE_TYPE : INTEGER; C_AXI_TYPE : INTEGER; C_AXI_SLAVE_TYPE : INTEGER; C_USE_BRAM_BLOCK : INTEGER; C_ENABLE_32BIT_ADDRESS : INTEGER; C_CTRL_ECC_ALGO : STRING; C_HAS_AXI_ID : INTEGER; C_AXI_ID_WIDTH : INTEGER; C_MEM_TYPE : INTEGER; C_BYTE_SIZE : INTEGER; C_ALGORITHM : INTEGER; C_PRIM_TYPE : INTEGER; C_LOAD_INIT_FILE : INTEGER; C_INIT_FILE_NAME : STRING; C_INIT_FILE : STRING; C_USE_DEFAULT_DATA : INTEGER; C_DEFAULT_DATA : STRING; C_HAS_RSTA : INTEGER; C_RST_PRIORITY_A : STRING; C_RSTRAM_A : INTEGER; C_INITA_VAL : STRING; C_HAS_ENA : INTEGER; C_HAS_REGCEA : INTEGER; C_USE_BYTE_WEA : INTEGER; C_WEA_WIDTH : INTEGER; C_WRITE_MODE_A : STRING; C_WRITE_WIDTH_A : INTEGER; C_READ_WIDTH_A : INTEGER; C_WRITE_DEPTH_A : INTEGER; C_READ_DEPTH_A : INTEGER; C_ADDRA_WIDTH : INTEGER; C_HAS_RSTB : INTEGER; C_RST_PRIORITY_B : STRING; C_RSTRAM_B : INTEGER; C_INITB_VAL : STRING; C_HAS_ENB : INTEGER; C_HAS_REGCEB : INTEGER; C_USE_BYTE_WEB : INTEGER; C_WEB_WIDTH : INTEGER; C_WRITE_MODE_B : STRING; C_WRITE_WIDTH_B : INTEGER; C_READ_WIDTH_B : INTEGER; C_WRITE_DEPTH_B : INTEGER; C_READ_DEPTH_B : INTEGER; C_ADDRB_WIDTH : INTEGER; C_HAS_MEM_OUTPUT_REGS_A : INTEGER; C_HAS_MEM_OUTPUT_REGS_B : INTEGER; C_HAS_MUX_OUTPUT_REGS_A : INTEGER; C_HAS_MUX_OUTPUT_REGS_B : INTEGER; C_MUX_PIPELINE_STAGES : INTEGER; C_HAS_SOFTECC_INPUT_REGS_A : INTEGER; C_HAS_SOFTECC_OUTPUT_REGS_B : INTEGER; C_USE_SOFTECC : INTEGER; C_USE_ECC : INTEGER; C_EN_ECC_PIPE : INTEGER; C_HAS_INJECTERR : INTEGER; C_SIM_COLLISION_CHECK : STRING; C_COMMON_CLK : INTEGER; C_DISABLE_WARN_BHV_COLL : INTEGER; C_EN_SLEEP_PIN : INTEGER; C_USE_URAM : INTEGER; C_EN_RDADDRA_CHG : INTEGER; C_EN_RDADDRB_CHG : INTEGER; C_EN_DEEPSLEEP_PIN : INTEGER; C_EN_SHUTDOWN_PIN : INTEGER; C_DISABLE_WARN_BHV_RANGE : INTEGER; C_COUNT_36K_BRAM : STRING; C_COUNT_18K_BRAM : STRING; C_EST_POWER_SUMMARY : STRING ); PORT ( clka : IN STD_LOGIC; rsta : IN STD_LOGIC; ena : IN STD_LOGIC; regcea : IN STD_LOGIC; wea : IN STD_LOGIC_VECTOR(3 DOWNTO 0); addra : IN STD_LOGIC_VECTOR(31 DOWNTO 0); dina : IN STD_LOGIC_VECTOR(31 DOWNTO 0); douta : OUT STD_LOGIC_VECTOR(31 DOWNTO 0); clkb : IN STD_LOGIC; rstb : IN STD_LOGIC; enb : IN STD_LOGIC; regceb : IN STD_LOGIC; web : IN STD_LOGIC_VECTOR(3 DOWNTO 0); addrb : IN STD_LOGIC_VECTOR(31 DOWNTO 0); dinb : IN STD_LOGIC_VECTOR(31 DOWNTO 0); doutb : OUT STD_LOGIC_VECTOR(31 DOWNTO 0); injectsbiterr : IN STD_LOGIC; injectdbiterr : IN STD_LOGIC; eccpipece : IN STD_LOGIC; sbiterr : OUT STD_LOGIC; dbiterr : OUT STD_LOGIC; rdaddrecc : OUT STD_LOGIC_VECTOR(31 DOWNTO 0); sleep : IN STD_LOGIC; deepsleep : IN STD_LOGIC; shutdown : IN STD_LOGIC; s_aclk : IN STD_LOGIC; s_aresetn : IN STD_LOGIC; s_axi_awid : IN STD_LOGIC_VECTOR(3 DOWNTO 0); s_axi_awaddr : IN STD_LOGIC_VECTOR(31 DOWNTO 0); s_axi_awlen : IN STD_LOGIC_VECTOR(7 DOWNTO 0); s_axi_awsize : IN STD_LOGIC_VECTOR(2 DOWNTO 0); s_axi_awburst : IN STD_LOGIC_VECTOR(1 DOWNTO 0); s_axi_awvalid : IN STD_LOGIC; s_axi_awready : OUT STD_LOGIC; s_axi_wdata : IN STD_LOGIC_VECTOR(31 DOWNTO 0); s_axi_wstrb : IN STD_LOGIC_VECTOR(3 DOWNTO 0); s_axi_wlast : IN STD_LOGIC; s_axi_wvalid : IN STD_LOGIC; s_axi_wready : OUT STD_LOGIC; s_axi_bid : OUT STD_LOGIC_VECTOR(3 DOWNTO 0); s_axi_bresp : OUT STD_LOGIC_VECTOR(1 DOWNTO 0); s_axi_bvalid : OUT STD_LOGIC; s_axi_bready : IN STD_LOGIC; s_axi_arid : IN STD_LOGIC_VECTOR(3 DOWNTO 0); s_axi_araddr : IN STD_LOGIC_VECTOR(31 DOWNTO 0); s_axi_arlen : IN STD_LOGIC_VECTOR(7 DOWNTO 0); s_axi_arsize : IN STD_LOGIC_VECTOR(2 DOWNTO 0); s_axi_arburst : IN STD_LOGIC_VECTOR(1 DOWNTO 0); s_axi_arvalid : IN STD_LOGIC; s_axi_arready : OUT STD_LOGIC; s_axi_rid : OUT STD_LOGIC_VECTOR(3 DOWNTO 0); s_axi_rdata : OUT STD_LOGIC_VECTOR(31 DOWNTO 0); s_axi_rresp : OUT STD_LOGIC_VECTOR(1 DOWNTO 0); s_axi_rlast : OUT STD_LOGIC; s_axi_rvalid : OUT STD_LOGIC; s_axi_rready : IN STD_LOGIC; s_axi_injectsbiterr : IN STD_LOGIC; s_axi_injectdbiterr : IN STD_LOGIC; s_axi_sbiterr : OUT STD_LOGIC; s_axi_dbiterr : OUT STD_LOGIC; s_axi_rdaddrecc : OUT STD_LOGIC_VECTOR(31 DOWNTO 0) ); END COMPONENT blk_mem_gen_v8_2; ATTRIBUTE X_CORE_INFO : STRING; ATTRIBUTE X_CORE_INFO OF design_1_lmb_bram_0_arch: ARCHITECTURE IS "blk_mem_gen_v8_2,Vivado 2015.2"; ATTRIBUTE CHECK_LICENSE_TYPE : STRING; ATTRIBUTE CHECK_LICENSE_TYPE OF design_1_lmb_bram_0_arch : ARCHITECTURE IS "design_1_lmb_bram_0,blk_mem_gen_v8_2,{}"; ATTRIBUTE CORE_GENERATION_INFO : STRING; ATTRIBUTE CORE_GENERATION_INFO OF design_1_lmb_bram_0_arch: ARCHITECTURE IS "design_1_lmb_bram_0,blk_mem_gen_v8_2,{x_ipProduct=Vivado 2015.2,x_ipVendor=xilinx.com,x_ipLibrary=ip,x_ipName=blk_mem_gen,x_ipVersion=8.2,x_ipCoreRevision=6,x_ipLanguage=VHDL,x_ipSimLanguage=MIXED,C_FAMILY=artix7,C_XDEVICEFAMILY=artix7,C_ELABORATION_DIR=./,C_INTERFACE_TYPE=0,C_AXI_TYPE=1,C_AXI_SLAVE_TYPE=0,C_USE_BRAM_BLOCK=1,C_ENABLE_32BIT_ADDRESS=1,C_CTRL_ECC_ALGO=NONE,C_HAS_AXI_ID=0,C_AXI_ID_WIDTH=4,C_MEM_TYPE=2,C_BYTE_SIZE=8,C_ALGORITHM=1,C_PRIM_TYPE=1,C_LOAD_INIT_FILE=0,C_INIT_FILE_NAME=no_coe_file_loaded,C_INIT_FILE=design_1_lmb_bram_0.mem,C_USE_DEFAULT_DATA=0,C_DEFAULT_DATA=0,C_HAS_RSTA=1,C_RST_PRIORITY_A=CE,C_RSTRAM_A=0,C_INITA_VAL=0,C_HAS_ENA=1,C_HAS_REGCEA=0,C_USE_BYTE_WEA=1,C_WEA_WIDTH=4,C_WRITE_MODE_A=WRITE_FIRST,C_WRITE_WIDTH_A=32,C_READ_WIDTH_A=32,C_WRITE_DEPTH_A=8192,C_READ_DEPTH_A=8192,C_ADDRA_WIDTH=32,C_HAS_RSTB=1,C_RST_PRIORITY_B=CE,C_RSTRAM_B=0,C_INITB_VAL=0,C_HAS_ENB=1,C_HAS_REGCEB=0,C_USE_BYTE_WEB=1,C_WEB_WIDTH=4,C_WRITE_MODE_B=WRITE_FIRST,C_WRITE_WIDTH_B=32,C_READ_WIDTH_B=32,C_WRITE_DEPTH_B=8192,C_READ_DEPTH_B=8192,C_ADDRB_WIDTH=32,C_HAS_MEM_OUTPUT_REGS_A=0,C_HAS_MEM_OUTPUT_REGS_B=0,C_HAS_MUX_OUTPUT_REGS_A=0,C_HAS_MUX_OUTPUT_REGS_B=0,C_MUX_PIPELINE_STAGES=0,C_HAS_SOFTECC_INPUT_REGS_A=0,C_HAS_SOFTECC_OUTPUT_REGS_B=0,C_USE_SOFTECC=0,C_USE_ECC=0,C_EN_ECC_PIPE=0,C_HAS_INJECTERR=0,C_SIM_COLLISION_CHECK=ALL,C_COMMON_CLK=0,C_DISABLE_WARN_BHV_COLL=0,C_EN_SLEEP_PIN=0,C_USE_URAM=0,C_EN_RDADDRA_CHG=0,C_EN_RDADDRB_CHG=0,C_EN_DEEPSLEEP_PIN=0,C_EN_SHUTDOWN_PIN=0,C_DISABLE_WARN_BHV_RANGE=0,C_COUNT_36K_BRAM=8,C_COUNT_18K_BRAM=0,C_EST_POWER_SUMMARY=Estimated Power for IP _ 20.388 mW}"; ATTRIBUTE X_INTERFACE_INFO : STRING; ATTRIBUTE X_INTERFACE_INFO OF clka: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTA CLK"; ATTRIBUTE X_INTERFACE_INFO OF rsta: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTA RST"; ATTRIBUTE X_INTERFACE_INFO OF ena: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTA EN"; ATTRIBUTE X_INTERFACE_INFO OF wea: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTA WE"; ATTRIBUTE X_INTERFACE_INFO OF addra: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTA ADDR"; ATTRIBUTE X_INTERFACE_INFO OF dina: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTA DIN"; ATTRIBUTE X_INTERFACE_INFO OF douta: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTA DOUT"; ATTRIBUTE X_INTERFACE_INFO OF clkb: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTB CLK"; ATTRIBUTE X_INTERFACE_INFO OF rstb: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTB RST"; ATTRIBUTE X_INTERFACE_INFO OF enb: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTB EN"; ATTRIBUTE X_INTERFACE_INFO OF web: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTB WE"; ATTRIBUTE X_INTERFACE_INFO OF addrb: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTB ADDR"; ATTRIBUTE X_INTERFACE_INFO OF dinb: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTB DIN"; ATTRIBUTE X_INTERFACE_INFO OF doutb: SIGNAL IS "xilinx.com:interface:bram:1.0 BRAM_PORTB DOUT"; BEGIN U0 : blk_mem_gen_v8_2 GENERIC MAP ( C_FAMILY => "artix7", C_XDEVICEFAMILY => "artix7", C_ELABORATION_DIR => "./", C_INTERFACE_TYPE => 0, C_AXI_TYPE => 1, C_AXI_SLAVE_TYPE => 0, C_USE_BRAM_BLOCK => 1, C_ENABLE_32BIT_ADDRESS => 1, C_CTRL_ECC_ALGO => "NONE", C_HAS_AXI_ID => 0, C_AXI_ID_WIDTH => 4, C_MEM_TYPE => 2, C_BYTE_SIZE => 8, C_ALGORITHM => 1, C_PRIM_TYPE => 1, C_LOAD_INIT_FILE => 0, C_INIT_FILE_NAME => "no_coe_file_loaded", C_INIT_FILE => "design_1_lmb_bram_0.mem", C_USE_DEFAULT_DATA => 0, C_DEFAULT_DATA => "0", C_HAS_RSTA => 1, C_RST_PRIORITY_A => "CE", C_RSTRAM_A => 0, C_INITA_VAL => "0", C_HAS_ENA => 1, C_HAS_REGCEA => 0, C_USE_BYTE_WEA => 1, C_WEA_WIDTH => 4, C_WRITE_MODE_A => "WRITE_FIRST", C_WRITE_WIDTH_A => 32, C_READ_WIDTH_A => 32, C_WRITE_DEPTH_A => 8192, C_READ_DEPTH_A => 8192, C_ADDRA_WIDTH => 32, C_HAS_RSTB => 1, C_RST_PRIORITY_B => "CE", C_RSTRAM_B => 0, C_INITB_VAL => "0", C_HAS_ENB => 1, C_HAS_REGCEB => 0, C_USE_BYTE_WEB => 1, C_WEB_WIDTH => 4, C_WRITE_MODE_B => "WRITE_FIRST", C_WRITE_WIDTH_B => 32, C_READ_WIDTH_B => 32, C_WRITE_DEPTH_B => 8192, C_READ_DEPTH_B => 8192, C_ADDRB_WIDTH => 32, C_HAS_MEM_OUTPUT_REGS_A => 0, C_HAS_MEM_OUTPUT_REGS_B => 0, C_HAS_MUX_OUTPUT_REGS_A => 0, C_HAS_MUX_OUTPUT_REGS_B => 0, C_MUX_PIPELINE_STAGES => 0, C_HAS_SOFTECC_INPUT_REGS_A => 0, C_HAS_SOFTECC_OUTPUT_REGS_B => 0, C_USE_SOFTECC => 0, C_USE_ECC => 0, C_EN_ECC_PIPE => 0, C_HAS_INJECTERR => 0, C_SIM_COLLISION_CHECK => "ALL", C_COMMON_CLK => 0, C_DISABLE_WARN_BHV_COLL => 0, C_EN_SLEEP_PIN => 0, C_USE_URAM => 0, C_EN_RDADDRA_CHG => 0, C_EN_RDADDRB_CHG => 0, C_EN_DEEPSLEEP_PIN => 0, C_EN_SHUTDOWN_PIN => 0, C_DISABLE_WARN_BHV_RANGE => 0, C_COUNT_36K_BRAM => "8", C_COUNT_18K_BRAM => "0", C_EST_POWER_SUMMARY => "Estimated Power for IP : 20.388 mW" ) PORT MAP ( clka => clka, rsta => rsta, ena => ena, regcea => '0', wea => wea, addra => addra, dina => dina, douta => douta, clkb => clkb, rstb => rstb, enb => enb, regceb => '0', web => web, addrb => addrb, dinb => dinb, doutb => doutb, injectsbiterr => '0', injectdbiterr => '0', eccpipece => '0', sleep => '0', deepsleep => '0', shutdown => '0', s_aclk => '0', s_aresetn => '0', s_axi_awid => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 4)), s_axi_awaddr => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 32)), s_axi_awlen => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 8)), s_axi_awsize => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 3)), s_axi_awburst => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 2)), s_axi_awvalid => '0', s_axi_wdata => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 32)), s_axi_wstrb => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 4)), s_axi_wlast => '0', s_axi_wvalid => '0', s_axi_bready => '0', s_axi_arid => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 4)), s_axi_araddr => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 32)), s_axi_arlen => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 8)), s_axi_arsize => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 3)), s_axi_arburst => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 2)), s_axi_arvalid => '0', s_axi_rready => '0', s_axi_injectsbiterr => '0', s_axi_injectdbiterr => '0' ); END design_1_lmb_bram_0_arch;
--_________________________________________________________________________________________________ -- | -- |The nanoFIP| | -- | -- CERN,BE/CO-HT | --________________________________________________________________________________________________| --------------------------------------------------------------------------------------------------- -- | -- wf_tx_osc | -- | --------------------------------------------------------------------------------------------------- -- File wf_tx_osc.vhd | -- | -- Description Generation of the clock signals needed for the FIELDRIVE transmission. | -- | -- The unit generates the nanoFIP FIELDRIVE output FD_TXCK (line driver half bit | -- clock) and the nanoFIP internal signal tx_sched_p_buff: | -- | -- uclk : _|-|_|-|_|-|_|-|_|-|_|-|_|-|_|-|_|-|_|-|_|-|_|-|_|-|_|-|_|-| | -- FD_TXCK : _____|--------...--------|________...________|--------...--- | -- tx_sched_p_buff(3): 0 0 0 1 0 0 0 1 | -- tx_sched_p_buff(2): 0 0 1 0 0 0 1 0 | -- tx_sched_p_buff(1): 0 1 0 0 0 1 0 0 | -- tx_sched_p_buff(0): 1 0 0 0 1 0 0 0 | -- | -- Authors Pablo Alvarez Sanchez ([email protected]) | -- Evangelia Gousiou ([email protected]) | -- Date 14/02/2011 | -- Version v0.04 | -- Depends on wf_reset_unit | ---------------- | -- Last changes | -- 08/2009 v0.01 PS Entity Ports added, start of architecture content | -- 07/2010 v0.02 EG tx counter changed from 20 bits signed, to 11 bits unsigned; | -- c_TX_SCHED_BUFF_LGTH got 1 bit more | -- 12/2010 v0.03 EG code cleaned-up | -- 01/2011 v0.04 EG wf_tx_osc as different unit; use of wf_incr_counter;added tx_osc_rst_p_i --------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------- -- GNU LESSER GENERAL PUBLIC LICENSE | -- ------------------------------------ | -- This source file is free software; you can redistribute it and/or modify it under the terms of | -- the GNU Lesser General Public License as published by the Free Software Foundation; either | -- version 2.1 of the License, or (at your option) any later version. | -- This source 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 Lesser General Public License for more details. | -- You should have received a copy of the GNU Lesser General Public License along with this | -- source; if not, download it from http://www.gnu.org/licenses/lgpl-2.1.html | --------------------------------------------------------------------------------------------------- --================================================================================================= -- Libraries & Packages --================================================================================================= -- Standard library library IEEE; use IEEE.STD_LOGIC_1164.all; -- std_logic definitions use IEEE.NUMERIC_STD.all; -- conversion functions -- Specific library library work; use work.WF_PACKAGE.all; -- definitions of types, constants, entities --================================================================================================= -- Entity declaration for wf_tx_osc --================================================================================================= entity wf_tx_osc is port ( -- INPUTS -- nanoFIP User Interface, General signals uclk_i : in std_logic; -- 40 MHz clock rate_i : in std_logic_vector (1 downto 0); -- WorldFIP bit rate -- Signal from the wf_reset_unit nfip_rst_i : in std_logic; -- nanoFIP internal reset -- Signals from the wf_engine_control tx_osc_rst_p_i : in std_logic; -- transmitter timeout -- OUTPUTS -- nanoFIP FIELDRIVE output tx_clk_o : out std_logic; -- line driver half bit clock -- Signal to the wf_tx_serializer unit tx_sched_p_buff_o : out std_logic_vector (c_TX_SCHED_BUFF_LGTH -1 downto 0)); -- buffer of pulses used for the scheduling -- of the actions of the wf_tx_serializer end entity wf_tx_osc; --================================================================================================= -- architecture declaration --================================================================================================= architecture rtl of wf_tx_osc is -- transmission periods counter signal s_period_c, s_period : unsigned (c_PERIODS_COUNTER_LGTH -1 downto 0); signal s_one_forth_period : unsigned (c_PERIODS_COUNTER_LGTH -1 downto 0); signal s_period_c_is_full, s_period_c_reinit : std_logic; -- clocks signal s_tx_clk_d1, s_tx_clk, s_tx_clk_p : std_logic; signal s_tx_sched_p_buff : std_logic_vector (c_TX_SCHED_BUFF_LGTH-1 downto 0); --================================================================================================= -- architecture begin --================================================================================================= begin --------------------------------------------------------------------------------------------------- -- Periods Counter -- --------------------------------------------------------------------------------------------------- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- s_period <= c_BIT_RATE_UCLK_TICKS(to_integer(unsigned(rate_i)));-- # uclk ticks for a -- transmission period s_one_forth_period <= s_period srl 2; -- 1/4 s_period s_period_c_is_full <= '1' when s_period_c = s_period -1 else '0'; -- counter full -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Instantiation of a wf_incr_counter counting transmission periods. tx_periods_count: wf_incr_counter generic map(g_counter_lgth => c_PERIODS_COUNTER_LGTH) port map( uclk_i => uclk_i, counter_reinit_i => s_period_c_reinit, counter_incr_i => '1', counter_is_full_o => open, ------------------------------------------ counter_o => s_period_c); ------------------------------------------ -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- counter reinitialized : if the nfip_rst_i is active or -- if the tx_osc_rst_p_i is active or -- if it fills up s_period_c_reinit <= nfip_rst_i or tx_osc_rst_p_i or s_period_c_is_full; --------------------------------------------------------------------------------------------------- -- Clocks Construction -- --------------------------------------------------------------------------------------------------- -- Concurrent signals assignments and a synchronous process that use -- the s_period_c to construct the tx_clk_o clock and the buffer of pulses tx_sched_p_buff_o. -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Creation of the clock for the transmitter with period: 1/2 transmission period s_tx_clk <= '1' when ((s_period_c < s_one_forth_period) or ((s_period_c > (2*s_one_forth_period)-1) and (s_period_c < 3*s_one_forth_period))) else '0'; -- transm. period : _|-----------|___________|-- -- tx_counter : 0 1/4 1/2 3/4 1 -- s_tx_clk : _|-----|_____|-----|_____|-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Edge detector for s_tx_clk s_tx_clk_p <= s_tx_clk and (not s_tx_clk_d1); -- s_tx_clk : _|-----|_____|-----|_____ -- tx_clk_o/ s_tx_clk_d1: ___|-----|_____|-----|___ -- not s_tx_clk_d1 : ---|_____|-----|_____|--- -- s_tx_clk_p : _|-|___|-|___|-|___|-|___ -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- clk_Signals_Construction: process (uclk_i) begin if rising_edge (uclk_i) then if (nfip_rst_i = '1') or (tx_osc_rst_p_i = '1') then s_tx_sched_p_buff <= (others => '0'); s_tx_clk_d1 <= '0'; else s_tx_clk_d1 <= s_tx_clk; s_tx_sched_p_buff <= s_tx_sched_p_buff (s_tx_sched_p_buff'left-1 downto 0) & s_tx_clk_p; -- buffering of the s_tx_clk_p pulses end if; end if; end process; -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Output signals tx_clk_o <= s_tx_clk_d1; tx_sched_p_buff_o <= s_tx_sched_p_buff; end architecture rtl; --================================================================================================= -- architecture end --================================================================================================= --------------------------------------------------------------------------------------------------- -- E N D O F F I L E ---------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------- -- mdm_0_wrapper.vhd ------------------------------------------------------------------------------- library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; library mdm_v2_00_b; use mdm_v2_00_b.all; entity mdm_0_wrapper is port ( Interrupt : out std_logic; Debug_SYS_Rst : out std_logic; Ext_BRK : out std_logic; Ext_NM_BRK : out std_logic; S_AXI_ACLK : in std_logic; S_AXI_ARESETN : in std_logic; S_AXI_AWADDR : in std_logic_vector(31 downto 0); S_AXI_AWVALID : in std_logic; S_AXI_AWREADY : out std_logic; S_AXI_WDATA : in std_logic_vector(31 downto 0); S_AXI_WSTRB : in std_logic_vector(3 downto 0); S_AXI_WVALID : in std_logic; S_AXI_WREADY : out std_logic; S_AXI_BRESP : out std_logic_vector(1 downto 0); S_AXI_BVALID : out std_logic; S_AXI_BREADY : in std_logic; S_AXI_ARADDR : in std_logic_vector(31 downto 0); S_AXI_ARVALID : in std_logic; S_AXI_ARREADY : out std_logic; S_AXI_RDATA : out std_logic_vector(31 downto 0); S_AXI_RRESP : out std_logic_vector(1 downto 0); S_AXI_RVALID : out std_logic; S_AXI_RREADY : in std_logic; SPLB_Clk : in std_logic; SPLB_Rst : in std_logic; PLB_ABus : in std_logic_vector(0 to 31); PLB_UABus : in std_logic_vector(0 to 31); PLB_PAValid : in std_logic; PLB_SAValid : in std_logic; PLB_rdPrim : in std_logic; PLB_wrPrim : in std_logic; PLB_masterID : in std_logic_vector(0 to 0); PLB_abort : in std_logic; PLB_busLock : in std_logic; PLB_RNW : in std_logic; PLB_BE : in std_logic_vector(0 to 3); PLB_MSize : in std_logic_vector(0 to 1); PLB_size : in std_logic_vector(0 to 3); PLB_type : in std_logic_vector(0 to 2); PLB_lockErr : in std_logic; PLB_wrDBus : in std_logic_vector(0 to 31); PLB_wrBurst : in std_logic; PLB_rdBurst : in std_logic; PLB_wrPendReq : in std_logic; PLB_rdPendReq : in std_logic; PLB_wrPendPri : in std_logic_vector(0 to 1); PLB_rdPendPri : in std_logic_vector(0 to 1); PLB_reqPri : in std_logic_vector(0 to 1); PLB_TAttribute : in std_logic_vector(0 to 15); Sl_addrAck : out std_logic; Sl_SSize : out std_logic_vector(0 to 1); Sl_wait : out std_logic; Sl_rearbitrate : out std_logic; Sl_wrDAck : out std_logic; Sl_wrComp : out std_logic; Sl_wrBTerm : out std_logic; Sl_rdDBus : out std_logic_vector(0 to 31); Sl_rdWdAddr : out std_logic_vector(0 to 3); Sl_rdDAck : out std_logic; Sl_rdComp : out std_logic; Sl_rdBTerm : out std_logic; Sl_MBusy : out std_logic_vector(0 to 1); Sl_MWrErr : out std_logic_vector(0 to 1); Sl_MRdErr : out std_logic_vector(0 to 1); Sl_MIRQ : out std_logic_vector(0 to 1); Dbg_Clk_0 : out std_logic; Dbg_TDI_0 : out std_logic; Dbg_TDO_0 : in std_logic; Dbg_Reg_En_0 : out std_logic_vector(0 to 7); Dbg_Capture_0 : out std_logic; Dbg_Shift_0 : out std_logic; Dbg_Update_0 : out std_logic; Dbg_Rst_0 : out std_logic; Dbg_Clk_1 : out std_logic; Dbg_TDI_1 : out std_logic; Dbg_TDO_1 : in std_logic; Dbg_Reg_En_1 : out std_logic_vector(0 to 7); Dbg_Capture_1 : out std_logic; Dbg_Shift_1 : out std_logic; Dbg_Update_1 : out std_logic; Dbg_Rst_1 : out std_logic; Dbg_Clk_2 : out std_logic; Dbg_TDI_2 : out std_logic; Dbg_TDO_2 : in std_logic; Dbg_Reg_En_2 : out std_logic_vector(0 to 7); Dbg_Capture_2 : out std_logic; Dbg_Shift_2 : out std_logic; Dbg_Update_2 : out std_logic; Dbg_Rst_2 : out std_logic; Dbg_Clk_3 : out std_logic; Dbg_TDI_3 : out std_logic; Dbg_TDO_3 : in std_logic; Dbg_Reg_En_3 : out std_logic_vector(0 to 7); Dbg_Capture_3 : out std_logic; Dbg_Shift_3 : out std_logic; Dbg_Update_3 : out std_logic; Dbg_Rst_3 : out std_logic; Dbg_Clk_4 : out std_logic; Dbg_TDI_4 : out std_logic; Dbg_TDO_4 : in std_logic; Dbg_Reg_En_4 : out std_logic_vector(0 to 7); Dbg_Capture_4 : out std_logic; Dbg_Shift_4 : out std_logic; Dbg_Update_4 : out std_logic; Dbg_Rst_4 : out std_logic; Dbg_Clk_5 : out std_logic; Dbg_TDI_5 : out std_logic; Dbg_TDO_5 : in std_logic; Dbg_Reg_En_5 : out std_logic_vector(0 to 7); Dbg_Capture_5 : out std_logic; Dbg_Shift_5 : out std_logic; Dbg_Update_5 : out std_logic; Dbg_Rst_5 : out std_logic; Dbg_Clk_6 : out std_logic; Dbg_TDI_6 : out std_logic; Dbg_TDO_6 : in std_logic; Dbg_Reg_En_6 : out std_logic_vector(0 to 7); Dbg_Capture_6 : out std_logic; Dbg_Shift_6 : out std_logic; Dbg_Update_6 : out std_logic; Dbg_Rst_6 : out std_logic; Dbg_Clk_7 : out std_logic; Dbg_TDI_7 : out std_logic; Dbg_TDO_7 : in std_logic; Dbg_Reg_En_7 : out std_logic_vector(0 to 7); Dbg_Capture_7 : out std_logic; Dbg_Shift_7 : out std_logic; Dbg_Update_7 : out std_logic; Dbg_Rst_7 : out std_logic; bscan_tdi : out std_logic; bscan_reset : out std_logic; bscan_shift : out std_logic; bscan_update : out std_logic; bscan_capture : out std_logic; bscan_sel1 : out std_logic; bscan_drck1 : out std_logic; bscan_tdo1 : in std_logic; Ext_JTAG_DRCK : out std_logic; Ext_JTAG_RESET : out std_logic; Ext_JTAG_SEL : out std_logic; Ext_JTAG_CAPTURE : out std_logic; Ext_JTAG_SHIFT : out std_logic; Ext_JTAG_UPDATE : out std_logic; Ext_JTAG_TDI : out std_logic; Ext_JTAG_TDO : in std_logic ); attribute x_core_info : STRING; attribute x_core_info of mdm_0_wrapper : entity is "mdm_v2_00_b"; end mdm_0_wrapper; architecture STRUCTURE of mdm_0_wrapper is component mdm is generic ( C_FAMILY : STRING; C_JTAG_CHAIN : INTEGER; C_INTERCONNECT : INTEGER; C_BASEADDR : STD_LOGIC_VECTOR; C_HIGHADDR : STD_LOGIC_VECTOR; C_SPLB_AWIDTH : INTEGER; C_SPLB_DWIDTH : INTEGER; C_SPLB_P2P : INTEGER; C_SPLB_MID_WIDTH : INTEGER; C_SPLB_NUM_MASTERS : INTEGER; C_SPLB_NATIVE_DWIDTH : INTEGER; C_SPLB_SUPPORT_BURSTS : INTEGER; C_MB_DBG_PORTS : INTEGER; C_USE_UART : INTEGER; C_S_AXI_ADDR_WIDTH : INTEGER; C_S_AXI_DATA_WIDTH : INTEGER ); port ( Interrupt : out std_logic; Debug_SYS_Rst : out std_logic; Ext_BRK : out std_logic; Ext_NM_BRK : out std_logic; S_AXI_ACLK : in std_logic; S_AXI_ARESETN : in std_logic; S_AXI_AWADDR : in std_logic_vector((C_S_AXI_ADDR_WIDTH-1) downto 0); S_AXI_AWVALID : in std_logic; S_AXI_AWREADY : out std_logic; S_AXI_WDATA : in std_logic_vector((C_S_AXI_DATA_WIDTH-1) downto 0); S_AXI_WSTRB : in std_logic_vector((C_S_AXI_DATA_WIDTH/8-1) downto 0); S_AXI_WVALID : in std_logic; S_AXI_WREADY : out std_logic; S_AXI_BRESP : out std_logic_vector(1 downto 0); S_AXI_BVALID : out std_logic; S_AXI_BREADY : in std_logic; S_AXI_ARADDR : in std_logic_vector((C_S_AXI_ADDR_WIDTH-1) downto 0); S_AXI_ARVALID : in std_logic; S_AXI_ARREADY : out std_logic; S_AXI_RDATA : out std_logic_vector((C_S_AXI_DATA_WIDTH-1) downto 0); S_AXI_RRESP : out std_logic_vector(1 downto 0); S_AXI_RVALID : out std_logic; S_AXI_RREADY : in std_logic; SPLB_Clk : in std_logic; SPLB_Rst : in std_logic; PLB_ABus : in std_logic_vector(0 to 31); PLB_UABus : in std_logic_vector(0 to 31); PLB_PAValid : in std_logic; PLB_SAValid : in std_logic; PLB_rdPrim : in std_logic; PLB_wrPrim : in std_logic; PLB_masterID : in std_logic_vector(0 to (C_SPLB_MID_WIDTH-1)); PLB_abort : in std_logic; PLB_busLock : in std_logic; PLB_RNW : in std_logic; PLB_BE : in std_logic_vector(0 to ((C_SPLB_DWIDTH/8)-1)); PLB_MSize : in std_logic_vector(0 to 1); PLB_size : in std_logic_vector(0 to 3); PLB_type : in std_logic_vector(0 to 2); PLB_lockErr : in std_logic; PLB_wrDBus : in std_logic_vector(0 to (C_SPLB_DWIDTH-1)); PLB_wrBurst : in std_logic; PLB_rdBurst : in std_logic; PLB_wrPendReq : in std_logic; PLB_rdPendReq : in std_logic; PLB_wrPendPri : in std_logic_vector(0 to 1); PLB_rdPendPri : in std_logic_vector(0 to 1); PLB_reqPri : in std_logic_vector(0 to 1); PLB_TAttribute : in std_logic_vector(0 to 15); Sl_addrAck : out std_logic; Sl_SSize : out std_logic_vector(0 to 1); Sl_wait : out std_logic; Sl_rearbitrate : out std_logic; Sl_wrDAck : out std_logic; Sl_wrComp : out std_logic; Sl_wrBTerm : out std_logic; Sl_rdDBus : out std_logic_vector(0 to (C_SPLB_DWIDTH-1)); Sl_rdWdAddr : out std_logic_vector(0 to 3); Sl_rdDAck : out std_logic; Sl_rdComp : out std_logic; Sl_rdBTerm : out std_logic; Sl_MBusy : out std_logic_vector(0 to (C_SPLB_NUM_MASTERS-1)); Sl_MWrErr : out std_logic_vector(0 to (C_SPLB_NUM_MASTERS-1)); Sl_MRdErr : out std_logic_vector(0 to (C_SPLB_NUM_MASTERS-1)); Sl_MIRQ : out std_logic_vector(0 to (C_SPLB_NUM_MASTERS-1)); Dbg_Clk_0 : out std_logic; Dbg_TDI_0 : out std_logic; Dbg_TDO_0 : in std_logic; Dbg_Reg_En_0 : out std_logic_vector(0 to 7); Dbg_Capture_0 : out std_logic; Dbg_Shift_0 : out std_logic; Dbg_Update_0 : out std_logic; Dbg_Rst_0 : out std_logic; Dbg_Clk_1 : out std_logic; Dbg_TDI_1 : out std_logic; Dbg_TDO_1 : in std_logic; Dbg_Reg_En_1 : out std_logic_vector(0 to 7); Dbg_Capture_1 : out std_logic; Dbg_Shift_1 : out std_logic; Dbg_Update_1 : out std_logic; Dbg_Rst_1 : out std_logic; Dbg_Clk_2 : out std_logic; Dbg_TDI_2 : out std_logic; Dbg_TDO_2 : in std_logic; Dbg_Reg_En_2 : out std_logic_vector(0 to 7); Dbg_Capture_2 : out std_logic; Dbg_Shift_2 : out std_logic; Dbg_Update_2 : out std_logic; Dbg_Rst_2 : out std_logic; Dbg_Clk_3 : out std_logic; Dbg_TDI_3 : out std_logic; Dbg_TDO_3 : in std_logic; Dbg_Reg_En_3 : out std_logic_vector(0 to 7); Dbg_Capture_3 : out std_logic; Dbg_Shift_3 : out std_logic; Dbg_Update_3 : out std_logic; Dbg_Rst_3 : out std_logic; Dbg_Clk_4 : out std_logic; Dbg_TDI_4 : out std_logic; Dbg_TDO_4 : in std_logic; Dbg_Reg_En_4 : out std_logic_vector(0 to 7); Dbg_Capture_4 : out std_logic; Dbg_Shift_4 : out std_logic; Dbg_Update_4 : out std_logic; Dbg_Rst_4 : out std_logic; Dbg_Clk_5 : out std_logic; Dbg_TDI_5 : out std_logic; Dbg_TDO_5 : in std_logic; Dbg_Reg_En_5 : out std_logic_vector(0 to 7); Dbg_Capture_5 : out std_logic; Dbg_Shift_5 : out std_logic; Dbg_Update_5 : out std_logic; Dbg_Rst_5 : out std_logic; Dbg_Clk_6 : out std_logic; Dbg_TDI_6 : out std_logic; Dbg_TDO_6 : in std_logic; Dbg_Reg_En_6 : out std_logic_vector(0 to 7); Dbg_Capture_6 : out std_logic; Dbg_Shift_6 : out std_logic; Dbg_Update_6 : out std_logic; Dbg_Rst_6 : out std_logic; Dbg_Clk_7 : out std_logic; Dbg_TDI_7 : out std_logic; Dbg_TDO_7 : in std_logic; Dbg_Reg_En_7 : out std_logic_vector(0 to 7); Dbg_Capture_7 : out std_logic; Dbg_Shift_7 : out std_logic; Dbg_Update_7 : out std_logic; Dbg_Rst_7 : out std_logic; bscan_tdi : out std_logic; bscan_reset : out std_logic; bscan_shift : out std_logic; bscan_update : out std_logic; bscan_capture : out std_logic; bscan_sel1 : out std_logic; bscan_drck1 : out std_logic; bscan_tdo1 : in std_logic; Ext_JTAG_DRCK : out std_logic; Ext_JTAG_RESET : out std_logic; Ext_JTAG_SEL : out std_logic; Ext_JTAG_CAPTURE : out std_logic; Ext_JTAG_SHIFT : out std_logic; Ext_JTAG_UPDATE : out std_logic; Ext_JTAG_TDI : out std_logic; Ext_JTAG_TDO : in std_logic ); end component; begin mdm_0 : mdm generic map ( C_FAMILY => "spartan6", C_JTAG_CHAIN => 2, C_INTERCONNECT => 1, C_BASEADDR => X"84400000", C_HIGHADDR => X"8440ffff", C_SPLB_AWIDTH => 32, C_SPLB_DWIDTH => 32, C_SPLB_P2P => 0, C_SPLB_MID_WIDTH => 1, C_SPLB_NUM_MASTERS => 2, C_SPLB_NATIVE_DWIDTH => 32, C_SPLB_SUPPORT_BURSTS => 0, C_MB_DBG_PORTS => 1, C_USE_UART => 1, C_S_AXI_ADDR_WIDTH => 32, C_S_AXI_DATA_WIDTH => 32 ) port map ( Interrupt => Interrupt, Debug_SYS_Rst => Debug_SYS_Rst, Ext_BRK => Ext_BRK, Ext_NM_BRK => Ext_NM_BRK, S_AXI_ACLK => S_AXI_ACLK, S_AXI_ARESETN => S_AXI_ARESETN, S_AXI_AWADDR => S_AXI_AWADDR, S_AXI_AWVALID => S_AXI_AWVALID, S_AXI_AWREADY => S_AXI_AWREADY, S_AXI_WDATA => S_AXI_WDATA, S_AXI_WSTRB => S_AXI_WSTRB, S_AXI_WVALID => S_AXI_WVALID, S_AXI_WREADY => S_AXI_WREADY, S_AXI_BRESP => S_AXI_BRESP, S_AXI_BVALID => S_AXI_BVALID, S_AXI_BREADY => S_AXI_BREADY, S_AXI_ARADDR => S_AXI_ARADDR, S_AXI_ARVALID => S_AXI_ARVALID, S_AXI_ARREADY => S_AXI_ARREADY, S_AXI_RDATA => S_AXI_RDATA, S_AXI_RRESP => S_AXI_RRESP, S_AXI_RVALID => S_AXI_RVALID, S_AXI_RREADY => S_AXI_RREADY, SPLB_Clk => SPLB_Clk, SPLB_Rst => SPLB_Rst, PLB_ABus => PLB_ABus, PLB_UABus => PLB_UABus, PLB_PAValid => PLB_PAValid, PLB_SAValid => PLB_SAValid, PLB_rdPrim => PLB_rdPrim, PLB_wrPrim => PLB_wrPrim, PLB_masterID => PLB_masterID, PLB_abort => PLB_abort, PLB_busLock => PLB_busLock, PLB_RNW => PLB_RNW, PLB_BE => PLB_BE, PLB_MSize => PLB_MSize, PLB_size => PLB_size, PLB_type => PLB_type, PLB_lockErr => PLB_lockErr, PLB_wrDBus => PLB_wrDBus, PLB_wrBurst => PLB_wrBurst, PLB_rdBurst => PLB_rdBurst, PLB_wrPendReq => PLB_wrPendReq, PLB_rdPendReq => PLB_rdPendReq, PLB_wrPendPri => PLB_wrPendPri, PLB_rdPendPri => PLB_rdPendPri, PLB_reqPri => PLB_reqPri, PLB_TAttribute => PLB_TAttribute, Sl_addrAck => Sl_addrAck, Sl_SSize => Sl_SSize, Sl_wait => Sl_wait, Sl_rearbitrate => Sl_rearbitrate, Sl_wrDAck => Sl_wrDAck, Sl_wrComp => Sl_wrComp, Sl_wrBTerm => Sl_wrBTerm, Sl_rdDBus => Sl_rdDBus, Sl_rdWdAddr => Sl_rdWdAddr, Sl_rdDAck => Sl_rdDAck, Sl_rdComp => Sl_rdComp, Sl_rdBTerm => Sl_rdBTerm, Sl_MBusy => Sl_MBusy, Sl_MWrErr => Sl_MWrErr, Sl_MRdErr => Sl_MRdErr, Sl_MIRQ => Sl_MIRQ, Dbg_Clk_0 => Dbg_Clk_0, Dbg_TDI_0 => Dbg_TDI_0, Dbg_TDO_0 => Dbg_TDO_0, Dbg_Reg_En_0 => Dbg_Reg_En_0, Dbg_Capture_0 => Dbg_Capture_0, Dbg_Shift_0 => Dbg_Shift_0, Dbg_Update_0 => Dbg_Update_0, Dbg_Rst_0 => Dbg_Rst_0, Dbg_Clk_1 => Dbg_Clk_1, Dbg_TDI_1 => Dbg_TDI_1, Dbg_TDO_1 => Dbg_TDO_1, Dbg_Reg_En_1 => Dbg_Reg_En_1, Dbg_Capture_1 => Dbg_Capture_1, Dbg_Shift_1 => Dbg_Shift_1, Dbg_Update_1 => Dbg_Update_1, Dbg_Rst_1 => Dbg_Rst_1, Dbg_Clk_2 => Dbg_Clk_2, Dbg_TDI_2 => Dbg_TDI_2, Dbg_TDO_2 => Dbg_TDO_2, Dbg_Reg_En_2 => Dbg_Reg_En_2, Dbg_Capture_2 => Dbg_Capture_2, Dbg_Shift_2 => Dbg_Shift_2, Dbg_Update_2 => Dbg_Update_2, Dbg_Rst_2 => Dbg_Rst_2, Dbg_Clk_3 => Dbg_Clk_3, Dbg_TDI_3 => Dbg_TDI_3, Dbg_TDO_3 => Dbg_TDO_3, Dbg_Reg_En_3 => Dbg_Reg_En_3, Dbg_Capture_3 => Dbg_Capture_3, Dbg_Shift_3 => Dbg_Shift_3, Dbg_Update_3 => Dbg_Update_3, Dbg_Rst_3 => Dbg_Rst_3, Dbg_Clk_4 => Dbg_Clk_4, Dbg_TDI_4 => Dbg_TDI_4, Dbg_TDO_4 => Dbg_TDO_4, Dbg_Reg_En_4 => Dbg_Reg_En_4, Dbg_Capture_4 => Dbg_Capture_4, Dbg_Shift_4 => Dbg_Shift_4, Dbg_Update_4 => Dbg_Update_4, Dbg_Rst_4 => Dbg_Rst_4, Dbg_Clk_5 => Dbg_Clk_5, Dbg_TDI_5 => Dbg_TDI_5, Dbg_TDO_5 => Dbg_TDO_5, Dbg_Reg_En_5 => Dbg_Reg_En_5, Dbg_Capture_5 => Dbg_Capture_5, Dbg_Shift_5 => Dbg_Shift_5, Dbg_Update_5 => Dbg_Update_5, Dbg_Rst_5 => Dbg_Rst_5, Dbg_Clk_6 => Dbg_Clk_6, Dbg_TDI_6 => Dbg_TDI_6, Dbg_TDO_6 => Dbg_TDO_6, Dbg_Reg_En_6 => Dbg_Reg_En_6, Dbg_Capture_6 => Dbg_Capture_6, Dbg_Shift_6 => Dbg_Shift_6, Dbg_Update_6 => Dbg_Update_6, Dbg_Rst_6 => Dbg_Rst_6, Dbg_Clk_7 => Dbg_Clk_7, Dbg_TDI_7 => Dbg_TDI_7, Dbg_TDO_7 => Dbg_TDO_7, Dbg_Reg_En_7 => Dbg_Reg_En_7, Dbg_Capture_7 => Dbg_Capture_7, Dbg_Shift_7 => Dbg_Shift_7, Dbg_Update_7 => Dbg_Update_7, Dbg_Rst_7 => Dbg_Rst_7, bscan_tdi => bscan_tdi, bscan_reset => bscan_reset, bscan_shift => bscan_shift, bscan_update => bscan_update, bscan_capture => bscan_capture, bscan_sel1 => bscan_sel1, bscan_drck1 => bscan_drck1, bscan_tdo1 => bscan_tdo1, Ext_JTAG_DRCK => Ext_JTAG_DRCK, Ext_JTAG_RESET => Ext_JTAG_RESET, Ext_JTAG_SEL => Ext_JTAG_SEL, Ext_JTAG_CAPTURE => Ext_JTAG_CAPTURE, Ext_JTAG_SHIFT => Ext_JTAG_SHIFT, Ext_JTAG_UPDATE => Ext_JTAG_UPDATE, Ext_JTAG_TDI => Ext_JTAG_TDI, Ext_JTAG_TDO => Ext_JTAG_TDO ); end architecture STRUCTURE;
library verilog; use verilog.vl_types.all; entity ttn_n_cntr is port( clk : in vl_logic; reset : in vl_logic; cout : out vl_logic; modulus : in vl_logic_vector(31 downto 0) ); end ttn_n_cntr;
library ieee; use ieee.std_logic_1164.all; library ieee; use ieee.numeric_std.all; entity add_153 is port ( output : out std_logic_vector(63 downto 0); in_a : in std_logic_vector(63 downto 0); in_b : in std_logic_vector(63 downto 0) ); end add_153; architecture augh of add_153 is signal carry_inA : std_logic_vector(65 downto 0); signal carry_inB : std_logic_vector(65 downto 0); signal carry_res : std_logic_vector(65 downto 0); begin -- To handle the CI input, the operation is '1' + CI -- If CI is not present, the operation is '1' + '0' carry_inA <= '0' & in_a & '1'; carry_inB <= '0' & in_b & '0'; -- Compute the result carry_res <= std_logic_vector(unsigned(carry_inA) + unsigned(carry_inB)); -- Set the outputs output <= carry_res(64 downto 1); end architecture;
library ieee; use ieee.std_logic_1164.all; library ieee; use ieee.numeric_std.all; entity add_153 is port ( output : out std_logic_vector(63 downto 0); in_a : in std_logic_vector(63 downto 0); in_b : in std_logic_vector(63 downto 0) ); end add_153; architecture augh of add_153 is signal carry_inA : std_logic_vector(65 downto 0); signal carry_inB : std_logic_vector(65 downto 0); signal carry_res : std_logic_vector(65 downto 0); begin -- To handle the CI input, the operation is '1' + CI -- If CI is not present, the operation is '1' + '0' carry_inA <= '0' & in_a & '1'; carry_inB <= '0' & in_b & '0'; -- Compute the result carry_res <= std_logic_vector(unsigned(carry_inA) + unsigned(carry_inB)); -- Set the outputs output <= carry_res(64 downto 1); end architecture;
library ieee; use ieee.std_logic_1164.all; library ieee; use ieee.numeric_std.all; entity add_153 is port ( output : out std_logic_vector(63 downto 0); in_a : in std_logic_vector(63 downto 0); in_b : in std_logic_vector(63 downto 0) ); end add_153; architecture augh of add_153 is signal carry_inA : std_logic_vector(65 downto 0); signal carry_inB : std_logic_vector(65 downto 0); signal carry_res : std_logic_vector(65 downto 0); begin -- To handle the CI input, the operation is '1' + CI -- If CI is not present, the operation is '1' + '0' carry_inA <= '0' & in_a & '1'; carry_inB <= '0' & in_b & '0'; -- Compute the result carry_res <= std_logic_vector(unsigned(carry_inA) + unsigned(carry_inB)); -- Set the outputs output <= carry_res(64 downto 1); end architecture;
------------------------------------------------------------------------------ -- Pull-up and pull-down (on signals and busses) -- -- Project : -- File : pull.vhd -- Author : Rolf Enzler <[email protected]> -- Company : Swiss Federal Institute of Technology (ETH) Zurich -- Created : 2002/10/23 -- Last changed: $LastChangedDate: 2004-10-05 17:10:36 +0200 (Tue, 05 Oct 2004) $ ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ -- Pull-up, -down on signals ------------------------------------------------------------------------------ library ieee; use ieee.std_logic_1164.all; entity Pull is port ( ModexSI : in std_logic; -- '1': pull-up, '0': pull-down WirexZO : out std_logic); end Pull; architecture behav of Pull is begin -- behav WirexZO <= 'H' when ModexSI = '1' else 'L'; end behav; ------------------------------------------------------------------------------ -- Pull-up, -down on vectors/busses ------------------------------------------------------------------------------ library ieee; use ieee.std_logic_1164.all; use work.ComponentsPkg.all; entity PullBus is generic ( WIDTH : integer); port ( ModexSI : in std_logic; -- '1': pull-up, '0': pull-down BusxZO : out std_logic_vector(WIDTH-1 downto 0)); end PullBus; architecture behav of PullBus is begin -- behav Pulls : for i in BusxZO'range generate Pull_i : Pull port map ( ModexSI => ModexSI, WirexZO => BusxZO(i)); end generate Pulls; end behav;
library IEEE; use IEEE.STD_LOGIC_1164.ALL; use IEEE.STD_LOGIC_ARITH.ALL; use IEEE.STD_LOGIC_UNSIGNED.ALL; library UNISIM; use UNISIM.VComponents.all; use work.fixed_pkg.all; entity Fixed_Point_ALU is port( A : in std_logic_vector(31 downto 0); B : in std_logic_vector(31 downto 0); result : out std_logic_vector(31 downto 0); sel : in std_logic); end Fixed_Point_ALU; architecture behavioral of Fixed_Point_ALU is signal A_fixed : sfixed(2 downto -29); signal B_fixed : sfixed(2 downto -29); signal result_fixed : sfixed(2 downto -29); begin A_fixed <= to_sfixed(A, 2, -29); B_fixed <= to_sfixed(B, 2, -29); result <= to_slv(result_fixed); process (A_fixed, B_fixed, sel) begin if sel = '0' then --multiply result_fixed <= resize(A_fixed * B_fixed, result_fixed'high, result_fixed'low); else --divide result_fixed <= resize(A_fixed / B_fixed, result_fixed'high, result_fixed'low); end if; end process; end behavioral;
architecture RTL of FIFO is function func1 return integer; pure function func1 return integer; impure function func1 return integer; -- Violations follow function func1 return integer; function func1 return integer; pure function func1 return integer; pure function func1 return integer; impure function func1 return integer; impure function func1 return integer; begin end architecture RTL;
-- Copyright (C) 2001 Bill Billowitch. -- Some of the work to develop this test suite was done with Air Force -- support. The Air Force and Bill Billowitch assume no -- responsibilities for this software. -- This file is part of VESTs (Vhdl tESTs). -- VESTs 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 2 of the License, or (at -- your option) any later version. -- VESTs 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 VESTs; if not, write to the Free Software Foundation, -- Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -- --------------------------------------------------------------------- -- -- $Id: tc1013.vhd,v 1.2 2001-10-26 16:29:38 paw Exp $ -- $Revision: 1.2 $ -- -- --------------------------------------------------------------------- ENTITY c06s03b00x00p10n01i01013ent IS END c06s03b00x00p10n01i01013ent; ARCHITECTURE c06s03b00x00p10n01i01013arch OF c06s03b00x00p10n01i01013ent IS signal q : bit; BEGIN TESTING: PROCESS(c06s03b00x00p10n01i01013arch.q) BEGIN assert FALSE report "***PASSED TEST: c06s03b00x00p10n01i01013" severity NOTE; END PROCESS TESTING; END c06s03b00x00p10n01i01013arch;
-- Copyright (C) 2001 Bill Billowitch. -- Some of the work to develop this test suite was done with Air Force -- support. The Air Force and Bill Billowitch assume no -- responsibilities for this software. -- This file is part of VESTs (Vhdl tESTs). -- VESTs 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 2 of the License, or (at -- your option) any later version. -- VESTs 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 VESTs; if not, write to the Free Software Foundation, -- Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -- --------------------------------------------------------------------- -- -- $Id: tc1013.vhd,v 1.2 2001-10-26 16:29:38 paw Exp $ -- $Revision: 1.2 $ -- -- --------------------------------------------------------------------- ENTITY c06s03b00x00p10n01i01013ent IS END c06s03b00x00p10n01i01013ent; ARCHITECTURE c06s03b00x00p10n01i01013arch OF c06s03b00x00p10n01i01013ent IS signal q : bit; BEGIN TESTING: PROCESS(c06s03b00x00p10n01i01013arch.q) BEGIN assert FALSE report "***PASSED TEST: c06s03b00x00p10n01i01013" severity NOTE; END PROCESS TESTING; END c06s03b00x00p10n01i01013arch;
-- Copyright (C) 2001 Bill Billowitch. -- Some of the work to develop this test suite was done with Air Force -- support. The Air Force and Bill Billowitch assume no -- responsibilities for this software. -- This file is part of VESTs (Vhdl tESTs). -- VESTs 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 2 of the License, or (at -- your option) any later version. -- VESTs 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 VESTs; if not, write to the Free Software Foundation, -- Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -- --------------------------------------------------------------------- -- -- $Id: tc1013.vhd,v 1.2 2001-10-26 16:29:38 paw Exp $ -- $Revision: 1.2 $ -- -- --------------------------------------------------------------------- ENTITY c06s03b00x00p10n01i01013ent IS END c06s03b00x00p10n01i01013ent; ARCHITECTURE c06s03b00x00p10n01i01013arch OF c06s03b00x00p10n01i01013ent IS signal q : bit; BEGIN TESTING: PROCESS(c06s03b00x00p10n01i01013arch.q) BEGIN assert FALSE report "***PASSED TEST: c06s03b00x00p10n01i01013" severity NOTE; END PROCESS TESTING; END c06s03b00x00p10n01i01013arch;
-------------------------------------------------------------------------------- -- Title : Toplevel File of A25 FPGA -- Project : 1614_CERN_A25 -------------------------------------------------------------------------------- -- File : A25_top.vhd -- Author : [email protected] -- Organization : MEN Mikro Elektronik GmbH -- Created : 2016-06-03 -------------------------------------------------------------------------------- -- Simulator : Modelsim PE 6.6 -- Synthesis : Quartus 15.1 -------------------------------------------------------------------------------- -- Description : -- -------------------------------------------------------------------------------- -- Hierarchy: -- -- A25_top -- wbb2vme_top -- sram -- ip_16z091_01_top -- iram_wb -- pll_pcie -- z126_01_top -------------------------------------------------------------------------------- -- Copyright (c) 2016, MEN Mikro Elektronik GmbH -- -- 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/>. -------------------------------------------------------------------------------- -- History: -------------------------------------------------------------------------------- -- -------------------------------------------------------------------------------- LIBRARY ieee; USE ieee.std_logic_1164.ALL; USE ieee.std_logic_unsigned.ALL; USE ieee.numeric_std.ALL; USE work.wb_pkg.ALL; USE work.fpga_pkg_2.ALL; USE work.z126_01_pkg.ALL; USE work.vme_pkg.ALL; ENTITY A25_top IS GENERIC ( SIMULATION : boolean := FALSE; FPGA_FAMILY : family_type := CYCLONE4; sets : std_logic_vector(3 DOWNTO 0) := "1110"; timeout : integer := 5000 ); PORT ( clk_16mhz : IN std_logic; led_green_n : OUT std_logic; led_red_n : OUT std_logic; hreset_n : IN std_logic; -- reset v2p_rstn : OUT std_logic; -- connected to hreset_req1_n fpga_test : INOUT std_logic_vector(5 DOWNTO 1); -- pcie refclk : IN std_logic; -- 100 MHz pcie clock pcie_rx : IN std_logic_vector(3 DOWNTO 0); -- PCIe receive line pcie_tx : OUT std_logic_vector(3 DOWNTO 0); -- PCIe transmit line -- sram sr_clk : OUT std_logic; sr_a : OUT std_logic_vector(18 DOWNTO 0); sr_d : INOUT std_logic_vector(15 DOWNTO 0); sr_bwa_n : OUT std_logic; sr_bwb_n : OUT std_logic; sr_bw_n : OUT std_logic; sr_cs1_n : OUT std_logic; sr_adsc_n : OUT std_logic; sr_oe_n : OUT std_logic; -- vmebus vme_ga : IN std_logic_vector(4 DOWNTO 0); -- geographical addresses vme_gap : IN std_logic; -- geographical addresses vme_a : INOUT std_logic_vector(31 DOWNTO 0); vme_a_dir : OUT std_logic; vme_a_oe_n : OUT std_logic; vme_d : INOUT std_logic_vector(31 DOWNTO 0); vme_d_dir : OUT std_logic; vme_d_oe_n : OUT std_logic; vme_am_dir : OUT std_logic; vme_am : INOUT std_logic_vector(5 DOWNTO 0); vme_am_oe_n : OUT std_logic; vme_write_n : INOUT std_logic; vme_iack_n : INOUT std_logic; vme_irq_i_n : IN std_logic_vector(7 DOWNTO 1); vme_irq_o : OUT std_logic_vector(7 DOWNTO 1); -- high active on A25 vme_as_i_n : IN std_logic; vme_as_o_n : OUT std_logic; vme_as_oe : OUT std_logic; -- high active on A25 vme_retry_o_n : OUT std_logic; vme_retry_oe : OUT std_logic; -- high active on A25 vme_retry_i_n : IN std_logic; vme_sysres_i_n : IN std_logic; vme_sysres_o : OUT std_logic; -- high active on A25 vme_ds_i_n : IN std_logic_vector(1 DOWNTO 0); vme_ds_o_n : OUT std_logic_vector(1 DOWNTO 0); vme_ds_oe : OUT std_logic; -- high active on A25 vme_berr_i_n : IN std_logic; vme_berr_o : OUT std_logic; -- high active on A25 vme_dtack_i_n : IN std_logic; vme_dtack_o : OUT std_logic; -- high active on A25 vme_scon : OUT std_logic; -- high active on A25 vme_sysfail_i_n : IN std_logic; vme_sysfail_o : OUT std_logic; -- high active on A25 vme_bbsy_i_n : IN std_logic; vme_bbsy_o : OUT std_logic; -- high active on A25 vme_bclr_i_n : IN std_logic; -- bus clear input vme_bclr_o_n : OUT std_logic; -- bus clear output vme_br_i_n : IN std_logic_vector(3 DOWNTO 0); vme_br_o : OUT std_logic_vector(3 DOWNTO 0); -- high active on A25 vme_iack_i_n : IN std_logic; vme_iack_o_n : OUT std_logic; vme_acfail_i_n : IN std_logic; vme_sysclk : OUT std_logic; vme_bg_i_n : IN std_logic_vector(3 DOWNTO 0); vme_bg_o_n : OUT std_logic_vector(3 DOWNTO 0) ); END A25_top; ARCHITECTURE A25_top_arch OF A25_top IS CONSTANT NR_OF_WB_SLAVES : natural range 63 DOWNTO 1 := 10; COMPONENT ip_16z091_01_top GENERIC( SIMULATION : std_logic := '0'; -- =1 simulation,=0 synthesis FPGA_FAMILY : family_type := NONE; IRQ_WIDTH : integer range 32 downto 1 := 1; -- only use one of the following 3: -- 001 := 1 lane, 010 := 2 lanes, 100 := 4 lanes USE_LANES : std_logic_vector(2 downto 0) := "001"; NR_OF_WB_SLAVES : natural range 63 DOWNTO 1 := 12; NR_OF_BARS_USED : natural range 6 downto 1 := 5; VENDOR_ID : natural := 16#1A88#; DEVICE_ID : natural := 16#4D45#; REVISION_ID : natural := 16#0#; CLASS_CODE : natural := 16#068000#; SUBSYSTEM_VENDOR_ID : natural := 16#9B#; SUBSYSTEM_DEVICE_ID : natural := 16#5A91#; BAR_MASK_0 : std_logic_vector(31 downto 0) := x"FF000008"; BAR_MASK_1 : std_logic_vector(31 downto 0) := x"FF000008"; BAR_MASK_2 : std_logic_vector(31 downto 0) := x"FF000000"; BAR_MASK_3 : std_logic_vector(31 downto 0) := x"FF000000"; BAR_MASK_4 : std_logic_vector(31 downto 0) := x"FF000001"; BAR_MASK_5 : std_logic_vector(31 downto 0) := x"FF000001"; PCIE_REQUEST_LENGTH : std_logic_vector(9 downto 0) := "0000100000"; -- 32DW = 128Byte RX_LPM_WIDTHU : integer range 10 DOWNTO 5 := 10; TX_HEADER_LPM_WIDTHU : integer range 10 DOWNTO 5 := 5; TX_DATA_LPM_WIDTHU : integer range 10 DOWNTO 5 := 10 ); PORT( -- Hard IP ports: clk_50 : in std_logic; -- 50 MHz clock for reconfig_clk and cal_blk_clk clk_125 : in std_logic; -- 125 MHz clock for fixed_clk ref_clk : in std_logic; -- 100 MHz reference clock clk_500 : in std_logic; -- 500 Hz clock ext_rst_n : in std_logic; rx_0 : in std_logic; rx_1 : in std_logic; rx_2 : in std_logic; rx_3 : in std_logic; tx_0 : out std_logic; tx_1 : out std_logic; tx_2 : out std_logic; tx_3 : out std_logic; -- Wishbone ports: wb_clk : in std_logic; wb_rst : in std_logic; -- Wishbone master wbm_ack : in std_logic; wbm_dat_i : in std_logic_vector(31 downto 0); wbm_stb : out std_logic; wbm_cyc_o : out std_logic_vector(NR_OF_WB_SLAVES - 1 downto 0); wbm_we : out std_logic; wbm_sel : out std_logic_vector(3 downto 0); wbm_adr : out std_logic_vector(31 downto 0); wbm_dat_o : out std_logic_vector(31 downto 0); wbm_cti : out std_logic_vector(2 downto 0); wbm_tga : out std_logic; -- Wishbone slave wbs_cyc : in std_logic; wbs_stb : in std_logic; wbs_we : in std_logic; wbs_sel : in std_logic_vector(3 downto 0); wbs_adr : in std_logic_vector(31 downto 0); wbs_dat_i : in std_logic_vector(31 downto 0); wbs_cti : in std_logic_vector(2 downto 0); wbs_tga : in std_logic; -- 0: memory, 1: I/O wbs_ack : out std_logic; wbs_err : out std_logic; wbs_dat_o : out std_logic_vector(31 downto 0); -- interrupt irq_req_i : in std_logic_vector(IRQ_WIDTH -1 downto 0); -- error error_timeout : out std_logic; error_cor_ext_rcv : out std_logic_vector(1 downto 0); error_cor_ext_rpl : out std_logic; error_rpl : out std_logic; error_r2c0 : out std_logic; error_msi_num : out std_logic; -- debug port link_train_active : out std_logic ); END COMPONENT; COMPONENT wb_bus GENERIC ( sets : std_logic_vector(3 DOWNTO 0) := "1110"; timeout : integer := 5000 ); PORT ( clk : IN std_logic; rst : IN std_logic; -- Master Bus wbmo_0 : IN wbo_type; wbmi_0 : OUT wbi_type; wbmo_0_cyc : IN std_logic_vector(3 DOWNTO 0); wbmo_1 : IN wbo_type; wbmi_1 : OUT wbi_type; wbmo_1_cyc : IN std_logic_vector(1 DOWNTO 0); wbmo_2 : IN wbo_type; wbmi_2 : OUT wbi_type; wbmo_2_cyc : IN std_logic_vector(2 DOWNTO 0); -- Slave Bus wbso_0 : IN wbi_type; wbsi_0 : OUT wbo_type; wbsi_0_cyc : OUT std_logic; wbso_1 : IN wbi_type; wbsi_1 : OUT wbo_type; wbsi_1_cyc : OUT std_logic; wbso_2 : IN wbi_type; wbsi_2 : OUT wbo_type; wbsi_2_cyc : OUT std_logic; wbso_3 : IN wbi_type; wbsi_3 : OUT wbo_type; wbsi_3_cyc : OUT std_logic; wbso_4 : IN wbi_type; wbsi_4 : OUT wbo_type; wbsi_4_cyc : OUT std_logic ); END COMPONENT; COMPONENT pll_pcie PORT ( areset : IN STD_LOGIC := '0'; inclk0 : IN STD_LOGIC := '0'; c0 : OUT STD_LOGIC ; c1 : OUT STD_LOGIC ; c2 : OUT STD_LOGIC ; c3 : OUT STD_LOGIC ; c4 : OUT STD_LOGIC ; locked : OUT STD_LOGIC ); END COMPONENT; COMPONENT iram_wb GENERIC ( FPGA_FAMILY: family_type := CYCLONE; -- ACEX,CYCLONE,CYCLONE2,CYCLONE3,ARRIA_GX read_only: natural := 0; -- 0=R/W, 1=R/O USEDW_WIDTH: positive := 6; -- 2**(USEDW_WIDTH + 2) bytes LOCATION: string := "iram.hex" -- string shall be empty if no HEX file ); PORT ( clk : IN std_logic; -- Wishbone clock rst : IN std_logic; -- global async high active reset -- Wishbone signals stb_i : IN std_logic; -- request cyc_i : IN std_logic; -- chip select ack_o : OUT std_logic; -- acknowledge err_o : OUT std_logic; -- error we_i : IN std_logic; -- write=1 read=0 sel_i : IN std_logic_vector(3 DOWNTO 0); -- byte enables adr_i : IN std_logic_vector((USEDW_WIDTH + 1) DOWNTO 2); dat_i : IN std_logic_vector(31 DOWNTO 0); -- data in dat_o : OUT std_logic_vector(31 DOWNTO 0) -- data out ); END COMPONENT; COMPONENT sram PORT ( clk66 : IN std_logic; -- 66 MHz rst : IN std_logic; -- global reset signal (asynch) -- local bus stb_i : IN std_logic; ack_o : OUT std_logic; we_i : IN std_logic; -- high active write enable sel_i : IN std_logic_vector(3 DOWNTO 0); -- high active byte enables cyc_i : IN std_logic; dat_o : OUT std_logic_vector(31 DOWNTO 0); dat_i : IN std_logic_vector(31 DOWNTO 0); adr_i : IN std_logic_vector(19 DOWNTO 0); -- pins to sram bwn : OUT std_logic; -- global byte write enable: bwan : OUT std_logic; -- byte a write enable: bwbn : OUT std_logic; -- byte b write enable: adscn : OUT std_logic; -- Synchronous Address Status Controller: . roen : OUT std_logic; -- data port output enable: . ra : OUT std_logic_vector(18 DOWNTO 0); -- address lines: rd_in : IN std_logic_vector(15 DOWNTO 0); -- data lines: rd_out : OUT std_logic_vector(15 DOWNTO 0); -- data lines: rd_oe : OUT std_logic ); END COMPONENT; COMPONENT z126_01_top GENERIC ( SIMULATION : boolean := FALSE; -- true => use the altasmi parallel of an older quartus version (11.1 SP2) the new one can not be simulated -- (only the M25P32 is supported for simulation!!) -- false => use the newest altasmi parallel (13.0) FPGA_FAMILY : family_type := CYCLONE5; -- see SUPPORTED_FPGA_FAMILIES for supported FPGA family types FLASH_TYPE : flash_type := M25P32; -- see SUPPORTED_DEVICES for supported serial flash device types USE_DIRECT_INTERFACE : boolean := TRUE; -- true => the direct interfaces is included and arbitrated with the indirect interface -- false => only the indirect interface is available (reducing resource consumption) USE_REMOTE_UPDATE : boolean := TRUE; -- true => the remote update controller is included and more than one FPGA image can be selected -- false => only the FPGA Fallback Image can be used for FPGA configuration (reducing resource consumption) LOAD_FPGA_IMAGE : boolean := TRUE; -- true => after configuration of the FPGA Fallback Image the FPGA Image is loaded immediately (can only be set when USE_REMOTE_UPDATE = TRUE) -- false => after configuration the FPGA stays in the FPGA Fallback Image, FPGA Image must be loaded by software LOAD_FPGA_IMAGE_ADR : std_logic_vector(23 DOWNTO 0) := (OTHERS=>'0') -- if LOAD_FPGA_IMAGE = TRUE this address is the offset to the FPGA Image in the serial flash ); PORT ( clk_40mhz : IN std_logic; -- serial flash clock (maximum 40 MHz) rst_clk_40mhz : IN std_logic; -- this reset should be a power up reset to -- reduce the reconfiguration (load FPGA Image) time when LOAD_FPGA_IMAGE = TRUE. -- this reset must be deasserted synchronous to the clk_40mhz clk_dir : IN std_logic; -- wishbone clock for direct interface rst_dir : IN std_logic; -- wishbone async high active reset -- this reset must be deasserted synchronous to the clk_dir clk_indi : IN std_logic; -- wishbone clock for indirect interface rst_indi : IN std_logic; -- wishbone async high active reset -- this reset must be deasserted synchronous to the clk_indi board_status : OUT std_logic_vector(1 DOWNTO 0); -- wishbone signals slave interface 0 (direct addressing) wbs_stb_dir : IN std_logic; -- request wbs_ack_dir : OUT std_logic; -- acknoledge wbs_we_dir : IN std_logic; -- write=1 read=0 wbs_sel_dir : IN std_logic_vector(3 DOWNTO 0); -- byte enables wbs_cyc_dir : IN std_logic; -- chip select wbs_dat_o_dir : OUT std_logic_vector(31 DOWNTO 0); -- data out wbs_dat_i_dir : IN std_logic_vector(31 DOWNTO 0); -- data in wbs_adr_dir : IN std_logic_vector(31 DOWNTO 0); -- address wbs_err_dir : OUT std_logic; -- error -- wishbone signals slave interface 1 (indirect addressing) wbs_stb_indi : IN std_logic; -- request wbs_ack_indi : OUT std_logic; -- acknoledge wbs_we_indi : IN std_logic; -- write=1 read=0 wbs_sel_indi : IN std_logic_vector(3 DOWNTO 0); -- byte enables wbs_cyc_indi : IN std_logic; -- chip select wbs_dat_o_indi : OUT std_logic_vector(31 DOWNTO 0); -- data out wbs_dat_i_indi : IN std_logic_vector(31 DOWNTO 0); -- data in wbs_adr_indi : IN std_logic_vector(31 DOWNTO 0); -- address wbs_err_indi : OUT std_logic -- error ); END COMPONENT; COMPONENT wbb2vme_top GENERIC ( A16_REG_MAPPING : boolean := TRUE; -- if true, access to vme slave A16 space goes to vme runtime registers and above 0x800 to sram (compatible to old revisions) -- if false, access to vme slave A16 space goes to sram LONGADD_SIZE : integer range 3 TO 8:=3; USE_LONGADD : boolean := TRUE -- If FALSE, bits (7 DOWNTO 5) of SIGNAL longadd will be allocated to vme_adr_out(31 DOWNTO 29) ); PORT ( clk : IN std_logic; -- 66 MHz rst : IN std_logic; -- global reset signal (asynch) startup_rst : IN std_logic; -- powerup reset postwr : OUT std_logic; -- posted write vme_irq : OUT std_logic_vector(7 DOWNTO 0); -- interrupt request to pci-bus berr_irq : OUT std_logic; -- signal berrn interrupt request locmon_irq : OUT std_logic_vector(1 DOWNTO 0); -- interrupt request location monitor to pci-bus mailbox_irq : OUT std_logic_vector(1 DOWNTO 0); -- interrupt request mailbox to pci-bus dma_irq : OUT std_logic; -- interrupt request dma to pci-bus prevent_sysrst : IN std_logic; -- if "1", sysrst_n_out will not be activated after powerup, -- if "0", sysrst_n_out will be activated if in slot1 and system reset is active (sysc_bit or rst) test_vec : OUT test_vec_type; -- vmectrl slave wbs_stb_i : IN std_logic; wbs_ack_o : OUT std_logic; wbs_err_o : OUT std_logic; wbs_we_i : IN std_logic; wbs_sel_i : IN std_logic_vector(3 DOWNTO 0); wbs_cyc_i : IN std_logic; wbs_adr_i : IN std_logic_vector(31 DOWNTO 0); wbs_dat_o : OUT std_logic_vector(31 DOWNTO 0); wbs_dat_i : IN std_logic_vector(31 DOWNTO 0); wbs_tga_i : IN std_logic_vector(8 DOWNTO 0); -- vmectrl master wbm_ctrl_stb_o : OUT std_logic; wbm_ctrl_ack_i : IN std_logic; wbm_ctrl_err_i : IN std_logic; wbm_ctrl_we_o : OUT std_logic; wbm_ctrl_sel_o : OUT std_logic_vector(3 DOWNTO 0); wbm_ctrl_cyc_sram : OUT std_logic; wbm_ctrl_cyc_pci : OUT std_logic; wbm_ctrl_adr_o : OUT std_logic_vector(31 DOWNTO 0); wbm_ctrl_dat_o : OUT std_logic_vector(31 DOWNTO 0); wbm_ctrl_dat_i : IN std_logic_vector(31 DOWNTO 0); wbm_dma_stb_o : OUT std_logic; wbm_dma_ack_i : IN std_logic; wbm_dma_we_o : OUT std_logic; wbm_dma_cti : OUT std_logic_vector(2 DOWNTO 0); wbm_dma_tga_o : OUT std_logic_vector(8 DOWNTO 0); wbm_dma_err_i : IN std_logic; wbm_dma_sel_o : OUT std_logic_vector(3 DOWNTO 0); wbm_dma_cyc_sram : OUT std_logic; wbm_dma_cyc_vme : OUT std_logic; wbm_dma_cyc_pci : OUT std_logic; wbm_dma_adr_o : OUT std_logic_vector(31 DOWNTO 0); wbm_dma_dat_o : OUT std_logic_vector(31 DOWNTO 0); wbm_dma_dat_i : IN std_logic_vector(31 DOWNTO 0); -- vmebus va : INOUT std_logic_vector(31 DOWNTO 0); -- address vd : INOUT std_logic_vector(31 DOWNTO 0); -- data vam : INOUT std_logic_vector(5 DOWNTO 0); -- address modifier writen : INOUT std_logic; -- write enable iackn : INOUT std_logic; -- Handler's output irq_i_n : IN std_logic_vector(7 DOWNTO 1); -- interrupt request inputs irq_o_n : OUT std_logic_vector(7 DOWNTO 1); -- interrupt request outputs as_o_n : OUT std_logic; -- address strobe out as_oe_n : OUT std_logic; -- address strobe output enable as_i_n : IN std_logic; -- address strobe in sysresn : OUT std_logic; -- system reset out sysresin : IN std_logic; -- system reset in ds_o_n : OUT std_logic_vector(1 DOWNTO 0); -- data strobe outputs ds_i_n : IN std_logic_vector(1 DOWNTO 0); -- data strobe inputs ds_oe_n : OUT std_logic; -- data strobe output enable berrn : OUT std_logic; -- bus error out berrin : IN std_logic; -- bus error in dtackn : OUT std_logic; -- dtack out dtackin : IN std_logic; -- dtack in slot01n : OUT std_logic; -- indicates whether controller has detected position in slot 1 (low active) sysfail_i_n : IN std_logic; -- system failure interrupt input sysfail_o_n : OUT std_logic; -- system failure interrupt output bbsyn : OUT std_logic; -- bus busy out bbsyin : IN std_logic; -- bus busy in bclr_i_n : IN std_logic; -- bus clear input bclr_o_n : OUT std_logic; -- bus clear output retry_i_n : IN std_logic; -- bus retry input retry_o_n : OUT std_logic; -- bus retry output retry_oe_n : OUT std_logic; -- bus retry output enable br_i_n : IN std_logic_vector(3 DOWNTO 0); -- bus request inputs br_o_n : OUT std_logic_vector(3 DOWNTO 0); -- bus request outputs iackin : IN std_logic; -- Interrupter's input iackoutn : OUT std_logic; -- Interrupter's output acfailn : IN std_logic; -- from Power Supply bg_i_n : IN std_logic_vector(3 DOWNTO 0); -- bus grant input bg_o_n : OUT std_logic_vector(3 DOWNTO 0); -- bus grant output ga : IN std_logic_vector(4 DOWNTO 0); -- geographical addresses gap : IN std_logic; -- geographical addresses parity -- vme status signals vme_berr : OUT std_logic; -- indicates vme bus error (=MSTR(2)), must be cleared by sw vme_mstr_busy : OUT std_logic; -- indicates vme bus master is active --data bus bus control signals for vmebus drivers d_dir : OUT std_logic; -- external driver control data direction (1: drive to vmebus 0: drive to fpga) d_oe_n : OUT std_logic; -- external driver control data output enable low active am_dir : OUT std_logic; -- external driver control address modifier direction (1: drive to vmebus 0: drive to fpga) am_oe_n : OUT std_logic; -- external driver control address modifier output enable low activ a_dir : OUT std_logic; -- external driver control address direction (1: drive to vmebus 0: drive to fpga) a_oe_n : OUT std_logic; -- external driver control address output enable low activ v2p_rst : OUT std_logic -- Reset between VMEbus and Host CPU ); END COMPONENT; function f_sel_pcie_lanes(simulation : boolean) return std_logic_vector is begin if (simulation) then return "001"; -- x1 for simulation else return "100"; -- x4 for synthesis end if; end function; function f_sel_cham_hex(simulation : boolean) return string is begin if (simulation) then return "../../A25_VME/Source/chameleon.hex"; else return "../Source/chameleon.hex"; end if; end function; function f_sel_sim_bool(simulation : boolean) return std_logic is begin if (simulation) then return '1'; else return '0'; end if; end function; CONSTANT CONST_500HZ : integer := 66667; -- half 500Hz clock period counter value at 66MHz SIGNAL sys_clk : std_logic; -- system clock 66 MHz SIGNAL sys_rst : std_logic; -- system async reset SIGNAL rst_33 : std_logic; -- reset synchronized to clk_33 SIGNAL clk_33 : std_logic; -- 33 MHz clock for 16z066 SIGNAL clk_50 : std_logic; -- 50 MHz clock for reconfig_clk and cal_blk_clk SIGNAL clk_125 : std_logic; -- 125 MHz clock for fixed_clk SIGNAL clk_500 : std_logic; -- 500 Hz clock SIGNAL cnt_500hz : unsigned(16 downto 0); -- MASTER SIGNALS SIGNAL wbmo_0 : wbo_type; SIGNAL wbmi_0 : wbi_type; SIGNAL wbmo_0_cyc : std_logic_vector(3 DOWNTO 0); SIGNAL wbmo_0_cyc_int : std_logic_vector(9 DOWNTO 0); SIGNAL wbmo_1 : wbo_type; SIGNAL wbmi_1 : wbi_type; SIGNAL wbmo_1_cyc : std_logic_vector(1 DOWNTO 0); SIGNAL wbmo_2 : wbo_type; SIGNAL wbmi_2 : wbi_type; SIGNAL wbmo_2_cyc : std_logic_vector(2 DOWNTO 0); -- SLAVE SIGNALS SIGNAL wbso_0 : wbi_type; SIGNAL wbsi_0 : wbo_type; SIGNAL wbsi_0_cyc : std_logic; SIGNAL wbso_1 : wbi_type; SIGNAL wbsi_1 : wbo_type; SIGNAL wbsi_1_cyc : std_logic; SIGNAL wbso_2 : wbi_type; SIGNAL wbsi_2 : wbo_type; SIGNAL wbsi_2_cyc : std_logic; SIGNAL wbso_3 : wbi_type; SIGNAL wbsi_3 : wbo_type; SIGNAL wbsi_3_cyc : std_logic; SIGNAL wbso_4 : wbi_type; SIGNAL wbsi_4 : wbo_type; SIGNAL wbsi_4_cyc : std_logic; SIGNAL pll_locked : std_logic; SIGNAL sr_d_oe : std_logic; SIGNAL sr_d_out : std_logic_vector(15 DOWNTO 0); SIGNAL sr_d_in : std_logic_vector(15 DOWNTO 0); SIGNAL vme_irq : std_logic_vector(7 DOWNTO 0); -- interrupt request to pci-bus SIGNAL berr_irq : std_logic; -- signal berrn interrupt request SIGNAL locmon_irq : std_logic_vector(1 DOWNTO 0); -- interrupt request location monitor to pci-bus SIGNAL mailbox_irq : std_logic_vector(1 DOWNTO 0); -- interrupt request mailbox to pci-bus SIGNAL mailbox_irq_i : std_logic; SIGNAL dma_irq : std_logic; SIGNAL slot01n : std_logic; SIGNAL pll_locked_inv : std_logic; SIGNAL startup_rst : std_logic:='1'; SIGNAL porst : std_logic; SIGNAL porst_n_q : std_logic:='0'; SIGNAL porst_n : std_logic:='0'; SIGNAL vme_berr : std_logic; SIGNAL vme_mstr_busy : std_logic; SIGNAL led_cnt : std_logic_vector(17 DOWNTO 0); -- 2^18 = 3.9 ms SIGNAL v2p_rst : std_logic; -- high active signals on A25 SIGNAL vme_irq_o_n : std_logic_vector(7 DOWNTO 1); SIGNAL vme_as_oe_n : std_logic; SIGNAL vme_retry_oe_n : std_logic; SIGNAL vme_sysres_o_n : std_logic; SIGNAL vme_ds_oe_n : std_logic; SIGNAL vme_scon_n : std_logic; SIGNAL vme_sysfail_o_n : std_logic; SIGNAL vme_bbsy_o_n : std_logic; SIGNAL vme_dtack_o_n : std_logic; SIGNAL vme_berr_o_n : std_logic; SIGNAL vme_br_o_n : std_logic_vector(3 DOWNTO 0); BEGIN vme_irq_o <= NOT vme_irq_o_n ; vme_as_oe <= NOT vme_as_oe_n ; vme_retry_oe <= NOT vme_retry_oe_n ; vme_sysres_o <= NOT vme_sysres_o_n ; vme_ds_oe <= NOT vme_ds_oe_n ; vme_scon <= NOT vme_scon_n ; vme_sysfail_o <= NOT vme_sysfail_o_n; vme_bbsy_o <= NOT vme_bbsy_o_n ; vme_br_o <= NOT vme_br_o_n ; vme_berr_o <= NOT vme_berr_o_n; vme_dtack_o <= NOT vme_dtack_o_n; led_red_n <= NOT vme_berr; -- led_green_n <= slot01; vme_sysclk <= clk_16mhz; vme_scon_n <= slot01n; v2p_rstn <= '0' WHEN v2p_rst = '1' ELSE 'Z'; -- counter for extending vme master active pulses to at least 3 ms PROCESS(sys_clk, sys_rst) BEGIN IF sys_rst = '1' THEN led_cnt <= (OTHERS => '0'); led_green_n <= '1'; ELSIF sys_clk'event AND sys_clk = '1' THEN IF vme_mstr_busy = '1' THEN -- if master is active, start counter to extend pulse for 3 ms led_cnt <= (OTHERS => '1'); led_green_n <= '0'; -- switch on LED ELSIF led_cnt = 0 THEN -- is 3 ms over? led_cnt <= (OTHERS => '0'); led_green_n <= '1'; -- switch off LED ELSE led_cnt <= led_cnt - '1'; -- count for 3 ms led_green_n <= '0'; END IF; END IF; END PROCESS; pll_locked_inv <= NOT pll_locked; startup_rst <= pll_locked_inv; wbso_3.err <= '0'; wbso_4.err <= '0'; wbmo_0.bte <= "00"; wbmo_1.bte <= "00"; wbmo_2.bte <= "00"; wbmo_1.cti <= "000"; fpga_test(1) <= 'Z'; fpga_test(2) <= 'Z'; fpga_test(3) <= 'Z'; fpga_test(4) <= 'Z'; fpga_test(5) <= 'Z'; -- generate power on reset in order to start application fpga load as early as possible PROCESS (clk_16mhz) BEGIN IF clk_16mhz'EVENT AND clk_16mhz = '1' THEN porst_n_q <= '1'; porst_n <= porst_n_q; END IF; END PROCESS; porst <= NOT porst_n; -- synchronize reset to 33 MHz clock PROCESS(clk_33, pll_locked) BEGIN IF pll_locked = '0' THEN rst_33 <= '1'; ELSIF clk_33'EVENT AND clk_33 = '1' THEN rst_33 <= '0'; END IF; END PROCESS; PROCESS(sys_clk, hreset_n, pll_locked) BEGIN IF hreset_n = '0' OR pll_locked = '0' THEN sys_rst <= '1'; ELSIF sys_clk'EVENT AND sys_clk = '1' THEN sys_rst <= '0'; END IF; END PROCESS; PROCESS(sys_clk, sys_rst) BEGIN IF sys_rst = '1' THEN cnt_500hz <= (others => '0'); clk_500 <= '0'; ELSIF sys_clk'EVENT AND sys_clk = '1' THEN IF cnt_500hz = to_unsigned(0, cnt_500hz'length) THEN cnt_500hz <= to_unsigned(CONST_500HZ, cnt_500hz'length); clk_500 <= NOT clk_500; ELSE cnt_500hz <= cnt_500hz - 1; END IF; END IF; END PROCESS; pll: pll_pcie PORT MAP ( areset => porst, inclk0 => clk_16mhz, -- 16 MHz c0 => clk_125, -- 125 MHz c1 => clk_50, -- 50 MHz c2 => sys_clk, -- 66 MHz c3 => sr_clk, -- 66 MHz phase shifted to sys_clk c4 => clk_33, -- 33 MHz locked => pll_locked ); wbmo_0_cyc <= -- +-Module Name--------------+-cyc-+---offset-+-----size-+-bar-+ "0001" WHEN wbmo_0_cyc_int(0) = '1' ELSE -- | Chameleon Table | 0 | 0 | 200 | 0 | "0010" WHEN wbmo_0_cyc_int(1) = '1' ELSE -- | 16Z126_SERFLASH | 1 | 200 | 20 | 0 | "0100" WHEN wbmo_0_cyc_int(2) = '1' ELSE -- | 16z002-01 VME | 2 | 10000 | 200 | 0 | "0100" WHEN wbmo_0_cyc_int(3) = '1' ELSE -- |16z002-01 VME A16D16 | 3 | 20000 | 10000 | 0 | "0100" WHEN wbmo_0_cyc_int(4) = '1' ELSE -- |16z002-01 VME A16D32 | 4 | 30000 | 10000 | 0 | "1000" WHEN wbmo_0_cyc_int(5) = '1' ELSE -- | 16z002-01 VME SRAM | 5 | 0 | 100000 | 1 | "0100" WHEN wbmo_0_cyc_int(6) = '1' ELSE -- |16z002-01 VME A24D16 | 6 | 0 | 1000000 | 2 | "0100" WHEN wbmo_0_cyc_int(7) = '1' ELSE -- |16z002-01 VME A24D32 | 7 | 1000000 | 1000000 | 2 | "0100" WHEN wbmo_0_cyc_int(8) = '1' ELSE -- | 16z002-01 VME A32 | 8 | 0 | 20000000 | 3 | "0100" WHEN wbmo_0_cyc_int(9) = '1' ELSE -- |16z002-01 VME CR/CSR | 9 | 0 | 01000000 | 4 | "0000"; -- +--------------------------+-----+----------+----------+-----+ wbmo_1.tga <= (OTHERS => '0'); wbmo_0.tga(7) <= '0'; -- indicate access from PCIE wbmo_0.tga(8) <= '0'; -- unused wbmo_0.tga(6 DOWNTO 0) <= -- +-Module Name--------------+-cyc-+---offset-+-----size-+-bar-+ CONST_VME_A24D16 WHEN wbmo_0_cyc_int(6) = '1' ELSE -- |16z002-01 VME A24D16 | 6 | 0 | 1000000 | 2 | CONST_VME_A16D16 WHEN wbmo_0_cyc_int(3) = '1' ELSE -- |16z002-01 VME A16D16 | 3 | 20000 | 10000 | 0 | CONST_VME_A16D32 WHEN wbmo_0_cyc_int(4) = '1' ELSE -- |16z002-01 VME A16D32 | 4 | 30000 | 10000 | 0 | CONST_VME_IACK WHEN wbmo_0_cyc_int(2) = '1' AND wbmo_0.adr(8) = '1' ELSE -- |16z002-01 VME IACK | 2 | 10100 | 10 | 0 | CONST_VME_REGS WHEN wbmo_0_cyc_int(2) = '1' ELSE -- |16z002-01 VME REGS | 2 | 10000 | 100 | 0 | CONST_VME_A32D32 WHEN wbmo_0_cyc_int(8) = '1' ELSE -- |16z002-01 VME A32 | 8 | 0 | 20000000 | 3 | CONST_VME_A24D32 WHEN wbmo_0_cyc_int(7) = '1' ELSE -- |16z002-01 VME A24D32 | 7 | 1000000 | 1000000 | 2 | CONST_VME_CRCSR WHEN wbmo_0_cyc_int(9) = '1' ELSE -- |16z002-01 VME CRCSR | 9 | 0 | 1000000 | 4 | (OTHERS => '0'); -- +--------------------------+-----+----------+----------+-----+ pcie: ip_16z091_01_top GENERIC MAP ( SIMULATION => f_sel_sim_bool(SIMULATION), FPGA_FAMILY => CYCLONE4, IRQ_WIDTH => 13, USE_LANES => f_sel_pcie_lanes(SIMULATION), NR_OF_WB_SLAVES => NR_OF_WB_SLAVES, NR_OF_BARS_USED => 5, VENDOR_ID => 16#1A88#, DEVICE_ID => 16#4D45#, REVISION_ID => 16#1#, CLASS_CODE => 16#068000#, SUBSYSTEM_VENDOR_ID => 16#D5#, SUBSYSTEM_DEVICE_ID => 16#5A91#, BAR_MASK_0 => x"FFFC0000", -- 256k BAR_MASK_1 => x"FFF00000", -- 1M BAR_MASK_2 => x"FE000000", -- 32M BAR_MASK_3 => x"E0000000", -- 512M BAR_MASK_4 => x"FF000000", -- 16M BAR_MASK_5 => x"FFFFF000", PCIE_REQUEST_LENGTH => "0001000000", -- 64DW = 256Byte RX_LPM_WIDTHU => 10, TX_HEADER_LPM_WIDTHU => 5, TX_DATA_LPM_WIDTHU => 7 ) PORT MAP ( -- Hard IP ports: clk_50 => clk_50, clk_125 => clk_125, ref_clk => refclk, clk_500 => clk_500, ext_rst_n => hreset_n, rx_0 => pcie_rx(0), rx_1 => pcie_rx(1), rx_2 => pcie_rx(2), rx_3 => pcie_rx(3), tx_0 => pcie_tx(0), tx_1 => pcie_tx(1), tx_2 => pcie_tx(2), tx_3 => pcie_tx(3), wb_clk => sys_clk, wb_rst => sys_rst, wbm_ack => wbmi_0.ack, wbm_dat_i => wbmi_0.dat, wbm_stb => wbmo_0.stb, wbm_cyc_o => wbmo_0_cyc_int, wbm_we => wbmo_0.we , wbm_sel => wbmo_0.sel, wbm_adr => wbmo_0.adr, wbm_dat_o => wbmo_0.dat, wbm_cti => wbmo_0.cti, wbm_tga => open, wbs_cyc => wbsi_4_cyc, wbs_stb => wbsi_4.stb, wbs_we => wbsi_4.we , wbs_sel => wbsi_4.sel, wbs_adr => wbsi_4.adr, wbs_dat_i => wbsi_4.dat, wbs_cti => wbsi_4.cti, wbs_tga => wbsi_4.tga(0), wbs_ack => wbso_4.ack, wbs_err => open, wbs_dat_o => wbso_4.dat, irq_req_i(0) => vme_irq(0) , irq_req_i(1) => vme_irq(1) , irq_req_i(2) => vme_irq(2) , irq_req_i(3) => vme_irq(3) , irq_req_i(4) => vme_irq(4) , irq_req_i(5) => vme_irq(5) , irq_req_i(6) => vme_irq(6) , irq_req_i(7) => vme_irq(7) , irq_req_i(8) => berr_irq , irq_req_i(9) => dma_irq , irq_req_i(10) => locmon_irq(0) , irq_req_i(11) => locmon_irq(1) , irq_req_i(12) => mailbox_irq_i , error_timeout => open, error_cor_ext_rcv => open, error_cor_ext_rpl => open, error_rpl => open, error_r2c0 => open, error_msi_num => open, link_train_active => open ); mailbox_irq_i <= mailbox_irq(0) OR mailbox_irq(1); cham: iram_wb GENERIC MAP ( FPGA_FAMILY => FPGA_FAMILY, read_only => 1, USEDW_WIDTH => 9, -- 0x200 = 512 LOCATION => f_sel_cham_hex(SIMULATION) ) PORT MAP ( clk => sys_clk, rst => sys_rst, stb_i => wbsi_0.stb, cyc_i => wbsi_0_cyc, ack_o => wbso_0.ack, err_o => wbso_0.err, we_i => wbsi_0.we, sel_i => wbsi_0.sel, adr_i => wbsi_0.adr(10 DOWNTO 2), dat_i => wbsi_0.dat, dat_o => wbso_0.dat ); srami: sram PORT MAP ( clk66 => sys_clk, rst => sys_rst, stb_i => wbsi_3.stb, ack_o => wbso_3.ack, we_i => wbsi_3.we, sel_i => wbsi_3.sel, cyc_i => wbsi_3_cyc, dat_o => wbso_3.dat, dat_i => wbsi_3.dat, adr_i => wbsi_3.adr(19 DOWNTO 0), bwn => sr_bw_n, bwan => sr_bwa_n, bwbn => sr_bwb_n, adscn => sr_adsc_n, roen => sr_oe_n, ra => sr_a, rd_in => sr_d_in, rd_out => sr_d_out, rd_oe => sr_d_oe ); sr_cs1_n <= '0'; --sys_rst; -- selected if FPGA reset is released srdat: PROCESS(sr_d_oe, sr_d_out, sr_d) BEGIN IF sr_d_oe = '1' THEN sr_d <= sr_d_out; sr_d_in <= sr_d; ELSE sr_d <= (OTHERS => 'Z'); sr_d_in <= sr_d; END IF; END PROCESS; sflash: z126_01_top GENERIC MAP ( SIMULATION => SIMULATION, FPGA_FAMILY => CYCLONE4, FLASH_TYPE => M25P32, USE_DIRECT_INTERFACE => FALSE, USE_REMOTE_UPDATE => TRUE, LOAD_FPGA_IMAGE => TRUE, LOAD_FPGA_IMAGE_ADR => X"200100" ) PORT MAP ( clk_40mhz => clk_33, rst_clk_40mhz => rst_33, clk_dir => sys_clk, rst_dir => sys_rst, clk_indi => sys_clk, rst_indi => sys_rst, board_status => open, wbs_stb_dir => '0', wbs_ack_dir => OPEN, wbs_we_dir => '0', wbs_sel_dir => (OTHERS => '0'), wbs_cyc_dir => '0', wbs_dat_o_dir => OPEN, wbs_dat_i_dir => (OTHERS => '0'), wbs_adr_dir => (OTHERS => '0'), wbs_err_dir => OPEN, -- wishbone signals slave interface 1 (indirect addressing) wbs_stb_indi => wbsi_1.stb, wbs_ack_indi => wbso_1.ack, wbs_we_indi => wbsi_1.we, wbs_sel_indi => wbsi_1.sel, wbs_cyc_indi => wbsi_1_cyc, wbs_dat_o_indi => wbso_1.dat, wbs_dat_i_indi => wbsi_1.dat, wbs_adr_indi => wbsi_1.adr, wbs_err_indi => wbso_1.err ); vme: wbb2vme_top GENERIC MAP( A16_REG_MAPPING => true, LONGADD_SIZE => 3, USE_LONGADD => TRUE ) PORT MAP ( clk => sys_clk, rst => sys_rst, startup_rst => startup_rst, postwr => open, vme_irq => vme_irq , berr_irq => berr_irq, locmon_irq => locmon_irq , mailbox_irq => mailbox_irq, dma_irq => dma_irq , prevent_sysrst => '0', test_vec => open, -- vmectrl slave wbs_stb_i => wbsi_2.stb, wbs_ack_o => wbso_2.ack, wbs_err_o => wbso_2.err, wbs_we_i => wbsi_2.we, wbs_sel_i => wbsi_2.sel, wbs_cyc_i => wbsi_2_cyc, wbs_adr_i => wbsi_2.adr, wbs_dat_o => wbso_2.dat, wbs_dat_i => wbsi_2.dat, wbs_tga_i => wbsi_2.tga, -- vmectrl master wbm_ctrl_stb_o => wbmo_1.stb, wbm_ctrl_ack_i => wbmi_1.ack, wbm_ctrl_err_i => wbmi_1.err, wbm_ctrl_we_o => wbmo_1.we, wbm_ctrl_sel_o => wbmo_1.sel, wbm_ctrl_cyc_sram => wbmo_1_cyc(0), wbm_ctrl_cyc_pci => wbmo_1_cyc(1), wbm_ctrl_adr_o => wbmo_1.adr, wbm_ctrl_dat_o => wbmo_1.dat, wbm_ctrl_dat_i => wbmi_1.dat, wbm_dma_stb_o => wbmo_2.stb, wbm_dma_ack_i => wbmi_2.ack, wbm_dma_we_o => wbmo_2.we, wbm_dma_cti => wbmo_2.cti, wbm_dma_tga_o => wbmo_2.tga, wbm_dma_err_i => wbmi_2.err, wbm_dma_sel_o => wbmo_2.sel, wbm_dma_cyc_vme => wbmo_2_cyc(0), wbm_dma_cyc_sram => wbmo_2_cyc(1), wbm_dma_cyc_pci => wbmo_2_cyc(2), wbm_dma_adr_o => wbmo_2.adr, wbm_dma_dat_o => wbmo_2.dat, wbm_dma_dat_i => wbmi_2.dat, va => vme_a, vd => vme_d, vam => vme_am, writen => vme_write_n, iackn => vme_iack_n, irq_i_n => vme_irq_i_n, irq_o_n => vme_irq_o_n, as_o_n => vme_as_o_n, as_oe_n => vme_as_oe_n, as_i_n => vme_as_i_n, sysresn => vme_sysres_o_n, sysresin => vme_sysres_i_n, ds_o_n => vme_ds_o_n, ds_i_n => vme_ds_i_n, ds_oe_n => vme_ds_oe_n, berrn => vme_berr_o_n, berrin => vme_berr_i_n, dtackn => vme_dtack_o_n, dtackin => vme_dtack_i_n, slot01n => slot01n, sysfail_i_n => vme_sysfail_i_n, sysfail_o_n => vme_sysfail_o_n, bbsyn => vme_bbsy_o_n, bbsyin => vme_bbsy_i_n, bclr_i_n => vme_bclr_i_n, bclr_o_n => vme_bclr_o_n, retry_i_n => vme_retry_i_n , retry_o_n => vme_retry_o_n , retry_oe_n => vme_retry_oe_n , br_i_n => vme_br_i_n, br_o_n => vme_br_o_n, iackin => vme_iack_i_n, iackoutn => vme_iack_o_n, acfailn => vme_acfail_i_n, bg_i_n => vme_bg_i_n, bg_o_n => vme_bg_o_n, ga => vme_ga, gap => vme_gap, vme_berr => vme_berr, vme_mstr_busy => vme_mstr_busy, d_dir => vme_d_dir , d_oe_n => vme_d_oe_n , am_dir => vme_am_dir , am_oe_n => vme_am_oe_n, a_dir => vme_a_dir , a_oe_n => vme_a_oe_n , v2p_rst => v2p_rst ); wbb : wb_bus GENERIC MAP ( sets => sets, timeout => timeout ) PORT MAP ( clk => sys_clk, rst => sys_rst, wbmo_0 => wbmo_0, wbmi_0 => wbmi_0, wbmo_0_cyc => wbmo_0_cyc, wbmo_1 => wbmo_1, wbmi_1 => wbmi_1, wbmo_1_cyc => wbmo_1_cyc, wbmo_2 => wbmo_2, wbmi_2 => wbmi_2, wbmo_2_cyc => wbmo_2_cyc, wbso_0 => wbso_0, wbsi_0 => wbsi_0, wbsi_0_cyc => wbsi_0_cyc, wbso_1 => wbso_1, wbsi_1 => wbsi_1, wbsi_1_cyc => wbsi_1_cyc, wbso_2 => wbso_2, wbsi_2 => wbsi_2, wbsi_2_cyc => wbsi_2_cyc, wbso_3 => wbso_3, wbsi_3 => wbsi_3, wbsi_3_cyc => wbsi_3_cyc, wbso_4 => wbso_4, wbsi_4 => wbsi_4, wbsi_4_cyc => wbsi_4_cyc ); ------------------------------------------------------------------------------------------------------------- END A25_top_arch; -- CONFIGURATION wbm_cfg OF pcies_wbm_ctrl IS -- FOR pcies_wbm_ctrl_arch -- FOR wb_adr_dec_inst : pcies_wb_adr_dec -- USE ENTITY work.pcies_wb_adr_dec(wb_adr_dec_arch); -- END FOR; -- END FOR; -- END CONFIGURATION wbm_cfg; -- -- CONFIGURATION pcies_wbm_cfg OF pcies_wbm IS -- FOR pcies_wbm_arch -- FOR wbm : pcies_wbm_ctrl -- USE CONFIGURATION work.wbm_cfg; -- END FOR; -- END FOR; -- END CONFIGURATION pcies_wbm_cfg; -- -- CONFIGURATION pcies2wbb_cfg OF pcies2wbb_top IS -- FOR pcies2wbb_top_arch -- FOR pcies_wbm_i : pcies_wbm -- USE CONFIGURATION work.pcies_wbm_cfg; -- END FOR; -- END FOR; -- END CONFIGURATION pcies2wbb_cfg; -- -- CONFIGURATION top_cfg of A25_top IS -- FOR A25_top_arch -- FOR pcie : pcies2wbb_top -- USE CONFIGURATION work.pcies2wbb_cfg; -- END FOR; -- END FOR; -- END CONFIGURATION top_cfg; -- Configurations for 16z091-01 address decoder CONFIGURATION z091_01_wb_master_cfg OF z091_01_wb_master IS FOR z091_01_wb_master_arch FOR z091_01_wb_adr_dec_comp : z091_01_wb_adr_dec USE ENTITY work.z091_01_wb_adr_dec(a25_arch); END FOR; END FOR; END CONFIGURATION z091_01_wb_master_cfg; CONFIGURATION ip_16z091_01_cfg OF ip_16z091_01 IS FOR ip_16z091_01_arch FOR wb_master_comp : z091_01_wb_master USE CONFIGURATION work.z091_01_wb_master_cfg; END FOR; END FOR; END CONFIGURATION ip_16z091_01_cfg; CONFIGURATION ip_16z091_01_top_cfg OF ip_16z091_01_top IS FOR ip_16z091_01_top_arch FOR ip_16z091_01_comp : ip_16z091_01 USE CONFIGURATION work.ip_16z091_01_cfg; END FOR; END FOR; END CONFIGURATION ip_16z091_01_top_cfg; CONFIGURATION top_cfg OF A25_top IS FOR A25_top_arch FOR pcie : ip_16z091_01_top USE CONFIGURATION work.ip_16z091_01_top_cfg; END FOR; END FOR; END CONFIGURATION top_cfg;
library ieee; use ieee.std_logic_1164.all; use ieee.numeric_std.all; entity create_opcode is PORT ( COL_A : IN STD_LOGIC_VECTOR(2 DOWNTO 0); COL_B : IN STD_LOGIC_VECTOR(2 DOWNTO 0); COL_C : IN STD_LOGIC_VECTOR(2 DOWNTO 0); COL_D : IN STD_LOGIC_VECTOR(2 DOWNTO 0); COL_E : IN STD_LOGIC_VECTOR(2 DOWNTO 0); COL_W : IN STD_LOGIC_VECTOR(2 DOWNTO 0); W_EN : IN STD_LOGIC; --OUTPUTS OF READS OPCODE_0 : OUT STD_LOGIC_VECTOR (5 DOWNTO 0); OPCODE_1 : OUT STD_LOGIC_VECTOR (5 DOWNTO 0); OPCODE_2 : OUT STD_LOGIC_VECTOR (5 DOWNTO 0); OPCODE_3 : OUT STD_LOGIC_VECTOR (5 DOWNTO 0); OPCODE_4 : OUT STD_LOGIC_VECTOR (5 DOWNTO 0); OPCODE_5 : OUT STD_LOGIC_VECTOR (5 DOWNTO 0); OPCODE_6 : OUT STD_LOGIC_VECTOR (5 DOWNTO 0); OPCODE_7 : OUT STD_LOGIC_VECTOR (5 DOWNTO 0) ); end; architecture gen of create_opcode is begin OPCODE_0(5) <= not(COL_A(2)) and not(COL_A(1)) and not(COL_A(0)); OPCODE_1(5) <= not(COL_A(2)) and not(COL_A(1)) and (COL_A(0)); OPCODE_2(5) <= not(COL_A(2)) and (COL_A(1)) and not(COL_A(0)); OPCODE_3(5) <= not(COL_A(2)) and (COL_A(1)) and (COL_A(0)); OPCODE_4(5) <= (COL_A(2)) and not(COL_A(1)) and not(COL_A(0)); OPCODE_5(5) <= (COL_A(2)) and not(COL_A(1)) and (COL_A(0)); OPCODE_6(5) <= (COL_A(2)) and (COL_A(1)) and not(COL_A(0)); OPCODE_7(5) <= (COL_A(2)) and (COL_A(1)) and (COL_A(0)); OPCODE_0(4) <= not(COL_B(2)) and not(COL_B(1)) and not(COL_B(0)); OPCODE_1(4) <= not(COL_B(2)) and not(COL_B(1)) and (COL_B(0)); OPCODE_2(4) <= not(COL_B(2)) and (COL_B(1)) and not(COL_B(0)); OPCODE_3(4) <= not(COL_B(2)) and (COL_B(1)) and (COL_B(0)); OPCODE_4(4) <= (COL_B(2)) and not(COL_B(1)) and not(COL_B(0)); OPCODE_5(4) <= (COL_B(2)) and not(COL_B(1)) and (COL_B(0)); OPCODE_6(4) <= (COL_B(2)) and (COL_B(1)) and not(COL_B(0)); OPCODE_7(4) <= (COL_B(2)) and (COL_B(1)) and (COL_B(0)); OPCODE_0(3) <= not(COL_C(2)) and not(COL_C(1)) and not(COL_C(0)); OPCODE_1(3) <= not(COL_C(2)) and not(COL_C(1)) and (COL_C(0)); OPCODE_2(3) <= not(COL_C(2)) and (COL_C(1)) and not(COL_C(0)); OPCODE_3(3) <= not(COL_C(2)) and (COL_C(1)) and (COL_C(0)); OPCODE_4(3) <= (COL_C(2)) and not(COL_C(1)) and not(COL_C(0)); OPCODE_5(3) <= (COL_C(2)) and not(COL_C(1)) and (COL_C(0)); OPCODE_6(3) <= (COL_C(2)) and (COL_C(1)) and not(COL_C(0)); OPCODE_7(3) <= (COL_C(2)) and (COL_C(1)) and (COL_C(0)); OPCODE_0(2) <= not(COL_D(2)) and not(COL_D(1)) and not(COL_D(0)); OPCODE_1(2) <= not(COL_D(2)) and not(COL_D(1)) and (COL_D(0)); OPCODE_2(2) <= not(COL_D(2)) and (COL_D(1)) and not(COL_D(0)); OPCODE_3(2) <= not(COL_D(2)) and (COL_D(1)) and (COL_D(0)); OPCODE_4(2) <= (COL_D(2)) and not(COL_D(1)) and not(COL_D(0)); OPCODE_5(2) <= (COL_D(2)) and not(COL_D(1)) and (COL_D(0)); OPCODE_6(2) <= (COL_D(2)) and (COL_D(1)) and not(COL_D(0)); OPCODE_7(2) <= (COL_D(2)) and (COL_D(1)) and (COL_D(0)); OPCODE_0(1) <= not(COL_E(2)) and not(COL_E(1)) and not(COL_E(0)); OPCODE_1(1) <= not(COL_E(2)) and not(COL_E(1)) and (COL_E(0)); OPCODE_2(1) <= not(COL_E(2)) and (COL_E(1)) and not(COL_E(0)); OPCODE_3(1) <= not(COL_E(2)) and (COL_E(1)) and (COL_E(0)); OPCODE_4(1) <= (COL_E(2)) and not(COL_E(1)) and not(COL_E(0)); OPCODE_5(1) <= (COL_E(2)) and not(COL_E(1)) and (COL_E(0)); OPCODE_6(1) <= (COL_E(2)) and (COL_E(1)) and not(COL_E(0)); OPCODE_7(1) <= (COL_E(2)) and (COL_E(1)) and (COL_E(0)); OPCODE_0(0) <= (not(COL_W(2)) and not(COL_W(1)) and not(COL_W(0))) and W_EN; OPCODE_1(0) <= (not(COL_W(2)) and not(COL_W(1)) and (COL_W(0))) and W_EN; OPCODE_2(0) <= (not(COL_W(2)) and (COL_W(1)) and not(COL_W(0))) and W_EN; OPCODE_3(0) <= (not(COL_W(2)) and (COL_W(1)) and (COL_W(0))) and W_EN; OPCODE_4(0) <= ((COL_W(2)) and not(COL_W(1)) and not(COL_W(0))) and W_EN; OPCODE_5(0) <= ((COL_W(2)) and not(COL_W(1)) and (COL_W(0))) and W_EN; OPCODE_6(0) <= ((COL_W(2)) and (COL_W(1)) and not(COL_W(0))) and W_EN; OPCODE_7(0) <= ((COL_W(2)) and (COL_W(1)) and (COL_W(0))) and W_EN; -- process (COL_A, COL_B, COL_C, COL_D, COL_E, COL_W, W_EN) begin -- --assigning address A to column -- if (COL_A = 0) then -- OPCODE_0(5) <= '1'; -- OPCODE_1(5) <= '0'; -- OPCODE_2(5) <= '0'; -- OPCODE_3(5) <= '0'; -- OPCODE_4(5) <= '0'; -- OPCODE_5(5) <= '0'; -- OPCODE_6(5) <= '0'; -- OPCODE_7(5) <= '0'; -- elsif (COL_A = 1) then -- OPCODE_0(5) <= '0'; -- OPCODE_1(5) <= '1'; -- OPCODE_2(5) <= '0'; -- OPCODE_3(5) <= '0'; -- OPCODE_4(5) <= '0'; -- OPCODE_5(5) <= '0'; -- OPCODE_6(5) <= '0'; -- OPCODE_7(5) <= '0'; -- elsif (COL_A = 2) then -- OPCODE_0(5) <= '0'; -- OPCODE_1(5) <= '0'; -- OPCODE_2(5) <= '1'; -- OPCODE_3(5) <= '0'; -- OPCODE_4(5) <= '0'; -- OPCODE_5(5) <= '0'; -- OPCODE_6(5) <= '0'; -- OPCODE_7(5) <= '0'; -- elsif (COL_A = 3) then -- OPCODE_0(5) <= '0'; -- OPCODE_1(5) <= '0'; -- OPCODE_2(5) <= '0'; -- OPCODE_3(5) <= '1'; -- OPCODE_4(5) <= '0'; -- OPCODE_5(5) <= '0'; -- OPCODE_6(5) <= '0'; -- OPCODE_7(5) <= '0'; -- elsif (COL_A = 4) then -- OPCODE_0(5) <= '0'; -- OPCODE_1(5) <= '0'; -- OPCODE_2(5) <= '0'; -- OPCODE_3(5) <= '0'; -- OPCODE_4(5) <= '1'; -- OPCODE_5(5) <= '0'; -- OPCODE_6(5) <= '0'; -- OPCODE_7(5) <= '0'; -- elsif (COL_A = 5) then -- OPCODE_0(5) <= '0'; -- OPCODE_1(5) <= '0'; -- OPCODE_2(5) <= '0'; -- OPCODE_3(5) <= '0'; -- OPCODE_4(5) <= '0'; -- OPCODE_5(5) <= '1'; -- OPCODE_6(5) <= '0'; -- OPCODE_7(5) <= '0'; -- elsif (COL_A = 6) then -- OPCODE_0(5) <= '0'; -- OPCODE_1(5) <= '0'; -- OPCODE_2(5) <= '0'; -- OPCODE_3(5) <= '0'; -- OPCODE_4(5) <= '0'; -- OPCODE_5(5) <= '0'; -- OPCODE_6(5) <= '1'; -- OPCODE_7(5) <= '0'; -- elsif (COL_A = 7) then -- OPCODE_0(5) <= '0'; -- OPCODE_1(5) <= '0'; -- OPCODE_2(5) <= '0'; -- OPCODE_3(5) <= '0'; -- OPCODE_4(5) <= '0'; -- OPCODE_5(5) <= '0'; -- OPCODE_6(5) <= '0'; -- OPCODE_7(5) <= '1'; -- else -- OPCODE_0(5) <= '0'; -- OPCODE_1(5) <= '0'; -- OPCODE_2(5) <= '0'; -- OPCODE_3(5) <= '0'; -- OPCODE_4(5) <= '0'; -- OPCODE_5(5) <= '0'; -- OPCODE_6(5) <= '0'; -- OPCODE_7(5) <= '0'; -- end if; -- -- --assigning address B to column -- if (COL_B = 0) then -- OPCODE_0(4) <= '1'; -- OPCODE_1(4) <= '0'; -- OPCODE_2(4) <= '0'; -- OPCODE_3(4) <= '0'; -- OPCODE_4(4) <= '0'; -- OPCODE_5(4) <= '0'; -- OPCODE_6(4) <= '0'; -- OPCODE_7(4) <= '0'; -- elsif (COL_B = 1) then -- OPCODE_0(4) <= '0'; -- OPCODE_1(4) <= '1'; -- OPCODE_2(4) <= '0'; -- OPCODE_3(4) <= '0'; -- OPCODE_4(4) <= '0'; -- OPCODE_5(4) <= '0'; -- OPCODE_6(4) <= '0'; -- OPCODE_7(4) <= '0'; -- elsif (COL_B = 2) then -- OPCODE_0(4) <= '0'; -- OPCODE_1(4) <= '0'; -- OPCODE_2(4) <= '1'; -- OPCODE_3(4) <= '0'; -- OPCODE_4(4) <= '0'; -- OPCODE_5(4) <= '0'; -- OPCODE_6(4) <= '0'; -- OPCODE_7(4) <= '0'; -- elsif (COL_B = 3) then -- OPCODE_0(4) <= '0'; -- OPCODE_1(4) <= '0'; -- OPCODE_2(4) <= '0'; -- OPCODE_3(4) <= '1'; -- OPCODE_4(4) <= '0'; -- OPCODE_5(4) <= '0'; -- OPCODE_6(4) <= '0'; -- OPCODE_7(4) <= '0'; -- elsif (COL_B = 4) then -- OPCODE_0(4) <= '0'; -- OPCODE_1(4) <= '0'; -- OPCODE_2(4) <= '0'; -- OPCODE_3(4) <= '0'; -- OPCODE_4(4) <= '1'; -- OPCODE_5(4) <= '0'; -- OPCODE_6(4) <= '0'; -- OPCODE_7(4) <= '0'; -- elsif (COL_B = 5) then -- OPCODE_0(4) <= '0'; -- OPCODE_1(4) <= '0'; -- OPCODE_2(4) <= '0'; -- OPCODE_3(4) <= '0'; -- OPCODE_4(4) <= '0'; -- OPCODE_5(4) <= '1'; -- OPCODE_6(4) <= '0'; -- OPCODE_7(4) <= '0'; -- elsif (COL_B = 6) then -- OPCODE_0(4) <= '0'; -- OPCODE_1(4) <= '0'; -- OPCODE_2(4) <= '0'; -- OPCODE_3(4) <= '0'; -- OPCODE_4(4) <= '0'; -- OPCODE_5(4) <= '0'; -- OPCODE_6(4) <= '1'; -- OPCODE_7(4) <= '0'; -- elsif (COL_B = 7) then -- OPCODE_0(4) <= '0'; -- OPCODE_1(4) <= '0'; -- OPCODE_2(4) <= '0'; -- OPCODE_3(4) <= '0'; -- OPCODE_4(4) <= '0'; -- OPCODE_5(4) <= '0'; -- OPCODE_6(4) <= '0'; -- OPCODE_7(4) <= '1'; -- else -- OPCODE_0(4) <= '0'; -- OPCODE_1(4) <= '0'; -- OPCODE_2(4) <= '0'; -- OPCODE_3(4) <= '0'; -- OPCODE_4(4) <= '0'; -- OPCODE_5(4) <= '0'; -- OPCODE_6(4) <= '0'; -- OPCODE_7(4) <= '0'; -- end if; -- -- --assigning address C to column -- if (COL_C = 0) then -- OPCODE_0(3) <= '1'; -- OPCODE_1(3) <= '0'; -- OPCODE_2(3) <= '0'; -- OPCODE_3(3) <= '0'; -- OPCODE_4(3) <= '0'; -- OPCODE_5(3) <= '0'; -- OPCODE_6(3) <= '0'; -- OPCODE_7(3) <= '0'; -- elsif (COL_C = 1) then -- OPCODE_0(3) <= '0'; -- OPCODE_1(3) <= '1'; -- OPCODE_2(3) <= '0'; -- OPCODE_3(3) <= '0'; -- OPCODE_4(3) <= '0'; -- OPCODE_5(3) <= '0'; -- OPCODE_6(3) <= '0'; -- OPCODE_7(3) <= '0'; -- elsif (COL_C = 2) then -- OPCODE_0(3) <= '0'; -- OPCODE_1(3) <= '0'; -- OPCODE_2(3) <= '1'; -- OPCODE_3(3) <= '0'; -- OPCODE_4(3) <= '0'; -- OPCODE_5(3) <= '0'; -- OPCODE_6(3) <= '0'; -- OPCODE_7(3) <= '0'; -- elsif (COL_C = 3) then -- OPCODE_0(3) <= '0'; -- OPCODE_1(3) <= '0'; -- OPCODE_2(3) <= '0'; -- OPCODE_3(3) <= '1'; -- OPCODE_4(3) <= '0'; -- OPCODE_5(3) <= '0'; -- OPCODE_6(3) <= '0'; -- OPCODE_7(3) <= '0'; -- elsif (COL_C = 4) then -- OPCODE_0(3) <= '0'; -- OPCODE_1(3) <= '0'; -- OPCODE_2(3) <= '0'; -- OPCODE_3(3) <= '0'; -- OPCODE_4(3) <= '1'; -- OPCODE_5(3) <= '0'; -- OPCODE_6(3) <= '0'; -- OPCODE_7(3) <= '0'; -- elsif (COL_C = 5) then -- OPCODE_0(3) <= '0'; -- OPCODE_1(3) <= '0'; -- OPCODE_2(3) <= '0'; -- OPCODE_3(3) <= '0'; -- OPCODE_4(3) <= '0'; -- OPCODE_5(3) <= '1'; -- OPCODE_6(3) <= '0'; -- OPCODE_7(3) <= '0'; -- elsif (COL_C = 6) then -- OPCODE_0(3) <= '0'; -- OPCODE_1(3) <= '0'; -- OPCODE_2(3) <= '0'; -- OPCODE_3(3) <= '0'; -- OPCODE_4(3) <= '0'; -- OPCODE_5(3) <= '0'; -- OPCODE_6(3) <= '1'; -- OPCODE_7(3) <= '0'; -- elsif (COL_C = 7) then -- OPCODE_0(3) <= '0'; -- OPCODE_1(3) <= '0'; -- OPCODE_2(3) <= '0'; -- OPCODE_3(3) <= '0'; -- OPCODE_4(3) <= '0'; -- OPCODE_5(3) <= '0'; -- OPCODE_6(3) <= '0'; -- OPCODE_7(3) <= '1'; -- else -- OPCODE_0(3) <= '0'; -- OPCODE_1(3) <= '0'; -- OPCODE_2(3) <= '0'; -- OPCODE_3(3) <= '0'; -- OPCODE_4(3) <= '0'; -- OPCODE_5(3) <= '0'; -- OPCODE_6(3) <= '0'; -- OPCODE_7(3) <= '0'; -- end if; -- --assigning address D to column -- if (COL_D = 0) then -- OPCODE_0(2) <= '1'; -- OPCODE_1(2) <= '0'; -- OPCODE_2(2) <= '0'; -- OPCODE_3(2) <= '0'; -- OPCODE_4(2) <= '0'; -- OPCODE_5(2) <= '0'; -- OPCODE_6(2) <= '0'; -- OPCODE_7(2) <= '0'; -- elsif (COL_D = 1) then -- OPCODE_0(2) <= '0'; -- OPCODE_1(2) <= '1'; -- OPCODE_2(2) <= '0'; -- OPCODE_3(2) <= '0'; -- OPCODE_4(2) <= '0'; -- OPCODE_5(2) <= '0'; -- OPCODE_6(2) <= '0'; -- OPCODE_7(2) <= '0'; -- elsif (COL_D = 2) then -- OPCODE_0(2) <= '0'; -- OPCODE_1(2) <= '0'; -- OPCODE_2(2) <= '1'; -- OPCODE_3(2) <= '0'; -- OPCODE_4(2) <= '0'; -- OPCODE_5(2) <= '0'; -- OPCODE_6(2) <= '0'; -- OPCODE_7(2) <= '0'; -- elsif (COL_D = 3) then -- OPCODE_0(2) <= '0'; -- OPCODE_1(2) <= '0'; -- OPCODE_2(2) <= '0'; -- OPCODE_3(2) <= '1'; -- OPCODE_4(2) <= '0'; -- OPCODE_5(2) <= '0'; -- OPCODE_6(2) <= '0'; -- OPCODE_7(2) <= '0'; -- elsif (COL_D = 4) then -- OPCODE_0(2) <= '0'; -- OPCODE_1(2) <= '0'; -- OPCODE_2(2) <= '0'; -- OPCODE_3(2) <= '0'; -- OPCODE_4(2) <= '1'; -- OPCODE_5(2) <= '0'; -- OPCODE_6(2) <= '0'; -- OPCODE_7(2) <= '0'; -- elsif (COL_D = 5) then -- OPCODE_0(2) <= '0'; -- OPCODE_1(2) <= '0'; -- OPCODE_2(2) <= '0'; -- OPCODE_3(2) <= '0'; -- OPCODE_4(2) <= '0'; -- OPCODE_5(2) <= '1'; -- OPCODE_6(2) <= '0'; -- OPCODE_7(2) <= '0'; -- elsif (COL_D = 6) then -- OPCODE_0(2) <= '0'; -- OPCODE_1(2) <= '0'; -- OPCODE_2(2) <= '0'; -- OPCODE_3(2) <= '0'; -- OPCODE_4(2) <= '0'; -- OPCODE_5(2) <= '0'; -- OPCODE_6(2) <= '1'; -- OPCODE_7(2) <= '0'; -- elsif (COL_D = 7) then -- OPCODE_0(2) <= '0'; -- OPCODE_1(2) <= '0'; -- OPCODE_2(2) <= '0'; -- OPCODE_3(2) <= '0'; -- OPCODE_4(2) <= '0'; -- OPCODE_5(2) <= '0'; -- OPCODE_6(2) <= '0'; -- OPCODE_7(2) <= '1'; -- else -- OPCODE_0(2) <= '0'; -- OPCODE_1(2) <= '0'; -- OPCODE_2(2) <= '0'; -- OPCODE_3(2) <= '0'; -- OPCODE_4(2) <= '0'; -- OPCODE_5(2) <= '0'; -- OPCODE_6(2) <= '0'; -- OPCODE_7(2) <= '0'; -- end if; -- --assigning address E to column -- if (COL_E = 0) then -- OPCODE_0(1) <= '1'; -- OPCODE_1(1) <= '0'; -- OPCODE_2(1) <= '0'; -- OPCODE_3(1) <= '0'; -- OPCODE_4(1) <= '0'; -- OPCODE_5(1) <= '0'; -- OPCODE_6(1) <= '0'; -- OPCODE_7(1) <= '0'; -- elsif (COL_E = 1) then -- OPCODE_0(1) <= '0'; -- OPCODE_1(1) <= '1'; -- OPCODE_2(1) <= '0'; -- OPCODE_3(1) <= '0'; -- OPCODE_4(1) <= '0'; -- OPCODE_5(1) <= '0'; -- OPCODE_6(1) <= '0'; -- OPCODE_7(1) <= '0'; -- elsif (COL_E = 2) then -- OPCODE_0(1) <= '0'; -- OPCODE_1(1) <= '0'; -- OPCODE_2(1) <= '1'; -- OPCODE_3(1) <= '0'; -- OPCODE_4(1) <= '0'; -- OPCODE_5(1) <= '0'; -- OPCODE_6(1) <= '0'; -- OPCODE_7(1) <= '0'; -- elsif (COL_E = 3) then -- OPCODE_0(1) <= '0'; -- OPCODE_1(1) <= '0'; -- OPCODE_2(1) <= '0'; -- OPCODE_3(1) <= '1'; -- OPCODE_4(1) <= '0'; -- OPCODE_5(1) <= '0'; -- OPCODE_6(1) <= '0'; -- OPCODE_7(1) <= '0'; -- elsif (COL_E = 4) then -- OPCODE_0(1) <= '0'; -- OPCODE_1(1) <= '0'; -- OPCODE_2(1) <= '0'; -- OPCODE_3(1) <= '0'; -- OPCODE_4(1) <= '1'; -- OPCODE_5(1) <= '0'; -- OPCODE_6(1) <= '0'; -- OPCODE_7(1) <= '0'; -- elsif (COL_E = 5) then -- OPCODE_0(1) <= '0'; -- OPCODE_1(1) <= '0'; -- OPCODE_2(1) <= '0'; -- OPCODE_3(1) <= '0'; -- OPCODE_4(1) <= '0'; -- OPCODE_5(1) <= '1'; -- OPCODE_6(1) <= '0'; -- OPCODE_7(1) <= '0'; -- elsif (COL_E = 6) then -- OPCODE_0(1) <= '0'; -- OPCODE_1(1) <= '0'; -- OPCODE_2(1) <= '0'; -- OPCODE_3(1) <= '0'; -- OPCODE_4(1) <= '0'; -- OPCODE_5(1) <= '0'; -- OPCODE_6(1) <= '1'; -- OPCODE_7(1) <= '0'; -- elsif (COL_E = 7) then -- OPCODE_0(1) <= '0'; -- OPCODE_1(1) <= '0'; -- OPCODE_2(1) <= '0'; -- OPCODE_3(1) <= '0'; -- OPCODE_4(1) <= '0'; -- OPCODE_5(1) <= '0'; -- OPCODE_6(1) <= '0'; -- OPCODE_7(1) <= '1'; -- else -- OPCODE_0(1) <= '0'; -- OPCODE_1(1) <= '0'; -- OPCODE_2(1) <= '0'; -- OPCODE_3(1) <= '0'; -- OPCODE_4(1) <= '0'; -- OPCODE_5(1) <= '0'; -- OPCODE_6(1) <= '0'; -- OPCODE_7(1) <= '0'; -- end if; -- --assigning address W to column -- if (COL_W = 0) then -- OPCODE_0(0) <= '1' and W_EN; -- OPCODE_1(0) <= '0'; -- OPCODE_2(0) <= '0'; -- OPCODE_3(0) <= '0'; -- OPCODE_4(0) <= '0'; -- OPCODE_5(0) <= '0'; -- OPCODE_6(0) <= '0'; -- OPCODE_7(0) <= '0'; -- elsif (COL_W = 1) then -- OPCODE_0(0) <= '0'; -- OPCODE_1(0) <= '1' and W_EN; -- OPCODE_2(0) <= '0'; -- OPCODE_3(0) <= '0'; -- OPCODE_4(0) <= '0'; -- OPCODE_5(0) <= '0'; -- OPCODE_6(0) <= '0'; -- OPCODE_7(0) <= '0'; -- elsif (COL_W = 2) then -- OPCODE_0(0) <= '0'; -- OPCODE_1(0) <= '0'; -- OPCODE_2(0) <= '1' and W_EN; -- OPCODE_3(0) <= '0'; -- OPCODE_4(0) <= '0'; -- OPCODE_5(0) <= '0'; -- OPCODE_6(0) <= '0'; -- OPCODE_7(0) <= '0'; -- elsif (COL_W = 3) then -- OPCODE_0(0) <= '0'; -- OPCODE_1(0) <= '0'; -- OPCODE_2(0) <= '0'; -- OPCODE_3(0) <= '1' and W_EN; -- OPCODE_4(0) <= '0'; -- OPCODE_5(0) <= '0'; -- OPCODE_6(0) <= '0'; -- OPCODE_7(0) <= '0'; -- elsif (COL_W = 4) then -- OPCODE_0(0) <= '0'; -- OPCODE_1(0) <= '0'; -- OPCODE_2(0) <= '0'; -- OPCODE_3(0) <= '0'; -- OPCODE_4(0) <= '1' and W_EN; -- OPCODE_5(0) <= '0'; -- OPCODE_6(0) <= '0'; -- OPCODE_7(0) <= '0'; -- elsif (COL_W = 5) then -- OPCODE_0(0) <= '0'; -- OPCODE_1(0) <= '0'; -- OPCODE_2(0) <= '0'; -- OPCODE_3(0) <= '0'; -- OPCODE_4(0) <= '0'; -- OPCODE_5(0) <= '1' and W_EN; -- OPCODE_6(0) <= '0'; -- OPCODE_7(0) <= '0'; -- elsif (COL_W = 6) then -- OPCODE_0(0) <= '0'; -- OPCODE_1(0) <= '0'; -- OPCODE_2(0) <= '0'; -- OPCODE_3(0) <= '0'; -- OPCODE_4(0) <= '0'; -- OPCODE_5(0) <= '0'; -- OPCODE_6(0) <= '1' and W_EN; -- OPCODE_7(0) <= '0'; -- elsif (COL_W = 7) then -- OPCODE_0(0) <= '0'; -- OPCODE_1(0) <= '0'; -- OPCODE_2(0) <= '0'; -- OPCODE_3(0) <= '0'; -- OPCODE_4(0) <= '0'; -- OPCODE_5(0) <= '0'; -- OPCODE_6(0) <= '0'; -- OPCODE_7(0) <= '1' and W_EN; -- else -- OPCODE_0(0) <= '0'; -- OPCODE_1(0) <= '0'; -- OPCODE_2(0) <= '0'; -- OPCODE_3(0) <= '0'; -- OPCODE_4(0) <= '0'; -- OPCODE_5(0) <= '0'; -- OPCODE_6(0) <= '0'; -- OPCODE_7(0) <= '0'; -- end if; -- end process; end gen;
library ieee; use ieee.std_logic_1164.all; use ieee.numeric_std.all; entity create_opcode is PORT ( COL_A : IN STD_LOGIC_VECTOR(2 DOWNTO 0); COL_B : IN STD_LOGIC_VECTOR(2 DOWNTO 0); COL_C : IN STD_LOGIC_VECTOR(2 DOWNTO 0); COL_D : IN STD_LOGIC_VECTOR(2 DOWNTO 0); COL_E : IN STD_LOGIC_VECTOR(2 DOWNTO 0); COL_W : IN STD_LOGIC_VECTOR(2 DOWNTO 0); W_EN : IN STD_LOGIC; --OUTPUTS OF READS OPCODE_0 : OUT STD_LOGIC_VECTOR (5 DOWNTO 0); OPCODE_1 : OUT STD_LOGIC_VECTOR (5 DOWNTO 0); OPCODE_2 : OUT STD_LOGIC_VECTOR (5 DOWNTO 0); OPCODE_3 : OUT STD_LOGIC_VECTOR (5 DOWNTO 0); OPCODE_4 : OUT STD_LOGIC_VECTOR (5 DOWNTO 0); OPCODE_5 : OUT STD_LOGIC_VECTOR (5 DOWNTO 0); OPCODE_6 : OUT STD_LOGIC_VECTOR (5 DOWNTO 0); OPCODE_7 : OUT STD_LOGIC_VECTOR (5 DOWNTO 0) ); end; architecture gen of create_opcode is begin OPCODE_0(5) <= not(COL_A(2)) and not(COL_A(1)) and not(COL_A(0)); OPCODE_1(5) <= not(COL_A(2)) and not(COL_A(1)) and (COL_A(0)); OPCODE_2(5) <= not(COL_A(2)) and (COL_A(1)) and not(COL_A(0)); OPCODE_3(5) <= not(COL_A(2)) and (COL_A(1)) and (COL_A(0)); OPCODE_4(5) <= (COL_A(2)) and not(COL_A(1)) and not(COL_A(0)); OPCODE_5(5) <= (COL_A(2)) and not(COL_A(1)) and (COL_A(0)); OPCODE_6(5) <= (COL_A(2)) and (COL_A(1)) and not(COL_A(0)); OPCODE_7(5) <= (COL_A(2)) and (COL_A(1)) and (COL_A(0)); OPCODE_0(4) <= not(COL_B(2)) and not(COL_B(1)) and not(COL_B(0)); OPCODE_1(4) <= not(COL_B(2)) and not(COL_B(1)) and (COL_B(0)); OPCODE_2(4) <= not(COL_B(2)) and (COL_B(1)) and not(COL_B(0)); OPCODE_3(4) <= not(COL_B(2)) and (COL_B(1)) and (COL_B(0)); OPCODE_4(4) <= (COL_B(2)) and not(COL_B(1)) and not(COL_B(0)); OPCODE_5(4) <= (COL_B(2)) and not(COL_B(1)) and (COL_B(0)); OPCODE_6(4) <= (COL_B(2)) and (COL_B(1)) and not(COL_B(0)); OPCODE_7(4) <= (COL_B(2)) and (COL_B(1)) and (COL_B(0)); OPCODE_0(3) <= not(COL_C(2)) and not(COL_C(1)) and not(COL_C(0)); OPCODE_1(3) <= not(COL_C(2)) and not(COL_C(1)) and (COL_C(0)); OPCODE_2(3) <= not(COL_C(2)) and (COL_C(1)) and not(COL_C(0)); OPCODE_3(3) <= not(COL_C(2)) and (COL_C(1)) and (COL_C(0)); OPCODE_4(3) <= (COL_C(2)) and not(COL_C(1)) and not(COL_C(0)); OPCODE_5(3) <= (COL_C(2)) and not(COL_C(1)) and (COL_C(0)); OPCODE_6(3) <= (COL_C(2)) and (COL_C(1)) and not(COL_C(0)); OPCODE_7(3) <= (COL_C(2)) and (COL_C(1)) and (COL_C(0)); OPCODE_0(2) <= not(COL_D(2)) and not(COL_D(1)) and not(COL_D(0)); OPCODE_1(2) <= not(COL_D(2)) and not(COL_D(1)) and (COL_D(0)); OPCODE_2(2) <= not(COL_D(2)) and (COL_D(1)) and not(COL_D(0)); OPCODE_3(2) <= not(COL_D(2)) and (COL_D(1)) and (COL_D(0)); OPCODE_4(2) <= (COL_D(2)) and not(COL_D(1)) and not(COL_D(0)); OPCODE_5(2) <= (COL_D(2)) and not(COL_D(1)) and (COL_D(0)); OPCODE_6(2) <= (COL_D(2)) and (COL_D(1)) and not(COL_D(0)); OPCODE_7(2) <= (COL_D(2)) and (COL_D(1)) and (COL_D(0)); OPCODE_0(1) <= not(COL_E(2)) and not(COL_E(1)) and not(COL_E(0)); OPCODE_1(1) <= not(COL_E(2)) and not(COL_E(1)) and (COL_E(0)); OPCODE_2(1) <= not(COL_E(2)) and (COL_E(1)) and not(COL_E(0)); OPCODE_3(1) <= not(COL_E(2)) and (COL_E(1)) and (COL_E(0)); OPCODE_4(1) <= (COL_E(2)) and not(COL_E(1)) and not(COL_E(0)); OPCODE_5(1) <= (COL_E(2)) and not(COL_E(1)) and (COL_E(0)); OPCODE_6(1) <= (COL_E(2)) and (COL_E(1)) and not(COL_E(0)); OPCODE_7(1) <= (COL_E(2)) and (COL_E(1)) and (COL_E(0)); OPCODE_0(0) <= (not(COL_W(2)) and not(COL_W(1)) and not(COL_W(0))) and W_EN; OPCODE_1(0) <= (not(COL_W(2)) and not(COL_W(1)) and (COL_W(0))) and W_EN; OPCODE_2(0) <= (not(COL_W(2)) and (COL_W(1)) and not(COL_W(0))) and W_EN; OPCODE_3(0) <= (not(COL_W(2)) and (COL_W(1)) and (COL_W(0))) and W_EN; OPCODE_4(0) <= ((COL_W(2)) and not(COL_W(1)) and not(COL_W(0))) and W_EN; OPCODE_5(0) <= ((COL_W(2)) and not(COL_W(1)) and (COL_W(0))) and W_EN; OPCODE_6(0) <= ((COL_W(2)) and (COL_W(1)) and not(COL_W(0))) and W_EN; OPCODE_7(0) <= ((COL_W(2)) and (COL_W(1)) and (COL_W(0))) and W_EN; -- process (COL_A, COL_B, COL_C, COL_D, COL_E, COL_W, W_EN) begin -- --assigning address A to column -- if (COL_A = 0) then -- OPCODE_0(5) <= '1'; -- OPCODE_1(5) <= '0'; -- OPCODE_2(5) <= '0'; -- OPCODE_3(5) <= '0'; -- OPCODE_4(5) <= '0'; -- OPCODE_5(5) <= '0'; -- OPCODE_6(5) <= '0'; -- OPCODE_7(5) <= '0'; -- elsif (COL_A = 1) then -- OPCODE_0(5) <= '0'; -- OPCODE_1(5) <= '1'; -- OPCODE_2(5) <= '0'; -- OPCODE_3(5) <= '0'; -- OPCODE_4(5) <= '0'; -- OPCODE_5(5) <= '0'; -- OPCODE_6(5) <= '0'; -- OPCODE_7(5) <= '0'; -- elsif (COL_A = 2) then -- OPCODE_0(5) <= '0'; -- OPCODE_1(5) <= '0'; -- OPCODE_2(5) <= '1'; -- OPCODE_3(5) <= '0'; -- OPCODE_4(5) <= '0'; -- OPCODE_5(5) <= '0'; -- OPCODE_6(5) <= '0'; -- OPCODE_7(5) <= '0'; -- elsif (COL_A = 3) then -- OPCODE_0(5) <= '0'; -- OPCODE_1(5) <= '0'; -- OPCODE_2(5) <= '0'; -- OPCODE_3(5) <= '1'; -- OPCODE_4(5) <= '0'; -- OPCODE_5(5) <= '0'; -- OPCODE_6(5) <= '0'; -- OPCODE_7(5) <= '0'; -- elsif (COL_A = 4) then -- OPCODE_0(5) <= '0'; -- OPCODE_1(5) <= '0'; -- OPCODE_2(5) <= '0'; -- OPCODE_3(5) <= '0'; -- OPCODE_4(5) <= '1'; -- OPCODE_5(5) <= '0'; -- OPCODE_6(5) <= '0'; -- OPCODE_7(5) <= '0'; -- elsif (COL_A = 5) then -- OPCODE_0(5) <= '0'; -- OPCODE_1(5) <= '0'; -- OPCODE_2(5) <= '0'; -- OPCODE_3(5) <= '0'; -- OPCODE_4(5) <= '0'; -- OPCODE_5(5) <= '1'; -- OPCODE_6(5) <= '0'; -- OPCODE_7(5) <= '0'; -- elsif (COL_A = 6) then -- OPCODE_0(5) <= '0'; -- OPCODE_1(5) <= '0'; -- OPCODE_2(5) <= '0'; -- OPCODE_3(5) <= '0'; -- OPCODE_4(5) <= '0'; -- OPCODE_5(5) <= '0'; -- OPCODE_6(5) <= '1'; -- OPCODE_7(5) <= '0'; -- elsif (COL_A = 7) then -- OPCODE_0(5) <= '0'; -- OPCODE_1(5) <= '0'; -- OPCODE_2(5) <= '0'; -- OPCODE_3(5) <= '0'; -- OPCODE_4(5) <= '0'; -- OPCODE_5(5) <= '0'; -- OPCODE_6(5) <= '0'; -- OPCODE_7(5) <= '1'; -- else -- OPCODE_0(5) <= '0'; -- OPCODE_1(5) <= '0'; -- OPCODE_2(5) <= '0'; -- OPCODE_3(5) <= '0'; -- OPCODE_4(5) <= '0'; -- OPCODE_5(5) <= '0'; -- OPCODE_6(5) <= '0'; -- OPCODE_7(5) <= '0'; -- end if; -- -- --assigning address B to column -- if (COL_B = 0) then -- OPCODE_0(4) <= '1'; -- OPCODE_1(4) <= '0'; -- OPCODE_2(4) <= '0'; -- OPCODE_3(4) <= '0'; -- OPCODE_4(4) <= '0'; -- OPCODE_5(4) <= '0'; -- OPCODE_6(4) <= '0'; -- OPCODE_7(4) <= '0'; -- elsif (COL_B = 1) then -- OPCODE_0(4) <= '0'; -- OPCODE_1(4) <= '1'; -- OPCODE_2(4) <= '0'; -- OPCODE_3(4) <= '0'; -- OPCODE_4(4) <= '0'; -- OPCODE_5(4) <= '0'; -- OPCODE_6(4) <= '0'; -- OPCODE_7(4) <= '0'; -- elsif (COL_B = 2) then -- OPCODE_0(4) <= '0'; -- OPCODE_1(4) <= '0'; -- OPCODE_2(4) <= '1'; -- OPCODE_3(4) <= '0'; -- OPCODE_4(4) <= '0'; -- OPCODE_5(4) <= '0'; -- OPCODE_6(4) <= '0'; -- OPCODE_7(4) <= '0'; -- elsif (COL_B = 3) then -- OPCODE_0(4) <= '0'; -- OPCODE_1(4) <= '0'; -- OPCODE_2(4) <= '0'; -- OPCODE_3(4) <= '1'; -- OPCODE_4(4) <= '0'; -- OPCODE_5(4) <= '0'; -- OPCODE_6(4) <= '0'; -- OPCODE_7(4) <= '0'; -- elsif (COL_B = 4) then -- OPCODE_0(4) <= '0'; -- OPCODE_1(4) <= '0'; -- OPCODE_2(4) <= '0'; -- OPCODE_3(4) <= '0'; -- OPCODE_4(4) <= '1'; -- OPCODE_5(4) <= '0'; -- OPCODE_6(4) <= '0'; -- OPCODE_7(4) <= '0'; -- elsif (COL_B = 5) then -- OPCODE_0(4) <= '0'; -- OPCODE_1(4) <= '0'; -- OPCODE_2(4) <= '0'; -- OPCODE_3(4) <= '0'; -- OPCODE_4(4) <= '0'; -- OPCODE_5(4) <= '1'; -- OPCODE_6(4) <= '0'; -- OPCODE_7(4) <= '0'; -- elsif (COL_B = 6) then -- OPCODE_0(4) <= '0'; -- OPCODE_1(4) <= '0'; -- OPCODE_2(4) <= '0'; -- OPCODE_3(4) <= '0'; -- OPCODE_4(4) <= '0'; -- OPCODE_5(4) <= '0'; -- OPCODE_6(4) <= '1'; -- OPCODE_7(4) <= '0'; -- elsif (COL_B = 7) then -- OPCODE_0(4) <= '0'; -- OPCODE_1(4) <= '0'; -- OPCODE_2(4) <= '0'; -- OPCODE_3(4) <= '0'; -- OPCODE_4(4) <= '0'; -- OPCODE_5(4) <= '0'; -- OPCODE_6(4) <= '0'; -- OPCODE_7(4) <= '1'; -- else -- OPCODE_0(4) <= '0'; -- OPCODE_1(4) <= '0'; -- OPCODE_2(4) <= '0'; -- OPCODE_3(4) <= '0'; -- OPCODE_4(4) <= '0'; -- OPCODE_5(4) <= '0'; -- OPCODE_6(4) <= '0'; -- OPCODE_7(4) <= '0'; -- end if; -- -- --assigning address C to column -- if (COL_C = 0) then -- OPCODE_0(3) <= '1'; -- OPCODE_1(3) <= '0'; -- OPCODE_2(3) <= '0'; -- OPCODE_3(3) <= '0'; -- OPCODE_4(3) <= '0'; -- OPCODE_5(3) <= '0'; -- OPCODE_6(3) <= '0'; -- OPCODE_7(3) <= '0'; -- elsif (COL_C = 1) then -- OPCODE_0(3) <= '0'; -- OPCODE_1(3) <= '1'; -- OPCODE_2(3) <= '0'; -- OPCODE_3(3) <= '0'; -- OPCODE_4(3) <= '0'; -- OPCODE_5(3) <= '0'; -- OPCODE_6(3) <= '0'; -- OPCODE_7(3) <= '0'; -- elsif (COL_C = 2) then -- OPCODE_0(3) <= '0'; -- OPCODE_1(3) <= '0'; -- OPCODE_2(3) <= '1'; -- OPCODE_3(3) <= '0'; -- OPCODE_4(3) <= '0'; -- OPCODE_5(3) <= '0'; -- OPCODE_6(3) <= '0'; -- OPCODE_7(3) <= '0'; -- elsif (COL_C = 3) then -- OPCODE_0(3) <= '0'; -- OPCODE_1(3) <= '0'; -- OPCODE_2(3) <= '0'; -- OPCODE_3(3) <= '1'; -- OPCODE_4(3) <= '0'; -- OPCODE_5(3) <= '0'; -- OPCODE_6(3) <= '0'; -- OPCODE_7(3) <= '0'; -- elsif (COL_C = 4) then -- OPCODE_0(3) <= '0'; -- OPCODE_1(3) <= '0'; -- OPCODE_2(3) <= '0'; -- OPCODE_3(3) <= '0'; -- OPCODE_4(3) <= '1'; -- OPCODE_5(3) <= '0'; -- OPCODE_6(3) <= '0'; -- OPCODE_7(3) <= '0'; -- elsif (COL_C = 5) then -- OPCODE_0(3) <= '0'; -- OPCODE_1(3) <= '0'; -- OPCODE_2(3) <= '0'; -- OPCODE_3(3) <= '0'; -- OPCODE_4(3) <= '0'; -- OPCODE_5(3) <= '1'; -- OPCODE_6(3) <= '0'; -- OPCODE_7(3) <= '0'; -- elsif (COL_C = 6) then -- OPCODE_0(3) <= '0'; -- OPCODE_1(3) <= '0'; -- OPCODE_2(3) <= '0'; -- OPCODE_3(3) <= '0'; -- OPCODE_4(3) <= '0'; -- OPCODE_5(3) <= '0'; -- OPCODE_6(3) <= '1'; -- OPCODE_7(3) <= '0'; -- elsif (COL_C = 7) then -- OPCODE_0(3) <= '0'; -- OPCODE_1(3) <= '0'; -- OPCODE_2(3) <= '0'; -- OPCODE_3(3) <= '0'; -- OPCODE_4(3) <= '0'; -- OPCODE_5(3) <= '0'; -- OPCODE_6(3) <= '0'; -- OPCODE_7(3) <= '1'; -- else -- OPCODE_0(3) <= '0'; -- OPCODE_1(3) <= '0'; -- OPCODE_2(3) <= '0'; -- OPCODE_3(3) <= '0'; -- OPCODE_4(3) <= '0'; -- OPCODE_5(3) <= '0'; -- OPCODE_6(3) <= '0'; -- OPCODE_7(3) <= '0'; -- end if; -- --assigning address D to column -- if (COL_D = 0) then -- OPCODE_0(2) <= '1'; -- OPCODE_1(2) <= '0'; -- OPCODE_2(2) <= '0'; -- OPCODE_3(2) <= '0'; -- OPCODE_4(2) <= '0'; -- OPCODE_5(2) <= '0'; -- OPCODE_6(2) <= '0'; -- OPCODE_7(2) <= '0'; -- elsif (COL_D = 1) then -- OPCODE_0(2) <= '0'; -- OPCODE_1(2) <= '1'; -- OPCODE_2(2) <= '0'; -- OPCODE_3(2) <= '0'; -- OPCODE_4(2) <= '0'; -- OPCODE_5(2) <= '0'; -- OPCODE_6(2) <= '0'; -- OPCODE_7(2) <= '0'; -- elsif (COL_D = 2) then -- OPCODE_0(2) <= '0'; -- OPCODE_1(2) <= '0'; -- OPCODE_2(2) <= '1'; -- OPCODE_3(2) <= '0'; -- OPCODE_4(2) <= '0'; -- OPCODE_5(2) <= '0'; -- OPCODE_6(2) <= '0'; -- OPCODE_7(2) <= '0'; -- elsif (COL_D = 3) then -- OPCODE_0(2) <= '0'; -- OPCODE_1(2) <= '0'; -- OPCODE_2(2) <= '0'; -- OPCODE_3(2) <= '1'; -- OPCODE_4(2) <= '0'; -- OPCODE_5(2) <= '0'; -- OPCODE_6(2) <= '0'; -- OPCODE_7(2) <= '0'; -- elsif (COL_D = 4) then -- OPCODE_0(2) <= '0'; -- OPCODE_1(2) <= '0'; -- OPCODE_2(2) <= '0'; -- OPCODE_3(2) <= '0'; -- OPCODE_4(2) <= '1'; -- OPCODE_5(2) <= '0'; -- OPCODE_6(2) <= '0'; -- OPCODE_7(2) <= '0'; -- elsif (COL_D = 5) then -- OPCODE_0(2) <= '0'; -- OPCODE_1(2) <= '0'; -- OPCODE_2(2) <= '0'; -- OPCODE_3(2) <= '0'; -- OPCODE_4(2) <= '0'; -- OPCODE_5(2) <= '1'; -- OPCODE_6(2) <= '0'; -- OPCODE_7(2) <= '0'; -- elsif (COL_D = 6) then -- OPCODE_0(2) <= '0'; -- OPCODE_1(2) <= '0'; -- OPCODE_2(2) <= '0'; -- OPCODE_3(2) <= '0'; -- OPCODE_4(2) <= '0'; -- OPCODE_5(2) <= '0'; -- OPCODE_6(2) <= '1'; -- OPCODE_7(2) <= '0'; -- elsif (COL_D = 7) then -- OPCODE_0(2) <= '0'; -- OPCODE_1(2) <= '0'; -- OPCODE_2(2) <= '0'; -- OPCODE_3(2) <= '0'; -- OPCODE_4(2) <= '0'; -- OPCODE_5(2) <= '0'; -- OPCODE_6(2) <= '0'; -- OPCODE_7(2) <= '1'; -- else -- OPCODE_0(2) <= '0'; -- OPCODE_1(2) <= '0'; -- OPCODE_2(2) <= '0'; -- OPCODE_3(2) <= '0'; -- OPCODE_4(2) <= '0'; -- OPCODE_5(2) <= '0'; -- OPCODE_6(2) <= '0'; -- OPCODE_7(2) <= '0'; -- end if; -- --assigning address E to column -- if (COL_E = 0) then -- OPCODE_0(1) <= '1'; -- OPCODE_1(1) <= '0'; -- OPCODE_2(1) <= '0'; -- OPCODE_3(1) <= '0'; -- OPCODE_4(1) <= '0'; -- OPCODE_5(1) <= '0'; -- OPCODE_6(1) <= '0'; -- OPCODE_7(1) <= '0'; -- elsif (COL_E = 1) then -- OPCODE_0(1) <= '0'; -- OPCODE_1(1) <= '1'; -- OPCODE_2(1) <= '0'; -- OPCODE_3(1) <= '0'; -- OPCODE_4(1) <= '0'; -- OPCODE_5(1) <= '0'; -- OPCODE_6(1) <= '0'; -- OPCODE_7(1) <= '0'; -- elsif (COL_E = 2) then -- OPCODE_0(1) <= '0'; -- OPCODE_1(1) <= '0'; -- OPCODE_2(1) <= '1'; -- OPCODE_3(1) <= '0'; -- OPCODE_4(1) <= '0'; -- OPCODE_5(1) <= '0'; -- OPCODE_6(1) <= '0'; -- OPCODE_7(1) <= '0'; -- elsif (COL_E = 3) then -- OPCODE_0(1) <= '0'; -- OPCODE_1(1) <= '0'; -- OPCODE_2(1) <= '0'; -- OPCODE_3(1) <= '1'; -- OPCODE_4(1) <= '0'; -- OPCODE_5(1) <= '0'; -- OPCODE_6(1) <= '0'; -- OPCODE_7(1) <= '0'; -- elsif (COL_E = 4) then -- OPCODE_0(1) <= '0'; -- OPCODE_1(1) <= '0'; -- OPCODE_2(1) <= '0'; -- OPCODE_3(1) <= '0'; -- OPCODE_4(1) <= '1'; -- OPCODE_5(1) <= '0'; -- OPCODE_6(1) <= '0'; -- OPCODE_7(1) <= '0'; -- elsif (COL_E = 5) then -- OPCODE_0(1) <= '0'; -- OPCODE_1(1) <= '0'; -- OPCODE_2(1) <= '0'; -- OPCODE_3(1) <= '0'; -- OPCODE_4(1) <= '0'; -- OPCODE_5(1) <= '1'; -- OPCODE_6(1) <= '0'; -- OPCODE_7(1) <= '0'; -- elsif (COL_E = 6) then -- OPCODE_0(1) <= '0'; -- OPCODE_1(1) <= '0'; -- OPCODE_2(1) <= '0'; -- OPCODE_3(1) <= '0'; -- OPCODE_4(1) <= '0'; -- OPCODE_5(1) <= '0'; -- OPCODE_6(1) <= '1'; -- OPCODE_7(1) <= '0'; -- elsif (COL_E = 7) then -- OPCODE_0(1) <= '0'; -- OPCODE_1(1) <= '0'; -- OPCODE_2(1) <= '0'; -- OPCODE_3(1) <= '0'; -- OPCODE_4(1) <= '0'; -- OPCODE_5(1) <= '0'; -- OPCODE_6(1) <= '0'; -- OPCODE_7(1) <= '1'; -- else -- OPCODE_0(1) <= '0'; -- OPCODE_1(1) <= '0'; -- OPCODE_2(1) <= '0'; -- OPCODE_3(1) <= '0'; -- OPCODE_4(1) <= '0'; -- OPCODE_5(1) <= '0'; -- OPCODE_6(1) <= '0'; -- OPCODE_7(1) <= '0'; -- end if; -- --assigning address W to column -- if (COL_W = 0) then -- OPCODE_0(0) <= '1' and W_EN; -- OPCODE_1(0) <= '0'; -- OPCODE_2(0) <= '0'; -- OPCODE_3(0) <= '0'; -- OPCODE_4(0) <= '0'; -- OPCODE_5(0) <= '0'; -- OPCODE_6(0) <= '0'; -- OPCODE_7(0) <= '0'; -- elsif (COL_W = 1) then -- OPCODE_0(0) <= '0'; -- OPCODE_1(0) <= '1' and W_EN; -- OPCODE_2(0) <= '0'; -- OPCODE_3(0) <= '0'; -- OPCODE_4(0) <= '0'; -- OPCODE_5(0) <= '0'; -- OPCODE_6(0) <= '0'; -- OPCODE_7(0) <= '0'; -- elsif (COL_W = 2) then -- OPCODE_0(0) <= '0'; -- OPCODE_1(0) <= '0'; -- OPCODE_2(0) <= '1' and W_EN; -- OPCODE_3(0) <= '0'; -- OPCODE_4(0) <= '0'; -- OPCODE_5(0) <= '0'; -- OPCODE_6(0) <= '0'; -- OPCODE_7(0) <= '0'; -- elsif (COL_W = 3) then -- OPCODE_0(0) <= '0'; -- OPCODE_1(0) <= '0'; -- OPCODE_2(0) <= '0'; -- OPCODE_3(0) <= '1' and W_EN; -- OPCODE_4(0) <= '0'; -- OPCODE_5(0) <= '0'; -- OPCODE_6(0) <= '0'; -- OPCODE_7(0) <= '0'; -- elsif (COL_W = 4) then -- OPCODE_0(0) <= '0'; -- OPCODE_1(0) <= '0'; -- OPCODE_2(0) <= '0'; -- OPCODE_3(0) <= '0'; -- OPCODE_4(0) <= '1' and W_EN; -- OPCODE_5(0) <= '0'; -- OPCODE_6(0) <= '0'; -- OPCODE_7(0) <= '0'; -- elsif (COL_W = 5) then -- OPCODE_0(0) <= '0'; -- OPCODE_1(0) <= '0'; -- OPCODE_2(0) <= '0'; -- OPCODE_3(0) <= '0'; -- OPCODE_4(0) <= '0'; -- OPCODE_5(0) <= '1' and W_EN; -- OPCODE_6(0) <= '0'; -- OPCODE_7(0) <= '0'; -- elsif (COL_W = 6) then -- OPCODE_0(0) <= '0'; -- OPCODE_1(0) <= '0'; -- OPCODE_2(0) <= '0'; -- OPCODE_3(0) <= '0'; -- OPCODE_4(0) <= '0'; -- OPCODE_5(0) <= '0'; -- OPCODE_6(0) <= '1' and W_EN; -- OPCODE_7(0) <= '0'; -- elsif (COL_W = 7) then -- OPCODE_0(0) <= '0'; -- OPCODE_1(0) <= '0'; -- OPCODE_2(0) <= '0'; -- OPCODE_3(0) <= '0'; -- OPCODE_4(0) <= '0'; -- OPCODE_5(0) <= '0'; -- OPCODE_6(0) <= '0'; -- OPCODE_7(0) <= '1' and W_EN; -- else -- OPCODE_0(0) <= '0'; -- OPCODE_1(0) <= '0'; -- OPCODE_2(0) <= '0'; -- OPCODE_3(0) <= '0'; -- OPCODE_4(0) <= '0'; -- OPCODE_5(0) <= '0'; -- OPCODE_6(0) <= '0'; -- OPCODE_7(0) <= '0'; -- end if; -- end process; end gen;
------------------------------------------------------------------------------- --! @file toplevel.vhd -- --! @brief Toplevel of Nios MN design Host part -- --! @details This is the toplevel of the Nios MN FPGA Host design for the --! INK DE2-115 Evaluation Board. -- ------------------------------------------------------------------------------- -- -- (c) B&R Industrial Automation GmbH, 2013 -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions -- are met: -- -- 1. Redistributions of source code must retain the above copyright -- notice, this list of conditions and the following disclaimer. -- -- 2. Redistributions in binary form must reproduce the above copyright -- notice, this list of conditions and the following disclaimer in the -- documentation and/or other materials provided with the distribution. -- -- 3. Neither the name of B&R nor the names of its -- contributors may be used to endorse or promote products derived -- from this software without prior written permission. For written -- permission, please contact [email protected] -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -- FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -- COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -- INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -- BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -- LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -- ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -- POSSIBILITY OF SUCH DAMAGE. -- ------------------------------------------------------------------------------- library ieee; use ieee.std_logic_1164.all; library libcommon; use libcommon.global.all; entity toplevel is port ( -- 50 MHZ CLK IN EXT_CLK : in std_logic; -- EPCS EPCS_DCLK : out std_logic; EPCS_SCE : out std_logic; EPCS_SDO : out std_logic; EPCS_DATA0 : in std_logic; -- 64 MBx2 SDRAM SDRAM_CLK : out std_logic; SDRAM_CAS_n : out std_logic; SDRAM_CKE : out std_logic; SDRAM_CS_n : out std_logic; SDRAM_RAS_n : out std_logic; SDRAM_WE_n : out std_logic; SDRAM_ADDR : out std_logic_vector(12 downto 0); SDRAM_BA : out std_logic_vector(1 downto 0); SDRAM_DQM : out std_logic_vector(3 downto 0); SDRAM_DQ : inout std_logic_vector(31 downto 0); -- LED LEDG : out std_logic_vector(7 downto 0); LEDR : out std_logic_vector(15 downto 0); -- KEY KEY_n : in std_logic_vector(3 downto 0); -- LCD LCD_ON : out std_logic; LCD_BLON : out std_logic; LCD_DQ : inout std_logic_vector(7 downto 0); LCD_E : out std_logic; LCD_RS : out std_logic; LCD_RW : out std_logic; -- HOST Interface HOSTIF_AD : inout std_logic_vector(16 downto 0); HOSTIF_BE : out std_logic_vector(1 downto 0); HOSTIF_CS_n : out std_logic; HOSTIF_WR_n : out std_logic; HOSTIF_ALE_n : out std_logic; HOSTIF_RD_n : out std_logic; HOSTIF_ACK_n : in std_logic; HOSTIF_IRQ_n : in std_logic ); end toplevel; architecture rtl of toplevel is component mnSingleHostifGpio is port ( clk25_clk : in std_logic; clk50_clk : in std_logic := 'X'; clk100_clk : in std_logic; reset_reset_n : in std_logic := 'X'; host_0_benchmark_pio_export : out std_logic_vector(7 downto 0); epcs_flash_dclk : out std_logic; epcs_flash_sce : out std_logic; epcs_flash_sdo : out std_logic; epcs_flash_data0 : in std_logic := 'X'; sdram_0_addr : out std_logic_vector(12 downto 0); sdram_0_ba : out std_logic_vector(1 downto 0); sdram_0_cas_n : out std_logic; sdram_0_cke : out std_logic; sdram_0_cs_n : out std_logic; sdram_0_dq : inout std_logic_vector(31 downto 0) := (others => 'X'); sdram_0_dqm : out std_logic_vector(3 downto 0); sdram_0_ras_n : out std_logic; sdram_0_we_n : out std_logic; sync_irq_irq : in std_logic := 'X'; lcd_data : inout std_logic_vector(7 downto 0) := (others => 'X'); lcd_E : out std_logic; lcd_RS : out std_logic; lcd_RW : out std_logic; prl0_oPrlMst_cs : out std_logic; prl0_iPrlMst_ad_i : in std_logic_vector(16 downto 0) := (others => 'X'); prl0_oPrlMst_ad_o : out std_logic_vector(16 downto 0); prl0_oPrlMst_ad_oen : out std_logic; prl0_oPrlMst_be : out std_logic_vector(1 downto 0); prl0_oPrlMst_ale : out std_logic; prl0_oPrlMst_wr : out std_logic; prl0_oPrlMst_rd : out std_logic; prl0_iPrlMst_ack : in std_logic := 'X'; -- Application ports app_pio_in_port : in std_logic_vector(31 downto 0) := (others => 'X'); app_pio_out_port : out std_logic_vector(31 downto 0) ); end component mnSingleHostifGpio; -- PLL component component pll port ( inclk0 : in std_logic; c0 : out std_logic; c1 : out std_logic; c2 : out std_logic; c3 : out std_logic; locked : out std_logic ); end component; signal clk25 : std_logic; signal clk50 : std_logic; signal clk100 : std_logic; signal clk100_p : std_logic; signal pllLocked : std_logic; signal hostifCs : std_logic; signal hostifWr : std_logic; signal hostifRd : std_logic; signal hostifAle : std_logic; signal hostifAck : std_logic; signal hostifAd_i : std_logic_vector(HOSTIF_AD'range); signal hostifAd_o : std_logic_vector(HOSTIF_AD'range); signal hostifAd_oen : std_logic; signal hostifIrq : std_logic; signal app_input : std_logic_vector(31 downto 0); begin LCD_ON <= '1'; LCD_BLON <= '1'; SDRAM_CLK <= clk100_p; HOSTIF_CS_n <= not hostifCs; HOSTIF_WR_n <= not hostifWr; HOSTIF_RD_n <= not hostifRd; HOSTIF_ALE_n <= not hostifAle; hostifAck <= not HOSTIF_ACK_n; -- TRISTATE Buffer for AD bus HOSTIF_AD <= hostifAd_o when hostifAd_oen = '1' else (others => 'Z'); hostifAd_i <= HOSTIF_AD; hostifIrq <= not HOSTIF_IRQ_n; --------------------------------------------------------------------------- -- Green LED assignments LEDG <= (others => '0'); -- Reserved --------------------------------------------------------------------------- --------------------------------------------------------------------------- -- Red LED assignments LEDR <= (others => '0'); -- Reserved --------------------------------------------------------------------------- --------------------------------------------------------------------------- -- Application Input and Output assignments -- Input: Map KEY nibble to Application Input app_input <= x"0000000" & not KEY_n; --------------------------------------------------------------------------- inst : component mnSingleHostifGpio port map ( clk25_clk => clk25, clk50_clk => clk50, clk100_clk => clk100, reset_reset_n => pllLocked, host_0_benchmark_pio_export => open, epcs_flash_dclk => EPCS_DCLK, epcs_flash_sce => EPCS_SCE, epcs_flash_sdo => EPCS_SDO, epcs_flash_data0 => EPCS_DATA0, sdram_0_addr => SDRAM_ADDR, sdram_0_ba => SDRAM_BA, sdram_0_cas_n => SDRAM_CAS_n, sdram_0_cke => SDRAM_CKE, sdram_0_cs_n => SDRAM_CS_n, sdram_0_dq => SDRAM_DQ, sdram_0_dqm => SDRAM_DQM, sdram_0_ras_n => SDRAM_RAS_n, sdram_0_we_n => SDRAM_WE_n, prl0_oPrlMst_cs => hostifCs, prl0_iPrlMst_ad_i => hostifAd_i, prl0_oPrlMst_ad_o => hostifAd_o, prl0_oPrlMst_ad_oen => hostifAd_oen, prl0_oPrlMst_be => HOSTIF_BE, prl0_oPrlMst_ale => hostifAle, prl0_oPrlMst_wr => hostifWr, prl0_oPrlMst_rd => hostifRd, prl0_iPrlMst_ack => hostifAck, sync_irq_irq => hostifIrq, lcd_data => LCD_DQ, lcd_E => LCD_E, lcd_RS => LCD_RS, lcd_RW => LCD_RW, app_pio_in_port => app_input, app_pio_out_port => open ); -- Pll Instance pllInst : pll port map ( inclk0 => EXT_CLK, c0 => clk50, c1 => clk100, c2 => clk25, c3 => clk100_p, locked => pllLocked ); end rtl;
-- Copyright (C) 2001 Bill Billowitch. -- Some of the work to develop this test suite was done with Air Force -- support. The Air Force and Bill Billowitch assume no -- responsibilities for this software. -- This file is part of VESTs (Vhdl tESTs). -- VESTs 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 2 of the License, or (at -- your option) any later version. -- VESTs 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 VESTs; if not, write to the Free Software Foundation, -- Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -- --------------------------------------------------------------------- -- -- $Id: tc1586.vhd,v 1.2 2001-10-26 16:30:11 paw Exp $ -- $Revision: 1.2 $ -- -- --------------------------------------------------------------------- ENTITY c08s11b00x00p02n01i01586ent IS END c08s11b00x00p02n01i01586ent; ARCHITECTURE c08s11b00x00p02n01i01586arch OF c08s11b00x00p02n01i01586ent IS BEGIN TESTING: PROCESS BEGIN L1: for b in boolean loop exit when b L1; -- label must precede when clause end loop L1; assert FALSE report "***FAILED TEST: c08s11b00x00p02n01i01586 - Illegal clause ordering in exit statement." severity ERROR; wait; END PROCESS TESTING; END c08s11b00x00p02n01i01586arch;
-- Copyright (C) 2001 Bill Billowitch. -- Some of the work to develop this test suite was done with Air Force -- support. The Air Force and Bill Billowitch assume no -- responsibilities for this software. -- This file is part of VESTs (Vhdl tESTs). -- VESTs 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 2 of the License, or (at -- your option) any later version. -- VESTs 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 VESTs; if not, write to the Free Software Foundation, -- Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -- --------------------------------------------------------------------- -- -- $Id: tc1586.vhd,v 1.2 2001-10-26 16:30:11 paw Exp $ -- $Revision: 1.2 $ -- -- --------------------------------------------------------------------- ENTITY c08s11b00x00p02n01i01586ent IS END c08s11b00x00p02n01i01586ent; ARCHITECTURE c08s11b00x00p02n01i01586arch OF c08s11b00x00p02n01i01586ent IS BEGIN TESTING: PROCESS BEGIN L1: for b in boolean loop exit when b L1; -- label must precede when clause end loop L1; assert FALSE report "***FAILED TEST: c08s11b00x00p02n01i01586 - Illegal clause ordering in exit statement." severity ERROR; wait; END PROCESS TESTING; END c08s11b00x00p02n01i01586arch;
-- Copyright (C) 2001 Bill Billowitch. -- Some of the work to develop this test suite was done with Air Force -- support. The Air Force and Bill Billowitch assume no -- responsibilities for this software. -- This file is part of VESTs (Vhdl tESTs). -- VESTs 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 2 of the License, or (at -- your option) any later version. -- VESTs 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 VESTs; if not, write to the Free Software Foundation, -- Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -- --------------------------------------------------------------------- -- -- $Id: tc1586.vhd,v 1.2 2001-10-26 16:30:11 paw Exp $ -- $Revision: 1.2 $ -- -- --------------------------------------------------------------------- ENTITY c08s11b00x00p02n01i01586ent IS END c08s11b00x00p02n01i01586ent; ARCHITECTURE c08s11b00x00p02n01i01586arch OF c08s11b00x00p02n01i01586ent IS BEGIN TESTING: PROCESS BEGIN L1: for b in boolean loop exit when b L1; -- label must precede when clause end loop L1; assert FALSE report "***FAILED TEST: c08s11b00x00p02n01i01586 - Illegal clause ordering in exit statement." severity ERROR; wait; END PROCESS TESTING; END c08s11b00x00p02n01i01586arch;
------------------------------------------------------------------------------------------------- -- Company : CNES -- Author : Mickael Carl (CNES) -- Copyright : Copyright (c) CNES. -- Licensing : GNU GPLv3 ------------------------------------------------------------------------------------------------- -- Version : V1.1 -- Version history : -- V1 : 2015-04-13 : Mickael Carl (CNES): Creation -- V1.1 : 2016-05-03 : F.Manni (CNES) : add initialization trough reset for Raz, enable and Count_Length ------------------------------------------------------------------------------------------------- -- File name : STD_03900_bad.vhd -- File Creation date : 2015-04-13 -- Project name : VHDL Handbook CNES Edition ------------------------------------------------------------------------------------------------- -- Softwares : Microsoft Windows (Windows 7) - Editor (Eclipse + VEditor) ------------------------------------------------------------------------------------------------- -- Description : Handbook example: State machine type definition: bad example -- -- Limitations : This file is an example of the VHDL handbook made by CNES. It is a stub aimed at -- demonstrating good practices in VHDL and as such, its design is minimalistic. -- It is provided as is, without any warranty. -- This example is compliant with the Handbook version 1. -- ------------------------------------------------------------------------------------------------- -- Naming conventions: -- -- i_Port: Input entity port -- o_Port: Output entity port -- b_Port: Bidirectional entity port -- g_My_Generic: Generic entity port -- -- c_My_Constant: Constant definition -- t_My_Type: Custom type definition -- -- My_Signal_n: Active low signal -- v_My_Variable: Variable -- sm_My_Signal: FSM signal -- pkg_Param: Element Param coming from a package -- -- My_Signal_re: Rising edge detection of My_Signal -- My_Signal_fe: Falling edge detection of My_Signal -- My_Signal_rX: X times registered My_Signal signal -- -- P_Process_Name: Process -- ------------------------------------------------------------------------------------------------- library IEEE; use IEEE.std_logic_1164.all; use IEEE.numeric_std.all; entity STD_03900_bad is port ( i_Clock : in std_logic; -- Clock input i_Reset_n : in std_logic; -- Reset input i_Start : in std_logic; -- Start counters signal i_Stop : in std_logic -- Stop counters signal ); end STD_03900_bad; --CODE architecture Behavioral of STD_03900_bad is constant c_Length : std_logic_vector(3 downto 0) := (others => '1'); -- How long we should count signal sm_State : std_logic_vector(3 downto 0); -- State signal signal Raz : std_logic; -- Load the length value and initialize the counter signal Enable : std_logic; -- Counter enable signal signal Length : std_logic_vector(3 downto 0); -- Counter length for counting signal End_Count : std_logic; -- End signal of counter begin -- A simple counter with loading length and enable signal Counter : Counter port map ( i_Clock => i_Clock, i_Reset_n => i_Reset_n, i_Raz => Raz, i_Enable => Enable, i_Length => Length, o_Done => End_Count ); -- FSM process controlling the counter. Start or stop it in function of the input (i_Start & i_Stop), -- load the length value, and wait for it to finish P_FSM : process(i_Reset_n, i_Clock) begin if (i_Reset_n = '0') then sm_State <= "0001"; Raz <= '0'; Enable <= '0'; Count_Length <= (others=>'0'); elsif (rising_edge(i_Clock)) then case sm_State is when "0001" => -- Set the length value Length <= c_Length; sm_State <= "0010"; when "0010" => -- Load the counter and initialize it Raz <= '1'; sm_State <= "0100"; when "0100" => -- Start or stop counting depending on inputs until it finishes Raz <= '0'; if (End_Count = '0') then -- The counter has not finished, wait Enable <= i_Start xor not i_Stop; sm_State <= "0100"; else -- The counter has finished, nothing else to do Enable <= '0'; sm_State <= "1000"; end if; when others => sm_State <= "0001"; end case; end if; end process; end Behavioral; --CODE
----------------------------------------------------------------------------- -- LEON3 Demonstration design test bench configuration -- Copyright (C) 2009 Aeroflex Gaisler ------------------------------------------------------------------------------ library techmap; use techmap.gencomp.all; package config is -- Technology and synthesis options constant CFG_FABTECH : integer := inferred; constant CFG_MEMTECH : integer := inferred; constant CFG_PADTECH : integer := inferred; constant CFG_TRANSTECH : integer := GTP0; constant CFG_NOASYNC : integer := 0; constant CFG_SCAN : integer := 0; -- LEON3 processor core constant CFG_LEON3 : integer := 1; constant CFG_NCPU : integer := (1); constant CFG_NWIN : integer := (8); constant CFG_V8 : integer := 0 + 4*0; constant CFG_MAC : integer := 0; constant CFG_BP : integer := 0; constant CFG_SVT : integer := 1; constant CFG_RSTADDR : integer := 16#00000#; constant CFG_LDDEL : integer := (1); constant CFG_NOTAG : integer := 0; constant CFG_NWP : integer := (0); constant CFG_PWD : integer := 0*2; constant CFG_FPU : integer := 0 + 16*0 + 32*0; constant CFG_GRFPUSH : integer := 0; constant CFG_ICEN : integer := 0; constant CFG_ISETS : integer := 1; constant CFG_ISETSZ : integer := 1; constant CFG_ILINE : integer := 8; constant CFG_IREPL : integer := 0; constant CFG_ILOCK : integer := 0; constant CFG_ILRAMEN : integer := 0; constant CFG_ILRAMADDR: integer := 16#8E#; constant CFG_ILRAMSZ : integer := 1; constant CFG_DCEN : integer := 0; constant CFG_DSETS : integer := 1; constant CFG_DSETSZ : integer := 1; constant CFG_DLINE : integer := 8; constant CFG_DREPL : integer := 0; constant CFG_DLOCK : integer := 0; constant CFG_DSNOOP : integer := 0 + 0*2 + 4*0; constant CFG_DFIXED : integer := 16#0#; constant CFG_DLRAMEN : integer := 0; constant CFG_DLRAMADDR: integer := 16#8F#; constant CFG_DLRAMSZ : integer := 1; constant CFG_MMUEN : integer := 0; constant CFG_ITLBNUM : integer := 2; constant CFG_DTLBNUM : integer := 2; constant CFG_TLB_TYPE : integer := 1 + 0*2; constant CFG_TLB_REP : integer := 1; constant CFG_MMU_PAGE : integer := 0; constant CFG_DSU : integer := 1; constant CFG_ITBSZ : integer := 2 + 64*0; constant CFG_ATBSZ : integer := 2; constant CFG_AHBPF : integer := 0; constant CFG_LEON3FT_EN : integer := 0; constant CFG_IUFT_EN : integer := 0; constant CFG_FPUFT_EN : integer := 0; constant CFG_RF_ERRINJ : integer := 0; constant CFG_CACHE_FT_EN : integer := 0; constant CFG_CACHE_ERRINJ : integer := 0; constant CFG_LEON3_NETLIST: integer := 0; constant CFG_DISAS : integer := 1 + 0; constant CFG_PCLOW : integer := 2; constant CFG_STAT_ENABLE : integer := 0; constant CFG_STAT_CNT : integer := 1; constant CFG_STAT_NMAX : integer := 0; constant CFG_STAT_DSUEN : integer := 0; constant CFG_NP_ASI : integer := 0; constant CFG_WRPSR : integer := 0; constant CFG_ALTWIN : integer := 0; constant CFG_REX : integer := 0; -- AMBA settings constant CFG_DEFMST : integer := (0); constant CFG_RROBIN : integer := 0; constant CFG_SPLIT : integer := 0; constant CFG_FPNPEN : integer := 0; constant CFG_AHBIO : integer := 16#FFF#; constant CFG_APBADDR : integer := 16#800#; constant CFG_AHB_MON : integer := 0; constant CFG_AHB_MONERR : integer := 0; constant CFG_AHB_MONWAR : integer := 0; constant CFG_AHB_DTRACE : integer := 0; -- AHB RAM constant CFG_AHBRAMEN : integer := 1; constant CFG_AHBRSZ : integer := 64; constant CFG_AHBRADDR : integer := 16#400#; constant CFG_AHBRPIPE : integer := 0; -- UART 1 constant CFG_UART1_ENABLE : integer := 1; constant CFG_UART1_FIFO : integer := 1; -- LEON3 interrupt controller constant CFG_IRQ3_ENABLE : integer := 1; constant CFG_IRQ3_NSEC : integer := 0; -- Modular timer constant CFG_GPT_ENABLE : integer := 1; constant CFG_GPT_NTIM : integer := (2); constant CFG_GPT_SW : integer := (8); constant CFG_GPT_TW : integer := (32); constant CFG_GPT_IRQ : integer := (8); constant CFG_GPT_SEPIRQ : integer := 0; constant CFG_GPT_WDOGEN : integer := 0; constant CFG_GPT_WDOG : integer := 16#0#; -- GPIO port constant CFG_GRGPIO_ENABLE : integer := 0; constant CFG_GRGPIO_IMASK : integer := 16#0000#; constant CFG_GRGPIO_WIDTH : integer := 1; -- GRLIB debugging constant CFG_DUART : integer := 0; end;
library IEEE; use IEEE.STD_LOGIC_1164.all; use IEEE.STD_LOGIC_unsigned.all; use IEEE.Numeric_std.all; use work.HammingPack16.all; use work.PhoenixPackage.all; entity HAM_DEC is port ( data_in : in regflit; -- data input parity_in : in reghamm; -- parity input data_out : out regflit; -- data output (corrected data) parity_out : out reghamm; -- parity output (corrected parity) credit_out : out std_logic_vector(2 downto 0) -- status output (hamming results status) ); end HAM_DEC; architecture HAM_DEC of HAM_DEC is begin process(data_in, parity_in) --overall mod-2 of all bits variable P0 : Std_logic; --syndrome variable Synd : Std_logic_vector(5 downto 1); begin --calculate overall parity of all bits--------- P0 := xor_reduce(data_in & parity_in); ---------------------------------------------- --generate each syndrome bit C1 to C4--------------------------- Synd(1) := xor_reduce((data_in and MaskP1) & parity_in(1)); Synd(2) := xor_reduce((data_in and MaskP2) & parity_in(2)); Synd(3) := xor_reduce((data_in and MaskP4) & parity_in(3)); Synd(4) := xor_reduce((data_in and MaskP8) & parity_in(4)); Synd(5) := xor_reduce((data_in and MaskP16) & parity_in(5)); ---------------------------------------------------------------- if (Synd = "0000") and (P0 = '0') then --no errors credit_out <= NE; data_out <= data_in; parity_out <= parity_in; null; --accept default o/p's assigned above elsif P0 = '1' then --single error (or odd no of errors!) credit_out <= EC; data_out <= data_in; parity_out <= parity_in; --correct single error case to_integer(unsigned(Synd)) is when 0 => parity_out(0) <= not parity_in(0); when 1 => parity_out(1) <= not parity_in(1); when 2 => parity_out(2) <= not parity_in(2); when 3 => data_out(0) <= not data_in(0); when 4 => parity_out(3) <= not parity_in(3); when 5 => data_out(1) <= not data_in(1); when 6 => data_out(2) <= not data_in(2); when 7 => data_out(3) <= not data_in(3); when 8 => parity_out(4) <= not parity_in(4); when 9 => data_out(4) <= not data_in(4); when 10 => data_out(5) <= not data_in(5); when 11 => data_out(6) <= not data_in(6); when 12 => data_out(7) <= not data_in(7); when 13 => data_out(8) <= not data_in(8); when 14 => data_out(9) <= not data_in(9); when 15 => data_out(10) <= not data_in(10); when 16 => parity_out(5) <= not parity_in(5); when 17 => data_out(11) <= not data_in(11); when 18 => data_out(12) <= not data_in(12); when 19 => data_out(13) <= not data_in(13); when 20 => data_out(14) <= not data_in(14); when 21 => data_out(15) <= not data_in(15); when others => data_out <= "0000000000000000"; parity_out <= "000000"; end case; elsif (P0 = '0') and (Synd /= "00000") then --double error credit_out <= ED; data_out <= "0000000000000000"; parity_out <= "000000"; end if; end process; end HAM_DEC;
---------------------------------------------------------------------------------- -- Company: TU Vienna -- Engineer: Armin FALTINGER -- -- Create Date: 10:21:09 12/25/2009 -- Module Name: ErrorBit - RTL -- Project Name: Uart -- Description: Indicate possible errors, -- clearing the error with a global reset (Reset_i_n) -- or the dedicated error reset (ErrorReset) -- -- Dependencies: pure RTL no dependencies ---------------------------------------------------------------------------------- library IEEE; use IEEE.STD_LOGIC_1164.ALL; use IEEE.STD_LOGIC_ARITH.ALL; use IEEE.STD_LOGIC_UNSIGNED.ALL; entity ErrorBit is Port ( Clk_i : in STD_LOGIC; Reset_i_n : in STD_LOGIC; ErrorReset_i : in STD_LOGIC; ErrorBit_i : in STD_LOGIC; ErrorIndicatorBit_o : out STD_LOGIC); end ErrorBit;
------------------------------------------------------------------------------ -- This file is a part of the GRLIB VHDL IP LIBRARY -- Copyright (C) 2003 - 2008, Gaisler Research -- Copyright (C) 2008 - 2014, Aeroflex Gaisler -- Copyright (C) 2015, Cobham Gaisler -- -- 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 2 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, write to the Free Software -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ----------------------------------------------------------------------------- -- LEON3 Demonstration design -- Copyright (C) 2004 Jiri Gaisler, Gaisler Research ----------------------------------------------------------------------------- library ieee; use ieee.std_logic_1164.all; library grlib, techmap; use grlib.amba.all; use grlib.stdlib.all; use techmap.gencomp.all; library gaisler; use gaisler.memctrl.all; use gaisler.ddrpkg.all; use gaisler.leon3.all; use gaisler.uart.all; use gaisler.misc.all; use gaisler.net.all; use gaisler.jtag.all; library esa; use esa.memoryctrl.all; use work.ft245.all; use work.config.all; entity leon3mp is generic ( fabtech : integer := CFG_FABTECH; memtech : integer := CFG_MEMTECH; padtech : integer := CFG_PADTECH; ncpu : integer := CFG_NCPU; disas : integer := CFG_DISAS; -- Enable disassembly to console dbguart : integer := CFG_DUART; -- Print UART on console pclow : integer := CFG_PCLOW ); port ( -- RESET, CLK, ERROR resetn : in std_ulogic; clk : in std_ulogic; errorn : out std_ulogic; -- combined flash/SSRAM/IO bus (fs_...) fs_addr : out std_logic_vector(24 downto 0); fs_data : inout std_logic_vector(31 downto 0); -- IO chip enable io_cen : out std_logic; io_wen : out std_logic; -- separate flash signals (flash_...) flash_cen : out std_ulogic; flash_oen : out std_logic; flash_wen : out std_logic; -- separate SSRAM signals (ssram_...) ssram_cen : out std_logic; ssram_wen : out std_logic; ssram_bw : out std_logic_vector (3 downto 0); ssram_oen : out std_ulogic; ssram_clk : out std_ulogic; ssram_adscn : out std_ulogic; ssram_adspn : out std_ulogic; ssram_advn : out std_ulogic; -- DDR2 ddr_clk : out std_logic_vector(2 downto 0); ddr_clkb : out std_logic_vector(2 downto 0); ddr_cke : out std_logic_vector(1 downto 0); ddr_csb : out std_logic_vector(1 downto 0); ddr_odt : out std_logic_vector(1 downto 0); ddr_web : out std_ulogic; -- ddr write enable ddr_rasb : out std_ulogic; -- ddr ras ddr_casb : out std_ulogic; -- ddr cas ddr_dm : out std_logic_vector (7 downto 0); -- ddr dm ddr_dqs : inout std_logic_vector (7 downto 0); -- ddr dqs ddr_ad : out std_logic_vector (13 downto 0); -- ddr address ddr_ba : out std_logic_vector (1 downto 0); -- ddr bank address ddr_dq : inout std_logic_vector (63 downto 0); -- ddr data -- ETHERNET PHY phy_gtx_clk : out std_logic; phy_mii_data: inout std_logic; -- ethernet PHY interface phy_tx_clk : in std_ulogic; phy_rx_clk : in std_ulogic; phy_rx_data : in std_logic_vector(7 downto 0); phy_dv : in std_ulogic; phy_rx_er : in std_ulogic; phy_col : in std_ulogic; phy_crs : in std_ulogic; phy_tx_data : out std_logic_vector(7 downto 0); phy_tx_en : out std_ulogic; phy_tx_er : out std_ulogic; phy_mii_clk : out std_ulogic; -- debug support unit dsuact : out std_ulogic; -- console/debug UART rxd1 : in std_logic; txd1 : out std_logic; -- FT245 UART ft245_data : inout std_logic_vector (7 downto 0); ft245_rdn : out std_logic; ft245_wr : out std_logic; ft245_rxfn : in std_logic; ft245_txen : in std_logic; ft245_pwrenn : in std_logic; -- GPIO gpio : inout std_logic_vector(CFG_GRGPIO_WIDTH-1 downto 0) ); end; architecture rtl of leon3mp is constant maxahbm : integer := NCPU+CFG_AHB_UART+CFG_AHB_JTAG+CFG_GRETH; signal vcc, gnd : std_logic_vector(7 downto 0); signal memi, smemi : memory_in_type; signal memo, smemo : memory_out_type; signal wpo : wprot_out_type; signal ddrclkfb, ssrclkfb, ddr_clkl, ddr_clk90l, ddr_clknl, ddr_clk270l : std_ulogic; signal ddr_clkv : std_logic_vector(2 downto 0); signal ddr_clkbv : std_logic_vector(2 downto 0); signal ddr_ckev : std_logic_vector(1 downto 0); signal ddr_csbv : std_logic_vector(1 downto 0); signal ddr_adl : std_logic_vector (13 downto 0); signal clklock, lock, clkml, rst, ndsuact : std_ulogic; signal tck, tckn, tms, tdi, tdo : std_ulogic; signal ddrclk, ddrrst : std_ulogic; -- attribute syn_keep : boolean; -- attribute syn_preserve : boolean; -- attribute syn_keep of clkml : signal is true; -- attribute syn_preserve of clkml : signal is true; signal extd : std_logic_vector(31 downto 0); signal apbi : apb_slv_in_type; signal apbo : apb_slv_out_vector := (others => apb_none); signal ahbsi : ahb_slv_in_type; signal ahbso : ahb_slv_out_vector := (others => ahbs_none); signal ahbmi : ahb_mst_in_type; signal ahbmo : ahb_mst_out_vector; signal clkm, rstn, ssram_clkl : std_ulogic; signal cgi : clkgen_in_type; signal cgo : clkgen_out_type; signal u1i, dui : uart_in_type; signal u1o, duo : uart_out_type; signal irqi : irq_in_vector(0 to NCPU-1); signal irqo : irq_out_vector(0 to NCPU-1); signal dbgi : l3_debug_in_vector(0 to NCPU-1); signal dbgo : l3_debug_out_vector(0 to NCPU-1); signal dsui : dsu_in_type; signal dsuo : dsu_out_type; signal ethi : eth_in_type; signal etho : eth_out_type; signal gpti : gptimer_in_type; signal gpioi : gpio_in_type; signal gpioo : gpio_out_type; signal ft245i : ft245_in_type; signal ft245o : ft245_out_type; signal ft245_vbdrive : std_logic_vector(7 downto 0); constant IOAEN : integer := 1; constant BOARD_FREQ : integer := 100000; -- input frequency in KHz constant CPU_FREQ : integer := BOARD_FREQ * CFG_CLKMUL / CFG_CLKDIV; -- cpu frequency in KHz begin ---------------------------------------------------------------------- --- Reset and Clock generation ------------------------------------- ---------------------------------------------------------------------- vcc <= (others => '1'); gnd <= (others => '0'); cgi.pllctrl <= "00"; cgi.pllrst <= not resetn; cgi.pllref <= '0'; clklock <= cgo.clklock and lock; clkgen0 : clkgen -- clock generator for main clock generic map (tech => CFG_CLKTECH, clk_mul => CFG_CLKMUL, clk_div => CFG_CLKDIV, sdramen => CFG_MCTRL_SDEN, pcien => 0, pcidll => 0, freq => BOARD_FREQ, clk2xen => 0, clksel => 0, clk_odiv => 0) port map (clkin => clk, pciclkin => gnd(0), clk => clkm, clkn => ssram_clkl, clk2x => open, sdclk => open, pciclk => open, cgi => cgi, cgo => cgo); -- ssram_clkl <= not clkm; ssrclk_pad : outpad generic map (tech => padtech, slew => 1, strength => 24) port map (ssram_clk, ssram_clkl); rst0 : rstgen -- reset generator port map (resetn, clkm, clklock, rstn); ---------------------------------------------------------------------- --- AHB CONTROLLER -------------------------------------------------- ---------------------------------------------------------------------- ahb0 : ahbctrl -- AHB arbiter/multiplexer generic map (defmast => CFG_DEFMST, split => CFG_SPLIT, rrobin => CFG_RROBIN, ioaddr => CFG_AHBIO, ioen => IOAEN, nahbm => maxahbm, nahbs => 8) port map (rstn, clkm, ahbmi, ahbmo, ahbsi, ahbso); ---------------------------------------------------------------------- --- LEON3 processor and DSU ----------------------------------------- ---------------------------------------------------------------------- l3 : if CFG_LEON3 = 1 generate cpu : for i in 0 to NCPU-1 generate u0 : leon3s -- LEON3 processor generic map (i, fabtech, memtech, CFG_NWIN, CFG_DSU, CFG_FPU, CFG_V8, 0, CFG_MAC, pclow, CFG_NOTAG, CFG_NWP, CFG_ICEN, CFG_IREPL, CFG_ISETS, CFG_ILINE, CFG_ISETSZ, CFG_ILOCK, CFG_DCEN, CFG_DREPL, CFG_DSETS, CFG_DLINE, CFG_DSETSZ, CFG_DLOCK, CFG_DSNOOP, CFG_ILRAMEN, CFG_ILRAMSZ, CFG_ILRAMADDR, CFG_DLRAMEN, CFG_DLRAMSZ, CFG_DLRAMADDR, CFG_MMUEN, CFG_ITLBNUM, CFG_DTLBNUM, CFG_TLB_TYPE, CFG_TLB_REP, CFG_LDDEL, disas, CFG_ITBSZ, CFG_PWD, CFG_SVT, CFG_RSTADDR, NCPU-1, CFG_DFIXED, CFG_SCAN, CFG_MMU_PAGE, CFG_BP, CFG_NP_ASI, CFG_WRPSR) port map (clkm, rstn, ahbmi, ahbmo(i), ahbsi, ahbso, irqi(i), irqo(i), dbgi(i), dbgo(i)); end generate; errorn_pad : odpad generic map (tech => padtech) port map (errorn, dbgo(0).error); dsugen : if CFG_DSU = 1 generate dsu0 : dsu3 -- LEON3 Debug Support Unit generic map (hindex => 2, haddr => 16#900#, hmask => 16#F00#, ncpu => NCPU, tbits => 30, tech => memtech, irq => 0, kbytes => CFG_ATBSZ) port map (rstn, clkm, ahbmi, ahbsi, ahbso(2), dbgo, dbgi, dsui, dsuo); dsui.enable <= '1'; dsui.break <= '0'; dsuact_pad : outpad generic map (tech => padtech) port map (dsuact, dsuo.active); end generate; end generate; nodsu : if CFG_DSU = 0 generate ahbso(2) <= ahbs_none; dsuo.tstop <= '0'; dsuo.active <= '0'; end generate; dcomgen : if CFG_AHB_UART = 1 generate dcom0 : ahbuart -- Debug UART generic map (hindex => NCPU, pindex => 4, paddr => 7) port map (rstn, clkm, dui, duo, apbi, apbo(4), ahbmi, ahbmo(NCPU)); dsurx_pad : inpad generic map (tech => padtech) port map (rxd1, dui.rxd); dsutx_pad : outpad generic map (tech => padtech) port map (txd1, duo.txd); end generate; nouah : if CFG_AHB_UART = 0 generate apbo(7) <= apb_none; end generate; ahbjtaggen0 :if CFG_AHB_JTAG = 1 generate ahbjtag0 : ahbjtag generic map(tech => fabtech, hindex => NCPU+CFG_AHB_UART) port map(rstn, clkm, tck, tms, tdi, tdo, ahbmi, ahbmo(NCPU+CFG_AHB_UART), open, open, open, open, open, open, open, gnd(0)); end generate; ---------------------------------------------------------------------- --- Memory controllers ---------------------------------------------- ---------------------------------------------------------------------- mctrl0 : if CFG_MCTRL_LEON2 = 1 generate mctrl0 : mctrl generic map (hindex => 0, pindex => 0, romaddr => 16#000#, rommask => 16#E00#, ioaddr => 16#200#, iomask => 16#E00#, ramaddr => 16#C00#, rammask => 16#F00#, paddr => 0, pmask => 16#FFF#, srbanks => 1, wprot => 0, ram8 => CFG_MCTRL_RAM8BIT, ram16 => CFG_MCTRL_RAM16BIT, sden => CFG_MCTRL_SDEN, invclk => CFG_MCTRL_INVCLK, sepbus => CFG_MCTRL_SEPBUS) port map (rstn, clkm, memi, memo, ahbsi, ahbso(0), apbi, apbo(0), wpo, open); end generate; memi.brdyn <= '1'; memi.bexcn <= '1'; memi.writen <= '1'; memi.wrn <= "1111"; memi.bwidth <= "01"; mg0 : if CFG_MCTRL_LEON2 = 0 generate -- no prom/sram pads apbo(0) <= apb_none; ahbso(0) <= ahbs_none; rom_sel_pad : outpad generic map (tech => padtech) port map (flash_cen, vcc(0)); ssram_sel_pad : outpad generic map (tech => padtech) port map (ssram_cen, vcc(0)); io_sel_pad : outpad generic map (tech => padtech) port map (io_cen, vcc(0)); end generate; mgpads : if CFG_MCTRL_LEON2 = 1 generate -- flash/ssram data/address pads fsaddr_pad : outpadv generic map (width => 25, tech => padtech) port map (fs_addr, memo.address(25 downto 1)); fsdata_pad : iopadvv generic map (width => 32, tech => padtech) port map (fs_data, memo.data, memo.vbdrive, memi.data); -- flash only pads rom_sel_pad : outpad generic map (tech => padtech) port map (flash_cen, memo.romsn(0)); rom_oen_pad : outpad generic map (tech => padtech) port map (flash_oen, memo.oen); rom_wri_pad : outpad generic map (tech => padtech) port map (flash_wen, memo.writen); -- ssram only pads ssram_adv_n_pad : outpad generic map (tech => padtech) port map (ssram_advn, vcc(0)); ssram_adsp_n_pad : outpad generic map (tech => padtech) port map (ssram_adspn, vcc(0)); ssram_adscn_pad : outpad generic map (tech => padtech) port map (ssram_adscn, gnd(0)); ssram_sel_pad : outpad generic map ( tech => padtech) port map (ssram_cen, memo.ramsn(0)); ssram_oen_pad : outpad generic map (tech => padtech) port map (ssram_oen, memo.ramoen(0)); ssram_wen_pad : outpad generic map (tech => padtech) port map (ssram_wen, memo.wrn(0)); ssram_bw_pad : outpadv generic map (width => 4, tech => padtech) port map (ssram_bw, memo.mben); -- io data io_sel_pad : outpad generic map (tech => padtech) port map (io_cen, memo.iosn); io_wri_pad : outpad generic map (tech => padtech) port map (io_wen, memo.writen); end generate; ddrsp0 : if (CFG_DDR2SP /= 0) generate ddrc0 : ddr2spa generic map ( fabtech => fabtech, memtech => memtech, hindex => 3, haddr => 16#400#, hmask => 16#C00#, ioaddr => 1, pwron => CFG_DDR2SP_INIT, MHz => BOARD_FREQ/1000, clkmul => CFG_DDR2SP_FREQ/10, clkdiv => BOARD_FREQ/10000, ahbfreq => CPU_FREQ/1000, col => CFG_DDR2SP_COL, Mbyte => CFG_DDR2SP_SIZE, ddrbits => 64, readdly => 1, ddelayb0 => CFG_DDR2SP_DELAY0, ddelayb1 => CFG_DDR2SP_DELAY1, ddelayb2 => CFG_DDR2SP_DELAY2, ddelayb3 => CFG_DDR2SP_DELAY3, ddelayb4 => CFG_DDR2SP_DELAY4, ddelayb5 => CFG_DDR2SP_DELAY5, ddelayb6 => CFG_DDR2SP_DELAY6, ddelayb7 => CFG_DDR2SP_DELAY7, numidelctrl => 3, norefclk => 1, odten => 1, dqsse => 1) port map ( rst_ddr => resetn, rst_ahb => rstn, clk_ddr => clk, clk_ahb => clkm, clkref200 => gnd(0), lock => lock, clkddro => clkml, clkddri => clkml, ahbsi => ahbsi, ahbso => ahbso(3), ddr_clk => ddr_clkv, ddr_clkb => ddr_clkbv, ddr_clk_fb => gnd(0), ddr_cke => ddr_ckev, ddr_csb => ddr_csbv, ddr_web => ddr_web, ddr_rasb => ddr_rasb, ddr_casb => ddr_casb, ddr_dm => ddr_dm, ddr_dqs => ddr_dqs, ddr_dqsn => open, ddr_ad => ddr_ad, ddr_ba => ddr_ba, ddr_dq => ddr_dq, ddr_odt => ddr_odt); ddr_clk <= ddr_clkv(2 downto 0); ddr_clkb <= ddr_clkbv(2 downto 0); ddr_cke <= ddr_ckev(1 downto 0); ddr_csb <= ddr_csbv(1 downto 0); end generate; noddr : if (CFG_DDR2SP = 0) generate ddr_cke <= (others => '0'); ddr_csb <= (others => '1'); lock <= '1'; end generate; ----------------------------------------------------------------------- --- ETHERNET --------------------------------------------------------- ----------------------------------------------------------------------- eth1 : if CFG_GRETH = 1 generate -- Gaisler ethernet MAC e1 : grethm generic map(hindex => NCPU+CFG_AHB_UART+CFG_AHB_JTAG, pindex => 11, paddr => 11, pirq => 12, memtech => memtech, mdcscaler => CPU_FREQ/1000, enable_mdio => 1, fifosize => CFG_ETH_FIFO, nsync => 1, edcl => CFG_DSU_ETH, edclbufsz => CFG_ETH_BUF, macaddrh => CFG_ETH_ENM, macaddrl => CFG_ETH_ENL, phyrstadr => 18, ipaddrh => CFG_ETH_IPM, ipaddrl => CFG_ETH_IPL, giga => CFG_GRETH1G) port map( rst => rstn, clk => clkm, ahbmi => ahbmi, ahbmo => ahbmo(NCPU+CFG_AHB_UART+CFG_AHB_JTAG), apbi => apbi, apbo => apbo(11), ethi => ethi, etho => etho); emdio_pad : iopad generic map (tech => padtech) port map (phy_mii_data, etho.mdio_o, etho.mdio_oe, ethi.mdio_i); etxc_pad : inpad generic map (tech => padtech) port map (phy_tx_clk, ethi.tx_clk); erxc_pad : inpad generic map (tech => padtech) port map (phy_rx_clk, ethi.rx_clk); erxd_pad : inpadv generic map (tech => padtech, width => 8) port map (phy_rx_data, ethi.rxd(7 downto 0)); erxdv_pad : inpad generic map (tech => padtech) port map (phy_dv, ethi.rx_dv); erxer_pad : inpad generic map (tech => padtech) port map (phy_rx_er, ethi.rx_er); erxco_pad : inpad generic map (tech => padtech) port map (phy_col, ethi.rx_col); erxcr_pad : inpad generic map (tech => padtech) port map (phy_crs, ethi.rx_crs); etxd_pad : outpadv generic map (tech => padtech, width => 8) port map (phy_tx_data, etho.txd(7 downto 0)); etxen_pad : outpad generic map (tech => padtech) port map ( phy_tx_en, etho.tx_en); etxer_pad : outpad generic map (tech => padtech) port map (phy_tx_er, etho.tx_er); emdc_pad : outpad generic map (tech => padtech) port map (phy_mii_clk, etho.mdc); end generate; ---------------------------------------------------------------------- --- APB Bridge and various peripherals ------------------------------- ---------------------------------------------------------------------- apb0 : apbctrl -- AHB/APB bridge generic map (hindex => 1, haddr => CFG_APBADDR) port map (rstn, clkm, ahbsi, ahbso(1), apbi, apbo); ua1 : if CFG_UART1_ENABLE = 1 generate uart1 : ft245uart -- UART 1 generic map (pindex => 1, paddr => 1, pirq => 2, console => dbguart) port map (rstn, clkm, apbi, apbo(1), ft245i, ft245o); ft245_vbdrive <= (others => ft245o.oen); ft245_data_pad : iopadvv generic map (width => 8, tech => padtech) port map (ft245_data, ft245o.wrdata, ft245_vbdrive, ft245i.rddata); ft245_rdn_pad : outpad generic map (tech => padtech) port map (ft245_rdn, ft245o.rdn); ft245_wr_pad : outpad generic map (tech => padtech) port map (ft245_wr, ft245o.wr); ft245_rxfn_pad : inpad generic map (tech => padtech) port map (ft245_rxfn, ft245i.rxfn); ft245_txen_pad : inpad generic map (tech => padtech) port map (ft245_txen, ft245i.txen); ft245_pwrenn_pad : inpad generic map (tech => padtech) port map (ft245_pwrenn, ft245i.pwrenn); end generate; noua0 : if CFG_UART1_ENABLE = 0 generate apbo(1) <= apb_none; end generate; irqctrl : if CFG_IRQ3_ENABLE /= 0 generate irqctrl0 : irqmp -- interrupt controller generic map (pindex => 2, paddr => 2, ncpu => NCPU) port map (rstn, clkm, apbi, apbo(2), irqo, irqi); end generate; irq3 : if CFG_IRQ3_ENABLE = 0 generate x : for i in 0 to NCPU-1 generate irqi(i).irl <= "0000"; end generate; apbo(2) <= apb_none; end generate; gpt : if CFG_GPT_ENABLE /= 0 generate timer0 : gptimer -- timer unit generic map (pindex => 3, paddr => 3, pirq => CFG_GPT_IRQ, sepirq => CFG_GPT_SEPIRQ, sbits => CFG_GPT_SW, ntimers => CFG_GPT_NTIM, nbits => CFG_GPT_TW) port map (rstn, clkm, apbi, apbo(3), gpti, open); gpti.dhalt <= dsuo.tstop; gpti.extclk <= '0'; end generate; notim : if CFG_GPT_ENABLE = 0 generate apbo(3) <= apb_none; end generate; gpio0 : if CFG_GRGPIO_ENABLE /= 0 generate -- GPIO unit grgpio0: grgpio generic map(pindex => 5, paddr => 5, imask => CFG_GRGPIO_IMASK, nbits => CFG_GRGPIO_WIDTH) port map(rst => rstn, clk => clkm, apbi => apbi, apbo => apbo(5), gpioi => gpioi, gpioo => gpioo); pio_pads : for i in 0 to CFG_GRGPIO_WIDTH-1 generate pio_pad : iopad generic map (tech => padtech) port map (gpio(i), gpioo.dout(i), gpioo.oen(i), gpioi.din(i)); end generate; end generate; ----------------------------------------------------------------------- --- AHB ROM ---------------------------------------------------------- ----------------------------------------------------------------------- bpromgen : if CFG_AHBROMEN /= 0 generate brom : entity work.ahbrom generic map (hindex => 6, haddr => CFG_AHBRODDR, pipe => CFG_AHBROPIP) port map ( rstn, clkm, ahbsi, ahbso(6)); end generate; nobpromgen : if CFG_AHBROMEN = 0 generate ahbso(6) <= ahbs_none; end generate; ----------------------------------------------------------------------- --- AHB RAM ---------------------------------------------------------- ----------------------------------------------------------------------- ahbramgen : if CFG_AHBRAMEN = 1 generate ahbram0 : ahbram generic map (hindex => 7, haddr => CFG_AHBRADDR, tech => CFG_MEMTECH, kbytes => CFG_AHBRSZ, pipe => CFG_AHBRPIPE) port map (rstn, clkm, ahbsi, ahbso(7)); end generate; nram : if CFG_AHBRAMEN = 0 generate ahbso(7) <= ahbs_none; end generate; ----------------------------------------------------------------------- --- Drive unused bus elements --------------------------------------- ----------------------------------------------------------------------- nam1 : for i in (NCPU+CFG_AHB_UART+CFG_AHB_JTAG+CFG_GRETH) to NAHBMST-1 generate ahbmo(i) <= ahbm_none; end generate; -- nap0 : for i in 6 to NAPBSLV-1 generate apbo(i) <= apb_none; end generate; -- nah0 : for i in 7 to NAHBSLV-1 generate ahbso(i) <= ahbs_none; end generate; ----------------------------------------------------------------------- --- Boot message ---------------------------------------------------- ----------------------------------------------------------------------- -- pragma translate_off x : report_design generic map ( msg1 => "LEON3 Altera EP2SGX90 SSRAM/DDR Demonstration design", fabtech => tech_table(fabtech), memtech => tech_table(memtech), mdel => 1 ); -- pragma translate_on end;
-- Copyright 1986-2017 Xilinx, Inc. All Rights Reserved. -- -------------------------------------------------------------------------------- -- Tool Version: Vivado v.2017.2 (win64) Build 1909853 Thu Jun 15 18:39:09 MDT 2017 -- Date : Sat Sep 23 13:26:00 2017 -- Host : DarkCube running 64-bit major release (build 9200) -- Command : write_vhdl -force -mode synth_stub -rename_top decalper_eb_ot_sdeen_pot_pi_dehcac_xnilix -prefix -- decalper_eb_ot_sdeen_pot_pi_dehcac_xnilix_ zqynq_lab_1_design_auto_pc_1_stub.vhdl -- Design : zqynq_lab_1_design_auto_pc_1 -- Purpose : Stub declaration of top-level module interface -- Device : xc7z020clg484-1 -- -------------------------------------------------------------------------------- library IEEE; use IEEE.STD_LOGIC_1164.ALL; entity decalper_eb_ot_sdeen_pot_pi_dehcac_xnilix is Port ( aclk : in STD_LOGIC; aresetn : in STD_LOGIC; s_axi_awaddr : in STD_LOGIC_VECTOR ( 31 downto 0 ); s_axi_awlen : in STD_LOGIC_VECTOR ( 7 downto 0 ); s_axi_awsize : in STD_LOGIC_VECTOR ( 2 downto 0 ); s_axi_awburst : in STD_LOGIC_VECTOR ( 1 downto 0 ); s_axi_awlock : in STD_LOGIC_VECTOR ( 0 to 0 ); s_axi_awcache : in STD_LOGIC_VECTOR ( 3 downto 0 ); s_axi_awprot : in STD_LOGIC_VECTOR ( 2 downto 0 ); s_axi_awregion : in STD_LOGIC_VECTOR ( 3 downto 0 ); s_axi_awqos : in STD_LOGIC_VECTOR ( 3 downto 0 ); s_axi_awvalid : in STD_LOGIC; s_axi_awready : out STD_LOGIC; s_axi_wdata : in STD_LOGIC_VECTOR ( 31 downto 0 ); s_axi_wstrb : in STD_LOGIC_VECTOR ( 3 downto 0 ); s_axi_wlast : in STD_LOGIC; s_axi_wvalid : in STD_LOGIC; s_axi_wready : out STD_LOGIC; s_axi_bresp : out STD_LOGIC_VECTOR ( 1 downto 0 ); s_axi_bvalid : out STD_LOGIC; s_axi_bready : in STD_LOGIC; s_axi_araddr : in STD_LOGIC_VECTOR ( 31 downto 0 ); s_axi_arlen : in STD_LOGIC_VECTOR ( 7 downto 0 ); s_axi_arsize : in STD_LOGIC_VECTOR ( 2 downto 0 ); s_axi_arburst : in STD_LOGIC_VECTOR ( 1 downto 0 ); s_axi_arlock : in STD_LOGIC_VECTOR ( 0 to 0 ); s_axi_arcache : in STD_LOGIC_VECTOR ( 3 downto 0 ); s_axi_arprot : in STD_LOGIC_VECTOR ( 2 downto 0 ); s_axi_arregion : in STD_LOGIC_VECTOR ( 3 downto 0 ); s_axi_arqos : in STD_LOGIC_VECTOR ( 3 downto 0 ); s_axi_arvalid : in STD_LOGIC; s_axi_arready : out STD_LOGIC; s_axi_rdata : out STD_LOGIC_VECTOR ( 31 downto 0 ); s_axi_rresp : out STD_LOGIC_VECTOR ( 1 downto 0 ); s_axi_rlast : out STD_LOGIC; s_axi_rvalid : out STD_LOGIC; s_axi_rready : in STD_LOGIC; m_axi_awaddr : out STD_LOGIC_VECTOR ( 31 downto 0 ); m_axi_awprot : out STD_LOGIC_VECTOR ( 2 downto 0 ); m_axi_awvalid : out STD_LOGIC; m_axi_awready : in STD_LOGIC; m_axi_wdata : out STD_LOGIC_VECTOR ( 31 downto 0 ); m_axi_wstrb : out STD_LOGIC_VECTOR ( 3 downto 0 ); m_axi_wvalid : out STD_LOGIC; m_axi_wready : in STD_LOGIC; m_axi_bresp : in STD_LOGIC_VECTOR ( 1 downto 0 ); m_axi_bvalid : in STD_LOGIC; m_axi_bready : out STD_LOGIC; m_axi_araddr : out STD_LOGIC_VECTOR ( 31 downto 0 ); m_axi_arprot : out STD_LOGIC_VECTOR ( 2 downto 0 ); m_axi_arvalid : out STD_LOGIC; m_axi_arready : in STD_LOGIC; m_axi_rdata : in STD_LOGIC_VECTOR ( 31 downto 0 ); m_axi_rresp : in STD_LOGIC_VECTOR ( 1 downto 0 ); m_axi_rvalid : in STD_LOGIC; m_axi_rready : out STD_LOGIC ); end decalper_eb_ot_sdeen_pot_pi_dehcac_xnilix; architecture stub of decalper_eb_ot_sdeen_pot_pi_dehcac_xnilix is attribute syn_black_box : boolean; attribute black_box_pad_pin : string; attribute syn_black_box of stub : architecture is true; attribute black_box_pad_pin of stub : architecture is "aclk,aresetn,s_axi_awaddr[31:0],s_axi_awlen[7:0],s_axi_awsize[2:0],s_axi_awburst[1:0],s_axi_awlock[0:0],s_axi_awcache[3:0],s_axi_awprot[2:0],s_axi_awregion[3:0],s_axi_awqos[3:0],s_axi_awvalid,s_axi_awready,s_axi_wdata[31:0],s_axi_wstrb[3:0],s_axi_wlast,s_axi_wvalid,s_axi_wready,s_axi_bresp[1:0],s_axi_bvalid,s_axi_bready,s_axi_araddr[31:0],s_axi_arlen[7:0],s_axi_arsize[2:0],s_axi_arburst[1:0],s_axi_arlock[0:0],s_axi_arcache[3:0],s_axi_arprot[2:0],s_axi_arregion[3:0],s_axi_arqos[3:0],s_axi_arvalid,s_axi_arready,s_axi_rdata[31:0],s_axi_rresp[1:0],s_axi_rlast,s_axi_rvalid,s_axi_rready,m_axi_awaddr[31:0],m_axi_awprot[2:0],m_axi_awvalid,m_axi_awready,m_axi_wdata[31:0],m_axi_wstrb[3:0],m_axi_wvalid,m_axi_wready,m_axi_bresp[1:0],m_axi_bvalid,m_axi_bready,m_axi_araddr[31:0],m_axi_arprot[2:0],m_axi_arvalid,m_axi_arready,m_axi_rdata[31:0],m_axi_rresp[1:0],m_axi_rvalid,m_axi_rready"; attribute X_CORE_INFO : string; attribute X_CORE_INFO of stub : architecture is "axi_protocol_converter_v2_1_13_axi_protocol_converter,Vivado 2017.2"; begin end;
architecture rtl of fifo is begin my_signal <= '1' when input = "00" else my_signal2 or my_sig3 when input = "01" else my_sig4 and my_sig5 when input = "10" else '0'; my_signal <= '1' when input = "0000" else my_signal2 or my_sig3 when input = "0100" and input = "1100" else my_sig4 when input = "0010" else '0'; my_signal <= '1' when input(1 downto 0) = "00" and func1(func2(G_VALUE1), to_integer(cons1(37 downto 0))) = 256 else '0' when input(3 downto 0) = "0010" else 'Z'; my_signal <= '1' when input(1 downto 0) = "00" and func1(func2(G_VALUE1), to_integer(cons1(37 downto 0))) = 256 else '0' when input(3 downto 0) = "0010" else 'Z'; my_signal <= '1' when a = "0000" and func1(345) or b = "1000" and func2(567) and c = "00" else sig1 when a = "1000" and func2(560) and b = "0010" else '0'; my_signal <= '1' when input(1 downto 0) = "00" and func1(func2(G_VALUE1), to_integer(cons1(37 downto 0))) = 256 else my_signal when input(3 downto 0) = "0010" else 'Z'; -- Testing no code after assignment my_signal <= '1' when input(1 downto 0) = "00" and func1(func2(G_VALUE1), to_integer(cons1(37 downto 0))) = 256 else my_signal when input(3 downto 0) = "0010" else 'Z'; my_signal <= (others => '0') when input(1 downto 0) = "00" and func1(func2(G_VALUE1), to_integer(cons1(37 downto 0))) = 256 else my_signal when input(3 downto 0) = "0010" else 'Z'; end architecture rtl;
-- (c) Copyright 1995-2016 Xilinx, Inc. All rights reserved. -- -- This file contains confidential and proprietary information -- of Xilinx, Inc. and is protected under U.S. and -- international copyright and other intellectual property -- laws. -- -- DISCLAIMER -- This disclaimer is not a license and does not grant any -- rights to the materials distributed herewith. Except as -- otherwise provided in a valid license issued to you by -- Xilinx, and to the maximum extent permitted by applicable -- law: (1) THESE MATERIALS ARE MADE AVAILABLE "AS IS" AND -- WITH ALL FAULTS, AND XILINX HEREBY DISCLAIMS ALL WARRANTIES -- AND CONDITIONS, EXPRESS, IMPLIED, OR STATUTORY, INCLUDING -- BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, NON- -- INFRINGEMENT, OR FITNESS FOR ANY PARTICULAR PURPOSE; and -- (2) Xilinx shall not be liable (whether in contract or tort, -- including negligence, or under any other theory of -- liability) for any loss or damage of any kind or nature -- related to, arising under or in connection with these -- materials, including for any direct, or any indirect, -- special, incidental, or consequential loss or damage -- (including loss of data, profits, goodwill, or any type of -- loss or damage suffered as a result of any action brought -- by a third party) even if such damage or loss was -- reasonably foreseeable or Xilinx had been advised of the -- possibility of the same. -- -- CRITICAL APPLICATIONS -- Xilinx products are not designed or intended to be fail- -- safe, or for use in any application requiring fail-safe -- performance, such as life-support or safety devices or -- systems, Class III medical devices, nuclear facilities, -- applications related to the deployment of airbags, or any -- other applications that could lead to death, personal -- injury, or severe property or environmental damage -- (individually and collectively, "Critical -- Applications"). Customer assumes the sole risk and -- liability of any use of Xilinx products in Critical -- Applications, subject only to applicable laws and -- regulations governing limitations on product liability. -- -- THIS COPYRIGHT NOTICE AND DISCLAIMER MUST BE RETAINED AS -- PART OF THIS FILE AT ALL TIMES. -- -- DO NOT MODIFY THIS FILE. -- IP VLNV: xilinx.com:ip:floating_point:7.1 -- IP Revision: 2 LIBRARY ieee; USE ieee.std_logic_1164.ALL; USE ieee.numeric_std.ALL; LIBRARY floating_point_v7_1_2; USE floating_point_v7_1_2.floating_point_v7_1_2; ENTITY doHistStretch_ap_sitofp_4_no_dsp_32 IS PORT ( aclk : IN STD_LOGIC; aclken : IN STD_LOGIC; s_axis_a_tvalid : IN STD_LOGIC; s_axis_a_tdata : IN STD_LOGIC_VECTOR(31 DOWNTO 0); m_axis_result_tvalid : OUT STD_LOGIC; m_axis_result_tdata : OUT STD_LOGIC_VECTOR(31 DOWNTO 0) ); END doHistStretch_ap_sitofp_4_no_dsp_32; ARCHITECTURE doHistStretch_ap_sitofp_4_no_dsp_32_arch OF doHistStretch_ap_sitofp_4_no_dsp_32 IS ATTRIBUTE DowngradeIPIdentifiedWarnings : STRING; ATTRIBUTE DowngradeIPIdentifiedWarnings OF doHistStretch_ap_sitofp_4_no_dsp_32_arch: ARCHITECTURE IS "yes"; COMPONENT floating_point_v7_1_2 IS GENERIC ( C_XDEVICEFAMILY : STRING; C_HAS_ADD : INTEGER; C_HAS_SUBTRACT : INTEGER; C_HAS_MULTIPLY : INTEGER; C_HAS_DIVIDE : INTEGER; C_HAS_SQRT : INTEGER; C_HAS_COMPARE : INTEGER; C_HAS_FIX_TO_FLT : INTEGER; C_HAS_FLT_TO_FIX : INTEGER; C_HAS_FLT_TO_FLT : INTEGER; C_HAS_RECIP : INTEGER; C_HAS_RECIP_SQRT : INTEGER; C_HAS_ABSOLUTE : INTEGER; C_HAS_LOGARITHM : INTEGER; C_HAS_EXPONENTIAL : INTEGER; C_HAS_FMA : INTEGER; C_HAS_FMS : INTEGER; C_HAS_ACCUMULATOR_A : INTEGER; C_HAS_ACCUMULATOR_S : INTEGER; C_A_WIDTH : INTEGER; C_A_FRACTION_WIDTH : INTEGER; C_B_WIDTH : INTEGER; C_B_FRACTION_WIDTH : INTEGER; C_C_WIDTH : INTEGER; C_C_FRACTION_WIDTH : INTEGER; C_RESULT_WIDTH : INTEGER; C_RESULT_FRACTION_WIDTH : INTEGER; C_COMPARE_OPERATION : INTEGER; C_LATENCY : INTEGER; C_OPTIMIZATION : INTEGER; C_MULT_USAGE : INTEGER; C_BRAM_USAGE : INTEGER; C_RATE : INTEGER; C_ACCUM_INPUT_MSB : INTEGER; C_ACCUM_MSB : INTEGER; C_ACCUM_LSB : INTEGER; C_HAS_UNDERFLOW : INTEGER; C_HAS_OVERFLOW : INTEGER; C_HAS_INVALID_OP : INTEGER; C_HAS_DIVIDE_BY_ZERO : INTEGER; C_HAS_ACCUM_OVERFLOW : INTEGER; C_HAS_ACCUM_INPUT_OVERFLOW : INTEGER; C_HAS_ACLKEN : INTEGER; C_HAS_ARESETN : INTEGER; C_THROTTLE_SCHEME : INTEGER; C_HAS_A_TUSER : INTEGER; C_HAS_A_TLAST : INTEGER; C_HAS_B : INTEGER; C_HAS_B_TUSER : INTEGER; C_HAS_B_TLAST : INTEGER; C_HAS_C : INTEGER; C_HAS_C_TUSER : INTEGER; C_HAS_C_TLAST : INTEGER; C_HAS_OPERATION : INTEGER; C_HAS_OPERATION_TUSER : INTEGER; C_HAS_OPERATION_TLAST : INTEGER; C_HAS_RESULT_TUSER : INTEGER; C_HAS_RESULT_TLAST : INTEGER; C_TLAST_RESOLUTION : INTEGER; C_A_TDATA_WIDTH : INTEGER; C_A_TUSER_WIDTH : INTEGER; C_B_TDATA_WIDTH : INTEGER; C_B_TUSER_WIDTH : INTEGER; C_C_TDATA_WIDTH : INTEGER; C_C_TUSER_WIDTH : INTEGER; C_OPERATION_TDATA_WIDTH : INTEGER; C_OPERATION_TUSER_WIDTH : INTEGER; C_RESULT_TDATA_WIDTH : INTEGER; C_RESULT_TUSER_WIDTH : INTEGER; C_FIXED_DATA_UNSIGNED : INTEGER ); PORT ( aclk : IN STD_LOGIC; aclken : IN STD_LOGIC; aresetn : IN STD_LOGIC; s_axis_a_tvalid : IN STD_LOGIC; s_axis_a_tready : OUT STD_LOGIC; s_axis_a_tdata : IN STD_LOGIC_VECTOR(31 DOWNTO 0); s_axis_a_tuser : IN STD_LOGIC_VECTOR(0 DOWNTO 0); s_axis_a_tlast : IN STD_LOGIC; s_axis_b_tvalid : IN STD_LOGIC; s_axis_b_tready : OUT STD_LOGIC; s_axis_b_tdata : IN STD_LOGIC_VECTOR(31 DOWNTO 0); s_axis_b_tuser : IN STD_LOGIC_VECTOR(0 DOWNTO 0); s_axis_b_tlast : IN STD_LOGIC; s_axis_c_tvalid : IN STD_LOGIC; s_axis_c_tready : OUT STD_LOGIC; s_axis_c_tdata : IN STD_LOGIC_VECTOR(31 DOWNTO 0); s_axis_c_tuser : IN STD_LOGIC_VECTOR(0 DOWNTO 0); s_axis_c_tlast : IN STD_LOGIC; s_axis_operation_tvalid : IN STD_LOGIC; s_axis_operation_tready : OUT STD_LOGIC; s_axis_operation_tdata : IN STD_LOGIC_VECTOR(7 DOWNTO 0); s_axis_operation_tuser : IN STD_LOGIC_VECTOR(0 DOWNTO 0); s_axis_operation_tlast : IN STD_LOGIC; m_axis_result_tvalid : OUT STD_LOGIC; m_axis_result_tready : IN STD_LOGIC; m_axis_result_tdata : OUT STD_LOGIC_VECTOR(31 DOWNTO 0); m_axis_result_tuser : OUT STD_LOGIC_VECTOR(0 DOWNTO 0); m_axis_result_tlast : OUT STD_LOGIC ); END COMPONENT floating_point_v7_1_2; ATTRIBUTE X_CORE_INFO : STRING; ATTRIBUTE X_CORE_INFO OF doHistStretch_ap_sitofp_4_no_dsp_32_arch: ARCHITECTURE IS "floating_point_v7_1_2,Vivado 2016.1"; ATTRIBUTE CHECK_LICENSE_TYPE : STRING; ATTRIBUTE CHECK_LICENSE_TYPE OF doHistStretch_ap_sitofp_4_no_dsp_32_arch : ARCHITECTURE IS "doHistStretch_ap_sitofp_4_no_dsp_32,floating_point_v7_1_2,{}"; ATTRIBUTE CORE_GENERATION_INFO : STRING; ATTRIBUTE CORE_GENERATION_INFO OF doHistStretch_ap_sitofp_4_no_dsp_32_arch: ARCHITECTURE IS "doHistStretch_ap_sitofp_4_no_dsp_32,floating_point_v7_1_2,{x_ipProduct=Vivado 2016.1,x_ipVendor=xilinx.com,x_ipLibrary=ip,x_ipName=floating_point,x_ipVersion=7.1,x_ipCoreRevision=2,x_ipLanguage=VHDL,x_ipSimLanguage=MIXED,C_XDEVICEFAMILY=virtex7,C_HAS_ADD=0,C_HAS_SUBTRACT=0,C_HAS_MULTIPLY=0,C_HAS_DIVIDE=0,C_HAS_SQRT=0,C_HAS_COMPARE=0,C_HAS_FIX_TO_FLT=1,C_HAS_FLT_TO_FIX=0,C_HAS_FLT_TO_FLT=0,C_HAS_RECIP=0,C_HAS_RECIP_SQRT=0,C_HAS_ABSOLUTE=0,C_HAS_LOGARITHM=0,C_HAS_EXPONENTIAL=0,C_HAS_FMA=0,C_HAS_FM" & "S=0,C_HAS_ACCUMULATOR_A=0,C_HAS_ACCUMULATOR_S=0,C_A_WIDTH=32,C_A_FRACTION_WIDTH=0,C_B_WIDTH=32,C_B_FRACTION_WIDTH=0,C_C_WIDTH=32,C_C_FRACTION_WIDTH=0,C_RESULT_WIDTH=32,C_RESULT_FRACTION_WIDTH=24,C_COMPARE_OPERATION=8,C_LATENCY=4,C_OPTIMIZATION=1,C_MULT_USAGE=0,C_BRAM_USAGE=0,C_RATE=1,C_ACCUM_INPUT_MSB=32,C_ACCUM_MSB=32,C_ACCUM_LSB=-31,C_HAS_UNDERFLOW=0,C_HAS_OVERFLOW=0,C_HAS_INVALID_OP=0,C_HAS_DIVIDE_BY_ZERO=0,C_HAS_ACCUM_OVERFLOW=0,C_HAS_ACCUM_INPUT_OVERFLOW=0,C_HAS_ACLKEN=1,C_HAS_ARESETN=0,C_T" & "HROTTLE_SCHEME=3,C_HAS_A_TUSER=0,C_HAS_A_TLAST=0,C_HAS_B=0,C_HAS_B_TUSER=0,C_HAS_B_TLAST=0,C_HAS_C=0,C_HAS_C_TUSER=0,C_HAS_C_TLAST=0,C_HAS_OPERATION=0,C_HAS_OPERATION_TUSER=0,C_HAS_OPERATION_TLAST=0,C_HAS_RESULT_TUSER=0,C_HAS_RESULT_TLAST=0,C_TLAST_RESOLUTION=0,C_A_TDATA_WIDTH=32,C_A_TUSER_WIDTH=1,C_B_TDATA_WIDTH=32,C_B_TUSER_WIDTH=1,C_C_TDATA_WIDTH=32,C_C_TUSER_WIDTH=1,C_OPERATION_TDATA_WIDTH=8,C_OPERATION_TUSER_WIDTH=1,C_RESULT_TDATA_WIDTH=32,C_RESULT_TUSER_WIDTH=1,C_FIXED_DATA_UNSIGNED=0}"; ATTRIBUTE X_INTERFACE_INFO : STRING; ATTRIBUTE X_INTERFACE_INFO OF aclk: SIGNAL IS "xilinx.com:signal:clock:1.0 aclk_intf CLK"; ATTRIBUTE X_INTERFACE_INFO OF aclken: SIGNAL IS "xilinx.com:signal:clockenable:1.0 aclken_intf CE"; ATTRIBUTE X_INTERFACE_INFO OF s_axis_a_tvalid: SIGNAL IS "xilinx.com:interface:axis:1.0 S_AXIS_A TVALID"; ATTRIBUTE X_INTERFACE_INFO OF s_axis_a_tdata: SIGNAL IS "xilinx.com:interface:axis:1.0 S_AXIS_A TDATA"; ATTRIBUTE X_INTERFACE_INFO OF m_axis_result_tvalid: SIGNAL IS "xilinx.com:interface:axis:1.0 M_AXIS_RESULT TVALID"; ATTRIBUTE X_INTERFACE_INFO OF m_axis_result_tdata: SIGNAL IS "xilinx.com:interface:axis:1.0 M_AXIS_RESULT TDATA"; BEGIN U0 : floating_point_v7_1_2 GENERIC MAP ( C_XDEVICEFAMILY => "virtex7", C_HAS_ADD => 0, C_HAS_SUBTRACT => 0, C_HAS_MULTIPLY => 0, C_HAS_DIVIDE => 0, C_HAS_SQRT => 0, C_HAS_COMPARE => 0, C_HAS_FIX_TO_FLT => 1, C_HAS_FLT_TO_FIX => 0, C_HAS_FLT_TO_FLT => 0, C_HAS_RECIP => 0, C_HAS_RECIP_SQRT => 0, C_HAS_ABSOLUTE => 0, C_HAS_LOGARITHM => 0, C_HAS_EXPONENTIAL => 0, C_HAS_FMA => 0, C_HAS_FMS => 0, C_HAS_ACCUMULATOR_A => 0, C_HAS_ACCUMULATOR_S => 0, C_A_WIDTH => 32, C_A_FRACTION_WIDTH => 0, C_B_WIDTH => 32, C_B_FRACTION_WIDTH => 0, C_C_WIDTH => 32, C_C_FRACTION_WIDTH => 0, C_RESULT_WIDTH => 32, C_RESULT_FRACTION_WIDTH => 24, C_COMPARE_OPERATION => 8, C_LATENCY => 4, C_OPTIMIZATION => 1, C_MULT_USAGE => 0, C_BRAM_USAGE => 0, C_RATE => 1, C_ACCUM_INPUT_MSB => 32, C_ACCUM_MSB => 32, C_ACCUM_LSB => -31, C_HAS_UNDERFLOW => 0, C_HAS_OVERFLOW => 0, C_HAS_INVALID_OP => 0, C_HAS_DIVIDE_BY_ZERO => 0, C_HAS_ACCUM_OVERFLOW => 0, C_HAS_ACCUM_INPUT_OVERFLOW => 0, C_HAS_ACLKEN => 1, C_HAS_ARESETN => 0, C_THROTTLE_SCHEME => 3, C_HAS_A_TUSER => 0, C_HAS_A_TLAST => 0, C_HAS_B => 0, C_HAS_B_TUSER => 0, C_HAS_B_TLAST => 0, C_HAS_C => 0, C_HAS_C_TUSER => 0, C_HAS_C_TLAST => 0, C_HAS_OPERATION => 0, C_HAS_OPERATION_TUSER => 0, C_HAS_OPERATION_TLAST => 0, C_HAS_RESULT_TUSER => 0, C_HAS_RESULT_TLAST => 0, C_TLAST_RESOLUTION => 0, C_A_TDATA_WIDTH => 32, C_A_TUSER_WIDTH => 1, C_B_TDATA_WIDTH => 32, C_B_TUSER_WIDTH => 1, C_C_TDATA_WIDTH => 32, C_C_TUSER_WIDTH => 1, C_OPERATION_TDATA_WIDTH => 8, C_OPERATION_TUSER_WIDTH => 1, C_RESULT_TDATA_WIDTH => 32, C_RESULT_TUSER_WIDTH => 1, C_FIXED_DATA_UNSIGNED => 0 ) PORT MAP ( aclk => aclk, aclken => aclken, aresetn => '1', s_axis_a_tvalid => s_axis_a_tvalid, s_axis_a_tdata => s_axis_a_tdata, s_axis_a_tuser => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 1)), s_axis_a_tlast => '0', s_axis_b_tvalid => '0', s_axis_b_tdata => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 32)), s_axis_b_tuser => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 1)), s_axis_b_tlast => '0', s_axis_c_tvalid => '0', s_axis_c_tdata => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 32)), s_axis_c_tuser => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 1)), s_axis_c_tlast => '0', s_axis_operation_tvalid => '0', s_axis_operation_tdata => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 8)), s_axis_operation_tuser => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 1)), s_axis_operation_tlast => '0', m_axis_result_tvalid => m_axis_result_tvalid, m_axis_result_tready => '0', m_axis_result_tdata => m_axis_result_tdata ); END doHistStretch_ap_sitofp_4_no_dsp_32_arch;
-- (c) Copyright 1995-2016 Xilinx, Inc. All rights reserved. -- -- This file contains confidential and proprietary information -- of Xilinx, Inc. and is protected under U.S. and -- international copyright and other intellectual property -- laws. -- -- DISCLAIMER -- This disclaimer is not a license and does not grant any -- rights to the materials distributed herewith. Except as -- otherwise provided in a valid license issued to you by -- Xilinx, and to the maximum extent permitted by applicable -- law: (1) THESE MATERIALS ARE MADE AVAILABLE "AS IS" AND -- WITH ALL FAULTS, AND XILINX HEREBY DISCLAIMS ALL WARRANTIES -- AND CONDITIONS, EXPRESS, IMPLIED, OR STATUTORY, INCLUDING -- BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, NON- -- INFRINGEMENT, OR FITNESS FOR ANY PARTICULAR PURPOSE; and -- (2) Xilinx shall not be liable (whether in contract or tort, -- including negligence, or under any other theory of -- liability) for any loss or damage of any kind or nature -- related to, arising under or in connection with these -- materials, including for any direct, or any indirect, -- special, incidental, or consequential loss or damage -- (including loss of data, profits, goodwill, or any type of -- loss or damage suffered as a result of any action brought -- by a third party) even if such damage or loss was -- reasonably foreseeable or Xilinx had been advised of the -- possibility of the same. -- -- CRITICAL APPLICATIONS -- Xilinx products are not designed or intended to be fail- -- safe, or for use in any application requiring fail-safe -- performance, such as life-support or safety devices or -- systems, Class III medical devices, nuclear facilities, -- applications related to the deployment of airbags, or any -- other applications that could lead to death, personal -- injury, or severe property or environmental damage -- (individually and collectively, "Critical -- Applications"). Customer assumes the sole risk and -- liability of any use of Xilinx products in Critical -- Applications, subject only to applicable laws and -- regulations governing limitations on product liability. -- -- THIS COPYRIGHT NOTICE AND DISCLAIMER MUST BE RETAINED AS -- PART OF THIS FILE AT ALL TIMES. -- -- DO NOT MODIFY THIS FILE. -- IP VLNV: xilinx.com:ip:floating_point:7.1 -- IP Revision: 2 LIBRARY ieee; USE ieee.std_logic_1164.ALL; USE ieee.numeric_std.ALL; LIBRARY floating_point_v7_1_2; USE floating_point_v7_1_2.floating_point_v7_1_2; ENTITY doHistStretch_ap_sitofp_4_no_dsp_32 IS PORT ( aclk : IN STD_LOGIC; aclken : IN STD_LOGIC; s_axis_a_tvalid : IN STD_LOGIC; s_axis_a_tdata : IN STD_LOGIC_VECTOR(31 DOWNTO 0); m_axis_result_tvalid : OUT STD_LOGIC; m_axis_result_tdata : OUT STD_LOGIC_VECTOR(31 DOWNTO 0) ); END doHistStretch_ap_sitofp_4_no_dsp_32; ARCHITECTURE doHistStretch_ap_sitofp_4_no_dsp_32_arch OF doHistStretch_ap_sitofp_4_no_dsp_32 IS ATTRIBUTE DowngradeIPIdentifiedWarnings : STRING; ATTRIBUTE DowngradeIPIdentifiedWarnings OF doHistStretch_ap_sitofp_4_no_dsp_32_arch: ARCHITECTURE IS "yes"; COMPONENT floating_point_v7_1_2 IS GENERIC ( C_XDEVICEFAMILY : STRING; C_HAS_ADD : INTEGER; C_HAS_SUBTRACT : INTEGER; C_HAS_MULTIPLY : INTEGER; C_HAS_DIVIDE : INTEGER; C_HAS_SQRT : INTEGER; C_HAS_COMPARE : INTEGER; C_HAS_FIX_TO_FLT : INTEGER; C_HAS_FLT_TO_FIX : INTEGER; C_HAS_FLT_TO_FLT : INTEGER; C_HAS_RECIP : INTEGER; C_HAS_RECIP_SQRT : INTEGER; C_HAS_ABSOLUTE : INTEGER; C_HAS_LOGARITHM : INTEGER; C_HAS_EXPONENTIAL : INTEGER; C_HAS_FMA : INTEGER; C_HAS_FMS : INTEGER; C_HAS_ACCUMULATOR_A : INTEGER; C_HAS_ACCUMULATOR_S : INTEGER; C_A_WIDTH : INTEGER; C_A_FRACTION_WIDTH : INTEGER; C_B_WIDTH : INTEGER; C_B_FRACTION_WIDTH : INTEGER; C_C_WIDTH : INTEGER; C_C_FRACTION_WIDTH : INTEGER; C_RESULT_WIDTH : INTEGER; C_RESULT_FRACTION_WIDTH : INTEGER; C_COMPARE_OPERATION : INTEGER; C_LATENCY : INTEGER; C_OPTIMIZATION : INTEGER; C_MULT_USAGE : INTEGER; C_BRAM_USAGE : INTEGER; C_RATE : INTEGER; C_ACCUM_INPUT_MSB : INTEGER; C_ACCUM_MSB : INTEGER; C_ACCUM_LSB : INTEGER; C_HAS_UNDERFLOW : INTEGER; C_HAS_OVERFLOW : INTEGER; C_HAS_INVALID_OP : INTEGER; C_HAS_DIVIDE_BY_ZERO : INTEGER; C_HAS_ACCUM_OVERFLOW : INTEGER; C_HAS_ACCUM_INPUT_OVERFLOW : INTEGER; C_HAS_ACLKEN : INTEGER; C_HAS_ARESETN : INTEGER; C_THROTTLE_SCHEME : INTEGER; C_HAS_A_TUSER : INTEGER; C_HAS_A_TLAST : INTEGER; C_HAS_B : INTEGER; C_HAS_B_TUSER : INTEGER; C_HAS_B_TLAST : INTEGER; C_HAS_C : INTEGER; C_HAS_C_TUSER : INTEGER; C_HAS_C_TLAST : INTEGER; C_HAS_OPERATION : INTEGER; C_HAS_OPERATION_TUSER : INTEGER; C_HAS_OPERATION_TLAST : INTEGER; C_HAS_RESULT_TUSER : INTEGER; C_HAS_RESULT_TLAST : INTEGER; C_TLAST_RESOLUTION : INTEGER; C_A_TDATA_WIDTH : INTEGER; C_A_TUSER_WIDTH : INTEGER; C_B_TDATA_WIDTH : INTEGER; C_B_TUSER_WIDTH : INTEGER; C_C_TDATA_WIDTH : INTEGER; C_C_TUSER_WIDTH : INTEGER; C_OPERATION_TDATA_WIDTH : INTEGER; C_OPERATION_TUSER_WIDTH : INTEGER; C_RESULT_TDATA_WIDTH : INTEGER; C_RESULT_TUSER_WIDTH : INTEGER; C_FIXED_DATA_UNSIGNED : INTEGER ); PORT ( aclk : IN STD_LOGIC; aclken : IN STD_LOGIC; aresetn : IN STD_LOGIC; s_axis_a_tvalid : IN STD_LOGIC; s_axis_a_tready : OUT STD_LOGIC; s_axis_a_tdata : IN STD_LOGIC_VECTOR(31 DOWNTO 0); s_axis_a_tuser : IN STD_LOGIC_VECTOR(0 DOWNTO 0); s_axis_a_tlast : IN STD_LOGIC; s_axis_b_tvalid : IN STD_LOGIC; s_axis_b_tready : OUT STD_LOGIC; s_axis_b_tdata : IN STD_LOGIC_VECTOR(31 DOWNTO 0); s_axis_b_tuser : IN STD_LOGIC_VECTOR(0 DOWNTO 0); s_axis_b_tlast : IN STD_LOGIC; s_axis_c_tvalid : IN STD_LOGIC; s_axis_c_tready : OUT STD_LOGIC; s_axis_c_tdata : IN STD_LOGIC_VECTOR(31 DOWNTO 0); s_axis_c_tuser : IN STD_LOGIC_VECTOR(0 DOWNTO 0); s_axis_c_tlast : IN STD_LOGIC; s_axis_operation_tvalid : IN STD_LOGIC; s_axis_operation_tready : OUT STD_LOGIC; s_axis_operation_tdata : IN STD_LOGIC_VECTOR(7 DOWNTO 0); s_axis_operation_tuser : IN STD_LOGIC_VECTOR(0 DOWNTO 0); s_axis_operation_tlast : IN STD_LOGIC; m_axis_result_tvalid : OUT STD_LOGIC; m_axis_result_tready : IN STD_LOGIC; m_axis_result_tdata : OUT STD_LOGIC_VECTOR(31 DOWNTO 0); m_axis_result_tuser : OUT STD_LOGIC_VECTOR(0 DOWNTO 0); m_axis_result_tlast : OUT STD_LOGIC ); END COMPONENT floating_point_v7_1_2; ATTRIBUTE X_CORE_INFO : STRING; ATTRIBUTE X_CORE_INFO OF doHistStretch_ap_sitofp_4_no_dsp_32_arch: ARCHITECTURE IS "floating_point_v7_1_2,Vivado 2016.1"; ATTRIBUTE CHECK_LICENSE_TYPE : STRING; ATTRIBUTE CHECK_LICENSE_TYPE OF doHistStretch_ap_sitofp_4_no_dsp_32_arch : ARCHITECTURE IS "doHistStretch_ap_sitofp_4_no_dsp_32,floating_point_v7_1_2,{}"; ATTRIBUTE CORE_GENERATION_INFO : STRING; ATTRIBUTE CORE_GENERATION_INFO OF doHistStretch_ap_sitofp_4_no_dsp_32_arch: ARCHITECTURE IS "doHistStretch_ap_sitofp_4_no_dsp_32,floating_point_v7_1_2,{x_ipProduct=Vivado 2016.1,x_ipVendor=xilinx.com,x_ipLibrary=ip,x_ipName=floating_point,x_ipVersion=7.1,x_ipCoreRevision=2,x_ipLanguage=VHDL,x_ipSimLanguage=MIXED,C_XDEVICEFAMILY=virtex7,C_HAS_ADD=0,C_HAS_SUBTRACT=0,C_HAS_MULTIPLY=0,C_HAS_DIVIDE=0,C_HAS_SQRT=0,C_HAS_COMPARE=0,C_HAS_FIX_TO_FLT=1,C_HAS_FLT_TO_FIX=0,C_HAS_FLT_TO_FLT=0,C_HAS_RECIP=0,C_HAS_RECIP_SQRT=0,C_HAS_ABSOLUTE=0,C_HAS_LOGARITHM=0,C_HAS_EXPONENTIAL=0,C_HAS_FMA=0,C_HAS_FM" & "S=0,C_HAS_ACCUMULATOR_A=0,C_HAS_ACCUMULATOR_S=0,C_A_WIDTH=32,C_A_FRACTION_WIDTH=0,C_B_WIDTH=32,C_B_FRACTION_WIDTH=0,C_C_WIDTH=32,C_C_FRACTION_WIDTH=0,C_RESULT_WIDTH=32,C_RESULT_FRACTION_WIDTH=24,C_COMPARE_OPERATION=8,C_LATENCY=4,C_OPTIMIZATION=1,C_MULT_USAGE=0,C_BRAM_USAGE=0,C_RATE=1,C_ACCUM_INPUT_MSB=32,C_ACCUM_MSB=32,C_ACCUM_LSB=-31,C_HAS_UNDERFLOW=0,C_HAS_OVERFLOW=0,C_HAS_INVALID_OP=0,C_HAS_DIVIDE_BY_ZERO=0,C_HAS_ACCUM_OVERFLOW=0,C_HAS_ACCUM_INPUT_OVERFLOW=0,C_HAS_ACLKEN=1,C_HAS_ARESETN=0,C_T" & "HROTTLE_SCHEME=3,C_HAS_A_TUSER=0,C_HAS_A_TLAST=0,C_HAS_B=0,C_HAS_B_TUSER=0,C_HAS_B_TLAST=0,C_HAS_C=0,C_HAS_C_TUSER=0,C_HAS_C_TLAST=0,C_HAS_OPERATION=0,C_HAS_OPERATION_TUSER=0,C_HAS_OPERATION_TLAST=0,C_HAS_RESULT_TUSER=0,C_HAS_RESULT_TLAST=0,C_TLAST_RESOLUTION=0,C_A_TDATA_WIDTH=32,C_A_TUSER_WIDTH=1,C_B_TDATA_WIDTH=32,C_B_TUSER_WIDTH=1,C_C_TDATA_WIDTH=32,C_C_TUSER_WIDTH=1,C_OPERATION_TDATA_WIDTH=8,C_OPERATION_TUSER_WIDTH=1,C_RESULT_TDATA_WIDTH=32,C_RESULT_TUSER_WIDTH=1,C_FIXED_DATA_UNSIGNED=0}"; ATTRIBUTE X_INTERFACE_INFO : STRING; ATTRIBUTE X_INTERFACE_INFO OF aclk: SIGNAL IS "xilinx.com:signal:clock:1.0 aclk_intf CLK"; ATTRIBUTE X_INTERFACE_INFO OF aclken: SIGNAL IS "xilinx.com:signal:clockenable:1.0 aclken_intf CE"; ATTRIBUTE X_INTERFACE_INFO OF s_axis_a_tvalid: SIGNAL IS "xilinx.com:interface:axis:1.0 S_AXIS_A TVALID"; ATTRIBUTE X_INTERFACE_INFO OF s_axis_a_tdata: SIGNAL IS "xilinx.com:interface:axis:1.0 S_AXIS_A TDATA"; ATTRIBUTE X_INTERFACE_INFO OF m_axis_result_tvalid: SIGNAL IS "xilinx.com:interface:axis:1.0 M_AXIS_RESULT TVALID"; ATTRIBUTE X_INTERFACE_INFO OF m_axis_result_tdata: SIGNAL IS "xilinx.com:interface:axis:1.0 M_AXIS_RESULT TDATA"; BEGIN U0 : floating_point_v7_1_2 GENERIC MAP ( C_XDEVICEFAMILY => "virtex7", C_HAS_ADD => 0, C_HAS_SUBTRACT => 0, C_HAS_MULTIPLY => 0, C_HAS_DIVIDE => 0, C_HAS_SQRT => 0, C_HAS_COMPARE => 0, C_HAS_FIX_TO_FLT => 1, C_HAS_FLT_TO_FIX => 0, C_HAS_FLT_TO_FLT => 0, C_HAS_RECIP => 0, C_HAS_RECIP_SQRT => 0, C_HAS_ABSOLUTE => 0, C_HAS_LOGARITHM => 0, C_HAS_EXPONENTIAL => 0, C_HAS_FMA => 0, C_HAS_FMS => 0, C_HAS_ACCUMULATOR_A => 0, C_HAS_ACCUMULATOR_S => 0, C_A_WIDTH => 32, C_A_FRACTION_WIDTH => 0, C_B_WIDTH => 32, C_B_FRACTION_WIDTH => 0, C_C_WIDTH => 32, C_C_FRACTION_WIDTH => 0, C_RESULT_WIDTH => 32, C_RESULT_FRACTION_WIDTH => 24, C_COMPARE_OPERATION => 8, C_LATENCY => 4, C_OPTIMIZATION => 1, C_MULT_USAGE => 0, C_BRAM_USAGE => 0, C_RATE => 1, C_ACCUM_INPUT_MSB => 32, C_ACCUM_MSB => 32, C_ACCUM_LSB => -31, C_HAS_UNDERFLOW => 0, C_HAS_OVERFLOW => 0, C_HAS_INVALID_OP => 0, C_HAS_DIVIDE_BY_ZERO => 0, C_HAS_ACCUM_OVERFLOW => 0, C_HAS_ACCUM_INPUT_OVERFLOW => 0, C_HAS_ACLKEN => 1, C_HAS_ARESETN => 0, C_THROTTLE_SCHEME => 3, C_HAS_A_TUSER => 0, C_HAS_A_TLAST => 0, C_HAS_B => 0, C_HAS_B_TUSER => 0, C_HAS_B_TLAST => 0, C_HAS_C => 0, C_HAS_C_TUSER => 0, C_HAS_C_TLAST => 0, C_HAS_OPERATION => 0, C_HAS_OPERATION_TUSER => 0, C_HAS_OPERATION_TLAST => 0, C_HAS_RESULT_TUSER => 0, C_HAS_RESULT_TLAST => 0, C_TLAST_RESOLUTION => 0, C_A_TDATA_WIDTH => 32, C_A_TUSER_WIDTH => 1, C_B_TDATA_WIDTH => 32, C_B_TUSER_WIDTH => 1, C_C_TDATA_WIDTH => 32, C_C_TUSER_WIDTH => 1, C_OPERATION_TDATA_WIDTH => 8, C_OPERATION_TUSER_WIDTH => 1, C_RESULT_TDATA_WIDTH => 32, C_RESULT_TUSER_WIDTH => 1, C_FIXED_DATA_UNSIGNED => 0 ) PORT MAP ( aclk => aclk, aclken => aclken, aresetn => '1', s_axis_a_tvalid => s_axis_a_tvalid, s_axis_a_tdata => s_axis_a_tdata, s_axis_a_tuser => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 1)), s_axis_a_tlast => '0', s_axis_b_tvalid => '0', s_axis_b_tdata => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 32)), s_axis_b_tuser => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 1)), s_axis_b_tlast => '0', s_axis_c_tvalid => '0', s_axis_c_tdata => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 32)), s_axis_c_tuser => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 1)), s_axis_c_tlast => '0', s_axis_operation_tvalid => '0', s_axis_operation_tdata => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 8)), s_axis_operation_tuser => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 1)), s_axis_operation_tlast => '0', m_axis_result_tvalid => m_axis_result_tvalid, m_axis_result_tready => '0', m_axis_result_tdata => m_axis_result_tdata ); END doHistStretch_ap_sitofp_4_no_dsp_32_arch;
-- (c) Copyright 1995-2016 Xilinx, Inc. All rights reserved. -- -- This file contains confidential and proprietary information -- of Xilinx, Inc. and is protected under U.S. and -- international copyright and other intellectual property -- laws. -- -- DISCLAIMER -- This disclaimer is not a license and does not grant any -- rights to the materials distributed herewith. Except as -- otherwise provided in a valid license issued to you by -- Xilinx, and to the maximum extent permitted by applicable -- law: (1) THESE MATERIALS ARE MADE AVAILABLE "AS IS" AND -- WITH ALL FAULTS, AND XILINX HEREBY DISCLAIMS ALL WARRANTIES -- AND CONDITIONS, EXPRESS, IMPLIED, OR STATUTORY, INCLUDING -- BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, NON- -- INFRINGEMENT, OR FITNESS FOR ANY PARTICULAR PURPOSE; and -- (2) Xilinx shall not be liable (whether in contract or tort, -- including negligence, or under any other theory of -- liability) for any loss or damage of any kind or nature -- related to, arising under or in connection with these -- materials, including for any direct, or any indirect, -- special, incidental, or consequential loss or damage -- (including loss of data, profits, goodwill, or any type of -- loss or damage suffered as a result of any action brought -- by a third party) even if such damage or loss was -- reasonably foreseeable or Xilinx had been advised of the -- possibility of the same. -- -- CRITICAL APPLICATIONS -- Xilinx products are not designed or intended to be fail- -- safe, or for use in any application requiring fail-safe -- performance, such as life-support or safety devices or -- systems, Class III medical devices, nuclear facilities, -- applications related to the deployment of airbags, or any -- other applications that could lead to death, personal -- injury, or severe property or environmental damage -- (individually and collectively, "Critical -- Applications"). Customer assumes the sole risk and -- liability of any use of Xilinx products in Critical -- Applications, subject only to applicable laws and -- regulations governing limitations on product liability. -- -- THIS COPYRIGHT NOTICE AND DISCLAIMER MUST BE RETAINED AS -- PART OF THIS FILE AT ALL TIMES. -- -- DO NOT MODIFY THIS FILE. -- IP VLNV: xilinx.com:ip:floating_point:7.1 -- IP Revision: 2 LIBRARY ieee; USE ieee.std_logic_1164.ALL; USE ieee.numeric_std.ALL; LIBRARY floating_point_v7_1_2; USE floating_point_v7_1_2.floating_point_v7_1_2; ENTITY doHistStretch_ap_sitofp_4_no_dsp_32 IS PORT ( aclk : IN STD_LOGIC; aclken : IN STD_LOGIC; s_axis_a_tvalid : IN STD_LOGIC; s_axis_a_tdata : IN STD_LOGIC_VECTOR(31 DOWNTO 0); m_axis_result_tvalid : OUT STD_LOGIC; m_axis_result_tdata : OUT STD_LOGIC_VECTOR(31 DOWNTO 0) ); END doHistStretch_ap_sitofp_4_no_dsp_32; ARCHITECTURE doHistStretch_ap_sitofp_4_no_dsp_32_arch OF doHistStretch_ap_sitofp_4_no_dsp_32 IS ATTRIBUTE DowngradeIPIdentifiedWarnings : STRING; ATTRIBUTE DowngradeIPIdentifiedWarnings OF doHistStretch_ap_sitofp_4_no_dsp_32_arch: ARCHITECTURE IS "yes"; COMPONENT floating_point_v7_1_2 IS GENERIC ( C_XDEVICEFAMILY : STRING; C_HAS_ADD : INTEGER; C_HAS_SUBTRACT : INTEGER; C_HAS_MULTIPLY : INTEGER; C_HAS_DIVIDE : INTEGER; C_HAS_SQRT : INTEGER; C_HAS_COMPARE : INTEGER; C_HAS_FIX_TO_FLT : INTEGER; C_HAS_FLT_TO_FIX : INTEGER; C_HAS_FLT_TO_FLT : INTEGER; C_HAS_RECIP : INTEGER; C_HAS_RECIP_SQRT : INTEGER; C_HAS_ABSOLUTE : INTEGER; C_HAS_LOGARITHM : INTEGER; C_HAS_EXPONENTIAL : INTEGER; C_HAS_FMA : INTEGER; C_HAS_FMS : INTEGER; C_HAS_ACCUMULATOR_A : INTEGER; C_HAS_ACCUMULATOR_S : INTEGER; C_A_WIDTH : INTEGER; C_A_FRACTION_WIDTH : INTEGER; C_B_WIDTH : INTEGER; C_B_FRACTION_WIDTH : INTEGER; C_C_WIDTH : INTEGER; C_C_FRACTION_WIDTH : INTEGER; C_RESULT_WIDTH : INTEGER; C_RESULT_FRACTION_WIDTH : INTEGER; C_COMPARE_OPERATION : INTEGER; C_LATENCY : INTEGER; C_OPTIMIZATION : INTEGER; C_MULT_USAGE : INTEGER; C_BRAM_USAGE : INTEGER; C_RATE : INTEGER; C_ACCUM_INPUT_MSB : INTEGER; C_ACCUM_MSB : INTEGER; C_ACCUM_LSB : INTEGER; C_HAS_UNDERFLOW : INTEGER; C_HAS_OVERFLOW : INTEGER; C_HAS_INVALID_OP : INTEGER; C_HAS_DIVIDE_BY_ZERO : INTEGER; C_HAS_ACCUM_OVERFLOW : INTEGER; C_HAS_ACCUM_INPUT_OVERFLOW : INTEGER; C_HAS_ACLKEN : INTEGER; C_HAS_ARESETN : INTEGER; C_THROTTLE_SCHEME : INTEGER; C_HAS_A_TUSER : INTEGER; C_HAS_A_TLAST : INTEGER; C_HAS_B : INTEGER; C_HAS_B_TUSER : INTEGER; C_HAS_B_TLAST : INTEGER; C_HAS_C : INTEGER; C_HAS_C_TUSER : INTEGER; C_HAS_C_TLAST : INTEGER; C_HAS_OPERATION : INTEGER; C_HAS_OPERATION_TUSER : INTEGER; C_HAS_OPERATION_TLAST : INTEGER; C_HAS_RESULT_TUSER : INTEGER; C_HAS_RESULT_TLAST : INTEGER; C_TLAST_RESOLUTION : INTEGER; C_A_TDATA_WIDTH : INTEGER; C_A_TUSER_WIDTH : INTEGER; C_B_TDATA_WIDTH : INTEGER; C_B_TUSER_WIDTH : INTEGER; C_C_TDATA_WIDTH : INTEGER; C_C_TUSER_WIDTH : INTEGER; C_OPERATION_TDATA_WIDTH : INTEGER; C_OPERATION_TUSER_WIDTH : INTEGER; C_RESULT_TDATA_WIDTH : INTEGER; C_RESULT_TUSER_WIDTH : INTEGER; C_FIXED_DATA_UNSIGNED : INTEGER ); PORT ( aclk : IN STD_LOGIC; aclken : IN STD_LOGIC; aresetn : IN STD_LOGIC; s_axis_a_tvalid : IN STD_LOGIC; s_axis_a_tready : OUT STD_LOGIC; s_axis_a_tdata : IN STD_LOGIC_VECTOR(31 DOWNTO 0); s_axis_a_tuser : IN STD_LOGIC_VECTOR(0 DOWNTO 0); s_axis_a_tlast : IN STD_LOGIC; s_axis_b_tvalid : IN STD_LOGIC; s_axis_b_tready : OUT STD_LOGIC; s_axis_b_tdata : IN STD_LOGIC_VECTOR(31 DOWNTO 0); s_axis_b_tuser : IN STD_LOGIC_VECTOR(0 DOWNTO 0); s_axis_b_tlast : IN STD_LOGIC; s_axis_c_tvalid : IN STD_LOGIC; s_axis_c_tready : OUT STD_LOGIC; s_axis_c_tdata : IN STD_LOGIC_VECTOR(31 DOWNTO 0); s_axis_c_tuser : IN STD_LOGIC_VECTOR(0 DOWNTO 0); s_axis_c_tlast : IN STD_LOGIC; s_axis_operation_tvalid : IN STD_LOGIC; s_axis_operation_tready : OUT STD_LOGIC; s_axis_operation_tdata : IN STD_LOGIC_VECTOR(7 DOWNTO 0); s_axis_operation_tuser : IN STD_LOGIC_VECTOR(0 DOWNTO 0); s_axis_operation_tlast : IN STD_LOGIC; m_axis_result_tvalid : OUT STD_LOGIC; m_axis_result_tready : IN STD_LOGIC; m_axis_result_tdata : OUT STD_LOGIC_VECTOR(31 DOWNTO 0); m_axis_result_tuser : OUT STD_LOGIC_VECTOR(0 DOWNTO 0); m_axis_result_tlast : OUT STD_LOGIC ); END COMPONENT floating_point_v7_1_2; ATTRIBUTE X_CORE_INFO : STRING; ATTRIBUTE X_CORE_INFO OF doHistStretch_ap_sitofp_4_no_dsp_32_arch: ARCHITECTURE IS "floating_point_v7_1_2,Vivado 2016.1"; ATTRIBUTE CHECK_LICENSE_TYPE : STRING; ATTRIBUTE CHECK_LICENSE_TYPE OF doHistStretch_ap_sitofp_4_no_dsp_32_arch : ARCHITECTURE IS "doHistStretch_ap_sitofp_4_no_dsp_32,floating_point_v7_1_2,{}"; ATTRIBUTE CORE_GENERATION_INFO : STRING; ATTRIBUTE CORE_GENERATION_INFO OF doHistStretch_ap_sitofp_4_no_dsp_32_arch: ARCHITECTURE IS "doHistStretch_ap_sitofp_4_no_dsp_32,floating_point_v7_1_2,{x_ipProduct=Vivado 2016.1,x_ipVendor=xilinx.com,x_ipLibrary=ip,x_ipName=floating_point,x_ipVersion=7.1,x_ipCoreRevision=2,x_ipLanguage=VHDL,x_ipSimLanguage=MIXED,C_XDEVICEFAMILY=virtex7,C_HAS_ADD=0,C_HAS_SUBTRACT=0,C_HAS_MULTIPLY=0,C_HAS_DIVIDE=0,C_HAS_SQRT=0,C_HAS_COMPARE=0,C_HAS_FIX_TO_FLT=1,C_HAS_FLT_TO_FIX=0,C_HAS_FLT_TO_FLT=0,C_HAS_RECIP=0,C_HAS_RECIP_SQRT=0,C_HAS_ABSOLUTE=0,C_HAS_LOGARITHM=0,C_HAS_EXPONENTIAL=0,C_HAS_FMA=0,C_HAS_FM" & "S=0,C_HAS_ACCUMULATOR_A=0,C_HAS_ACCUMULATOR_S=0,C_A_WIDTH=32,C_A_FRACTION_WIDTH=0,C_B_WIDTH=32,C_B_FRACTION_WIDTH=0,C_C_WIDTH=32,C_C_FRACTION_WIDTH=0,C_RESULT_WIDTH=32,C_RESULT_FRACTION_WIDTH=24,C_COMPARE_OPERATION=8,C_LATENCY=4,C_OPTIMIZATION=1,C_MULT_USAGE=0,C_BRAM_USAGE=0,C_RATE=1,C_ACCUM_INPUT_MSB=32,C_ACCUM_MSB=32,C_ACCUM_LSB=-31,C_HAS_UNDERFLOW=0,C_HAS_OVERFLOW=0,C_HAS_INVALID_OP=0,C_HAS_DIVIDE_BY_ZERO=0,C_HAS_ACCUM_OVERFLOW=0,C_HAS_ACCUM_INPUT_OVERFLOW=0,C_HAS_ACLKEN=1,C_HAS_ARESETN=0,C_T" & "HROTTLE_SCHEME=3,C_HAS_A_TUSER=0,C_HAS_A_TLAST=0,C_HAS_B=0,C_HAS_B_TUSER=0,C_HAS_B_TLAST=0,C_HAS_C=0,C_HAS_C_TUSER=0,C_HAS_C_TLAST=0,C_HAS_OPERATION=0,C_HAS_OPERATION_TUSER=0,C_HAS_OPERATION_TLAST=0,C_HAS_RESULT_TUSER=0,C_HAS_RESULT_TLAST=0,C_TLAST_RESOLUTION=0,C_A_TDATA_WIDTH=32,C_A_TUSER_WIDTH=1,C_B_TDATA_WIDTH=32,C_B_TUSER_WIDTH=1,C_C_TDATA_WIDTH=32,C_C_TUSER_WIDTH=1,C_OPERATION_TDATA_WIDTH=8,C_OPERATION_TUSER_WIDTH=1,C_RESULT_TDATA_WIDTH=32,C_RESULT_TUSER_WIDTH=1,C_FIXED_DATA_UNSIGNED=0}"; ATTRIBUTE X_INTERFACE_INFO : STRING; ATTRIBUTE X_INTERFACE_INFO OF aclk: SIGNAL IS "xilinx.com:signal:clock:1.0 aclk_intf CLK"; ATTRIBUTE X_INTERFACE_INFO OF aclken: SIGNAL IS "xilinx.com:signal:clockenable:1.0 aclken_intf CE"; ATTRIBUTE X_INTERFACE_INFO OF s_axis_a_tvalid: SIGNAL IS "xilinx.com:interface:axis:1.0 S_AXIS_A TVALID"; ATTRIBUTE X_INTERFACE_INFO OF s_axis_a_tdata: SIGNAL IS "xilinx.com:interface:axis:1.0 S_AXIS_A TDATA"; ATTRIBUTE X_INTERFACE_INFO OF m_axis_result_tvalid: SIGNAL IS "xilinx.com:interface:axis:1.0 M_AXIS_RESULT TVALID"; ATTRIBUTE X_INTERFACE_INFO OF m_axis_result_tdata: SIGNAL IS "xilinx.com:interface:axis:1.0 M_AXIS_RESULT TDATA"; BEGIN U0 : floating_point_v7_1_2 GENERIC MAP ( C_XDEVICEFAMILY => "virtex7", C_HAS_ADD => 0, C_HAS_SUBTRACT => 0, C_HAS_MULTIPLY => 0, C_HAS_DIVIDE => 0, C_HAS_SQRT => 0, C_HAS_COMPARE => 0, C_HAS_FIX_TO_FLT => 1, C_HAS_FLT_TO_FIX => 0, C_HAS_FLT_TO_FLT => 0, C_HAS_RECIP => 0, C_HAS_RECIP_SQRT => 0, C_HAS_ABSOLUTE => 0, C_HAS_LOGARITHM => 0, C_HAS_EXPONENTIAL => 0, C_HAS_FMA => 0, C_HAS_FMS => 0, C_HAS_ACCUMULATOR_A => 0, C_HAS_ACCUMULATOR_S => 0, C_A_WIDTH => 32, C_A_FRACTION_WIDTH => 0, C_B_WIDTH => 32, C_B_FRACTION_WIDTH => 0, C_C_WIDTH => 32, C_C_FRACTION_WIDTH => 0, C_RESULT_WIDTH => 32, C_RESULT_FRACTION_WIDTH => 24, C_COMPARE_OPERATION => 8, C_LATENCY => 4, C_OPTIMIZATION => 1, C_MULT_USAGE => 0, C_BRAM_USAGE => 0, C_RATE => 1, C_ACCUM_INPUT_MSB => 32, C_ACCUM_MSB => 32, C_ACCUM_LSB => -31, C_HAS_UNDERFLOW => 0, C_HAS_OVERFLOW => 0, C_HAS_INVALID_OP => 0, C_HAS_DIVIDE_BY_ZERO => 0, C_HAS_ACCUM_OVERFLOW => 0, C_HAS_ACCUM_INPUT_OVERFLOW => 0, C_HAS_ACLKEN => 1, C_HAS_ARESETN => 0, C_THROTTLE_SCHEME => 3, C_HAS_A_TUSER => 0, C_HAS_A_TLAST => 0, C_HAS_B => 0, C_HAS_B_TUSER => 0, C_HAS_B_TLAST => 0, C_HAS_C => 0, C_HAS_C_TUSER => 0, C_HAS_C_TLAST => 0, C_HAS_OPERATION => 0, C_HAS_OPERATION_TUSER => 0, C_HAS_OPERATION_TLAST => 0, C_HAS_RESULT_TUSER => 0, C_HAS_RESULT_TLAST => 0, C_TLAST_RESOLUTION => 0, C_A_TDATA_WIDTH => 32, C_A_TUSER_WIDTH => 1, C_B_TDATA_WIDTH => 32, C_B_TUSER_WIDTH => 1, C_C_TDATA_WIDTH => 32, C_C_TUSER_WIDTH => 1, C_OPERATION_TDATA_WIDTH => 8, C_OPERATION_TUSER_WIDTH => 1, C_RESULT_TDATA_WIDTH => 32, C_RESULT_TUSER_WIDTH => 1, C_FIXED_DATA_UNSIGNED => 0 ) PORT MAP ( aclk => aclk, aclken => aclken, aresetn => '1', s_axis_a_tvalid => s_axis_a_tvalid, s_axis_a_tdata => s_axis_a_tdata, s_axis_a_tuser => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 1)), s_axis_a_tlast => '0', s_axis_b_tvalid => '0', s_axis_b_tdata => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 32)), s_axis_b_tuser => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 1)), s_axis_b_tlast => '0', s_axis_c_tvalid => '0', s_axis_c_tdata => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 32)), s_axis_c_tuser => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 1)), s_axis_c_tlast => '0', s_axis_operation_tvalid => '0', s_axis_operation_tdata => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 8)), s_axis_operation_tuser => STD_LOGIC_VECTOR(TO_UNSIGNED(0, 1)), s_axis_operation_tlast => '0', m_axis_result_tvalid => m_axis_result_tvalid, m_axis_result_tready => '0', m_axis_result_tdata => m_axis_result_tdata ); END doHistStretch_ap_sitofp_4_no_dsp_32_arch;
library ieee; use ieee.std_logic_1164.all; use ieee.numeric_std.all; entity memory is port ( clk : in std_logic; rst : in std_logic; write : in std_logic; address_read : in integer; address_write : in integer; write_data : in std_logic_vector(11 downto 0); read_data : out std_logic_vector(11 downto 0) ); end memory; architecture behav of memory is type ram is array (0 to 307199) of std_logic_vector(11 downto 0); signal myram : ram := (others => "101010101010"); signal read_address : integer; begin process(clk, rst) begin -- **Note** Not synthesizable if a reset is added if rising_edge(clk) then if ('1' = write ) then myram(address_write) <= write_data; end if; read_address <= address_read; end if; end process; read_data <= myram(read_address); end behav;
-- ========== Copyright Header Begin ============================================= -- AmgPacman File: modulo100Hz.vhd -- Copyright (c) 2015 Alberto Miedes Garcés -- DO NOT ALTER OR REMOVE COPYRIGHT NOTICES. -- -- The above named 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. -- -- The above named 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 Foobar. If not, see <http://www.gnu.org/licenses/>. -- ========== Copyright Header End =============================================== ---------------------------------------------------------------------------------- -- Engineer: Alberto Miedes Garcés -- Correo: [email protected] -- Create Date: January 2015 -- Target Devices: Spartan3E - XC3S500E - Nexys 2 (Digilent) ---------------------------------------------------------------------------------- library IEEE; use IEEE.STD_LOGIC_1164.ALL; -- ================================================================================= -- ENTITY -- ================================================================================= entity modulo100Hz is Port ( clk_50MHz : in STD_LOGIC; ena : in STD_LOGIC; rst: in std_logic; pulso_100Hz : out STD_LOGIC ); end modulo100Hz; -- ================================================================================= -- ARCHITECTURE -- ================================================================================= architecture rtl of modulo100Hz is ----------------------------------------------------------------------------- -- Declaracion de senales ----------------------------------------------------------------------------- signal pulso_100Hz_aux: std_logic; ----------------------------------------------------------------------------- -- Componentes ----------------------------------------------------------------------------- COMPONENT cont10 PORT( clk : IN std_logic; ena : IN std_logic; rst : IN std_logic; fin : OUT std_logic ); END COMPONENT; COMPONENT corr_pulso100Hz PORT( pulso_in : IN std_logic; clk_50MHz : IN std_logic; pulso_out : OUT std_logic ); END COMPONENT; begin ----------------------------------------------------------------------------- -- Conexion de senales ----------------------------------------------------------------------------- pulso_100Hz <= pulso_100Hz_aux; ----------------------------------------------------------------------------- -- Conexion de componentes ----------------------------------------------------------------------------- Inst_cont10: cont10 PORT MAP( clk => clk_50MHz, ena => ena, rst => rst, fin => pulso_100Hz_aux ); end rtl;
-- ========== Copyright Header Begin ============================================= -- AmgPacman File: modulo1KHz.vhd -- Copyright (c) 2015 Alberto Miedes Garcés -- DO NOT ALTER OR REMOVE COPYRIGHT NOTICES. -- -- The above named 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. -- -- The above named 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 Foobar. If not, see <http://www.gnu.org/licenses/>. -- ========== Copyright Header End =============================================== ---------------------------------------------------------------------------------- -- Engineer: Alberto Miedes Garcés -- Correo: [email protected] -- Create Date: January 2015 -- Target Devices: Spartan3E - XC3S500E - Nexys 2 (Digilent) ---------------------------------------------------------------------------------- library IEEE; use IEEE.STD_LOGIC_1164.ALL; -- Uncomment the following library declaration if using -- arithmetic functions with Signed or Unsigned values --use IEEE.NUMERIC_STD.ALL; -- Uncomment the following library declaration if instantiating -- any Xilinx primitives in this code. --library UNISIM; --use UNISIM.VComponents.all; -- ================================================================================= -- ENTITY -- ================================================================================= entity modulo1KHz is Port ( clk_50MHz : in STD_LOGIC; rst : in STD_LOGIC; clk_1KHz : out STD_LOGIC; pulso_1KHz : out STD_LOGIC); end modulo1KHz; -- ================================================================================= -- ARCHITECTURE -- ================================================================================= architecture rtl of modulo1KHz is ----------------------------------------------------------------------------- -- Declaracion de senales ----------------------------------------------------------------------------- signal ena_aux: std_logic_vector(1 downto 0); signal pulso_aux: std_logic; signal force_rst: std_logic; signal ff_startV3: std_logic; ----------------------------------------------------------------------------- -- Declaracion de componentes ----------------------------------------------------------------------------- COMPONENT cont255_V2 PORT( clk : IN std_logic; rst : IN std_logic; ena: in std_logic; fin : OUT std_logic ); END COMPONENT; COMPONENT cont255_V3 PORT( clk : IN std_logic; rst : IN std_logic; ena : IN std_logic; fin : OUT std_logic ); END COMPONENT; COMPONENT cont255_V4 PORT( clk : IN std_logic; rst : IN std_logic; set_zero: in std_logic; start : IN std_logic; fin : OUT std_logic ); END COMPONENT; begin ----------------------------------------------------------------------------- -- Conexion de senales ----------------------------------------------------------------------------- pulso_1KHz <= pulso_aux; force_rst <= rst or pulso_aux; clk_1KHz <= pulso_aux; ----------------------------------------------------------------------------- -- Instancia de componentes ----------------------------------------------------------------------------- cont255_0: cont255_V2 port map( clk => clk_50MHz, rst => force_rst, ena => '1', fin => ena_aux(0) ); cont255_153: cont255_V3 PORT MAP( clk => clk_50MHz, rst => force_rst, ena => ena_aux(0), fin => ena_aux(1) ); cont255_2: cont255_V4 PORT MAP( clk => clk_50MHz, rst => rst, set_zero => force_rst, start => ff_startV3, fin => pulso_aux ); ----------------------------------------------------------------------------- -- Procesos ----------------------------------------------------------------------------- p_ff_startV3: process(clk_50MHz, force_rst) begin if force_rst = '1' then ff_startV3 <= '0'; elsif rising_edge(clk_50MHz) then if ena_aux(1) = '1' then ff_startV3 <= '1'; else ff_startV3 <= ff_startV3; end if; end if; end process p_ff_startV3; end rtl;
------------------------------------------------------------------------------- -- Process Data Interface (PDI) DPR for Xilinx -- -- Copyright (C) 2011 B&R -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions -- are met: -- -- 1. Redistributions of source code must retain the above copyright -- notice, this list of conditions and the following disclaimer. -- -- 2. Redistributions in binary form must reproduce the above copyright -- notice, this list of conditions and the following disclaimer in the -- documentation and/or other materials provided with the distribution. -- -- 3. Neither the name of B&R nor the names of its -- contributors may be used to endorse or promote products derived -- from this software without prior written permission. For written -- permission, please contact [email protected] -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -- FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -- COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -- INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -- BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -- LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -- ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -- POSSIBILITY OF SUCH DAMAGE. -- ------------------------------------------------------------------------------- LIBRARY ieee; USE ieee.std_logic_1164.all; ENTITY pdi_dpr IS GENERIC ( NUM_WORDS : INTEGER := 1024; LOG2_NUM_WORDS : INTEGER := 10 ); PORT ( address_a : IN STD_LOGIC_VECTOR (LOG2_NUM_WORDS-1 DOWNTO 0); address_b : IN STD_LOGIC_VECTOR (LOG2_NUM_WORDS-1 DOWNTO 0); byteena_a : IN STD_LOGIC_VECTOR (3 DOWNTO 0) := (OTHERS => '1'); byteena_b : IN STD_LOGIC_VECTOR (3 DOWNTO 0) := (OTHERS => '1'); clock_a : IN STD_LOGIC := '1'; clock_b : IN STD_LOGIC ; data_a : IN STD_LOGIC_VECTOR (31 DOWNTO 0); data_b : IN STD_LOGIC_VECTOR (31 DOWNTO 0); wren_a : IN STD_LOGIC := '0'; wren_b : IN STD_LOGIC := '0'; q_a : OUT STD_LOGIC_VECTOR (31 DOWNTO 0); q_b : OUT STD_LOGIC_VECTOR (31 DOWNTO 0) ); END pdi_dpr; architecture struct of pdi_dpr is constant cActivated : std_logic := '1'; begin abuseMacDpr : entity work.dc_dpr_be generic map ( gDoInit => true, WIDTH => data_a'length, ADDRWIDTH => LOG2_NUM_WORDS ) port map ( clkA => clock_a, clkB => clock_b, enA => cActivated, enB => cActivated, addrA => address_a, addrB => address_b, diA => data_a, diB => data_b, doA => q_a, doB => q_b, weA => wren_a, weB => wren_b, beA => byteena_a, beB => byteena_b ); end architecture struct;
------------------------------------------------------------------------------- -- Process Data Interface (PDI) DPR for Xilinx -- -- Copyright (C) 2011 B&R -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions -- are met: -- -- 1. Redistributions of source code must retain the above copyright -- notice, this list of conditions and the following disclaimer. -- -- 2. Redistributions in binary form must reproduce the above copyright -- notice, this list of conditions and the following disclaimer in the -- documentation and/or other materials provided with the distribution. -- -- 3. Neither the name of B&R nor the names of its -- contributors may be used to endorse or promote products derived -- from this software without prior written permission. For written -- permission, please contact [email protected] -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -- FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -- COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -- INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -- BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -- LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -- ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -- POSSIBILITY OF SUCH DAMAGE. -- ------------------------------------------------------------------------------- LIBRARY ieee; USE ieee.std_logic_1164.all; ENTITY pdi_dpr IS GENERIC ( NUM_WORDS : INTEGER := 1024; LOG2_NUM_WORDS : INTEGER := 10 ); PORT ( address_a : IN STD_LOGIC_VECTOR (LOG2_NUM_WORDS-1 DOWNTO 0); address_b : IN STD_LOGIC_VECTOR (LOG2_NUM_WORDS-1 DOWNTO 0); byteena_a : IN STD_LOGIC_VECTOR (3 DOWNTO 0) := (OTHERS => '1'); byteena_b : IN STD_LOGIC_VECTOR (3 DOWNTO 0) := (OTHERS => '1'); clock_a : IN STD_LOGIC := '1'; clock_b : IN STD_LOGIC ; data_a : IN STD_LOGIC_VECTOR (31 DOWNTO 0); data_b : IN STD_LOGIC_VECTOR (31 DOWNTO 0); wren_a : IN STD_LOGIC := '0'; wren_b : IN STD_LOGIC := '0'; q_a : OUT STD_LOGIC_VECTOR (31 DOWNTO 0); q_b : OUT STD_LOGIC_VECTOR (31 DOWNTO 0) ); END pdi_dpr; architecture struct of pdi_dpr is constant cActivated : std_logic := '1'; begin abuseMacDpr : entity work.dc_dpr_be generic map ( gDoInit => true, WIDTH => data_a'length, ADDRWIDTH => LOG2_NUM_WORDS ) port map ( clkA => clock_a, clkB => clock_b, enA => cActivated, enB => cActivated, addrA => address_a, addrB => address_b, diA => data_a, diB => data_b, doA => q_a, doB => q_b, weA => wren_a, weB => wren_b, beA => byteena_a, beB => byteena_b ); end architecture struct;
library IEEE; use IEEE.STD_LOGIC_1164.ALL; use IEEE.STD_LOGIC_ARITH.ALL; use IEEE.STD_LOGIC_UNSIGNED.ALL; entity KeyboardMapper is port (Clock : in STD_LOGIC; Reset : in STD_LOGIC; PS2Busy : in STD_LOGIC; PS2Error : in STD_LOGIC; DataReady : in STD_LOGIC; DataByte : in STD_LOGIC_VECTOR(7 downto 0); Send : out STD_LOGIC; Command : out STD_LOGIC_VECTOR(7 downto 0); CodeReady : out STD_LOGIC; ScanCode : out STD_LOGIC_VECTOR(9 downto 0)); end KeyboardMapper; -- ScanCode(9) = 1 -> Extended -- = 0 -> Regular (Not Extended) -- ScanCode(8) = 1 -> Break -- = 0 -> Make -- ScanCode(7 downto 0) -> Key Code architecture Behavioral of KeyboardMapper is type StateType is (ResetKbd, ResetAck, WaitForBAT, Start, Extended, ExtendedBreak, Break, LEDs, CheckAck); signal State : StateType; signal CapsLock : STD_LOGIC; signal NumLock : STD_LOGIC; signal ScrollLock : STD_LOGIC; signal PauseON : STD_LOGIC; signal i : natural range 0 to 7; begin process(Reset, PS2Error, Clock) begin if Reset = '1' or PS2Error = '1' then CapsLock <= '0'; NumLock <= '0'; ScrollLock <= '0'; PauseON <= '0'; i <= 0; Send <= '0'; Command <= (others => '0'); CodeReady <= '0'; ScanCode <= (others => '0'); State <= Start; elsif rising_edge(Clock) then case State is when ResetKbd => if PS2Busy = '0' then Send <= '1'; Command <= x"FF"; State <= ResetAck; end if; when ResetAck => Send <= '0'; if Dataready = '1' then if DataByte = x"FA" then State <= WaitForBAT; else State <= ResetKbd; end if; end if; when WaitForBAT => if DataReady = '1' then if DataByte = x"AA" then -- BAT(self test) completed successfully State <= Start; else State <= ResetKbd; end if; end if; when Start => CodeReady <= '0'; if DataReady = '1' then case DataByte is when x"E0" => State <= Extended; when x"F0" => State <= Break; when x"FA" => --Acknowledge null; when x"AA" => State <= Start; when x"FC" => State <= ResetKbd; when x"58" => Send <= '1'; Command <= x"ED"; CapsLock <= not CapsLock; ScanCode <= "00" & DataByte; CodeReady <= '1'; State <= LEDs; when x"77" => Send <= '1'; Command <= x"ED"; NumLock <= not NumLock; ScanCode <= "00" & DataByte; CodeReady <= '1'; State <= LEDs; when x"7E" => Send <= '1'; Command <= x"ED"; ScrollLock <= not ScrollLock; ScanCode <= "00" & DataByte; CodeReady <= '1'; State <= LEDs; when others => ScanCode <= "00" & DataByte; CodeReady <= '1'; State <= Start; end case; end if; when Extended => if DataReady = '1' then if DataByte = x"F0" then State <= ExtendedBreak; else ScanCode <= "10" & DataByte; CodeReady <= '1'; State <= Start; end if; end if; when ExtendedBreak => if DataReady = '1' then ScanCode <= "11" & DataByte; CodeReady <= '1'; State <= Start; end if; when Break => if DataReady = '1' then ScanCode <= "01" & DataByte; CodeReady <= '1'; State <= Start; end if; when LEDs => Send <= '0'; CodeReady <= '0'; if Dataready = '1' then if DataByte = x"FA" then Send <= '1'; Command <= "00000" & CapsLock & NumLock & ScrollLock; State <= CheckAck; elsif DataByte = x"FE" then Send <= '1'; end if; end if; when CheckAck => Send <= '0'; if Dataready = '1' then if DataByte = x"FA" then State <= Start; elsif DataByte = x"FE" then Send <= '1'; end if; end if; when others => null; end case; end if; end process; end Behavioral;
-- -- BananaCore - A processor written in VHDL -- -- Created by Rogiel Sulzbach. -- Copyright (c) 2014-2015 Rogiel Sulzbach. All rights reserved. -- library BananaCore; use BananaCore.Memory.all; use BananaCore.RegisterPackage.all; package Instruction is -- Represents a instruction by name type InstructionCode is ( -- Memory Control instructions LOAD, STORE, WRITE_IO, READ_IO, -- Arithmetic Instructions ADD, SUBTRACT, MULTIPLY, DIVIDE, -- Logic Instructions BITWISE_AND, BITWISE_OR, BITWISE_NAND, BITWISE_NOR, BITWISE_XOR, BITWISE_NOT, -- Comparision Instructions GREATER_THAN, GREATER_OR_EQUAL_THAN, LESS_THAN, LESS_OR_EQUAL_THAN, EQUAL, NOT_EQUAL, -- Flow Control Instructions JUMP, JUMP_IF_CARRY, -- Processor Control Instructions RESET, HALT ); -- Represents a record with information about the decoded instruction and its arguments type DecodedInstruction is record -- The instruction code opcode: InstructionCode; -- The instruction size size: integer; -- the first register to operate on reg0: RegisterAddress; -- the second register to operate on reg1: RegisterAddress; -- the memory address to operate on address: MemoryAddress; end record; end package;
-- (C) 1992-2014 Altera Corporation. All rights reserved. -- Your use of Altera Corporation's design tools, logic functions and other -- software and tools, and its AMPP partner logic functions, and any output -- files any of the foregoing (including device programming or simulation -- files), and any associated documentation or information are expressly subject -- to the terms and conditions of the Altera Program License Subscription -- Agreement, Altera MegaCore Function License Agreement, or other applicable -- license agreement, including, without limitation, that your use is for the -- sole purpose of programming logic devices manufactured by Altera and sold by -- Altera or its authorized distributors. Please refer to the applicable -- agreement for further details. LIBRARY ieee; USE ieee.std_logic_1164.all; USE ieee.std_logic_unsigned.all; USE ieee.std_logic_arith.all; --*************************************************** --*** *** --*** FLOATING POINT CORE LIBRARY *** --*** *** --*** FP_LNNORM.VHD *** --*** *** --*** Function: Single Precision Normalization *** --*** of LN calculation *** --*** *** --*** 22/02/08 ML *** --*** *** --*** (c) 2008 Altera Corporation *** --*** *** --*** Change History *** --*** *** --*** *** --*** *** --*** *** --*************************************************** ENTITY fp_lnnorm IS PORT ( sysclk : IN STD_LOGIC; reset : IN STD_LOGIC; enable : IN STD_LOGIC; inman : IN STD_LOGIC_VECTOR (32 DOWNTO 1); inexp : IN STD_LOGIC_VECTOR (8 DOWNTO 1); outman : OUT STD_LOGIC_VECTOR (24 DOWNTO 1); outexp : OUT STD_LOGIC_VECTOR (8 DOWNTO 1); zero : OUT STD_LOGIC ); END fp_lnnorm; ARCHITECTURE rtl OF fp_lnnorm IS -- 3 latency signal shift, shiftff : STD_LOGIC_VECTOR (5 DOWNTO 1); signal zerochk : STD_LOGIC_VECTOR (32 DOWNTO 1); signal inmanff, inmandelff, outmanff : STD_LOGIC_VECTOR (32 DOWNTO 1); signal outmanbus : STD_LOGIC_VECTOR (32 DOWNTO 1); signal inexpff, expaddff, expsubff : STD_LOGIC_VECTOR (8 DOWNTO 1); signal zeroff : STD_LOGIC_VECTOR (2 DOWNTO 1); component fp_lnclz PORT ( mantissa : IN STD_LOGIC_VECTOR (32 DOWNTO 1); leading : OUT STD_LOGIC_VECTOR (5 DOWNTO 1) ); end component; component fp_lsft32x5 PORT ( inbus : IN STD_LOGIC_VECTOR (32 DOWNTO 1); shift : IN STD_LOGIC_VECTOR (5 DOWNTO 1); outbus : OUT STD_LOGIC_VECTOR (32 DOWNTO 1) ); end component; BEGIN ppin: PROCESS (sysclk,reset) BEGIN IF (reset = '1') THEN FOR k IN 1 TO 32 LOOP inmanff(k) <= '0'; inmandelff(k) <= '0'; outmanff(k) <= '0'; END LOOP; FOR k IN 1 TO 8 LOOP inexpff(k) <= '0'; expaddff(k) <= '0'; expsubff(k) <= '0'; END LOOP; zeroff <= "00"; shiftff <= "00000"; ELSIF (rising_edge(sysclk)) THEN IF (enable = '1') THEN inmanff <= inman; inmandelff <= inmanff; outmanff <= outmanbus; inexpff <= inexp; -- add 2 - 1 for right shift to avoid overflow expaddff <= inexpff + 1; expsubff <= expaddff - ("000" & shiftff); zeroff(1) <= zerochk(32); zeroff(2) <= zeroff(1); shiftff <= shift; END IF; END IF; END PROCESS; zerochk(1) <= inmanff(1); gza: FOR k IN 2 TO 32 GENERATE zerochk(k) <= zerochk(k-1) OR inmanff(k); END GENERATE; clz: fp_lnclz PORT MAP (mantissa=>inmanff,leading=>shift); sft: fp_lsft32x5 PORT MAP (inbus=>inmandelff,shift=>shiftff, outbus=>outmanbus); --*** OUTPUTS *** outman <= outmanff(31 DOWNTO 8); outexp <= expsubff; zero <= zeroff(2); END rtl;
-- (C) 1992-2014 Altera Corporation. All rights reserved. -- Your use of Altera Corporation's design tools, logic functions and other -- software and tools, and its AMPP partner logic functions, and any output -- files any of the foregoing (including device programming or simulation -- files), and any associated documentation or information are expressly subject -- to the terms and conditions of the Altera Program License Subscription -- Agreement, Altera MegaCore Function License Agreement, or other applicable -- license agreement, including, without limitation, that your use is for the -- sole purpose of programming logic devices manufactured by Altera and sold by -- Altera or its authorized distributors. Please refer to the applicable -- agreement for further details. LIBRARY ieee; USE ieee.std_logic_1164.all; USE ieee.std_logic_unsigned.all; USE ieee.std_logic_arith.all; --*************************************************** --*** *** --*** FLOATING POINT CORE LIBRARY *** --*** *** --*** FP_LNNORM.VHD *** --*** *** --*** Function: Single Precision Normalization *** --*** of LN calculation *** --*** *** --*** 22/02/08 ML *** --*** *** --*** (c) 2008 Altera Corporation *** --*** *** --*** Change History *** --*** *** --*** *** --*** *** --*** *** --*************************************************** ENTITY fp_lnnorm IS PORT ( sysclk : IN STD_LOGIC; reset : IN STD_LOGIC; enable : IN STD_LOGIC; inman : IN STD_LOGIC_VECTOR (32 DOWNTO 1); inexp : IN STD_LOGIC_VECTOR (8 DOWNTO 1); outman : OUT STD_LOGIC_VECTOR (24 DOWNTO 1); outexp : OUT STD_LOGIC_VECTOR (8 DOWNTO 1); zero : OUT STD_LOGIC ); END fp_lnnorm; ARCHITECTURE rtl OF fp_lnnorm IS -- 3 latency signal shift, shiftff : STD_LOGIC_VECTOR (5 DOWNTO 1); signal zerochk : STD_LOGIC_VECTOR (32 DOWNTO 1); signal inmanff, inmandelff, outmanff : STD_LOGIC_VECTOR (32 DOWNTO 1); signal outmanbus : STD_LOGIC_VECTOR (32 DOWNTO 1); signal inexpff, expaddff, expsubff : STD_LOGIC_VECTOR (8 DOWNTO 1); signal zeroff : STD_LOGIC_VECTOR (2 DOWNTO 1); component fp_lnclz PORT ( mantissa : IN STD_LOGIC_VECTOR (32 DOWNTO 1); leading : OUT STD_LOGIC_VECTOR (5 DOWNTO 1) ); end component; component fp_lsft32x5 PORT ( inbus : IN STD_LOGIC_VECTOR (32 DOWNTO 1); shift : IN STD_LOGIC_VECTOR (5 DOWNTO 1); outbus : OUT STD_LOGIC_VECTOR (32 DOWNTO 1) ); end component; BEGIN ppin: PROCESS (sysclk,reset) BEGIN IF (reset = '1') THEN FOR k IN 1 TO 32 LOOP inmanff(k) <= '0'; inmandelff(k) <= '0'; outmanff(k) <= '0'; END LOOP; FOR k IN 1 TO 8 LOOP inexpff(k) <= '0'; expaddff(k) <= '0'; expsubff(k) <= '0'; END LOOP; zeroff <= "00"; shiftff <= "00000"; ELSIF (rising_edge(sysclk)) THEN IF (enable = '1') THEN inmanff <= inman; inmandelff <= inmanff; outmanff <= outmanbus; inexpff <= inexp; -- add 2 - 1 for right shift to avoid overflow expaddff <= inexpff + 1; expsubff <= expaddff - ("000" & shiftff); zeroff(1) <= zerochk(32); zeroff(2) <= zeroff(1); shiftff <= shift; END IF; END IF; END PROCESS; zerochk(1) <= inmanff(1); gza: FOR k IN 2 TO 32 GENERATE zerochk(k) <= zerochk(k-1) OR inmanff(k); END GENERATE; clz: fp_lnclz PORT MAP (mantissa=>inmanff,leading=>shift); sft: fp_lsft32x5 PORT MAP (inbus=>inmandelff,shift=>shiftff, outbus=>outmanbus); --*** OUTPUTS *** outman <= outmanff(31 DOWNTO 8); outexp <= expsubff; zero <= zeroff(2); END rtl;
-- (C) 1992-2014 Altera Corporation. All rights reserved. -- Your use of Altera Corporation's design tools, logic functions and other -- software and tools, and its AMPP partner logic functions, and any output -- files any of the foregoing (including device programming or simulation -- files), and any associated documentation or information are expressly subject -- to the terms and conditions of the Altera Program License Subscription -- Agreement, Altera MegaCore Function License Agreement, or other applicable -- license agreement, including, without limitation, that your use is for the -- sole purpose of programming logic devices manufactured by Altera and sold by -- Altera or its authorized distributors. Please refer to the applicable -- agreement for further details. LIBRARY ieee; USE ieee.std_logic_1164.all; USE ieee.std_logic_unsigned.all; USE ieee.std_logic_arith.all; --*************************************************** --*** *** --*** FLOATING POINT CORE LIBRARY *** --*** *** --*** FP_LNNORM.VHD *** --*** *** --*** Function: Single Precision Normalization *** --*** of LN calculation *** --*** *** --*** 22/02/08 ML *** --*** *** --*** (c) 2008 Altera Corporation *** --*** *** --*** Change History *** --*** *** --*** *** --*** *** --*** *** --*************************************************** ENTITY fp_lnnorm IS PORT ( sysclk : IN STD_LOGIC; reset : IN STD_LOGIC; enable : IN STD_LOGIC; inman : IN STD_LOGIC_VECTOR (32 DOWNTO 1); inexp : IN STD_LOGIC_VECTOR (8 DOWNTO 1); outman : OUT STD_LOGIC_VECTOR (24 DOWNTO 1); outexp : OUT STD_LOGIC_VECTOR (8 DOWNTO 1); zero : OUT STD_LOGIC ); END fp_lnnorm; ARCHITECTURE rtl OF fp_lnnorm IS -- 3 latency signal shift, shiftff : STD_LOGIC_VECTOR (5 DOWNTO 1); signal zerochk : STD_LOGIC_VECTOR (32 DOWNTO 1); signal inmanff, inmandelff, outmanff : STD_LOGIC_VECTOR (32 DOWNTO 1); signal outmanbus : STD_LOGIC_VECTOR (32 DOWNTO 1); signal inexpff, expaddff, expsubff : STD_LOGIC_VECTOR (8 DOWNTO 1); signal zeroff : STD_LOGIC_VECTOR (2 DOWNTO 1); component fp_lnclz PORT ( mantissa : IN STD_LOGIC_VECTOR (32 DOWNTO 1); leading : OUT STD_LOGIC_VECTOR (5 DOWNTO 1) ); end component; component fp_lsft32x5 PORT ( inbus : IN STD_LOGIC_VECTOR (32 DOWNTO 1); shift : IN STD_LOGIC_VECTOR (5 DOWNTO 1); outbus : OUT STD_LOGIC_VECTOR (32 DOWNTO 1) ); end component; BEGIN ppin: PROCESS (sysclk,reset) BEGIN IF (reset = '1') THEN FOR k IN 1 TO 32 LOOP inmanff(k) <= '0'; inmandelff(k) <= '0'; outmanff(k) <= '0'; END LOOP; FOR k IN 1 TO 8 LOOP inexpff(k) <= '0'; expaddff(k) <= '0'; expsubff(k) <= '0'; END LOOP; zeroff <= "00"; shiftff <= "00000"; ELSIF (rising_edge(sysclk)) THEN IF (enable = '1') THEN inmanff <= inman; inmandelff <= inmanff; outmanff <= outmanbus; inexpff <= inexp; -- add 2 - 1 for right shift to avoid overflow expaddff <= inexpff + 1; expsubff <= expaddff - ("000" & shiftff); zeroff(1) <= zerochk(32); zeroff(2) <= zeroff(1); shiftff <= shift; END IF; END IF; END PROCESS; zerochk(1) <= inmanff(1); gza: FOR k IN 2 TO 32 GENERATE zerochk(k) <= zerochk(k-1) OR inmanff(k); END GENERATE; clz: fp_lnclz PORT MAP (mantissa=>inmanff,leading=>shift); sft: fp_lsft32x5 PORT MAP (inbus=>inmandelff,shift=>shiftff, outbus=>outmanbus); --*** OUTPUTS *** outman <= outmanff(31 DOWNTO 8); outexp <= expsubff; zero <= zeroff(2); END rtl;
-- (C) 1992-2014 Altera Corporation. All rights reserved. -- Your use of Altera Corporation's design tools, logic functions and other -- software and tools, and its AMPP partner logic functions, and any output -- files any of the foregoing (including device programming or simulation -- files), and any associated documentation or information are expressly subject -- to the terms and conditions of the Altera Program License Subscription -- Agreement, Altera MegaCore Function License Agreement, or other applicable -- license agreement, including, without limitation, that your use is for the -- sole purpose of programming logic devices manufactured by Altera and sold by -- Altera or its authorized distributors. Please refer to the applicable -- agreement for further details. LIBRARY ieee; USE ieee.std_logic_1164.all; USE ieee.std_logic_unsigned.all; USE ieee.std_logic_arith.all; --*************************************************** --*** *** --*** FLOATING POINT CORE LIBRARY *** --*** *** --*** FP_LNNORM.VHD *** --*** *** --*** Function: Single Precision Normalization *** --*** of LN calculation *** --*** *** --*** 22/02/08 ML *** --*** *** --*** (c) 2008 Altera Corporation *** --*** *** --*** Change History *** --*** *** --*** *** --*** *** --*** *** --*************************************************** ENTITY fp_lnnorm IS PORT ( sysclk : IN STD_LOGIC; reset : IN STD_LOGIC; enable : IN STD_LOGIC; inman : IN STD_LOGIC_VECTOR (32 DOWNTO 1); inexp : IN STD_LOGIC_VECTOR (8 DOWNTO 1); outman : OUT STD_LOGIC_VECTOR (24 DOWNTO 1); outexp : OUT STD_LOGIC_VECTOR (8 DOWNTO 1); zero : OUT STD_LOGIC ); END fp_lnnorm; ARCHITECTURE rtl OF fp_lnnorm IS -- 3 latency signal shift, shiftff : STD_LOGIC_VECTOR (5 DOWNTO 1); signal zerochk : STD_LOGIC_VECTOR (32 DOWNTO 1); signal inmanff, inmandelff, outmanff : STD_LOGIC_VECTOR (32 DOWNTO 1); signal outmanbus : STD_LOGIC_VECTOR (32 DOWNTO 1); signal inexpff, expaddff, expsubff : STD_LOGIC_VECTOR (8 DOWNTO 1); signal zeroff : STD_LOGIC_VECTOR (2 DOWNTO 1); component fp_lnclz PORT ( mantissa : IN STD_LOGIC_VECTOR (32 DOWNTO 1); leading : OUT STD_LOGIC_VECTOR (5 DOWNTO 1) ); end component; component fp_lsft32x5 PORT ( inbus : IN STD_LOGIC_VECTOR (32 DOWNTO 1); shift : IN STD_LOGIC_VECTOR (5 DOWNTO 1); outbus : OUT STD_LOGIC_VECTOR (32 DOWNTO 1) ); end component; BEGIN ppin: PROCESS (sysclk,reset) BEGIN IF (reset = '1') THEN FOR k IN 1 TO 32 LOOP inmanff(k) <= '0'; inmandelff(k) <= '0'; outmanff(k) <= '0'; END LOOP; FOR k IN 1 TO 8 LOOP inexpff(k) <= '0'; expaddff(k) <= '0'; expsubff(k) <= '0'; END LOOP; zeroff <= "00"; shiftff <= "00000"; ELSIF (rising_edge(sysclk)) THEN IF (enable = '1') THEN inmanff <= inman; inmandelff <= inmanff; outmanff <= outmanbus; inexpff <= inexp; -- add 2 - 1 for right shift to avoid overflow expaddff <= inexpff + 1; expsubff <= expaddff - ("000" & shiftff); zeroff(1) <= zerochk(32); zeroff(2) <= zeroff(1); shiftff <= shift; END IF; END IF; END PROCESS; zerochk(1) <= inmanff(1); gza: FOR k IN 2 TO 32 GENERATE zerochk(k) <= zerochk(k-1) OR inmanff(k); END GENERATE; clz: fp_lnclz PORT MAP (mantissa=>inmanff,leading=>shift); sft: fp_lsft32x5 PORT MAP (inbus=>inmandelff,shift=>shiftff, outbus=>outmanbus); --*** OUTPUTS *** outman <= outmanff(31 DOWNTO 8); outexp <= expsubff; zero <= zeroff(2); END rtl;
-- (C) 1992-2014 Altera Corporation. All rights reserved. -- Your use of Altera Corporation's design tools, logic functions and other -- software and tools, and its AMPP partner logic functions, and any output -- files any of the foregoing (including device programming or simulation -- files), and any associated documentation or information are expressly subject -- to the terms and conditions of the Altera Program License Subscription -- Agreement, Altera MegaCore Function License Agreement, or other applicable -- license agreement, including, without limitation, that your use is for the -- sole purpose of programming logic devices manufactured by Altera and sold by -- Altera or its authorized distributors. Please refer to the applicable -- agreement for further details. LIBRARY ieee; USE ieee.std_logic_1164.all; USE ieee.std_logic_unsigned.all; USE ieee.std_logic_arith.all; --*************************************************** --*** *** --*** FLOATING POINT CORE LIBRARY *** --*** *** --*** FP_LNNORM.VHD *** --*** *** --*** Function: Single Precision Normalization *** --*** of LN calculation *** --*** *** --*** 22/02/08 ML *** --*** *** --*** (c) 2008 Altera Corporation *** --*** *** --*** Change History *** --*** *** --*** *** --*** *** --*** *** --*************************************************** ENTITY fp_lnnorm IS PORT ( sysclk : IN STD_LOGIC; reset : IN STD_LOGIC; enable : IN STD_LOGIC; inman : IN STD_LOGIC_VECTOR (32 DOWNTO 1); inexp : IN STD_LOGIC_VECTOR (8 DOWNTO 1); outman : OUT STD_LOGIC_VECTOR (24 DOWNTO 1); outexp : OUT STD_LOGIC_VECTOR (8 DOWNTO 1); zero : OUT STD_LOGIC ); END fp_lnnorm; ARCHITECTURE rtl OF fp_lnnorm IS -- 3 latency signal shift, shiftff : STD_LOGIC_VECTOR (5 DOWNTO 1); signal zerochk : STD_LOGIC_VECTOR (32 DOWNTO 1); signal inmanff, inmandelff, outmanff : STD_LOGIC_VECTOR (32 DOWNTO 1); signal outmanbus : STD_LOGIC_VECTOR (32 DOWNTO 1); signal inexpff, expaddff, expsubff : STD_LOGIC_VECTOR (8 DOWNTO 1); signal zeroff : STD_LOGIC_VECTOR (2 DOWNTO 1); component fp_lnclz PORT ( mantissa : IN STD_LOGIC_VECTOR (32 DOWNTO 1); leading : OUT STD_LOGIC_VECTOR (5 DOWNTO 1) ); end component; component fp_lsft32x5 PORT ( inbus : IN STD_LOGIC_VECTOR (32 DOWNTO 1); shift : IN STD_LOGIC_VECTOR (5 DOWNTO 1); outbus : OUT STD_LOGIC_VECTOR (32 DOWNTO 1) ); end component; BEGIN ppin: PROCESS (sysclk,reset) BEGIN IF (reset = '1') THEN FOR k IN 1 TO 32 LOOP inmanff(k) <= '0'; inmandelff(k) <= '0'; outmanff(k) <= '0'; END LOOP; FOR k IN 1 TO 8 LOOP inexpff(k) <= '0'; expaddff(k) <= '0'; expsubff(k) <= '0'; END LOOP; zeroff <= "00"; shiftff <= "00000"; ELSIF (rising_edge(sysclk)) THEN IF (enable = '1') THEN inmanff <= inman; inmandelff <= inmanff; outmanff <= outmanbus; inexpff <= inexp; -- add 2 - 1 for right shift to avoid overflow expaddff <= inexpff + 1; expsubff <= expaddff - ("000" & shiftff); zeroff(1) <= zerochk(32); zeroff(2) <= zeroff(1); shiftff <= shift; END IF; END IF; END PROCESS; zerochk(1) <= inmanff(1); gza: FOR k IN 2 TO 32 GENERATE zerochk(k) <= zerochk(k-1) OR inmanff(k); END GENERATE; clz: fp_lnclz PORT MAP (mantissa=>inmanff,leading=>shift); sft: fp_lsft32x5 PORT MAP (inbus=>inmandelff,shift=>shiftff, outbus=>outmanbus); --*** OUTPUTS *** outman <= outmanff(31 DOWNTO 8); outexp <= expsubff; zero <= zeroff(2); END rtl;
-- (C) 1992-2014 Altera Corporation. All rights reserved. -- Your use of Altera Corporation's design tools, logic functions and other -- software and tools, and its AMPP partner logic functions, and any output -- files any of the foregoing (including device programming or simulation -- files), and any associated documentation or information are expressly subject -- to the terms and conditions of the Altera Program License Subscription -- Agreement, Altera MegaCore Function License Agreement, or other applicable -- license agreement, including, without limitation, that your use is for the -- sole purpose of programming logic devices manufactured by Altera and sold by -- Altera or its authorized distributors. Please refer to the applicable -- agreement for further details. LIBRARY ieee; USE ieee.std_logic_1164.all; USE ieee.std_logic_unsigned.all; USE ieee.std_logic_arith.all; --*************************************************** --*** *** --*** FLOATING POINT CORE LIBRARY *** --*** *** --*** FP_LNNORM.VHD *** --*** *** --*** Function: Single Precision Normalization *** --*** of LN calculation *** --*** *** --*** 22/02/08 ML *** --*** *** --*** (c) 2008 Altera Corporation *** --*** *** --*** Change History *** --*** *** --*** *** --*** *** --*** *** --*************************************************** ENTITY fp_lnnorm IS PORT ( sysclk : IN STD_LOGIC; reset : IN STD_LOGIC; enable : IN STD_LOGIC; inman : IN STD_LOGIC_VECTOR (32 DOWNTO 1); inexp : IN STD_LOGIC_VECTOR (8 DOWNTO 1); outman : OUT STD_LOGIC_VECTOR (24 DOWNTO 1); outexp : OUT STD_LOGIC_VECTOR (8 DOWNTO 1); zero : OUT STD_LOGIC ); END fp_lnnorm; ARCHITECTURE rtl OF fp_lnnorm IS -- 3 latency signal shift, shiftff : STD_LOGIC_VECTOR (5 DOWNTO 1); signal zerochk : STD_LOGIC_VECTOR (32 DOWNTO 1); signal inmanff, inmandelff, outmanff : STD_LOGIC_VECTOR (32 DOWNTO 1); signal outmanbus : STD_LOGIC_VECTOR (32 DOWNTO 1); signal inexpff, expaddff, expsubff : STD_LOGIC_VECTOR (8 DOWNTO 1); signal zeroff : STD_LOGIC_VECTOR (2 DOWNTO 1); component fp_lnclz PORT ( mantissa : IN STD_LOGIC_VECTOR (32 DOWNTO 1); leading : OUT STD_LOGIC_VECTOR (5 DOWNTO 1) ); end component; component fp_lsft32x5 PORT ( inbus : IN STD_LOGIC_VECTOR (32 DOWNTO 1); shift : IN STD_LOGIC_VECTOR (5 DOWNTO 1); outbus : OUT STD_LOGIC_VECTOR (32 DOWNTO 1) ); end component; BEGIN ppin: PROCESS (sysclk,reset) BEGIN IF (reset = '1') THEN FOR k IN 1 TO 32 LOOP inmanff(k) <= '0'; inmandelff(k) <= '0'; outmanff(k) <= '0'; END LOOP; FOR k IN 1 TO 8 LOOP inexpff(k) <= '0'; expaddff(k) <= '0'; expsubff(k) <= '0'; END LOOP; zeroff <= "00"; shiftff <= "00000"; ELSIF (rising_edge(sysclk)) THEN IF (enable = '1') THEN inmanff <= inman; inmandelff <= inmanff; outmanff <= outmanbus; inexpff <= inexp; -- add 2 - 1 for right shift to avoid overflow expaddff <= inexpff + 1; expsubff <= expaddff - ("000" & shiftff); zeroff(1) <= zerochk(32); zeroff(2) <= zeroff(1); shiftff <= shift; END IF; END IF; END PROCESS; zerochk(1) <= inmanff(1); gza: FOR k IN 2 TO 32 GENERATE zerochk(k) <= zerochk(k-1) OR inmanff(k); END GENERATE; clz: fp_lnclz PORT MAP (mantissa=>inmanff,leading=>shift); sft: fp_lsft32x5 PORT MAP (inbus=>inmandelff,shift=>shiftff, outbus=>outmanbus); --*** OUTPUTS *** outman <= outmanff(31 DOWNTO 8); outexp <= expsubff; zero <= zeroff(2); END rtl;
-- (C) 1992-2014 Altera Corporation. All rights reserved. -- Your use of Altera Corporation's design tools, logic functions and other -- software and tools, and its AMPP partner logic functions, and any output -- files any of the foregoing (including device programming or simulation -- files), and any associated documentation or information are expressly subject -- to the terms and conditions of the Altera Program License Subscription -- Agreement, Altera MegaCore Function License Agreement, or other applicable -- license agreement, including, without limitation, that your use is for the -- sole purpose of programming logic devices manufactured by Altera and sold by -- Altera or its authorized distributors. Please refer to the applicable -- agreement for further details. LIBRARY ieee; USE ieee.std_logic_1164.all; USE ieee.std_logic_unsigned.all; USE ieee.std_logic_arith.all; --*************************************************** --*** *** --*** FLOATING POINT CORE LIBRARY *** --*** *** --*** FP_LNNORM.VHD *** --*** *** --*** Function: Single Precision Normalization *** --*** of LN calculation *** --*** *** --*** 22/02/08 ML *** --*** *** --*** (c) 2008 Altera Corporation *** --*** *** --*** Change History *** --*** *** --*** *** --*** *** --*** *** --*************************************************** ENTITY fp_lnnorm IS PORT ( sysclk : IN STD_LOGIC; reset : IN STD_LOGIC; enable : IN STD_LOGIC; inman : IN STD_LOGIC_VECTOR (32 DOWNTO 1); inexp : IN STD_LOGIC_VECTOR (8 DOWNTO 1); outman : OUT STD_LOGIC_VECTOR (24 DOWNTO 1); outexp : OUT STD_LOGIC_VECTOR (8 DOWNTO 1); zero : OUT STD_LOGIC ); END fp_lnnorm; ARCHITECTURE rtl OF fp_lnnorm IS -- 3 latency signal shift, shiftff : STD_LOGIC_VECTOR (5 DOWNTO 1); signal zerochk : STD_LOGIC_VECTOR (32 DOWNTO 1); signal inmanff, inmandelff, outmanff : STD_LOGIC_VECTOR (32 DOWNTO 1); signal outmanbus : STD_LOGIC_VECTOR (32 DOWNTO 1); signal inexpff, expaddff, expsubff : STD_LOGIC_VECTOR (8 DOWNTO 1); signal zeroff : STD_LOGIC_VECTOR (2 DOWNTO 1); component fp_lnclz PORT ( mantissa : IN STD_LOGIC_VECTOR (32 DOWNTO 1); leading : OUT STD_LOGIC_VECTOR (5 DOWNTO 1) ); end component; component fp_lsft32x5 PORT ( inbus : IN STD_LOGIC_VECTOR (32 DOWNTO 1); shift : IN STD_LOGIC_VECTOR (5 DOWNTO 1); outbus : OUT STD_LOGIC_VECTOR (32 DOWNTO 1) ); end component; BEGIN ppin: PROCESS (sysclk,reset) BEGIN IF (reset = '1') THEN FOR k IN 1 TO 32 LOOP inmanff(k) <= '0'; inmandelff(k) <= '0'; outmanff(k) <= '0'; END LOOP; FOR k IN 1 TO 8 LOOP inexpff(k) <= '0'; expaddff(k) <= '0'; expsubff(k) <= '0'; END LOOP; zeroff <= "00"; shiftff <= "00000"; ELSIF (rising_edge(sysclk)) THEN IF (enable = '1') THEN inmanff <= inman; inmandelff <= inmanff; outmanff <= outmanbus; inexpff <= inexp; -- add 2 - 1 for right shift to avoid overflow expaddff <= inexpff + 1; expsubff <= expaddff - ("000" & shiftff); zeroff(1) <= zerochk(32); zeroff(2) <= zeroff(1); shiftff <= shift; END IF; END IF; END PROCESS; zerochk(1) <= inmanff(1); gza: FOR k IN 2 TO 32 GENERATE zerochk(k) <= zerochk(k-1) OR inmanff(k); END GENERATE; clz: fp_lnclz PORT MAP (mantissa=>inmanff,leading=>shift); sft: fp_lsft32x5 PORT MAP (inbus=>inmandelff,shift=>shiftff, outbus=>outmanbus); --*** OUTPUTS *** outman <= outmanff(31 DOWNTO 8); outexp <= expsubff; zero <= zeroff(2); END rtl;
-- (C) 1992-2014 Altera Corporation. All rights reserved. -- Your use of Altera Corporation's design tools, logic functions and other -- software and tools, and its AMPP partner logic functions, and any output -- files any of the foregoing (including device programming or simulation -- files), and any associated documentation or information are expressly subject -- to the terms and conditions of the Altera Program License Subscription -- Agreement, Altera MegaCore Function License Agreement, or other applicable -- license agreement, including, without limitation, that your use is for the -- sole purpose of programming logic devices manufactured by Altera and sold by -- Altera or its authorized distributors. Please refer to the applicable -- agreement for further details. LIBRARY ieee; USE ieee.std_logic_1164.all; USE ieee.std_logic_unsigned.all; USE ieee.std_logic_arith.all; --*************************************************** --*** *** --*** FLOATING POINT CORE LIBRARY *** --*** *** --*** FP_LNNORM.VHD *** --*** *** --*** Function: Single Precision Normalization *** --*** of LN calculation *** --*** *** --*** 22/02/08 ML *** --*** *** --*** (c) 2008 Altera Corporation *** --*** *** --*** Change History *** --*** *** --*** *** --*** *** --*** *** --*************************************************** ENTITY fp_lnnorm IS PORT ( sysclk : IN STD_LOGIC; reset : IN STD_LOGIC; enable : IN STD_LOGIC; inman : IN STD_LOGIC_VECTOR (32 DOWNTO 1); inexp : IN STD_LOGIC_VECTOR (8 DOWNTO 1); outman : OUT STD_LOGIC_VECTOR (24 DOWNTO 1); outexp : OUT STD_LOGIC_VECTOR (8 DOWNTO 1); zero : OUT STD_LOGIC ); END fp_lnnorm; ARCHITECTURE rtl OF fp_lnnorm IS -- 3 latency signal shift, shiftff : STD_LOGIC_VECTOR (5 DOWNTO 1); signal zerochk : STD_LOGIC_VECTOR (32 DOWNTO 1); signal inmanff, inmandelff, outmanff : STD_LOGIC_VECTOR (32 DOWNTO 1); signal outmanbus : STD_LOGIC_VECTOR (32 DOWNTO 1); signal inexpff, expaddff, expsubff : STD_LOGIC_VECTOR (8 DOWNTO 1); signal zeroff : STD_LOGIC_VECTOR (2 DOWNTO 1); component fp_lnclz PORT ( mantissa : IN STD_LOGIC_VECTOR (32 DOWNTO 1); leading : OUT STD_LOGIC_VECTOR (5 DOWNTO 1) ); end component; component fp_lsft32x5 PORT ( inbus : IN STD_LOGIC_VECTOR (32 DOWNTO 1); shift : IN STD_LOGIC_VECTOR (5 DOWNTO 1); outbus : OUT STD_LOGIC_VECTOR (32 DOWNTO 1) ); end component; BEGIN ppin: PROCESS (sysclk,reset) BEGIN IF (reset = '1') THEN FOR k IN 1 TO 32 LOOP inmanff(k) <= '0'; inmandelff(k) <= '0'; outmanff(k) <= '0'; END LOOP; FOR k IN 1 TO 8 LOOP inexpff(k) <= '0'; expaddff(k) <= '0'; expsubff(k) <= '0'; END LOOP; zeroff <= "00"; shiftff <= "00000"; ELSIF (rising_edge(sysclk)) THEN IF (enable = '1') THEN inmanff <= inman; inmandelff <= inmanff; outmanff <= outmanbus; inexpff <= inexp; -- add 2 - 1 for right shift to avoid overflow expaddff <= inexpff + 1; expsubff <= expaddff - ("000" & shiftff); zeroff(1) <= zerochk(32); zeroff(2) <= zeroff(1); shiftff <= shift; END IF; END IF; END PROCESS; zerochk(1) <= inmanff(1); gza: FOR k IN 2 TO 32 GENERATE zerochk(k) <= zerochk(k-1) OR inmanff(k); END GENERATE; clz: fp_lnclz PORT MAP (mantissa=>inmanff,leading=>shift); sft: fp_lsft32x5 PORT MAP (inbus=>inmandelff,shift=>shiftff, outbus=>outmanbus); --*** OUTPUTS *** outman <= outmanff(31 DOWNTO 8); outexp <= expsubff; zero <= zeroff(2); END rtl;
-- (C) 1992-2014 Altera Corporation. All rights reserved. -- Your use of Altera Corporation's design tools, logic functions and other -- software and tools, and its AMPP partner logic functions, and any output -- files any of the foregoing (including device programming or simulation -- files), and any associated documentation or information are expressly subject -- to the terms and conditions of the Altera Program License Subscription -- Agreement, Altera MegaCore Function License Agreement, or other applicable -- license agreement, including, without limitation, that your use is for the -- sole purpose of programming logic devices manufactured by Altera and sold by -- Altera or its authorized distributors. Please refer to the applicable -- agreement for further details. LIBRARY ieee; USE ieee.std_logic_1164.all; USE ieee.std_logic_unsigned.all; USE ieee.std_logic_arith.all; --*************************************************** --*** *** --*** FLOATING POINT CORE LIBRARY *** --*** *** --*** FP_LNNORM.VHD *** --*** *** --*** Function: Single Precision Normalization *** --*** of LN calculation *** --*** *** --*** 22/02/08 ML *** --*** *** --*** (c) 2008 Altera Corporation *** --*** *** --*** Change History *** --*** *** --*** *** --*** *** --*** *** --*************************************************** ENTITY fp_lnnorm IS PORT ( sysclk : IN STD_LOGIC; reset : IN STD_LOGIC; enable : IN STD_LOGIC; inman : IN STD_LOGIC_VECTOR (32 DOWNTO 1); inexp : IN STD_LOGIC_VECTOR (8 DOWNTO 1); outman : OUT STD_LOGIC_VECTOR (24 DOWNTO 1); outexp : OUT STD_LOGIC_VECTOR (8 DOWNTO 1); zero : OUT STD_LOGIC ); END fp_lnnorm; ARCHITECTURE rtl OF fp_lnnorm IS -- 3 latency signal shift, shiftff : STD_LOGIC_VECTOR (5 DOWNTO 1); signal zerochk : STD_LOGIC_VECTOR (32 DOWNTO 1); signal inmanff, inmandelff, outmanff : STD_LOGIC_VECTOR (32 DOWNTO 1); signal outmanbus : STD_LOGIC_VECTOR (32 DOWNTO 1); signal inexpff, expaddff, expsubff : STD_LOGIC_VECTOR (8 DOWNTO 1); signal zeroff : STD_LOGIC_VECTOR (2 DOWNTO 1); component fp_lnclz PORT ( mantissa : IN STD_LOGIC_VECTOR (32 DOWNTO 1); leading : OUT STD_LOGIC_VECTOR (5 DOWNTO 1) ); end component; component fp_lsft32x5 PORT ( inbus : IN STD_LOGIC_VECTOR (32 DOWNTO 1); shift : IN STD_LOGIC_VECTOR (5 DOWNTO 1); outbus : OUT STD_LOGIC_VECTOR (32 DOWNTO 1) ); end component; BEGIN ppin: PROCESS (sysclk,reset) BEGIN IF (reset = '1') THEN FOR k IN 1 TO 32 LOOP inmanff(k) <= '0'; inmandelff(k) <= '0'; outmanff(k) <= '0'; END LOOP; FOR k IN 1 TO 8 LOOP inexpff(k) <= '0'; expaddff(k) <= '0'; expsubff(k) <= '0'; END LOOP; zeroff <= "00"; shiftff <= "00000"; ELSIF (rising_edge(sysclk)) THEN IF (enable = '1') THEN inmanff <= inman; inmandelff <= inmanff; outmanff <= outmanbus; inexpff <= inexp; -- add 2 - 1 for right shift to avoid overflow expaddff <= inexpff + 1; expsubff <= expaddff - ("000" & shiftff); zeroff(1) <= zerochk(32); zeroff(2) <= zeroff(1); shiftff <= shift; END IF; END IF; END PROCESS; zerochk(1) <= inmanff(1); gza: FOR k IN 2 TO 32 GENERATE zerochk(k) <= zerochk(k-1) OR inmanff(k); END GENERATE; clz: fp_lnclz PORT MAP (mantissa=>inmanff,leading=>shift); sft: fp_lsft32x5 PORT MAP (inbus=>inmandelff,shift=>shiftff, outbus=>outmanbus); --*** OUTPUTS *** outman <= outmanff(31 DOWNTO 8); outexp <= expsubff; zero <= zeroff(2); END rtl;
-- (C) 1992-2014 Altera Corporation. All rights reserved. -- Your use of Altera Corporation's design tools, logic functions and other -- software and tools, and its AMPP partner logic functions, and any output -- files any of the foregoing (including device programming or simulation -- files), and any associated documentation or information are expressly subject -- to the terms and conditions of the Altera Program License Subscription -- Agreement, Altera MegaCore Function License Agreement, or other applicable -- license agreement, including, without limitation, that your use is for the -- sole purpose of programming logic devices manufactured by Altera and sold by -- Altera or its authorized distributors. Please refer to the applicable -- agreement for further details. LIBRARY ieee; USE ieee.std_logic_1164.all; USE ieee.std_logic_unsigned.all; USE ieee.std_logic_arith.all; --*************************************************** --*** *** --*** FLOATING POINT CORE LIBRARY *** --*** *** --*** FP_LNNORM.VHD *** --*** *** --*** Function: Single Precision Normalization *** --*** of LN calculation *** --*** *** --*** 22/02/08 ML *** --*** *** --*** (c) 2008 Altera Corporation *** --*** *** --*** Change History *** --*** *** --*** *** --*** *** --*** *** --*************************************************** ENTITY fp_lnnorm IS PORT ( sysclk : IN STD_LOGIC; reset : IN STD_LOGIC; enable : IN STD_LOGIC; inman : IN STD_LOGIC_VECTOR (32 DOWNTO 1); inexp : IN STD_LOGIC_VECTOR (8 DOWNTO 1); outman : OUT STD_LOGIC_VECTOR (24 DOWNTO 1); outexp : OUT STD_LOGIC_VECTOR (8 DOWNTO 1); zero : OUT STD_LOGIC ); END fp_lnnorm; ARCHITECTURE rtl OF fp_lnnorm IS -- 3 latency signal shift, shiftff : STD_LOGIC_VECTOR (5 DOWNTO 1); signal zerochk : STD_LOGIC_VECTOR (32 DOWNTO 1); signal inmanff, inmandelff, outmanff : STD_LOGIC_VECTOR (32 DOWNTO 1); signal outmanbus : STD_LOGIC_VECTOR (32 DOWNTO 1); signal inexpff, expaddff, expsubff : STD_LOGIC_VECTOR (8 DOWNTO 1); signal zeroff : STD_LOGIC_VECTOR (2 DOWNTO 1); component fp_lnclz PORT ( mantissa : IN STD_LOGIC_VECTOR (32 DOWNTO 1); leading : OUT STD_LOGIC_VECTOR (5 DOWNTO 1) ); end component; component fp_lsft32x5 PORT ( inbus : IN STD_LOGIC_VECTOR (32 DOWNTO 1); shift : IN STD_LOGIC_VECTOR (5 DOWNTO 1); outbus : OUT STD_LOGIC_VECTOR (32 DOWNTO 1) ); end component; BEGIN ppin: PROCESS (sysclk,reset) BEGIN IF (reset = '1') THEN FOR k IN 1 TO 32 LOOP inmanff(k) <= '0'; inmandelff(k) <= '0'; outmanff(k) <= '0'; END LOOP; FOR k IN 1 TO 8 LOOP inexpff(k) <= '0'; expaddff(k) <= '0'; expsubff(k) <= '0'; END LOOP; zeroff <= "00"; shiftff <= "00000"; ELSIF (rising_edge(sysclk)) THEN IF (enable = '1') THEN inmanff <= inman; inmandelff <= inmanff; outmanff <= outmanbus; inexpff <= inexp; -- add 2 - 1 for right shift to avoid overflow expaddff <= inexpff + 1; expsubff <= expaddff - ("000" & shiftff); zeroff(1) <= zerochk(32); zeroff(2) <= zeroff(1); shiftff <= shift; END IF; END IF; END PROCESS; zerochk(1) <= inmanff(1); gza: FOR k IN 2 TO 32 GENERATE zerochk(k) <= zerochk(k-1) OR inmanff(k); END GENERATE; clz: fp_lnclz PORT MAP (mantissa=>inmanff,leading=>shift); sft: fp_lsft32x5 PORT MAP (inbus=>inmandelff,shift=>shiftff, outbus=>outmanbus); --*** OUTPUTS *** outman <= outmanff(31 DOWNTO 8); outexp <= expsubff; zero <= zeroff(2); END rtl;
--Copyright 1986-2017 Xilinx, Inc. All Rights Reserved. ---------------------------------------------------------------------------------- --Tool Version: Vivado v.2017.1 (lin64) Build 1846317 Fri Apr 14 18:54:47 MDT 2017 --Date : Mon May 15 23:35:17 2017 --Host : beta running 64-bit Arch Linux --Command : generate_target ps_wrapper.bd --Design : ps_wrapper --Purpose : IP block netlist ---------------------------------------------------------------------------------- library IEEE; use IEEE.STD_LOGIC_1164.ALL; library UNISIM; use UNISIM.VCOMPONENTS.ALL; entity ps_wrapper is port ( DB : out STD_LOGIC_VECTOR ( 13 downto 0 ); DCLKIO : in STD_LOGIC; DDR_addr : inout STD_LOGIC_VECTOR ( 14 downto 0 ); DDR_ba : inout STD_LOGIC_VECTOR ( 2 downto 0 ); DDR_cas_n : inout STD_LOGIC; DDR_ck_n : inout STD_LOGIC; DDR_ck_p : inout STD_LOGIC; DDR_cke : inout STD_LOGIC; DDR_cs_n : inout STD_LOGIC; DDR_dm : inout STD_LOGIC_VECTOR ( 3 downto 0 ); DDR_dq : inout STD_LOGIC_VECTOR ( 31 downto 0 ); DDR_dqs_n : inout STD_LOGIC_VECTOR ( 3 downto 0 ); DDR_dqs_p : inout STD_LOGIC_VECTOR ( 3 downto 0 ); DDR_odt : inout STD_LOGIC; DDR_ras_n : inout STD_LOGIC; DDR_reset_n : inout STD_LOGIC; DDR_we_n : inout STD_LOGIC; FIXED_IO_ddr_vrn : inout STD_LOGIC; FIXED_IO_ddr_vrp : inout STD_LOGIC; FIXED_IO_mio : inout STD_LOGIC_VECTOR ( 53 downto 0 ); FIXED_IO_ps_clk : inout STD_LOGIC; FIXED_IO_ps_porb : inout STD_LOGIC; FIXED_IO_ps_srstb : inout STD_LOGIC; I2S_bclk : out STD_LOGIC_VECTOR ( 0 to 0 ); I2S_lrclk : out STD_LOGIC_VECTOR ( 0 to 0 ); I2S_sdata_in : in STD_LOGIC_VECTOR ( 0 to 0 ); I2S_sdata_out : out STD_LOGIC_VECTOR ( 0 to 0 ); LVDS_ADC_A_D0_N : in STD_LOGIC; LVDS_ADC_A_D0_P : in STD_LOGIC; LVDS_ADC_A_D1_N : in STD_LOGIC; LVDS_ADC_A_D1_P : in STD_LOGIC; LVDS_ADC_B_D0_N : in STD_LOGIC; LVDS_ADC_B_D0_P : in STD_LOGIC; LVDS_ADC_B_D1_N : in STD_LOGIC; LVDS_ADC_B_D1_P : in STD_LOGIC; LVDS_ADC_DCO_N : in STD_LOGIC; LVDS_ADC_DCO_P : in STD_LOGIC; LVDS_ADC_FCO_N : in STD_LOGIC; LVDS_ADC_FCO_P : in STD_LOGIC; PHY_LED0 : out STD_LOGIC; PHY_LED1 : out STD_LOGIC; PHY_LED2 : out STD_LOGIC; PL_PIN_K16 : in STD_LOGIC; PL_PIN_K19 : in STD_LOGIC; PL_PIN_K20 : out STD_LOGIC; PL_PIN_L16 : out STD_LOGIC; PL_PIN_M15 : in STD_LOGIC; PL_PIN_N15 : in STD_LOGIC; PL_PIN_N22 : out STD_LOGIC; PL_PIN_P16 : in STD_LOGIC; PL_PIN_P22 : in STD_LOGIC; clk_12mhz : out STD_LOGIC_VECTOR ( 0 to 0 ); clk_idelayctrl : out STD_LOGIC; gpio_tri_io : inout STD_LOGIC_VECTOR ( 11 downto 0 ); hdmi_out_clk : out STD_LOGIC; hdmi_out_data : out STD_LOGIC_VECTOR ( 11 downto 0 ); hdmi_out_de : out STD_LOGIC; hdmi_out_hsync : out STD_LOGIC; hdmi_out_vsync : out STD_LOGIC; i2s_mdk : out STD_LOGIC; iic_0_scl_io : inout STD_LOGIC; iic_0_sda_io : inout STD_LOGIC; pl_clk : in STD_LOGIC; sys_clk : out STD_LOGIC ); end ps_wrapper; architecture STRUCTURE of ps_wrapper is component ps is port ( DDR_cas_n : inout STD_LOGIC; DDR_cke : inout STD_LOGIC; DDR_ck_n : inout STD_LOGIC; DDR_ck_p : inout STD_LOGIC; DDR_cs_n : inout STD_LOGIC; DDR_reset_n : inout STD_LOGIC; DDR_odt : inout STD_LOGIC; DDR_ras_n : inout STD_LOGIC; DDR_we_n : inout STD_LOGIC; DDR_ba : inout STD_LOGIC_VECTOR ( 2 downto 0 ); DDR_addr : inout STD_LOGIC_VECTOR ( 14 downto 0 ); DDR_dm : inout STD_LOGIC_VECTOR ( 3 downto 0 ); DDR_dq : inout STD_LOGIC_VECTOR ( 31 downto 0 ); DDR_dqs_n : inout STD_LOGIC_VECTOR ( 3 downto 0 ); DDR_dqs_p : inout STD_LOGIC_VECTOR ( 3 downto 0 ); FIXED_IO_mio : inout STD_LOGIC_VECTOR ( 53 downto 0 ); FIXED_IO_ddr_vrn : inout STD_LOGIC; FIXED_IO_ddr_vrp : inout STD_LOGIC; FIXED_IO_ps_srstb : inout STD_LOGIC; FIXED_IO_ps_clk : inout STD_LOGIC; FIXED_IO_ps_porb : inout STD_LOGIC; IIC_0_sda_i : in STD_LOGIC; IIC_0_sda_o : out STD_LOGIC; IIC_0_sda_t : out STD_LOGIC; IIC_0_scl_i : in STD_LOGIC; IIC_0_scl_o : out STD_LOGIC; IIC_0_scl_t : out STD_LOGIC; GPIO_tri_i : in STD_LOGIC_VECTOR ( 11 downto 0 ); GPIO_tri_o : out STD_LOGIC_VECTOR ( 11 downto 0 ); GPIO_tri_t : out STD_LOGIC_VECTOR ( 11 downto 0 ); I2S_bclk : out STD_LOGIC_VECTOR ( 0 to 0 ); I2S_lrclk : out STD_LOGIC_VECTOR ( 0 to 0 ); I2S_sdata_out : out STD_LOGIC_VECTOR ( 0 to 0 ); I2S_sdata_in : in STD_LOGIC_VECTOR ( 0 to 0 ); hdmi_out_de : out STD_LOGIC; hdmi_out_clk : out STD_LOGIC; hdmi_out_vsync : out STD_LOGIC; hdmi_out_data : out STD_LOGIC_VECTOR ( 11 downto 0 ); hdmi_out_hsync : out STD_LOGIC; sys_clk : out STD_LOGIC; PL_PIN_K16 : in STD_LOGIC; PL_PIN_K19 : in STD_LOGIC; PL_PIN_M15 : in STD_LOGIC; PL_PIN_N15 : in STD_LOGIC; PL_PIN_P16 : in STD_LOGIC; PL_PIN_P22 : in STD_LOGIC; PL_PIN_L16 : out STD_LOGIC; PL_PIN_K20 : out STD_LOGIC; PL_PIN_N22 : out STD_LOGIC; PHY_LED0 : out STD_LOGIC; PHY_LED1 : out STD_LOGIC; PHY_LED2 : out STD_LOGIC; clk_idelayctrl : out STD_LOGIC; pl_clk : in STD_LOGIC; LVDS_ADC_A_D0_N : in STD_LOGIC; LVDS_ADC_A_D0_P : in STD_LOGIC; LVDS_ADC_A_D1_N : in STD_LOGIC; LVDS_ADC_A_D1_P : in STD_LOGIC; LVDS_ADC_B_D0_P : in STD_LOGIC; LVDS_ADC_B_D0_N : in STD_LOGIC; LVDS_ADC_B_D1_N : in STD_LOGIC; LVDS_ADC_B_D1_P : in STD_LOGIC; LVDS_ADC_DCO_N : in STD_LOGIC; LVDS_ADC_DCO_P : in STD_LOGIC; LVDS_ADC_FCO_N : in STD_LOGIC; LVDS_ADC_FCO_P : in STD_LOGIC; DCLKIO : in STD_LOGIC; DB : out STD_LOGIC_VECTOR ( 13 downto 0 ); i2s_mdk : out STD_LOGIC; clk_12mhz : out STD_LOGIC_VECTOR ( 0 to 0 ) ); end component ps; component IOBUF is port ( I : in STD_LOGIC; O : out STD_LOGIC; T : in STD_LOGIC; IO : inout STD_LOGIC ); end component IOBUF; signal gpio_tri_i_0 : STD_LOGIC_VECTOR ( 0 to 0 ); signal gpio_tri_i_1 : STD_LOGIC_VECTOR ( 1 to 1 ); signal gpio_tri_i_10 : STD_LOGIC_VECTOR ( 10 to 10 ); signal gpio_tri_i_11 : STD_LOGIC_VECTOR ( 11 to 11 ); signal gpio_tri_i_2 : STD_LOGIC_VECTOR ( 2 to 2 ); signal gpio_tri_i_3 : STD_LOGIC_VECTOR ( 3 to 3 ); signal gpio_tri_i_4 : STD_LOGIC_VECTOR ( 4 to 4 ); signal gpio_tri_i_5 : STD_LOGIC_VECTOR ( 5 to 5 ); signal gpio_tri_i_6 : STD_LOGIC_VECTOR ( 6 to 6 ); signal gpio_tri_i_7 : STD_LOGIC_VECTOR ( 7 to 7 ); signal gpio_tri_i_8 : STD_LOGIC_VECTOR ( 8 to 8 ); signal gpio_tri_i_9 : STD_LOGIC_VECTOR ( 9 to 9 ); signal gpio_tri_io_0 : STD_LOGIC_VECTOR ( 0 to 0 ); signal gpio_tri_io_1 : STD_LOGIC_VECTOR ( 1 to 1 ); signal gpio_tri_io_10 : STD_LOGIC_VECTOR ( 10 to 10 ); signal gpio_tri_io_11 : STD_LOGIC_VECTOR ( 11 to 11 ); signal gpio_tri_io_2 : STD_LOGIC_VECTOR ( 2 to 2 ); signal gpio_tri_io_3 : STD_LOGIC_VECTOR ( 3 to 3 ); signal gpio_tri_io_4 : STD_LOGIC_VECTOR ( 4 to 4 ); signal gpio_tri_io_5 : STD_LOGIC_VECTOR ( 5 to 5 ); signal gpio_tri_io_6 : STD_LOGIC_VECTOR ( 6 to 6 ); signal gpio_tri_io_7 : STD_LOGIC_VECTOR ( 7 to 7 ); signal gpio_tri_io_8 : STD_LOGIC_VECTOR ( 8 to 8 ); signal gpio_tri_io_9 : STD_LOGIC_VECTOR ( 9 to 9 ); signal gpio_tri_o_0 : STD_LOGIC_VECTOR ( 0 to 0 ); signal gpio_tri_o_1 : STD_LOGIC_VECTOR ( 1 to 1 ); signal gpio_tri_o_10 : STD_LOGIC_VECTOR ( 10 to 10 ); signal gpio_tri_o_11 : STD_LOGIC_VECTOR ( 11 to 11 ); signal gpio_tri_o_2 : STD_LOGIC_VECTOR ( 2 to 2 ); signal gpio_tri_o_3 : STD_LOGIC_VECTOR ( 3 to 3 ); signal gpio_tri_o_4 : STD_LOGIC_VECTOR ( 4 to 4 ); signal gpio_tri_o_5 : STD_LOGIC_VECTOR ( 5 to 5 ); signal gpio_tri_o_6 : STD_LOGIC_VECTOR ( 6 to 6 ); signal gpio_tri_o_7 : STD_LOGIC_VECTOR ( 7 to 7 ); signal gpio_tri_o_8 : STD_LOGIC_VECTOR ( 8 to 8 ); signal gpio_tri_o_9 : STD_LOGIC_VECTOR ( 9 to 9 ); signal gpio_tri_t_0 : STD_LOGIC_VECTOR ( 0 to 0 ); signal gpio_tri_t_1 : STD_LOGIC_VECTOR ( 1 to 1 ); signal gpio_tri_t_10 : STD_LOGIC_VECTOR ( 10 to 10 ); signal gpio_tri_t_11 : STD_LOGIC_VECTOR ( 11 to 11 ); signal gpio_tri_t_2 : STD_LOGIC_VECTOR ( 2 to 2 ); signal gpio_tri_t_3 : STD_LOGIC_VECTOR ( 3 to 3 ); signal gpio_tri_t_4 : STD_LOGIC_VECTOR ( 4 to 4 ); signal gpio_tri_t_5 : STD_LOGIC_VECTOR ( 5 to 5 ); signal gpio_tri_t_6 : STD_LOGIC_VECTOR ( 6 to 6 ); signal gpio_tri_t_7 : STD_LOGIC_VECTOR ( 7 to 7 ); signal gpio_tri_t_8 : STD_LOGIC_VECTOR ( 8 to 8 ); signal gpio_tri_t_9 : STD_LOGIC_VECTOR ( 9 to 9 ); signal iic_0_scl_i : STD_LOGIC; signal iic_0_scl_o : STD_LOGIC; signal iic_0_scl_t : STD_LOGIC; signal iic_0_sda_i : STD_LOGIC; signal iic_0_sda_o : STD_LOGIC; signal iic_0_sda_t : STD_LOGIC; begin gpio_tri_iobuf_0: component IOBUF port map ( I => gpio_tri_o_0(0), IO => gpio_tri_io(0), O => gpio_tri_i_0(0), T => gpio_tri_t_0(0) ); gpio_tri_iobuf_1: component IOBUF port map ( I => gpio_tri_o_1(1), IO => gpio_tri_io(1), O => gpio_tri_i_1(1), T => gpio_tri_t_1(1) ); gpio_tri_iobuf_10: component IOBUF port map ( I => gpio_tri_o_10(10), IO => gpio_tri_io(10), O => gpio_tri_i_10(10), T => gpio_tri_t_10(10) ); gpio_tri_iobuf_11: component IOBUF port map ( I => gpio_tri_o_11(11), IO => gpio_tri_io(11), O => gpio_tri_i_11(11), T => gpio_tri_t_11(11) ); gpio_tri_iobuf_2: component IOBUF port map ( I => gpio_tri_o_2(2), IO => gpio_tri_io(2), O => gpio_tri_i_2(2), T => gpio_tri_t_2(2) ); gpio_tri_iobuf_3: component IOBUF port map ( I => gpio_tri_o_3(3), IO => gpio_tri_io(3), O => gpio_tri_i_3(3), T => gpio_tri_t_3(3) ); gpio_tri_iobuf_4: component IOBUF port map ( I => gpio_tri_o_4(4), IO => gpio_tri_io(4), O => gpio_tri_i_4(4), T => gpio_tri_t_4(4) ); gpio_tri_iobuf_5: component IOBUF port map ( I => gpio_tri_o_5(5), IO => gpio_tri_io(5), O => gpio_tri_i_5(5), T => gpio_tri_t_5(5) ); gpio_tri_iobuf_6: component IOBUF port map ( I => gpio_tri_o_6(6), IO => gpio_tri_io(6), O => gpio_tri_i_6(6), T => gpio_tri_t_6(6) ); gpio_tri_iobuf_7: component IOBUF port map ( I => gpio_tri_o_7(7), IO => gpio_tri_io(7), O => gpio_tri_i_7(7), T => gpio_tri_t_7(7) ); gpio_tri_iobuf_8: component IOBUF port map ( I => gpio_tri_o_8(8), IO => gpio_tri_io(8), O => gpio_tri_i_8(8), T => gpio_tri_t_8(8) ); gpio_tri_iobuf_9: component IOBUF port map ( I => gpio_tri_o_9(9), IO => gpio_tri_io(9), O => gpio_tri_i_9(9), T => gpio_tri_t_9(9) ); iic_0_scl_iobuf: component IOBUF port map ( I => iic_0_scl_o, IO => iic_0_scl_io, O => iic_0_scl_i, T => iic_0_scl_t ); iic_0_sda_iobuf: component IOBUF port map ( I => iic_0_sda_o, IO => iic_0_sda_io, O => iic_0_sda_i, T => iic_0_sda_t ); ps_i: component ps port map ( DB(13 downto 0) => DB(13 downto 0), DCLKIO => DCLKIO, DDR_addr(14 downto 0) => DDR_addr(14 downto 0), DDR_ba(2 downto 0) => DDR_ba(2 downto 0), DDR_cas_n => DDR_cas_n, DDR_ck_n => DDR_ck_n, DDR_ck_p => DDR_ck_p, DDR_cke => DDR_cke, DDR_cs_n => DDR_cs_n, DDR_dm(3 downto 0) => DDR_dm(3 downto 0), DDR_dq(31 downto 0) => DDR_dq(31 downto 0), DDR_dqs_n(3 downto 0) => DDR_dqs_n(3 downto 0), DDR_dqs_p(3 downto 0) => DDR_dqs_p(3 downto 0), DDR_odt => DDR_odt, DDR_ras_n => DDR_ras_n, DDR_reset_n => DDR_reset_n, DDR_we_n => DDR_we_n, FIXED_IO_ddr_vrn => FIXED_IO_ddr_vrn, FIXED_IO_ddr_vrp => FIXED_IO_ddr_vrp, FIXED_IO_mio(53 downto 0) => FIXED_IO_mio(53 downto 0), FIXED_IO_ps_clk => FIXED_IO_ps_clk, FIXED_IO_ps_porb => FIXED_IO_ps_porb, FIXED_IO_ps_srstb => FIXED_IO_ps_srstb, GPIO_tri_i(11) => gpio_tri_i_11(11), GPIO_tri_i(10) => gpio_tri_i_10(10), GPIO_tri_i(9) => gpio_tri_i_9(9), GPIO_tri_i(8) => gpio_tri_i_8(8), GPIO_tri_i(7) => gpio_tri_i_7(7), GPIO_tri_i(6) => gpio_tri_i_6(6), GPIO_tri_i(5) => gpio_tri_i_5(5), GPIO_tri_i(4) => gpio_tri_i_4(4), GPIO_tri_i(3) => gpio_tri_i_3(3), GPIO_tri_i(2) => gpio_tri_i_2(2), GPIO_tri_i(1) => gpio_tri_i_1(1), GPIO_tri_i(0) => gpio_tri_i_0(0), GPIO_tri_o(11) => gpio_tri_o_11(11), GPIO_tri_o(10) => gpio_tri_o_10(10), GPIO_tri_o(9) => gpio_tri_o_9(9), GPIO_tri_o(8) => gpio_tri_o_8(8), GPIO_tri_o(7) => gpio_tri_o_7(7), GPIO_tri_o(6) => gpio_tri_o_6(6), GPIO_tri_o(5) => gpio_tri_o_5(5), GPIO_tri_o(4) => gpio_tri_o_4(4), GPIO_tri_o(3) => gpio_tri_o_3(3), GPIO_tri_o(2) => gpio_tri_o_2(2), GPIO_tri_o(1) => gpio_tri_o_1(1), GPIO_tri_o(0) => gpio_tri_o_0(0), GPIO_tri_t(11) => gpio_tri_t_11(11), GPIO_tri_t(10) => gpio_tri_t_10(10), GPIO_tri_t(9) => gpio_tri_t_9(9), GPIO_tri_t(8) => gpio_tri_t_8(8), GPIO_tri_t(7) => gpio_tri_t_7(7), GPIO_tri_t(6) => gpio_tri_t_6(6), GPIO_tri_t(5) => gpio_tri_t_5(5), GPIO_tri_t(4) => gpio_tri_t_4(4), GPIO_tri_t(3) => gpio_tri_t_3(3), GPIO_tri_t(2) => gpio_tri_t_2(2), GPIO_tri_t(1) => gpio_tri_t_1(1), GPIO_tri_t(0) => gpio_tri_t_0(0), I2S_bclk(0) => I2S_bclk(0), I2S_lrclk(0) => I2S_lrclk(0), I2S_sdata_in(0) => I2S_sdata_in(0), I2S_sdata_out(0) => I2S_sdata_out(0), IIC_0_scl_i => iic_0_scl_i, IIC_0_scl_o => iic_0_scl_o, IIC_0_scl_t => iic_0_scl_t, IIC_0_sda_i => iic_0_sda_i, IIC_0_sda_o => iic_0_sda_o, IIC_0_sda_t => iic_0_sda_t, LVDS_ADC_A_D0_N => LVDS_ADC_A_D0_N, LVDS_ADC_A_D0_P => LVDS_ADC_A_D0_P, LVDS_ADC_A_D1_N => LVDS_ADC_A_D1_N, LVDS_ADC_A_D1_P => LVDS_ADC_A_D1_P, LVDS_ADC_B_D0_N => LVDS_ADC_B_D0_N, LVDS_ADC_B_D0_P => LVDS_ADC_B_D0_P, LVDS_ADC_B_D1_N => LVDS_ADC_B_D1_N, LVDS_ADC_B_D1_P => LVDS_ADC_B_D1_P, LVDS_ADC_DCO_N => LVDS_ADC_DCO_N, LVDS_ADC_DCO_P => LVDS_ADC_DCO_P, LVDS_ADC_FCO_N => LVDS_ADC_FCO_N, LVDS_ADC_FCO_P => LVDS_ADC_FCO_P, PHY_LED0 => PHY_LED0, PHY_LED1 => PHY_LED1, PHY_LED2 => PHY_LED2, PL_PIN_K16 => PL_PIN_K16, PL_PIN_K19 => PL_PIN_K19, PL_PIN_K20 => PL_PIN_K20, PL_PIN_L16 => PL_PIN_L16, PL_PIN_M15 => PL_PIN_M15, PL_PIN_N15 => PL_PIN_N15, PL_PIN_N22 => PL_PIN_N22, PL_PIN_P16 => PL_PIN_P16, PL_PIN_P22 => PL_PIN_P22, clk_12mhz(0) => clk_12mhz(0), clk_idelayctrl => clk_idelayctrl, hdmi_out_clk => hdmi_out_clk, hdmi_out_data(11 downto 0) => hdmi_out_data(11 downto 0), hdmi_out_de => hdmi_out_de, hdmi_out_hsync => hdmi_out_hsync, hdmi_out_vsync => hdmi_out_vsync, i2s_mdk => i2s_mdk, pl_clk => pl_clk, sys_clk => sys_clk ); end STRUCTURE;
------------------------------------------------------------------------------- -- $Id: pf_dpram_select.vhd,v 1.1.4.1 2010/09/14 22:35:47 dougt Exp $ ------------------------------------------------------------------------------- -- pf_dpram_select.vhd ------------------------------------------------------------------------------- -- -- ************************************************************************* -- ** ** -- ** DISCLAIMER OF LIABILITY ** -- ** ** -- ** This text/file contains proprietary, confidential ** -- ** information of Xilinx, Inc., is distributed under ** -- ** license from Xilinx, Inc., and may be used, copied ** -- ** and/or disclosed only pursuant to the terms of a valid ** -- ** license agreement with Xilinx, Inc. Xilinx hereby ** -- ** grants you a license to use this text/file solely for ** -- ** design, simulation, implementation and creation of ** -- ** design files limited to Xilinx devices or technologies. ** -- ** Use with non-Xilinx devices or technologies is expressly ** -- ** prohibited and immediately terminates your license unless ** -- ** covered by a separate agreement. ** -- ** ** -- ** Xilinx is providing this design, code, or information ** -- ** "as-is" solely for use in developing programs and ** -- ** solutions for Xilinx devices, with no obligation on the ** -- ** part of Xilinx to provide support. By providing this design, ** -- ** code, or information as one possible implementation of ** -- ** this feature, application or standard, Xilinx is making no ** -- ** representation that this implementation is free from any ** -- ** claims of infringement. You are responsible for obtaining ** -- ** any rights you may require for your implementation. ** -- ** Xilinx expressly disclaims any warranty whatsoever with ** -- ** respect to the adequacy of the implementation, including ** -- ** but not limited to any warranties or representations that this ** -- ** implementation is free from claims of infringement, implied ** -- ** warranties of merchantability or fitness for a particular ** -- ** purpose. ** -- ** ** -- ** Xilinx products are not intended for use in life support ** -- ** appliances, devices, or systems. Use in such applications is ** -- ** expressly prohibited. ** -- ** ** -- ** Any modifications that are made to the Source Code are ** -- ** done at the user’s sole risk and will be unsupported. ** -- ** The Xilinx Support Hotline does not have access to source ** -- ** code and therefore cannot answer specific questions related ** -- ** to source HDL. The Xilinx Hotline support of original source ** -- ** code IP shall only address issues and questions related ** -- ** to the standard Netlist version of the core (and thus ** -- ** indirectly, the original core source). ** -- ** ** -- ** Copyright (c) 2001-2010 Xilinx, Inc. All rights reserved. ** -- ** ** -- ** This copyright and support notice must be retained as part ** -- ** of this text at all times. ** -- ** ** -- ************************************************************************* -- ------------------------------------------------------------------------------- -- Filename: pf_dpram_select.vhd -- -- Description: This vhdl design file uses three input parameters describing -- the desired storage depth, data width, and FPGA family type. -- From these, the design selects the optimum Block RAM -- primitive for the basic storage element and connects them -- in parallel to accomodate the desired data width. -- -- VHDL-Standard: VHDL'93 ------------------------------------------------------------------------------- -- Structure: -- pf_dpram_select.vhd -- ------------------------------------------------------------------------------- -- Author: D. Thorpe -- Revision: $Revision: 1.1.4.1 $ -- Date: $Date: 2010/09/14 22:35:47 $ -- -- History: -- DET Oct. 7, 2001 First Version -- - Adopted design concepts from Goran Bilski's -- opb_bram.vhd design in the formulation of this -- design for the Mauna Loa packet FIFO dual port -- core function. -- -- DET Oct-31-2001 -- - Changed the generic input parameter C_FAMILY of type string -- back to the boolean type parameter C_VIRTEX_II. XST support -- change. -- -- -- DET 1/17/2008 v4_0 -- ~~~~~~ -- - Incorporated new disclaimer header -- ^^^^^^ -- ------------------------------------------------------------------------------- -- Naming Conventions: -- active low signals: "*_n" -- clock signals: "clk", "clk_div#", "clk_#x" -- reset signals: "rst", "rst_n" -- generics: "C_*" -- user defined types: "*_TYPE" -- state machine next state: "*_ns" -- state machine current state: "*_cs" -- combinatorial signals: "*_com" -- pipelined or register delay signals: "*_d#" -- counter signals: "*cnt*" -- clock enable signals: "*_ce" -- internal version of output port "*_i" -- device pins: "*_pin" -- ports: - Names begin with Uppercase -- processes: "*_PROCESS" -- component instantiations: "<ENTITY_>I_<#|FUNC> ------------------------------------------------------------------------------- library IEEE; use IEEE.std_logic_1164.all; use IEEE.numeric_std.all; library unisim; use unisim.all; -- uses BRAM primitives ------------------------------------------------------------------------------- entity pf_dpram_select is generic ( C_DP_DATA_WIDTH : Integer := 32; C_DP_ADDRESS_WIDTH : Integer := 9; C_VIRTEX_II : Boolean := true ); port ( -- Write Port signals Wr_rst : In std_logic; Wr_Clk : in std_logic; Wr_Enable : In std_logic; Wr_Req : In std_logic; Wr_Address : in std_logic_vector(0 to C_DP_ADDRESS_WIDTH-1); Wr_Data : In std_logic_vector(0 to C_DP_DATA_WIDTH-1); -- Read Port Signals Rd_rst : In std_logic; Rd_Clk : in std_logic; Rd_Enable : In std_logic; Rd_Address : in std_logic_vector(0 to C_DP_ADDRESS_WIDTH-1); Rd_Data : out std_logic_vector(0 to C_DP_DATA_WIDTH-1) ); end entity pf_dpram_select; architecture implementation of pf_dpram_select is Type family_type is ( any , x4k , x4ke , x4kl , x4kex , x4kxl , x4kxv , x4kxla , spartan , spartanxl, spartan2 , spartan2e, virtex , virtexe , virtex2 , virtex2p , unsupported ); Type bram_prim_type is ( use_srl , B4_S1_S1 , B4_S2_S2 , B4_S4_S4 , B4_S8_S8 , B4_S16_S16 , B16_S1_S1 , B16_S2_S2 , B16_S4_S4 , B16_S9_S9 , B16_S18_S18 , B16_S36_S36 , indeterminate ); ----------------------------------------------------------------------------- -- This function converts the input C_VIRTEX_II boolean type to an enumerated -- type. Only Virtex and Virtex II types are currently supported. This -- used to convert a string to a family type function but string support in -- the synthesis tools was found to be mutually exclusive between Synplicity -- and XST. ----------------------------------------------------------------------------- function get_prim_family (vertex2_select : boolean) return family_type is Variable prim_family : family_type; begin If (vertex2_select) Then prim_family := virtex2; else prim_family := virtex; End if; Return (prim_family); end function get_prim_family; ----------------------------------------------------------------------------- -- This function chooses the optimum BRAM primitive to utilize as -- specified by the inputs for data depth, data width, and FPGA part family. ----------------------------------------------------------------------------- function get_bram_primitive (target_depth: integer; target_width: integer; family : family_type ) return bram_prim_type is Variable primitive : bram_prim_type; begin Case family Is When virtex2p | virtex2 => Case target_depth Is When 1 | 2 => primitive := indeterminate; -- depth is too small for BRAM -- based fifo control logic When 4 | 8 | 16 => -- primitive := use_srl; -- activate when SRL FIFO incorporated Case target_width Is -- use BRAM for now When 1 => primitive := B16_S1_S1; When 2 => primitive := B16_S2_S2; When 3 | 4 => primitive := B16_S4_S4; When 5 | 6 | 7 | 8 | 9 => primitive := B16_S9_S9; When 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 => primitive := B16_S18_S18; When others => primitive := B16_S36_S36; End case; when 32 | 64 | 128 | 256 | 512 => Case target_width Is When 1 => primitive := B16_S1_S1; When 2 => primitive := B16_S2_S2; When 3 | 4 => primitive := B16_S4_S4; When 5 | 6 | 7 | 8 | 9 => primitive := B16_S9_S9; When 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 => primitive := B16_S18_S18; When others => primitive := B16_S36_S36; End case; When 1024 => Case target_width Is When 1 => primitive := B16_S1_S1; When 2 => primitive := B16_S2_S2; When 3 | 4 => primitive := B16_S4_S4; When 5 | 6 | 7 | 8 | 9 => primitive := B16_S9_S9; When others => primitive := B16_S18_S18; End case; When 2048 => Case target_width Is When 1 => primitive := B16_S1_S1; When 2 => primitive := B16_S2_S2; When 3 | 4 => primitive := B16_S4_S4; When others => primitive := B16_S9_S9; End case; When 4096 => Case target_width Is When 1 => primitive := B16_S1_S1; When 2 => primitive := B16_S2_S2; When others => primitive := B16_S4_S4; End case; When 8192 => Case target_width Is When 1 => primitive := B16_S1_S1; When others => primitive := B16_S2_S2; End case; When 16384 => primitive := B16_S1_S1; When others => primitive := indeterminate; End case; When spartan2 | spartan2e | virtex | virtexe => Case target_depth Is When 1 | 2 => primitive := indeterminate; -- depth is too small for BRAM -- based fifo control logic When 4 | 8 | 16 => -- primitive := use_srl; -- activate this when SRL FIFO is -- incorporated Case target_width Is -- use BRAM for now When 1 => primitive := B4_S1_S1; When 2 => primitive := B4_S2_S2; When 3 | 4 => primitive := B4_S4_S4; When 5 | 6 | 7 | 8 => primitive := B4_S8_S8; When others => primitive := B4_S16_S16; End case; when 32 | 64 | 128 | 256 => Case target_width Is When 1 => primitive := B4_S1_S1; When 2 => primitive := B4_S2_S2; When 3 | 4 => primitive := B4_S4_S4; When 5 | 6 | 7 | 8 => primitive := B4_S8_S8; When others => primitive := B4_S16_S16; End case; when 512 => Case target_width Is When 1 => primitive := B4_S1_S1; When 2 => primitive := B4_S2_S2; When 3 | 4 => primitive := B4_S4_S4; When others => primitive := B4_S8_S8; End case; When 1024 => Case target_width Is When 1 => primitive := B4_S1_S1; When 2 => primitive := B4_S2_S2; When others => primitive := B4_S4_S4; End case; When 2048 => Case target_width Is When 1 => primitive := B4_S1_S1; When others => primitive := B4_S2_S2; End case; When 4096 => primitive := B4_S1_S1; When others => primitive := indeterminate; End case; When others => primitive := indeterminate; End case; Return primitive; end function get_bram_primitive; ----------------------------------------------------------------------------- -- This function calculates the number of BRAM primitives required as -- specified by the inputs for data width and BRAM primitive type. ----------------------------------------------------------------------------- function get_num_prims (bram_prim : bram_prim_type; mem_width : integer) return integer is Variable bram_num : integer; begin Case bram_prim Is When B16_S1_S1 | B4_S1_S1 => bram_num := mem_width; When B16_S2_S2 | B4_S2_S2 => bram_num := (mem_width+1)/2; When B16_S4_S4 | B4_S4_S4 => bram_num := (mem_width+3)/4; When B4_S8_S8 => bram_num := (mem_width+7)/8; When B16_S9_S9 => bram_num := (mem_width+8)/9; When B4_S16_S16 => bram_num := (mem_width+15)/16; When B16_S18_S18 => bram_num := (mem_width+17)/18; When B16_S36_S36 => bram_num := (mem_width+35)/36; When others => bram_num := 1; End case; Return (bram_num); end function get_num_prims; -- Now set the global CONSTANTS needed for IF-Generates -- Determine the number of BRAM storage locations needed constant FIFO_DEPTH : Integer := 2**C_DP_ADDRESS_WIDTH; -- Convert the input C_VIRTEX_II generic boolean to enumerated type Constant BRAM_FAMILY : family_type := get_prim_family(C_VIRTEX_II); -- Select the optimum BRAM primitive to use constant BRAM_PRIMITIVE : bram_prim_type := get_bram_primitive(FIFO_DEPTH, C_DP_DATA_WIDTH, BRAM_FAMILY); -- Calculate how many of the selected primitives are needed -- to populate the desired data width constant BRAM_NUM : integer := get_num_prims(BRAM_PRIMITIVE, C_DP_DATA_WIDTH); begin -- architecture ---------------------------------------------------------------------------- -- Using VII 512 x 36 Dual Port Primitive ---------------------------------------------------------------------------- Using_RAMB16_S36_S36 : if (BRAM_PRIMITIVE = B16_S36_S36) generate component RAMB16_S36_S36 port (DIA : in STD_LOGIC_VECTOR (31 downto 0); DIB : in STD_LOGIC_VECTOR (31 downto 0); DIPA : in STD_LOGIC_VECTOR (3 downto 0); DIPB : in STD_LOGIC_VECTOR (3 downto 0); ENA : in std_logic; ENB : in std_logic; WEA : in std_logic; WEB : in std_logic; SSRA : in std_logic; SSRB : in std_logic; CLKA : in std_logic; CLKB : in std_logic; ADDRA : in STD_LOGIC_VECTOR (8 downto 0); ADDRB : in STD_LOGIC_VECTOR (8 downto 0); DOA : out STD_LOGIC_VECTOR (31 downto 0); DOB : out STD_LOGIC_VECTOR (31 downto 0); DOPA : out STD_LOGIC_VECTOR (3 downto 0); DOPB : out STD_LOGIC_VECTOR (3 downto 0)); end component; Constant PRIM_ADDR_WIDTH : integer := 9; -- 512 deep Constant PRIM_PDBUS_WIDTH : integer := 4; -- 4 parity data bits Constant PRIM_DBUS_WIDTH : integer := 32; -- 4 parity data bits Constant SLICE_DBUS_WIDTH : integer := PRIM_DBUS_WIDTH + PRIM_PDBUS_WIDTH; -- (data + parity) Constant BRAM_DATA_WIDTH : integer := BRAM_NUM * SLICE_DBUS_WIDTH; type dbus_slice_array is array(BRAM_NUM downto 1) of std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); type pdbus_slice_array is array(BRAM_NUM downto 1) of std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_a_dbus_in : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); Signal slice_a_pdbus_in : pdbus_slice_array; -- std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_a_dbus_out : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); Signal slice_a_pdbus_out : pdbus_slice_array; --std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_b_dbus_in : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); Signal slice_b_pdbus_in : pdbus_slice_array; --std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_b_dbus_out : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); Signal slice_b_pdbus_out : pdbus_slice_array; --std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_a_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); Signal slice_b_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_enable : std_logic; signal port_a_wr_enable : std_logic; signal port_a_ssr : std_logic; signal port_b_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_b_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_enable : std_logic; signal port_b_wr_enable : std_logic; signal port_b_ssr : std_logic; begin -- generate port_a_enable <= Wr_Enable; port_a_wr_enable <= Wr_Req; port_a_ssr <= Wr_rst; port_b_data_in <= (others => '0'); -- no input data to port B port_b_enable <= Rd_Enable; port_b_wr_enable <= '0'; -- no writing to port B port_b_ssr <= Rd_rst; -- translate big-endian and little_endian indexes of the -- data buses TRANSLATE_DATA : process (Wr_Data, port_b_data_out) Begin port_a_data_in <= (others => '0'); for i in C_DP_DATA_WIDTH-1 downto 0 loop port_a_data_in(i) <= Wr_Data(C_DP_DATA_WIDTH-1-i); Rd_Data(C_DP_DATA_WIDTH-1-i) <= port_b_data_out(i); End loop; End process TRANSLATE_DATA; -- translate big-endian and little_endian indexes of the -- address buses (makes simulation easier) TRANSLATE_ADDRESS : process (Wr_Address, Rd_Address) Begin port_a_addr <= (others => '0'); port_b_addr <= (others => '0'); for i in C_DP_ADDRESS_WIDTH-1 downto 0 loop port_a_addr(i) <= Wr_Address(C_DP_ADDRESS_WIDTH-1-i); port_b_addr(i) <= Rd_Address(C_DP_ADDRESS_WIDTH-1-i); End loop; End process TRANSLATE_ADDRESS; slice_a_abus <= port_a_addr; slice_b_abus <= port_b_addr; BRAM_LOOP : for i in BRAM_NUM downto 1 generate slice_a_pdbus_in(i) <= port_a_data_in((i*SLICE_DBUS_WIDTH)-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH); slice_a_dbus_in(i) <= port_a_data_in((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH); port_a_data_out((i*SLICE_DBUS_WIDTH)-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH) <= slice_a_pdbus_out(i); port_a_data_out((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH) <= slice_a_dbus_out(i); slice_b_pdbus_in(i) <= port_b_data_in((i*SLICE_DBUS_WIDTH)-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH); slice_b_dbus_in(i) <= port_b_data_in((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH); port_b_data_out((i*SLICE_DBUS_WIDTH)-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH) <= slice_b_pdbus_out(i); port_b_data_out((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH) <= slice_b_dbus_out(i); -- Port A is fixed as the input (write) port -- Port B is fixed as the output (read) port I_DPB16_512x32 : RAMB16_S36_S36 port map( DIA => slice_a_dbus_in(i), DIB => slice_b_dbus_in(i), DIPA => slice_a_pdbus_in(i), DIPB => slice_b_pdbus_in(i), ENA => port_a_enable, ENB => port_b_enable, WEA => port_a_wr_enable, WEB => port_b_wr_enable, SSRA => port_a_ssr, SSRB => port_b_ssr, CLKA => Wr_Clk, CLKB => Rd_Clk, ADDRA => slice_a_abus, ADDRB => slice_b_abus, DOA => slice_a_dbus_out(i), DOB => slice_b_dbus_out(i), DOPA => slice_a_pdbus_out(i), DOPB => slice_b_pdbus_out(i) ); End generate BRAM_LOOP; end generate Using_RAMB16_S36_S36; --========================================================================== ---------------------------------------------------------------------------- -- Using VII 1024 x 18 Dual Port Primitive ---------------------------------------------------------------------------- Using_RAMB16_S18_S18 : if (BRAM_PRIMITIVE = B16_S18_S18) generate component RAMB16_S18_S18 port (DIA : in STD_LOGIC_VECTOR (15 downto 0); DIB : in STD_LOGIC_VECTOR (15 downto 0); DIPA : in STD_LOGIC_VECTOR (1 downto 0); DIPB : in STD_LOGIC_VECTOR (1 downto 0); ENA : in std_logic; ENB : in std_logic; WEA : in std_logic; WEB : in std_logic; SSRA : in std_logic; SSRB : in std_logic; CLKA : in std_logic; CLKB : in std_logic; ADDRA : in STD_LOGIC_VECTOR (9 downto 0); ADDRB : in STD_LOGIC_VECTOR (9 downto 0); DOA : out STD_LOGIC_VECTOR (15 downto 0); DOB : out STD_LOGIC_VECTOR (15 downto 0); DOPA : out STD_LOGIC_VECTOR (1 downto 0); DOPB : out STD_LOGIC_VECTOR (1 downto 0) ); end component; Constant PRIM_ADDR_WIDTH : integer := 10; -- 1024 deep Constant PRIM_PDBUS_WIDTH : integer := 2; -- 2 parity data bits Constant PRIM_DBUS_WIDTH : integer := 16; -- 16 data bits Constant SLICE_DBUS_WIDTH : integer := PRIM_DBUS_WIDTH + PRIM_PDBUS_WIDTH; -- (data + parity) Constant BRAM_DATA_WIDTH : integer := BRAM_NUM * SLICE_DBUS_WIDTH; type dbus_slice_array is array(BRAM_NUM downto 1) of std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); type pdbus_slice_array is array(BRAM_NUM downto 1) of std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_a_dbus_in : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); Signal slice_a_pdbus_in : pdbus_slice_array; -- std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_a_dbus_out : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); Signal slice_a_pdbus_out : pdbus_slice_array; --std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_b_dbus_in : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); Signal slice_b_pdbus_in : pdbus_slice_array; --std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_b_dbus_out : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); Signal slice_b_pdbus_out : pdbus_slice_array; --std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_a_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); Signal slice_b_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_enable : std_logic; signal port_a_wr_enable : std_logic; signal port_a_ssr : std_logic; signal port_b_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_b_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_enable : std_logic; signal port_b_wr_enable : std_logic; signal port_b_ssr : std_logic; begin -- generate port_a_enable <= Wr_Enable; port_a_wr_enable <= Wr_Req; port_a_ssr <= Wr_rst; port_b_data_in <= (others => '0'); -- no input data to port B port_b_enable <= Rd_Enable; port_b_wr_enable <= '0'; -- no writing to port B port_b_ssr <= Rd_rst; -- translate big-endian and little_endian indexes of the -- data buses TRANSLATE_DATA : process (Wr_Data, port_b_data_out) Begin port_a_data_in <= (others => '0'); for i in C_DP_DATA_WIDTH-1 downto 0 loop port_a_data_in(i) <= Wr_Data(C_DP_DATA_WIDTH-1-i); Rd_Data(C_DP_DATA_WIDTH-1-i) <= port_b_data_out(i); End loop; End process TRANSLATE_DATA; -- translate big-endian and little_endian indexes of the -- address buses (makes simulation easier) TRANSLATE_ADDRESS : process (Wr_Address, Rd_Address) Begin port_a_addr <= (others => '0'); port_b_addr <= (others => '0'); for i in C_DP_ADDRESS_WIDTH-1 downto 0 loop port_a_addr(i) <= Wr_Address(C_DP_ADDRESS_WIDTH-1-i); port_b_addr(i) <= Rd_Address(C_DP_ADDRESS_WIDTH-1-i); End loop; End process TRANSLATE_ADDRESS; slice_a_abus <= port_a_addr; slice_b_abus <= port_b_addr; BRAM_LOOP : for i in BRAM_NUM downto 1 generate slice_a_pdbus_in(i) <= port_a_data_in((i*SLICE_DBUS_WIDTH)-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH); slice_a_dbus_in(i) <= port_a_data_in((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH); port_a_data_out((i*SLICE_DBUS_WIDTH)-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH) <= slice_a_pdbus_out(i); port_a_data_out((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH) <= slice_a_dbus_out(i); slice_b_pdbus_in(i) <= port_b_data_in((i*SLICE_DBUS_WIDTH)-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH); slice_b_dbus_in(i) <= port_b_data_in((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH); port_b_data_out((i*SLICE_DBUS_WIDTH)-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH) <= slice_b_pdbus_out(i); port_b_data_out((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH) <= slice_b_dbus_out(i); -- Port A is fixed as the input (write) port -- Port B is fixed as the output (read) port I_DPB16_1024x18 : RAMB16_S18_S18 port map( DIA => slice_a_dbus_in(i), DIB => slice_b_dbus_in(i), DIPA => slice_a_pdbus_in(i), DIPB => slice_b_pdbus_in(i), ENA => port_a_enable, ENB => port_b_enable, WEA => port_a_wr_enable, WEB => port_b_wr_enable, SSRA => port_a_ssr, SSRB => port_b_ssr, CLKA => Wr_Clk, CLKB => Rd_Clk, ADDRA => slice_a_abus, ADDRB => slice_b_abus, DOA => slice_a_dbus_out(i), DOB => slice_b_dbus_out(i), DOPA => slice_a_pdbus_out(i), DOPB => slice_b_pdbus_out(i) ); End generate BRAM_LOOP; end generate Using_RAMB16_S18_S18; --========================================================================== ---------------------------------------------------------------------------- -- Using VII 2048 x 9 Dual Port Primitive ---------------------------------------------------------------------------- Using_RAMB16_S9_S9 : if (BRAM_PRIMITIVE = B16_S9_S9) generate component RAMB16_S9_S9 port ( DIA : in std_logic_vector (7 downto 0); DIB : in std_logic_vector (7 downto 0); DIPA : in std_logic_vector (0 downto 0); DIPB : in std_logic_vector (0 downto 0); ENA : in std_logic; ENB : in std_logic; WEA : in std_logic; WEB : in std_logic; SSRA : in std_logic; SSRB : in std_logic; CLKA : in std_logic; CLKB : in std_logic; ADDRA : in std_logic_vector (10 downto 0); ADDRB : in std_logic_vector (10 downto 0); DOA : out std_logic_vector (7 downto 0); DOB : out std_logic_vector (7 downto 0); DOPA : out std_logic_vector (0 downto 0); DOPB : out std_logic_vector (0 downto 0) ); end component; Constant PRIM_ADDR_WIDTH : integer := 11; -- 2048 deep Constant PRIM_PDBUS_WIDTH : integer := 1; -- 1 parity data bit Constant PRIM_DBUS_WIDTH : integer := 8; -- 8 data bits Constant SLICE_DBUS_WIDTH : integer := PRIM_DBUS_WIDTH + PRIM_PDBUS_WIDTH; -- (data + parity) Constant BRAM_DATA_WIDTH : integer := BRAM_NUM * SLICE_DBUS_WIDTH; type dbus_slice_array is array(BRAM_NUM downto 1) of std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); type pdbus_slice_array is array(BRAM_NUM downto 1) of std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_a_dbus_in : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); Signal slice_a_pdbus_in : pdbus_slice_array; -- std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_a_dbus_out : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); Signal slice_a_pdbus_out : pdbus_slice_array; --std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_b_dbus_in : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); Signal slice_b_pdbus_in : pdbus_slice_array; --std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_b_dbus_out : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); Signal slice_b_pdbus_out : pdbus_slice_array; --std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_a_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); Signal slice_b_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_enable : std_logic; signal port_a_wr_enable : std_logic; signal port_a_ssr : std_logic; signal port_b_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_b_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_enable : std_logic; signal port_b_wr_enable : std_logic; signal port_b_ssr : std_logic; begin -- generate port_a_enable <= Wr_Enable; port_a_wr_enable <= Wr_Req; port_a_ssr <= Wr_rst; port_b_data_in <= (others => '0'); -- no input data to port B port_b_enable <= Rd_Enable; port_b_wr_enable <= '0'; -- no writing to port B port_b_ssr <= Rd_rst; -- translate big-endian and little_endian indexes of the -- data buses TRANSLATE_DATA : process (Wr_Data, port_b_data_out) Begin port_a_data_in <= (others => '0'); for i in C_DP_DATA_WIDTH-1 downto 0 loop port_a_data_in(i) <= Wr_Data(C_DP_DATA_WIDTH-1-i); Rd_Data(C_DP_DATA_WIDTH-1-i) <= port_b_data_out(i); End loop; End process TRANSLATE_DATA; -- translate big-endian and little_endian indexes of the -- address buses (makes simulation easier) TRANSLATE_ADDRESS : process (Wr_Address, Rd_Address) Begin port_a_addr <= (others => '0'); port_b_addr <= (others => '0'); for i in C_DP_ADDRESS_WIDTH-1 downto 0 loop port_a_addr(i) <= Wr_Address(C_DP_ADDRESS_WIDTH-1-i); port_b_addr(i) <= Rd_Address(C_DP_ADDRESS_WIDTH-1-i); End loop; End process TRANSLATE_ADDRESS; slice_a_abus <= port_a_addr; slice_b_abus <= port_b_addr; BRAM_LOOP : for i in BRAM_NUM downto 1 generate slice_a_pdbus_in(i) <= port_a_data_in((i*SLICE_DBUS_WIDTH)-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH); slice_a_dbus_in(i) <= port_a_data_in((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH); port_a_data_out((i*SLICE_DBUS_WIDTH)-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH) <= slice_a_pdbus_out(i); port_a_data_out((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH) <= slice_a_dbus_out(i); slice_b_pdbus_in(i) <= port_b_data_in((i*SLICE_DBUS_WIDTH)-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH); slice_b_dbus_in(i) <= port_b_data_in((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH); port_b_data_out((i*SLICE_DBUS_WIDTH)-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH) <= slice_b_pdbus_out(i); port_b_data_out((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH) <= slice_b_dbus_out(i); -- Port A is fixed as the input (write) port -- Port B is fixed as the output (read) port I_DPB16_2048x9 : RAMB16_S9_S9 port map( DIA => slice_a_dbus_in(i), DIB => slice_b_dbus_in(i), DIPA => slice_a_pdbus_in(i), DIPB => slice_b_pdbus_in(i), ENA => port_a_enable, ENB => port_b_enable, WEA => port_a_wr_enable, WEB => port_b_wr_enable, SSRA => port_a_ssr, SSRB => port_b_ssr, CLKA => Wr_Clk, CLKB => Rd_Clk, ADDRA => slice_a_abus, ADDRB => slice_b_abus, DOA => slice_a_dbus_out(i), DOB => slice_b_dbus_out(i), DOPA => slice_a_pdbus_out(i), DOPB => slice_b_pdbus_out(i) ); End generate BRAM_LOOP; end generate Using_RAMB16_S9_S9; --========================================================================== ---------------------------------------------------------------------------- -- Using VII 4096 x 4 Dual Port Primitive ---------------------------------------------------------------------------- Using_RAMB16_S4_S4 : if (BRAM_PRIMITIVE = B16_S4_S4) generate component RAMB16_S4_S4 port ( DIA : in std_logic_vector (3 downto 0); DIB : in std_logic_vector (3 downto 0); ENA : in std_logic; ENB : in std_logic; WEA : in std_logic; WEB : in std_logic; SSRA : in std_logic; SSRB : in std_logic; CLKA : in std_logic; CLKB : in std_logic; ADDRA : in std_logic_vector (11 downto 0); ADDRB : in std_logic_vector (11 downto 0); DOA : out std_logic_vector (3 downto 0); DOB : out std_logic_vector (3 downto 0) ); end component; Constant PRIM_ADDR_WIDTH : integer := 12; -- 4096 deep Constant PRIM_PDBUS_WIDTH : integer := 0; -- 0 parity data bits Constant PRIM_DBUS_WIDTH : integer := 4; -- 4 data bits Constant SLICE_DBUS_WIDTH : integer := PRIM_DBUS_WIDTH + PRIM_PDBUS_WIDTH; -- (data + parity) Constant BRAM_DATA_WIDTH : integer := BRAM_NUM * SLICE_DBUS_WIDTH; type dbus_slice_array is array(BRAM_NUM downto 1) of std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); --type pdbus_slice_array is array(BRAM_NUM downto 1) of -- std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_a_dbus_in : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); --Signal slice_a_pdbus_in : pdbus_slice_array; -- std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_a_dbus_out : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); --Signal slice_a_pdbus_out : pdbus_slice_array; --std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_b_dbus_in : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); --Signal slice_b_pdbus_in : pdbus_slice_array; --std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_b_dbus_out : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); --Signal slice_b_pdbus_out : pdbus_slice_array; --std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_a_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); Signal slice_b_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_enable : std_logic; signal port_a_wr_enable : std_logic; signal port_a_ssr : std_logic; signal port_b_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_b_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_enable : std_logic; signal port_b_wr_enable : std_logic; signal port_b_ssr : std_logic; begin -- generate port_a_enable <= Wr_Enable; port_a_wr_enable <= Wr_Req; port_a_ssr <= Wr_rst; port_b_data_in <= (others => '0'); -- no input data to port B port_b_enable <= Rd_Enable; port_b_wr_enable <= '0'; -- no writing to port B port_b_ssr <= Rd_rst; -- translate big-endian and little_endian indexes of the -- data buses TRANSLATE_DATA : process (Wr_Data, port_b_data_out) Begin port_a_data_in <= (others => '0'); for i in C_DP_DATA_WIDTH-1 downto 0 loop port_a_data_in(i) <= Wr_Data(C_DP_DATA_WIDTH-1-i); Rd_Data(C_DP_DATA_WIDTH-1-i) <= port_b_data_out(i); End loop; End process TRANSLATE_DATA; -- translate big-endian and little_endian indexes of the -- address buses (makes simulation easier) TRANSLATE_ADDRESS : process (Wr_Address, Rd_Address) Begin port_a_addr <= (others => '0'); port_b_addr <= (others => '0'); for i in C_DP_ADDRESS_WIDTH-1 downto 0 loop port_a_addr(i) <= Wr_Address(C_DP_ADDRESS_WIDTH-1-i); port_b_addr(i) <= Rd_Address(C_DP_ADDRESS_WIDTH-1-i); End loop; End process TRANSLATE_ADDRESS; slice_a_abus <= port_a_addr; slice_b_abus <= port_b_addr; BRAM_LOOP : for i in BRAM_NUM downto 1 generate --slice_a_pdbus_in(i) <= port_a_data_in((i*SLICE_DBUS_WIDTH)-1 downto -- (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH); slice_a_dbus_in(i) <= port_a_data_in((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH); --port_a_data_out((i*SLICE_DBUS_WIDTH)-1 downto -- (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH) <= slice_a_pdbus_out(i); port_a_data_out((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH) <= slice_a_dbus_out(i); --slice_b_pdbus_in(i) <= port_b_data_in((i*SLICE_DBUS_WIDTH)-1 downto -- (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH); slice_b_dbus_in(i) <= port_b_data_in((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH); --port_b_data_out((i*SLICE_DBUS_WIDTH)-1 downto -- (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH) <= slice_b_pdbus_out(i); port_b_data_out((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH) <= slice_b_dbus_out(i); -- Port A is fixed as the input (write) port -- Port B is fixed as the output (read) port I_DPB16_4096x4 : RAMB16_S4_S4 port map( DIA => slice_a_dbus_in(i), DIB => slice_b_dbus_in(i), ENA => port_a_enable, ENB => port_b_enable, WEA => port_a_wr_enable, WEB => port_b_wr_enable, SSRA => port_a_ssr, SSRB => port_b_ssr, CLKA => Wr_Clk, CLKB => Rd_Clk, ADDRA => slice_a_abus, ADDRB => slice_b_abus, DOA => slice_a_dbus_out(i), DOB => slice_b_dbus_out(i) ); End generate BRAM_LOOP; end generate Using_RAMB16_S4_S4; --========================================================================== ---------------------------------------------------------------------------- -- Using VII 8192 x 2 Dual Port Primitive ---------------------------------------------------------------------------- Using_RAMB16_S2_S2 : if (BRAM_PRIMITIVE = B16_S2_S2) generate component RAMB16_S2_S2 port ( DIA : in std_logic_vector (1 downto 0); DIB : in std_logic_vector (1 downto 0); ENA : in std_logic; ENB : in std_logic; WEA : in std_logic; WEB : in std_logic; SSRA : in std_logic; SSRB : in std_logic; CLKA : in std_logic; CLKB : in std_logic; ADDRA : in std_logic_vector (12 downto 0); ADDRB : in std_logic_vector (12 downto 0); DOA : out std_logic_vector (1 downto 0); DOB : out std_logic_vector (1 downto 0) ); end component; Constant PRIM_ADDR_WIDTH : integer := 13; -- 8192 deep Constant PRIM_PDBUS_WIDTH : integer := 0; -- 0 parity data bits Constant PRIM_DBUS_WIDTH : integer := 2; -- 2 data bits Constant SLICE_DBUS_WIDTH : integer := PRIM_DBUS_WIDTH + PRIM_PDBUS_WIDTH; -- (data + parity) Constant BRAM_DATA_WIDTH : integer := BRAM_NUM * SLICE_DBUS_WIDTH; type dbus_slice_array is array(BRAM_NUM downto 1) of std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); --type pdbus_slice_array is array(BRAM_NUM downto 1) of -- std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_a_dbus_in : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); --Signal slice_a_pdbus_in : pdbus_slice_array; -- std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_a_dbus_out : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); --Signal slice_a_pdbus_out : pdbus_slice_array; --std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_b_dbus_in : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); --Signal slice_b_pdbus_in : pdbus_slice_array; --std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_b_dbus_out : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); --Signal slice_b_pdbus_out : pdbus_slice_array; --std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_a_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); Signal slice_b_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_enable : std_logic; signal port_a_wr_enable : std_logic; signal port_a_ssr : std_logic; signal port_b_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_b_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_enable : std_logic; signal port_b_wr_enable : std_logic; signal port_b_ssr : std_logic; begin -- generate port_a_enable <= Wr_Enable; port_a_wr_enable <= Wr_Req; port_a_ssr <= Wr_rst; port_b_data_in <= (others => '0'); -- no input data to port B port_b_enable <= Rd_Enable; port_b_wr_enable <= '0'; -- no writing to port B port_b_ssr <= Rd_rst; -- translate big-endian and little_endian indexes of the -- data buses TRANSLATE_DATA : process (Wr_Data, port_b_data_out) Begin port_a_data_in <= (others => '0'); for i in C_DP_DATA_WIDTH-1 downto 0 loop port_a_data_in(i) <= Wr_Data(C_DP_DATA_WIDTH-1-i); Rd_Data(C_DP_DATA_WIDTH-1-i) <= port_b_data_out(i); End loop; End process TRANSLATE_DATA; -- translate big-endian and little_endian indexes of the -- address buses (makes simulation easier) TRANSLATE_ADDRESS : process (Wr_Address, Rd_Address) Begin port_a_addr <= (others => '0'); port_b_addr <= (others => '0'); for i in C_DP_ADDRESS_WIDTH-1 downto 0 loop port_a_addr(i) <= Wr_Address(C_DP_ADDRESS_WIDTH-1-i); port_b_addr(i) <= Rd_Address(C_DP_ADDRESS_WIDTH-1-i); End loop; End process TRANSLATE_ADDRESS; slice_a_abus <= port_a_addr; slice_b_abus <= port_b_addr; BRAM_LOOP : for i in BRAM_NUM downto 1 generate --slice_a_pdbus_in(i) <= port_a_data_in((i*SLICE_DBUS_WIDTH)-1 downto -- (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH); slice_a_dbus_in(i) <= port_a_data_in((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH); --port_a_data_out((i*SLICE_DBUS_WIDTH)-1 downto -- (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH) <= slice_a_pdbus_out(i); port_a_data_out((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH) <= slice_a_dbus_out(i); --slice_b_pdbus_in(i) <= port_b_data_in((i*SLICE_DBUS_WIDTH)-1 downto -- (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH); slice_b_dbus_in(i) <= port_b_data_in((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH); --port_b_data_out((i*SLICE_DBUS_WIDTH)-1 downto -- (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH) <= slice_b_pdbus_out(i); port_b_data_out((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH) <= slice_b_dbus_out(i); -- Port A is fixed as the input (write) port -- Port B is fixed as the output (read) port I_DPB16_8192x2 : RAMB16_S2_S2 port map( DIA => slice_a_dbus_in(i), DIB => slice_b_dbus_in(i), ENA => port_a_enable, ENB => port_b_enable, WEA => port_a_wr_enable, WEB => port_b_wr_enable, SSRA => port_a_ssr, SSRB => port_b_ssr, CLKA => Wr_Clk, CLKB => Rd_Clk, ADDRA => slice_a_abus, ADDRB => slice_b_abus, DOA => slice_a_dbus_out(i), DOB => slice_b_dbus_out(i) ); End generate BRAM_LOOP; end generate Using_RAMB16_S2_S2; --========================================================================== ---------------------------------------------------------------------------- -- Using VII 16384 x 1 Dual Port Primitive ---------------------------------------------------------------------------- Using_RAMB16_S1_S1 : if (BRAM_PRIMITIVE = B16_S1_S1) generate component RAMB16_S1_S1 port ( DIA : in std_logic_vector (0 downto 0); DIB : in std_logic_vector (0 downto 0); ENA : in std_logic; ENB : in std_logic; WEA : in std_logic; WEB : in std_logic; SSRA : in std_logic; SSRB : in std_logic; CLKA : in std_logic; CLKB : in std_logic; ADDRA : in std_logic_vector (13 downto 0); ADDRB : in std_logic_vector (13 downto 0); DOA : out std_logic_vector (0 downto 0); DOB : out std_logic_vector (0 downto 0) ); end component; Constant PRIM_ADDR_WIDTH : integer := 14; -- 16384 deep Constant PRIM_PDBUS_WIDTH : integer := 0; -- 0 parity data bits Constant PRIM_DBUS_WIDTH : integer := 1; -- 1 data bits Constant SLICE_DBUS_WIDTH : integer := PRIM_DBUS_WIDTH + PRIM_PDBUS_WIDTH; -- (data + parity) Constant BRAM_DATA_WIDTH : integer := BRAM_NUM * SLICE_DBUS_WIDTH; type dbus_slice_array is array(BRAM_NUM downto 1) of std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); --type pdbus_slice_array is array(BRAM_NUM downto 1) of -- std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_a_dbus_in : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); --Signal slice_a_pdbus_in : pdbus_slice_array; -- std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_a_dbus_out : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); --Signal slice_a_pdbus_out : pdbus_slice_array; --std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_b_dbus_in : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); --Signal slice_b_pdbus_in : pdbus_slice_array; --std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_b_dbus_out : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); --Signal slice_b_pdbus_out : pdbus_slice_array; --std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_a_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); Signal slice_b_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_enable : std_logic; signal port_a_wr_enable : std_logic; signal port_a_ssr : std_logic; signal port_b_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_b_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_enable : std_logic; signal port_b_wr_enable : std_logic; signal port_b_ssr : std_logic; begin -- generate port_a_enable <= Wr_Enable; port_a_wr_enable <= Wr_Req; port_a_ssr <= Wr_rst; port_b_data_in <= (others => '0'); -- no input data to port B port_b_enable <= Rd_Enable; port_b_wr_enable <= '0'; -- no writing to port B port_b_ssr <= Rd_rst; -- translate big-endian and little_endian indexes of the -- data buses TRANSLATE_DATA : process (Wr_Data, port_b_data_out) Begin port_a_data_in <= (others => '0'); for i in C_DP_DATA_WIDTH-1 downto 0 loop port_a_data_in(i) <= Wr_Data(C_DP_DATA_WIDTH-1-i); Rd_Data(C_DP_DATA_WIDTH-1-i) <= port_b_data_out(i); End loop; End process TRANSLATE_DATA; -- translate big-endian and little_endian indexes of the -- address buses (makes simulation easier) TRANSLATE_ADDRESS : process (Wr_Address, Rd_Address) Begin port_a_addr <= (others => '0'); port_b_addr <= (others => '0'); for i in C_DP_ADDRESS_WIDTH-1 downto 0 loop port_a_addr(i) <= Wr_Address(C_DP_ADDRESS_WIDTH-1-i); port_b_addr(i) <= Rd_Address(C_DP_ADDRESS_WIDTH-1-i); End loop; End process TRANSLATE_ADDRESS; slice_a_abus <= port_a_addr; slice_b_abus <= port_b_addr; BRAM_LOOP : for i in BRAM_NUM downto 1 generate --slice_a_pdbus_in(i) <= port_a_data_in((i*SLICE_DBUS_WIDTH)-1 downto -- (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH); slice_a_dbus_in(i) <= port_a_data_in((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH); --port_a_data_out((i*SLICE_DBUS_WIDTH)-1 downto -- (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH) <= slice_a_pdbus_out(i); port_a_data_out((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH) <= slice_a_dbus_out(i); --slice_b_pdbus_in(i) <= port_b_data_in((i*SLICE_DBUS_WIDTH)-1 downto -- (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH); slice_b_dbus_in(i) <= port_b_data_in((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH); --port_b_data_out((i*SLICE_DBUS_WIDTH)-1 downto -- (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH) <= slice_b_pdbus_out(i); port_b_data_out((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH) <= slice_b_dbus_out(i); -- Port A is fixed as the input (write) port -- Port B is fixed as the output (read) port I_DPB16_16384x1 : RAMB16_S1_S1 port map( DIA => slice_a_dbus_in(i), DIB => slice_b_dbus_in(i), ENA => port_a_enable, ENB => port_b_enable, WEA => port_a_wr_enable, WEB => port_b_wr_enable, SSRA => port_a_ssr, SSRB => port_b_ssr, CLKA => Wr_Clk, CLKB => Rd_Clk, ADDRA => slice_a_abus, ADDRB => slice_b_abus, DOA => slice_a_dbus_out(i), DOB => slice_b_dbus_out(i) ); End generate BRAM_LOOP; end generate Using_RAMB16_S1_S1; --========================================================================== -- End of Virtex-II and Virtex-II Pro support --/////////////////////////////////////////////////////////////////////////// --/////////////////////////////////////////////////////////////////////////// -- Start Spartan-II, Spartan-IIE, Virtex, and VirtexE support ---------------------------------------------------------------------------- -- Using Spartan-II, Spartan-IIE, Virtex, and VirtexE -- 4096 x 1 Dual Port Primitive ---------------------------------------------------------------------------- Using_RAMB4_S1_S1 : if (BRAM_PRIMITIVE = B4_S1_S1) generate component RAMB4_S1_S1 port ( DIA : in std_logic_vector (0 downto 0); DIB : in std_logic_vector (0 downto 0); ENA : in std_logic; ENB : in std_logic; WEA : in std_logic; WEB : in std_logic; RSTA : in std_logic; RSTB : in std_logic; CLKA : in std_logic; CLKB : in std_logic; ADDRA : in std_logic_vector (11 downto 0); ADDRB : in std_logic_vector (11 downto 0); DOA : out std_logic_vector (0 downto 0); DOB : out std_logic_vector (0 downto 0)); end component; Constant PRIM_ADDR_WIDTH : integer := 12; -- 4096 deep Constant PRIM_DBUS_WIDTH : integer := 1; -- 1 data bit Constant BRAM_DATA_WIDTH : integer := BRAM_NUM * PRIM_DBUS_WIDTH; type dbus_slice_array is array(BRAM_NUM downto 1) of std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); Signal slice_a_dbus_in : dbus_slice_array; Signal slice_a_dbus_out : dbus_slice_array; Signal slice_b_dbus_in : dbus_slice_array; Signal slice_b_dbus_out : dbus_slice_array; Signal slice_a_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); Signal slice_b_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_enable : std_logic; signal port_a_wr_enable : std_logic; signal port_a_ssr : std_logic; signal port_b_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_b_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_enable : std_logic; signal port_b_wr_enable : std_logic; signal port_b_ssr : std_logic; begin -- generate port_a_enable <= Wr_Enable; port_a_wr_enable <= Wr_Req; port_a_ssr <= wr_rst; -- no output reset value port_b_data_in <= (others => '0'); -- no input data to port B port_b_enable <= Rd_Enable; port_b_wr_enable <= '0'; -- no writing to port B port_b_ssr <= rd_rst; -- no output reset value -- translate big-endian and little_endian indexes of the -- data buses TRANSLATE_DATA : process (Wr_Data, port_b_data_out) Begin port_a_data_in <= (others => '0'); for i in C_DP_DATA_WIDTH-1 downto 0 loop port_a_data_in(i) <= Wr_Data(C_DP_DATA_WIDTH-1-i); Rd_Data(C_DP_DATA_WIDTH-1-i) <= port_b_data_out(i); End loop; End process TRANSLATE_DATA; -- translate big-endian and little_endian indexes of the -- address buses (makes simulation easier) TRANSLATE_ADDRESS : process (Wr_Address, Rd_Address) Begin port_a_addr <= (others => '0'); port_b_addr <= (others => '0'); for i in C_DP_ADDRESS_WIDTH-1 downto 0 loop port_a_addr(i) <= Wr_Address(C_DP_ADDRESS_WIDTH-1-i); port_b_addr(i) <= Rd_Address(C_DP_ADDRESS_WIDTH-1-i); End loop; End process TRANSLATE_ADDRESS; slice_a_abus <= port_a_addr; slice_b_abus <= port_b_addr; BRAM_LOOP : for i in BRAM_NUM downto 1 generate slice_a_dbus_in(i) <= port_a_data_in((i*PRIM_DBUS_WIDTH)-1 downto (i*PRIM_DBUS_WIDTH)-PRIM_DBUS_WIDTH); port_a_data_out((i*PRIM_DBUS_WIDTH)-1 downto (i*PRIM_DBUS_WIDTH)-PRIM_DBUS_WIDTH) <= slice_a_dbus_out(i); slice_b_dbus_in(i) <= port_b_data_in((i*PRIM_DBUS_WIDTH)-1 downto (i*PRIM_DBUS_WIDTH)-PRIM_DBUS_WIDTH); port_b_data_out((i*PRIM_DBUS_WIDTH)-1 downto (i*PRIM_DBUS_WIDTH)-PRIM_DBUS_WIDTH) <= slice_b_dbus_out(i); -- Port A is fixed as the input (write) port -- Port B is fixed as the output (read) port I_DPB4_4096x1 : RAMB4_S1_S1 port map( DIA => slice_a_dbus_in(i), DIB => slice_b_dbus_in(i), ENA => port_a_enable, ENB => port_b_enable, WEA => port_a_wr_enable, WEB => port_b_wr_enable, RSTA => port_a_ssr, RSTB => port_b_ssr, CLKA => Wr_Clk, CLKB => Rd_Clk, ADDRA => slice_a_abus, ADDRB => slice_b_abus, DOA => slice_a_dbus_out(i), DOB => slice_b_dbus_out(i) ); End generate BRAM_LOOP; end generate Using_RAMB4_S1_S1; --========================================================================== ---------------------------------------------------------------------------- -- Using Spartan-II, Spartan-IIE, Virtex, and VirtexE -- 2048 x 2 Dual Port Primitive ---------------------------------------------------------------------------- Using_RAMB4_S2_S2 : if (BRAM_PRIMITIVE = B4_S2_S2) generate component RAMB4_S2_S2 port ( DIA : in std_logic_vector (1 downto 0); DIB : in std_logic_vector (1 downto 0); ENA : in std_logic; ENB : in std_logic; WEA : in std_logic; WEB : in std_logic; RSTA : in std_logic; RSTB : in std_logic; CLKA : in std_logic; CLKB : in std_logic; ADDRA : in std_logic_vector (10 downto 0); ADDRB : in std_logic_vector (10 downto 0); DOA : out std_logic_vector (1 downto 0); DOB : out std_logic_vector (1 downto 0)); end component; Constant PRIM_ADDR_WIDTH : integer := 11; -- 2048 deep Constant PRIM_DBUS_WIDTH : integer := 2; -- 2 data bits Constant BRAM_DATA_WIDTH : integer := BRAM_NUM * PRIM_DBUS_WIDTH; type dbus_slice_array is array(BRAM_NUM downto 1) of std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); Signal slice_a_dbus_in : dbus_slice_array; Signal slice_a_dbus_out : dbus_slice_array; Signal slice_b_dbus_in : dbus_slice_array; Signal slice_b_dbus_out : dbus_slice_array; Signal slice_a_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); Signal slice_b_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_enable : std_logic; signal port_a_wr_enable : std_logic; signal port_a_ssr : std_logic; signal port_b_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_b_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_enable : std_logic; signal port_b_wr_enable : std_logic; signal port_b_ssr : std_logic; begin -- generate port_a_enable <= Wr_Enable; port_a_wr_enable <= Wr_Req; port_a_ssr <= wr_rst; -- no output reset value port_b_data_in <= (others => '0'); -- no input data to port B port_b_enable <= Rd_Enable; port_b_wr_enable <= '0'; -- no writing to port B port_b_ssr <= rd_rst; -- no output reset value -- translate big-endian and little_endian indexes of the -- data buses TRANSLATE_DATA : process (Wr_Data, port_b_data_out) Begin port_a_data_in <= (others => '0'); for i in C_DP_DATA_WIDTH-1 downto 0 loop port_a_data_in(i) <= Wr_Data(C_DP_DATA_WIDTH-1-i); Rd_Data(C_DP_DATA_WIDTH-1-i) <= port_b_data_out(i); End loop; End process TRANSLATE_DATA; -- translate big-endian and little_endian indexes of the -- address buses (makes simulation easier) TRANSLATE_ADDRESS : process (Wr_Address, Rd_Address) Begin port_a_addr <= (others => '0'); port_b_addr <= (others => '0'); for i in C_DP_ADDRESS_WIDTH-1 downto 0 loop port_a_addr(i) <= Wr_Address(C_DP_ADDRESS_WIDTH-1-i); port_b_addr(i) <= Rd_Address(C_DP_ADDRESS_WIDTH-1-i); End loop; End process TRANSLATE_ADDRESS; slice_a_abus <= port_a_addr; slice_b_abus <= port_b_addr; BRAM_LOOP : for i in BRAM_NUM downto 1 generate slice_a_dbus_in(i) <= port_a_data_in((i*PRIM_DBUS_WIDTH)-1 downto (i*PRIM_DBUS_WIDTH)-PRIM_DBUS_WIDTH); port_a_data_out((i*PRIM_DBUS_WIDTH)-1 downto (i*PRIM_DBUS_WIDTH)-PRIM_DBUS_WIDTH) <= slice_a_dbus_out(i); slice_b_dbus_in(i) <= port_b_data_in((i*PRIM_DBUS_WIDTH)-1 downto (i*PRIM_DBUS_WIDTH)-PRIM_DBUS_WIDTH); port_b_data_out((i*PRIM_DBUS_WIDTH)-1 downto (i*PRIM_DBUS_WIDTH)-PRIM_DBUS_WIDTH) <= slice_b_dbus_out(i); -- Port A is fixed as the input (write) port -- Port B is fixed as the output (read) port I_DPB4_2048x2 : RAMB4_S2_S2 port map( DIA => slice_a_dbus_in(i), DIB => slice_b_dbus_in(i), ENA => port_a_enable, ENB => port_b_enable, WEA => port_a_wr_enable, WEB => port_b_wr_enable, RSTA => port_a_ssr, RSTB => port_b_ssr, CLKA => Wr_Clk, CLKB => Rd_Clk, ADDRA => slice_a_abus, ADDRB => slice_b_abus, DOA => slice_a_dbus_out(i), DOB => slice_b_dbus_out(i) ); End generate BRAM_LOOP; end generate Using_RAMB4_S2_S2; --========================================================================== ---------------------------------------------------------------------------- -- Using Spartan-II, Spartan-IIE, Virtex, and VirtexE -- 1024 x 4 Dual Port Primitive ---------------------------------------------------------------------------- Using_RAMB4_S4_S4 : if (BRAM_PRIMITIVE = B4_S4_S4) generate component RAMB4_S4_S4 port ( DIA : in std_logic_vector (3 downto 0); DIB : in std_logic_vector (3 downto 0); ENA : in std_logic; ENB : in std_logic; WEA : in std_logic; WEB : in std_logic; RSTA : in std_logic; RSTB : in std_logic; CLKA : in std_logic; CLKB : in std_logic; ADDRA : in std_logic_vector (9 downto 0); ADDRB : in std_logic_vector (9 downto 0); DOA : out std_logic_vector (3 downto 0); DOB : out std_logic_vector (3 downto 0)); end component; Constant PRIM_ADDR_WIDTH : integer := 10; -- 1024 deep Constant PRIM_DBUS_WIDTH : integer := 4; -- 4 data bits Constant BRAM_DATA_WIDTH : integer := BRAM_NUM * PRIM_DBUS_WIDTH; type dbus_slice_array is array(BRAM_NUM downto 1) of std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); Signal slice_a_dbus_in : dbus_slice_array; Signal slice_a_dbus_out : dbus_slice_array; Signal slice_b_dbus_in : dbus_slice_array; Signal slice_b_dbus_out : dbus_slice_array; Signal slice_a_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); Signal slice_b_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_enable : std_logic; signal port_a_wr_enable : std_logic; signal port_a_ssr : std_logic; signal port_b_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_b_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_enable : std_logic; signal port_b_wr_enable : std_logic; signal port_b_ssr : std_logic; begin -- generate port_a_enable <= Wr_Enable; port_a_wr_enable <= Wr_Req; port_a_ssr <= wr_rst; -- no output reset value port_b_data_in <= (others => '0'); -- no input data to port B port_b_enable <= Rd_Enable; port_b_wr_enable <= '0'; -- no writing to port B port_b_ssr <= rd_rst; -- no output reset value -- translate big-endian and little_endian indexes of the -- data buses TRANSLATE_DATA : process (Wr_Data, port_b_data_out) Begin port_a_data_in <= (others => '0'); for i in C_DP_DATA_WIDTH-1 downto 0 loop port_a_data_in(i) <= Wr_Data(C_DP_DATA_WIDTH-1-i); Rd_Data(C_DP_DATA_WIDTH-1-i) <= port_b_data_out(i); End loop; End process TRANSLATE_DATA; -- translate big-endian and little_endian indexes of the -- address buses (makes simulation easier) TRANSLATE_ADDRESS : process (Wr_Address, Rd_Address) Begin port_a_addr <= (others => '0'); port_b_addr <= (others => '0'); for i in C_DP_ADDRESS_WIDTH-1 downto 0 loop port_a_addr(i) <= Wr_Address(C_DP_ADDRESS_WIDTH-1-i); port_b_addr(i) <= Rd_Address(C_DP_ADDRESS_WIDTH-1-i); End loop; End process TRANSLATE_ADDRESS; slice_a_abus <= port_a_addr; slice_b_abus <= port_b_addr; BRAM_LOOP : for i in BRAM_NUM downto 1 generate slice_a_dbus_in(i) <= port_a_data_in((i*PRIM_DBUS_WIDTH)-1 downto (i*PRIM_DBUS_WIDTH)-PRIM_DBUS_WIDTH); port_a_data_out((i*PRIM_DBUS_WIDTH)-1 downto (i*PRIM_DBUS_WIDTH)-PRIM_DBUS_WIDTH) <= slice_a_dbus_out(i); slice_b_dbus_in(i) <= port_b_data_in((i*PRIM_DBUS_WIDTH)-1 downto (i*PRIM_DBUS_WIDTH)-PRIM_DBUS_WIDTH); port_b_data_out((i*PRIM_DBUS_WIDTH)-1 downto (i*PRIM_DBUS_WIDTH)-PRIM_DBUS_WIDTH) <= slice_b_dbus_out(i); -- Port A is fixed as the input (write) port -- Port B is fixed as the output (read) port I_DPB4_1024x4 : RAMB4_S4_S4 port map( DIA => slice_a_dbus_in(i), DIB => slice_b_dbus_in(i), ENA => port_a_enable, ENB => port_b_enable, WEA => port_a_wr_enable, WEB => port_b_wr_enable, RSTA => port_a_ssr, RSTB => port_b_ssr, CLKA => Wr_Clk, CLKB => Rd_Clk, ADDRA => slice_a_abus, ADDRB => slice_b_abus, DOA => slice_a_dbus_out(i), DOB => slice_b_dbus_out(i) ); End generate BRAM_LOOP; end generate Using_RAMB4_S4_S4; --========================================================================== ---------------------------------------------------------------------------- -- Using Spartan-II, Spartan-IIE, Virtex, and VirtexE -- 512 x 8 Dual Port Primitive ---------------------------------------------------------------------------- Using_RAMB4_S8_S8 : if (BRAM_PRIMITIVE = B4_S8_S8) generate component RAMB4_S8_S8 port ( DIA : in std_logic_vector (7 downto 0); DIB : in std_logic_vector (7 downto 0); ENA : in std_logic; ENB : in std_logic; WEA : in std_logic; WEB : in std_logic; RSTA : in std_logic; RSTB : in std_logic; CLKA : in std_logic; CLKB : in std_logic; ADDRA : in std_logic_vector (8 downto 0); ADDRB : in std_logic_vector (8 downto 0); DOA : out std_logic_vector (7 downto 0); DOB : out std_logic_vector (7 downto 0)); end component; Constant PRIM_ADDR_WIDTH : integer := 9; -- 512 deep Constant PRIM_DBUS_WIDTH : integer := 8; -- 8 data bits Constant BRAM_DATA_WIDTH : integer := BRAM_NUM * PRIM_DBUS_WIDTH; type dbus_slice_array is array(BRAM_NUM downto 1) of std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); Signal slice_a_dbus_in : dbus_slice_array; Signal slice_a_dbus_out : dbus_slice_array; Signal slice_b_dbus_in : dbus_slice_array; Signal slice_b_dbus_out : dbus_slice_array; Signal slice_a_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); Signal slice_b_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_enable : std_logic; signal port_a_wr_enable : std_logic; signal port_a_ssr : std_logic; signal port_b_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_b_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_enable : std_logic; signal port_b_wr_enable : std_logic; signal port_b_ssr : std_logic; begin -- generate port_a_enable <= Wr_Enable; port_a_wr_enable <= Wr_Req; port_a_ssr <= wr_rst; -- no output reset value port_b_data_in <= (others => '0'); -- no input data to port B port_b_enable <= Rd_Enable; port_b_wr_enable <= '0'; -- no writing to port B port_b_ssr <= rd_rst; -- no output reset value -- translate big-endian and little_endian indexes of the -- data buses TRANSLATE_DATA : process (Wr_Data, port_b_data_out) Begin port_a_data_in <= (others => '0'); for i in C_DP_DATA_WIDTH-1 downto 0 loop port_a_data_in(i) <= Wr_Data(C_DP_DATA_WIDTH-1-i); Rd_Data(C_DP_DATA_WIDTH-1-i) <= port_b_data_out(i); End loop; End process TRANSLATE_DATA; -- translate big-endian and little_endian indexes of the -- address buses (makes simulation easier) TRANSLATE_ADDRESS : process (Wr_Address, Rd_Address) Begin port_a_addr <= (others => '0'); port_b_addr <= (others => '0'); for i in C_DP_ADDRESS_WIDTH-1 downto 0 loop port_a_addr(i) <= Wr_Address(C_DP_ADDRESS_WIDTH-1-i); port_b_addr(i) <= Rd_Address(C_DP_ADDRESS_WIDTH-1-i); End loop; End process TRANSLATE_ADDRESS; slice_a_abus <= port_a_addr; slice_b_abus <= port_b_addr; BRAM_LOOP : for i in BRAM_NUM downto 1 generate slice_a_dbus_in(i) <= port_a_data_in((i*PRIM_DBUS_WIDTH)-1 downto (i*PRIM_DBUS_WIDTH)-PRIM_DBUS_WIDTH); port_a_data_out((i*PRIM_DBUS_WIDTH)-1 downto (i*PRIM_DBUS_WIDTH)-PRIM_DBUS_WIDTH) <= slice_a_dbus_out(i); slice_b_dbus_in(i) <= port_b_data_in((i*PRIM_DBUS_WIDTH)-1 downto (i*PRIM_DBUS_WIDTH)-PRIM_DBUS_WIDTH); port_b_data_out((i*PRIM_DBUS_WIDTH)-1 downto (i*PRIM_DBUS_WIDTH)-PRIM_DBUS_WIDTH) <= slice_b_dbus_out(i); -- Port A is fixed as the input (write) port -- Port B is fixed as the output (read) port I_DPB4_512x8 : RAMB4_S8_S8 port map( DIA => slice_a_dbus_in(i), DIB => slice_b_dbus_in(i), ENA => port_a_enable, ENB => port_b_enable, WEA => port_a_wr_enable, WEB => port_b_wr_enable, RSTA => port_a_ssr, RSTB => port_b_ssr, CLKA => Wr_Clk, CLKB => Rd_Clk, ADDRA => slice_a_abus, ADDRB => slice_b_abus, DOA => slice_a_dbus_out(i), DOB => slice_b_dbus_out(i) ); End generate BRAM_LOOP; end generate Using_RAMB4_S8_S8; --========================================================================== ---------------------------------------------------------------------------- -- Using Spartan-II, Spartan-IIE, Virtex, and VirtexE -- 256 x 16 Dual Port Primitive ---------------------------------------------------------------------------- Using_RAMB4_S16_S16 : if (BRAM_PRIMITIVE = B4_S16_S16) generate component RAMB4_S16_S16 port (DIA : in STD_LOGIC_VECTOR (15 downto 0); DIB : in STD_LOGIC_VECTOR (15 downto 0); ENA : in std_logic; ENB : in std_logic; WEA : in std_logic; WEB : in std_logic; RSTA : in std_logic; RSTB : in std_logic; CLKA : in std_logic; CLKB : in std_logic; ADDRA : in STD_LOGIC_VECTOR (7 downto 0); ADDRB : in STD_LOGIC_VECTOR (7 downto 0); DOA : out STD_LOGIC_VECTOR (15 downto 0); DOB : out STD_LOGIC_VECTOR (15 downto 0)); end component; Constant PRIM_ADDR_WIDTH : integer := 8; -- 256 deep Constant PRIM_DBUS_WIDTH : integer := 16; -- 16 data bits Constant BRAM_DATA_WIDTH : integer := BRAM_NUM * PRIM_DBUS_WIDTH; type dbus_slice_array is array(BRAM_NUM downto 1) of std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); Signal slice_a_dbus_in : dbus_slice_array; Signal slice_a_dbus_out : dbus_slice_array; Signal slice_b_dbus_in : dbus_slice_array; Signal slice_b_dbus_out : dbus_slice_array; Signal slice_a_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); Signal slice_b_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_enable : std_logic; signal port_a_wr_enable : std_logic; signal port_a_ssr : std_logic; signal port_b_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_b_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_enable : std_logic; signal port_b_wr_enable : std_logic; signal port_b_ssr : std_logic; begin -- generate port_a_enable <= Wr_Enable; port_a_wr_enable <= Wr_Req; port_a_ssr <= wr_rst; -- no output reset value port_b_data_in <= (others => '0'); -- no input data to port B port_b_enable <= Rd_Enable; port_b_wr_enable <= '0'; -- no writing to port B port_b_ssr <= rd_rst; -- no output reset value -- translate big-endian and little_endian indexes of the -- data buses TRANSLATE_DATA : process (Wr_Data, port_b_data_out) Begin port_a_data_in <= (others => '0'); for i in C_DP_DATA_WIDTH-1 downto 0 loop port_a_data_in(i) <= Wr_Data(C_DP_DATA_WIDTH-1-i); Rd_Data(C_DP_DATA_WIDTH-1-i) <= port_b_data_out(i); End loop; End process TRANSLATE_DATA; -- translate big-endian and little_endian indexes of the -- address buses (makes simulation easier) TRANSLATE_ADDRESS : process (Wr_Address, Rd_Address) Begin port_a_addr <= (others => '0'); port_b_addr <= (others => '0'); for i in C_DP_ADDRESS_WIDTH-1 downto 0 loop port_a_addr(i) <= Wr_Address(C_DP_ADDRESS_WIDTH-1-i); port_b_addr(i) <= Rd_Address(C_DP_ADDRESS_WIDTH-1-i); End loop; End process TRANSLATE_ADDRESS; slice_a_abus <= port_a_addr; slice_b_abus <= port_b_addr; BRAM_LOOP : for i in BRAM_NUM downto 1 generate slice_a_dbus_in(i) <= port_a_data_in((i*PRIM_DBUS_WIDTH)-1 downto (i*PRIM_DBUS_WIDTH)-PRIM_DBUS_WIDTH); port_a_data_out((i*PRIM_DBUS_WIDTH)-1 downto (i*PRIM_DBUS_WIDTH)-PRIM_DBUS_WIDTH) <= slice_a_dbus_out(i); slice_b_dbus_in(i) <= port_b_data_in((i*PRIM_DBUS_WIDTH)-1 downto (i*PRIM_DBUS_WIDTH)-PRIM_DBUS_WIDTH); port_b_data_out((i*PRIM_DBUS_WIDTH)-1 downto (i*PRIM_DBUS_WIDTH)-PRIM_DBUS_WIDTH) <= slice_b_dbus_out(i); -- Port A is fixed as the input (write) port -- Port B is fixed as the output (read) port I_DPB4_256x16 : RAMB4_S16_S16 port map( DIA => slice_a_dbus_in(i), DIB => slice_b_dbus_in(i), ENA => port_a_enable, ENB => port_b_enable, WEA => port_a_wr_enable, WEB => port_b_wr_enable, RSTA => port_a_ssr, RSTB => port_b_ssr, CLKA => Wr_Clk, CLKB => Rd_Clk, ADDRA => slice_a_abus, ADDRB => slice_b_abus, DOA => slice_a_dbus_out(i), DOB => slice_b_dbus_out(i) ); End generate BRAM_LOOP; end generate Using_RAMB4_S16_S16; --========================================================================== UNSUPPORTED_FAMILY : if (BRAM_PRIMITIVE = indeterminate) generate begin -- assert (false) -- report "Unsupported Part Family Selected or FIFO Depth/Width is invalid!" -- severity failure; -- end generate UNSUPPORTED_FAMILY; end architecture implementation;
------------------------------------------------------------------------------- -- $Id: pf_dpram_select.vhd,v 1.1.4.1 2010/09/14 22:35:47 dougt Exp $ ------------------------------------------------------------------------------- -- pf_dpram_select.vhd ------------------------------------------------------------------------------- -- -- ************************************************************************* -- ** ** -- ** DISCLAIMER OF LIABILITY ** -- ** ** -- ** This text/file contains proprietary, confidential ** -- ** information of Xilinx, Inc., is distributed under ** -- ** license from Xilinx, Inc., and may be used, copied ** -- ** and/or disclosed only pursuant to the terms of a valid ** -- ** license agreement with Xilinx, Inc. Xilinx hereby ** -- ** grants you a license to use this text/file solely for ** -- ** design, simulation, implementation and creation of ** -- ** design files limited to Xilinx devices or technologies. ** -- ** Use with non-Xilinx devices or technologies is expressly ** -- ** prohibited and immediately terminates your license unless ** -- ** covered by a separate agreement. ** -- ** ** -- ** Xilinx is providing this design, code, or information ** -- ** "as-is" solely for use in developing programs and ** -- ** solutions for Xilinx devices, with no obligation on the ** -- ** part of Xilinx to provide support. By providing this design, ** -- ** code, or information as one possible implementation of ** -- ** this feature, application or standard, Xilinx is making no ** -- ** representation that this implementation is free from any ** -- ** claims of infringement. You are responsible for obtaining ** -- ** any rights you may require for your implementation. ** -- ** Xilinx expressly disclaims any warranty whatsoever with ** -- ** respect to the adequacy of the implementation, including ** -- ** but not limited to any warranties or representations that this ** -- ** implementation is free from claims of infringement, implied ** -- ** warranties of merchantability or fitness for a particular ** -- ** purpose. ** -- ** ** -- ** Xilinx products are not intended for use in life support ** -- ** appliances, devices, or systems. Use in such applications is ** -- ** expressly prohibited. ** -- ** ** -- ** Any modifications that are made to the Source Code are ** -- ** done at the user’s sole risk and will be unsupported. ** -- ** The Xilinx Support Hotline does not have access to source ** -- ** code and therefore cannot answer specific questions related ** -- ** to source HDL. The Xilinx Hotline support of original source ** -- ** code IP shall only address issues and questions related ** -- ** to the standard Netlist version of the core (and thus ** -- ** indirectly, the original core source). ** -- ** ** -- ** Copyright (c) 2001-2010 Xilinx, Inc. All rights reserved. ** -- ** ** -- ** This copyright and support notice must be retained as part ** -- ** of this text at all times. ** -- ** ** -- ************************************************************************* -- ------------------------------------------------------------------------------- -- Filename: pf_dpram_select.vhd -- -- Description: This vhdl design file uses three input parameters describing -- the desired storage depth, data width, and FPGA family type. -- From these, the design selects the optimum Block RAM -- primitive for the basic storage element and connects them -- in parallel to accomodate the desired data width. -- -- VHDL-Standard: VHDL'93 ------------------------------------------------------------------------------- -- Structure: -- pf_dpram_select.vhd -- ------------------------------------------------------------------------------- -- Author: D. Thorpe -- Revision: $Revision: 1.1.4.1 $ -- Date: $Date: 2010/09/14 22:35:47 $ -- -- History: -- DET Oct. 7, 2001 First Version -- - Adopted design concepts from Goran Bilski's -- opb_bram.vhd design in the formulation of this -- design for the Mauna Loa packet FIFO dual port -- core function. -- -- DET Oct-31-2001 -- - Changed the generic input parameter C_FAMILY of type string -- back to the boolean type parameter C_VIRTEX_II. XST support -- change. -- -- -- DET 1/17/2008 v4_0 -- ~~~~~~ -- - Incorporated new disclaimer header -- ^^^^^^ -- ------------------------------------------------------------------------------- -- Naming Conventions: -- active low signals: "*_n" -- clock signals: "clk", "clk_div#", "clk_#x" -- reset signals: "rst", "rst_n" -- generics: "C_*" -- user defined types: "*_TYPE" -- state machine next state: "*_ns" -- state machine current state: "*_cs" -- combinatorial signals: "*_com" -- pipelined or register delay signals: "*_d#" -- counter signals: "*cnt*" -- clock enable signals: "*_ce" -- internal version of output port "*_i" -- device pins: "*_pin" -- ports: - Names begin with Uppercase -- processes: "*_PROCESS" -- component instantiations: "<ENTITY_>I_<#|FUNC> ------------------------------------------------------------------------------- library IEEE; use IEEE.std_logic_1164.all; use IEEE.numeric_std.all; library unisim; use unisim.all; -- uses BRAM primitives ------------------------------------------------------------------------------- entity pf_dpram_select is generic ( C_DP_DATA_WIDTH : Integer := 32; C_DP_ADDRESS_WIDTH : Integer := 9; C_VIRTEX_II : Boolean := true ); port ( -- Write Port signals Wr_rst : In std_logic; Wr_Clk : in std_logic; Wr_Enable : In std_logic; Wr_Req : In std_logic; Wr_Address : in std_logic_vector(0 to C_DP_ADDRESS_WIDTH-1); Wr_Data : In std_logic_vector(0 to C_DP_DATA_WIDTH-1); -- Read Port Signals Rd_rst : In std_logic; Rd_Clk : in std_logic; Rd_Enable : In std_logic; Rd_Address : in std_logic_vector(0 to C_DP_ADDRESS_WIDTH-1); Rd_Data : out std_logic_vector(0 to C_DP_DATA_WIDTH-1) ); end entity pf_dpram_select; architecture implementation of pf_dpram_select is Type family_type is ( any , x4k , x4ke , x4kl , x4kex , x4kxl , x4kxv , x4kxla , spartan , spartanxl, spartan2 , spartan2e, virtex , virtexe , virtex2 , virtex2p , unsupported ); Type bram_prim_type is ( use_srl , B4_S1_S1 , B4_S2_S2 , B4_S4_S4 , B4_S8_S8 , B4_S16_S16 , B16_S1_S1 , B16_S2_S2 , B16_S4_S4 , B16_S9_S9 , B16_S18_S18 , B16_S36_S36 , indeterminate ); ----------------------------------------------------------------------------- -- This function converts the input C_VIRTEX_II boolean type to an enumerated -- type. Only Virtex and Virtex II types are currently supported. This -- used to convert a string to a family type function but string support in -- the synthesis tools was found to be mutually exclusive between Synplicity -- and XST. ----------------------------------------------------------------------------- function get_prim_family (vertex2_select : boolean) return family_type is Variable prim_family : family_type; begin If (vertex2_select) Then prim_family := virtex2; else prim_family := virtex; End if; Return (prim_family); end function get_prim_family; ----------------------------------------------------------------------------- -- This function chooses the optimum BRAM primitive to utilize as -- specified by the inputs for data depth, data width, and FPGA part family. ----------------------------------------------------------------------------- function get_bram_primitive (target_depth: integer; target_width: integer; family : family_type ) return bram_prim_type is Variable primitive : bram_prim_type; begin Case family Is When virtex2p | virtex2 => Case target_depth Is When 1 | 2 => primitive := indeterminate; -- depth is too small for BRAM -- based fifo control logic When 4 | 8 | 16 => -- primitive := use_srl; -- activate when SRL FIFO incorporated Case target_width Is -- use BRAM for now When 1 => primitive := B16_S1_S1; When 2 => primitive := B16_S2_S2; When 3 | 4 => primitive := B16_S4_S4; When 5 | 6 | 7 | 8 | 9 => primitive := B16_S9_S9; When 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 => primitive := B16_S18_S18; When others => primitive := B16_S36_S36; End case; when 32 | 64 | 128 | 256 | 512 => Case target_width Is When 1 => primitive := B16_S1_S1; When 2 => primitive := B16_S2_S2; When 3 | 4 => primitive := B16_S4_S4; When 5 | 6 | 7 | 8 | 9 => primitive := B16_S9_S9; When 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 => primitive := B16_S18_S18; When others => primitive := B16_S36_S36; End case; When 1024 => Case target_width Is When 1 => primitive := B16_S1_S1; When 2 => primitive := B16_S2_S2; When 3 | 4 => primitive := B16_S4_S4; When 5 | 6 | 7 | 8 | 9 => primitive := B16_S9_S9; When others => primitive := B16_S18_S18; End case; When 2048 => Case target_width Is When 1 => primitive := B16_S1_S1; When 2 => primitive := B16_S2_S2; When 3 | 4 => primitive := B16_S4_S4; When others => primitive := B16_S9_S9; End case; When 4096 => Case target_width Is When 1 => primitive := B16_S1_S1; When 2 => primitive := B16_S2_S2; When others => primitive := B16_S4_S4; End case; When 8192 => Case target_width Is When 1 => primitive := B16_S1_S1; When others => primitive := B16_S2_S2; End case; When 16384 => primitive := B16_S1_S1; When others => primitive := indeterminate; End case; When spartan2 | spartan2e | virtex | virtexe => Case target_depth Is When 1 | 2 => primitive := indeterminate; -- depth is too small for BRAM -- based fifo control logic When 4 | 8 | 16 => -- primitive := use_srl; -- activate this when SRL FIFO is -- incorporated Case target_width Is -- use BRAM for now When 1 => primitive := B4_S1_S1; When 2 => primitive := B4_S2_S2; When 3 | 4 => primitive := B4_S4_S4; When 5 | 6 | 7 | 8 => primitive := B4_S8_S8; When others => primitive := B4_S16_S16; End case; when 32 | 64 | 128 | 256 => Case target_width Is When 1 => primitive := B4_S1_S1; When 2 => primitive := B4_S2_S2; When 3 | 4 => primitive := B4_S4_S4; When 5 | 6 | 7 | 8 => primitive := B4_S8_S8; When others => primitive := B4_S16_S16; End case; when 512 => Case target_width Is When 1 => primitive := B4_S1_S1; When 2 => primitive := B4_S2_S2; When 3 | 4 => primitive := B4_S4_S4; When others => primitive := B4_S8_S8; End case; When 1024 => Case target_width Is When 1 => primitive := B4_S1_S1; When 2 => primitive := B4_S2_S2; When others => primitive := B4_S4_S4; End case; When 2048 => Case target_width Is When 1 => primitive := B4_S1_S1; When others => primitive := B4_S2_S2; End case; When 4096 => primitive := B4_S1_S1; When others => primitive := indeterminate; End case; When others => primitive := indeterminate; End case; Return primitive; end function get_bram_primitive; ----------------------------------------------------------------------------- -- This function calculates the number of BRAM primitives required as -- specified by the inputs for data width and BRAM primitive type. ----------------------------------------------------------------------------- function get_num_prims (bram_prim : bram_prim_type; mem_width : integer) return integer is Variable bram_num : integer; begin Case bram_prim Is When B16_S1_S1 | B4_S1_S1 => bram_num := mem_width; When B16_S2_S2 | B4_S2_S2 => bram_num := (mem_width+1)/2; When B16_S4_S4 | B4_S4_S4 => bram_num := (mem_width+3)/4; When B4_S8_S8 => bram_num := (mem_width+7)/8; When B16_S9_S9 => bram_num := (mem_width+8)/9; When B4_S16_S16 => bram_num := (mem_width+15)/16; When B16_S18_S18 => bram_num := (mem_width+17)/18; When B16_S36_S36 => bram_num := (mem_width+35)/36; When others => bram_num := 1; End case; Return (bram_num); end function get_num_prims; -- Now set the global CONSTANTS needed for IF-Generates -- Determine the number of BRAM storage locations needed constant FIFO_DEPTH : Integer := 2**C_DP_ADDRESS_WIDTH; -- Convert the input C_VIRTEX_II generic boolean to enumerated type Constant BRAM_FAMILY : family_type := get_prim_family(C_VIRTEX_II); -- Select the optimum BRAM primitive to use constant BRAM_PRIMITIVE : bram_prim_type := get_bram_primitive(FIFO_DEPTH, C_DP_DATA_WIDTH, BRAM_FAMILY); -- Calculate how many of the selected primitives are needed -- to populate the desired data width constant BRAM_NUM : integer := get_num_prims(BRAM_PRIMITIVE, C_DP_DATA_WIDTH); begin -- architecture ---------------------------------------------------------------------------- -- Using VII 512 x 36 Dual Port Primitive ---------------------------------------------------------------------------- Using_RAMB16_S36_S36 : if (BRAM_PRIMITIVE = B16_S36_S36) generate component RAMB16_S36_S36 port (DIA : in STD_LOGIC_VECTOR (31 downto 0); DIB : in STD_LOGIC_VECTOR (31 downto 0); DIPA : in STD_LOGIC_VECTOR (3 downto 0); DIPB : in STD_LOGIC_VECTOR (3 downto 0); ENA : in std_logic; ENB : in std_logic; WEA : in std_logic; WEB : in std_logic; SSRA : in std_logic; SSRB : in std_logic; CLKA : in std_logic; CLKB : in std_logic; ADDRA : in STD_LOGIC_VECTOR (8 downto 0); ADDRB : in STD_LOGIC_VECTOR (8 downto 0); DOA : out STD_LOGIC_VECTOR (31 downto 0); DOB : out STD_LOGIC_VECTOR (31 downto 0); DOPA : out STD_LOGIC_VECTOR (3 downto 0); DOPB : out STD_LOGIC_VECTOR (3 downto 0)); end component; Constant PRIM_ADDR_WIDTH : integer := 9; -- 512 deep Constant PRIM_PDBUS_WIDTH : integer := 4; -- 4 parity data bits Constant PRIM_DBUS_WIDTH : integer := 32; -- 4 parity data bits Constant SLICE_DBUS_WIDTH : integer := PRIM_DBUS_WIDTH + PRIM_PDBUS_WIDTH; -- (data + parity) Constant BRAM_DATA_WIDTH : integer := BRAM_NUM * SLICE_DBUS_WIDTH; type dbus_slice_array is array(BRAM_NUM downto 1) of std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); type pdbus_slice_array is array(BRAM_NUM downto 1) of std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_a_dbus_in : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); Signal slice_a_pdbus_in : pdbus_slice_array; -- std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_a_dbus_out : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); Signal slice_a_pdbus_out : pdbus_slice_array; --std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_b_dbus_in : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); Signal slice_b_pdbus_in : pdbus_slice_array; --std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_b_dbus_out : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); Signal slice_b_pdbus_out : pdbus_slice_array; --std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_a_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); Signal slice_b_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_enable : std_logic; signal port_a_wr_enable : std_logic; signal port_a_ssr : std_logic; signal port_b_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_b_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_enable : std_logic; signal port_b_wr_enable : std_logic; signal port_b_ssr : std_logic; begin -- generate port_a_enable <= Wr_Enable; port_a_wr_enable <= Wr_Req; port_a_ssr <= Wr_rst; port_b_data_in <= (others => '0'); -- no input data to port B port_b_enable <= Rd_Enable; port_b_wr_enable <= '0'; -- no writing to port B port_b_ssr <= Rd_rst; -- translate big-endian and little_endian indexes of the -- data buses TRANSLATE_DATA : process (Wr_Data, port_b_data_out) Begin port_a_data_in <= (others => '0'); for i in C_DP_DATA_WIDTH-1 downto 0 loop port_a_data_in(i) <= Wr_Data(C_DP_DATA_WIDTH-1-i); Rd_Data(C_DP_DATA_WIDTH-1-i) <= port_b_data_out(i); End loop; End process TRANSLATE_DATA; -- translate big-endian and little_endian indexes of the -- address buses (makes simulation easier) TRANSLATE_ADDRESS : process (Wr_Address, Rd_Address) Begin port_a_addr <= (others => '0'); port_b_addr <= (others => '0'); for i in C_DP_ADDRESS_WIDTH-1 downto 0 loop port_a_addr(i) <= Wr_Address(C_DP_ADDRESS_WIDTH-1-i); port_b_addr(i) <= Rd_Address(C_DP_ADDRESS_WIDTH-1-i); End loop; End process TRANSLATE_ADDRESS; slice_a_abus <= port_a_addr; slice_b_abus <= port_b_addr; BRAM_LOOP : for i in BRAM_NUM downto 1 generate slice_a_pdbus_in(i) <= port_a_data_in((i*SLICE_DBUS_WIDTH)-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH); slice_a_dbus_in(i) <= port_a_data_in((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH); port_a_data_out((i*SLICE_DBUS_WIDTH)-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH) <= slice_a_pdbus_out(i); port_a_data_out((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH) <= slice_a_dbus_out(i); slice_b_pdbus_in(i) <= port_b_data_in((i*SLICE_DBUS_WIDTH)-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH); slice_b_dbus_in(i) <= port_b_data_in((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH); port_b_data_out((i*SLICE_DBUS_WIDTH)-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH) <= slice_b_pdbus_out(i); port_b_data_out((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH) <= slice_b_dbus_out(i); -- Port A is fixed as the input (write) port -- Port B is fixed as the output (read) port I_DPB16_512x32 : RAMB16_S36_S36 port map( DIA => slice_a_dbus_in(i), DIB => slice_b_dbus_in(i), DIPA => slice_a_pdbus_in(i), DIPB => slice_b_pdbus_in(i), ENA => port_a_enable, ENB => port_b_enable, WEA => port_a_wr_enable, WEB => port_b_wr_enable, SSRA => port_a_ssr, SSRB => port_b_ssr, CLKA => Wr_Clk, CLKB => Rd_Clk, ADDRA => slice_a_abus, ADDRB => slice_b_abus, DOA => slice_a_dbus_out(i), DOB => slice_b_dbus_out(i), DOPA => slice_a_pdbus_out(i), DOPB => slice_b_pdbus_out(i) ); End generate BRAM_LOOP; end generate Using_RAMB16_S36_S36; --========================================================================== ---------------------------------------------------------------------------- -- Using VII 1024 x 18 Dual Port Primitive ---------------------------------------------------------------------------- Using_RAMB16_S18_S18 : if (BRAM_PRIMITIVE = B16_S18_S18) generate component RAMB16_S18_S18 port (DIA : in STD_LOGIC_VECTOR (15 downto 0); DIB : in STD_LOGIC_VECTOR (15 downto 0); DIPA : in STD_LOGIC_VECTOR (1 downto 0); DIPB : in STD_LOGIC_VECTOR (1 downto 0); ENA : in std_logic; ENB : in std_logic; WEA : in std_logic; WEB : in std_logic; SSRA : in std_logic; SSRB : in std_logic; CLKA : in std_logic; CLKB : in std_logic; ADDRA : in STD_LOGIC_VECTOR (9 downto 0); ADDRB : in STD_LOGIC_VECTOR (9 downto 0); DOA : out STD_LOGIC_VECTOR (15 downto 0); DOB : out STD_LOGIC_VECTOR (15 downto 0); DOPA : out STD_LOGIC_VECTOR (1 downto 0); DOPB : out STD_LOGIC_VECTOR (1 downto 0) ); end component; Constant PRIM_ADDR_WIDTH : integer := 10; -- 1024 deep Constant PRIM_PDBUS_WIDTH : integer := 2; -- 2 parity data bits Constant PRIM_DBUS_WIDTH : integer := 16; -- 16 data bits Constant SLICE_DBUS_WIDTH : integer := PRIM_DBUS_WIDTH + PRIM_PDBUS_WIDTH; -- (data + parity) Constant BRAM_DATA_WIDTH : integer := BRAM_NUM * SLICE_DBUS_WIDTH; type dbus_slice_array is array(BRAM_NUM downto 1) of std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); type pdbus_slice_array is array(BRAM_NUM downto 1) of std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_a_dbus_in : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); Signal slice_a_pdbus_in : pdbus_slice_array; -- std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_a_dbus_out : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); Signal slice_a_pdbus_out : pdbus_slice_array; --std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_b_dbus_in : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); Signal slice_b_pdbus_in : pdbus_slice_array; --std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_b_dbus_out : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); Signal slice_b_pdbus_out : pdbus_slice_array; --std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_a_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); Signal slice_b_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_enable : std_logic; signal port_a_wr_enable : std_logic; signal port_a_ssr : std_logic; signal port_b_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_b_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_enable : std_logic; signal port_b_wr_enable : std_logic; signal port_b_ssr : std_logic; begin -- generate port_a_enable <= Wr_Enable; port_a_wr_enable <= Wr_Req; port_a_ssr <= Wr_rst; port_b_data_in <= (others => '0'); -- no input data to port B port_b_enable <= Rd_Enable; port_b_wr_enable <= '0'; -- no writing to port B port_b_ssr <= Rd_rst; -- translate big-endian and little_endian indexes of the -- data buses TRANSLATE_DATA : process (Wr_Data, port_b_data_out) Begin port_a_data_in <= (others => '0'); for i in C_DP_DATA_WIDTH-1 downto 0 loop port_a_data_in(i) <= Wr_Data(C_DP_DATA_WIDTH-1-i); Rd_Data(C_DP_DATA_WIDTH-1-i) <= port_b_data_out(i); End loop; End process TRANSLATE_DATA; -- translate big-endian and little_endian indexes of the -- address buses (makes simulation easier) TRANSLATE_ADDRESS : process (Wr_Address, Rd_Address) Begin port_a_addr <= (others => '0'); port_b_addr <= (others => '0'); for i in C_DP_ADDRESS_WIDTH-1 downto 0 loop port_a_addr(i) <= Wr_Address(C_DP_ADDRESS_WIDTH-1-i); port_b_addr(i) <= Rd_Address(C_DP_ADDRESS_WIDTH-1-i); End loop; End process TRANSLATE_ADDRESS; slice_a_abus <= port_a_addr; slice_b_abus <= port_b_addr; BRAM_LOOP : for i in BRAM_NUM downto 1 generate slice_a_pdbus_in(i) <= port_a_data_in((i*SLICE_DBUS_WIDTH)-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH); slice_a_dbus_in(i) <= port_a_data_in((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH); port_a_data_out((i*SLICE_DBUS_WIDTH)-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH) <= slice_a_pdbus_out(i); port_a_data_out((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH) <= slice_a_dbus_out(i); slice_b_pdbus_in(i) <= port_b_data_in((i*SLICE_DBUS_WIDTH)-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH); slice_b_dbus_in(i) <= port_b_data_in((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH); port_b_data_out((i*SLICE_DBUS_WIDTH)-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH) <= slice_b_pdbus_out(i); port_b_data_out((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH) <= slice_b_dbus_out(i); -- Port A is fixed as the input (write) port -- Port B is fixed as the output (read) port I_DPB16_1024x18 : RAMB16_S18_S18 port map( DIA => slice_a_dbus_in(i), DIB => slice_b_dbus_in(i), DIPA => slice_a_pdbus_in(i), DIPB => slice_b_pdbus_in(i), ENA => port_a_enable, ENB => port_b_enable, WEA => port_a_wr_enable, WEB => port_b_wr_enable, SSRA => port_a_ssr, SSRB => port_b_ssr, CLKA => Wr_Clk, CLKB => Rd_Clk, ADDRA => slice_a_abus, ADDRB => slice_b_abus, DOA => slice_a_dbus_out(i), DOB => slice_b_dbus_out(i), DOPA => slice_a_pdbus_out(i), DOPB => slice_b_pdbus_out(i) ); End generate BRAM_LOOP; end generate Using_RAMB16_S18_S18; --========================================================================== ---------------------------------------------------------------------------- -- Using VII 2048 x 9 Dual Port Primitive ---------------------------------------------------------------------------- Using_RAMB16_S9_S9 : if (BRAM_PRIMITIVE = B16_S9_S9) generate component RAMB16_S9_S9 port ( DIA : in std_logic_vector (7 downto 0); DIB : in std_logic_vector (7 downto 0); DIPA : in std_logic_vector (0 downto 0); DIPB : in std_logic_vector (0 downto 0); ENA : in std_logic; ENB : in std_logic; WEA : in std_logic; WEB : in std_logic; SSRA : in std_logic; SSRB : in std_logic; CLKA : in std_logic; CLKB : in std_logic; ADDRA : in std_logic_vector (10 downto 0); ADDRB : in std_logic_vector (10 downto 0); DOA : out std_logic_vector (7 downto 0); DOB : out std_logic_vector (7 downto 0); DOPA : out std_logic_vector (0 downto 0); DOPB : out std_logic_vector (0 downto 0) ); end component; Constant PRIM_ADDR_WIDTH : integer := 11; -- 2048 deep Constant PRIM_PDBUS_WIDTH : integer := 1; -- 1 parity data bit Constant PRIM_DBUS_WIDTH : integer := 8; -- 8 data bits Constant SLICE_DBUS_WIDTH : integer := PRIM_DBUS_WIDTH + PRIM_PDBUS_WIDTH; -- (data + parity) Constant BRAM_DATA_WIDTH : integer := BRAM_NUM * SLICE_DBUS_WIDTH; type dbus_slice_array is array(BRAM_NUM downto 1) of std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); type pdbus_slice_array is array(BRAM_NUM downto 1) of std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_a_dbus_in : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); Signal slice_a_pdbus_in : pdbus_slice_array; -- std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_a_dbus_out : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); Signal slice_a_pdbus_out : pdbus_slice_array; --std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_b_dbus_in : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); Signal slice_b_pdbus_in : pdbus_slice_array; --std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_b_dbus_out : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); Signal slice_b_pdbus_out : pdbus_slice_array; --std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_a_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); Signal slice_b_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_enable : std_logic; signal port_a_wr_enable : std_logic; signal port_a_ssr : std_logic; signal port_b_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_b_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_enable : std_logic; signal port_b_wr_enable : std_logic; signal port_b_ssr : std_logic; begin -- generate port_a_enable <= Wr_Enable; port_a_wr_enable <= Wr_Req; port_a_ssr <= Wr_rst; port_b_data_in <= (others => '0'); -- no input data to port B port_b_enable <= Rd_Enable; port_b_wr_enable <= '0'; -- no writing to port B port_b_ssr <= Rd_rst; -- translate big-endian and little_endian indexes of the -- data buses TRANSLATE_DATA : process (Wr_Data, port_b_data_out) Begin port_a_data_in <= (others => '0'); for i in C_DP_DATA_WIDTH-1 downto 0 loop port_a_data_in(i) <= Wr_Data(C_DP_DATA_WIDTH-1-i); Rd_Data(C_DP_DATA_WIDTH-1-i) <= port_b_data_out(i); End loop; End process TRANSLATE_DATA; -- translate big-endian and little_endian indexes of the -- address buses (makes simulation easier) TRANSLATE_ADDRESS : process (Wr_Address, Rd_Address) Begin port_a_addr <= (others => '0'); port_b_addr <= (others => '0'); for i in C_DP_ADDRESS_WIDTH-1 downto 0 loop port_a_addr(i) <= Wr_Address(C_DP_ADDRESS_WIDTH-1-i); port_b_addr(i) <= Rd_Address(C_DP_ADDRESS_WIDTH-1-i); End loop; End process TRANSLATE_ADDRESS; slice_a_abus <= port_a_addr; slice_b_abus <= port_b_addr; BRAM_LOOP : for i in BRAM_NUM downto 1 generate slice_a_pdbus_in(i) <= port_a_data_in((i*SLICE_DBUS_WIDTH)-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH); slice_a_dbus_in(i) <= port_a_data_in((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH); port_a_data_out((i*SLICE_DBUS_WIDTH)-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH) <= slice_a_pdbus_out(i); port_a_data_out((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH) <= slice_a_dbus_out(i); slice_b_pdbus_in(i) <= port_b_data_in((i*SLICE_DBUS_WIDTH)-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH); slice_b_dbus_in(i) <= port_b_data_in((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH); port_b_data_out((i*SLICE_DBUS_WIDTH)-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH) <= slice_b_pdbus_out(i); port_b_data_out((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH) <= slice_b_dbus_out(i); -- Port A is fixed as the input (write) port -- Port B is fixed as the output (read) port I_DPB16_2048x9 : RAMB16_S9_S9 port map( DIA => slice_a_dbus_in(i), DIB => slice_b_dbus_in(i), DIPA => slice_a_pdbus_in(i), DIPB => slice_b_pdbus_in(i), ENA => port_a_enable, ENB => port_b_enable, WEA => port_a_wr_enable, WEB => port_b_wr_enable, SSRA => port_a_ssr, SSRB => port_b_ssr, CLKA => Wr_Clk, CLKB => Rd_Clk, ADDRA => slice_a_abus, ADDRB => slice_b_abus, DOA => slice_a_dbus_out(i), DOB => slice_b_dbus_out(i), DOPA => slice_a_pdbus_out(i), DOPB => slice_b_pdbus_out(i) ); End generate BRAM_LOOP; end generate Using_RAMB16_S9_S9; --========================================================================== ---------------------------------------------------------------------------- -- Using VII 4096 x 4 Dual Port Primitive ---------------------------------------------------------------------------- Using_RAMB16_S4_S4 : if (BRAM_PRIMITIVE = B16_S4_S4) generate component RAMB16_S4_S4 port ( DIA : in std_logic_vector (3 downto 0); DIB : in std_logic_vector (3 downto 0); ENA : in std_logic; ENB : in std_logic; WEA : in std_logic; WEB : in std_logic; SSRA : in std_logic; SSRB : in std_logic; CLKA : in std_logic; CLKB : in std_logic; ADDRA : in std_logic_vector (11 downto 0); ADDRB : in std_logic_vector (11 downto 0); DOA : out std_logic_vector (3 downto 0); DOB : out std_logic_vector (3 downto 0) ); end component; Constant PRIM_ADDR_WIDTH : integer := 12; -- 4096 deep Constant PRIM_PDBUS_WIDTH : integer := 0; -- 0 parity data bits Constant PRIM_DBUS_WIDTH : integer := 4; -- 4 data bits Constant SLICE_DBUS_WIDTH : integer := PRIM_DBUS_WIDTH + PRIM_PDBUS_WIDTH; -- (data + parity) Constant BRAM_DATA_WIDTH : integer := BRAM_NUM * SLICE_DBUS_WIDTH; type dbus_slice_array is array(BRAM_NUM downto 1) of std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); --type pdbus_slice_array is array(BRAM_NUM downto 1) of -- std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_a_dbus_in : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); --Signal slice_a_pdbus_in : pdbus_slice_array; -- std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_a_dbus_out : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); --Signal slice_a_pdbus_out : pdbus_slice_array; --std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_b_dbus_in : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); --Signal slice_b_pdbus_in : pdbus_slice_array; --std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_b_dbus_out : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); --Signal slice_b_pdbus_out : pdbus_slice_array; --std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_a_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); Signal slice_b_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_enable : std_logic; signal port_a_wr_enable : std_logic; signal port_a_ssr : std_logic; signal port_b_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_b_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_enable : std_logic; signal port_b_wr_enable : std_logic; signal port_b_ssr : std_logic; begin -- generate port_a_enable <= Wr_Enable; port_a_wr_enable <= Wr_Req; port_a_ssr <= Wr_rst; port_b_data_in <= (others => '0'); -- no input data to port B port_b_enable <= Rd_Enable; port_b_wr_enable <= '0'; -- no writing to port B port_b_ssr <= Rd_rst; -- translate big-endian and little_endian indexes of the -- data buses TRANSLATE_DATA : process (Wr_Data, port_b_data_out) Begin port_a_data_in <= (others => '0'); for i in C_DP_DATA_WIDTH-1 downto 0 loop port_a_data_in(i) <= Wr_Data(C_DP_DATA_WIDTH-1-i); Rd_Data(C_DP_DATA_WIDTH-1-i) <= port_b_data_out(i); End loop; End process TRANSLATE_DATA; -- translate big-endian and little_endian indexes of the -- address buses (makes simulation easier) TRANSLATE_ADDRESS : process (Wr_Address, Rd_Address) Begin port_a_addr <= (others => '0'); port_b_addr <= (others => '0'); for i in C_DP_ADDRESS_WIDTH-1 downto 0 loop port_a_addr(i) <= Wr_Address(C_DP_ADDRESS_WIDTH-1-i); port_b_addr(i) <= Rd_Address(C_DP_ADDRESS_WIDTH-1-i); End loop; End process TRANSLATE_ADDRESS; slice_a_abus <= port_a_addr; slice_b_abus <= port_b_addr; BRAM_LOOP : for i in BRAM_NUM downto 1 generate --slice_a_pdbus_in(i) <= port_a_data_in((i*SLICE_DBUS_WIDTH)-1 downto -- (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH); slice_a_dbus_in(i) <= port_a_data_in((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH); --port_a_data_out((i*SLICE_DBUS_WIDTH)-1 downto -- (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH) <= slice_a_pdbus_out(i); port_a_data_out((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH) <= slice_a_dbus_out(i); --slice_b_pdbus_in(i) <= port_b_data_in((i*SLICE_DBUS_WIDTH)-1 downto -- (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH); slice_b_dbus_in(i) <= port_b_data_in((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH); --port_b_data_out((i*SLICE_DBUS_WIDTH)-1 downto -- (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH) <= slice_b_pdbus_out(i); port_b_data_out((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH) <= slice_b_dbus_out(i); -- Port A is fixed as the input (write) port -- Port B is fixed as the output (read) port I_DPB16_4096x4 : RAMB16_S4_S4 port map( DIA => slice_a_dbus_in(i), DIB => slice_b_dbus_in(i), ENA => port_a_enable, ENB => port_b_enable, WEA => port_a_wr_enable, WEB => port_b_wr_enable, SSRA => port_a_ssr, SSRB => port_b_ssr, CLKA => Wr_Clk, CLKB => Rd_Clk, ADDRA => slice_a_abus, ADDRB => slice_b_abus, DOA => slice_a_dbus_out(i), DOB => slice_b_dbus_out(i) ); End generate BRAM_LOOP; end generate Using_RAMB16_S4_S4; --========================================================================== ---------------------------------------------------------------------------- -- Using VII 8192 x 2 Dual Port Primitive ---------------------------------------------------------------------------- Using_RAMB16_S2_S2 : if (BRAM_PRIMITIVE = B16_S2_S2) generate component RAMB16_S2_S2 port ( DIA : in std_logic_vector (1 downto 0); DIB : in std_logic_vector (1 downto 0); ENA : in std_logic; ENB : in std_logic; WEA : in std_logic; WEB : in std_logic; SSRA : in std_logic; SSRB : in std_logic; CLKA : in std_logic; CLKB : in std_logic; ADDRA : in std_logic_vector (12 downto 0); ADDRB : in std_logic_vector (12 downto 0); DOA : out std_logic_vector (1 downto 0); DOB : out std_logic_vector (1 downto 0) ); end component; Constant PRIM_ADDR_WIDTH : integer := 13; -- 8192 deep Constant PRIM_PDBUS_WIDTH : integer := 0; -- 0 parity data bits Constant PRIM_DBUS_WIDTH : integer := 2; -- 2 data bits Constant SLICE_DBUS_WIDTH : integer := PRIM_DBUS_WIDTH + PRIM_PDBUS_WIDTH; -- (data + parity) Constant BRAM_DATA_WIDTH : integer := BRAM_NUM * SLICE_DBUS_WIDTH; type dbus_slice_array is array(BRAM_NUM downto 1) of std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); --type pdbus_slice_array is array(BRAM_NUM downto 1) of -- std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_a_dbus_in : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); --Signal slice_a_pdbus_in : pdbus_slice_array; -- std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_a_dbus_out : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); --Signal slice_a_pdbus_out : pdbus_slice_array; --std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_b_dbus_in : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); --Signal slice_b_pdbus_in : pdbus_slice_array; --std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_b_dbus_out : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); --Signal slice_b_pdbus_out : pdbus_slice_array; --std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_a_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); Signal slice_b_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_enable : std_logic; signal port_a_wr_enable : std_logic; signal port_a_ssr : std_logic; signal port_b_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_b_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_enable : std_logic; signal port_b_wr_enable : std_logic; signal port_b_ssr : std_logic; begin -- generate port_a_enable <= Wr_Enable; port_a_wr_enable <= Wr_Req; port_a_ssr <= Wr_rst; port_b_data_in <= (others => '0'); -- no input data to port B port_b_enable <= Rd_Enable; port_b_wr_enable <= '0'; -- no writing to port B port_b_ssr <= Rd_rst; -- translate big-endian and little_endian indexes of the -- data buses TRANSLATE_DATA : process (Wr_Data, port_b_data_out) Begin port_a_data_in <= (others => '0'); for i in C_DP_DATA_WIDTH-1 downto 0 loop port_a_data_in(i) <= Wr_Data(C_DP_DATA_WIDTH-1-i); Rd_Data(C_DP_DATA_WIDTH-1-i) <= port_b_data_out(i); End loop; End process TRANSLATE_DATA; -- translate big-endian and little_endian indexes of the -- address buses (makes simulation easier) TRANSLATE_ADDRESS : process (Wr_Address, Rd_Address) Begin port_a_addr <= (others => '0'); port_b_addr <= (others => '0'); for i in C_DP_ADDRESS_WIDTH-1 downto 0 loop port_a_addr(i) <= Wr_Address(C_DP_ADDRESS_WIDTH-1-i); port_b_addr(i) <= Rd_Address(C_DP_ADDRESS_WIDTH-1-i); End loop; End process TRANSLATE_ADDRESS; slice_a_abus <= port_a_addr; slice_b_abus <= port_b_addr; BRAM_LOOP : for i in BRAM_NUM downto 1 generate --slice_a_pdbus_in(i) <= port_a_data_in((i*SLICE_DBUS_WIDTH)-1 downto -- (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH); slice_a_dbus_in(i) <= port_a_data_in((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH); --port_a_data_out((i*SLICE_DBUS_WIDTH)-1 downto -- (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH) <= slice_a_pdbus_out(i); port_a_data_out((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH) <= slice_a_dbus_out(i); --slice_b_pdbus_in(i) <= port_b_data_in((i*SLICE_DBUS_WIDTH)-1 downto -- (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH); slice_b_dbus_in(i) <= port_b_data_in((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH); --port_b_data_out((i*SLICE_DBUS_WIDTH)-1 downto -- (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH) <= slice_b_pdbus_out(i); port_b_data_out((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH) <= slice_b_dbus_out(i); -- Port A is fixed as the input (write) port -- Port B is fixed as the output (read) port I_DPB16_8192x2 : RAMB16_S2_S2 port map( DIA => slice_a_dbus_in(i), DIB => slice_b_dbus_in(i), ENA => port_a_enable, ENB => port_b_enable, WEA => port_a_wr_enable, WEB => port_b_wr_enable, SSRA => port_a_ssr, SSRB => port_b_ssr, CLKA => Wr_Clk, CLKB => Rd_Clk, ADDRA => slice_a_abus, ADDRB => slice_b_abus, DOA => slice_a_dbus_out(i), DOB => slice_b_dbus_out(i) ); End generate BRAM_LOOP; end generate Using_RAMB16_S2_S2; --========================================================================== ---------------------------------------------------------------------------- -- Using VII 16384 x 1 Dual Port Primitive ---------------------------------------------------------------------------- Using_RAMB16_S1_S1 : if (BRAM_PRIMITIVE = B16_S1_S1) generate component RAMB16_S1_S1 port ( DIA : in std_logic_vector (0 downto 0); DIB : in std_logic_vector (0 downto 0); ENA : in std_logic; ENB : in std_logic; WEA : in std_logic; WEB : in std_logic; SSRA : in std_logic; SSRB : in std_logic; CLKA : in std_logic; CLKB : in std_logic; ADDRA : in std_logic_vector (13 downto 0); ADDRB : in std_logic_vector (13 downto 0); DOA : out std_logic_vector (0 downto 0); DOB : out std_logic_vector (0 downto 0) ); end component; Constant PRIM_ADDR_WIDTH : integer := 14; -- 16384 deep Constant PRIM_PDBUS_WIDTH : integer := 0; -- 0 parity data bits Constant PRIM_DBUS_WIDTH : integer := 1; -- 1 data bits Constant SLICE_DBUS_WIDTH : integer := PRIM_DBUS_WIDTH + PRIM_PDBUS_WIDTH; -- (data + parity) Constant BRAM_DATA_WIDTH : integer := BRAM_NUM * SLICE_DBUS_WIDTH; type dbus_slice_array is array(BRAM_NUM downto 1) of std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); --type pdbus_slice_array is array(BRAM_NUM downto 1) of -- std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_a_dbus_in : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); --Signal slice_a_pdbus_in : pdbus_slice_array; -- std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_a_dbus_out : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); --Signal slice_a_pdbus_out : pdbus_slice_array; --std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_b_dbus_in : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); --Signal slice_b_pdbus_in : pdbus_slice_array; --std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_b_dbus_out : dbus_slice_array; --std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); --Signal slice_b_pdbus_out : pdbus_slice_array; --std_logic_vector(PRIM_PDBUS_WIDTH-1 downto 0); Signal slice_a_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); Signal slice_b_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_enable : std_logic; signal port_a_wr_enable : std_logic; signal port_a_ssr : std_logic; signal port_b_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_b_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_enable : std_logic; signal port_b_wr_enable : std_logic; signal port_b_ssr : std_logic; begin -- generate port_a_enable <= Wr_Enable; port_a_wr_enable <= Wr_Req; port_a_ssr <= Wr_rst; port_b_data_in <= (others => '0'); -- no input data to port B port_b_enable <= Rd_Enable; port_b_wr_enable <= '0'; -- no writing to port B port_b_ssr <= Rd_rst; -- translate big-endian and little_endian indexes of the -- data buses TRANSLATE_DATA : process (Wr_Data, port_b_data_out) Begin port_a_data_in <= (others => '0'); for i in C_DP_DATA_WIDTH-1 downto 0 loop port_a_data_in(i) <= Wr_Data(C_DP_DATA_WIDTH-1-i); Rd_Data(C_DP_DATA_WIDTH-1-i) <= port_b_data_out(i); End loop; End process TRANSLATE_DATA; -- translate big-endian and little_endian indexes of the -- address buses (makes simulation easier) TRANSLATE_ADDRESS : process (Wr_Address, Rd_Address) Begin port_a_addr <= (others => '0'); port_b_addr <= (others => '0'); for i in C_DP_ADDRESS_WIDTH-1 downto 0 loop port_a_addr(i) <= Wr_Address(C_DP_ADDRESS_WIDTH-1-i); port_b_addr(i) <= Rd_Address(C_DP_ADDRESS_WIDTH-1-i); End loop; End process TRANSLATE_ADDRESS; slice_a_abus <= port_a_addr; slice_b_abus <= port_b_addr; BRAM_LOOP : for i in BRAM_NUM downto 1 generate --slice_a_pdbus_in(i) <= port_a_data_in((i*SLICE_DBUS_WIDTH)-1 downto -- (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH); slice_a_dbus_in(i) <= port_a_data_in((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH); --port_a_data_out((i*SLICE_DBUS_WIDTH)-1 downto -- (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH) <= slice_a_pdbus_out(i); port_a_data_out((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH) <= slice_a_dbus_out(i); --slice_b_pdbus_in(i) <= port_b_data_in((i*SLICE_DBUS_WIDTH)-1 downto -- (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH); slice_b_dbus_in(i) <= port_b_data_in((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH); --port_b_data_out((i*SLICE_DBUS_WIDTH)-1 downto -- (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH) <= slice_b_pdbus_out(i); port_b_data_out((i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-1 downto (i*SLICE_DBUS_WIDTH)-PRIM_PDBUS_WIDTH-PRIM_DBUS_WIDTH) <= slice_b_dbus_out(i); -- Port A is fixed as the input (write) port -- Port B is fixed as the output (read) port I_DPB16_16384x1 : RAMB16_S1_S1 port map( DIA => slice_a_dbus_in(i), DIB => slice_b_dbus_in(i), ENA => port_a_enable, ENB => port_b_enable, WEA => port_a_wr_enable, WEB => port_b_wr_enable, SSRA => port_a_ssr, SSRB => port_b_ssr, CLKA => Wr_Clk, CLKB => Rd_Clk, ADDRA => slice_a_abus, ADDRB => slice_b_abus, DOA => slice_a_dbus_out(i), DOB => slice_b_dbus_out(i) ); End generate BRAM_LOOP; end generate Using_RAMB16_S1_S1; --========================================================================== -- End of Virtex-II and Virtex-II Pro support --/////////////////////////////////////////////////////////////////////////// --/////////////////////////////////////////////////////////////////////////// -- Start Spartan-II, Spartan-IIE, Virtex, and VirtexE support ---------------------------------------------------------------------------- -- Using Spartan-II, Spartan-IIE, Virtex, and VirtexE -- 4096 x 1 Dual Port Primitive ---------------------------------------------------------------------------- Using_RAMB4_S1_S1 : if (BRAM_PRIMITIVE = B4_S1_S1) generate component RAMB4_S1_S1 port ( DIA : in std_logic_vector (0 downto 0); DIB : in std_logic_vector (0 downto 0); ENA : in std_logic; ENB : in std_logic; WEA : in std_logic; WEB : in std_logic; RSTA : in std_logic; RSTB : in std_logic; CLKA : in std_logic; CLKB : in std_logic; ADDRA : in std_logic_vector (11 downto 0); ADDRB : in std_logic_vector (11 downto 0); DOA : out std_logic_vector (0 downto 0); DOB : out std_logic_vector (0 downto 0)); end component; Constant PRIM_ADDR_WIDTH : integer := 12; -- 4096 deep Constant PRIM_DBUS_WIDTH : integer := 1; -- 1 data bit Constant BRAM_DATA_WIDTH : integer := BRAM_NUM * PRIM_DBUS_WIDTH; type dbus_slice_array is array(BRAM_NUM downto 1) of std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); Signal slice_a_dbus_in : dbus_slice_array; Signal slice_a_dbus_out : dbus_slice_array; Signal slice_b_dbus_in : dbus_slice_array; Signal slice_b_dbus_out : dbus_slice_array; Signal slice_a_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); Signal slice_b_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_enable : std_logic; signal port_a_wr_enable : std_logic; signal port_a_ssr : std_logic; signal port_b_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_b_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_enable : std_logic; signal port_b_wr_enable : std_logic; signal port_b_ssr : std_logic; begin -- generate port_a_enable <= Wr_Enable; port_a_wr_enable <= Wr_Req; port_a_ssr <= wr_rst; -- no output reset value port_b_data_in <= (others => '0'); -- no input data to port B port_b_enable <= Rd_Enable; port_b_wr_enable <= '0'; -- no writing to port B port_b_ssr <= rd_rst; -- no output reset value -- translate big-endian and little_endian indexes of the -- data buses TRANSLATE_DATA : process (Wr_Data, port_b_data_out) Begin port_a_data_in <= (others => '0'); for i in C_DP_DATA_WIDTH-1 downto 0 loop port_a_data_in(i) <= Wr_Data(C_DP_DATA_WIDTH-1-i); Rd_Data(C_DP_DATA_WIDTH-1-i) <= port_b_data_out(i); End loop; End process TRANSLATE_DATA; -- translate big-endian and little_endian indexes of the -- address buses (makes simulation easier) TRANSLATE_ADDRESS : process (Wr_Address, Rd_Address) Begin port_a_addr <= (others => '0'); port_b_addr <= (others => '0'); for i in C_DP_ADDRESS_WIDTH-1 downto 0 loop port_a_addr(i) <= Wr_Address(C_DP_ADDRESS_WIDTH-1-i); port_b_addr(i) <= Rd_Address(C_DP_ADDRESS_WIDTH-1-i); End loop; End process TRANSLATE_ADDRESS; slice_a_abus <= port_a_addr; slice_b_abus <= port_b_addr; BRAM_LOOP : for i in BRAM_NUM downto 1 generate slice_a_dbus_in(i) <= port_a_data_in((i*PRIM_DBUS_WIDTH)-1 downto (i*PRIM_DBUS_WIDTH)-PRIM_DBUS_WIDTH); port_a_data_out((i*PRIM_DBUS_WIDTH)-1 downto (i*PRIM_DBUS_WIDTH)-PRIM_DBUS_WIDTH) <= slice_a_dbus_out(i); slice_b_dbus_in(i) <= port_b_data_in((i*PRIM_DBUS_WIDTH)-1 downto (i*PRIM_DBUS_WIDTH)-PRIM_DBUS_WIDTH); port_b_data_out((i*PRIM_DBUS_WIDTH)-1 downto (i*PRIM_DBUS_WIDTH)-PRIM_DBUS_WIDTH) <= slice_b_dbus_out(i); -- Port A is fixed as the input (write) port -- Port B is fixed as the output (read) port I_DPB4_4096x1 : RAMB4_S1_S1 port map( DIA => slice_a_dbus_in(i), DIB => slice_b_dbus_in(i), ENA => port_a_enable, ENB => port_b_enable, WEA => port_a_wr_enable, WEB => port_b_wr_enable, RSTA => port_a_ssr, RSTB => port_b_ssr, CLKA => Wr_Clk, CLKB => Rd_Clk, ADDRA => slice_a_abus, ADDRB => slice_b_abus, DOA => slice_a_dbus_out(i), DOB => slice_b_dbus_out(i) ); End generate BRAM_LOOP; end generate Using_RAMB4_S1_S1; --========================================================================== ---------------------------------------------------------------------------- -- Using Spartan-II, Spartan-IIE, Virtex, and VirtexE -- 2048 x 2 Dual Port Primitive ---------------------------------------------------------------------------- Using_RAMB4_S2_S2 : if (BRAM_PRIMITIVE = B4_S2_S2) generate component RAMB4_S2_S2 port ( DIA : in std_logic_vector (1 downto 0); DIB : in std_logic_vector (1 downto 0); ENA : in std_logic; ENB : in std_logic; WEA : in std_logic; WEB : in std_logic; RSTA : in std_logic; RSTB : in std_logic; CLKA : in std_logic; CLKB : in std_logic; ADDRA : in std_logic_vector (10 downto 0); ADDRB : in std_logic_vector (10 downto 0); DOA : out std_logic_vector (1 downto 0); DOB : out std_logic_vector (1 downto 0)); end component; Constant PRIM_ADDR_WIDTH : integer := 11; -- 2048 deep Constant PRIM_DBUS_WIDTH : integer := 2; -- 2 data bits Constant BRAM_DATA_WIDTH : integer := BRAM_NUM * PRIM_DBUS_WIDTH; type dbus_slice_array is array(BRAM_NUM downto 1) of std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); Signal slice_a_dbus_in : dbus_slice_array; Signal slice_a_dbus_out : dbus_slice_array; Signal slice_b_dbus_in : dbus_slice_array; Signal slice_b_dbus_out : dbus_slice_array; Signal slice_a_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); Signal slice_b_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_enable : std_logic; signal port_a_wr_enable : std_logic; signal port_a_ssr : std_logic; signal port_b_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_b_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_enable : std_logic; signal port_b_wr_enable : std_logic; signal port_b_ssr : std_logic; begin -- generate port_a_enable <= Wr_Enable; port_a_wr_enable <= Wr_Req; port_a_ssr <= wr_rst; -- no output reset value port_b_data_in <= (others => '0'); -- no input data to port B port_b_enable <= Rd_Enable; port_b_wr_enable <= '0'; -- no writing to port B port_b_ssr <= rd_rst; -- no output reset value -- translate big-endian and little_endian indexes of the -- data buses TRANSLATE_DATA : process (Wr_Data, port_b_data_out) Begin port_a_data_in <= (others => '0'); for i in C_DP_DATA_WIDTH-1 downto 0 loop port_a_data_in(i) <= Wr_Data(C_DP_DATA_WIDTH-1-i); Rd_Data(C_DP_DATA_WIDTH-1-i) <= port_b_data_out(i); End loop; End process TRANSLATE_DATA; -- translate big-endian and little_endian indexes of the -- address buses (makes simulation easier) TRANSLATE_ADDRESS : process (Wr_Address, Rd_Address) Begin port_a_addr <= (others => '0'); port_b_addr <= (others => '0'); for i in C_DP_ADDRESS_WIDTH-1 downto 0 loop port_a_addr(i) <= Wr_Address(C_DP_ADDRESS_WIDTH-1-i); port_b_addr(i) <= Rd_Address(C_DP_ADDRESS_WIDTH-1-i); End loop; End process TRANSLATE_ADDRESS; slice_a_abus <= port_a_addr; slice_b_abus <= port_b_addr; BRAM_LOOP : for i in BRAM_NUM downto 1 generate slice_a_dbus_in(i) <= port_a_data_in((i*PRIM_DBUS_WIDTH)-1 downto (i*PRIM_DBUS_WIDTH)-PRIM_DBUS_WIDTH); port_a_data_out((i*PRIM_DBUS_WIDTH)-1 downto (i*PRIM_DBUS_WIDTH)-PRIM_DBUS_WIDTH) <= slice_a_dbus_out(i); slice_b_dbus_in(i) <= port_b_data_in((i*PRIM_DBUS_WIDTH)-1 downto (i*PRIM_DBUS_WIDTH)-PRIM_DBUS_WIDTH); port_b_data_out((i*PRIM_DBUS_WIDTH)-1 downto (i*PRIM_DBUS_WIDTH)-PRIM_DBUS_WIDTH) <= slice_b_dbus_out(i); -- Port A is fixed as the input (write) port -- Port B is fixed as the output (read) port I_DPB4_2048x2 : RAMB4_S2_S2 port map( DIA => slice_a_dbus_in(i), DIB => slice_b_dbus_in(i), ENA => port_a_enable, ENB => port_b_enable, WEA => port_a_wr_enable, WEB => port_b_wr_enable, RSTA => port_a_ssr, RSTB => port_b_ssr, CLKA => Wr_Clk, CLKB => Rd_Clk, ADDRA => slice_a_abus, ADDRB => slice_b_abus, DOA => slice_a_dbus_out(i), DOB => slice_b_dbus_out(i) ); End generate BRAM_LOOP; end generate Using_RAMB4_S2_S2; --========================================================================== ---------------------------------------------------------------------------- -- Using Spartan-II, Spartan-IIE, Virtex, and VirtexE -- 1024 x 4 Dual Port Primitive ---------------------------------------------------------------------------- Using_RAMB4_S4_S4 : if (BRAM_PRIMITIVE = B4_S4_S4) generate component RAMB4_S4_S4 port ( DIA : in std_logic_vector (3 downto 0); DIB : in std_logic_vector (3 downto 0); ENA : in std_logic; ENB : in std_logic; WEA : in std_logic; WEB : in std_logic; RSTA : in std_logic; RSTB : in std_logic; CLKA : in std_logic; CLKB : in std_logic; ADDRA : in std_logic_vector (9 downto 0); ADDRB : in std_logic_vector (9 downto 0); DOA : out std_logic_vector (3 downto 0); DOB : out std_logic_vector (3 downto 0)); end component; Constant PRIM_ADDR_WIDTH : integer := 10; -- 1024 deep Constant PRIM_DBUS_WIDTH : integer := 4; -- 4 data bits Constant BRAM_DATA_WIDTH : integer := BRAM_NUM * PRIM_DBUS_WIDTH; type dbus_slice_array is array(BRAM_NUM downto 1) of std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); Signal slice_a_dbus_in : dbus_slice_array; Signal slice_a_dbus_out : dbus_slice_array; Signal slice_b_dbus_in : dbus_slice_array; Signal slice_b_dbus_out : dbus_slice_array; Signal slice_a_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); Signal slice_b_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_enable : std_logic; signal port_a_wr_enable : std_logic; signal port_a_ssr : std_logic; signal port_b_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_b_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_enable : std_logic; signal port_b_wr_enable : std_logic; signal port_b_ssr : std_logic; begin -- generate port_a_enable <= Wr_Enable; port_a_wr_enable <= Wr_Req; port_a_ssr <= wr_rst; -- no output reset value port_b_data_in <= (others => '0'); -- no input data to port B port_b_enable <= Rd_Enable; port_b_wr_enable <= '0'; -- no writing to port B port_b_ssr <= rd_rst; -- no output reset value -- translate big-endian and little_endian indexes of the -- data buses TRANSLATE_DATA : process (Wr_Data, port_b_data_out) Begin port_a_data_in <= (others => '0'); for i in C_DP_DATA_WIDTH-1 downto 0 loop port_a_data_in(i) <= Wr_Data(C_DP_DATA_WIDTH-1-i); Rd_Data(C_DP_DATA_WIDTH-1-i) <= port_b_data_out(i); End loop; End process TRANSLATE_DATA; -- translate big-endian and little_endian indexes of the -- address buses (makes simulation easier) TRANSLATE_ADDRESS : process (Wr_Address, Rd_Address) Begin port_a_addr <= (others => '0'); port_b_addr <= (others => '0'); for i in C_DP_ADDRESS_WIDTH-1 downto 0 loop port_a_addr(i) <= Wr_Address(C_DP_ADDRESS_WIDTH-1-i); port_b_addr(i) <= Rd_Address(C_DP_ADDRESS_WIDTH-1-i); End loop; End process TRANSLATE_ADDRESS; slice_a_abus <= port_a_addr; slice_b_abus <= port_b_addr; BRAM_LOOP : for i in BRAM_NUM downto 1 generate slice_a_dbus_in(i) <= port_a_data_in((i*PRIM_DBUS_WIDTH)-1 downto (i*PRIM_DBUS_WIDTH)-PRIM_DBUS_WIDTH); port_a_data_out((i*PRIM_DBUS_WIDTH)-1 downto (i*PRIM_DBUS_WIDTH)-PRIM_DBUS_WIDTH) <= slice_a_dbus_out(i); slice_b_dbus_in(i) <= port_b_data_in((i*PRIM_DBUS_WIDTH)-1 downto (i*PRIM_DBUS_WIDTH)-PRIM_DBUS_WIDTH); port_b_data_out((i*PRIM_DBUS_WIDTH)-1 downto (i*PRIM_DBUS_WIDTH)-PRIM_DBUS_WIDTH) <= slice_b_dbus_out(i); -- Port A is fixed as the input (write) port -- Port B is fixed as the output (read) port I_DPB4_1024x4 : RAMB4_S4_S4 port map( DIA => slice_a_dbus_in(i), DIB => slice_b_dbus_in(i), ENA => port_a_enable, ENB => port_b_enable, WEA => port_a_wr_enable, WEB => port_b_wr_enable, RSTA => port_a_ssr, RSTB => port_b_ssr, CLKA => Wr_Clk, CLKB => Rd_Clk, ADDRA => slice_a_abus, ADDRB => slice_b_abus, DOA => slice_a_dbus_out(i), DOB => slice_b_dbus_out(i) ); End generate BRAM_LOOP; end generate Using_RAMB4_S4_S4; --========================================================================== ---------------------------------------------------------------------------- -- Using Spartan-II, Spartan-IIE, Virtex, and VirtexE -- 512 x 8 Dual Port Primitive ---------------------------------------------------------------------------- Using_RAMB4_S8_S8 : if (BRAM_PRIMITIVE = B4_S8_S8) generate component RAMB4_S8_S8 port ( DIA : in std_logic_vector (7 downto 0); DIB : in std_logic_vector (7 downto 0); ENA : in std_logic; ENB : in std_logic; WEA : in std_logic; WEB : in std_logic; RSTA : in std_logic; RSTB : in std_logic; CLKA : in std_logic; CLKB : in std_logic; ADDRA : in std_logic_vector (8 downto 0); ADDRB : in std_logic_vector (8 downto 0); DOA : out std_logic_vector (7 downto 0); DOB : out std_logic_vector (7 downto 0)); end component; Constant PRIM_ADDR_WIDTH : integer := 9; -- 512 deep Constant PRIM_DBUS_WIDTH : integer := 8; -- 8 data bits Constant BRAM_DATA_WIDTH : integer := BRAM_NUM * PRIM_DBUS_WIDTH; type dbus_slice_array is array(BRAM_NUM downto 1) of std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); Signal slice_a_dbus_in : dbus_slice_array; Signal slice_a_dbus_out : dbus_slice_array; Signal slice_b_dbus_in : dbus_slice_array; Signal slice_b_dbus_out : dbus_slice_array; Signal slice_a_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); Signal slice_b_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_enable : std_logic; signal port_a_wr_enable : std_logic; signal port_a_ssr : std_logic; signal port_b_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_b_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_enable : std_logic; signal port_b_wr_enable : std_logic; signal port_b_ssr : std_logic; begin -- generate port_a_enable <= Wr_Enable; port_a_wr_enable <= Wr_Req; port_a_ssr <= wr_rst; -- no output reset value port_b_data_in <= (others => '0'); -- no input data to port B port_b_enable <= Rd_Enable; port_b_wr_enable <= '0'; -- no writing to port B port_b_ssr <= rd_rst; -- no output reset value -- translate big-endian and little_endian indexes of the -- data buses TRANSLATE_DATA : process (Wr_Data, port_b_data_out) Begin port_a_data_in <= (others => '0'); for i in C_DP_DATA_WIDTH-1 downto 0 loop port_a_data_in(i) <= Wr_Data(C_DP_DATA_WIDTH-1-i); Rd_Data(C_DP_DATA_WIDTH-1-i) <= port_b_data_out(i); End loop; End process TRANSLATE_DATA; -- translate big-endian and little_endian indexes of the -- address buses (makes simulation easier) TRANSLATE_ADDRESS : process (Wr_Address, Rd_Address) Begin port_a_addr <= (others => '0'); port_b_addr <= (others => '0'); for i in C_DP_ADDRESS_WIDTH-1 downto 0 loop port_a_addr(i) <= Wr_Address(C_DP_ADDRESS_WIDTH-1-i); port_b_addr(i) <= Rd_Address(C_DP_ADDRESS_WIDTH-1-i); End loop; End process TRANSLATE_ADDRESS; slice_a_abus <= port_a_addr; slice_b_abus <= port_b_addr; BRAM_LOOP : for i in BRAM_NUM downto 1 generate slice_a_dbus_in(i) <= port_a_data_in((i*PRIM_DBUS_WIDTH)-1 downto (i*PRIM_DBUS_WIDTH)-PRIM_DBUS_WIDTH); port_a_data_out((i*PRIM_DBUS_WIDTH)-1 downto (i*PRIM_DBUS_WIDTH)-PRIM_DBUS_WIDTH) <= slice_a_dbus_out(i); slice_b_dbus_in(i) <= port_b_data_in((i*PRIM_DBUS_WIDTH)-1 downto (i*PRIM_DBUS_WIDTH)-PRIM_DBUS_WIDTH); port_b_data_out((i*PRIM_DBUS_WIDTH)-1 downto (i*PRIM_DBUS_WIDTH)-PRIM_DBUS_WIDTH) <= slice_b_dbus_out(i); -- Port A is fixed as the input (write) port -- Port B is fixed as the output (read) port I_DPB4_512x8 : RAMB4_S8_S8 port map( DIA => slice_a_dbus_in(i), DIB => slice_b_dbus_in(i), ENA => port_a_enable, ENB => port_b_enable, WEA => port_a_wr_enable, WEB => port_b_wr_enable, RSTA => port_a_ssr, RSTB => port_b_ssr, CLKA => Wr_Clk, CLKB => Rd_Clk, ADDRA => slice_a_abus, ADDRB => slice_b_abus, DOA => slice_a_dbus_out(i), DOB => slice_b_dbus_out(i) ); End generate BRAM_LOOP; end generate Using_RAMB4_S8_S8; --========================================================================== ---------------------------------------------------------------------------- -- Using Spartan-II, Spartan-IIE, Virtex, and VirtexE -- 256 x 16 Dual Port Primitive ---------------------------------------------------------------------------- Using_RAMB4_S16_S16 : if (BRAM_PRIMITIVE = B4_S16_S16) generate component RAMB4_S16_S16 port (DIA : in STD_LOGIC_VECTOR (15 downto 0); DIB : in STD_LOGIC_VECTOR (15 downto 0); ENA : in std_logic; ENB : in std_logic; WEA : in std_logic; WEB : in std_logic; RSTA : in std_logic; RSTB : in std_logic; CLKA : in std_logic; CLKB : in std_logic; ADDRA : in STD_LOGIC_VECTOR (7 downto 0); ADDRB : in STD_LOGIC_VECTOR (7 downto 0); DOA : out STD_LOGIC_VECTOR (15 downto 0); DOB : out STD_LOGIC_VECTOR (15 downto 0)); end component; Constant PRIM_ADDR_WIDTH : integer := 8; -- 256 deep Constant PRIM_DBUS_WIDTH : integer := 16; -- 16 data bits Constant BRAM_DATA_WIDTH : integer := BRAM_NUM * PRIM_DBUS_WIDTH; type dbus_slice_array is array(BRAM_NUM downto 1) of std_logic_vector(PRIM_DBUS_WIDTH-1 downto 0); Signal slice_a_dbus_in : dbus_slice_array; Signal slice_a_dbus_out : dbus_slice_array; Signal slice_b_dbus_in : dbus_slice_array; Signal slice_b_dbus_out : dbus_slice_array; Signal slice_a_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); Signal slice_b_abus : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_a_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_a_enable : std_logic; signal port_a_wr_enable : std_logic; signal port_a_ssr : std_logic; signal port_b_addr : std_logic_vector(PRIM_ADDR_WIDTH-1 downto 0); signal port_b_data_in : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_data_out : std_logic_vector(BRAM_DATA_WIDTH-1 downto 0); signal port_b_enable : std_logic; signal port_b_wr_enable : std_logic; signal port_b_ssr : std_logic; begin -- generate port_a_enable <= Wr_Enable; port_a_wr_enable <= Wr_Req; port_a_ssr <= wr_rst; -- no output reset value port_b_data_in <= (others => '0'); -- no input data to port B port_b_enable <= Rd_Enable; port_b_wr_enable <= '0'; -- no writing to port B port_b_ssr <= rd_rst; -- no output reset value -- translate big-endian and little_endian indexes of the -- data buses TRANSLATE_DATA : process (Wr_Data, port_b_data_out) Begin port_a_data_in <= (others => '0'); for i in C_DP_DATA_WIDTH-1 downto 0 loop port_a_data_in(i) <= Wr_Data(C_DP_DATA_WIDTH-1-i); Rd_Data(C_DP_DATA_WIDTH-1-i) <= port_b_data_out(i); End loop; End process TRANSLATE_DATA; -- translate big-endian and little_endian indexes of the -- address buses (makes simulation easier) TRANSLATE_ADDRESS : process (Wr_Address, Rd_Address) Begin port_a_addr <= (others => '0'); port_b_addr <= (others => '0'); for i in C_DP_ADDRESS_WIDTH-1 downto 0 loop port_a_addr(i) <= Wr_Address(C_DP_ADDRESS_WIDTH-1-i); port_b_addr(i) <= Rd_Address(C_DP_ADDRESS_WIDTH-1-i); End loop; End process TRANSLATE_ADDRESS; slice_a_abus <= port_a_addr; slice_b_abus <= port_b_addr; BRAM_LOOP : for i in BRAM_NUM downto 1 generate slice_a_dbus_in(i) <= port_a_data_in((i*PRIM_DBUS_WIDTH)-1 downto (i*PRIM_DBUS_WIDTH)-PRIM_DBUS_WIDTH); port_a_data_out((i*PRIM_DBUS_WIDTH)-1 downto (i*PRIM_DBUS_WIDTH)-PRIM_DBUS_WIDTH) <= slice_a_dbus_out(i); slice_b_dbus_in(i) <= port_b_data_in((i*PRIM_DBUS_WIDTH)-1 downto (i*PRIM_DBUS_WIDTH)-PRIM_DBUS_WIDTH); port_b_data_out((i*PRIM_DBUS_WIDTH)-1 downto (i*PRIM_DBUS_WIDTH)-PRIM_DBUS_WIDTH) <= slice_b_dbus_out(i); -- Port A is fixed as the input (write) port -- Port B is fixed as the output (read) port I_DPB4_256x16 : RAMB4_S16_S16 port map( DIA => slice_a_dbus_in(i), DIB => slice_b_dbus_in(i), ENA => port_a_enable, ENB => port_b_enable, WEA => port_a_wr_enable, WEB => port_b_wr_enable, RSTA => port_a_ssr, RSTB => port_b_ssr, CLKA => Wr_Clk, CLKB => Rd_Clk, ADDRA => slice_a_abus, ADDRB => slice_b_abus, DOA => slice_a_dbus_out(i), DOB => slice_b_dbus_out(i) ); End generate BRAM_LOOP; end generate Using_RAMB4_S16_S16; --========================================================================== UNSUPPORTED_FAMILY : if (BRAM_PRIMITIVE = indeterminate) generate begin -- assert (false) -- report "Unsupported Part Family Selected or FIFO Depth/Width is invalid!" -- severity failure; -- end generate UNSUPPORTED_FAMILY; end architecture implementation;