adi_project.pl: Fix ADI_NO_BITSTREAM_COMPRESSION detection logic

Only enable bitstream compression only if both the
ADI_NO_BITSTREAM_COMPRESSION environment and TCL variable are not set.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
main
Lars-Peter Clausen 2016-07-13 18:46:34 +02:00
parent 62c7114d77
commit 44d9f98e12
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ proc adi_project_create {project_name {mode 0}} {
write_hwdef -file "$project_name.data/$project_name.hwdef"
}
if {![info exists ::env(ADI_NO_BITSTREAM_COMPRESSION)] || ![info exists ADI_NO_BITSTREAM_COMPRESSION]} {
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"
}