From e492e96bf74efe75ac6412572367b74589d34611 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 1 Jul 2020 12:39:56 +0200 Subject: [PATCH] integration/soc/add_sdcard: update SDEmulator. --- litex/soc/integration/soc.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/litex/soc/integration/soc.py b/litex/soc/integration/soc.py index 889faedf..667040ba 100644 --- a/litex/soc/integration/soc.py +++ b/litex/soc/integration/soc.py @@ -1257,10 +1257,9 @@ class LiteXSoC(SoC): # Emulator / Pads if with_emulator: - from litesdcard.emulator import SDEmulator, _sdemulator_pads - sdcard_pads = _sdemulator_pads() - self.submodules.sdemulator = SDEmulator(self.platform, sdcard_pads) - self.add_csr("sdemulator") + from litesdcard.emulator import SDEmulator + self.submodules.sdemulator = SDEmulator(self.platform) + sdcard_pads = self.sdemulator.pads else: sdcard_pads = self.platform.request(name) -- 2.30.2