fpga: tools: Add ability to run commands before route

Original-commit: a617ff132fef4a28370d8b10b42463a459d44f6b
This commit is contained in:
Wade Fife
2021-06-03 10:22:04 -05:00
committed by Aaron Rossetto
parent cfb4ba7f0b
commit d6397f8f5e
+6
View File
@@ -105,6 +105,12 @@ proc ::vivado_strategies::implement_design {strategy} {
phys_opt_design -directive $pp_physopt_dir
}
# Option to run commands before route
if {[dict exist $strategy "route_design.pre_hook"]} {
set pre_route_cmds [dict get $strategy "route_design.pre_hook"]
eval $pre_route_cmds
}
# Route the current design
set rt_dir [dict get $strategy "route_design.directive"]
puts "BUILDER: Choosing routing directive: $rt_dir"