vendor.lattice_machxo2: add back as a compatibility shim.
This commit is contained in:
parent
0aef5f4d48
commit
706eb03e6b
11
nmigen/vendor/lattice_machxo2.py
vendored
Normal file
11
nmigen/vendor/lattice_machxo2.py
vendored
Normal 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)
|
2
nmigen/vendor/lattice_machxo_2_3l.py
vendored
2
nmigen/vendor/lattice_machxo_2_3l.py
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue