From 76bc4e1fc26c5cf35932e6eabb02bff5dfe10f37 Mon Sep 17 00:00:00 2001 From: mrg Date: Wed, 8 Jun 2022 14:23:50 -0700 Subject: [PATCH] Only do one extract. Flatten transistors since bug fixed in magic. --- compiler/verify/magic.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/compiler/verify/magic.py b/compiler/verify/magic.py index 50f27142..4b1109ca 100644 --- a/compiler/verify/magic.py +++ b/compiler/verify/magic.py @@ -96,7 +96,7 @@ def write_drc_script(cell_name, gds_name, extract, final_verification, output_pa f.write("gds warning default\n") # Flatten the transistors # Bug in Netgen 1.5.194 when using this... - #f.write("gds flatglob *_?mos_m*\n") + f.write("gds flatglob *_?mos_m*\n") # These two options are temporarily disabled until Tim fixes a bug in magic related # to flattening channel routes and vias (hierarchy with no devices in it). Otherwise, # they appear to be disconnected. @@ -119,12 +119,13 @@ def write_drc_script(cell_name, gds_name, extract, final_verification, output_pa pre = "#" else: pre = "" - if final_verification and OPTS.route_supplies: - f.write(pre + "extract unique all\n") # Hack to work around unit scales in SkyWater if OPTS.tech_name=="sky130": f.write(pre + "extract style ngspice(si)\n") - f.write(pre + "extract all\n") + if final_verification and OPTS.route_supplies: + f.write(pre + "extract unique all\n") + else: + f.write(pre + "extract all\n") f.write(pre + "select top cell\n") f.write(pre + "feedback why\n") f.write('puts "Finished extract"\n')