targets/pcie: use 128-bit datapath and 8 max_pending_requests on pcie_x4 configurations.
This commit is contained in:
parent
2bb7fce5e3
commit
482d7a6b95
|
@ -137,7 +137,7 @@ class PCIeSoC(SoCCore):
|
||||||
# PCIe -------------------------------------------------------------------------------------
|
# PCIe -------------------------------------------------------------------------------------
|
||||||
# PHY
|
# PHY
|
||||||
self.submodules.pcie_phy = S7PCIEPHY(platform, platform.request("pcie_x4"),
|
self.submodules.pcie_phy = S7PCIEPHY(platform, platform.request("pcie_x4"),
|
||||||
data_width = 64,
|
data_width = 128,
|
||||||
bar0_size = 0x20000)
|
bar0_size = 0x20000)
|
||||||
self.pcie_phy.add_timing_constraints(platform)
|
self.pcie_phy.add_timing_constraints(platform)
|
||||||
platform.add_false_path_constraints(self.crg.cd_sys.clk, self.pcie_phy.cd_pcie.clk)
|
platform.add_false_path_constraints(self.crg.cd_sys.clk, self.pcie_phy.cd_pcie.clk)
|
||||||
|
@ -145,7 +145,7 @@ class PCIeSoC(SoCCore):
|
||||||
self.comb += platform.request("pcie_clkreq_n").eq(0)
|
self.comb += platform.request("pcie_clkreq_n").eq(0)
|
||||||
|
|
||||||
# Endpoint
|
# Endpoint
|
||||||
self.submodules.pcie_endpoint = LitePCIeEndpoint(self.pcie_phy)
|
self.submodules.pcie_endpoint = LitePCIeEndpoint(self.pcie_phy, max_pending_requests=8)
|
||||||
|
|
||||||
# Wishbone bridge
|
# Wishbone bridge
|
||||||
self.submodules.pcie_bridge = LitePCIeWishboneBridge(self.pcie_endpoint,
|
self.submodules.pcie_bridge = LitePCIeWishboneBridge(self.pcie_endpoint,
|
||||||
|
|
|
@ -116,14 +116,14 @@ class PCIeSoC(SoCCore):
|
||||||
# PCIe -------------------------------------------------------------------------------------
|
# PCIe -------------------------------------------------------------------------------------
|
||||||
# PHY
|
# PHY
|
||||||
self.submodules.pcie_phy = S7PCIEPHY(platform, platform.request("pcie_x4"),
|
self.submodules.pcie_phy = S7PCIEPHY(platform, platform.request("pcie_x4"),
|
||||||
data_width = 64,
|
data_width = 128,
|
||||||
bar0_size = 0x20000)
|
bar0_size = 0x20000)
|
||||||
self.pcie_phy.add_timing_constraints(platform)
|
self.pcie_phy.add_timing_constraints(platform)
|
||||||
platform.add_false_path_constraints(self.crg.cd_sys.clk, self.pcie_phy.cd_pcie.clk)
|
platform.add_false_path_constraints(self.crg.cd_sys.clk, self.pcie_phy.cd_pcie.clk)
|
||||||
self.add_csr("pcie_phy")
|
self.add_csr("pcie_phy")
|
||||||
|
|
||||||
# Endpoint
|
# Endpoint
|
||||||
self.submodules.pcie_endpoint = LitePCIeEndpoint(self.pcie_phy)
|
self.submodules.pcie_endpoint = LitePCIeEndpoint(self.pcie_phy, max_pending_requests=8)
|
||||||
|
|
||||||
# Wishbone bridge
|
# Wishbone bridge
|
||||||
self.submodules.pcie_bridge = LitePCIeWishboneBridge(self.pcie_endpoint,
|
self.submodules.pcie_bridge = LitePCIeWishboneBridge(self.pcie_endpoint,
|
||||||
|
|
|
@ -115,14 +115,14 @@ class PCIeSoC(SoCCore):
|
||||||
# PCIe -------------------------------------------------------------------------------------
|
# PCIe -------------------------------------------------------------------------------------
|
||||||
# PHY
|
# PHY
|
||||||
self.submodules.pcie_phy = S7PCIEPHY(platform, platform.request("pcie_x4"),
|
self.submodules.pcie_phy = S7PCIEPHY(platform, platform.request("pcie_x4"),
|
||||||
data_width = 64,
|
data_width = 128,
|
||||||
bar0_size = 0x20000)
|
bar0_size = 0x20000)
|
||||||
self.pcie_phy.add_timing_constraints(platform)
|
self.pcie_phy.add_timing_constraints(platform)
|
||||||
platform.add_false_path_constraints(self.crg.cd_sys.clk, self.pcie_phy.cd_pcie.clk)
|
platform.add_false_path_constraints(self.crg.cd_sys.clk, self.pcie_phy.cd_pcie.clk)
|
||||||
self.add_csr("pcie_phy")
|
self.add_csr("pcie_phy")
|
||||||
|
|
||||||
# Endpoint
|
# Endpoint
|
||||||
self.submodules.pcie_endpoint = LitePCIeEndpoint(self.pcie_phy)
|
self.submodules.pcie_endpoint = LitePCIeEndpoint(self.pcie_phy, max_pending_requests=8)
|
||||||
|
|
||||||
# Wishbone bridge
|
# Wishbone bridge
|
||||||
self.submodules.pcie_bridge = LitePCIeWishboneBridge(self.pcie_endpoint,
|
self.submodules.pcie_bridge = LitePCIeWishboneBridge(self.pcie_endpoint,
|
||||||
|
|
Loading…
Reference in New Issue