soc/intergration/builder: fix when no sdram
This commit is contained in:
parent
934b08ede8
commit
a3eb2e403b
|
@ -101,6 +101,7 @@ class Builder:
|
|||
cpu_interface.get_csr_header(csr_regions, constants))
|
||||
|
||||
if isinstance(self.soc, soc_sdram.SoCSDRAM):
|
||||
if hasattr(self.soc, "sdram"):
|
||||
write_to_file(
|
||||
os.path.join(generated_dir, "sdram_phy.h"),
|
||||
sdram_init.get_sdram_phy_c_header(
|
||||
|
|
Loading…
Reference in New Issue