File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments