mirror of https://github.com/VLSIDA/OpenRAM.git
fix for replica column mirroring over y
This commit is contained in:
parent
7505fa5aef
commit
218a553ac5
|
|
@ -91,14 +91,16 @@ class replica_bitcell_array(design.design):
|
|||
# Replica bitlines
|
||||
self.replica_columns = {}
|
||||
for bit in range(self.left_rbl+self.right_rbl):
|
||||
# Creating left_rbl
|
||||
if bit<self.left_rbl:
|
||||
replica_bit = bit+1
|
||||
# dummy column
|
||||
column_offset = 1
|
||||
column_offset = self.left_rbl - bit
|
||||
# Creating right_rbl
|
||||
else:
|
||||
replica_bit = bit+self.row_size+1
|
||||
# dummy column + replica column + bitcell colums
|
||||
column_offset = 3 + self.row_size
|
||||
column_offset = self.left_rbl - bit + self.row_size
|
||||
self.replica_columns[bit] = factory.create(module_type="replica_column",
|
||||
rows=self.row_size,
|
||||
left_rbl=self.left_rbl,
|
||||
|
|
|
|||
|
|
@ -28,9 +28,9 @@ class replica_bitcell_array_test(openram_test):
|
|||
OPTS.num_r_ports = 1
|
||||
OPTS.num_w_ports = 0
|
||||
|
||||
# debug.info(2, "Testing 4x4 array for cell_1rw_1r")
|
||||
# a = factory.create(module_type="replica_bitcell_array", cols=4, rows=4, left_rbl=2, right_rbl=0, bitcell_ports=[0,1])
|
||||
# self.local_check(a)
|
||||
debug.info(2, "Testing 4x4 array for cell_1rw_1r")
|
||||
a = factory.create(module_type="replica_bitcell_array", cols=4, rows=4, left_rbl=2, right_rbl=0, bitcell_ports=[0,1])
|
||||
self.local_check(a)
|
||||
|
||||
debug.info(2, "Testing 4x4 array for cell_1rw_1r")
|
||||
a = factory.create(module_type="replica_bitcell_array", cols=4, rows=4, left_rbl=1, right_rbl=1, bitcell_ports=[0,1])
|
||||
|
|
|
|||
Loading…
Reference in New Issue