Allow LiteX builder to be used without LiteDRAM.
This commit is contained in:
parent
a738739acd
commit
8b955e6f69
|
@ -14,9 +14,16 @@ import struct
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
from litex.build.tools import write_to_file
|
from litex.build.tools import write_to_file
|
||||||
from litex.soc.integration import cpu_interface, soc_core, soc_sdram
|
from litex.soc.integration import cpu_interface, soc_core
|
||||||
|
|
||||||
|
try:
|
||||||
|
from litex.soc.integration import soc_sdram
|
||||||
|
from litedram.init import get_sdram_phy_c_header
|
||||||
|
except ImportError:
|
||||||
|
class soc_sdram:
|
||||||
|
class SoCSDRAM:
|
||||||
|
pass
|
||||||
|
|
||||||
from litedram.init import get_sdram_phy_c_header
|
|
||||||
|
|
||||||
__all__ = ["soc_software_packages", "soc_directory",
|
__all__ = ["soc_software_packages", "soc_directory",
|
||||||
"Builder", "builder_args", "builder_argdict"]
|
"Builder", "builder_args", "builder_argdict"]
|
||||||
|
|
Loading…
Reference in New Issue