From: Jean THOMAS Date: Wed, 29 Jul 2020 14:16:55 +0000 (+0200) Subject: Expose data_width X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=475846870b137decc0e6650f5b9cad6fff19593b;p=gram.git Expose data_width --- diff --git a/gram/common.py b/gram/common.py index 3da6c7d..1b53722 100644 --- a/gram/common.py +++ b/gram/common.py @@ -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]