bist: Small formatting change.

This commit is contained in:
Tim 'mithro' Ansell 2016-12-16 16:43:51 +01:00
parent e901305e56
commit 85e4b65550
1 changed files with 3 additions and 2 deletions

View File

@ -175,12 +175,13 @@ class _LiteDRAMBISTChecker(Module, AutoCSR):
gen.ce.eq(dma.source.valid),
dma.source.ready.eq(1)
]
self.sync += \
self.sync += [
If(dma.source.valid,
If(dma.source.data != gen.o,
self.error_count.eq(self.error_count + 1)
)
)
),
]
self.comb += data_counter_ce.eq(dma.source.valid)
self.comb += self.done.eq(~data_enable & ~address_enable & shooted)