Line 3... |
Line 3... |
SDRAM Controller top File
|
SDRAM Controller top File
|
|
|
This file is part of the sdram controller project
|
This file is part of the sdram controller project
|
http://www.opencores.org/cores/sdr_ctrl/
|
http://www.opencores.org/cores/sdr_ctrl/
|
|
|
Description: SDRAM Controller Core Module
|
Description: SDRAM Controller Top Module.
|
2 types of SDRAMs are supported, 1Mx16 2 bank, or 4Mx16 4 bank.
|
Support 81/6/32 Bit SDRAM.
|
|
Column Address is Programmable
|
|
Bank Bit are 2 Bit
|
|
Row Bits are 12 Bits
|
|
|
This block integrate following sub modules
|
This block integrate following sub modules
|
|
|
sdrc_core
|
sdrc_core
|
SDRAM Controller file
|
SDRAM Controller file
|
wb2sdrc
|
wb2sdrc
|
Line 98... |
Line 102... |
cfg_sdr_trcd_d,
|
cfg_sdr_trcd_d,
|
cfg_sdr_cas,
|
cfg_sdr_cas,
|
cfg_sdr_trcar_d,
|
cfg_sdr_trcar_d,
|
cfg_sdr_twr_d,
|
cfg_sdr_twr_d,
|
cfg_sdr_rfsh,
|
cfg_sdr_rfsh,
|
cfg_sdr_rfmax);
|
cfg_sdr_rfmax
|
|
);
|
|
|
parameter APP_AW = 30; // Application Address Width
|
parameter APP_AW = 30; // Application Address Width
|
parameter APP_DW = 32; // Application Data Width
|
parameter APP_DW = 32; // Application Data Width
|
parameter APP_BW = 4; // Application Byte Width
|
parameter APP_BW = 4; // Application Byte Width
|
parameter APP_RW = 9; // Application Request Width
|
parameter APP_RW = 9; // Application Request Width
|
Line 119... |
Line 124... |
// ----------------------------------------------
|
// ----------------------------------------------
|
input sdram_clk ; // SDRAM Clock
|
input sdram_clk ; // SDRAM Clock
|
input sdram_pad_clk ; // SDRAM Clock from Pad, used for registering Read Data
|
input sdram_pad_clk ; // SDRAM Clock from Pad, used for registering Read Data
|
input sdram_resetn ; // Reset Signal
|
input sdram_resetn ; // Reset Signal
|
input [1:0] sdr_width ; // 2'b00 - 32 Bit SDR, 2'b01 - 16 Bit SDR, 2'b1x - 8 Bit
|
input [1:0] sdr_width ; // 2'b00 - 32 Bit SDR, 2'b01 - 16 Bit SDR, 2'b1x - 8 Bit
|
input [1:0] cfg_colbits ; // 2'b00 - 8 Bit column address, 2'b01 - 9 Bit, 10 - 10 bit, 11 - 11Bits
|
input [1:0] cfg_colbits ; // 2'b00 - 8 Bit column address,
|
|
// 2'b01 - 9 Bit, 10 - 10 bit, 11 - 11Bits
|
|
|
//--------------------------------------
|
//--------------------------------------
|
// Wish Bone Interface
|
// Wish Bone Interface
|
// -------------------------------------
|
// -------------------------------------
|
input wb_rst_i ;
|
input wb_rst_i ;
|