From: Florent Kermarrec Date: Fri, 30 Jun 2017 17:40:17 +0000 (+0200) Subject: soc/interconnect/stream: improve reset_less support for streams X-Git-Tag: 24jan2021_ls180~1824 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=227b14c3f302f2a79abd59aea196577b3112ac2e;p=litex.git soc/interconnect/stream: improve reset_less support for streams --- diff --git a/litex/soc/interconnect/stream.py b/litex/soc/interconnect/stream.py index 63772a20..6797f6dd 100644 --- a/litex/soc/interconnect/stream.py +++ b/litex/soc/interconnect/stream.py @@ -10,7 +10,7 @@ def _make_m2s(layout, reset_less=False): if isinstance(f[1], (int, tuple)): r.append((f[0], f[1], DIR_M_TO_S, reset_less)) else: - r.append((f[0], _make_m2s(f[1]))) + r.append((f[0], _make_m2s(f[1]), reset_less)) return r @@ -32,8 +32,8 @@ class EndpointDescription: full_layout = [ ("valid", 1, DIR_M_TO_S), ("ready", 1, DIR_S_TO_M), - ("first", 1, DIR_M_TO_S), - ("last", 1, DIR_M_TO_S), + ("first", 1, DIR_M_TO_S, True), + ("last", 1, DIR_M_TO_S, True), ("payload", _make_m2s(self.payload_layout, True)), ("param", _make_m2s(self.param_layout, True)) ]