📄 qdr2_qbit_cq.vhd
字号:
--*****************************************************************************************
--**
--** www.xilinx.com Copyright (C) 2003 Xilinx, Inc. All rights reserved
--**
--** QDR(tm) SRAM Virtex(tm)-II Interface VHDL instanciation
--**
--*****************************************************************************************
--**
--** Disclaimer: LIMITED WARRANTY AND DISCLAMER. These designs are
--** provided to you "as is". Xilinx and its licensors make and you
--** receive no warranties or conditions, express, implied, statutory
--** or otherwise, and Xilinx specifically disclaims any implied
--** warranties of merchantability, non-infringement, or fitness for a
--** particular purpose. Xilinx does not warrant that the functions
--** contained in these designs will meet your requirements, or that the
--** operation of these designs will be uninterrupted or error free, or
--** that defects in the Designs will be corrected. Furthermore, Xilinx
--** does not warrant or make any representations regarding use or the
--** results of the use of the designs in terms of correctness, accuracy,
--** reliability, or otherwise.
--**
--** LIMITATION OF LIABILITY. In no event will Xilinx or its licensors be
--** liable for any loss of data, lost profits, cost or procurement of
--** substitute goods or services, or for any special, incidental,
--** consequential, or indirect damages arising from the use or operation
--** of the designs or accompanying documentation, however caused and on
--** any theory of liability. This limitation will apply even if Xilinx
--** has been advised of the possibility of such damage. This limitation
--** shall apply not-withstanding the failure of the essential purpose of
--** any limited remedies herein.
--**
--*****************************************************************************************
--***********************************************
--* Library declaration
--***********************************************
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
--pragma translate_off
--synopsys translate_off
LIBRARY UNISIM;
use UNISIM.VCOMPONENTS.ALL;
--synopsys translate_on
--pragma translate_on
entity qdr2_qbit_cq is
generic (
-- Constant Parameters
addr_bits : INTEGER := 18;
mem_sizes : INTEGER := 524287
);
port ( reset : in std_logic;
cq : in std_logic;
cq1 : in std_logic;
qdr2_q : in std_logic;
CE_R_FB0 : in std_logic;
CE_R_FB1 : in std_logic;
CE_R_FB2 : in std_logic;
CE_R_FB3 : in std_logic;
fbit_0 : out std_logic;
fbit_1 : out std_logic;
fbit_2 : out std_logic;
fbit_3 : out std_logic );
end qdr2_qbit_cq;
architecture qdr2_qbit_cq_arch of qdr2_qbit_cq is
--***********************************************
--* Components declaration
--***********************************************
component FDCE
port( Q : out std_logic;
D : in std_logic;
C : in std_logic;
CE : in std_logic;
CLR : in std_logic );
end component;
component v2p_qdr2_input_buffer
port ( qdr2_in : in std_logic;
read_data_in : out std_logic );
end component;
--***********************************************
--* Signals and constants declaration
--***********************************************
signal fbit : std_logic_vector (3 downto 0);
signal async_clr : std_logic;
signal q : std_logic;
signal cqn : std_logic;
signal cq1n : std_logic;
begin
async_clr <= reset;
fbit_0 <= fbit(0);
fbit_1 <= fbit(1);
fbit_2 <= fbit(2);
fbit_3 <= fbit(3);
cqn <= not(cq);
cq1n <= not(cq1);
fbit0 : FDCE port map (
Q => fbit(0),
C => cq1n,
CE => CE_R_FB0,
CLR => async_clr,
D => q );
fbit1 : FDCE port map (
Q => fbit(1),
C => cq,
CE => CE_R_FB1,
CLR => async_clr,
D => q );
fbit2 : FDCE port map (
Q => fbit(2),
C => cq1n,
CE => CE_R_FB2,
CLR => async_clr,
D => q );
fbit3 : FDCE port map (
Q => fbit(3),
C => cq,
CE => CE_R_FB3,
CLR => async_clr,
D => q );
--q <= qdr2_q;
v2p_qdr2_iob0 : v2p_qdr2_input_buffer port map
( qdr2_in=> qdr2_q,
read_data_in => q );
end qdr2_qbit_cq_arch;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -