Line 8... |
Line 8... |
Description: SDRAM Controller Core Module
|
Description: SDRAM Controller Core Module
|
2 types of SDRAMs are supported, 1Mx16 2 bank, or 4Mx16 4 bank.
|
2 types of SDRAMs are supported, 1Mx16 2 bank, or 4Mx16 4 bank.
|
This block integrate following sub modules
|
This block integrate following sub modules
|
|
|
sdrc_bs_convert
|
sdrc_bs_convert
|
convert the system side 32 bit into equvailent 16/32 SDR format
|
convert the system side 32 bit into equvailent 8/16/32 SDR format
|
sdrc_req_gen
|
sdrc_req_gen
|
This module takes requests from the app, chops them to burst booundaries
|
This module takes requests from the app, chops them to burst booundaries
|
if wrap=0, decodes the bank and passe the request to bank_ctl
|
if wrap=0, decodes the bank and passe the request to bank_ctl
|
sdrc_xfr_ctl
|
sdrc_xfr_ctl
|
This module takes requests from sdr_bank_ctl, runs the transfer and
|
This module takes requests from sdr_bank_ctl, runs the transfer and
|
Line 444... |
Line 444... |
.twr_delay (cfg_sdr_twr_d ),
|
.twr_delay (cfg_sdr_twr_d ),
|
.rfsh_time (cfg_sdr_rfsh ),
|
.rfsh_time (cfg_sdr_rfsh ),
|
.rfsh_rmax (cfg_sdr_rfmax )
|
.rfsh_rmax (cfg_sdr_rfmax )
|
);
|
);
|
|
|
|
/****************************************************************************/
|
|
// Instantiate sdr_bs_convert
|
|
// This model handle the bus with transaltion from application layer to
|
|
// 8/16/32 SDRAM Memory format
|
|
// During Write Phase, this block split the data as per SDRAM Width
|
|
// During Read Phase, This block does the re-packing based on SDRAM
|
|
// Width
|
|
//---------------------------------------------------------------------------
|
sdrc_bs_convert #(.SDR_DW(SDR_DW) , .SDR_BW(SDR_BW)) u_bs_convert (
|
sdrc_bs_convert #(.SDR_DW(SDR_DW) , .SDR_BW(SDR_BW)) u_bs_convert (
|
.clk (clk ),
|
.clk (clk ),
|
.reset_n (reset_n ),
|
.reset_n (reset_n ),
|
.sdr_width (sdr_width ),
|
.sdr_width (sdr_width ),
|
|
|