mirror of https://github.com/YosysHQ/picorv32.git
Fixed scripts/vivado/table.sh output formatting
This commit is contained in:
parent
faa1c1a159
commit
5ccd0bb572
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
dashes="----------------------------------------------------------------"
|
dashes="----------------------------------------------------------------"
|
||||||
printf '| %-20s | %-10s | %-20s |\n' "Device" "Speedgrade" "Clock Period (Freq.)"
|
printf '| %-25s | %-10s | %-20s |\n' "Device" "Speedgrade" "Clock Period (Freq.)"
|
||||||
printf '|:%.20s |:%.10s:| %.20s:|\n' $dashes $dashes $dashes
|
printf '|:%.25s |:%.10s:| %.20s:|\n' $dashes $dashes $dashes
|
||||||
|
|
||||||
for x in $( grep -H . tab_*/results.txt )
|
for x in $( grep -H . tab_*/results.txt )
|
||||||
do
|
do
|
||||||
|
@ -15,5 +15,5 @@ do
|
||||||
xcvu) d="Xilinx Virtex UltraScale" ;;
|
xcvu) d="Xilinx Virtex UltraScale" ;;
|
||||||
esac
|
esac
|
||||||
speedtxt=$( printf '%s.%s ns (%d MHz)' ${speed%?} ${speed#?} $((10000 / speed)) )
|
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
|
done
|
||||||
|
|
Loading…
Reference in New Issue