PCIe with DMA Memory Sizing
Background :
I am currently using the Arria 10 GX Devkit in preparation for a similar custom board. I have adapted the PCIe Avalon-MM DMA example which Intel provides and come up with a custom design which fits my needs in the moment. I am using Quartus 19.3 pro.
Problem :
The memory sector sizes which are returned when I run 'lspci' do not match those which I set in Platform Designer.
I have attached "pd_component" which shows the overall design of the platform designer component.
I have also attached "lspci_output" which shows what the command returns when the devkit is slotted in.
The table below shows the settings I input into platform designer and the lspci reported size
| Bar# | Data Width | Total Memory(B) | Base | End | lspci |
| 2 | 32 | 32000 | 0x0000 | 0x7cff | 32K |
| 3 | 8 | 5000 | 0x8000 | 0x9387 | 64K |
| 4 | 32 | 4000 | 0xa000 | 0xaf9f | 64K |
| 5 | 256 | 1024 | 0xb000 | 0xb3ff | 64K |
Question :
How to I ensure the 'lspci' command returns the correct sizes of these memory sectors?
Thank you for your help.