Commit 7b07dac9 authored by az2lou's avatar az2lou
Browse files

get fmax

parent c84b49b3
......@@ -7,7 +7,7 @@ alias vivado="/opt/Xilinx/Vivado/2018.2/bin/vivado"
for device in xc7s50 xc7s75 xc7s100
do
FOLDERS="/home/az2lou/Code/xilinx-tools/output/$device/*"
echo "design, logic, rent parameter" > $XILINX_TOOL_HOME/output/$device/results.csv
echo "design, logic, rent parameter, fmax (MHz)" > $XILINX_TOOL_HOME/output/$device/results.csv
for f in $FOLDERS
do
......@@ -22,6 +22,14 @@ do
# LUTs used
luts=$(grep 'Slice LUTs.\s*\|\s*(\d+)' utilization.txt | tr -s ' ' | cut -d ' ' -f 5)
echo "$design, $luts, $p_rent" >> $XILINX_TOOL_HOME/output/$device/results.csv
# FMax
# From Vivado
wns=$(grep -A 6 "Intra Clock Table" proj/proj.runs/impl_1/template_timing_summary_routed.rpt | tail -n 1 | tr -s " " | cut -d" " -f2)
# 100 Mhz target clock
period=10
fmax=$(echo "1000 / ($period - $wns)" | bc)
echo "$design, $luts, $p_rent, $fmax" >> $XILINX_TOOL_HOME/output/$device/results.csv
done
done
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment