soc/intergration/builder: fix when no sdram
This commit is contained in:
parent
934b08ede8
commit
a3eb2e403b
|
@ -101,11 +101,12 @@ 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):
|
||||||
write_to_file(
|
if hasattr(self.soc, "sdram"):
|
||||||
os.path.join(generated_dir, "sdram_phy.h"),
|
write_to_file(
|
||||||
sdram_init.get_sdram_phy_c_header(
|
os.path.join(generated_dir, "sdram_phy.h"),
|
||||||
self.soc.sdram.controller.settings.phy,
|
sdram_init.get_sdram_phy_c_header(
|
||||||
self.soc.sdram.controller.settings.timing))
|
self.soc.sdram.controller.settings.phy,
|
||||||
|
self.soc.sdram.controller.settings.timing))
|
||||||
|
|
||||||
def _generate_csr_csv(self):
|
def _generate_csr_csv(self):
|
||||||
memory_regions = self.soc.get_memory_regions()
|
memory_regions = self.soc.get_memory_regions()
|
||||||
|
|
Loading…
Reference in New Issue