litepcie: use data instead of dat in dma_layout (allow use of migen.actorlib.packet modules on dma dataflow)
This commit is contained in:
parent
40740d3ddc
commit
dfc207aacb
|
@ -63,5 +63,5 @@ def interrupt_layout():
|
|||
|
||||
|
||||
def dma_layout(dw):
|
||||
layout = [("dat", dw)]
|
||||
layout = [("data", dw)]
|
||||
return EndpointDescription(layout, packetized=True)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
]
|
||||
|
||||
|
|
Loading…
Reference in New Issue