From af4de03fad66b528e7a5d831be7d5977281c237a Mon Sep 17 00:00:00 2001 From: Gabriel Somlo Date: Thu, 19 Mar 2020 18:20:30 -0400 Subject: [PATCH] targets/nexys4ddr: make sdcard reset conditional --- litex/boards/targets/nexys4ddr.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litex/boards/targets/nexys4ddr.py b/litex/boards/targets/nexys4ddr.py index 7c1da7c1..bae5b1f1 100755 --- a/litex/boards/targets/nexys4ddr.py +++ b/litex/boards/targets/nexys4ddr.py @@ -87,7 +87,8 @@ class BaseSoC(SoCCore): def add_sdcard(self): sdcard_pads = self.platform.request("sdcard") - self.comb += sdcard_pads.rst.eq(0) + if hasattr(sdcard_pads, "rst"): + self.comb += sdcard_pads.rst.eq(0) self.submodules.sdclk = SDClockerS7(sys_clk_freq=self.sys_clk_freq) self.submodules.sdphy = SDPHY(sdcard_pads, self.platform.device) self.submodules.sdcore = SDCore(self.sdphy) -- 2.30.2