soc/add_pcie: Automatically set Endpoint's endianness to PHY's endianness.

This commit is contained in:
Florent Kermarrec 2021-10-12 15:38:39 +02:00
parent f93b6b9f27
commit 5e3e78f760
1 changed files with 1 additions and 1 deletions

View File

@ -1695,7 +1695,7 @@ class LiteXSoC(SoC):
# Endpoint. # Endpoint.
self.check_if_exists(f"{name}_endpoint") self.check_if_exists(f"{name}_endpoint")
endpoint = LitePCIeEndpoint(phy, max_pending_requests=max_pending_requests) endpoint = LitePCIeEndpoint(phy, max_pending_requests=max_pending_requests, endianness=phy.endianness)
setattr(self.submodules, f"{name}_endpoint", endpoint) setattr(self.submodules, f"{name}_endpoint", endpoint)
# MMAP. # MMAP.