Texas Instruments TMS320DM647, DM648 DSP manual DDR2 Memory Controller Interface

Page 22

www.ti.com

Peripheral Architecture

Figure 14. DDR2 SDRAM Column, Row, and Bank Access

Bank 0

Row 0

Row 1

Row 2

Row N

 

C

C C

C

 

o

o

o

o

 

l

l

l

l

0

1

2

3

M

 

 

C C C

C

 

 

o

o

o

o

 

 

l

l

l

l

Bank 1

0

1

2

3

M

Row 0

 

 

 

 

 

Row 1

 

 

 

 

 

Row 2

 

 

 

 

 

Row N

 

 

 

 

 

 

 

C

C C

C

 

 

o

o

o

o

 

 

l

l

l

l

Bank 2

0

1

2

3

M

Row 0

 

 

 

 

 

Row 1

 

 

 

 

 

Row 2

 

 

 

 

 

Row N

 

 

 

 

 

 

 

C C C

C

 

 

o

o

o

o

 

 

l

l

l

l

Bank P

0

1

2

3

M

Row 0

 

 

 

 

 

Row 1

 

 

 

 

 

Row 2

 

 

 

 

 

Row N

 

 

 

 

 

AM is number of columns (as determined by PAGESIZE) minus 1, P is number of banks (as determined by IBANK) minus 1, and N is number of rows (as determined by both PAGESIZE and IBANK) minus 1.

2.7DDR2 Memory Controller Interface

To move data efficiently from on-chip resources to external DDR2 SDRAM device, the DDR2 memory controller makes use of a command FIFO, a write FIFO, a read FIFO, and command and data schedulers. Table 6 describes the purpose of each FIFO.

Figure 15 shows the block diagram of the DDR2 memory controller FIFOs. Commands, write data, and read data arrive at the DDR2 memory controller parallel to each other. The same peripheral bus is used to write and read data from external memory as well as internal memory-mapped registers.

Table 6. DDR2 Memory Controller FIFO Description

 

 

Depth (64-Bit

FIFO

Description

Doublewords)

Command

Stores all commands coming from on-chip requesters

7

Write

Stores write data coming from on-chip requesters to

11

 

memory

 

Read

Stores read data coming from memory to on-chip

17

 

requesters

 

22

DSP DDR2 Memory Controller

SPRUEK5A –October 2007

Image 22
Contents Users Guide Submit Documentation Feedback Contents List of Figures List of Tables Read This First Related Documentation From Texas Instruments Trademarks Functional Block Diagram FeaturesPurpose of the Peripheral Industry Standards Compliance Statement Clock Control Signal DescriptionsMemory Map DDR2 Memory Controller Signal Descriptions Pin DescriptionCommand Function DDR2 Sdram CommandsTruth Table for DDR2 Sdram Commands Protocol DescriptionsDdrclk MRS/EMRS Ddrcke Ddrcs Ddrras Ddrcas Ddrwe Mode Register Set MRS and EmrsRefresh Mode COLActivation Actv Ddrcs Ddrras Ddrcas DdrweDcab Command Deactivation Dcab and DeacRead Command DDR2 Read CommandAddressable Memory Ranges Write WRT CommandMemory Width and Byte Alignment Memory Width Maximum Addressable BytesBit Field Bit Value Bit Description Bank Configuration Register Fields for Address MappingAddress Mapping IbankLogical Address-to-DDR2 Sdram Address Map for 16-bit Sdram Logical Address-to-DDR2 Sdram Address Map DDR2 Memory Controller Interface DDR2 Memory Controller Fifo DescriptionDDR2 Memory Controller Fifo Block Diagram Command Ordering and Scheduling, Advanced ConceptCommand Starvation Refresh Urgency Levels Refresh SchedulingPossible Race Condition Urgency Level DescriptionReset Considerations Self-Refresh ModeReset Sources DDR2 Sdram Extended Mode Register 1 Configuration 11.1 DDR2 Sdram Device Mode Register Configuration ValuesDDR2 Sdram Mode Register Configuration 11 DDR2 Sdram Memory InitializationInterrupt Support 11.2 DDR2 Sdram Initialization After Reset11.3 DDR2 Sdram Initialization After Register Configuration Edma Event SupportUsing the DDR2 Memory Controller Connecting the DDR2 Memory Controller to DDR2 SdramConnecting to Two 16-Bit DDR2 Sdram Devices Connecting to a Single 16-Bit DDR2 Sdram Device Connecting to Two 8-Bit DDR2 Sdram Devices Programming the Sdram Refresh Control Register Sdrfc Programming the Sdram Configuration Register SdcfgSdcfg Configuration Function SelectionConfiguring Sdram Timing Registers SDTIM1 and SDTIM2 DDR2 Memory Refresh SpecificationSdrfc Configuration SDTIM1 ConfigurationDDR2 Sdram Data Register Field Sheet Parameter SDTIM2 ConfigurationDmcctl Configuration Name DescriptionDDR2 Memory Controller Registers Offset Acronym Register DescriptionModule ID and Revision Register Midr Field Descriptions Module ID and Revision Register MidrDDR2 Memory Controller Status Register Dmcstat Bit Field Value DescriptionSdram Configuration Register Sdcfg Sdram Configuration Register Sdcfg Field DescriptionsSdram Configuration Register Sdcfg Field Descriptions Sdram Refresh Control Register Sdrfc Sdram Refresh Control Register Sdrfc Field DescriptionsTrfc TRP Trcd TWR Sdram Timing 1 Register SDTIM1Sdram Timing 1 Register SDTIM1 Field Descriptions Tras TRC TrrdDDR2 memory data sheet. Calculate using this formula Todt Tsxnr Sdram Timing 2 Register SDTIM2Sdram Timing 2 Register SDTIM2 Field Descriptions Tsxrd Trtp TckeBurst Priority Register Bprio Field Descriptions Burst Priority Register BprioPrioraise DDR2 Memory Controller Control Register Dmcctl ReseTable A-1. Document Revision History Additions/Modifications/DeletionsDSP Products ApplicationsRfid