Skip to content

Commit

Permalink
Merge pull request #136 from enjoy-digital/gen4_rework
Browse files Browse the repository at this point in the history
Gen4 rework
  • Loading branch information
enjoy-digital authored May 6, 2024
2 parents 9809d75 + 662b78a commit 3c3c1fc
Show file tree
Hide file tree
Showing 24 changed files with 9 additions and 14 deletions.
8 changes: 4 additions & 4 deletions litepcie/phy/uspciephy.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,10 +411,10 @@ def add_sources(self, platform, phy_path=None, phy_filename=None):

verilog_path = os.path.join(os.path.abspath(os.path.dirname(__file__)), "xilinx_us")
platform.add_source(os.path.join(verilog_path, "axis_iff.v"))
platform.add_source(os.path.join(verilog_path, f"s_axis_rq_adapt_x{self.nlanes}.v"))
platform.add_source(os.path.join(verilog_path, f"m_axis_rc_adapt_x{self.nlanes}.v"))
platform.add_source(os.path.join(verilog_path, f"m_axis_cq_adapt_x{self.nlanes}.v"))
platform.add_source(os.path.join(verilog_path, f"s_axis_cc_adapt_x{self.nlanes}.v"))
platform.add_source(os.path.join(verilog_path, f"s_axis_rq_adapt_{self.pcie_data_width}b.v"))
platform.add_source(os.path.join(verilog_path, f"m_axis_rc_adapt_{self.pcie_data_width}b.v"))
platform.add_source(os.path.join(verilog_path, f"m_axis_cq_adapt_{self.pcie_data_width}b.v"))
platform.add_source(os.path.join(verilog_path, f"s_axis_cc_adapt_{self.pcie_data_width}b.v"))
platform.add_source(os.path.join(verilog_path, "pcie_us_support.v"))

# External Hard IP -----------------------------------------------------------------------------
Expand Down
13 changes: 5 additions & 8 deletions litepcie/phy/usppciephy.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,14 +416,11 @@ def add_sources(self, platform, phy_path=None, phy_filename=None):

verilog_path = os.path.join(os.path.abspath(os.path.dirname(__file__)), "xilinx_usp")
platform.add_source(os.path.join(verilog_path, "axis_iff.v"))

nvlanes = {"gen3": self.nlanes, "gen4": self.nlanes*2}[self.speed]

platform.add_source(os.path.join(verilog_path, f"s_axis_rq_adapt_x{nvlanes}.v"))
platform.add_source(os.path.join(verilog_path, f"m_axis_rc_adapt_x{nvlanes}.v"))
platform.add_source(os.path.join(verilog_path, f"m_axis_cq_adapt_x{nvlanes}.v"))
platform.add_source(os.path.join(verilog_path, f"s_axis_cc_adapt_x{nvlanes}.v"))


platform.add_source(os.path.join(verilog_path, f"s_axis_rq_adapt_{self.pcie_data_width}b.v"))
platform.add_source(os.path.join(verilog_path, f"m_axis_rc_adapt_{self.pcie_data_width}b.v"))
platform.add_source(os.path.join(verilog_path, f"m_axis_cq_adapt_{self.pcie_data_width}b.v"))
platform.add_source(os.path.join(verilog_path, f"s_axis_cc_adapt_{self.pcie_data_width}b.v"))
platform.add_source(os.path.join(verilog_path, "pcie_usp_support.v"))

# External Hard IP -----------------------------------------------------------------------------
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion litepcie/software/kernel/liteuart.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* LiteUART serial controller (LiteX) Driver
*
* Copyright (C) 2019-2020 Antmicro <www.antmicro.com>
* Copyright (C) 2024 John Simons <[email protected]>
*/

#include <linux/console.h>
Expand Down
1 change: 0 additions & 1 deletion litepcie/tlp/packetizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# This file is part of LitePCIe.
#
# Copyright (c) 2015-2023 Florent Kermarrec <[email protected]>
# Copyright (c) 2024 John Simons <[email protected]>
# SPDX-License-Identifier: BSD-2-Clause

from migen import *
Expand Down

0 comments on commit 3c3c1fc

Please sign in to comment.