diff options
author | Clifford Wolf <clifford@clifford.at> | 2015-06-27 13:55:33 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2015-06-27 13:55:33 +0200 |
commit | dee66e136e9c24ad52684a72ee77762627b4eaa7 (patch) | |
tree | 0b3ad3b0312cf079eb37f340d5c777fe8dd493ca /scripts/vivado/table.sh | |
parent | 2bd43fff68a9aa0e408472a0bd0173ed1fbf67e2 (diff) | |
download | picorv32-dee66e136e9c24ad52684a72ee77762627b4eaa7.tar.gz picorv32-dee66e136e9c24ad52684a72ee77762627b4eaa7.zip |
Added "make table.txt" vivado scripts
Diffstat (limited to 'scripts/vivado/table.sh')
-rw-r--r-- | scripts/vivado/table.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/vivado/table.sh b/scripts/vivado/table.sh new file mode 100644 index 0000000..9e8b9d1 --- /dev/null +++ b/scripts/vivado/table.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +dashes="----------------------------------------------------------------" +printf '| %-20s | %-10s | %-20s |\n' "Device" "Speedgrade" "Clock Period (Freq.)" +printf '|:%.20s |:%.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" ;; + esac + speedtxt=$( printf '%s.%s ns (%d MHz)' ${speed%?} ${speed#?} $((10000 / speed)) ) + printf '| %-20s | %-10s | %20s |\n' "$d" "-$grade" "$speedtxt" +done |