mirror of https://github.com/VLSIDA/OpenRAM.git
don't double count spare col
This commit is contained in:
parent
d0e9de1f13
commit
1b53d12df2
|
|
@ -388,7 +388,8 @@ class bank(design.design):
|
||||||
cols=self.num_cols + self.num_spare_cols,
|
cols=self.num_cols + self.num_spare_cols,
|
||||||
rows=self.num_rows)
|
rows=self.num_rows)
|
||||||
self.add_mod(self.bitcell_array)
|
self.add_mod(self.bitcell_array)
|
||||||
self.num_spare_cols += (self.bitcell_array.column_size % (self.word_size *self.words_per_row))
|
if self.num_spare_cols == 0:
|
||||||
|
self.num_spare_cols = (self.bitcell_array.column_size % (self.word_size *self.words_per_row))
|
||||||
|
|
||||||
self.port_address = []
|
self.port_address = []
|
||||||
for port in self.all_ports:
|
for port in self.all_ports:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue