From: Jean THOMAS Date: Tue, 9 Jun 2020 09:44:52 +0000 (+0200) Subject: Expose RAM size in gramCore X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cff403a43720ad559024b7f2cc76828c0dc22d59;p=gram.git Expose RAM size in gramCore --- diff --git a/gram/core/__init__.py b/gram/core/__init__.py index 8ca06c9..670fe45 100644 --- a/gram/core/__init__.py +++ b/gram/core/__init__.py @@ -38,6 +38,9 @@ class gramCore(Peripheral, Elaboratable): clk_freq = self._clk_freq, **self._kwargs) + # Size in bytes + self.size = 2**geom_settings.bankbits * 2**geom_settings.rowbits * 2**geom_settings.colbits + self.crossbar = gramCrossbar(self.controller.interface) self._bridge = self.bridge(data_width=32, granularity=8, alignment=2)