aboutsummaryrefslogtreecommitdiffstats
path: root/passes/techmap/abc9.cc
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2020-01-17 12:00:14 -0800
committerEddie Hung <eddie@fpgeh.com>2020-01-17 12:00:14 -0800
commitd4e188299ba729756ee689d14c81aab68a7ca1b7 (patch)
treebcd24debeffc72b8770860b6f65f652d6b674b66 /passes/techmap/abc9.cc
parent03ce2c72bb4e8cd32df994dec04815fa5ecec6fe (diff)
downloadyosys-d4e188299ba729756ee689d14c81aab68a7ca1b7.tar.gz
yosys-d4e188299ba729756ee689d14c81aab68a7ca1b7.tar.bz2
yosys-d4e188299ba729756ee689d14c81aab68a7ca1b7.zip
abc9: add some log_{push,pop}() as per @nakengelhardt
Diffstat (limited to 'passes/techmap/abc9.cc')
-rw-r--r--passes/techmap/abc9.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/passes/techmap/abc9.cc b/passes/techmap/abc9.cc
index 6a296bfe7..f4a89efff 100644
--- a/passes/techmap/abc9.cc
+++ b/passes/techmap/abc9.cc
@@ -235,8 +235,11 @@ struct Abc9Pass : public ScriptPass
extra_args(args, argidx, design);
log_header(design, "Executing ABC9 pass.\n");
+ log_push();
run_script(design, run_from, run_to);
+
+ log_pop();
}
void script() YS_OVERRIDE
@@ -276,6 +279,7 @@ struct Abc9Pass : public ScriptPass
}
log_assert(!mod->attributes.count(ID(abc9_box_id)));
+ log_push();
active_design->selection().select(mod);
if (!active_design->selected_whole_module(mod))
@@ -310,6 +314,7 @@ struct Abc9Pass : public ScriptPass
}
active_design->selection().selected_modules.clear();
+ log_pop();
}
active_design->selection_stack.pop_back();