Altera_Forum
Honored Contributor
14 years agohow to address DDR2 memory effectively
I'm currenly using the Altera HPC2 controller to access 4 x DDR2 (MT47H16M16 - 4 Meg x 16 x 4 banks). They all share the common access pins. (just think of it as one big memory with 64 bit data bus - 16 bit each x 4 = 64)
Row address: A[12:0] Bank address: BA[1:0] Column address: A[8:0] Total address bits: 24 When I put this through the Megawizard, it drops the lowest column address bit and I only have (22:0) which is 23 bits. I need to divide the memory up for 8 regions (7,6,5,...0) to store 2 frames, one current frame and one previous frame and each of which has 4 quadrants. The access sequence is: while writing the current frame quadrant 0 to memory region 4, I'm also reading out the previous frame quadrant 0 from memory region 0. And this is repeated alternatively. My plan is to use the address(22:20) to create this 8 memory regions of (19:0). My question is how to access the memory effectively to reduce the internal column/row/bank overhead cycles? Your comment or feedback is much appreciated.