Reference Guide: TMS320C6000 DSP External Memory Interface (EMIF)
Reference Guide: TMS320C6000 DSP External Memory Interface (EMIF)
Reference Guide: TMS320C6000 DSP External Memory Interface (EMIF)
Reference Guide
Preface.............................................................................................................................. 11
1 Overview ................................................................................................................. 13
1.1 Overview..................................................................................................................... 14
1.2 Command-to-Command Turnaround Time ............................................................................. 15
1.3 SDRAM Interface ........................................................................................................... 15
1.3.1 SDRAM Initialization .............................................................................................. 19
1.3.2 Monitoring Page Boundaries ..................................................................................... 19
1.3.3 SDRAM Refresh Mode ........................................................................................... 20
1.3.4 SDRAM Deactivation (DCAB and DEAC) ...................................................................... 21
1.3.5 SDRAM Activation (ACTV) ....................................................................................... 23
1.4 SBSRAM Interface ......................................................................................................... 24
1.5 Asynchronous Interface ................................................................................................... 26
1.5.1 Programmable ASRAM Parameters ............................................................................ 28
1.5.2 Asynchronous Reads ............................................................................................. 28
1.5.3 Asynchronous Writes ............................................................................................. 30
1.5.4 Ready Input ........................................................................................................ 32
1.5.5 C620x/C670x DSP Illegal Access to Asynchronous Memory ............................................... 34
1.6 Resetting the EMIF......................................................................................................... 35
1.6.1 Valid EMIF Clock During Reset ................................................................................. 35
1.7 Hold Interface ............................................................................................................... 36
1.7.1 TMS320C62x/C67x EMIF Reset Considerations With the Hold Interface ................................. 36
1.7.2 TMS320C64x EMIF Reset Considerations With the Hold Interface ........................................ 36
1.8 Boundary Conditions When Accessing EMIF Registers .............................................................. 37
1.9 Clock Output Enabling ..................................................................................................... 38
1.10 Emulation Halt Operation.................................................................................................. 39
1.11 Power Down ................................................................................................................ 39
List of Figures
1-1 SDRAM Refresh Timing Diagram ........................................................................................ 20
1-2 TMS320C6000 SDRAM Deactivate All Banks (DCAB) Command Timing Diagram .............................. 21
1-3 TMS320C621x/C671x and TMS320C64x SDRAM Deactivate Single Bank (DEAC) Command Timing
Diagram...................................................................................................................... 22
1-4 TMS320C6000 SDRAM Activate (ACTV) Command Before an SDRAM Write Timing Diagram ............... 23
1-5 EMIF to 32-bit SRAM Interface Block Diagram ........................................................................ 26
1-6 EMIF to 8-Bit ROM Interface Block Diagram .......................................................................... 27
1-7 EMIF to 16-Bit ROM Interface Block Diagram ......................................................................... 27
1-8 EMIF to 32-Bit ROM Interface Block Diagram ......................................................................... 27
1-9 Asynchronous Read Timing Diagram.................................................................................... 29
1-10 Asynchronous Write Timing Diagram .................................................................................... 30
1-11 TMS320C620x/C670x EMIF Ready Operation Timing Diagram ..................................................... 32
1-12 TMS320C621x/C671x EMIF Ready Operation Timing Diagram ..................................................... 33
1-13 TMS320C64x EMIF Ready Operation Timing Diagram ............................................................... 34
1-14 TMS320C64x EMIF Clock Block Diagram ............................................................................. 38
2-1 TMS320C620x/C670x DSP Block Diagram ............................................................................ 42
2-2 TMS320C6201/C6701 EMIF Interface Signals ........................................................................ 43
2-3 TMS320C6202/C6203/C6204/C6205 EMIF Interface Signals ....................................................... 44
2-4 EMIF to 16M-Bit SDRAM Interface Block Diagram ................................................................... 46
2-5 EMIF to 64M-Bit SDRAM Interface Block Diagram ................................................................... 47
2-6 Logical Address-to-Page Register Mapping ............................................................................ 49
2-7 Mode Register Value ...................................................................................................... 52
2-8 SDRAM Mode Register Set: MRS Command Timing Diagram ...................................................... 53
2-9 SDRAM Read Timing Diagram ........................................................................................... 54
2-10 SDRAM Three-Word Write Timing Diagram ............................................................................ 55
2-11 EMIF to SBSRAM Interface Block Diagram ............................................................................ 56
2-12 SBSRAM Four-Word Read Timing Diagram............................................................................ 56
2-13 SBSRAM Four-Word Write Timing Diagram ............................................................................ 57
2-14 EMIF Global Control Register (GBLCTL) (C6201/C6701 DSP) ..................................................... 61
2-15 EMIF Global Control Register (GBLCTL) (C6202/C6203/C6204/C6205 DSP) ................................... 61
2-16 EMIF CE Space Control Register (CECTL) ............................................................................ 63
2-17 EMIF SDRAM Control Register (SDCTL) .............................................................................. 65
2-18 EMIF SDRAM Timing Register (SDTIM) ............................................................................... 66
3-1 TMS320C621x/C671x DSP Block Diagram ............................................................................ 68
3-2 TMS320C621x/C671x EMIF Interface Signals ........................................................................ 69
3-3 Byte Alignment by Endianess - 32-Bit .................................................................................. 71
3-4 Byte Alignment by Endianess - 16-bit .................................................................................. 72
3-5 TMS320C621x/C671x EMIF to 16-bit SRAM (Big Endian) Block Diagram ........................................ 72
3-6 EMIF to 16M-Bit SDRAM Interface Block Diagram ................................................................... 73
3-7 Logical Address-to-Page Register Mapping for 32-Bit Logical Address ............................................ 76
3-8 Mode Register Value ...................................................................................................... 78
3-9 SDRAM Mode Register Set: MRS Command Timing Diagram ...................................................... 79
3-10 SDRAM Three-Word Read Timing Diagram ............................................................................ 81
3-11 SDRAM Three-Word Write Timing Diagram ............................................................................ 82
3-12 EMIF to SBSRAM Interface Block Diagram ............................................................................ 83
3-13 SBSRAM Six-Word Read Timing Diagram ............................................................................. 84
3-14 SBSRAM Six-Word Write Timing Diagram ............................................................................. 85
3-15 EMIF Global Control Register (GBLCTL) .............................................................................. 87
3-16 EMIF CE Space Control Register (CECTL) ............................................................................ 88
3-17 EMIF SDRAM Control Register (SDCTL) .............................................................................. 90
3-18 EMIF SDRAM Timing Register (SDTIM) ............................................................................... 91
3-19 EMIF SDRAM Extension Register (SDEXT) ........................................................................... 92
List of Tables
1-1 Differences Between the C62x/C67x and C64x EMIF ................................................................ 14
1-2 TMS320C6000 EMIF SDRAM Commands ............................................................................ 15
1-3 Truth Table for SDRAM Commands .................................................................................... 16
1-4 TMS320C6000 SDRAM Signal Descriptions .......................................................................... 17
1-5 TMS320C6000 SDRAM Interface Summary ........................................................................... 18
1-6 TMS320C6000 SBSRAM Operating Speeds .......................................................................... 24
1-7 TMS320C6000 SBSRAM Signal Descriptions ......................................................................... 25
1-8 TMS320C6000 SBSRAM Interface Summary ......................................................................... 25
1-9 Asynchronous Interface Signal Descriptions ........................................................................... 26
1-10 TMS320C6000 ASRAM Interface Summary ........................................................................... 28
1-11 EMIF Output Clock (ECLKOUTn) Operation ........................................................................... 38
2-1 TMS320C620x/C670x EMIF Interface Signal Descriptions ........................................................... 45
2-2 Addressable Memory Ranges ............................................................................................ 45
2-3 TMS320C620x/C670x DSP Compatible SDRAM ...................................................................... 48
2-4 Example C620x/C670x SDRAM Interface with Unused SDRAM Address Pins ................................... 48
2-5 Byte Address-to-EA Mapping for SDRAM RAS and CAS ............................................................ 50
2-6 Implied SDRAM Configuration by MRS Command .................................................................... 52
2-7 SDRAM Timing Parameters .............................................................................................. 53
2-8 Byte Address to EA Mapping for Asynchronous Memory Widths.................................................... 58
2-9 EMIF Prioritization of Memory Requests ................................................................................ 59
2-10 EMIF Registers for C620x/C670x DSP .................................................................................. 60
2-11 EMIF Global Control Register (GBLCTL) Field Descriptions ........................................................ 62
2-12 EMIF CE Space Control Register (CECTL) Field Descriptions ...................................................... 63
2-13 EMIF SDRAM Control Register (SDCTL) Field Descriptions ......................................................... 65
2-14 EMIF SDRAM Timing Register (SDTIM) Field Descriptions ......................................................... 66
3-1 TMS320C621x/C671x EMIF Interface Signal Descriptions ........................................................... 70
3-2 Addressable Memory Ranges ............................................................................................ 71
3-3 TMS320C621x/C671x DSP Compatible SDRAM ...................................................................... 74
3-4 Byte Address-to-EA Mapping for 8-, 16-, and 32-Bit Interface ....................................................... 77
3-5 Implied SDRAM Configuration by MRS Command .................................................................... 78
3-6 SDRAM Timing Parameters .............................................................................................. 80
3-7 Recommended Values for Command-to-Command Parameters .................................................... 80
3-8 SBSRAM in Linear Burst Mode .......................................................................................... 83
3-9 EMIF Prioritization of Memory Requests ................................................................................ 86
3-10 EMIF Registers for C621x/C671x DSP .................................................................................. 86
3-11 EMIF Global Control Register (GBLCTL) Field Descriptions ........................................................ 87
3-12 EMIF CE Space Control Register (CECTL) Field Descriptions ..................................................... 89
3-13 EMIF SDRAM Control Register (SDCTL) Field Descriptions ........................................................ 90
3-14 EMIF SDRAM Timing Register (SDTIM) Field Descriptions ........................................................ 91
3-15 EMIF SDRAM Extension Register (SDEXT) Field Descriptions ..................................................... 92
4-1 TMS320C64x EMIFA Bus Widths ........................................................................................ 94
4-2 TMS320C64x EMIF Interface Signal Descriptions .................................................................... 96
4-3 Addressable Memory Ranges ............................................................................................ 97
4-4 TMS320C64x DSP Compatible SDRAM .............................................................................. 100
4-5 Byte Address-to-EA Mapping for 8-, 16-, 32-, 64-Bit Interface ..................................................... 103
4-6 Implied SDRAM Configuration by MRS Command .................................................................. 105
4-7 SDRAM Timing Parameters ............................................................................................. 106
4-8 Recommended Values for Command-to-Command Parameters .................................................. 106
4-9 Programmable Synchronous Pins ...................................................................................... 109
Overview
This chapter provides an overview and describes the common operation of the external memory interface
(EMIF) in the digital signal processors (DSPs) of the TMS320C6000™ DSP family. For operation and
registers unique in the TMS320C620x/C670x™ EMIF, see Chapter 2. For operation and registers unique
in the TMS320C621x/C671x™ EMIF, see Chapter 3. For operation and registers unique in the
TMS320C64x™ EMIF, see Chapter 4.
1.1 Overview
The external memory interfaces (EMIFs) of all C6000 devices support a glueless interface to a variety of
external devices, including:
• Pipelined synchronous-burst SRAM (SBSRAM)
• Synchronous DRAM (SDRAM)
• Asynchronous devices, including SRAM, ROM, and FIFOs
• An external shared-memory device
Table 1-1 summarizes the differences between the C6000 EMIFs.
(1)
TMS320C621x/C671x/C64x DSP only.
(2)
TMS320C64x DSP only.
Clock(A)
CEx
BE[3:0]
EA[15:2]
SDA10
SDRAS
SDCAS
SDWE
A Clock = SDCLK for C6201/C6701 DSP.
= CLKOUT2 for all C620x/C670x DSP, except C6201/C6701 DSP.
= ECLKOUT for C621x/C671x DSP.
= ECLKOUT1 for C64x DSP.
Figure 1-2. TMS320C6000 SDRAM Deactivate All Banks (DCAB) Command Timing Diagram
DCAB
Clock(A)
CEx
BE[3:0]
EA[15:2]
SDA10(B)
SDRAS
SDCAS
SDWE
Figure 1-3. TMS320C621x/C671x and TMS320C64x SDRAM Deactivate Single Bank (DEAC) Command
Timing Diagram
DEAC
Clock(A)
CE
BE[3:0]
EA[21:13] Bank
EA12(B)
EA[11:2]
ED[31:0]
SDRAS
SDCAS
SDWE
Figure 1-4. TMS320C6000 SDRAM Activate (ACTV) Command Before an SDRAM Write Timing Diagram
ACTV Write Write Write
Clock(A)
CEx
ED[31:0] D1 D2 D3
SDRAS
SDCAS
SDWE
(1)
For C64x DSP, SBSRAM control signals are renamed as SADS/SRE, SOE, and SWE, respectively.
(2)
For C64x DSP, SBSRAM interface can run off of either ECLKOUT1 or ECLKOUT2.
(1)
This column applies to all C620x/C670x devices, except C6201/C6701 DSP.
(2)
The C6712/C6712C DSP interfaces to 8-bit and 16-bit SBSRAM only.
(3)
The ECLKOUTn used is selected by the SNCCLK bit in CESEC.
EMIF SRAM
CEn CS
AOE OE
AWE R/W
EA[N+2:2](A) A[N:0]
ED[31:0] D[31:0]
BE[3:0] UB[1:0], LB[1:0]
ARE
VDD
ARDY
A For C64x EMIFA, EA[N + 3:3] is used; for EMIFB, EA[N + 1:1] is used.
EMIF ROM
CE1 CS
AOE OE
EA[N + 2:2](A) A[N:0]
ED[7:0] D[7:0]
ARE
VDD
ARDY
A For C64x EMIFA, EA[N + 3:3] is used; for EMIFB, EA[N + 1:1] is used.
EMIF ROM
CE1 CS
AOE OE
EA[N + 2:2](A) A[N:0]
ED[15:0] D[15:0]
ARE
VDD
ARDY
A For C64x EMIFA, EA[N + 3:3] is used; for EMIFB, EA[N + 1:1] is used.
EMIF ROM
CE1 CS
AOE OE
EA[N + 2:2](A) A[N:0]
ED[31:0] D[31:0]
ARE
VDD
ARDY
A For C64x EMIFA, EA[N + 3:3] is used; for EMIFB, EA[N + 1:1] is used.
Although the C620x/C670x EMIF ROM can be interfaced at any of the CE spaces, it is often used at CE1
because that space can be configured for widths of less than 32 bits. See Section 2.6 for more details.
The C621x/C671x EMIF and C64x EMIF allow widths of less than 32 bits on any CE space, as shown in
the MTYPE description of CECTL. The asynchronous interface signals on the C621x/C671x EMIF and
C64x EMIF are similar to the C6201 EMIF, except that the signals have been combined with the SDRAM
and SBSRAM memory interface. It has also been enhanced to allow for longer read hold time, and the
8-bit and 16-bit interface modes have been extended to include writable asynchronous memories, instead
of ROM devices. To avoid bus contention, a programmable turnaround time (TA) also allows you to
control the minimum number of cycles between a read followed by a write (same or different CE spaces),
or between reads from different CE spaces.
CE(B)
CE(C)
BE[3:0] BE
EA[21:2] Address
ED[31:0] Read D
AOE
ARE
AWE
ARDY
A Clock = CLKOUT1 for C620x/C670x DSP.
= ECLKOUT for C621x/C671x DSP.
= ECLKOUT1 for C64x DSP.
B CE waveform for C620x/C670x DSP.
C CE waveform for C621x/C671x DSP and C64x DSP.
CE(B)
CE(C)
BE[3:0]
Á
Á
BE1 BE2
Á
Á
Á Á
EA[21:2] A1 A2
ED[31:0](D)
AOE
Á D1 D2
Á
ARE
AWE
ARDY
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
Setup Programmed strobe extended Hold CE hold
2 5 2 1 6
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
latched
CLKOUT1
CE
BE[3:0] BE
EA[21:2] Address
ED[31:0] D
AOE
ARE
AWE
ARDY
CE
BE[3:0] BE
Á ÁÁ
Á ÁÁ
Á ÁÁ
EA[21:2] Address
ED[31:0]
AOE
ÁÁÁ D
ARE
AWE
ARDY
CE
BE[3:0] BE
Á ÁÁ
Á ÁÁ
Á ÁÁ
EA[21:2] Address
ED[31:0]
AOE
ÁÁÁ D
ARE
AWE
ARDY
Note: There is no mechanism to ensure that the external device does not attempt to drive the bus
indefinitely. You should be aware of system-level issues, such as refresh, that you may need
to perform.
During host requests, the refresh counters within the EMIF continue to log refresh requests; however, no
refresh cycles can be performed until bus control is again granted to the EMIF when the HOLD input
returns to the inactive level. You can prevent an external hold by setting the NOHOLD bit in GBLCTL.
0
CPU/6
ECLKOUT1
EMIF input clock
CPU/4
ECLKIN
/2
ECLKIN_SEL
ECLKOUT2
/4
0
TMS320C620x/C670x EMIF
This chapter describes the operation and registers of the EMIF in the TMS320C620x/C670x DSP. For
operation and registers unique to the TMS320C621x/C671x EMIF, see Chapter 3. For operation and
registers unique to the TMS320C64x™ EMIF, see Chapter 4.
2.1 Overview
The C620x/C670x EMIF services requests of the external bus from four requestors:
• On-chip program memory controller that services CPU program fetches
• On-chip data memory controller that services CPU data fetches
• On-chip direct-memory access (DMA) controller
• External shared-memory device controller (using EMIF arbitration signals)
If multiple requests arrive simultaneously, the EMIF prioritizes them and performs the necessary number
of operations. A block diagram of the C620x/C670x DSP is shown in Figure 2-1. The C620x/C670x EMIF
has a 32-bit data bus interface.
Program
Internal Program
Access/Cache
Controller Memory
EMIF
Instruction Decode
DMA Bus
Test
Data Path A Data Path B
A Register File B Register File In-Circuit
Interrupt Emulation
Selector
L1 S1 M1 D1 D2 M2 S2 L2 Inter-
rupt
Control
HPI/
Expansion Bus/
PCI
Internal Data
Boot Data Access Memory
Direct Memory Access Configuration Controller
Controller (DMA)
Power Down
PLL Logic
(1) Not all peripherals exist on all C620x/C670x devices. Refer to the device-specific datasheet for the peripheral
set.
CLKOUT1
EMIF
CLKOUT2
ED[31:0]
EA[21:2] Shared by
all external
CE[3:0] interfaces
DMA
controller BE[3:0]
ARDY
AOE Asynchronous
control
ARE
Data
AWE
memory
controller SSADS
SSOE SBSRAM
SSWE control
Program SSCLK
memory SDRAS
controller
SDCAS
SDWE SDRAM
control
SDA10
SDCLK
Control HOLD Bus hold
registers
HOLDA interface
EMIF CLKOUT1
DMA CLKOUT2
controller
ED[31:0]
EA[21:2] Shared by
all external
CE[3:0]
interfaces
BE[3:0]
Data
ARDY
memory
controller AOE Asynchronous
ARE control
AWE
SDCAS/SSADS
Program SDRAS/SSOE Synchronous
memory SDWE/SSWE control
controller Control
registers SDA10
EMIF 16M-bit
CEn CS SDRAM
Clock(A) CLK
SDRAS RAS
SDCAS CAS
SDWE WE
VCC CKE
BE[3:0] DQM[3:0]
EA[13] A[11]
SDA10 A[10]
EA[11:2] A[9:0]
ED[31:0] D[31:0]
Table 2-4. Example C620x/C670x SDRAM Interface with Unused SDRAM Address Pins
Addressable
Max Devices/ Space Column Row Bank Pre-
SDRAM Size B W D CE (MBytes) Address Address Select charge
128M bit 4 ×16 2M 2 16M (2) SDRAM A8-A0 A11-A0 BA1-BA0 A10
(3)
(1)
B = Banks; W = Width; D = Depth
(2)
Due to column and row address size limitations, not all of the memory space in the larger memories is used. The actual usable address space is shown.
(3)
The number of available EMIF row address pins is less than the number of row address pins required by the SDRAM interface.
(4)
The number of available EMIF column address pins is less than the number of column address pins required by the SDRAM interface.
Table 2-5. Byte Address-to-EA Mapping for SDRAM RAS and CAS
EA EA EA EA SDA EA EA
Interface bus DRAM E A [21:17] 16 15 14 13 10 11 10 EA9 EA8 EA7 EA6 EA5 EA4 EA3 EA2
# of column
address bits width(1) Cmd(2) A 13 A 12 A 11 A 10 A9 A8 A7 A6 A5 A4 A3 A2 A1 A0
8 (SDWID = 1) 32 RAS (3) 23 22 21 20 19 18 17 16 15 14 13 12 11 10
(1)
The C620x/C670x EMIF only supports a 32-bit interface bus width
(2)
The RAS and CAS values indicate the bit of the byte address present on the corresponding EA pin during a RAS or CAS cycle.
(3)
L = Low; SDA10 is driven low during READ or WRT commands to disable autoprecharge.
(4)
Bit is internally latched during an ACTV command.
(5)
Reserved for future use. Undefined.
6 5 4 3 2 1 0
EA8 EA7 EA6 EA5 EA4 EA3 EA2
Read latency S/I Burst Length
011 0 000
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
Clock(A)
CEn
BE[3:0]
SDA10
SDRAS
SDCAS
SDWE
(1)
EMIF clock cycles = CLKOUT2 cycles.
Clock(A)
CEn
ÁÁ Á
ÁÁ Á
EA[15:2] CA1 CA2 CA3
ÁÁ Á
CAS latency = 3
ED[31:0]
SDA10
ÁÁ D1 D2 D3
Á
SDRAS
SDCAS
SDWE
A Clock = SDCLK for C6201/C6701 DSP.
= CLKOUT2 for all C620x/C670x DSP, except C6201/C6701 DSP.
Clock(A)
CEn
ED[31:0] D1 D2 D3
SDA10
SDRAS
SDCAS
SDWE
EMIF SSRAM/
SBSRAM
CEn CS
Clock(A) CLK
SSADS ADSC
VCC ADV
SSOE OE
SSWE WE
BE[3:0] BE[3:0]
EA[N+ 2:2] A[N:0]
ED[31:0] D[31:0]
VCC ADSP
Clock(A)
CEn
EA[21:2] A1 A2 A3 A4
ED[31:0] Q1 Q2 Q3 Q4
SSADS
SSOE
SSWE
A Clock = SSCLK for C6201/C6701 DSP.
= CLKOUT2 for all C620x/C670x DSP, except C6201/C6701 DSP.
CEn
EA[21:2] A1 A2 A3 A4
ED[31:0] D1 D2 D3 D4
SSADS
SSOE
SSWE
(1)
DMC = Data Memory Controller.
(2)
PMC = Program Memory Controller
15 12 11 10 9 8
Reserved(A) Reserved ARDY HOLD HOLDA
R/W-0 R/W-0 R/W-1 R/W-1 R-x R-x R-x R-x
7 6 5 4 3 2 1 0
NOHOLD SDCEN SSCEN CLK1EN CLK2EN SSCRT RBTR8 MAP
R/W-0 R/W-1 R/W-1 R/W-1 R/W-1 R/W-0 R/W-0 R-x
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset; -x = value is indeterminate after reset
(A) The reserved bit fields should always be written with their default values when modifying the GBLCTL. Writing a value other than the
default value to these fields may cause improper operation.
15 12 11 10 9 8
Reserved(A) Reserved ARDY HOLD HOLDA
R/W-0 R/W-0 R/W-1 R/W-1 R-x R-x R-x R-x
7 6 5 4 3 2 1 0
NOHOLD SDCEN SSCEN CLK1EN Reserved(A) RBTR8 MAP
R/W-0 R/W-1 R/W-1 R/W-1 R/W-1 R/W-0 R/W-0 R-x
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset; -x = value is indeterminate after reset
(A) The reserved bit fields should always be written with their default values when modifying the GBLCTL. Writing a value other than the
default value to these fields may cause improper operation.
15 14 13 8 7 6 4 3 2 1 0
Reserved RDSTRB — MTYPE Reserved RDHLD
R/W-0 R/W-11 1111 R/W-0 R/W-010 R/W-0 R/W-11
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
Table 2-12. EMIF CE Space Control Register (CECTL) Field Descriptions (continued)
Bit field symval Value Description
6-4 MTYPE 0-7h Memory type of the corresponding CE spaces.
ASYNC8 0 8-bit wide asynchronous interface.
ASYNC16 1h 16-bit-wide asynchronous interface.
ASYNC32 2h 32-bit-wide asynchronous interface.
SDRAM32 3h 32-bit-wide SDRAM.
SBSRAM32 4h 32-bit-wide SBSRAM.
- 5h-7h Reserved.
3-2 Reserved - 0 Reserved. The reserved bit location is always read as 0. A value written to this
field has no effect.
1-0 RDHLD OF(value) 0-3h Read hold width. Number of clock cycles that address (EA) and byte strobes (BE)
are held after read strobe rises. For asynchronous read accesses, this is also the
hold time of AOE after ARE rising.
15 12 11 0
TRC Reserved
R/W-1111 R/W-0
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
TMS320C621x/C671x EMIF
This chapter describes the operation and registers of the EMIF in the TMS320C621x/C671x DSP. For
operation and registers unique to the TMS320C620x/C670x EMIF, see Chapter 2. For operation and
registers unique to the TMS320C64x™ EMIF, see Chapter 4.
3.1 Overview
The C621x/C671x EMIF services requests of the external bus from two requestors:
• On-chip enhanced direct-memory access (EDMA) controller
• External shared-memory device controller
A block diagram of the C621x/C671x DSP is shown in Figure 3-1.
L1D Cache
Boot Configuration PLL
(1) Not all peripherals exist on all C621x/C671x devices. Refer to the device-specific datasheet for the peripheral
set.
EMIF
ECLKIN
ECLKOUT
ED[31:0](A)
EA[21:2] Shared by all ex-
CE[3:0] ternal interfaces
BE[3:0]
Enhanced
data memory ARDY
controller
AOE/SDRAS/SSOE MUXed
ARE/SDCAS/SSADS Async/SDRAM/SBSRAM
AWE/SDWE/SSWE control
HOLD
HOLDA
Control BUSREQ
registers
(1)
32-bit interface does not apply to C6712 DSP.
TMS320C621x/C671x DSP(A)
ED[31:24] ED[23:16] ED[15:8] ED[7:0]
32-bit device
16-bit device
big endian
16-bit device
little endian
8-bit 8-bit
device device
big endian little endian
TMS320C621x/C671x DSP(A)
ED[15:8] ED[7:0]
16-bit device
8-bit
device
Figure 3-5. TMS320C621x/C671x EMIF to 16-bit SRAM (Big Endian) Block Diagram
External clock
EMIF SRAM
ECLKIN
CEn CS
AOE OE
AWE R/W
EA[N + 2:2] A[N:0]
ED[31:16](A) D[15:0]
BE[3:2] B[1:0]
ARE
VDD
ARDY
A Does not apply to C6712/C6712C DSP, because ED[31:16] do not exist on C6712/C6712C DSP.
ECLKIN 16M-bit
EMIF
CEn CS SDRAM
ECLKOUT CLK
SDRAS RAS
SDCAS CAS
SDWE WE
VCC CKE
BE[3:0] DQM[3:0]
EA[13](A) A[11]
EA[12](A) A[10]
EA[11:2](A) A[9:0]
ED[31:0](A) D[31:0]
(1)
Legend: B = Banks; W = Width; D = Depth
(2)
Other SDRAM configurations are possible, if the number of column, row, and bank bits are supported by the C621x/C671x DSP.
(3)
The ׳2 Width does not apply to C6712/C6712C DSP.
Note: The + 2 term is appropriate for calculating the addressable space in terms of bytes for a 32
bit interface. If only 16 bits of the bus are populated then + 1 is used, and if only 8 bits of the
bus are populated the +0 is used.
Figure 3-7 details how a 32-bit logical address maps to the page register. For 16- or 8-bit interfaces, the
BE portion of the logical address is reduced to 1 bit for 16-bit SDRAM and 0 bits for 8-bit SDRAM. The
NCB/NRB/NBB (and page register) shift accordingly.
The C621x/C671x EMIF employs a random page replacement strategy when necessary. This occurs
when the total number of external SDRAM banks (not devices) is greater than 4, since the EMIF only
contains 4 page registers. This can occur when multiple CE spaces of SDRAM are used. When the
number of total banks of SDRAM is less than or equal to 4, the page replacement strategy is fixed, since
SDRAM requires that only 1 page can be open within a given bank. If the EMIF detects a page miss either
during an access, where a different page was previously accessed in the same CE space (fixed
replacement), or if a page must be closed within a different CE space to allow a page register to be
assigned for the current access (random replacement), the EMIF performs a DEAC command and starts a
new row access.
Figure 3-7. Logical Address-to-Page Register Mapping for 32-Bit Logical Address
3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
9 8 7 6 5 4 3 2 1 0
1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
(1) ncb = number of column address bits; nrb = number of row address bits; nbb = number of bank address bits.
Table 3-4. Byte Address-to-EA Mapping for 8-, 16-, and 32-Bit Interface
EA EA EA EA EA EA EA EA
[21:17] (1) 16 15 14 13 12 11 10 EA9 EA8 EA7 EA6 EA5 EA4 EA3 EA2
# of column Interface bus
address bits width DRAM Cmd A14 A13 A12 A11 A10 A9 A8 A7 A6 A5 A4 A3 A2 A1 A0
8 8 RAS 22 (2) 21 (2) 20 (2) 19 18 17 16 15 14 13 12 11 10 9 8
CAS Bank (2) L (3) L L 7 6 5 4 3 2 1 0
16 RAS 23 (2) 22 (2) 21 (2) 20 19 18 17 16 15 14 13 12 11 10 9
CAS Bank (2) L (3) L L 8 7 6 5 4 3 2 1
32 RAS 24 (2) 23 22 (2) 21 20 19 18 17 16 15 14 13 12 11 10
CAS Bank (2) L (3) L L 9 8 7 6 5 4 3 2
(2) (2) (2)
9 8 RAS 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9
CAS Bank (2) L (3) L 8 7 6 5 4 3 2 1 0
16 RAS 24 (2) 23 (2) 22 (2) 21 20 19 18 17 16 15 14 13 12 11 10
CAS Bank (2) L (3) L 9 8 7 6 5 4 3 2 1
32 RAS 25 (2) 24 (2) 23 (2) 22 21 20 19 18 17 16 15 14 13 12 11
CAS Bank (2) L (3) L 10 9 8 7 6 5 4 3 2
(2) (2) (2)
10 8 RAS 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10
CAS Bank (2) L (3) 9 8 7 6 5 4 3 2 1 0
16 RAS 25 (2) 24 (2) 23 (2) 22 21 20 19 18 17 16 15 14 13 12 11
CAS Bank (2) L (3) 10 9 8 7 6 5 4 3 2 1
(2) (2) (2)
32 RAS 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12
CAS Bank (2) L (3) 11 10 9 8 7 6 5 4 3 2
(1)
Reserved for future use. Undefined.
(2)
Bit may not be driven. The number of address bits driven during a RAS cycle is equal to the number of (row bits + bank-select
bits). During CAS cycle for READ or WRT command, only the bank select address bits (1 or 2 bits, controlled by SDBSZ) are
driven to valid values. The address bit(s) used are determined by the number of row address bits and number of bank address
bits.
(3)
Bit is internally latched during an ACTV command. L = Low; EA12 is driven low during READ or WRT commands to disable
autoprecharge.
Clock(A)
CEn
BE[3:0]
SDA10
SDRAS
SDCAS
SDWE
A Clock = ECLKOUT.
(1)
EMIF clock cycles = ECLKOUT cycles.
(1)
EMIF clock cycles = ECLKOUT cycles.
CEn
EA[21:13] Bank
ÁÁ Á
EA[11:2] Column
EA12
ÁÁ
ÁÁ Á
Á
ED[31:0](A)
CAS latency = 3 ÁÁ D1 D2 D3 D4
Á
SDRAS
SDCAS
SDWE
A ED[31:16] do not apply to C6712/C6712C DSP.
ECLKOUT
CEn
EA[21:13] Bank
EA[11:2] Column
Á Á
EA12
Á Á
SDRAM SDRAM SDRAM D4
Á Á
latches latches latches blocked by BEn high
D1 D2 D3
Á Á
ED[31:0](A) D1 D2 D3
SDRAS
SDCAS
SDWE
ECLKOUT CLK
CEn CS
ARE/SDCAS/SSADS ADSC
GND ADV
AOE/SDRAS/SSOE OE
AWE/SDWE/SSWE WE
BE[3:0] BE[3:0]
ED[31:0](A) D[31:0]
CE
ÁÁ Á
BE[3:0] BE1 BE2 BE3 BE4 BE5 BE6
EA[21:2] EA[4:2]=010b
ÁÁ EA[4:2]=100b
Á
ED[31:0](A)
ÁÁ D1 D2 D3 D4 D5 D6
Á
SSADS
SSOE
SSWE
A ED[31:16] do not apply to C6712/C6712C DSP.
Gaps may occur within a read burst due to other DMA activities. The following specific condition also
causes a gap in a read burst: when requesting a read from SBSRAM, a delay of one ECLKOUT cycle will
be observed. This only happens when reading a burst of (N נ4) + 1 elements from SBSRAM; where
N = 1, 2, 3, ... . In this case, the read is split into two separate bursts. The first (N נ4) elements will burst
continuously, followed by a delay of one ECLKOUT cycle, then followed by the last one element. For
example, when requesting a 13-word read from SBSRAM, the first 12 words will arrive in a burst, followed
by one ECLKOUT delay, then followed by the arrival of the thirteenth word. This behavior only affects
(N צnbsp;4) + 1 element reads from SBSRAM.
CEn
ED[31:0](A) D1 D2 D3 D4 D5 D6
SSADS
SSOE
SSWE
(1)
Refer to TMS320C6000 DSP Enhanced DMA (EDMA) Controller Reference Guide (SPRU234)for details on prioritization within
the EDMA.
15 12 11 10 9 8
Reserved(A) BUSREQ ARDY HOLD HOLDA
R/W-0 R/W-0 R/W-1 R/W-1 R-0 R-0 R-0 R-0
7 6 5 4 3 2 0
NOHOLD Reserved EKEN(B) CLK1EN(C) CLK2EN Reserved
R/W-0 R-1 R/W-1 R/W-1(C) R/W-1 R/W-0
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
(A)
The reserved bit fields should always be written with their default values when modifying the GBLCTL. Writing a value other than the
default value to these fields may cause improper operation.
(B)
Available on C6713, C6712C, and C6711C devices only; on other C621x/C671x devices, this field is reserved with R/W-1.
(C)
This bit is reserved on C6713, C6712C, and C6711C devices with R/W-0. Writing a value other than 0 to this bit may cause improper
operation.
(1)
For CSL implementation, use the notation EMIF_GBLCTL_field_symval.
(2)
ECLKOUT does not turn off/on glitch free via EKEN. See Section 1.9.
Table 3-11. EMIF Global Control Register (GBLCTL) Field Descriptions (continued)
(1) (1)
Bit field symval Value Description
4 CLK1EN Not on C6713, C6712C, and C6711C DSP: CLKOUT1 enable bit.On C6713,
C6712C, and C6711C DSP, this bit must be programmed to 0 for proper operation.
DISABLE 0 CLKOUT1 is held high.
ENABLE 1 CLKOUT1 is enabled to clock.
3 CLK2EN CLKOUT2 is enabled/disabled using SSCEN/SDCEN bits.
DISABLE 0 CLKOUT2 is held high.
ENABLE 1 CLKOUT2 is enabled to clock.
2-0 Reserved - 0 Reserved. The reserved bit location is always read as 0. A value written to this field
has no effect.
15 14 13 8 7 4 3 2 0
TA RDSTRB MTYPE Reserved RDHLD
R/W-11 R/W-11 1111 R/W-0010 R-0 R/W-011
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
15 12 11 0
TRC Reserved
R/W-1111 R/W-0
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
11 10 9 8 7 6 5 4 3 1 0
RD2DEAC RD2RD THZP TWR TRRD TRAS TCL
R/W-11 R/W-1 R/W-10 R/W-01 R/W-1 R/W-111 R/W-1
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
TMS320C64x EMIF
This chapter describes the operation and registers of the EMIF in the TMS320C64x™ DSP. For operation
and registers unique to the TMS320C620x/C670x EMIF, see Chapter 2. For operation and registers
unique to the TMS320C621x/C671x EMIF, see Chapter 3.
4.1 Overview
The C64x EMIF services requests of the external bus from two requestors:
• On-chip enhanced direct-memory access (EDMA) controller
• External shared-memory device controller
A block diagram of the C64x™ DSP is shown in Figure 4-1. The C64x EMIF offers additional flexibility by
replacing the SBSRAM mode with a programmable synchronous mode, which supports glueless interfaces
to the following:
• ZBT (zero bus turnaround) SRAM
• Synchronous FIFOs
• Pipeline and flow-through SBSRAM
The C64x DSP may have up to two EMIFs, EMIFA and EMIFB.
• EMIFA: Data bus width is device specific. See Table 4-1.
• EMIFB: 16-bit data bus interface.
EMIFB(B)
L1D Cache
Boot Configuration PLL
A Not all peripherals exist on all C64x devices. Refer to the device-specific datasheet for the peripheral set.
B Check the device-specific datasheet for the availability of EMIFA and/or EMIFB.
EMIF ECLKIN
ECLKOUT1
ECLKOUT2
ED(A) Shared by all ex-
EA(A) ternal interfaces
CE[3:0]
BE(A)
Enhanced
data memory ARDY
controller
SOE3
AOE/SDRAS/SOE MUXed
ARE/SDCAS/SADS/SRE Asynchronous/SDRAM/
AWE/SDWE/SWE synchronous memory control
HOLD
HOLDA
BUSREQ
Control PDT
registers SDCKE(B)
Internal
peripheral bus
A See Table 4-2 for ED, EA, CE, and BE pins on EMIFA and EMIFB.
B SDCKE applies to EMIFA only.
(1)
The x64 interface does not apply to the 32-bit EMIFA.
(2)
The x32 and x64 interfaces do not apply to EMIFB.
TMS320C64x EMIFA
64−bit device
32−bit device
16−bit device
8−bit device
TMS320C64x EMIFA
32−bit device
16−bit device
8−bit device
TMS320C64x EMIFB
ED[15:8] ED[7:0]
16−bit device
8−bit device
(1) ncb = number of column address bits; nrb = number of row address bits; nbb = number of bank address bits.
B
CE space V 1 nrb=11 ncb=9 E
B
CE space V nbb=2 nrb=11 ncb=9 E
B
CE space V 1 nrb=12 ncb=9 E
B
CE space V nbb=2 nrb=12 ncb=9 E
B
CE space V 1 nrb=13 ncb=9 E
B
CE space V nbb=2 nrb=13 ncb=9 E
B
CE space V 1 nrb=11 ncb=10 E
B
CE space V nbb=2 nrb=11 ncb=10 E
B
CE space V 1 nrb=12 ncb=10 E
B
CE space V nbb=2 nrb=12 ncb=10 E
B
CE space V 1 nrb=13 ncb=10 E
B
CE space nbb=2 nrb=13 ncb=10 E
(1) ncb = number of column address bits; nrb = number of row address bits; nbb = number of bank address bits.
Table 4-5. Byte Address-to-EA Mapping for 8-, 16-, 32-, 64-Bit Interface
EMIFB
EA EA EA EA EA EA EA EA EA EA EA EA EA EA EA EA EA EA EA EA
20 19 18 17 (1) 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
EMIFA
# of EA EA EA EA EA EA EA EA EA EA EA EA EA EA EA EA EA EA EA EA
column Interfac 22 21 20 19 (1) 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3
address e bus DRAM
bits width Cmd A 19 A 18 A 17 A 16 A 15 A 14 A 13 A 12 A 11 A 10 A9 A8 A7 A6 A5 A4 A3 A2 A1 A0
8 8 RAS L L L H/L 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8
CAS L L L H/L 23 (2) 22 (2) 21 (2) 20 (2) 19 (2) L (3) L L 7 6 5 4 3 2 1 0
16 RAS L L L H/L 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9
CAS L L L H/L 24 (2) 23 (2) 22 (2) 21 (2) 20 (2) L (3) L L 8 7 6 5 4 3 2 1
32 RAS L L L H/L 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10
CAS L L L H/L 25 (2) 24 (2) 23 (2) 22 (2) 21 (2) L (3) L L 9 8 7 6 5 4 3 2
64 RAS L L L H/L 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11
CAS L L L H/L 26 (2) 25 (2) 24 (2) 23 (2) 22 (2) L (3) L L 10 9 8 7 6 5 4 3
9 8 RAS L L L H/L 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9
CAS L L L H/L 24 (2) 23 (2) 22 (2) 21 (2) 20 (2) L (3) L 8 7 6 5 4 3 2 1 0
16 RAS L L L H/L 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10
CAS L L L H/L 25 (2) 24 (2) 23 (2) 22 (2) 21 (2) L (3) L 9 8 7 6 5 4 3 2 1
32 RAS L L L H/L 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11
CAS L L L H/L 26 (2) 25 (2) 24 (2) 23 (2) 22 (2) L (3) L 10 9 8 7 6 5 4 3 2
64 RAS L L L H/L 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12
CAS L L L H/L 27 (2) 26 (2) 25 (2) 24 (2) 23 (2) L (3) L 11 10 9 8 7 6 5 4 3
10 8 RAS L L L H/L 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10
CAS L L L H/L 25 (2) 24 (2) 23 (2) 22 (2) 21 (2) L (3) 9 8 7 6 5 4 3 2 1 0
16 RAS L L L H/L 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11
CAS L L L H/L 26 (2) 25 (2) 24 (2) 23 (2) 22 (2) L (3) 10 9 8 7 6 5 4 3 2 1
32 RAS L L L H/L 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12
CAS L L L H/L 27 (2) 26 (2) 25 (2) 24 (2) 23 (2) L (3) 11 10 9 8 7 6 5 4 3 2
64 RAS L L L H/L 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13
CAS L L L H/L 28 (2) 27 (2) 26 (2) 25 (2) 24 (2) L (3) 12 11 10 9 8 7 6 5 4 3
(1)
EA19(EMIFA) and EA17 (EMIFB) are used during ACTV to indicate non-PDT vs. PDT access. For non-PDT access, this bit is
1. For PDT access, this bit is 0 during ACTV.
(2)
Bit is internally latched during an ACTV command.
(3)
L=Low; logical address A10 is driven low during READ or WRT commands to disable autoprecharge.
Note: The EMIF SDCKE signal must be connected to the SDRAM CKE signal for proper SLFRFR
operation.
Figure 4-10. SDRAM Mode Register Set: MRS Command Timing Diagram
MRS
Clock(A)
CEn
BE[3:0]
SDA10
SDRAS
SDCAS
SDWE
A Clock = ECLKOUT1.
B For EMIFB, EA[14:1] are used.
(1)
EMIF clock cycles = ECLKOUT1 cycles.
(1)
EMIF clock cycles = ECLKOUT1 cycles.
CEn
EA[22:14](A) Bank
EA[12:3](A) Column
EA13(A)
ED[63:0](B) D1 D2 D3 D4
SDRAS
CAS Latency=3
SDCAS
SDWE
A For EMIFB: BE[1:0], EA[20:12], EA[10:1], EA11, and ED[15:0] are used.
B For 32-bit EMIFA: BE[3:0] and ED[31:0] are used.
ECLKOUT1
CEn
EA13(A) Row
ED[63:0](B) D1 D2 D3 D4
SDRAS
SDCAS
SDWE
A For EMIFB: BE[1:0], EA[20:12], EA[10:1], EA11, and ED[15:0] are used.
B For 32-bit EMIFA:BE[3:0] and ED[31:0] are used.
ECLKOUT(A) CLK
CEn CS
ARE/SDCAS/SADS/SRE ADSC
VCC ADV
AOE/SDRAS/SOE OE
AWE/SDWE/SWE WE
BE[3:0](B) BE[3:0]
EA[N+2:2](B) A[N:0]
ED[31:0](B) D[31:0]
ECLKOUTn
CEn
EA[22:3](A) A1 A2 A3 A4 A5 A6
RL = 2
ED[63:0](B) D1 D2 D3 D4 D5 D6
SADS
SOE
SWE
A For EMIFB: BE[1:0], EA[20:1], and ED[15:0] are used.
B For 32-bit EMIFA: BE[3:0] and ED[31:0] are used.
ECLKOUTn
CEn
EA[22:3](A) A1 A2 A3 A4 A5 A6
WL = 0
ED[63:0](B) D1 D2 D3 D4 D5 D6
SADS
SOE
SWE
A For EMIFB, BE[1:0], EA[20:1], and ED[15:0], respectively, are used instead.
B For 32-bit EMIFA: BE[3:0] and ED[31:0] are used.
Figure 4-16. EMIF to Zero Bus Turnaround (ZBT) SRAM Interface Block Diagram
External
clock
ECLKIN
ECLKOUTn(A) CLK
CEn CE
EA[all](B) A[N:0]
ED[63:0](B) D[63:0]
Figure 4-17. Zero Bus Turnaround (ZBT) SRAM Six-Element Write Timing Diagram
Write Write Write Write Write Write Deselect
ECLKOUTn
CEn
EA[all](A) A1 A2 A3 A4 A5 A6
WL = 2
ED[63:0](A) D1 D2 D3 D4 D5 D6
SADS
SOE
SWE
A Figure shows 64-bit interface. The MTYPE field selects the interface type to be 8-, 16-, 32-, or 64-bits wide.
For 32-bit interface, BE[3:0], EA[all], and ED[31:0] are used.
For 16-bit interface, BE[1:0], EA[all], and ED[15:0] are used.
Figure 4-18. Read and Write Synchronous FIFO Interface With Glue Block Diagram
Figure 4-19. Glueless Synchronous FIFO Read Interface in CE3 Space Block Diagram
Figure 4-21. Standard Synchronous FIFO Read Timing Diagram (CE0, CE1, or CE2)
Read Read Read Read Read Read
ECLKOUTn
EA[all](B) A1 A2 A3 A4 A5 A6
RL = 1
ED[63:0](B) D1 D2 D3 D4 D5 D6
SRE (RENEN = 1)
SOE
SOE3
SWE
A CEEXT = 0 for glueless synchronous FIFO interface. CEEXT = 1 for interface with glue.
B Figure shows 64-bit interface. The MTYPE field selects the interface type to be 8-, 16-, 32-, or 64-bits wide.
For 32-bit interface, BE[3:0], EA[all], and ED[31:0] are used.
For 16-bit interface, BE[1:0] , EA[all], and ED[15:0] are used.
Figure 4-22. Standard Synchronous FIFO Read Timing Diagram (CE3 only)
Read Read Read Read Read Read
ECLKOUTn
EA[all](B) A1 A2 A3 A4 A5 A6
RL = 1
ED[63:0](B) D1 D2 D3 D4 D5 D6
SRE (RENEN = 1)
SOE
SOE3
SWE
A CEEXT = 0 for glueless synchronous FIFO interface. CEEXT = 1 for interface with glue.
B Figure shows 64-bit interface. The MTYPE field selects the interface type to be 8-, 16-, 32-, or 64-bits wide.
For 32-bit interface, BE[3:0] , EA[all], and ED[31:0] are used.
For 16-bit interface, BE[1:0] , EA[all], and ED[15:0] are used.
ECLKOUTn
CEn
EA[22:3](A) A1 A2 A3 A4 A5 A6
WL = 0
ED[31:0](A) D1 D2 D3 D4 D5 D6
SRE (RENEN = 1)
SOE or SOE3
SWE
Figure 4-24. First Word Fall Through (FWFT) Synchronous FIFO Read Timing Diagram
Read/D1 Read/D2 Read/D3 Read/D4 Read/D5 Read/D6
latched latched latched latched latched latched
ECLKOUTn
CEn (CEEXT = 0)
CEn (CEEXT = 1)
EA[all](A) A1 A2 A3 A4 A5 A6
ED[63:0](A) D1 D2 D3 D4 D5 D6
RL = 0
SRE (RENEN = 1)
SOE or SOE3
SWE
(1)
Refers to the maximum bus width of the EMIF and not the size of the transfer.
During a PDT transfer, the EMIF drives PDTA active and PDTDIR to its appropriate state. Activation of
PDTA signals that a PDT transfer controls the bus, while the state of the PDTDIR denotes the type of
transfer, either a read (high) or write (low) to memory.
For a non-PDT transfer to SDRAM:
• PDT is inactive
• PDTA is high
• PDTDIR is not used
For a non-PDT transfer to asynchronous or programmable synchronous memory:
• PDT is inactive
• PDTA functions as an address bit
• PDTDIR functions as an address bit
ECLKOUT1
CEn
ED[63:0](B) D1 D2 D3 D4
SDRAS
SDCAS
SDWE
PDTA
PDTDIR
PDT (PDTWL = 0)
PDT (PDTWL = 1)
PDT (PDTWL = 2)
PDT (PDTWL = 3)
A For EMIFB, BE[1:0], EA[16:12], EA[10:1], EA11, and ED[15:0], respectively, are used.
B For 32-bit EMIFA:BE[3:0] and ED[31:0] are used.
Figure 4-26 shows the glueless synchronous FIFO interface for a PDT write transaction. When the
glueless interface is implemented, SDRAM must be the only memory type present in the system. This is
because the glueless interface uses PDTA to generate the output enable (OE) to the FIFO. If the system
includes a memory type other than SDRAM, the upper EMIF address bit used to generate PDTA (EA17,
EA18, or EA19 depending on the EMIF data bus interface), will be utilized (see Table 4-3, page
Table 4-3). In this setup, PDT generates the read enable (REN) to the FIFO. Program PDT latency as
follows:
• FWFT FIFO: PDTWL = 0
• Standard FIFO: PDTWL = 1
Figure 4-27 shows the timing diagram for a glueless PDT write transaction to a synchronous FIFO. Note,
the PDT and REN waveforms differ between the standard FIFO interface and the FWFT FIFO interface.
Figure 4-28 and Figure 4-29 show a PDT write interface with glue to a FWFT FIFO. Figure 4-30 and
Figure 4-31 show a PDT write interface with glue to a standard FIFO. Each of these systems uses
external logic to shape the PDT signal to generate the appropriate control inputs to the FIFOs. For both
systems, PDTWL should be programmed to 1. These systems are not restricted to SDRAM only, any
combination of memory types is allowed.
Figure 4-26. Case A: Glueless PDT Write Interface From Synchronous FIFO Block Diagram
ECLKIN
CEn CS SDRAM(A)
ECLKOUT1 CLK
SDRAS RAS
SDCAS CAS
SDWE WE
EMIFA
SDCKE CKE
BE[7:0] DQM[7:0]
EA[18:3] A[15:0]
PDTA (EA19)
ED[63:0] D[63:0]
PDTD
RCLK
REN Synchronous
OEN FIFO
Q[63:0]
ECLKOUT1
CEn
ED[63:0](B) D1 D2 D3 D4
SDRAS
SDCAS
SDWE
PDTA
PDT
(PDTWL = 0
FWFT FIFO)
PDT
(PDTWL = 1,
STD FIFO)
OE
REN
FIFO (PDTWL = 0,
inputs FWFT FIFO)
REN
(PDTWL = 1,
STD FIFO)
A For EMIFB, BE[1:0], EA[16:12], EA[10:1], EA11, and ED[15:0], respectively, are used.
B For 32-bit EMIFA: BE[3:0] and ED[31:0] are used.
Figure 4-28. Case B: PDT Write Interface From FWFT FIFO With Glue Block Diagram
SDRAM or
non-SDRAM
CS
ECLKIN
CEy
CEn CS
ECLKOUT1 CLK
SDRAS RAS
SDCAS CAS
SDRAM
EMIFA SDWE WE
SDCKE CKE
BE[7:0] DQM[7:0]
EA[18:3] A[15:0]
ED[63:0] D[63:0]
PDT
RCLK
FWFT
Q D REN
FIFO
OE
Q[63:0]
D-FLOP
Figure 4-29. Case B: PDT Write Transfer From FWFT FIFO With Glue Timing Diagram
ACTV/PDT_OPEN WRITE
ECLKOUT
CEn
ED[63:0](B) D1 D2 D3 D4
SDRAS
SDCAS
SDWE
PDT
OE
FIFO
inputs REN
A For EMIFB, BE[1:0], EA[16:12], EA[10:1], EA11, and ED[15:0], respectively, are used.
B For 32-bit EMIFA:BE[3:0] and ED[31:0] are used.
Figure 4-30. Case C: PDT Write Interface From Standard FIFO With Glue Block Diagram
SDRAM or
non-SDRAM
CS
ECLKIN
CEy
CEn CS
ECLKOUT1 CLK
SDRAS RAS
SDCAS CAS
EMIFA SDWE SDRAM
WE
SDCKE CKE
BE[7:0] DQM[7:0]
EA[18:3] A[15:0]
ED[63:0] D[63:0]
PDT
Q D
RCLK
REN Standard
D-FLOP OE FIFO
Q[63:0]
Figure 4-31. Case C: PDT Write Transfer From Standard FIFO With Glue Timing Diagram
ACTV/PDT_OPEN WRITE
ECLKOUT
CEn
ED[63:0](B) D1 D2 D3 D4
SDRAS
SDCAS
SDWE
PDT
OE
FIFO
inputs
REN
A For EMIFB, BE[1:0], EA[16:12], EA[10:1], EA11, and ED[15:0], respectively, are used.
B For 32-bit EMIFA: BE[3:0] and ED[31:0] are used.
CEn
ED[63:0](B) D1 D2 D3 D4
SDRAS
SDCAS
SDWE
PDTA
PDTDIR
PDT
(PDTRL = 0)
PDT
(PDTRL = 1)
PDT
(PDTRL = 2)
PDT
(PDTRL = 3)
A For EMIFB, BE[1:0], EA[16:12], EA[10:1], EA11, and ED[15:0], respectively, are used.
B For 32-bit EMIFA: BE[3:0] and ED[31:0] are used.
Figure 4-33. Case D: Glueless PDT Read Interface to Synchronous FIFO Block Diagram
ECLKIN
CEn CS
ECLKOUT1 CLK
SDRAS RAS
SDCAS CAS
SDRAM
SDWE WE
EMIFA
SDCKE CKE
BE[7:0] DQM[7:0]
EA[18:3] A[15:0]
ED[63:0] D[63:0]
PDT
WCLK
WEN Synchronous
Q[63:0] FIFO
Figure 4-34. Case D: Glueless PDT Read Transfer to Synchronous FIFO Timing Diagram
Read data latched
Read data latched
Read data latched
ACTV/PDT_OPEN Read Read data
latched
ECLKOUT
CEn
ED[63:0](B) D1 D2 D3 D4
SDRAS
SDCAS
SDWE
PDT
FIFO WEN
input
A For EMIFB,BE[1:0] , EA[16:12], EA[10:1], EA11, and ED[15:0], respectively, are used.
B For 32-bit EMIFA:BE[3:0] and ED[31:0] are used.
Figure 4-35. Case E: PDT Read and Write Interface With Multiple FIFOs Block Diagram
SDRAM or
non-SDRAM
CS
ECLKIN
CEy
CEn CS
ECLKOUT1 CLK
SDRAS RAS
SDCAS CAS
SDRAM
SDWE WE
EMIFA
SDCKE CKE
BE[7:0] DQM[7:0]
EA[18:3] A[15:0]
PDTDIR (EA20)
ED[63:0] D[63:0]
PDT
RCLK
Direction REN Synchronous
detect FIFO
OEN
Dir Q[63:0]
Demux and
signal WCLK
generation
WEN Synchronous
FIFO
Q[63:0]
Figure 4-36. Case E: PDT Write Transfer with Read and Write FIFOs in the System (FWFT FIFO) Timing
Diagram
WRITE
ACTV/PDT_OPEN
ECLKOUT
CEn
ED[63:0](A) D1 D2 D3 D4
PDT
PDTDIR
OE
REN
WEN
Figure 4-37. Case E: PDT Read Transfer with Read and Write FIFOs in the System (FWFT FIFO) Timing
Diagram
Read data latched
Read data latched
Read data latched
ACTV/PDT_OPEN Read Read data
latched
ECLKOUT
CEn
ED[63:0](A) D1 D2 D3 D4
PDT
PDTDIR
WEN
OE
REN
Table 4-12. Limitations on the Number of Additional Peripherals for a PDT Transfer
Number of Unused Valid Address Bits Number of Additional Peripherals Possible
0 0
1 2
2 4
3 8
4 16
(1)
Refer to TMS320C6000 DSP Enhanced DMA (EDMA) Controller Reference Guide (SPRU234)for details on prioritization within
the EDMA.
15 14 13 12 11 10 9 8
Reserved BRMODE Reserved BUSREQ ARDY HOLD HOLDA
R/W-0 R/W-1 R-0 R-0 R-0 R-0 R-0
7 6 5 4 3 2 0
NOHOLD EK1HZ EK1EN CLK4EN CLK6EN Reserved
R/W-0 R/W-1 R/W-1 R/W-1 R/W-1 R/W-0
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
(1)
For CSL implementation, use the notation EMIFA_GBLCTL_field_symval or EMIFB_GBLCTL_field_symval.
(2)
ECLKOUT2 rate should only be changed once during EMIF initialization from the default (1/4x) to either 1/2x or 1x.
(3)
ECLKOUTn does not turn off/on glitch free via EKnEN or via EKnHZ. See Section 1.9.
Table 4-16. EMIF Global Control Register (GBLCTL) Field Descriptions (continued)
(1) (1)
Bit field symval Value Description
9 HOLD HOLD input bit.
LOW 0 HOLD input is low. External device requesting EMIF.
HIGH 1 HOLD input is high. No external request pending.
8 HOLDA HOLDA output bit.
LOW 0 HOLDA output is low. External device owns EMIF.
HIGH 1 HOLDA output is high. External device does not own EMIF.
7 NOHOLD External NOHOLD enable bit.
DISABLE 0 No hold is disabled. Hold requests via the HOLD input are acknowledged via the
HOLDA output at the earliest possible time.
ENABLE 1 No hold is enabled. Hold requests via the HOLD input are ignored.
6 EK1HZ (3) ECLKOUT1 high-impedance control bit.
CLK 0 ECLKOUT1 continues clocking during Hold (if EK1EN = 1).
HIGHZ 1 ECLKOUT1 is in high-impedance state during Hold.
5 EK1EN (3) ECLKOUT1 enable bit.
DISABLE 0 ECLKOUT1 is held low.
ENABLE 1 ECLKOUT1 is enabled to clock.
(4)
4 CLK4EN CLKOUT4 enable bit. CLKOUT4 pin is muxed with GP1 pin. Upon exiting reset,
CLKOUT4 is enabled and clocking. After reset, CLKOUT4 may be configured as
GP1 via the GPIO enable register (GPEN).
DISABLE 0 CLKOUT4 is held high.
ENABLE 1 CLKOUT4 is enabled to clock.
3 CLK6EN (4) CLKOUT 6 enable bit. CLKOUT6 pin is muxed with GP2 pin. Upon exiting reset,
CLKOUT6 is enabled and clocking. After reset, CLKOUT6 may be configured as
GP2 via the GPIO enable register (GPEN).
DISABLE 0 CLKOUT6 is held high.
ENABLE 1 CLKOUT6 is enabled to clock.
2-0 Reserved - 0 Reserved. The reserved bit location is always read as 0. A value written to this
field has no effect.
(4)
Applies to EMIFA only.
15 14 13 8 7 4 3 2 0
TA RDSTRB MTYPE WRHLDMSB RDHLD
R/W-11 R/W-11 1111 R/W-0 R/W-0 R/W-011
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
Table 4-17. EMIF CE Space Control Register (CECTL) Field Descriptions (continued)
(1) (1)
Bit field symval Value Description
(3)
7-4 MTYPE 0-Fh Memory type of the corresponding CE spaces.
ASYNC8 0 8-bit-wide asynchronous interface.
ASYNC16 1h 16-bit-wide asynchronous interface.
ASYNC32 2h 32-bit-wide asynchronous interface.
SDRAM32 3h 32-bit-wide SDRAM.
SYNC32 4h 32-bit-wide programmable synchronous memory.
- 5h-7h Reserved.
SDRAM8 8h 8-bit-wide SDRAM.
SDRAM16 9h 16-bit-wide SDRAM.
SYNC8 Ah 8-bit-wide programmable synchronous memory.
SYNC16 Bh 16-bit-wide programmable synchronous memory.
ASYNC64 Ch 64-bit-wide asynchronous interface.
SDRAM64 Dh 64-bit-wide SDRAM.
SYNC64 Eh 64-bit-wide programmable synchronous memory.
- Fh Reserved.
3 WRHLDMSB OF(value) 0-1 Write hold width MSB is the most-significant bit of write hold.
2-0 RDHLD OF(value) 0-7h Read hold width. Number of clock cycles (2) that address (EA) and byte strobes
(BE) are held after read strobe rises. For asynchronous read accesses, this is
also the hold time of AOE after ARE rising.
(3)
32-bit and 64-bit interfaces (MTYPE=0010b, 0011b, 0100b, 1100b, 1101b, 1110b) do not apply to C64x EMIFB.
15 7 6 5 4 3 2 1 0
Reserved SNCCLK RENEN CEEXT SYNCWL SYNCRL
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-10
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
Table 4-18. EMIF CE Space Secondary Control Register (CESEC) Field Descriptions
(1) (1)
Bit field symval Value Description
31-7 Reserved - 0 Reserved. The reserved bit location is always read as 0. A value written to this
field has no effect.
6 SNCCLK Synchronization clock selection bit.
ECLKOUT1 0 Control/data signals for this CE space are synchronized to ECLKOUT1.
ECLKOUT2 1 Control/data for this CE space are synchronized to ECLKOUT2.
5 RENEN Read Enable enable bit.
ADS 0 ADS mode. SADS/SRE signal acts as SADS signal. SADS goes active for reads,
writes, and deselect. Deselect is issued after a command is completed if no new
commands are pending from the EDMA. (used for SBSRAM or ZBT SRAM
interface).
READ 1 Read enable mode. SADS/SRE signal acts as SRE signal. SRE goes low only for
reads. No deselect cycle is issued. (used for FIFO interface).
4 CEEXT CE extension register ENABLE BIT.
INACTIVE 0 CE goes inactive after the final command has been issued (not necessarily when
all the data has been latched).
ACTIVE 1 On read cycles, the CE signal will go active when SOE goes active and will stay
active until SOE goes inactive. The SOE timing is controlled by SYNCRL. (used for
synchronous FIFO reads with glue, where CE gates OE).
3-2 SYNCWL 0-3h Synchronous interface data write latency.
0CYCLE 0 0 cycle read latency.
1CYCLE 1h 1 cycle read latency.
2CYCLE 2h 2 cycle read latency.
3CYCLE 3h 3 cycle read latency.
1-0 SYNCRL 0-3h Synchronous interface data read latency.
0CYCLE 0 0 cycle read latency.
1CYCLE 1h 1 cycle read latency.
2CYCLE 2h 2 cycle read latency.
3CYCLE 3h 3 cycle read latency.
(1)
For CSL implementation, use the notation EMIFA_CESEC_field_symval or EMIFB_CESEC_field_symval.
15 12 11 2 1 0
TRC Reserved SLFRFR(A)
R/W-1111 R/W-0 R/W-0
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
(A) This bit only applies to EMIFA; this bit is reserved on EMIFB.
Table 4-19. EMIF SDRAM Control Register (SDCTL) Field Descriptions (continued)
(1) (1)
Bit field symval Value Description
24 INIT Initialization bit. This bit forces initialization of all SDRAM present. Reading this bit
returns an undefined value.
NO 0 No effect.
YES 1 Initialize SDRAM in each CE space configured for SDRAM. The CPU should initialize
all of the CE space control registers and SDRAM extension register before setting
INIT = 1.
23-20 TRCD (2) OF(value) 0-Fh Specifies the tRCD value of the SDRAM in EMIF clock cycles. (3)
TRCD = tRCD / tcyc - 1
19-16 TRP OF(value) 0-Fh Specifies the tRC value of the SDRAM in EMIF clock cycles. (3)
TRP = tRP / tcyc - 1
15-12 TRC OF(value) 0-Fh Specifies the tRC value of the SDRAM in EMIF clock cycles. (3)
TRC = tRC / tcyc - 1
11-1 Reserved - 0 Reserved. The reserved bit location is always read as 0. A value written to this field
has no effect.
0 SLFRFR Self-refresh mode, if SDRAM is used in the system:
DISABLE 0 Self-refresh mode is disabled.
ENABLE 1 Self-refresh mode is enabled.
If SDRAM is not used:
DISABLE 0 General-purpose output, SDCKE = 1.
ENABLE 1 General-purpose output, SDCKE = 0.
(2)
TRCD specifies the number of ECLKOUT1 cycles between an ACTV command and a READ or WRT command (CAS). The specified
separation is maintained while driving write data one cycle earlier.
(3)
tcyc refers to the EMIF clock period, which is equal to ECLKOUT1 period for C64x DSP.
11 10 9 8 7 6 5 4 3 1 0
RD2DEAC RD2RD THZP TWR TRRD TRAS TCL
R/W-11 R/W-1 R/W-10 R/W-01 R/W-1 R/W-111 R/W-1
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
Table 4-21. EMIF SDRAM Extension Register (SDEXT) Field Descriptions (continued)
(1) (1)
Bit field symval Value Description
0 TCL OF(value) Specified CAS latency of the SDRAM in ECLKOUT cycles. (2)
0 CAS latency = 2 ECLKOUT cycles.
1 CAS latency = 3 ECLKOUT cycles.
Table 4-22. EMIF Peripheral Device Transfer Control Register (PDTCTL) Field Descriptions
Bit Field Value Description
31-4 Reserved 0 Reserved. The reserved bit location is always read as 0. A value written to this field has no effect.
3-2 PDTWL 0-3h PDT write latency bits.
0 PDT signal is asserted 0 cycles prior to the data phase of a write transaction.
1h PDT signal is asserted 1 cycle prior to the data phase of a write transaction.
2h PDT signal is asserted 2 cycles prior to the data phase of a write transaction.
3h PDT signal is asserted 3 cycles prior to the data phase of a write transaction.
1-0 PDTRL 0-3h PDT read latency bits.
0 PDT signal is asserted 0 cycles prior to the data phase of a read transaction.
1h PDT signal is asserted 1 cycle prior to the data phase of a read transaction.
2h PDT signal is asserted 2 cycles prior to the data phase of a read transaction.
3h PDT signal is asserted 3 cycles prior to the data phase of a read transaction.
Revision History
Table A-1 lists the changes made since the previous version of this document.