blob: 879db2e33ac0b160c82922cea97c59cf4168bbda (
plain)
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
|
#! /bin/bash
#setup
while read benchmark ;
do
echo "Setting up "$benchmark
rm -r $benchmark
mkdir $benchmark
cp $benchmark.v $benchmark/top.v
done < syn-list
#synthesis
count=0
while read benchmark ;
do
echo "Synthesising "$benchmark
cd $benchmark
quartus_sh -t ../quartus_synth.tcl &
let "count=count+1"
cd ..
if [ $count -eq 4 ]
then
echo "I am here"
wait
count=0
fi
done < syn-list
if [ $count -lt 4 ]
then
wait
fi
#extract
while read benchmark ; do
cd $benchmark
echo $(pwd)
freq=$(grep MHz syn.sta.rpt | tail -2 | head -1 | awk '{print $2}')
lut=$(sed -n -e 8p syn.fit.summary | awk '{print $6}' | sed 's/,//g')
regs=$(sed -n -e 9p syn.fit.summary | awk '{print $4}')
bram=$(sed -n -e 13p syn.fit.summary | awk '{print $5}')
dsp=$(sed -n -e 14p syn.fit.summary | awk '{print $5}')
cd ..
echo $benchmark","$freq","$lut","$regs","$bram","$dsp >> results
done < syn-list
|