FPGA Intellectual Property
PCI Express*, Networking and Connectivity, Memory Interfaces, DSP IP, and Video IP
6359 Discussions

relation between resync_clk and mem_clk in DDR2

Altera_Forum
Honored Contributor II
871 Views

Can anyone please tell me the phase relation between resync_clk and mem_clk in DDR2.

0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
193 Views

So you must be using the standard DDR2 core and not the high performance DDR2 core. I believe you have to manually specify the phase for the resync clock.  

 

The resync_clk is used as an interim capture clock between the DQS strobe and the mem_clk domain. The ideal phase depends on clock frequency as well as timing delays between the memory and FPGA. Ideally (providing maximum setup time between clock domains), it falls exactly at the midpoint between the DQS strobe and the 2nd mem_clk edge following the DQS strobe. 

 

____ ____ DQS ----________| |____| |____|----- ^----^DQS latch ____ ____ ____ ____ resync_clk _| |____| |____| |____| |_ ^resync latch ____ ____ ____ ____ mem_clk |____| |____| |____| |____ ^mem_clk latch  

 

Jake
0 Kudos
Reply