beautypg.com

Altera DDR SDRAM Controller User Manual

Page 57

background image

Chapter 3: Functional Description

3–21

Interfaces & Signals

© March 2009

Altera Corporation

DDR and DDR2 SDRAM Controller Compiler User Guide

1. The user logic requests the first write, by asserting the local_write_req signal,

and the size and address for this write. In this example, the request is a burst of
length 1 (2 on the DDR SDRAM side) to chip select 1. The local_ready signal is
asserted, which indicates that the controller has accepted this request, and the user
logic can request another read or write in the following clock cycle. If the
local_ready

signal was not asserted, the user logic must keep the write request,

size, and address signals asserted.

2. The user logic requests a second write to a sequential address, this time of size 2 (4

on the DDR SDRAM side). The local_ready signal remains asserted, which
indicates that the controller has accepted the request.

3. The controller requests the write data and byte enables for the first write from the

user logic. The write data and byte enables must be presented in the clock cycle
after the request. In this example, the controller also continues to request write
data for the subsequent writes. The user logic must be able to supply the write
data for the entire burst when it requests a write.

4. The user logic requests the third write to a different chip select. The controller is

able to buffer up to four requests so the local_ready signal stays high and the
request is accepted.

5. When it has issued the necessary bank activation command, the controller issues

the first two write requests sequentially to the memory device.

6. Even though no data is being written to memory, the ddr_dqs signal must

continue toggling for the entire length of the memory device's burst length (8 in
this example).

For the Avalon-MM interface you should present the address (local_addr), the
write data (local_wdtata), and the write request (local_write_req) signal to
the controller with reference to the memory clock (clk_to_sdram). The Avalon-MM
interface does not use local_wdata_req.

Reads

Figure 3–14 on page 3–22

shows three read requests of different sizes. The controller

allows you to use any burst length up to the maximum burst length set on the
memory device. For example, if you select burst length of 8 for your DDR SDRAM
memory, the controller allows bursts of length 1, 2, 3, and 4 (2, 4, 6, and 8 on the DDR
SDRAM side).

1

The concept is similar for DDR2 SDRAM although only burst lengths 1 and 2 (2 and 4
on the DDR2 SDRAM side) are available.

This manual is related to the following products: