⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 data_path.v

📁 XILINX memory interface generator. XILINX的外部存储器接口。
💻 V
📖 第 1 页 / 共 4 页
字号:
//*****************************************************************************************
//**
//**  www.xilinx.com               Copyright (c) 1984-2004 Xilinx, Inc. All rights reserved
//** 
//**  QDR(tm)-II SRAM Virtex(tm)-II Interface                         Verilog 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. 
//**
//*****************************************************************************************
// Description :     This module comprises read data paths for the qdr2 memory interface.                 
//                   The read data is captured in CLB FFs and finally input to FIFOs.
//                     
`timescale 1ns/100ps

module data_path(
	         clk,
	         clk90,
	         clk180,
	         clk270,
	         reset,
	         reset90,
	         reset180,
	         reset270,
	         rst_cq_div,
	         delay_sel,
	         u_data_val,
	         qdr2_cq,
	         qdr2_q,
	         user_output_data
                 );

// Parameters

   parameter data_bits = 36 -1; // Size of the data bus -1
   parameter addr_bits = 18 -1; // Size of the address bus -1
   
                  
   input          clk;
   input          clk90;
   input          clk180;   
   input 	  clk270;
   input 	  reset; 
   input 	  reset90;   
   input 	  reset180;
   input 	  reset270;
   input 	  rst_cq_div;
   input [4:0]    delay_sel;
   input [3:0]    qdr2_cq;
   input [71:0]   qdr2_q;

   output         u_data_val;   
   output [143:0]  user_output_data;
   
reg [143:0]   user_output_data;
   
wire         cq_int_delay_in0;
wire         cq_int_delay_in1;
wire         cq_int_delay_in2;
wire         cq_int_delay_in3;

wire [3:0]   cq_delayed_col0; // delayed strobe
wire [3:0]   cq_delayed_col1; // delayed strobe

wire cq_div_transfert_0_col0;
wire cq_div_transfert_0_col1;
wire cq_div_transfert_1_col0;
wire cq_div_transfert_1_col1;
wire cq_div_transfert_2_col0;
wire cq_div_transfert_2_col1;
wire cq_div_transfert_3_col0;
wire cq_div_transfert_3_col1;

wire         transfer_done_00;
wire         transfer_done_01;
wire         transfer_done_02;
wire         transfer_done_03;
wire         transfer_done_10;
wire         transfer_done_11;
wire         transfer_done_12;
wire         transfer_done_13;
wire         transfer_done_20;
wire         transfer_done_21;
wire         transfer_done_22;
wire         transfer_done_23;
wire         transfer_done_30;
wire         transfer_done_31;
wire         transfer_done_32;
wire         transfer_done_33;

wire [71:0]  fbit_0;
wire [71:0]  fbit_1;
wire [71:0]  fbit_2;
wire [71:0]  fbit_3;

wire [17:0]  fifo_00_data_out;
wire [17:0]  fifo_01_data_out;     
wire [17:0]  fifo_02_data_out;     
wire [17:0]  fifo_03_data_out;      

wire [17:0]  fifo_10_data_out;
wire [17:0]  fifo_11_data_out;     
wire [17:0]  fifo_12_data_out;     
wire [17:0]  fifo_13_data_out;     

wire [17:0]  fifo_20_data_out;
wire [17:0]  fifo_21_data_out;     
wire [17:0]  fifo_22_data_out;     
wire [17:0]  fifo_23_data_out;      

wire [17:0]  fifo_30_data_out;
wire [17:0]  fifo_31_data_out;     
wire [17:0]  fifo_32_data_out;     
wire [17:0]  fifo_33_data_out;      

reg [3:0]    fifo_00_wr_addr;
reg [3:0]    fifo_01_wr_addr;
reg [3:0]    fifo_02_wr_addr;
reg [3:0]    fifo_03_wr_addr;

reg [3:0]    fifo_10_wr_addr;
reg [3:0]    fifo_11_wr_addr;
reg [3:0]    fifo_12_wr_addr;
reg [3:0]    fifo_13_wr_addr;

reg [3:0]    fifo_20_wr_addr;
reg [3:0]    fifo_21_wr_addr;
reg [3:0]    fifo_22_wr_addr;
reg [3:0]    fifo_23_wr_addr;

reg [3:0]    fifo_30_wr_addr;
reg [3:0]    fifo_31_wr_addr;
reg [3:0]    fifo_32_wr_addr;
reg [3:0]    fifo_33_wr_addr;

reg [3:0]    fifo_00_rd_addr;
reg [3:0]    fifo_02_rd_addr;


wire         fifo_11_not_empty;
wire         fifo_13_not_empty;

reg          fifo_11_not_empty_r;
reg          fifo_13_not_empty_r;

wire         read_valid_data_1;
wire         read_valid_data_2;
wire         read_valid_data;
reg          rd_data_valid;
reg          next_state;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -