stream/SyncFIFO now exposes fifo level

This commit is contained in:
Florent Kermarrec 2015-11-16 16:12:08 +01:00
parent 94e5c254eb
commit 34b6994d3c
2 changed files with 2 additions and 2 deletions

View File

@ -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),

View File

@ -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)