core/bankmachine: Switch back to Replicate since Constant does not support 0-width.
This commit is contained in:
parent
b148ade774
commit
0ba7da9ee9
|
@ -37,14 +37,14 @@ class _AddressSlicer:
|
||||||
if self.colbits > 10:
|
if self.colbits > 10:
|
||||||
# A10 is reserved for auto-precharge, this bit needs to be skipped for col addresses.
|
# A10 is reserved for auto-precharge, this bit needs to be skipped for col addresses.
|
||||||
return Cat(
|
return Cat(
|
||||||
Constant(0, self.address_align),
|
Replicate(0, self.address_align),
|
||||||
address[:10-self.address_align],
|
address[:10-self.address_align],
|
||||||
Constant(0, 1),
|
Replicate(0, 1),
|
||||||
address[10-self.address_align:split]
|
address[10-self.address_align:split]
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
return Cat(
|
return Cat(
|
||||||
Constant(0, self.address_align),
|
Replicate(0, self.address_align),
|
||||||
address[:split]
|
address[:split]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue