Community
cancel
Showing results for 
Search instead for 
Did you mean: 
prateekmohan
Beginner
98 Views

PCIe Avalon-MM to DDR Write and Read

Hello,

I am looking at methods to write/read from DDR from my host system through the PCIe Hard IP block.

I have looked at some examples for Qsys projects using the PCIe Hard IP block and I understand how the rxm_bar<n> Avalon interfaces are used to access memory mapped regions through PCIe:

prateekmohan_0-1619569529680.png

I also saw an example of the "External Memory Interface IP" to see how to communicate to DDR and I see the Avalon Slave on the EMIF is used to read/write to DDR:

prateekmohan_1-1619569609928.png

However, I cannot connect the rxm_bar<n> interface directly to this because the EMIF provides its own clock for the transactions to the EMIF. 

I guess I can add a dual port Avalon-MM in between both of these (so the PCIe Hard Macro writes to the Avalon-MM memory and perhaps a DMA reads data from this BRAM and pushes it to the EMIF) but I was not sure if there was a more elegant way of doing this. I think others must have done something similar to this, so I wanted to ask if there was another way. 

Thanks!

Prateek

0 Kudos
4 Replies
Deshi_Intel
Moderator
82 Views

Hi,


You can find Intel FPGA PCIe reference design that interact with either DDR3 or DDR4 memory in below link. Feel free to check it out


Goto the left panel -> click on "user guides and reference designs" -> click on "reference designs" tab


Thanks.


Regards,

dlim


prateekmohan
Beginner
76 Views

Hi Deshi,

I looked at the guides and it refers to using an "Avalon-MM DMA" type interface for the PCIe when communicating from PCIe to DDR. I'm looking for something that is only an "Avalon-MM" interface. Is there a reference design that perhaps deals with only "Avalon-MM" interfaces?

I am also trying to download the "Arria 10 Reference Design" link on page 3 from this PDF: PCI Express DMA Reference Design Using External Memory (intel.com)

However, I get a "File Not Found" error

Deshi_Intel
Moderator
54 Views

HI,


The AN708 was older ref design doc that pointed to old outdated Altera ref design link that doesn't exist in Intel system anymore.


If you are looking for A10 PCIe example design, you can generate the example design directly from PCIe IP. Check out below link


Thanks.


Regards,

dlim


prateekmohan
Beginner
48 Views

Hi Deshi,

How can I go about replacing it with DDR3 or DDR4? I believe the only way is to use the IP Block "External Memory Interface IP" right?

The problem with this IP is that it provides its own clock reference to the master that is writing/reading to it. However, the PCIe Avalon Master is running off the PCIe clock (250 MHz). So how would I replace the BRAM with a DDR3 or DDR4?

Reply