From 2f9e6e08f0ce0f7b20d84cd033264feb6c89c381 Mon Sep 17 00:00:00 2001 From: williamzhu17 Date: Tue, 1 Apr 2025 10:39:33 -0700 Subject: [PATCH] added tests with constants --- tests/silimate/extract_reduce.ys | 165 ++++++++++++++++++++++++++----- 1 file changed, 139 insertions(+), 26 deletions(-) diff --git a/tests/silimate/extract_reduce.ys b/tests/silimate/extract_reduce.ys index 888f0182a..50bb09078 100644 --- a/tests/silimate/extract_reduce.ys +++ b/tests/silimate/extract_reduce.ys @@ -22,9 +22,38 @@ equiv_opt -assert extract_reduce design -load postopt opt_clean -# Check final design has correct number of gates +# Check final design has correct number of gates and inputs select -assert-count 0 t:$and -select -assert-count 1 t:$reduce_and +select -assert-count 1 t:$reduce_and r:A_WIDTH=4 %i + +design -reset +log -pop + + + +log -header "AND chain with constants" +log -push +design -reset +read_verilog <