From: Florent Kermarrec Date: Thu, 23 Nov 2017 16:41:35 +0000 (+0100) Subject: soc/interconnect/stream: fix specific cases for last/first signal in UpConverter X-Git-Tag: 24jan2021_ls180~1794 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=831b489fd3a545a4a2a3eb57b058b54249eda5cf;p=litex.git soc/interconnect/stream: fix specific cases for last/first signal in UpConverter --- diff --git a/litex/soc/interconnect/stream.py b/litex/soc/interconnect/stream.py index bc6793ca..fea05b43 100644 --- a/litex/soc/interconnect/stream.py +++ b/litex/soc/interconnect/stream.py @@ -176,8 +176,13 @@ class _UpConverter(Module): ) ), If(source.valid & source.ready, - source.first.eq(sink.first), - source.last.eq(sink.last), + If(sink.valid & sink.ready, + source.first.eq(sink.first), + source.last.eq(sink.last) + ).Else( + source.first.eq(0), + source.last.eq(0) + ) ).Elif(sink.valid & sink.ready, source.first.eq(sink.first | source.first), source.last.eq(sink.last | source.last)