From cff403a43720ad559024b7f2cc76828c0dc22d59 Mon Sep 17 00:00:00 2001 From: Jean THOMAS Date: Tue, 9 Jun 2020 11:44:52 +0200 Subject: [PATCH] Expose RAM size in gramCore --- gram/core/__init__.py | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.30.2