Add test for pmtest_test "reduce" demo pattern
authorClifford Wolf <clifford@clifford.at>
Sat, 17 Aug 2019 12:05:10 +0000 (14:05 +0200)
committerClifford Wolf <clifford@clifford.at>
Sat, 17 Aug 2019 12:05:10 +0000 (14:05 +0200)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
tests/various/pmgen_reduce.ys [new file with mode: 0644]

diff --git a/tests/various/pmgen_reduce.ys b/tests/various/pmgen_reduce.ys
new file mode 100644 (file)
index 0000000..c214d3f
--- /dev/null
@@ -0,0 +1,21 @@
+test_pmgen -generate reduce
+hierarchy -top pmtest_test_pmgen_pm_reduce
+flatten; opt_clean
+
+design -save gold
+test_pmgen -reduce_chain
+design -stash gate
+
+design -copy-from gold -as gold pmtest_test_pmgen_pm_reduce
+design -copy-from gate -as gate pmtest_test_pmgen_pm_reduce
+miter -equiv -flatten -make_assert gold gate miter
+sat -verify -prove-asserts miter
+
+design -load gold
+test_pmgen -reduce_tree
+design -stash gate
+
+design -copy-from gold -as gold pmtest_test_pmgen_pm_reduce
+design -copy-from gate -as gate pmtest_test_pmgen_pm_reduce
+miter -equiv -flatten -make_assert gold gate miter
+sat -verify -prove-asserts miter