Skip to content

Commit

Permalink
Makefile: set general.maxThreads before opening a project
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene-tarassov committed Nov 10, 2023
1 parent 729bd77 commit 4e7ce5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -305,18 +305,18 @@ vivado-project: $(proj_time)
MAX_THREADS ?= 1

$(synthesis): $(proj_time)
echo "set_param general.maxThreads $(MAX_THREADS)" >>$(proj_path)/make-synthesis.tcl
echo "open_project $(proj_file)" >$(proj_path)/make-synthesis.tcl
echo "update_compile_order -fileset sources_1" >>$(proj_path)/make-synthesis.tcl
echo "set_param general.maxThreads $(MAX_THREADS)" >>$(proj_path)/make-synthesis.tcl
echo "reset_run synth_1" >>$(proj_path)/make-synthesis.tcl
echo "launch_runs -jobs $(MAX_THREADS) synth_1" >>$(proj_path)/make-synthesis.tcl
echo "wait_on_run synth_1" >>$(proj_path)/make-synthesis.tcl
$(vivado) -source $(proj_path)/make-synthesis.tcl
if find $(proj_path) -name "*.log" -exec cat {} \; | grep 'ERROR: ' ; then exit 1 ; fi

$(bitstream): $(synthesis)
echo "open_project $(proj_file)" >$(proj_path)/make-bitstream.tcl
echo "set_param general.maxThreads $(MAX_THREADS)" >>$(proj_path)/make-bitstream.tcl
echo "open_project $(proj_file)" >$(proj_path)/make-bitstream.tcl
echo "reset_run impl_1" >>$(proj_path)/make-bitstream.tcl
echo "launch_runs -to_step write_bitstream -jobs $(MAX_THREADS) impl_1" >>$(proj_path)/make-bitstream.tcl
echo "wait_on_run impl_1" >>$(proj_path)/make-bitstream.tcl
Expand Down

0 comments on commit 4e7ce5e

Please sign in to comment.