litepcie: use data instead of dat in dma_layout (allow use of migen.actorlib.packet modules on dma dataflow)

This commit is contained in:
Florent Kermarrec 2015-07-22 21:44:53 +02:00
parent 40740d3ddc
commit dfc207aacb
3 changed files with 3 additions and 3 deletions

View File

@ -63,5 +63,5 @@ def interrupt_layout():
def dma_layout(dw):
layout = [("dat", dw)]
layout = [("data", dw)]
return EndpointDescription(layout, packetized=True)

View File

@ -70,7 +70,7 @@ class DMAReader(Module, AutoCSR):
self.comb += [
fifo.sink.stb.eq(port.sink.stb),
fifo.sink.sop.eq(port.sink.sop & (port.sink.user_id != last_user_id)),
fifo.sink.dat.eq(port.sink.dat),
fifo.sink.data.eq(port.sink.dat),
port.sink.ack.eq(fifo.sink.ack | ~enable),
]
self.comb += Record.connect(fifo.source, self.source)

View File

@ -28,7 +28,7 @@ class DMAWriter(Module, AutoCSR):
self.comb += [
fifo.we.eq(sink.stb & enable),
sink.ack.eq(fifo.writable & sink.stb & enable),
fifo.din.eq(sink.dat),
fifo.din.eq(sink.data),
fifo.reset.eq(~enable)
]