Altera_Forum
Honored Contributor
8 years agoNios II read/write to DDR3 using external DDR3 controller
Hello,
I have a simple Qsys SoC consisting of Nios II, on-chip memory, 2 Avalon MM masters and 1 AXI slave. I have connected the Nios II to each Avalon MM master (one for read and one for write, would this be correct?), and these 2 Avalon MM masters are in turn connected to the AXI slave. The AXI interface of the AXI slave is exported and is connected to the external DDR3 controller. It is not possible to add the DDR3 controller in Qsys because I am working with a preset framework (I am using a Pico M506 board with a Stratix V FPGA). I have two questions: 1. If I want to Nios II to write data to DDR3, what memory address should I reference? Should it be from the address range of the write Avalon MM master? I have tried this but it seems to not be working. 2. Am I right to use two Avalon MM masters? I find that the cp port of an Avalon MM master can only be connected to one of either read_cp or write_cp of the AXI slave. I have attached an image of the Qsys SoC.https://alteraforum.com/forum/attachment.php?attachmentid=14459&stc=1 Thanks.