Skip to content

Commit 67130d7

Browse files
committed
fixed a bug in the synth_test script
1 parent 36f9a5b commit 67130d7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

experiments/synth_place_route_test.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ do
3333

3434
#echo " " >> $workingdir/$synth_summary_rpt
3535
cycle_count_str=`grep "cycles" "${sim_report_dir}/${myArray[$i]}_cycles_count.rpt"`
36-
cycle_count=`echo $cycle_count_str | tr -dc '0-9'`
37-
echo "The cycles count from simulation is ${cycle_count}" >> $workingdir/$synth_summary_rpt
38-
exec_time=`echo "$cycle_count * $actual_cp" | bc`
36+
#cycle_count=`echo $cycle_count_str | tr -dc '0-9'`
37+
cycle_count=`echo ${cycle_count_str% *}`
38+
cycle_count_final=`echo ${cycle_count##* }`
39+
echo "The cycles count from simulation is ${cycle_count_final}" >> $workingdir/$synth_summary_rpt
40+
exec_time=`echo "$cycle_count_final * $actual_cp" | bc`
3941
echo "The total execution time is ${exec_time}ns" >> $workingdir/$synth_summary_rpt
4042
echo " " >> $workingdir/$synth_summary_rpt
4143

0 commit comments

Comments
 (0)