From 41c8ac637d0a4fef24fba15b38ebed1e33ac683d Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 2 Sep 2020 09:40:11 +0200 Subject: [PATCH] common/PHYPadsReducer: add Cat around Array (helps for standalone core integration). --- litedram/common.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/litedram/common.py b/litedram/common.py index 6c16a10..2127caa 100644 --- a/litedram/common.py +++ b/litedram/common.py @@ -72,11 +72,11 @@ class PHYPadsReducer: def __getattr__(self, name): if name in ["dq"]: - return Array([getattr(self.pads, name)[8*i + j] + return Cat(Array([getattr(self.pads, name)[8*i + j] for i in self.modules - for j in range(8)]) + for j in range(8)])) if name in ["dm", "dqs", "dqs_p", "dqs_n"]: - return Array([getattr(self.pads, name)[i] for i in self.modules]) + return Cat(Array([getattr(self.pads, name)[i] for i in self.modules])) else: return getattr(self.pads, name)