stream/SyncFIFO now exposes fifo level
This commit is contained in:
parent
553d7c5669
commit
198babae69
|
@ -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")
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue