vendor.lattice_machxo2: add back as a compatibility shim.
authorwhitequark <whitequark@whitequark.org>
Sun, 21 Jun 2020 17:28:01 +0000 (17:28 +0000)
committerwhitequark <whitequark@whitequark.org>
Sun, 21 Jun 2020 17:28:01 +0000 (17:28 +0000)
nmigen/vendor/lattice_machxo2.py [new file with mode: 0644]
nmigen/vendor/lattice_machxo_2_3l.py

diff --git a/nmigen/vendor/lattice_machxo2.py b/nmigen/vendor/lattice_machxo2.py
new file mode 100644 (file)
index 0000000..1d01506
--- /dev/null
@@ -0,0 +1,11 @@
+import warnings
+
+from .lattice_machxo_2_3l import LatticeMachXO2Platform
+
+
+__all__ = ["LatticeMachXO2Platform"]
+
+
+# TODO(nmigen-0.4): remove
+warnings.warn("instead of vendor.lattice_machxo2, use vendor.lattice_machxo_2_3l",
+              DeprecationWarning, stacklevel=2)
index bc7343b697fc5a9a4d88b1c7c141f068b32c3d3b..0eb348e10187db4dd4c6c8dfe47d7619dad61443 100644 (file)
@@ -6,6 +6,7 @@ from ..build import *
 
 __all__ = ["LatticeMachXO2Platform", "LatticeMachXO3LPlatform"]
 
+
 # MachXO2 and MachXO3L primitives are the same. Handle both using
 # one class and expose user-aliases for convenience.
 class LatticeMachXO2Or3LPlatform(TemplatedPlatform):
@@ -396,5 +397,6 @@ class LatticeMachXO2Or3LPlatform(TemplatedPlatform):
 
     # CDC primitives are not currently specialized for MachXO2/MachXO3L.
 
+
 LatticeMachXO2Platform = LatticeMachXO2Or3LPlatform
 LatticeMachXO3LPlatform = LatticeMachXO2Or3LPlatform