Line 66... |
Line 66... |
set obj [get_filesets sim_1]
|
set obj [get_filesets sim_1]
|
set_property "top" "top" $obj
|
set_property "top" "top" $obj
|
|
|
# Create 'synth_1' run (if not found)
|
# Create 'synth_1' run (if not found)
|
if {[string equal [get_runs -quiet synth_1] ""]} {
|
if {[string equal [get_runs -quiet synth_1] ""]} {
|
create_run -name synth_1 -part xc7z020clg484-1 -flow {Vivado Synthesis 2014} -strategy "Vivado Synthesis Defaults" -constrset constrs_1
|
create_run -name synth_1 -part xc7z020clg484-1 -flow {Vivado Synthesis 2016} -strategy "Vivado Synthesis Defaults" -constrset constrs_1
|
} else {
|
} else {
|
set_property strategy "Vivado Synthesis Defaults" [get_runs synth_1]
|
set_property strategy "Vivado Synthesis Defaults" [get_runs synth_1]
|
set_property flow "Vivado Synthesis 2014" [get_runs synth_1]
|
set_property flow "Vivado Synthesis 2016" [get_runs synth_1]
|
}
|
}
|
set obj [get_runs synth_1]
|
set obj [get_runs synth_1]
|
|
|
# set the current synth run
|
# set the current synth run
|
current_run -synthesis [get_runs synth_1]
|
current_run -synthesis [get_runs synth_1]
|
|
|
# Create 'impl_1' run (if not found)
|
# Create 'impl_1' run (if not found)
|
if {[string equal [get_runs -quiet impl_1] ""]} {
|
if {[string equal [get_runs -quiet impl_1] ""]} {
|
create_run -name impl_1 -part xc7z020clg484-1 -flow {Vivado Implementation 2014} -strategy "Vivado Implementation Defaults" -constrset constrs_1 -parent_run synth_1
|
create_run -name impl_1 -part xc7z020clg484-1 -flow {Vivado Implementation 2016} -strategy "Vivado Implementation Defaults" -constrset constrs_1 -parent_run synth_1
|
} else {
|
} else {
|
set_property strategy "Vivado Implementation Defaults" [get_runs impl_1]
|
set_property strategy "Vivado Implementation Defaults" [get_runs impl_1]
|
set_property flow "Vivado Implementation 2014" [get_runs impl_1]
|
set_property flow "Vivado Implementation 2016" [get_runs impl_1]
|
}
|
}
|
set obj [get_runs impl_1]
|
set obj [get_runs impl_1]
|
|
|
# set the current impl run
|
# set the current impl run
|
current_run -implementation [get_runs impl_1]
|
current_run -implementation [get_runs impl_1]
|
|
|
# regenerate block diagrams
|
# regenerate block diagrams
|
source $origin_dir/../block_diagrams/zync.tcl
|
source $origin_dir/../block_diagrams/zync_bd_16_2.tcl
|
|
|
close_project -quiet
|
close_project -quiet
|
|
|
puts "INFO: Project created:$PROJECT_NAME"
|
puts "INFO: Project created:$PROJECT_NAME"
|
|
|