Skip to content

Commit

Permalink
vendor: add AMDPlatform as an alias for XilinxPlatform.
Browse files Browse the repository at this point in the history
Fixes #1349.
  • Loading branch information
wanda-phi authored and whitequark committed May 7, 2024
1 parent 994fa81 commit 14929b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion amaranth/vendor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# Keep this list sorted alphabetically.
__all__ = [
"AlteraPlatform",
"AMDPlatform",
"GowinPlatform",
"IntelPlatform",
"LatticeECP5Platform",
Expand Down Expand Up @@ -39,7 +40,7 @@ def __getattr__(name):
if name in ("SiliconBluePlatform", "LatticeICE40Platform"):
from ._siliconblue import SiliconBluePlatform
return SiliconBluePlatform
if name == "XilinxPlatform":
if name in ("XilinxPlatform", "AMDPlatform"):
from ._xilinx import XilinxPlatform
return XilinxPlatform
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")

0 comments on commit 14929b9

Please sign in to comment.