From e42877d337f683b47747a816e6f41cb18ec3513d Mon Sep 17 00:00:00 2001 From: AndrDragomir Date: Mon, 7 Aug 2023 14:14:11 +0300 Subject: [PATCH] scripts/adi_fmc_constr_generator: Fix intel constr generation Signed-off-by: AndrDragomir --- projects/scripts/adi_fmc_constr_generator.tcl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/scripts/adi_fmc_constr_generator.tcl b/projects/scripts/adi_fmc_constr_generator.tcl index 42882c7f3..21576011b 100755 --- a/projects/scripts/adi_fmc_constr_generator.tcl +++ b/projects/scripts/adi_fmc_constr_generator.tcl @@ -260,7 +260,7 @@ proc gen_intel_fmc {fmc_index fmc_file constr_file} { for {set k $current_index} {$k <= $i} {incr k} { set col_e [join [lindex $line_e $k] " "] set col_e [constrToIntel $line_e $col_e $k] - if {[string match "*[0]*" [lindex $col_e 3]] && ![string match "*(n)*" [lindex $col_e 3]]} { + if {[string match "*\[0\]*" [lindex $col_e 3]] && ![string match "*(n)*" [lindex $col_e 3]]} { puts $constr_file "set_instance_assignment -name XCVR_VCCR_VCCT_VOLTAGE 1_0V -to [string map -nocase {[0] ""} [lindex $col_e 3]]" } } @@ -268,7 +268,7 @@ proc gen_intel_fmc {fmc_index fmc_file constr_file} { for {set k $current_index} {$k <= $i} {incr k} { set col_e [join [lindex $line_e $k] " "] set col_e [constrToIntel $line_e $col_e $k] - if {[string match "*[0]*" [lindex $col_e 3]] && ![string match "*(n)*" [lindex $col_e 3]]} { + if {[string match "*\[0\]*" [lindex $col_e 3]] && ![string match "*(n)*" [lindex $col_e 3]]} { set xcvrCount 0 puts $constr_file "set_instance_assignment -name IO_STANDARD \"HIGH SPEED DIFFERENTIAL I/O\" -to [string map -nocase {[0] ""} [lindex $col_e 3]]" } else {incr xcvrCount} @@ -278,7 +278,7 @@ proc gen_intel_fmc {fmc_index fmc_file constr_file} { for {set k $current_index} {$k <= $i} {incr k} { set col_e [join [lindex $line_e $k] " "] set col_e [constrToIntel $line_e $col_e $k] - if {[string match "*[0]*" [lindex $col_e 3]] && ![string match "*(n)*" [lindex $col_e 3]]} { + if {[string match "*\[0\]*" [lindex $col_e 3]] && ![string match "*(n)*" [lindex $col_e 3]]} { if {[string match "*data_*" [lindex $col_e 3]]} {set xcvrType "xcvr_[string index [lindex $col_e 3] [expr [string last _ [lindex $col_e 3]] + 1]]_\$\{i\}"} puts $constr_file " set_instance_assignment -name XCVR_RECONFIG_GROUP $xcvrType -to [string map -nocase {[0] \[\$\{i\}\]} [lindex $col_e 3]]" }