forked from M-Labs/artiq
1
0
Fork 0

rtio/sed: pass sequence numbers through the FIFOs. Closes #978

This commit is contained in:
Sebastien Bourdeauducq 2018-05-02 10:57:57 +08:00
parent 05955bfd79
commit 83fb431cd0
1 changed files with 3 additions and 3 deletions

View File

@ -32,16 +32,16 @@ class FIFOs(Module):
fifos = []
for input, output in zip(self.input, self.output):
fifo = fifo_cls(layout_len(layout_payload), fifo_depth)
fifo = fifo_cls(seqn_width + layout_len(layout_payload), fifo_depth)
self.submodules += fifo
fifos.append(fifo)
self.comb += [
fifo.din.eq(input.payload.raw_bits()),
fifo.din.eq(Cat(input.seqn, input.payload.raw_bits())),
fifo.we.eq(input.we),
input.writable.eq(fifo.writable),
output.payload.raw_bits().eq(fifo.dout),
Cat(output.seqn, output.payload.raw_bits()).eq(fifo.dout),
output.readable.eq(fifo.readable),
fifo.re.eq(output.re)
]