Skip to content

Commit

Permalink
examples/kc705: cleanup, enable bridge and generate csr.csv.
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-digital committed Apr 10, 2020
1 parent 0748af1 commit a65aab9
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions examples/kc705.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,12 @@ def __init__(self, platform, nlanes=1):
sys_clk_freq = int(125e6)

# SoCMini ----------------------------------------------------------------------------------
SoCMini.__init__(self, platform, sys_clk_freq, csr_data_width=32,
ident="LitePCIe example design", ident_version=True)
SoCMini.__init__(self, platform, sys_clk_freq,
csr_data_width = 32,
ident = "LitePCIe example design",
ident_version = True,
with_uart = True,
uart_name = "bridge")

# CRG --------------------------------------------------------------------------------------
self.submodules.crg = _CRG(platform, sys_clk_freq)
Expand All @@ -58,7 +62,7 @@ def __init__(self, platform, nlanes=1):
self.add_csr("pcie_phy")

# PCIe Endpoint ----------------------------------------------------------------------------
self.submodules.pcie_endpoint = LitePCIeEndpoint(self.pcie_phy)
self.submodules.pcie_endpoint = LitePCIeEndpoint(self.pcie_phy, endianness="big")

# PCIe Wishbone bridge ---------------------------------------------------------------------
self.submodules.pcie_bridge = LitePCIeWishboneBridge(self.pcie_endpoint)
Expand Down Expand Up @@ -105,7 +109,7 @@ def main():

platform = kc705.Platform()
soc = LitePCIeSoC(platform, nlanes=int(args.nlanes))
builder = Builder(soc, output_dir="build")
builder = Builder(soc, output_dir="build", csr_csv="csr.csv")
builder.build(build_name="kc705", run=args.build)
soc.generate_software_headers()

Expand Down

0 comments on commit a65aab9

Please sign in to comment.