Commit dbec6b7f authored by Micha Ober's avatar Micha Ober Committed by Jaco A. Hofmann
Browse files

Allow setting a custom BD name for a platform

parent dede29a6
......@@ -74,7 +74,7 @@ set_msg_config -suppress -id {[xilinx.com:ip:axi_intc:4.1-7]}
@@COMPOSITION@@
# create design
create_bd_design -quiet "system"
create_bd_design -quiet [platform::get_bd_name]
# enable PE-local memories
tapasco::add_capabilities_flag "PLATFORM_CAP0_PE_LOCAL_MEM"
......
......@@ -164,6 +164,15 @@ namespace eval platform {
}
}
proc get_bd_name {} {
variable bd_design_name
if {[info exists bd_design_name] == 0} {
return "system"
} else {
return "${platform::bd_design_name}"
}
}
# Platform API: Main entry point to generate the bitstream.
proc generate {} {
global bitstreamname
......@@ -171,7 +180,7 @@ namespace eval platform {
set jobs [tapasco::get_number_of_processors]
puts " using $jobs parallel jobs"
generate_target all [get_files system.bd]
generate_target all [get_files "[get_bd_name].bd"]
set synth_run [get_runs synth_1]
set_property -dict [list \
STEPS.SYNTH_DESIGN.ARGS.RETIMING true \
......
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