Fixed scripts/vivado/table.sh output formatting

This commit is contained in:
Clifford Wolf 2016-04-13 15:28:09 +02:00
parent faa1c1a159
commit 5ccd0bb572
1 changed files with 3 additions and 3 deletions

View File

@ -1,8 +1,8 @@
#!/bin/bash
dashes="----------------------------------------------------------------"
printf '| %-20s | %-10s | %-20s |\n' "Device" "Speedgrade" "Clock Period (Freq.)"
printf '|:%.20s |:%.10s:| %.20s:|\n' $dashes $dashes $dashes
printf '| %-25s | %-10s | %-20s |\n' "Device" "Speedgrade" "Clock Period (Freq.)"
printf '|:%.25s |:%.10s:| %.20s:|\n' $dashes $dashes $dashes
for x in $( grep -H . tab_*/results.txt )
do
@ -15,5 +15,5 @@ do
xcvu) d="Xilinx Virtex UltraScale" ;;
esac
speedtxt=$( printf '%s.%s ns (%d MHz)' ${speed%?} ${speed#?} $((10000 / speed)) )
printf '| %-20s | %-10s | %20s |\n' "$d" "-$grade" "$speedtxt"
printf '| %-25s | %-10s | %20s |\n' "$d" "-$grade" "$speedtxt"
done