Skip to content

Commit

Permalink
Using klayout.db instead of pya, added --verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
klayoutmatthias committed Dec 18, 2022
1 parent 1b7033b commit dc322b0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion rules/klayout/drc/run_drc.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
Usage:
run_drc.py (--help| -h)
run_drc.py (--path=<file_path>) (--variant=<combined_options>) [--table=<table_name>]... [--mp=<num_cores>] [--run_dir=<run_dir_path>] [--topcell=<topcell_name>] [--thr=<thr>] [--run_mode=<run_mode>] [--no_feol] [--no_beol] [--connectivity] [--density] [--density_only] [--antenna] [--antenna_only] [--no_offgrid]
run_drc.py (--path=<file_path>) (--variant=<combined_options>) [--verbose] [--table=<table_name>]... [--mp=<num_cores>] [--run_dir=<run_dir_path>] [--topcell=<topcell_name>] [--thr=<thr>] [--run_mode=<run_mode>] [--no_feol] [--no_beol] [--connectivity] [--density] [--density_only] [--antenna] [--antenna_only] [--no_offgrid]
Options:
--help -h Print this help message.
Expand All @@ -40,6 +40,7 @@
--antenna Turn on Antenna checks.
--antenna_only Turn on Antenna checks only.
--no_offgrid Turn off OFFGRID checking rules.
--verbose Detailed rule execution log for debugging.
"""

from docopt import docopt
Expand Down Expand Up @@ -316,6 +317,11 @@ def generate_klayout_switches(arguments, layout_path):
logging.error("variant switch allowed values are (A , B, C) only")
exit()

if arguments["--verbose"]:
switches["verbose"] = "true"
else:
switches["verbose"] = "false"

if arguments["--no_feol"]:
switches["feol"] = "false"
else:
Expand Down

0 comments on commit dc322b0

Please sign in to comment.