core/bankmachine: Switch back to Replicate since Constant does not support 0-width.

This commit is contained in:
Florent Kermarrec 2023-07-07 12:38:56 +02:00
parent b148ade774
commit 0ba7da9ee9
1 changed files with 3 additions and 3 deletions

View File

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