stream/SyncFIFO now exposes fifo level

This commit is contained in:
Florent Kermarrec 2015-11-16 16:13:01 +01:00
parent 553d7c5669
commit 198babae69
1 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ class LiteScopeRecorderUnit(Module):
fifo.sink.data.eq(data_sink.data), fifo.sink.data.eq(data_sink.data),
data_sink.ack.eq(fifo.sink.ack), data_sink.ack.eq(fifo.sink.ack),
fifo.source.ack.eq(fifo.fifo.level >= self.offset), fifo.source.ack.eq(fifo.level >= self.offset),
If(trigger_sink.stb & trigger_sink.hit, If(trigger_sink.stb & trigger_sink.hit,
NextState("POST_HIT_RECORDING") NextState("POST_HIT_RECORDING")
) )
@ -151,7 +151,7 @@ class LiteScopeRecorderUnit(Module):
fifo.sink.data.eq(data_sink.data), fifo.sink.data.eq(data_sink.data),
data_sink.ack.eq(fifo.sink.ack), data_sink.ack.eq(fifo.sink.ack),
If(~fifo.sink.ack | (fifo.fifo.level >= self.length), If(~fifo.sink.ack | (fifo.level >= self.length),
NextState("IDLE") NextState("IDLE")
) )
) )