Altera Arria V Hard IP for PCI Express User Manual
Page 95
Chapter 6: IP Core Architecture
6–21
Avalon-MM Bridge TLPs
December 2013
Altera Corporation
Arria V Hard IP for PCI Express
User Guide
specifies 32-bit or 64-bit PCI Express addressing for the translated address. Refer to
Figure 6–12 on page 6–22
. The most significant bits of the Avalon-MM address are
used by the system interconnect fabric to select the slave port and are not available to
the slave. The next most significant bits of the Avalon-MM address index the address
translation entry to be used for the translation process of MSB replacement.
For example, if the IP core is configured with an address translation table with the
following attributes:
■
Number of Address Pages
—16
■
Size of Address Pages
—1 MByte
■
PCI Express Address Size
—64 bits
then the values in
Figure 6–12
are:
■
N = 20 (due to the 1 MByte page size)
■
Q = 16 (number of pages)
■
M = 24 (20 + 4 bit page selection)
■
P = 64
In this case, the Avalon address is interpreted as follows:
■
Bits [31:24] select the TX slave module port from among other slaves connected to
the same master by the system interconnect fabric. The decode is based on the base
addresses assigned in Qsys.
■
Bits [23:20] select the address translation table entry.
■
Bits [63:20] of the address translation table entry become PCI Express address bits
[63:20].
■
Bits [19:0] are passed through and become PCI Express address bits [19:0].
The address translation table is dynamically configured at run time. The address
translation table is implemented in memory and can be accessed through the CRA
slave module. This access mode is useful in a typical PCI Express system where
address allocation occurs after BIOS initialization.
For more information about how to access the dynamic address translation table
through the control register access slave, refer to the
Address Translation Table 0x1000–0x1FFF” on page 8–14
.
Figure 6–12
depicts the Avalon-MM-to-PCI Express address translation process. The
variables in
Figure 6–12
have the following meanings:
■
N—the number of pass-through bits (BAR specific)
■
M—the number of Avalon-MM address bits
■
P—the number of PCI Express address bits (32 or 64).
■
Q—the number of translation table entries