From: Florent Kermarrec Date: Wed, 1 Jul 2020 10:39:56 +0000 (+0200) Subject: integration/soc/add_sdcard: update SDEmulator. X-Git-Tag: 24jan2021_ls180~120 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e492e96bf74efe75ac6412572367b74589d34611;p=litex.git integration/soc/add_sdcard: update SDEmulator. --- 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)