Line 4... |
Line 4... |
|
|
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 Reguest Generation
|
Description: SDRAM Controller Reguest Generation
|
The 2Mx32 SDRAM is addressed by a 21 bit address,
|
|
each loation is 32 bits wide.
|
|
This 21 bit address is mapped as follows:
|
|
ADDR [7:0] : Column Address (256 columns)
|
|
ADDR [18:8] : Row Address (2K Rows)
|
|
ADDR [20:19] : Bank Address (2 banks)
|
|
|
|
The 4Mx16 SDRAM is addressed by a 22 bit address,
|
Address Generation Based on cfg_colbits
|
each loation is 16 bits wide.
|
cfg_colbits= 2'b00
|
This 22 bit address is mapped as follows:
|
Address[7:0] - Column Address
|
ADDR [7:0] : Column Address (256 columns)
|
Address[9:8] - Bank Address
|
ADDR [21:10] : Row Address (4K Rows)
|
Address[21:10] - Row Address
|
ADDR [21:20] : Bank Address (4 banks)
|
cfg_colbits= 2'b01
|
|
Address[8:0] - Column Address
|
The 8Mx16 SDRAM is addressed by a 23 bit address,
|
Address[10:9] - Bank Address
|
each loation is 16 bits wide.
|
Address[22:11] - Row Address
|
This 23 bit address is mapped as follows:
|
cfg_colbits= 2'b10
|
ADDR [8:0] : Column Address (512 columns)
|
Address[9:0] - Column Address
|
ADDR [20:9] : Row Address (4K Rows)
|
Address[11:10] - Bank Address
|
ADDR [22:21] : Bank Address (4 banks)
|
Address[23:12] - Row Address
|
|
cfg_colbits= 2'b11
|
|
Address[10:0] - Column Address
|
|
Address[12:11] - Bank Address
|
|
Address[24:13] - Row Address
|
|
|
The SDRAMs are operated in 4 beat burst mode.
|
The SDRAMs are operated in 4 beat burst mode.
|
This module takes requests from the mc,
|
This module takes requests from the memory controller,
|
chops them to page boundaries if wrap=0,
|
chops them to page boundaries if wrap=0,
|
and passes the request to bank_ctl
|
and passes the request to bank_ctl
|
|
|
To Do:
|
To Do:
|
nothing
|
nothing
|