Address Translation - 2.9 English

AXI Memory Mapped to PCI Express (PCIe) Gen2 v2.9 LogiCORE IP Product Guide (PG055)

Document ID
PG055
Release Date
2023-11-24
Version
2.9 English

The address space for PCIe is different than AXI address space. To access one address space from another address space requires an address translation process. On the AXI side, the bridge supports mapping to PCIe on up to six 32-bit or 64-bit AXI base address registers (BARs). The generics used to configure the BARs follow.

C_AXIBAR_NUM, C_AXIBAR_n, C_AXIBAR_HIGHADDR_n, C_AXIBAR2PCIEBAR_n and C_AXIBAR_AS_n

where n represents an AXIBAR number from 0 to 5. The bridge for PCIe supports mapping on up to three 64-bit BARs for PCIe. The generics used to configure the BARs are:

C_ PCIEBAR_NUM, C_PCIEBAR2AXIBAR_n and C_PCIEBAR_LEN_n

where n represents a particular BAR number for PCIe from 0 to 2 .

Note: The C_INCLUDE_BAROFFSET_REG generic allows for dynamic address translation. When this parameter is set to one, the AXIBAR2PCIEBAR_n translation vectors can be changed by using software.

Four examples follow:

Example 1 (32-bit PCIe Address Mapping) demonstrates how to set up three 32-bit AXI BARs and translate the AXI address to a 32-bit address for PCIe.

Example 2 (64-bit PCIe Address Mapping) demonstrates how to set up three 64-bit AXI BARs and translate the AXI address to a 64-bit address for PCIe.

Example 3 demonstrates how to set up two 64-bit PCIe BARs and translate the address for PCIe to an AXI address.

Example 4 demonstrates how to set up a combination of two 32-bit AXI BARs and two 64 bit AXI BARs, and translate the AXI address to an address for PCIe.