frontend/bist: fix cd on LiteDRAMBISTChecker, bist_async_tb now working

This commit is contained in:
Florent Kermarrec 2016-05-29 16:00:35 +02:00
parent cb69561137
commit 41364dd0b1
1 changed files with 3 additions and 1 deletions

View File

@ -171,7 +171,7 @@ class _LiteDRAMBISTChecker(Module, AutoCSR):
class LiteDRAMBISTChecker(Module, AutoCSR): class LiteDRAMBISTChecker(Module, AutoCSR):
def __init__(self, dram_port, cd="sys"): def __init__(self, dram_port):
self.reset = CSRStorage() self.reset = CSRStorage()
self.shoot = CSR() self.shoot = CSR()
self.done = CSRStatus() self.done = CSRStatus()
@ -181,6 +181,8 @@ class LiteDRAMBISTChecker(Module, AutoCSR):
# # # # # #
cd = dram_port.cd
checker = ResetInserter()(_LiteDRAMBISTChecker(dram_port)) checker = ResetInserter()(_LiteDRAMBISTChecker(dram_port))
self.submodules += ClockDomainsRenamer(cd)(checker) self.submodules += ClockDomainsRenamer(cd)(checker)