mirror of
https://github.com/enjoy-digital/litedram.git
synced 2025-01-04 09:52:25 -05:00
core/bankmachine: Switch back to Replicate since Constant does not support 0-width.
This commit is contained in:
parent
b148ade774
commit
0ba7da9ee9
1 changed files with 3 additions and 3 deletions
|
@ -37,14 +37,14 @@ class _AddressSlicer:
|
|||
if self.colbits > 10:
|
||||
# A10 is reserved for auto-precharge, this bit needs to be skipped for col addresses.
|
||||
return Cat(
|
||||
Constant(0, self.address_align),
|
||||
Replicate(0, self.address_align),
|
||||
address[:10-self.address_align],
|
||||
Constant(0, 1),
|
||||
Replicate(0, 1),
|
||||
address[10-self.address_align:split]
|
||||
)
|
||||
else:
|
||||
return Cat(
|
||||
Constant(0, self.address_align),
|
||||
Replicate(0, self.address_align),
|
||||
address[:split]
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue