diff --git a/projects/common/xilinx/compression_system_constr.xdc b/projects/common/xilinx/compression_system_constr.xdc new file mode 100644 index 000000000..94ea80e52 --- /dev/null +++ b/projects/common/xilinx/compression_system_constr.xdc @@ -0,0 +1 @@ +set_property BITSTREAM.GENERAL.COMPRESS TRUE [current_design] diff --git a/projects/scripts/adi_project.tcl b/projects/scripts/adi_project.tcl index 15e76142f..2efdc701a 100644 --- a/projects/scripts/adi_project.tcl +++ b/projects/scripts/adi_project.tcl @@ -126,6 +126,12 @@ proc adi_project_create {project_name {mode 0}} { } else { write_hwdef -file "$project_name.data/$project_name.hwdef" } + + if {![info exists ::env(ADI_NO_BITSTREAM_COMPRESSION)] || ![info exists ADI_NO_BITSTREAM_COMPRESSION]} { + add_files -norecurse -fileset sources_1 \ + "$ad_hdl_dir/projects/common/xilinx/compression_system_constr.xdc" + } + } proc adi_project_files {project_name project_files} {