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

Subversion Repositories sdr_ctrl

[/] [sdr_ctrl/] [trunk/] [rtl/] [core/] [sdrc_core.v] - Diff between revs 9 and 13

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 9 Rev 13
Line 69... Line 69...
           (
           (
                clk,
                clk,
                pad_clk,
                pad_clk,
                reset_n,
                reset_n,
                sdr_width,
                sdr_width,
 
                cfg_colbits,
 
 
                /* Request from app */
                /* Request from app */
                app_req,                // Transfer Request
                app_req,                // Transfer Request
                app_req_addr,           // SDRAM Address
                app_req_addr,           // SDRAM Address
                app_req_addr_mask,      // Address mask for queue wrap
                app_req_addr_mask,      // Address mask for queue wrap
Line 131... Line 132...
// ----------------------------------------------
// ----------------------------------------------
input                   clk                 ; // SDRAM Clock 
input                   clk                 ; // SDRAM Clock 
input                   pad_clk             ; // SDRAM Clock from Pad, used for registering Read Data
input                   pad_clk             ; // SDRAM Clock from Pad, used for registering Read Data
input                   reset_n             ; // Reset Signal
input                   reset_n             ; // Reset Signal
input                   sdr_width           ; // 0 - 32 Bit SDR, 1 - 16 Bit SDR
input                   sdr_width           ; // 0 - 32 Bit SDR, 1 - 16 Bit SDR
 
input [1:0]             cfg_colbits         ; // 2'b00 - 8 Bit column address, 2'b01 - 9 Bit, 10 - 10 bit, 11 - 11Bits
 
 
 
 
//------------------------------------------------
//------------------------------------------------
// Request from app
// Request from app
//------------------------------------------------
//------------------------------------------------
input                   app_req             ; // Application Request
input                   app_req             ; // Application Request
Line 167... Line 170...
output [SDR_BW-1:0]      sdr_den_n           ; // SDRAM Data Output enable
output [SDR_BW-1:0]      sdr_den_n           ; // SDRAM Data Output enable
 
 
//------------------------------------------------
//------------------------------------------------
// Configuration Parameter
// Configuration Parameter
//------------------------------------------------
//------------------------------------------------
output                  sdr_init_done       ;
output                  sdr_init_done       ; // Indicate SDRAM Initialisation Done
input [3:0]              cfg_sdr_tras_d      ;
input [3:0]              cfg_sdr_tras_d      ; // Active to precharge delay
input [3:0]             cfg_sdr_trp_d       ;
input [3:0]             cfg_sdr_trp_d       ; // Precharge to active delay
input [3:0]             cfg_sdr_trcd_d      ;
input [3:0]             cfg_sdr_trcd_d      ; // Active to R/W delay
input                   cfg_sdr_en          ;
input                   cfg_sdr_en          ; // Enable SDRAM controller
input [1:0]             cfg_sdr_dev_config  ; // 2'b00 - 8 MB, 01 - 16 MB, 10 - 32 MB , 11 - 64 MB
input [1:0]             cfg_sdr_dev_config  ; // 2'b00 - 8 MB, 01 - 16 MB, 10 - 32 MB , 11 - 64 MB
input [1:0]              cfg_req_depth       ;
input [1:0]              cfg_req_depth       ; // Maximum Request accepted by SDRAM controller
input [APP_RW-1:0]       app_req_len         ;
input [APP_RW-1:0]       app_req_len         ; // Application Burst Request length in 32 bit 
input [11:0]             cfg_sdr_mode_reg    ;
input [11:0]             cfg_sdr_mode_reg    ;
input [2:0]              cfg_sdr_cas         ;
input [2:0]              cfg_sdr_cas         ; // SDRAM CAS Latency
input [3:0]              cfg_sdr_trcar_d     ;
input [3:0]              cfg_sdr_trcar_d     ; // Auto-refresh period
input [3:0]             cfg_sdr_twr_d       ;
input [3:0]             cfg_sdr_twr_d       ; // Write recovery delay
input [`SDR_RFSH_TIMER_W-1 : 0] cfg_sdr_rfsh;
input [`SDR_RFSH_TIMER_W-1 : 0] cfg_sdr_rfsh;
input [`SDR_RFSH_ROW_CNT_W -1 : 0] cfg_sdr_rfmax;
input [`SDR_RFSH_ROW_CNT_W -1 : 0] cfg_sdr_rfmax;
input                   app_req_dma_last;    // this signal should close the bank
input                   app_req_dma_last;    // this signal should close the bank
 
 
/****************************************************************************/
/****************************************************************************/
Line 267... Line 270...
 
 
sdrc_req_gen #(.SDR_DW(SDR_DW) , .SDR_BW(SDR_BW)) u_req_gen (
sdrc_req_gen #(.SDR_DW(SDR_DW) , .SDR_BW(SDR_BW)) u_req_gen (
          .clk                (clk          ),
          .clk                (clk          ),
          .reset_n            (reset_n            ),
          .reset_n            (reset_n            ),
          .sdr_dev_config     (cfg_sdr_dev_config ),
          .sdr_dev_config     (cfg_sdr_dev_config ),
 
          .cfg_colbits        (cfg_colbits        ),
 
 
        /* Request from app */
        /* Request from app */
          .r2x_idle           (r2x_idle           ),
          .r2x_idle           (r2x_idle           ),
          .req                (app_req_int        ),
          .req                (app_req_int        ),
          .req_id             (4'b0               ),
          .req_id             (4'b0               ),

powered by: WebSVN 2.1.0

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