Line 263... |
Line 263... |
/****************************************************************************/
|
/****************************************************************************/
|
// Instantiate sdr_req_gen
|
// Instantiate sdr_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_req_gen 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 ),
|
|
|
/* Request from app */
|
/* Request from app */
|
Line 303... |
Line 303... |
// Instantiate sdr_bank_ctl
|
// Instantiate sdr_bank_ctl
|
// This module takes requests from sdr_req_gen, checks for page hit/miss and
|
// This module takes requests from sdr_req_gen, checks for page hit/miss and
|
// issues precharge/activate commands and then passes the request to
|
// issues precharge/activate commands and then passes the request to
|
// sdr_xfr_ctl.
|
// sdr_xfr_ctl.
|
|
|
sdrc_bank_ctl u_bank_ctl (
|
sdrc_bank_ctl #(.SDR_DW(SDR_DW) , .SDR_BW(SDR_BW)) u_bank_ctl (
|
.clk (clk ),
|
.clk (clk ),
|
.reset_n (reset_n ),
|
.reset_n (reset_n ),
|
.a2b_req_depth (cfg_req_depth ),
|
.a2b_req_depth (cfg_req_depth ),
|
|
|
/* Req from req_gen */
|
/* Req from req_gen */
|
Line 362... |
Line 362... |
// This module takes requests from sdr_bank_ctl, runs the transfer and
|
// This module takes requests from sdr_bank_ctl, runs the transfer and
|
// controls data flow to/from the app. At the end of the transfer it issues a
|
// controls data flow to/from the app. At the end of the transfer it issues a
|
// burst terminate if not at the end of a burst and another command to this
|
// burst terminate if not at the end of a burst and another command to this
|
// bank is not available.
|
// bank is not available.
|
|
|
sdrc_xfr_ctl u_xfr_ctl (
|
sdrc_xfr_ctl #(.SDR_DW(SDR_DW) , .SDR_BW(SDR_BW)) u_xfr_ctl (
|
.clk (clk ),
|
.clk (clk ),
|
.reset_n (reset_n ),
|
.reset_n (reset_n ),
|
|
|
/* Transfer request from bank_ctl */
|
/* Transfer request from bank_ctl */
|
.r2x_idle (r2x_idle ),
|
.r2x_idle (r2x_idle ),
|
Line 430... |
Line 430... |
.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 )
|
);
|
);
|
|
|
sdrc_bs_convert 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 ),
|
|
|
.app_req_addr (app_req_addr ),
|
.app_req_addr (app_req_addr ),
|