From 0ba7da9ee9f676d2f8c751bcb9b6a415d2499082 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 7 Jul 2023 12:38:56 +0200 Subject: [PATCH] core/bankmachine: Switch back to Replicate since Constant does not support 0-width. --- litedram/core/bankmachine.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/litedram/core/bankmachine.py b/litedram/core/bankmachine.py index 5e3e58c..4fbe3da 100644 --- a/litedram/core/bankmachine.py +++ b/litedram/core/bankmachine.py @@ -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] )