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

PCIe Avalon-MM-to PCI Express Address Translation Table

Altera_Forum
Honored Contributor II
1,653 Views

Hi 

 

I am using Altera PCIe compiler with dynamic translation table with 8 MB per page. I connect BAR 0 to CRA with base address of 0x0000_0000.  

 

I write the physical address of host system 0x0022_0000 into PCIe CRA address at 0x1000 via BAR 0, the data read back is 0x0000_0000. 

When I write the physical address of host system 0x0088_0000 into PCIe CRA 0x1008, the data read back is 0x0080_0000.  

 

May I know why? Can’t be any address of physical address? How does the translation table partition the physical memory?  

Is the physical memory is divided equally according the page size if use the altera PCIe? 

 

Thanks
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
491 Views

I am having almost exactly the same problem.  

 

Did you resolve this and, if so, how?  

 

Thanks
0 Kudos
Altera_Forum
Honored Contributor II
491 Views

Yes, i have solved it. Basically, you just have to refer to Avalon-MM-to-PCI Express Address Translation. It answers all the questions asked.

0 Kudos
Altera_Forum
Honored Contributor II
491 Views

OK we got it. We made a mess of the writing. It works now.  

 

BAR + CRA BASE + REG OFFSET worked.
0 Kudos
Reply