2015-06-27 19:55:33 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
dashes="----------------------------------------------------------------"
|
2016-04-13 21:28:09 +08:00
|
|
|
printf '| %-25s | %-10s | %-20s |\n' "Device" "Speedgrade" "Clock Period (Freq.)"
|
|
|
|
printf '|:%.25s |:%.10s:| %.20s:|\n' $dashes $dashes $dashes
|
2015-06-27 19:55:33 +08:00
|
|
|
|
|
|
|
for x in $( grep -H . tab_*/results.txt )
|
|
|
|
do
|
|
|
|
read _ size device grade _ speed < <( echo "$x" | tr _/: ' ' )
|
|
|
|
case "$device" in
|
|
|
|
xc7a) d="Xilinx Artix-7T" ;;
|
|
|
|
xc7k) d="Xilinx Kintex-7T" ;;
|
|
|
|
xc7v) d="Xilinx Virtex-7T" ;;
|
2016-04-13 18:16:20 +08:00
|
|
|
xcku) d="Xilinx Kintex UltraScale" ;;
|
|
|
|
xcvu) d="Xilinx Virtex UltraScale" ;;
|
2017-07-20 15:56:30 +08:00
|
|
|
xckup) d="Xilinx Kintex UltraScale+" ;;
|
|
|
|
xcvup) d="Xilinx Virtex UltraScale+" ;;
|
2015-06-27 19:55:33 +08:00
|
|
|
esac
|
|
|
|
speedtxt=$( printf '%s.%s ns (%d MHz)' ${speed%?} ${speed#?} $((10000 / speed)) )
|
2016-04-13 21:28:09 +08:00
|
|
|
printf '| %-25s | %-10s | %20s |\n' "$d" "-$grade" "$speedtxt"
|
2015-06-27 19:55:33 +08:00
|
|
|
done
|