
VI SDRAM CONTROLLER BLOCK: SDRAM INTERFACE
Bank, row, and column address configuration
An SDRAM memory array consists of two or four banks, with each bank divided into pages. For this reason, SDRAMs have a bank select pin which is not found in asynchronous DRAMs. Inside the Bank, the Column (Page) address and the Row address are selected by #CAS and #RAS, respectively, in the same way as with asynchronous DRAMs.
For the SDRAM addresses to be generated correctly, it is necessary that the bank size and the column and row address ranges be set in the SDRAM controller according to the SDRAMs used. For these settings, use the registers shown below.
Bank size: | SDRBA (D1)/SDRAM address configuration register (0x39FFC2) | |||||||
Column addressing range: | SDRCA[1:0] (D[6:5])/SDRAM address configuration register (0x39FFC2) | |||||||
Row addressing range: | SDRRA[1:0] (D[3:2])/SDRAM address configuration register (0x39FFC2) | |||||||
|
|
| Table 2.6 Setting Bank Size | |||||
| SDRBA |
| Number of banks | Bank address (pin) used |
| |||
| 0 |
|
|
| 2 | SDBA0 (default) |
| |
| 1 |
|
|
| 4 |
| ||
| Table 2.7 Setting Column Addressing Range (Page Size) | |||||||
| SDRCA1 |
| SDRCA0 | Column size | Column address (pin) used |
| ||
| 0 |
| 0 |
| 256 |
|
| |
| 0 |
| 1 |
| 512 |
|
| |
| 1 |
| 0 |
| 1,024 |
|
| |
| 1 |
| 1 |
| – | – |
|
|
|
|
| Table 2.8 Setting Row Addressing Range | |||||
| SDRRA1 |
| SDRRA0 | Row size | Row address (pin) used |
| ||
| 0 |
| 0 |
| 2K |
|
| |
| 0 |
| 1 |
| 4K |
|
| |
| 1 |
| 0 |
| 8K |
|
| |
| 1 |
| 1 |
| – | – |
|
|
The SDRAM controller uses only the lower 24 bits of the
A(m+n+p) | A(m+n+1) | A(m+n) | ··· |
| A(m+1) | A(m) |
| ··· |
| A1 | A0 |
Bank address |
| Row address |
|
| Column address |
| DQM |
When reading/writing byte data, the SDRAM controller decodes A0/BSL and WRH/BSH into LDQM and HDQM.
A(m+n) | ··· | A(m) |
| ··· |
| A0 | |||
Bank address |
| Row address |
|
| Column address |
|
m:Column address size (number of bits)
n:Row address size (number of bits)
p:Bank address size (number of bits)
Upper address bits that are not used (depending on memory size) are all set to 0s.
In cases when two areas are selected (SDRAR[1:0] = "11") and only one chip enable is enabled (SDRPC[1:0]
="01" or "10"), the MSB of the bank address (A(m+n+p) for 16 bits or
• Value is "0" when accessing area 7/13
• Value is "1" when accessing area 8/14
EPSON | S1C33L03 FUNCTION PART |