Skip to content

Commit

Permalink
example: uniformize kc705/kcu105 examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-digital committed Jun 12, 2020
1 parent c84605e commit 761f8fb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions examples/kc705.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,19 @@ def __init__(self, platform, nlanes=1):

# PCIe -------------------------------------------------------------------------------------
# PHY
self.submodules.pcie_phy = S7PCIEPHY(platform, platform.request("pcie_x4"),
self.submodules.pcie_phy = USPCIEPHY(platform, platform.request("pcie_x" + str(nlanes)),
data_width = 128,
bar0_size = 0x20000)
bar0_size = 0x20000
)
self.pcie_phy.add_timing_constraints(platform)
platform.add_false_path_constraints(self.crg.cd_sys.clk, self.pcie_phy.cd_pcie.clk)
self.add_csr("pcie_phy")

# Endpoint
self.submodules.pcie_endpoint = LitePCIeEndpoint(self.pcie_phy,
endianness="big",
max_pending_requests=8
)
endianness = "big",
max_pending_requests = 8
)

# Wishbone bridge
self.submodules.pcie_bridge = LitePCIeWishboneBridge(self.pcie_endpoint,
Expand Down
2 changes: 1 addition & 1 deletion examples/kcu105.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def __init__(self, platform, sys_clk_freq):
self.sync += If(self.rst.re, rst_delay.wait.eq(1))

# PLL
self.submodules.pll = pll = USPLL()
self.submodules.pll = pll = USPLL(speedgrade=-2)
self.comb += pll.reset.eq(rst_delay.done)
pll.register_clkin(platform.request("clk125"), 125e6)
pll.create_clkout(self.cd_sys, sys_clk_freq)
Expand Down
Empty file modified litepcie/phy/uspciephy.py
100755 → 100644
Empty file.

0 comments on commit 761f8fb

Please sign in to comment.