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

feat(vivado): add env variables to set Jobs number and Host

Variables:
FWK_VIVADO_JOBS: Set the number of jobs
FWK_VIVADO_HOST: Set the remote host to be used
If no host variable defined then local host.

Example:
export FWK_VIVADO_JOBS=8
export FWK_VIVADO_HOST=mskfw1
make build
parent db4e8974
Branches
Tags
No related merge requests found
......@@ -90,13 +90,25 @@ proc buildProject {args} {
reset_run "impl_1"
reset_run "synth_1"
if {[catch { launch_runs synth_1 } resulttext ]} { exit -1 }
set VivadoJobs 1
set VivadoHost ""
if { [info exists ::env(FWK_VIVADO_JOBS)] } {
set VivadoJobs $::env(FWK_VIVADO_JOBS)
}
if { [info exists ::env(FWK_VIVADO_HOST)] } {
set VivadoHost "-host \{$::env(FWK_VIVADO_HOST) $VivadoJobs\}"
} else {
set VivadoHost "-jobs $VivadoJobs"
}
if {[catch { eval launch_runs synth_1 $VivadoHost } resulttext ]} { puts $resulttext; exit -1 }
if {[catch { wait_on_run synth_1 } resulttext ]} { exit -1 }
if {[catch { launch_runs impl_1 } resulttext ]} { exit -1 }
if {[catch { eval launch_runs impl_1 $VivadoHost } resulttext ]} { puts $resulttext; exit -1 }
if {[catch { wait_on_run impl_1 } resulttext ]} { exit -1 }
if {[catch { launch_runs impl_1 -to_step write_bitstream }] } { exit -1 }
if {[catch { eval launch_runs impl_1 -to_step write_bitstream $VivadoHost } resulttext ]} { puts $resulttext; exit -1 }
wait_on_run [current_run]
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment