From 90b9f4eca3b47e665bf7cbd78df47a9662d332c0 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 21 Dec 2020 08:51:04 +0100 Subject: [PATCH] soc/interconnect/axi: fix AXIInterface.get_ios(). --- litex/soc/interconnect/axi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/soc/interconnect/axi.py b/litex/soc/interconnect/axi.py index 97e3ca172..4847c8d5e 100644 --- a/litex/soc/interconnect/axi.py +++ b/litex/soc/interconnect/axi.py @@ -148,7 +148,7 @@ class AXIInterface: def get_ios(self, bus_name="wb"): subsignals = [] for channel in ["aw", "w", "b", "ar", "r"]: - for name in ["valid", "ready"] + ["last"] if channel in ["w", "r"] else []: + for name in ["valid", "ready"] + (["last"] if channel in ["w", "r"] else []): subsignals.append(Subsignal(channel + name, Pins(1))) for name, width in getattr(self, channel).description.payload_layout: subsignals.append(Subsignal(channel + name, Pins(width)))