mirror of
https://github.com/YosysHQ/sby.git
synced 2025-07-24 15:18:58 +00:00
Improve option handling
This commit is contained in:
parent
5657976ad3
commit
be8c995e15
4 changed files with 49 additions and 51 deletions
|
@ -20,18 +20,9 @@ import re, os, getopt
|
|||
from sby_core import SbyTask
|
||||
|
||||
def run(job):
|
||||
job.opt_depth = 20
|
||||
job.opt_append = 0
|
||||
job.opt_aigsmt = "z3"
|
||||
|
||||
if "depth" in job.options:
|
||||
job.opt_depth = int(job.options["depth"])
|
||||
|
||||
if "append" in job.options:
|
||||
job.opt_append = int(job.options["append"])
|
||||
|
||||
if "aigsmt" in job.options:
|
||||
job.opt_aigsmt = job.options["aigsmt"]
|
||||
job.handle_int_option("depth", 20)
|
||||
job.handle_int_option("append", 0)
|
||||
job.handle_str_option("aigsmt", "z3")
|
||||
|
||||
job.status = "UNKNOWN"
|
||||
|
||||
|
@ -62,5 +53,3 @@ def run(job):
|
|||
else:
|
||||
assert False
|
||||
|
||||
job.taskloop()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue