From 378272d9e293bb521e6daab42eee5181c0c39fba Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Sun, 27 Dec 2015 13:14:53 +0100 Subject: [PATCH] some fixes (from refactoring) --- litescope/core/storage.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/litescope/core/storage.py b/litescope/core/storage.py index cfb2051..02461bd 100644 --- a/litescope/core/storage.py +++ b/litescope/core/storage.py @@ -22,11 +22,11 @@ class LiteScopeSubSamplerUnit(Module): done = Signal() self.comb += [ - done.eq(self.counter >= self.value), + done.eq(counter >= self.value), sink.connect(source), source.stb.eq(sink.stb & done), - self.counter_ce.eq(source.ack), - self.counter_reset.eq(source.stb & source.ack & done) + counter_ce.eq(source.ack), + counter_reset.eq(source.stb & source.ack & done) ] @@ -55,7 +55,7 @@ class LiteScopeRunLengthEncoderUnit(Module): self.submodules.buf = buf = Buffer(sink.description) self.comb += sink.connect(buf.sink) - counter = Signals(max=length) + counter = Signal(max=length) counter_reset = Signal() counter_ce = Signal() counter_done = Signal()