2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 11:18:27 +08:00

rtio: break DMA timing path

This commit is contained in:
Sebastien Bourdeauducq 2017-07-02 10:24:01 +08:00
parent ea7549cfa4
commit 838127d914

View File

@ -226,9 +226,9 @@ class TimeOffset(Module, AutoCSR):
# # #
pipe_ce = Signal()
self.sync += \
If(pipe_ce,
self.sync += [
If(self.source.ack, self.source.stb.eq(0)),
If(~self.source.stb,
self.sink.payload.connect(self.source.payload,
leave_out={"timestamp"}),
self.source.payload.timestamp.eq(self.sink.payload.timestamp
@ -236,10 +236,8 @@ class TimeOffset(Module, AutoCSR):
self.source.eop.eq(self.sink.eop),
self.source.stb.eq(self.sink.stb)
)
self.comb += [
pipe_ce.eq(self.source.ack | ~self.source.stb),
self.sink.ack.eq(pipe_ce)
]
self.comb += self.sink.ack.eq(~self.source.stb)
class CRIMaster(Module, AutoCSR):