integration/soc/add_sdcard: update SDEmulator.

This commit is contained in:
Florent Kermarrec 2020-07-01 12:39:56 +02:00
parent 996e9a9180
commit e492e96bf7
1 changed files with 3 additions and 4 deletions

View File

@ -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)