Altera_Forum
Honored Contributor
15 years agoTCL question
I am trying to do some timing analysis using Quartus 9.1, TimeQuest and TCL.
When I use the following TCL code: if { [string match -nocase "*io_recapture_h*" [ string trim $node_name ] ] } { I get the following matches: 2.003 fpfe|sramintf|qdrintf|qdr_core_bot|io_recapture_h0[0]~feeder|dataf 2.058 fpfe|sramintf|qdrintf|qdr_core_bot|io_recapture_h0[0]~feeder|combout 2.058 fpfe|sramintf|qdrintf|qdr_core_bot|io_recapture_h0_0_|datain 2.220 fpfe:fpfe|sramintf:sramintf|qdrintf:qdrintf|qdr_core_1:qdr_core_bot|io_recapture_h0[0] Since I want the one shown in bold (the last one with delay value 2.220), I modified the TCL code to (adding backslash and [) : if { [string match -nocase "*io_recapture_h*\[0\]" [ string trim $node_name ] ] } { But that didn't work. I tried many other combinations. None of which worked. How do I escape the brackets?