
Chapter 8: Timing Diagrams 8–7
DDR and DDR2 High-Performance Controllers II
June 2011 Altera Corporation External Memory Interface Handbook Volume 3
Section I. DDR and DDR2 SDRAM Controllers with ALTMEMPHY IP User Guide
The following sequence corresponds with the numbered items in Figure 8–3:
1. The user logic requests the first read by asserting
local_read_req
signal, and the
size and address for this read. In this example, the request is a burst length of 2 to a
local address
0x000000
. This local address is mapped to the following memory
address in full-rate mode:
mem_row_address = 0×0000
mem_col_address = 0×0000<<2 = 0×0000
mem_bank_address = 0×00
2. The controller issues the first read memory command and address signals to the
ALTMEMPHY megafunction for it to send to the memory device.
3. The controller asserts the
afi_doing_rd
signal to indicate to the ALTMEMPHY
megafunction the number of clock cycles of read data it must expect for the first
read. The ALTMEMPHY megafunction uses the
afi_doing_rd
signal to enable its
capture registers for the expected duration of memory burst.
4. The ALTMEMPHY megafunction issues the first read command to the memory
and captures the read data from the memory.
5. The ALTMEMPHY megafunction returns the first data read to the controller after
resynchronizing the data to the
phy_clk
domain, by asserting the
afi_rdata_valid
signal when there is valid read data on the
afi_rdata
bus.
6. The controller returns the first read data to the user by asserting the
local_rdata_valid
signal when there is valid read data on the
local_rdata
bus. If
the ECC logic is disabled, there is no delay between the
afi_rdata
and the
local_rdata
buses. If there is ECC logic in the controller, there is one or three clock
cycles of delay between the
afi_rdata
and
local_rdata
buses.
Comentarios a estos manuales