mirror of
https://github.com/enjoy-digital/litedram.git
synced 2025-01-04 09:52:25 -05:00
common/PHYPadsReducer: add Cat around Array (helps for standalone core integration).
This commit is contained in:
parent
d5fa60240b
commit
41c8ac637d
1 changed files with 3 additions and 3 deletions
|
@ -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 a new issue