mirror of
https://github.com/YosysHQ/yosys
synced 2025-11-23 14:11:28 +00:00
driver: fix timing data divison by zero when no passes run
This commit is contained in:
parent
1dd5b150e5
commit
c48bc56f4a
1 changed files with 9 additions and 4 deletions
|
|
@ -707,11 +707,16 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
for (auto &it : pass_register)
|
for (auto &it : pass_register)
|
||||||
if (it.second->call_counter) {
|
if (it.second->call_counter) {
|
||||||
total_ns += it.second->runtime_ns + 1;
|
auto pass_ns = it.second->runtime_ns + 1;
|
||||||
timedat.insert(make_tuple(it.second->runtime_ns + 1, it.second->call_counter, it.first));
|
total_ns += pass_ns;
|
||||||
|
timedat.insert(make_tuple(pass_ns, it.second->call_counter, it.first));
|
||||||
}
|
}
|
||||||
timedat.insert(make_tuple(RTLIL::OwningIdString::garbage_collection_ns() + 1,
|
{
|
||||||
|
auto gc_ns = RTLIL::OwningIdString::garbage_collection_ns() + 1;
|
||||||
|
total_ns += gc_ns;
|
||||||
|
timedat.insert(make_tuple(gc_ns,
|
||||||
RTLIL::OwningIdString::garbage_collection_count(), "id_gc"));
|
RTLIL::OwningIdString::garbage_collection_count(), "id_gc"));
|
||||||
|
}
|
||||||
|
|
||||||
if (timing_details)
|
if (timing_details)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue