@@ -62,14 +62,12 @@ _DRY_RUN="off"
62
62
_RANDOM_DRY_RUN=" off"
63
63
_GENERATE_BLIF=" off"
64
64
_REGENERATE_BLIF=" off"
65
- _FORCE_GENERATE_BLIF=" off"
66
65
_REGENERATE_EXPECTATION=" off"
67
66
_GENERATE_EXPECTATION=" off"
68
67
_CONTINUE=" off"
69
68
_REPORT=" on"
70
69
_STATUS_ONLY=" off"
71
70
_RUN_YOSYS_ARGS=" "
72
- _CLEAN_UP=" off"
73
71
74
72
# #############################################
75
73
# Exit Functions
@@ -202,10 +200,6 @@ function generate_blifs() {
202
200
BENCHMARK=" $1 "
203
201
BENCH_NAME=$( echo ${BENCHMARK} | sed ' s/.*\(_BLIF\)/\1/g' )
204
202
205
- if [ " _${_CLEAN_UP} " == " _on" ]; then
206
- _RUN_YOSYS_ARGS+=" --clean "
207
- fi
208
-
209
203
if [ _${_GENERATE_BLIF} = " _on" ]; then
210
204
echo " Generating missed BLIF files for benchmarks in ${REGRESSION_DIR} /benchmark/_VERILOG/${BENCH_NAME} "
211
205
elif [ _${_REGENERATE_BLIF} = " _on" ]; then
@@ -395,7 +389,6 @@ function parse_args() {
395
389
396
390
;;-c|--clean)
397
391
echo " Cleaning temporary run in directory"
398
- _CLEAN_UP=" on"
399
392
cleanup_temp
400
393
401
394
;;-f|--force_simulate)
@@ -577,7 +570,7 @@ function populate_arg_from_file() {
577
570
578
571
;;_circuit_list_add)
579
572
# glob the value
580
- _circuit_list_add+=( " ${_circuits_dir} " /${_value} )
573
+ _circuit_list_add+=( " ${_circuits_dir} " /${_value} )
581
574
582
575
;;_archs_dir)
583
576
if [ ! -d " ${_value} " ]
@@ -710,12 +703,7 @@ function populate_arg_from_file() {
710
703
do
711
704
if [ ! -f " ${circuit_list_item} " ]
712
705
then
713
- if [ " _${_local_techmap_params} " != " _" ]; then
714
- echo " file ${circuit_list_item} not found, will be generating.."
715
- _FORCE_GENERATE_BLIF=" on"
716
- else
717
- echo " file ${circuit_list_item} not found, skipping"
718
- fi
706
+ echo " file ${circuit_list_item} not found, skipping"
719
707
else
720
708
_circuit_list+=( " ${circuit_list_item} " )
721
709
fi
@@ -903,18 +891,6 @@ function sim() {
903
891
esac
904
892
done
905
893
906
- # ###################################
907
- # generate yosys BLIFs if needed
908
- if [ " _${_techmap} " == " _on" ]; then
909
- # check if blif generting flags are active
910
- if [ " _${_CLEAN_UP} " == " _on" ] || \
911
- [ " _${_GENERATE_BLIF} " == " _on" ] || \
912
- [ " _${_REGENERATE_BLIF} " == " _on" ] || \
913
- [ " _${_FORCE_GENERATE_BLIF} " == " _on" ]; then
914
- generate_blifs " ${benchmark_dir/ ${THIS_DIR} \/ } "
915
- fi
916
- fi
917
-
918
894
# #########################################
919
895
# setup defaults
920
896
@@ -1646,6 +1622,10 @@ function run_suite() {
1646
1622
1647
1623
for (( i = 0 ; i < ${# task_list[@]} ; i++ )) ;
1648
1624
do
1625
+ # check if blif generting flags are active
1626
+ if [ " _${_GENERATE_BLIF} " == " _on" ] || [ " _${_REGENERATE_BLIF} " == " _on" ]; then
1627
+ generate_blifs " ${task_list[$i]} "
1628
+ fi
1649
1629
run_task " ${task_list[$i]} "
1650
1630
TEST_COUNT=$(( TEST_COUNT + 1 ))
1651
1631
done
0 commit comments