soc/add_pcie: expose max_pending_requests parameter.

Being able to configure it is useful to find resource usage/performance compromise.
This commit is contained in:
Florent Kermarrec 2021-01-26 10:59:10 +01:00
parent dd985cd1d0
commit ed1da7ed1e
1 changed files with 2 additions and 2 deletions

View File

@ -1569,7 +1569,7 @@ class LiteXSoC(SoC):
self.sata_phy.crg.cd_sata_rx.clk)
# Add PCIe -------------------------------------------------------------------------------------
def add_pcie(self, name="pcie", phy=None, ndmas=0):
def add_pcie(self, name="pcie", phy=None, ndmas=0, max_pending_requests=8):
assert self.csr.data_width == 32
assert not hasattr(self, f"{name}_endpoint")
@ -1579,7 +1579,7 @@ class LiteXSoC(SoC):
from litepcie.frontend.wishbone import LitePCIeWishboneMaster
# Endpoint
endpoint = LitePCIeEndpoint(phy, max_pending_requests=8)
endpoint = LitePCIeEndpoint(phy, max_pending_requests=max_pending_requests)
setattr(self.submodules, f"{name}_endpoint", endpoint)
# MMAP