compat: Add Retro-Compat for litex.soc.cores.up5kspram (that has now moved to litex.soc.cores.ram).
This commit is contained in:
parent
f7f277548e
commit
ad63f8edc8
|
@ -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.")
|
#compat_notice("SoCSDRAM", date="2020-03-24", info="Switch to SoCCore/add_sdram/soc_core_args instead.")
|
||||||
from litex.compat import soc_sdram
|
from litex.compat import soc_sdram
|
||||||
sys.modules["litex.soc.integration.soc_sdram"] = 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
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
import sys
|
||||||
|
from litex.compat import add_compat
|
||||||
|
add_compat(__name__)
|
|
@ -1,2 +0,0 @@
|
||||||
# Retro-compatibility 2020-11-09, remove.
|
|
||||||
from litex.soc.cores.ram.lattice_ice40 import Up5kSPRAM
|
|
Loading…
Reference in New Issue