Commit 33949b88 authored by Maciej Lipinski's avatar Maciej Lipinski

Add possiblity to append created Block Design

A project can define a procedure append_block_design
that will update an existing block design
parent 78752934
Pipeline #3516 passed with stages
in 96 minutes and 59 seconds
......@@ -21,7 +21,18 @@ set_param general.maxThreads ${max_threads}
# Set the project name
set _xil_proj_name_ ${project_name}
source ${target_path}/tcl/create_bd.tcl -notrace
if { [ file exists ${target_path}/tcl/create_bd.tcl ] } {
write_msg "INFO: create_db.tcl exists" "1"
source ${target_path}/tcl/create_bd.tcl -notrace
} else {
write_msg "INFO: create_db.tcl does not seem to exist in ${target_path}" "1"
}
if { [ file exists ${target_path}/tcl/append_bd.tcl ] } {
write_msg "INFO: append_db.tcl exists" "1"
source ${target_path}/tcl/append_bd.tcl -notrace
} else {
write_msg "INFO: append_db.tcl does not seem to exist" "1"
}
# Create project
create_project ${_xil_proj_name_} ${output_path}/${_xil_proj_name_} -part ${reference_part}
......@@ -110,7 +121,13 @@ set_property -name "top" -value ${entity_top} -objects $obj
# Create Block Design
# ##############################################################################
write_msg "INFO: Generating block design" "1"
# it is assumed that create_block_design always exists
create_block_design "" ${_xil_proj_name_} ${target_path}
# append exists only in derived projects
if { [file exists ${target_path}/tcl/append_bd.tcl ] } {
append_block_design "" ${_xil_proj_name_} ${target_path}
}
update_compile_order -fileset sources_1
set_property IS_ENABLED "1" [ get_files ${_xil_proj_name_}.bd ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment