From e12af4f0506423152cb28df3bf13d1622295ca0a Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 20 Sep 2022 09:07:27 +0200 Subject: [PATCH] interconnect/axi/axi_stream: Fix get_ios and base it on length of created Endpoint's signals. --- litex/soc/interconnect/axi/axi_stream.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/litex/soc/interconnect/axi/axi_stream.py b/litex/soc/interconnect/axi/axi_stream.py index 48a69a8ca..1f7a24d73 100644 --- a/litex/soc/interconnect/axi/axi_stream.py +++ b/litex/soc/interconnect/axi/axi_stream.py @@ -49,13 +49,13 @@ class AXIStreamInterface(stream.Endpoint): ] # Payload Signals. - subsignals += [Subsignal("tdata", Pins(self.data_width))] - subsignals += [Subsignal("tkeep", Pins(self.keep_width))] + subsignals += [Subsignal("tdata", Pins(len(self.data)))] + subsignals += [Subsignal("tkeep", Pins(len(self.keep)))] # Param Signals. - subsignals += [Subsignal("tid", Pins(self.id_width))] - subsignals += [Subsignal("tdest", Pins(self.dest_width))] - subsignals += [Subsignal("tuser", Pins(self.user_width))] + subsignals += [Subsignal("tid", Pins(len(self.id)))] + subsignals += [Subsignal("tdest", Pins(len(self.dest)))] + subsignals += [Subsignal("tuser", Pins(len(self.user)))] ios = [(bus_name , 0) + tuple(subsignals)] return ios