mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-19 17:50:26 +00:00
Reject if not minlen from inside pattern matcher
This commit is contained in:
parent
cab2bd083e
commit
1c7d721558
2 changed files with 11 additions and 8 deletions
|
@ -2,6 +2,7 @@ pattern reduce
|
|||
|
||||
udata <vector<Cell*>> chain longest_chain
|
||||
udata <pool<Cell*>> non_first_cells
|
||||
udata <int> minlen
|
||||
|
||||
code
|
||||
non_first_cells.clear();
|
||||
|
@ -38,7 +39,7 @@ code
|
|||
finally
|
||||
chain.pop_back();
|
||||
log_assert(chain.empty());
|
||||
if (GetSize(longest_chain) > 1)
|
||||
if (GetSize(longest_chain) >= minlen)
|
||||
accept;
|
||||
endcode
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue