From 19114fe47f2cf1af913e1a697b54ca6106b796cb Mon Sep 17 00:00:00 2001 From: Matt Guthaus Date: Fri, 5 Oct 2018 08:18:53 -0700 Subject: [PATCH] Add commented extraction when running DRC only --- compiler/verify/magic.py | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/compiler/verify/magic.py b/compiler/verify/magic.py index 55e803b4..1904f2a2 100644 --- a/compiler/verify/magic.py +++ b/compiler/verify/magic.py @@ -50,14 +50,17 @@ def write_magic_script(cell_name, gds_name, extract=False): f.write("drc catchup\n") f.write("drc count total\n") f.write("drc count\n") - if extract: - f.write("extract all\n") - f.write("ext2spice hierarchy on\n") - f.write("ext2spice scale off\n") - # Can choose hspice, ngspice, or spice3, - # but they all seem compatible enough. - #f.write("ext2spice format ngspice\n") - f.write("ext2spice\n") + if not extract: + pre = "#" + else: + pre = "" + f.write(pre+"extract all\n") + f.write(pre+"ext2spice hierarchy on\n") + f.write(pre+"ext2spice scale off\n") + # Can choose hspice, ngspice, or spice3, + # but they all seem compatible enough. + #f.write(pre+"ext2spice format ngspice\n") + f.write(pre+"ext2spice\n") f.write("quit -noprompt\n") f.write("EOF\n")