From ecc4c573eb4cdeae64771565ca86ca8949579be6 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 14 Oct 2015 11:09:53 +0800 Subject: [PATCH] integration/builder: fix building for SoCSDRAM-based targets when SDRAM is disabled Reported by Florent Kermarrec --- misoc/integration/builder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misoc/integration/builder.py b/misoc/integration/builder.py index 44138ea30..ef89eaf63 100644 --- a/misoc/integration/builder.py +++ b/misoc/integration/builder.py @@ -53,7 +53,7 @@ class Builder: flash_boot_address = getattr(self.soc, "flash_boot_address", None) csr_regions = self.soc.get_csr_regions() constants = self.soc.get_constants() - if isinstance(self.soc, soc_sdram.SoCSDRAM): + if isinstance(self.soc, soc_sdram.SoCSDRAM) and self.soc._sdram_phy: sdram_phy_settings = self.soc._sdram_phy[0].settings else: sdram_phy_settings = None