set pwr_rpt [split [report_power -quiet -return_string -xpe ${pd}_${rd}.xpe] \n]
for {set i 0} {$i<150} {incr i} {
set line [clean_line [lindex $pwr_rpt $i]]
if {[lrange $line 1 4] == "Total On-Chip Power W"} {
puts total_power [lindex $line 6]; # Am getting an error here as variable not declared
set total_power [lindex $line 6]
}
}
Getting error as no variable declared