diff options
author | Eddie Hung <eddie@fpgeh.com> | 2020-01-10 17:13:27 -0800 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2020-01-10 17:13:27 -0800 |
commit | f24de88f385a3eeaadd9b9c8c200a7c338f37448 (patch) | |
tree | 27fefa8cdfebbfaa98d4443501def3fd3ce61298 /passes/techmap | |
parent | 28f814ee59e36230200108381a9c674c5275e3e4 (diff) | |
download | yosys-f24de88f385a3eeaadd9b9c8c200a7c338f37448.tar.gz yosys-f24de88f385a3eeaadd9b9c8c200a7c338f37448.tar.bz2 yosys-f24de88f385a3eeaadd9b9c8c200a7c338f37448.zip |
log_debug() for abc9_{arrival,required} times
Diffstat (limited to 'passes/techmap')
-rw-r--r-- | passes/techmap/abc9_ops.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/passes/techmap/abc9_ops.cc b/passes/techmap/abc9_ops.cc index 918afd284..eac1ff2b6 100644 --- a/passes/techmap/abc9_ops.cc +++ b/passes/techmap/abc9_ops.cc @@ -512,7 +512,7 @@ void prep_times(RTLIL::Design *design) requireds.clear(); for (auto cell : boxes) { RTLIL::Module* inst_module = module->design->module(cell->type); - + log_assert(inst_module); for (auto &conn : cell->connections_) { auto port_wire = inst_module->wire(conn.first); if (!port_wire->port_input) @@ -537,6 +537,12 @@ void prep_times(RTLIL::Design *design) SigSpec O = module->addWire(NEW_ID, GetSize(conn.second)); for (const auto &i : requireds) { +#ifndef NDEBUG + if (ys_debug(1)) { + static std::set<std::pair<IdString,IdString>> seen; + if (seen.emplace(cell->type, conn.first).second) log("%s.%s abc9_required = %d\n", log_id(cell->type), log_id(conn.first), i.first); + } +#endif delays.insert(i.first); for (auto offset : i.second) { auto box = module->addCell(NEW_ID, ID($__ABC9_DELAY)); |