From ad4b4f66dc1381bb0a2b6164a5f2e16f0b713a78 Mon Sep 17 00:00:00 2001 From: samuelkcrow Date: Tue, 21 Feb 2023 09:58:46 -0800 Subject: [PATCH] use capped array to create banks --- compiler/modules/bank.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/compiler/modules/bank.py b/compiler/modules/bank.py index 80b03bb2..8cf92961 100644 --- a/compiler/modules/bank.py +++ b/compiler/modules/bank.py @@ -374,9 +374,12 @@ class bank(design): cols=cols, rows=self.num_rows) else: - self.bitcell_array = factory.create(module_type="replica_bitcell_array", + self.bitcell_array = factory.create(module_type="capped_replica_bitcell_array", cols=self.num_cols + self.num_spare_cols, - rows=self.num_rows) + rows=self.num_rows, + rbl=[1, 1 if len(self.all_ports)>1 else 0], + left_rbl=[0], + right_rbl=[1] if len(self.all_ports)>1 else []) self.port_address = [] for port in self.all_ports: