vendor.xilinx_*: deprecate legacy Xilinx platform aliases.
authorwhitequark <whitequark@whitequark.org>
Fri, 8 Oct 2021 17:48:00 +0000 (17:48 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 31 Dec 2021 19:50:44 +0000 (19:50 +0000)
nmigen/vendor/xilinx_7series.py
nmigen/vendor/xilinx_spartan_3_6.py
nmigen/vendor/xilinx_ultrascale.py

index 85a3650e8323e103d06dede2656f3131f24aea40..df1b5d82f1c63fb36c752b3fba3760f16f26acf7 100644 (file)
@@ -1,5 +1,15 @@
+import warnings
+
 from .xilinx import XilinxPlatform
 
+
 __all__ = ["Xilinx7SeriesPlatform"]
 
+
 Xilinx7SeriesPlatform = XilinxPlatform
+
+
+# TODO(nmigen-0.4): remove
+warnings.warn("instead of nmigen.vendor.xilinx_7series.Xilinx7SeriesPlatform, "
+              "use nmigen.vendor.xilinx.XilinxPlatform",
+              DeprecationWarning, stacklevel=2)
index ced94ed72a86e24b55ab3e3539bfde8303eaf537..c55905f838b8f601fc3c1e4df0680bab4bb8a337 100644 (file)
@@ -1,6 +1,16 @@
+import warnings
+
 from .xilinx import XilinxPlatform
 
+
 __all__ = ["XilinxSpartan3APlatform", "XilinxSpartan6Platform"]
 
+
 XilinxSpartan3APlatform = XilinxPlatform
 XilinxSpartan6Platform = XilinxPlatform
+
+
+# TODO(nmigen-0.4): remove
+warnings.warn("instead of nmigen.vendor.xilinx_spartan_3_6.XilinxSpartan3APlatform and "
+              ".XilinxSpartan6Platform, use nmigen.vendor.xilinx.XilinxPlatform",
+              DeprecationWarning, stacklevel=2)
index 92aace042d20bc803342d84f42a65fc58cdd031e..ead8d93eaad781e3018cc4e89137b3d75759d2f1 100644 (file)
@@ -1,5 +1,15 @@
+import warnings
+
 from .xilinx import XilinxPlatform
 
+
 __all__ = ["XilinxUltraScalePlatform"]
 
+
 XilinxUltraScalePlatform = XilinxPlatform
+
+
+# TODO(nmigen-0.4): remove
+warnings.warn("instead of nmigen.vendor.xilinx_ultrascale.XilinxUltraScalePlatform, "
+              "use nmigen.vendor.xilinx.XilinxPlatform",
+              DeprecationWarning, stacklevel=2)