Commit 3ffb4171 by SergeyDegtyar

Fix tests for misc/scc_feedback

parent 8f683d8f
...@@ -44,7 +44,7 @@ $(eval $(call template,show, show show_colorattr show_colors show_color show_enu ...@@ -44,7 +44,7 @@ $(eval $(call template,show, show show_colorattr show_colors show_color show_enu
#scc #scc
$(eval $(call template,scc, scc scc_all_cell_types scc_expect scc_max_depth scc_nofeedback scc_select scc_set_attr )) $(eval $(call template,scc, scc scc_all_cell_types scc_expect scc_max_depth scc_nofeedback scc_select scc_set_attr ))
$(eval $(call template,scc_feedback, scc scc_all_cell_types scc_expect scc_max_depth scc_nofeedback scc_select scc_set_attr )) $(eval $(call template,scc_feedback, scc scc_all_cell_types scc_expect1 scc_max_depth scc_nofeedback scc_select scc_set_attr ))
$(eval $(call template,scc_hier_feedback, scc scc_all_cell_types scc_expect scc_max_depth scc_nofeedback scc_select scc_set_attr )) $(eval $(call template,scc_hier_feedback, scc scc_all_cell_types scc_expect scc_max_depth scc_nofeedback scc_select scc_set_attr ))
......
...@@ -137,6 +137,9 @@ elif [ "$2" = "scatter" ]; then ...@@ -137,6 +137,9 @@ elif [ "$2" = "scatter" ]; then
elif [ "$1" = "scc" ] || \ elif [ "$1" = "scc" ] || \
[ "$1" = "scc_hier_feedback" ]; then [ "$1" = "scc_hier_feedback" ]; then
expected_string="0 SCCs" expected_string="0 SCCs"
if [ "$1" = "scc_hier_feedback" ] && [ "$2" = "scc_all_cell_types" ]; then
expected="0"
fi
elif [ "$1" = "scc_feedback" ]; then elif [ "$1" = "scc_feedback" ]; then
expected_string="0 SCCs" expected_string="0 SCCs"
expected="0" expected="0"
......
read_verilog ../top.v read_verilog ../top.v
proc
tee -o result.log scc -all_cell_types top tee -o result.log scc -all_cell_types top
read_verilog ../top.v read_verilog ../top.v
proc
tee -o result.log scc -expect 0 top tee -o result.log scc -expect 0 top
read_verilog ../top.v
proc
tee -o result.log scc -expect 1 top
read_verilog ../top.v read_verilog ../top.v
proc
tee -o result.log scc -max_depth 2 top tee -o result.log scc -max_depth 2 top
read_verilog ../top.v read_verilog ../top.v
proc
tee -o result.log scc -nofeedback top tee -o result.log scc -nofeedback top
read_verilog ../top.v read_verilog ../top.v
proc
tee -o result.log scc -set_attr attr true top tee -o result.log scc -set_attr attr true top
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment