-
Notifications
You must be signed in to change notification settings - Fork 3
/
run_hardware.sh
executable file
·72 lines (53 loc) · 2.54 KB
/
run_hardware.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/bin/bash
function ask_user() {
while true; do
echo -e "
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
| Which key schedule (ID) should be reconstructed? |
| |
| ID | used design type | expected runtime (ms) |
| ======|=====================|=========================|
| 1.) 0 | static general | 182,414 |
| 2.) 0 | instance-specific | 5 |
| 3.) 1 | static general | 2,783 |
| 4.) 2 | static general | 2,688 |
| 5.) 3 | static general | 62,207 |
| 6.) 4 | static general | 4,848 |
| 7.) 5 | static general | 64 |
| 8.) 6 | static general | 12,402 |
| 9.) 7 | static general | 2,119 |
| 10.) 8 | static general | 4,684 |
| 11.) 9 | static general | 613 |
| |
| 12.) EXIT |
| |
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#\n"
read -e -p "Select option: " choice
if [ "$choice" == "1" ]; then
hardware/general/RunRules/DFE/binaries/LocExtHWFixEVTOptCpuCode 0
elif [ "$choice" == "2" ]; then
hardware/isc-0/RunRules/DFE/binaries/LocExtHWFixEVTOptCpuCode 0
elif [ "$choice" == "3" ]; then
hardware/general/RunRules/DFE/binaries/LocExtHWFixEVTOptCpuCode 1
elif [ "$choice" == "4" ]; then
hardware/general/RunRules/DFE/binaries/LocExtHWFixEVTOptCpuCode 2
elif [ "$choice" == "5" ]; then
hardware/general/RunRules/DFE/binaries/LocExtHWFixEVTOptCpuCode 3
elif [ "$choice" == "6" ]; then
hardware/general/RunRules/DFE/binaries/LocExtHWFixEVTOptCpuCode 4
elif [ "$choice" == "7" ]; then
hardware/general/RunRules/DFE/binaries/LocExtHWFixEVTOptCpuCode 5
elif [ "$choice" == "8" ]; then
hardware/general/RunRules/DFE/binaries/LocExtHWFixEVTOptCpuCode 6
elif [ "$choice" == "9" ]; then
hardware/general/RunRules/DFE/binaries/LocExtHWFixEVTOptCpuCode 7
elif [ "$choice" == "10" ]; then
hardware/general/RunRules/DFE/binaries/LocExtHWFixEVTOptCpuCode 8
elif [ "$choice" == "11" ]; then
hardware/general/RunRules/DFE/binaries/LocExtHWFixEVTOptCpuCode 9
elif [ "$choice" == "12" ]; then
exit 0
fi
done
}
clear && ask_user