mirror of
https://github.com/YosysHQ/yosys
synced 2026-06-06 09:00:54 +00:00
pmgen: hold sigmap pointer instead of owning it
This commit is contained in:
parent
647541a4c1
commit
8bbb0acdda
10 changed files with 61 additions and 42 deletions
|
|
@ -85,7 +85,8 @@ void generate_pattern(std::function<void(pm&,std::function<void()>)> run, const
|
|||
if (timeout++ > 10000)
|
||||
log_error("pmgen generator is stuck: 10000 iterations with no matching module generated.\n");
|
||||
|
||||
pm matcher(mod, mod->cells());
|
||||
SigMap sigmap(mod);
|
||||
pm matcher(mod, &sigmap, mod->cells());
|
||||
|
||||
matcher.rng(1);
|
||||
matcher.rngseed += modcnt;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue