From 34b6994d3c3a1745fd8edf73858d7cb16a9fba8a Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 16 Nov 2015 16:12:08 +0100 Subject: [PATCH] stream/SyncFIFO now exposes fifo level --- liteeth/core/mac/core/crc.py | 2 +- liteeth/frontend/tty.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/liteeth/core/mac/core/crc.py b/liteeth/core/mac/core/crc.py index 2daabc2..bd24c26 100644 --- a/liteeth/core/mac/core/crc.py +++ b/liteeth/core/mac/core/crc.py @@ -238,7 +238,7 @@ class LiteEthMACCRCChecker(Module): fifo_full = Signal() self.comb += [ - fifo_full.eq(fifo.fifo.level == ratio), + fifo_full.eq(fifo.level == ratio), fifo_in.eq(sink.stb & (~fifo_full | fifo_out)), fifo_out.eq(source.stb & source.ack), diff --git a/liteeth/frontend/tty.py b/liteeth/frontend/tty.py index b98c8c6..72ce89a 100644 --- a/liteeth/frontend/tty.py +++ b/liteeth/frontend/tty.py @@ -23,7 +23,7 @@ class LiteEthTTYTX(Module): level = Signal(max=fifo_depth) level_update = Signal() - self.sync += If(level_update, level.eq(fifo.fifo.level)) + self.sync += If(level_update, level.eq(fifo.level)) self.submodules.counter = counter = Counter(max=fifo_depth)