compat: Add Retro-Compat for litex.soc.cores.up5kspram (that has now moved to litex.soc.cores.ram).

This commit is contained in:
Florent Kermarrec 2021-03-24 13:34:47 +01:00
parent f7f277548e
commit ad63f8edc8
3 changed files with 7 additions and 2 deletions

View File

@ -33,3 +33,7 @@ def add_compat(location):
#compat_notice("SoCSDRAM", date="2020-03-24", info="Switch to SoCCore/add_sdram/soc_core_args instead.")
from litex.compat import soc_sdram
sys.modules["litex.soc.integration.soc_sdram"] = soc_sdram
elif location == "litex.soc.cores":
compat_notice("litex.soc.cores.up5kspram", date="2020-03-24", info="Switch to litex.soc.cores.ram.")
from litex.soc.cores import ram
sys.modules["litex.soc.cores.up5kspram"] = ram

View File

@ -0,0 +1,3 @@
import sys
from litex.compat import add_compat
add_compat(__name__)

View File

@ -1,2 +0,0 @@
# Retro-compatibility 2020-11-09, remove.
from litex.soc.cores.ram.lattice_ice40 import Up5kSPRAM