-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_kyber1024.sh
More file actions
30 lines (23 loc) · 1.04 KB
/
run_kyber1024.sh
File metadata and controls
30 lines (23 loc) · 1.04 KB
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
#!/bin/bash
echo "athos_x_heep KEM-KYBER1024 simulation"
echo "Insert if you want ORIGINAL or ATHOS code:"
read code
commands_1024=(
"make clean-app"
"make app-testvectors-kem-${code}-kyber1024_clean ORIGINAL=${code} SCHEME=kyber1024 PROJECT=kyber1024"
"./../../../../software/x-heep/riscv-centos/bin/riscv32-unknown-elf-size ./sw/applications/PQClean-${code}/test/crypto_kem/testvectors-kyber1024_clean.elf"
)
# Loop through and execute the commands
for cmd in "${commands_1024[@]}"; do
echo "Executing: $cmd"
eval $cmd
if [ $? -ne 0 ]; then
echo "Error: Command '$cmd' failed."
fi
done
echo "All commands from the Makefile have been executed successfully."
read -p "Press Enter to continue with the last command: 'make run-testvector-kem-${code}-kyber1024-clean-questasim SCHEME=kyber1024'"
make run-testvector-kem-${code}-kyber1024-clean-questasim SCHEME=kyber1024 ORIGINAL=${code}
if [ $? -ne 0 ]; then
echo "Error: Command 'make run-testvector-kem-${code}-kyber1024-clean-questasim SCHEME=kyber1024' failed."
fi