aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/yosys.cc
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2019-08-09 09:46:37 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2019-08-09 09:46:37 +0200
commit7a860c562323b8279cdbb8626a47ac8466c78b4c (patch)
treed713b5c04ab34aadcbd310237a8cc46951f83e37 /kernel/yosys.cc
parent8a3329871ba7bab98982a101327b8375cd73344d (diff)
parentac2fc3a144fe1094bedcc6b3fda8a498ad43ae76 (diff)
downloadyosys-7a860c562323b8279cdbb8626a47ac8466c78b4c.tar.gz
yosys-7a860c562323b8279cdbb8626a47ac8466c78b4c.tar.bz2
yosys-7a860c562323b8279cdbb8626a47ac8466c78b4c.zip
Merge remote-tracking branch 'upstream/master' into efinix
Diffstat (limited to 'kernel/yosys.cc')
-rw-r--r--kernel/yosys.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/kernel/yosys.cc b/kernel/yosys.cc
index 191b6d5c7..a4cc53f1a 100644
--- a/kernel/yosys.cc
+++ b/kernel/yosys.cc
@@ -964,14 +964,18 @@ void run_frontend(std::string filename, std::string command, std::string *backen
command += next_line;
}
handle_label(command, from_to_active, run_from, run_to);
- if (from_to_active)
+ if (from_to_active) {
Pass::call(design, command);
+ design->check();
+ }
}
if (!command.empty()) {
handle_label(command, from_to_active, run_from, run_to);
- if (from_to_active)
+ if (from_to_active) {
Pass::call(design, command);
+ design->check();
+ }
}
}
catch (...) {
@@ -1000,6 +1004,7 @@ void run_frontend(std::string filename, std::string command, std::string *backen
Pass::call(design, vector<string>({command, filename}));
else
Frontend::frontend_call(design, NULL, filename, command);
+ design->check();
}
void run_frontend(std::string filename, std::string command, RTLIL::Design *design)
@@ -1183,6 +1188,7 @@ void shell(RTLIL::Design *design)
design->selection_stack.pop_back();
log_reset_stack();
}
+ design->check();
}
if (command == NULL)
printf("exit\n");