More hacks.
diff --git a/gds_to_lef_gds_mag.py b/gds_to_lef_gds_mag.py
index 681744a..60ff337 100755
--- a/gds_to_lef_gds_mag.py
+++ b/gds_to_lef_gds_mag.py
@@ -219,13 +219,13 @@
print(f'lef write {escaped_cell} -toplayer', file=ofile)
# Netlist extraction
- #if "sram_sp_cell_opt1a" not in gds_file:
- # print(f'load {escaped_cell}', file=ofile)
- # print( 'extract do local', file=ofile)
- # print( 'extract no all', file=ofile)
- # print( 'extract all', file=ofile)
- # print( 'ext2spice lvs', file=ofile)
- # print( 'ext2spice', file=ofile)
+ if "sram_sp_cell_opt1a" not in gds_file:
+ print(f'load {escaped_cell}', file=ofile)
+ print( 'extract do local', file=ofile)
+ print( 'extract no all', file=ofile)
+ print( 'extract all', file=ofile)
+ print( 'ext2spice lvs', file=ofile)
+ print( 'ext2spice', file=ofile)
print('quit -noprompt', file=ofile)
return run_magic(destdir, tcl_path, techfile)
@@ -819,8 +819,11 @@
assert not os.path.exists(out_mlef_file), ("Existing .magic.lef:", out_mlef_file)
os.rename(out_lef_file, out_mlef_file)
- #assert os.path.exists(out_spice_file), ("Missing new spice:", out_spice_file)
- #rewrite_out_spice(out_spice_file)
+ if "sram_sp_cell_opt1a" not in gds_file:
+ assert os.path.exists(out_spice_file), ("Missing new spice:", out_spice_file)
+ rewrite_out_spice(out_spice_file)
+ # spice file -> output
+ copy_file_to_output(out_spice_file, final_dir, lib, ver, new_cellname)
# GDS file -> output
copy_file_to_output(gds_file, final_dir, lib, ver, new_cellname)
@@ -829,8 +832,6 @@
# .magic.lef file -> output
copy_file_to_output(out_mlef_file, final_dir, lib, ver, new_cellname)
- # spice file -> output
- #copy_file_to_output(out_spice_file, final_dir, lib, ver, new_cellname)
return new_cellname