soc/add_pcie: Add optional data_width parameter.

This commit is contained in:
Florent Kermarrec 2023-07-20 10:35:10 +02:00
parent 69c6fa11d2
commit f6da67fb38
2 changed files with 4 additions and 2 deletions

View File

@ -43,6 +43,7 @@
- liteeth/core/icmp : Added fifo_depth parameter on LiteEthICMPEcho.
- gen/fhdl/verilog : Improved signal sort by name instead of duid to improve reproducibility.
- litedram/frontend/dma : Added last generation on end of DMA for LiteDRAMDMAReader.
- litepcie/frontend/dma : Added optional integrated data-width converter and data_width parameters to simplify integration/user logic.
[> Changed
----------

View File

@ -1970,7 +1970,7 @@ class LiteXSoC(SoC):
self.sata_phy.crg.cd_sata_rx.clk)
# Add PCIe -------------------------------------------------------------------------------------
def add_pcie(self, name="pcie", phy=None, ndmas=0, max_pending_requests=8, address_width=32,
def add_pcie(self, name="pcie", phy=None, ndmas=0, max_pending_requests=8, address_width=32, data_width=None,
with_dma_buffering = True, dma_buffering_depth=1024,
with_dma_loopback = True,
with_dma_synchronizer = False,
@ -2036,7 +2036,8 @@ class LiteXSoC(SoC):
with_synchronizer = with_dma_synchronizer,
with_monitor = with_dma_monitor,
with_status = with_dma_status,
address_width = address_width
address_width = address_width,
data_width = data_width,
)
self.add_module(name=f"{name}_dma{i}", module=dma)
self.msis[f"{name.upper()}_DMA{i}_WRITER"] = dma.writer.irq