diff options
author | Andrew Zonenberg <azonenberg@drawersteak.com> | 2016-04-24 22:11:56 -0700 |
---|---|---|
committer | Andrew Zonenberg <azonenberg@drawersteak.com> | 2016-04-24 22:11:56 -0700 |
commit | d57c85111f4136e5ae098aa42cd337f82dd4b57e (patch) | |
tree | a63703d5fabc07ec6db777d56bb388b2ac3c99a7 /kernel/log.cc | |
parent | 349d7172023e9ee38b8e25e3bd04e2dfd0af1e62 (diff) | |
parent | b1d6f05fa2156017f50383d01d49342c8ec5e209 (diff) | |
download | yosys-d57c85111f4136e5ae098aa42cd337f82dd4b57e.tar.gz yosys-d57c85111f4136e5ae098aa42cd337f82dd4b57e.tar.bz2 yosys-d57c85111f4136e5ae098aa42cd337f82dd4b57e.zip |
Merge https://github.com/cliffordwolf/yosys
Diffstat (limited to 'kernel/log.cc')
-rw-r--r-- | kernel/log.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/log.cc b/kernel/log.cc index f2b343dff..fe84184a5 100644 --- a/kernel/log.cc +++ b/kernel/log.cc @@ -41,6 +41,7 @@ YOSYS_NAMESPACE_BEGIN std::vector<FILE*> log_files; std::vector<std::ostream*> log_streams; std::map<std::string, std::set<std::string>> log_hdump; +bool log_hdump_all = false; FILE *log_errfile = NULL; SHA1 *log_hasher = NULL; @@ -159,6 +160,9 @@ void logv_header(RTLIL::Design *design, const char *format, va_list ap) logv(format, ap); log_flush(); + if (log_hdump_all) + log_hdump[header_id].insert("yosys_dump_" + header_id + ".il"); + if (log_hdump.count(header_id) && design != nullptr) for (auto &filename : log_hdump.at(header_id)) { log("Dumping current design to '%s'.\n", filename.c_str()); |