From 8666e9ae453d90501deac1e20f2ee39b9abf29da Mon Sep 17 00:00:00 2001 From: William Zhu Date: Thu, 27 Mar 2025 15:13:57 -0700 Subject: [PATCH 1/4] tests for mux_andnot --- tests/silimate/mux_andnot.ys | 223 +++++++++++++++++++++++++++++++++++ 1 file changed, 223 insertions(+) create mode 100644 tests/silimate/mux_andnot.ys diff --git a/tests/silimate/mux_andnot.ys b/tests/silimate/mux_andnot.ys new file mode 100644 index 000000000..e0616a087 --- /dev/null +++ b/tests/silimate/mux_andnot.ys @@ -0,0 +1,223 @@ +log -header "Simple positive case" +log -push +design -reset +read_verilog < Date: Thu, 27 Mar 2025 15:14:28 -0700 Subject: [PATCH 2/4] removed dump verilog --- tests/silimate/mux_andnot.ys | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/silimate/mux_andnot.ys b/tests/silimate/mux_andnot.ys index e0616a087..a0d67ba49 100644 --- a/tests/silimate/mux_andnot.ys +++ b/tests/silimate/mux_andnot.ys @@ -215,7 +215,6 @@ equiv_opt -assert opt_expr -mux_bool # Check final design has correct number of gates design -load postopt -write_verilog dump.v select -assert-count 1 t:$and select -assert-count 1 t:$not From eefdcbfe8192eb45fc5cd6006a428906c1fac8b3 Mon Sep 17 00:00:00 2001 From: William Zhu Date: Thu, 27 Mar 2025 15:23:18 -0700 Subject: [PATCH 3/4] 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 < Date: Thu, 27 Mar 2025 15:27:15 -0700 Subject: [PATCH 4/4] code cleanup --- tests/silimate/mux_ornot.ys | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/silimate/mux_ornot.ys b/tests/silimate/mux_ornot.ys index d4bba79e2..c6d153ba3 100644 --- a/tests/silimate/mux_ornot.ys +++ b/tests/silimate/mux_ornot.ys @@ -71,9 +71,7 @@ equiv_opt -assert opt_expr -mux_bool # Check final design has correct number of gates # Did not include check for not count since we have an unassigned ~s wire -# TODO check design -load postopt -write_verilog dump.v select -assert-count 1 t:$or design -reset