From 043cfc5df78cd032143d6753bfb9eff3336497eb Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 31 Aug 2020 08:42:56 +0200 Subject: [PATCH] soc/interconnect/axi/AXIStreamInterface: manage user as param. --- litex/soc/interconnect/axi.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/litex/soc/interconnect/axi.py b/litex/soc/interconnect/axi.py index 93a1e6bdd..644387eca 100644 --- a/litex/soc/interconnect/axi.py +++ b/litex/soc/interconnect/axi.py @@ -241,10 +241,11 @@ class AXIStreamInterface(stream.Endpoint): def __init__(self, data_width=32, user_width=0): self.data_width = data_width self.user_width = user_width - axi_layout = [("data", data_width)] + payload_layout = [("data", data_width)] + param_layout = [] if self.user_width: - axi_layout += [("user", user_width)] - stream.Endpoint.__init__(self, axi_layout) + param_layout += [("user", user_width)] + stream.Endpoint.__init__(self, stream.EndpointDescription(payload_layout, param_layout)) def get_ios(self, bus_name="axi"): subsignals = [