diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-06-26 20:07:31 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-06-26 20:07:31 -0700 |
commit | dbb8c8caaa50d83c12665b7cfd11d79e8af06196 (patch) | |
tree | 4422b6cb7f3c8560847ead3545ea98b3638404eb /backends/aiger/xaiger.cc | |
parent | b9ff0503f39795a1f749c955b129d9972fe03f0a (diff) | |
parent | c226af3f56957cc69b2ce8bb68a8259e26121ddc (diff) | |
download | yosys-dbb8c8caaa50d83c12665b7cfd11d79e8af06196.tar.gz yosys-dbb8c8caaa50d83c12665b7cfd11d79e8af06196.tar.bz2 yosys-dbb8c8caaa50d83c12665b7cfd11d79e8af06196.zip |
Merge remote-tracking branch 'origin/xaig' into xc7mux
Diffstat (limited to 'backends/aiger/xaiger.cc')
-rw-r--r-- | backends/aiger/xaiger.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/backends/aiger/xaiger.cc b/backends/aiger/xaiger.cc index 7cfe8272c..92df899c2 100644 --- a/backends/aiger/xaiger.cc +++ b/backends/aiger/xaiger.cc @@ -293,10 +293,12 @@ struct XAigerWriter #if 0 unsigned i = 0; for (auto &it : toposort.loops) { - log(" loop %d", i++); - for (auto cell : it) - log(" %s", log_id(cell)); - log("\n"); + log(" loop %d\n", i++); + for (auto cell_name : it) { + auto cell = module->cell(cell_name); + log_assert(cell); + log("\t%s (%s @ %s)\n", log_id(cell), log_id(cell->type), cell->get_src_attribute().c_str()); + } } #endif log_assert(no_loops); |