Skip to content

Commit 1aaa750

Browse files
committed
project: scripts: adi_project_xilinx: Generate .bin file if ADI_GENERATE_BIN is set
1 parent f70c9cb commit 1aaa750

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

projects/scripts/adi_project_xilinx.tcl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,9 +553,15 @@ proc adi_project_run {project_name} {
553553
if { [string match "*VIOLATED*" $timing_string] == 1 ||
554554
[string match "*Timing constraints are not met*" $timing_string] == 1} {
555555
write_hw_platform -fixed -force -include_bit -file ${actual_project_name}.sdk/system_top_bad_timing.xsa
556+
if {[info exists ::env(ADI_GENERATE_BIN)]} {
557+
write_bitstream -bin_file ${actual_project_name}.sdk/system_top_bad_timing.bit
558+
}
556559
return -code error [format "ERROR: Timing Constraints NOT met!"]
557560
} else {
558561
write_hw_platform -fixed -force -include_bit -file ${actual_project_name}.sdk/system_top.xsa
562+
if {[info exists ::env(ADI_GENERATE_BIN)]} {
563+
write_bitstream -bin_file ${actual_project_name}.sdk/system_top.bit
564+
}
559565
}
560566
}
561567

@@ -700,4 +706,3 @@ proc adi_project_verify {project_name} {
700706
return -code error [format "ERROR: Timing Constraints NOT met!"]
701707
}
702708
}
703-

0 commit comments

Comments
 (0)