3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-07 18:05:24 +00:00

Account for maxsubcnt overflowing

This commit is contained in:
Eddie Hung 2019-08-26 17:48:54 -07:00
parent b32d6bf403
commit 45c34c87ee

View file

@ -217,7 +217,7 @@ void generate_pattern(std::function<void(pm&,std::function<void()>)> run, const
run(matcher, [](){});
}
if (submodcnt)
if (submodcnt && maxsubcnt < (1 << 16))
maxsubcnt *= 2;
design->remove(mod);