From eefdcbfe8192eb45fc5cd6006a428906c1fac8b3 Mon Sep 17 00:00:00 2001 From: William Zhu Date: Thu, 27 Mar 2025 15:23:18 -0700 Subject: [PATCH] added ornot tests --- tests/silimate/mux_andnot.ys | 2 +- tests/silimate/mux_ornot.ys | 224 +++++++++++++++++++++++++++++++++++ 2 files changed, 225 insertions(+), 1 deletion(-) create mode 100644 tests/silimate/mux_ornot.ys diff --git a/tests/silimate/mux_andnot.ys b/tests/silimate/mux_andnot.ys index a0d67ba49..f3bac89a1 100644 --- a/tests/silimate/mux_andnot.ys +++ b/tests/silimate/mux_andnot.ys @@ -128,8 +128,8 @@ equiv_opt -assert opt_expr -mux_bool # Check final design has correct number of gates design -load postopt select -assert-count 1 t:$and -select -assert-count 1 t:$or select -assert-count 1 t:$not +select -assert-count 1 t:$or design -reset log -pop diff --git a/tests/silimate/mux_ornot.ys b/tests/silimate/mux_ornot.ys new file mode 100644 index 000000000..d4bba79e2 --- /dev/null +++ b/tests/silimate/mux_ornot.ys @@ -0,0 +1,224 @@ +log -header "Simple positive case" +log -push +design -reset +read_verilog <