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 # Emulator / Pads
if with_emulator: if with_emulator:
from litesdcard.emulator import SDEmulator, _sdemulator_pads from litesdcard.emulator import SDEmulator
sdcard_pads = _sdemulator_pads() self.submodules.sdemulator = SDEmulator(self.platform)
self.submodules.sdemulator = SDEmulator(self.platform, sdcard_pads) sdcard_pads = self.sdemulator.pads
self.add_csr("sdemulator")
else: else:
sdcard_pads = self.platform.request(name) sdcard_pads = self.platform.request(name)