From ad63f8edc852084618ef0c47dfd1e4f9f6e06c19 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 24 Mar 2021 13:34:47 +0100 Subject: [PATCH] compat: Add Retro-Compat for litex.soc.cores.up5kspram (that has now moved to litex.soc.cores.ram). --- litex/compat/__init__.py | 4 ++++ litex/soc/cores/__init__.py | 3 +++ litex/soc/cores/up5kspram.py | 2 -- 3 files changed, 7 insertions(+), 2 deletions(-) delete mode 100644 litex/soc/cores/up5kspram.py diff --git a/litex/compat/__init__.py b/litex/compat/__init__.py index cdb97d75a..34e5cf2fb 100644 --- a/litex/compat/__init__.py +++ b/litex/compat/__init__.py @@ -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 diff --git a/litex/soc/cores/__init__.py b/litex/soc/cores/__init__.py index e69de29bb..1660b4cf5 100644 --- a/litex/soc/cores/__init__.py +++ b/litex/soc/cores/__init__.py @@ -0,0 +1,3 @@ +import sys +from litex.compat import add_compat +add_compat(__name__) diff --git a/litex/soc/cores/up5kspram.py b/litex/soc/cores/up5kspram.py deleted file mode 100644 index 64e9e0141..000000000 --- a/litex/soc/cores/up5kspram.py +++ /dev/null @@ -1,2 +0,0 @@ -# Retro-compatibility 2020-11-09, remove. -from litex.soc.cores.ram.lattice_ice40 import Up5kSPRAM