common/PHYPadsReducer: add Cat around Array (helps for standalone core integration).
This commit is contained in:
parent
d5fa60240b
commit
41c8ac637d
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue