|
2 | 2 |
|
3 | 3 | set -e |
4 | 4 |
|
| 5 | +cmd="" |
| 6 | +if [ "$ENABLE_VALGRIND" == "1" ] |
| 7 | +then |
| 8 | + cmd="valgrind --error-exitcode=11 " |
| 9 | +fi |
| 10 | + |
5 | 11 | # Basic corruption |
6 | | -yosys -m moosic -p "read_blif benchmarks/blif/c1355.blif; flatten; synth; logic_locking -target corruption" |
| 12 | +$cmd yosys -m moosic -p "read_blif benchmarks/blif/c1355.blif; flatten; synth; logic_locking -target corruption" |
7 | 13 |
|
8 | 14 | # Basic pairwise |
9 | | -yosys -m moosic -p "read_blif benchmarks/blif/c1355.blif; flatten; synth; logic_locking -target pairwise" |
| 15 | +$cmd yosys -m moosic -p "read_blif benchmarks/blif/c1355.blif; flatten; synth; logic_locking -target pairwise" |
10 | 16 |
|
11 | 17 | # Basic hybrid |
12 | | -yosys -m moosic -p "read_blif benchmarks/blif/c1355.blif; flatten; synth; logic_locking -target hybrid" |
| 18 | +$cmd yosys -m moosic -p "read_blif benchmarks/blif/c1355.blif; flatten; synth; logic_locking -target hybrid" |
13 | 19 |
|
14 | 20 | # Basic pairwise without deduplication |
15 | | -yosys -m moosic -p "read_blif benchmarks/blif/c1355.blif; flatten; synth; logic_locking -target pairwise-no-dedup" |
| 21 | +$cmd yosys -m moosic -p "read_blif benchmarks/blif/c1355.blif; flatten; synth; logic_locking -target pairwise-no-dedup" |
16 | 22 |
|
17 | 23 | # Set key percent and key |
18 | | -yosys -m moosic -p "read_blif benchmarks/blif/c1355.blif; flatten; synth; logic_locking -key-percent 5 -key 0a239e" |
| 24 | +$cmd yosys -m moosic -p "read_blif benchmarks/blif/c1355.blif; flatten; synth; logic_locking -key-percent 5 -key 0a239e" |
19 | 25 |
|
20 | 26 | # Set key bits and key |
21 | | -yosys -m moosic -p "read_blif benchmarks/blif/c1355.blif; flatten; synth; logic_locking -key-bits 10 -key 0a239e" |
| 27 | +$cmd yosys -m moosic -p "read_blif benchmarks/blif/c1355.blif; flatten; synth; logic_locking -key-bits 10 -key 0a239e" |
22 | 28 |
|
23 | 29 | # Set number of test vectors and keys |
24 | | -yosys -m moosic -p "read_blif benchmarks/blif/c1355.blif; flatten; synth; logic_locking -nb-test-vectors 99 -nb-analysis-keys 95 -nb-analysis-vectors 1079" |
| 30 | +$cmd yosys -m moosic -p "read_blif benchmarks/blif/c1355.blif; flatten; synth; logic_locking -nb-test-vectors 99 -nb-analysis-keys 95 -nb-analysis-vectors 1079" |
25 | 31 |
|
26 | 32 | # Explore |
27 | | -yosys -m moosic -p "read_blif benchmarks/blif/c1355.blif; flatten; synth; logic_locking -explore -output-dir logs" |
| 33 | +$cmd yosys -m moosic -p "read_blif benchmarks/blif/c1355.blif; flatten; synth; logic_locking -explore -output-dir logs" |
28 | 34 |
|
29 | 35 | # No analysis |
30 | | -yosys -m moosic -p "read_blif benchmarks/blif/c1355.blif; flatten; synth; logic_locking -nb-analysis-keys 0" |
| 36 | +$cmd yosys -m moosic -p "read_blif benchmarks/blif/c1355.blif; flatten; synth; logic_locking -nb-analysis-keys 0" |
31 | 37 |
|
32 | 38 | # Change port name |
33 | | -yosys -m moosic -p "read_blif benchmarks/blif/c1355.blif; flatten; synth; logic_locking -port-name test_port" |
| 39 | +$cmd yosys -m moosic -p "read_blif benchmarks/blif/c1355.blif; flatten; synth; logic_locking -port-name test_port" |
0 commit comments