Allow LiteX builder to be used without LiteDRAM.

This commit is contained in:
Tim 'mithro' Ansell 2019-12-30 19:24:26 +01:00
parent a738739acd
commit 8b955e6f69
1 changed files with 9 additions and 2 deletions

View File

@ -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"]