bist: Make reset write to activate like shoot.

This commit is contained in:
Tim 'mithro' Ansell 2016-12-16 16:45:23 +01:00
parent 85e4b65550
commit 6ae11fa5c8
1 changed files with 3 additions and 3 deletions

View File

@ -81,7 +81,7 @@ class _LiteDRAMBISTGenerator(Module):
class LiteDRAMBISTGenerator(Module, AutoCSR): class LiteDRAMBISTGenerator(Module, AutoCSR):
def __init__(self, dram_port, random=True): def __init__(self, dram_port, random=True):
self.reset = CSRStorage() self.reset = CSR()
self.shoot = CSR() self.shoot = CSR()
self.done = CSRStatus() self.done = CSRStatus()
self.base = CSRStorage(dram_port.aw) self.base = CSRStorage(dram_port.aw)
@ -104,7 +104,7 @@ class LiteDRAMBISTGenerator(Module, AutoCSR):
self.submodules += base_sync, length_sync self.submodules += base_sync, length_sync
self.comb += [ self.comb += [
reset_sync.i.eq(self.reset.storage), reset_sync.i.eq(self.reset.re),
core.reset.eq(reset_sync.o), core.reset.eq(reset_sync.o),
shoot_sync.i.eq(self.shoot.re), shoot_sync.i.eq(self.shoot.re),
@ -189,7 +189,7 @@ class _LiteDRAMBISTChecker(Module, AutoCSR):
class LiteDRAMBISTChecker(Module, AutoCSR): class LiteDRAMBISTChecker(Module, AutoCSR):
def __init__(self, dram_port, random=True): def __init__(self, dram_port, random=True):
self.reset = CSRStorage() self.reset = CSR()
self.shoot = CSR() self.shoot = CSR()
self.done = CSRStatus() self.done = CSRStatus()
self.base = CSRStorage(dram_port.aw) self.base = CSRStorage(dram_port.aw)