soc/interconnect/stream_packet.py: make error payload optional on Packetizer
This commit is contained in:
parent
d173d946b7
commit
5efd6a8412
|
@ -228,11 +228,12 @@ class Packetizer(Module):
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
if hasattr(sink, "error"):
|
||||||
|
self.comb += source.error.eq(sink.error)
|
||||||
fsm.act("COPY",
|
fsm.act("COPY",
|
||||||
source.valid.eq(sink.valid),
|
source.valid.eq(sink.valid),
|
||||||
source.last.eq(sink.last),
|
source.last.eq(sink.last),
|
||||||
source.data.eq(sink.data),
|
source.data.eq(sink.data),
|
||||||
source.error.eq(sink.error),
|
|
||||||
If(source.valid & source.ready,
|
If(source.valid & source.ready,
|
||||||
sink.ready.eq(1),
|
sink.ready.eq(1),
|
||||||
If(source.last,
|
If(source.last,
|
||||||
|
|
Loading…
Reference in New Issue