From 6ae11fa5c8084de698d71bfec416dfdfea44219c Mon Sep 17 00:00:00 2001 From: Tim 'mithro' Ansell Date: Fri, 16 Dec 2016 16:45:23 +0100 Subject: [PATCH] bist: Make reset write to activate like shoot. --- litedram/frontend/bist.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/litedram/frontend/bist.py b/litedram/frontend/bist.py index e10410f..bb7b9b6 100644 --- a/litedram/frontend/bist.py +++ b/litedram/frontend/bist.py @@ -81,7 +81,7 @@ class _LiteDRAMBISTGenerator(Module): class LiteDRAMBISTGenerator(Module, AutoCSR): def __init__(self, dram_port, random=True): - self.reset = CSRStorage() + self.reset = CSR() self.shoot = CSR() self.done = CSRStatus() self.base = CSRStorage(dram_port.aw) @@ -104,7 +104,7 @@ class LiteDRAMBISTGenerator(Module, AutoCSR): self.submodules += base_sync, length_sync self.comb += [ - reset_sync.i.eq(self.reset.storage), + reset_sync.i.eq(self.reset.re), core.reset.eq(reset_sync.o), shoot_sync.i.eq(self.shoot.re), @@ -189,7 +189,7 @@ class _LiteDRAMBISTChecker(Module, AutoCSR): class LiteDRAMBISTChecker(Module, AutoCSR): def __init__(self, dram_port, random=True): - self.reset = CSRStorage() + self.reset = CSR() self.shoot = CSR() self.done = CSRStatus() self.base = CSRStorage(dram_port.aw)