common/PHYPadsReducer: add Cat around Array (helps for standalone core integration).

This commit is contained in:
Florent Kermarrec 2020-09-02 09:40:11 +02:00
parent d5fa60240b
commit 41c8ac637d
1 changed files with 3 additions and 3 deletions

View File

@ -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)