Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gateware.platform: add apollo_gateware_phy to LUNAApolloPlatform #269

Merged
merged 1 commit into from
Jul 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions luna/gateware/platform/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,17 @@ def port_sharing(self, phy_name):
sharing = getattr(self, "apollo_port_sharing", {})
return sharing.get(phy_name, None)


@property
def apollo_gateware_phy(self):
""" Returns the USB PHY for Apollo gateware. """

sharing = getattr(self, "apollo_port_sharing", {})
if len(sharing) == 0:
return self.default_usb_connection
return list(sharing.keys())[0]


def toolchain_program(self, products, name):
""" Programs the relevant LUNA board via its sideband connection. """

Expand Down