soc/interconnect/stream: improve reset_less support for streams
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 30 Jun 2017 17:40:17 +0000 (19:40 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 30 Jun 2017 17:40:17 +0000 (19:40 +0200)
litex/soc/interconnect/stream.py

index 63772a20927fd4b5fb1f47f0e99bcc91783a6a09..6797f6dd672fe7b3e713b4bd0b8745366f4fc2af 100644 (file)
@@ -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))
         ]