Skip to content
Snippets Groups Projects
Commit 2dd13f54 authored by Lukasz Butkowski's avatar Lukasz Butkowski
Browse files

feat(vivado): print run error log, proper handling of OOC failure

parent c684d25f
Branches
Tags
No related merge requests found
......@@ -102,16 +102,37 @@ proc buildProject {args} {
set VivadoHost "-jobs $VivadoJobs"
}
if {[catch { eval launch_runs synth_1 $VivadoHost } resulttext ]} { puts $resulttext; exit -1 }
if {[catch { eval launch_runs synth_1 $VivadoHost } resulttext ]} { puts $resulttext; printRunResults ; exit -1 }
if {[catch { wait_on_run synth_1 } resulttext ]} { exit -1 }
if {[catch { eval launch_runs impl_1 $VivadoHost } resulttext ]} { puts $resulttext; exit -1 }
if {[catch { eval launch_runs impl_1 $VivadoHost } resulttext ]} { puts $resulttext; printRunResults ; exit -1 }
if {[catch { wait_on_run impl_1 } resulttext ]} { exit -1 }
if {[catch { eval launch_runs impl_1 -to_step write_bitstream $VivadoHost } resulttext ]} { puts $resulttext; exit -1 }
if {[catch { eval launch_runs impl_1 -to_step write_bitstream $VivadoHost } resulttext ]} { puts $resulttext; printRunResults ; exit -1 }
wait_on_run [current_run]
printRunResults
}
proc printRunResults {} {
set runMessage {}
puts "\n# INFO: runs results:"
puts "--------------------------------"
# report error of run
foreach run [get_runs] {
set result [get_property STATUS $run]
lappend runMessage [format "RUN: %-*s %-*s" 27 $result 40 $run]
set match [regexp {ERROR} $result totalmatch]
if {1 == $match} {
puts [::fwfwk::utils::cgrep $runMessage "ERROR" -fg red -style bright]
set grepResult [::fwfwk::utils::grepFiles "ERROR" [glob ${::fwfwk::PrjBuildPath}/${::fwfwk::PrjBuildName}.runs/${run}/*.log]]
puts [::fwfwk::utils::cgrep $grepResult "ERROR" -fg red -style bright]
exit -2
}
}
foreach mes $message { puts $mes }
}
# ==============================================================================
#! export HW and bit file to out folder
proc exportOut {} {
......
  • Lukasz Butkowski @lbutkows

    mentioned in commit 13823138

    By Lukasz Butkowski on 2022-04-20T06:58:40 (imported from GitLab)

    ·

    mentioned in commit 13823138

    By Lukasz Butkowski on 2022-04-20T06:58:40 (imported from GitLab)

    Edited by Ghost User
    Toggle commit list
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment