diff options
author | Tom Verbeure <tom_verbeure@yahoo.com> | 2016-08-29 21:12:08 -0700 |
---|---|---|
committer | Tom Verbeure <tom_verbeure@yahoo.com> | 2016-08-29 21:12:08 -0700 |
commit | 7bf87502aa70052042cd2e9d8ff9da593a887aa6 (patch) | |
tree | e0a0a88a72cdff7644e5a9cfeb66ee065f6911e7 /scripts/quartus/table.sh | |
parent | 9d13c05dd210252e540179c8f1d120c89a26289a (diff) | |
download | picorv32-7bf87502aa70052042cd2e9d8ff9da593a887aa6.tar.gz picorv32-7bf87502aa70052042cd2e9d8ff9da593a887aa6.zip |
Clone vivado dir into quartus dir
Diffstat (limited to 'scripts/quartus/table.sh')
-rw-r--r-- | scripts/quartus/table.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/scripts/quartus/table.sh b/scripts/quartus/table.sh new file mode 100644 index 0000000..f81f586 --- /dev/null +++ b/scripts/quartus/table.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +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 + 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" ;; + xcku) d="Xilinx Kintex UltraScale" ;; + xcvu) d="Xilinx Virtex UltraScale" ;; + esac + speedtxt=$( printf '%s.%s ns (%d MHz)' ${speed%?} ${speed#?} $((10000 / speed)) ) + printf '| %-25s | %-10s | %20s |\n' "$d" "-$grade" "$speedtxt" +done |