aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/register.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2019-08-07 12:14:41 +0200
committerGitHub <noreply@github.com>2019-08-07 12:14:41 +0200
commitc5d56fbe2d197b28a5d30983506af5d36868abd7 (patch)
treec331fe8ec3639e5e0ac6ffdef235433bb650d517 /kernel/register.cc
parentf1ac998bb46619fa75d086797617d162cfc7b90d (diff)
parent95a6582f342537d387063be10cba55c001ed19f5 (diff)
downloadyosys-c5d56fbe2d197b28a5d30983506af5d36868abd7.tar.gz
yosys-c5d56fbe2d197b28a5d30983506af5d36868abd7.tar.bz2
yosys-c5d56fbe2d197b28a5d30983506af5d36868abd7.zip
Merge pull request #1253 from YosysHQ/clifford/check
Be less aggressive with running design->check()
Diffstat (limited to 'kernel/register.cc')
-rw-r--r--kernel/register.cc10
1 files changed, 3 insertions, 7 deletions
diff --git a/kernel/register.cc b/kernel/register.cc
index 4f60338e9..e4237cac4 100644
--- a/kernel/register.cc
+++ b/kernel/register.cc
@@ -295,8 +295,6 @@ void Pass::call(RTLIL::Design *design, std::vector<std::string> args)
pass_register[args[0]]->post_execute(state);
while (design->selection_stack.size() > orig_sel_stack_pos)
design->selection_stack.pop_back();
-
- design->check();
}
void Pass::call_on_selection(RTLIL::Design *design, const RTLIL::Selection &selection, std::string command)
@@ -378,8 +376,10 @@ void ScriptPass::run(std::string command, std::string info)
log(" %s\n", command.c_str());
else
log(" %s %s\n", command.c_str(), info.c_str());
- } else
+ } else {
Pass::call(active_design, command);
+ active_design->check();
+ }
}
void ScriptPass::run_script(RTLIL::Design *design, std::string run_from, std::string run_to)
@@ -573,8 +573,6 @@ void Frontend::frontend_call(RTLIL::Design *design, std::istream *f, std::string
args.push_back(filename);
frontend_register[args[0]]->execute(args, design);
}
-
- design->check();
}
Backend::Backend(std::string name, std::string short_help) :
@@ -698,8 +696,6 @@ void Backend::backend_call(RTLIL::Design *design, std::ostream *f, std::string f
while (design->selection_stack.size() > orig_sel_stack_pos)
design->selection_stack.pop_back();
-
- design->check();
}
static struct CellHelpMessages {