aboutsummaryrefslogtreecommitdiffstats
path: root/passes/pmgen/test_pmgen.pmg
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2019-08-16 14:16:35 +0200
committerClifford Wolf <clifford@clifford.at>2019-08-16 14:16:35 +0200
commit20910fd7c8638ec58c85e750d5b8a7da1c83cded (patch)
tree37e6be645fc4ec781c96e57174fa3e231a61106e /passes/pmgen/test_pmgen.pmg
parentf45dad8220ed7c24ddaad5fc3f84bb80ddafb5ae (diff)
downloadyosys-20910fd7c8638ec58c85e750d5b8a7da1c83cded.tar.gz
yosys-20910fd7c8638ec58c85e750d5b8a7da1c83cded.tar.bz2
yosys-20910fd7c8638ec58c85e750d5b8a7da1c83cded.zip
Add pmgen finish statement, return number of matches
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'passes/pmgen/test_pmgen.pmg')
-rw-r--r--passes/pmgen/test_pmgen.pmg5
1 files changed, 3 insertions, 2 deletions
diff --git a/passes/pmgen/test_pmgen.pmg b/passes/pmgen/test_pmgen.pmg
index 077d337d6..211477a62 100644
--- a/passes/pmgen/test_pmgen.pmg
+++ b/passes/pmgen/test_pmgen.pmg
@@ -41,7 +41,8 @@ code
finally
chain.pop_back();
log_assert(chain.empty());
- accept;
+ if (GetSize(longest_chain) > 1)
+ accept;
endcode
// ------------------------------------------------------------------
@@ -80,7 +81,7 @@ match next
select next->type.in($_AND_, $_OR_, $_XOR_)
index <IdString> next->type === chain.back().first->type
index <SigSpec> port(next, \Y) === port(chain.back().first, chain.back().second)
-generate 50
+generate 10
SigSpec A = module->addWire(NEW_ID);
SigSpec B = module->addWire(NEW_ID);
SigSpec Y = port(chain.back().first, chain.back().second);