soc/intergration/builder: fix when no sdram

This commit is contained in:
Florent Kermarrec 2018-09-19 23:59:42 +02:00
parent 934b08ede8
commit a3eb2e403b
1 changed files with 6 additions and 5 deletions

View File

@ -101,6 +101,7 @@ class Builder:
cpu_interface.get_csr_header(csr_regions, constants)) cpu_interface.get_csr_header(csr_regions, constants))
if isinstance(self.soc, soc_sdram.SoCSDRAM): if isinstance(self.soc, soc_sdram.SoCSDRAM):
if hasattr(self.soc, "sdram"):
write_to_file( write_to_file(
os.path.join(generated_dir, "sdram_phy.h"), os.path.join(generated_dir, "sdram_phy.h"),
sdram_init.get_sdram_phy_c_header( sdram_init.get_sdram_phy_c_header(