Skip to content

Commit 14929b9

Browse files
wanda-phiwhitequark
authored andcommitted
vendor: add AMDPlatform as an alias for XilinxPlatform.
Fixes #1349.
1 parent 994fa81 commit 14929b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

amaranth/vendor/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# Keep this list sorted alphabetically.
66
__all__ = [
77
"AlteraPlatform",
8+
"AMDPlatform",
89
"GowinPlatform",
910
"IntelPlatform",
1011
"LatticeECP5Platform",
@@ -39,7 +40,7 @@ def __getattr__(name):
3940
if name in ("SiliconBluePlatform", "LatticeICE40Platform"):
4041
from ._siliconblue import SiliconBluePlatform
4142
return SiliconBluePlatform
42-
if name == "XilinxPlatform":
43+
if name in ("XilinxPlatform", "AMDPlatform"):
4344
from ._xilinx import XilinxPlatform
4445
return XilinxPlatform
4546
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")

0 commit comments

Comments
 (0)