- •Preface
- •About this document
- •Intended audience
- •Organization
- •Typographical conventions
- •Timing diagram conventions
- •Further reading
- •ARM publications
- •Feedback
- •Feedback on this document
- •Feedback on the ARM PrimeCell SDRAM Controller
- •Introduction
- •1.1 About the ARM PrimeCell SDRAM Controller (PL170)
- •1.1.1 General information
- •1.1.2 Features of the PrimeCell SDRAM Controller
- •Functional Overview
- •2.1 ARM PrimeCell SDRAM Controller (PL170) overview
- •2.1.1 PrimeCell SDRAM control engine
- •Arbitration
- •2.1.2 Main AHB interface
- •Control registers
- •2.1.3 Optional features
- •Merging write buffer
- •Read buffer
- •2.1.4 Additional AHB ports
- •2.1.5 Pad interface
- •2.2 Overview of a Primecell SDRAM, ASIC/ASSP, unified memory system
- •2.2.1 External bus
- •2.2.2 Internal bus
- •Multi-port access
- •Clock domains
- •Maintaining memory during low-power sleep modes
- •2.2.4 Example signal waveforms
- •Programmer’s Model
- •3.1 About the programmer’s model
- •3.2 Summary of PrimeCell SDRAM Controller registers
- •3.3 Register descriptions
- •3.3.1 Configuration registers
- •Configuration register 0
- •Configuration register 1
- •3.3.2 Refresh timer register
- •3.4 System initialization
- •3.5 Address mapping
- •3.5.1 Remapping the AMBA address to the SDRAM address bus
- •A.1 On-chip signals
- •A.1.1 AMBA AHB signals
- •A.1.2 Miscellaneous
- •A.2 Off-chip signals
- •A.2.1 SDRAM memory interface signals
- •First group
- •Second group
- •Third group
- •B.1 Commands
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 |