mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-13 04:28:18 +00:00
have 'select -count' save the count to scratchpad entry 'select.count'
This commit is contained in:
parent
01cb02c81d
commit
a55c3db384
|
@ -1456,7 +1456,10 @@ struct SelectPass : public Pass {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (count_mode)
|
if (count_mode)
|
||||||
|
{
|
||||||
|
design->scratchpad_set_int("select.count", total_count);
|
||||||
log("%d objects.\n", total_count);
|
log("%d objects.\n", total_count);
|
||||||
|
}
|
||||||
if (f != nullptr)
|
if (f != nullptr)
|
||||||
fclose(f);
|
fclose(f);
|
||||||
#undef LOG_OBJECT
|
#undef LOG_OBJECT
|
||||||
|
|
Loading…
Reference in a new issue