From 41364dd0b1bd5aee9d805277e7cd590e432434aa Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Sun, 29 May 2016 16:00:35 +0200 Subject: [PATCH] frontend/bist: fix cd on LiteDRAMBISTChecker, bist_async_tb now working --- litedram/frontend/bist.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/litedram/frontend/bist.py b/litedram/frontend/bist.py index 5234e7f..c18aa12 100644 --- a/litedram/frontend/bist.py +++ b/litedram/frontend/bist.py @@ -171,7 +171,7 @@ class _LiteDRAMBISTChecker(Module, AutoCSR): class LiteDRAMBISTChecker(Module, AutoCSR): - def __init__(self, dram_port, cd="sys"): + def __init__(self, dram_port): self.reset = CSRStorage() self.shoot = CSR() self.done = CSRStatus() @@ -181,6 +181,8 @@ class LiteDRAMBISTChecker(Module, AutoCSR): # # # + cd = dram_port.cd + checker = ResetInserter()(_LiteDRAMBISTChecker(dram_port)) self.submodules += ClockDomainsRenamer(cd)(checker)