Minor bugfix in "test_pmgen -generate"
authorClifford Wolf <clifford@clifford.at>
Fri, 16 Aug 2019 12:35:13 +0000 (14:35 +0200)
committerClifford Wolf <clifford@clifford.at>
Fri, 16 Aug 2019 12:35:13 +0000 (14:35 +0200)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
passes/pmgen/test_pmgen.cc

index d787d49bee6f48710aca662e1e36c47a0a6f79ec..5f7bf2189b8bfe1953c9a16642494f77079bc795 100644 (file)
@@ -156,7 +156,7 @@ void generate_pattern(std::function<void(pm&,std::function<void()>)> run, const
                int submodcnt = 0, itercnt = 0, cellcnt = 0;
                Module *mod = design->addModule(NEW_ID);
 
-               while (submodcnt < maxsubcnt && itercnt++ < 1000)
+               while (modcnt < 100 && submodcnt < maxsubcnt && itercnt++ < 1000)
                {
                        pm matcher(mod, mod->cells());