add simple sram sizing for netlist only

This commit is contained in:
Jesse Cirimelli-Low
2020-02-06 12:10:49 +00:00
parent 18573c0e42
commit 3a06141030
3 changed files with 23 additions and 6 deletions
+9 -4
View File
@@ -96,8 +96,10 @@ def get_libcell_size(name, units, lpp):
Open a GDS file and return the library cell size from either the
bounding box or a border layer.
"""
cell_gds = OPTS.openram_tech + "gds_lib/" + str(name) + ".gds"
return(get_gds_size(name, cell_gds, units, lpp))
if not OPTS.netlist_only:
cell_gds = OPTS.openram_tech + "gds_lib/" + str(name) + ".gds"
return(get_gds_size(name, cell_gds, units, lpp))
return (0,0,)
def get_gds_pins(pin_names, name, gds_filename, units):
@@ -128,8 +130,11 @@ def get_libcell_pins(pin_list, name, units):
Open a GDS file and find the pins in pin_list as text on a given layer.
Return these as a rectangle layer pair for each pin.
"""
cell_gds = OPTS.openram_tech + "gds_lib/" + str(name) + ".gds"
return(get_gds_pins(pin_list, name, cell_gds, units))
if not OPTS.netlist_only:
cell_gds = OPTS.openram_tech + "gds_lib/" + str(name) + ".gds"
return(get_gds_pins(pin_list, name, cell_gds, units))
else:
return