Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
ARM PrimeCell SDRAM controller technical reference manual.pdf
Скачиваний:
14
Добавлен:
23.08.2013
Размер:
576.81 Кб
Скачать

Functional Overview

2.2Overview of a Primecell SDRAM, ASIC/ASSP, unified memory system

Figure 2-2 shows the PrimeCell SDRAM Controller interfacing SDRAM chips to SoC ASIC peripherals.

AHB bus

 

AMBA AHB

 

Address/data

 

Address

 

Address

 

 

Access request

 

 

 

 

 

main bus

 

 

 

 

 

 

 

 

 

Port 3

 

 

 

 

 

 

Data mask

 

 

 

 

 

interface

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Register info

PrimeCell

 

 

 

 

 

Control regs

 

 

Pad

 

 

 

 

 

 

SDRAM

 

 

 

 

 

 

 

 

interface

 

 

 

 

 

 

control engine

 

 

DMA bus 2

 

 

 

Address/data

 

 

 

 

AHB (DMA) 2

 

Access request

Port 2

 

 

 

 

 

 

 

 

 

 

 

 

Data mask

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Address/data

 

Control

 

Control

 

 

 

 

 

 

DMA bus 1

 

AHB (DMA) 1

 

Access request

Port 1

 

 

 

 

 

 

 

 

 

 

 

 

Data mask

 

 

 

 

 

 

 

 

 

 

 

DMA bus 0

 

 

 

Address/data

 

Data in

 

Data in

 

 

 

 

 

 

AHB (DMA) 0

 

Access request

Port 0

 

 

 

 

 

 

 

 

 

 

 

 

Data mask

Data out

 

Data out

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Optional ports

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Figure 2-2 PrimeCell SDRAM Controller in a system

The system uses three types of bus:

External bus on page 2-8

Internal bus on page 2-9

DMA bus on page 2-9 (optional).

ARM DDI 0159D

Copyright © ARM Limited 1999-2001. All rights reserved.

2-7

Functional Overview

2.2.1External bus

The off-chip SDRAM bus (containing data, address and control signals) connects the ASIC or ASSP to the SDRAM.

Figure 2-3 illustrates how the memory interface signals connect to a memory array for a 32 bit wide data bus. For a 16 bit wide data bus only Bytes 0 and 1 are used. DQM[3:2] and DataI/O[31:16] are left unconnected, or can be omitted from the external signals of the ASIC.

CKEOut[3:0]

nCSOut[3:0]

nCSOut[0]

CKEOut[0]

nCSOut[1]

CKEOut[1]

nCSOut[2]

CKEOut[2]

nCSOut[3]

CKEOut[3]

 

 

 

 

 

 

 

Bank 3

Each nCSOut signal selects a memory bank or plane of up to 128 Mbytes capacity (total memory 512 Mbytes)

 

 

 

 

Bank 2

CS

CKE

 

 

 

 

 

 

 

 

Bank 1

CS

CKE

 

 

 

 

 

 

 

 

Bank 0

CS

CKE

 

 

 

 

 

 

 

 

 

 

CS

CKE

 

 

 

 

 

 

CLKOut

CLK

 

 

 

 

 

 

 

nRASOut

RAS

 

 

 

 

 

 

 

nCASOut

CAS

Memory Bank or Plane. Use 1 off by 32, 2 off by 16 or 4 off by 8

 

to construct 32 bit wide memory of up to 128 Mbytes capacity

 

nWEOut

WE

 

 

 

 

 

 

 

 

AddrOut[14:0]

A[14:0]

 

 

 

 

 

 

 

 

DQM

DQX

DQM

DQX

DQM

DQX

DQM

DQX

 

1

8

1

8

1

8

1

8

 

DQMOut[3]

 

DQMOut[2]

 

DQMOut[1]

 

DQMOut[0]

 

DQMOut[3:0]

4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DataI/O[31:0]

 

[31:24]

 

[23:16]

 

[15:8]

 

[7:0]

32

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Byte 3

Byte 2

Byte 1

Byte 0

Figure 2-3 PrimeCell SDRAM Controller external bus

Note

Refer to Address mapping on page 3-10 for examples of how to connect AddrOut[14:0] to memory devices.

2-8

Copyright © ARM Limited 1999-2001. All rights reserved.

ARM DDI 0159D