conform default behavior for sky130 custom modules to unit test

This commit is contained in:
Sam Crow 2023-06-07 17:31:12 -07:00
parent 973b5512f0
commit 539dfc979a
1 changed files with 12 additions and 2 deletions

View File

@ -30,9 +30,19 @@ class sky130_capped_replica_bitcell_array(sky130_bitcell_base_array):
self.add_comment("rows: {0} cols: {1}".format(rows, cols))
self.add_comment("rbl: {0} left_rbl: {1} right_rbl: {2}".format(rbl, left_rbl, right_rbl))
# This is how many RBLs are in all the arrays
self.rbl = rbl
self.left_rbl = left_rbl
self.right_rbl = right_rbl
# This specifies which RBL to put on the left or right by port number
# This could be an empty list
if left_rbl is not None:
self.left_rbl = left_rbl
else:
self.left_rbl = []
# This could be an empty list
if right_rbl is not None:
self.right_rbl = right_rbl
else:
self.right_rbl = []
self.create_netlist()
if not OPTS.netlist_only: