7191 - CertusPro-NX/PCI Express: How to set APB address of PCI Express IP?

7191 - CertusPro-NX/PCI Express: How to set APB address of PCI Express IP?

Solution:

For the APB interface, the c_apb_paddr_i is as described in the UG.
Example of an address:



Decode the readdata (c_apb_prdata_o) as below:
[15:8] = Bus number
[7:3] = Device number
[2:0] = 3’b0 (Function number)
add the 0x28000 base address to the CSR base address as shown below:
CSR base address + base offset address + register offset address
0xC5200000  + 28000 + 0x4 = 0xC5228004