vendor.lattice_machxo2: add back as a compatibility shim.

This commit is contained in:
whitequark 2020-06-21 17:28:01 +00:00
parent 0aef5f4d48
commit 706eb03e6b
2 changed files with 13 additions and 0 deletions

11
nmigen/vendor/lattice_machxo2.py vendored Normal file
View file

@ -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)

View 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