Expose data_width
authorJean THOMAS <git0@pub.jeanthomas.me>
Wed, 29 Jul 2020 14:16:55 +0000 (16:16 +0200)
committerJean THOMAS <git0@pub.jeanthomas.me>
Wed, 29 Jul 2020 14:16:55 +0000 (16:16 +0200)
gram/common.py

index 3da6c7d9816f29c74c41da46546db0f84687a4bd..1b53722f58b59588791f4b1588ab3f49a8ac31b2 100644 (file)
@@ -192,6 +192,8 @@ class gramNativePort(Settings):
 
         self.flush = Signal()
 
+        self.data_width = data_width
+
     def get_bank_address(self, bank_bits, cba_shift):
         cba_upper = cba_shift + bank_bits
         return self.cmd.addr[cba_shift:cba_upper]