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)