Altera_Forum
Honored Contributor
19 years agoDDR interface that spans multiple sides of the device
I recently wanted to create a 144-bit DDR2 interface that would span across the top and bottom of a Stratix II device. The Altera MegaWizard allows you to do this but that probably isn't the best way to go. You may run into timing problems within the controller since it has to feed logic on opposite sides of the device.
Instead, build two 72-bit controllers and share the PLLs to minimize resources used. Send both the same commands, but only half of your total local data to each. Since the DDR/DDR2 controller IP core is deterministic, if you put two cores in parallel and fed them the same commands they will execute them at the same point in time. With regards to refresh, the core simply has a counter that counts down to zero. Once it hits zero it complete the command it is executing (if any) and then does the refresh. Once complete it resets the counter and off it goes again. So in conclusion 2 cores that are parameterized in the same way, running at the same frequency and given the same commands should always stay in step with each other.