-
Notifications
You must be signed in to change notification settings - Fork 1
/
run_all.sh
executable file
·48 lines (42 loc) · 1.07 KB
/
run_all.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# - Kashif Inayat - [email protected]
#
# REVISION:
# 0.0.1 - Initial release. 2024-05-27
##Removing
# node="32nm"
# dir=("encrypt_1block_128" "encrypt_2blocks_128" "encrypt_3blocks_128" "encrypt_6blocks_128" "ascon_encrypt")
# for str in ${dir[@]}; do
# cd ./$str
# rm -r input*
# rm -r pdk*
# rm -r scripts*
# rm -r *.py
# rm -r Make*
# cd ../
# done
# ## Running all
node="32nm"
dir=("encrypt_1block_128" "encrypt_2blocks_128" "encrypt_3blocks_128" "encrypt_6blocks_128" "ascon_encrypt")
for str in ${dir[@]}; do
cd ./$str
mkdir work_dc
python3 run_synthesis.py --pdk $node
python3 run_power.py --pdk $node
python3 collect_all.py
mkdir pdk$node
mv work_dc ./pdk$node
mv flis* ./pdk$node
mv nflis* ./pdk$node
mv synth* ./pdk$node
mv log_* ./pdk$node
rm -r work_*
cd ../
done
##copying
# dir=("encrypt_1block_128" "encrypt_2blocks_128" "encrypt_3blocks_128" "encrypt_6blocks_128")
# for str in ${dir[@]}; do
# #cp ./test/flist.f ./$str/
# #cp ./test/nflist.f ./$str/
# #cp -r ./test/inputs ./$str/
# #cp -r ./test/scripts ./$str/
# done