admin管理员组文章数量:1122832
So there's an array which contains all the from and to registers to create path groups inside Innovus Implementation System, but I don't understand why it doesn't create a path group named r2m. Any suggestions?
foreach groupPathName [array names CDNC_PATH_GROUPS] {
set run_group_path 1
if {[regexp all_registers $CDNC_PATH_GROUPS($groupPathName)] && [sizeof_collection [all_registers]] == 0} {
set run_group_path 0
}
if {$run_group_path} {
eval group_path -name $groupPathName $CDNC_PATH_GROUPS($groupPathName)"
}
}
Initially I thought it's not creating that path group because of command length truncation of Innovus, but that's not the case, I tried to shrink the register names, but still it doesn't create. Is there any other way to take care of this?
So there's an array which contains all the from and to registers to create path groups inside Innovus Implementation System, but I don't understand why it doesn't create a path group named r2m. Any suggestions?
foreach groupPathName [array names CDNC_PATH_GROUPS] {
set run_group_path 1
if {[regexp all_registers $CDNC_PATH_GROUPS($groupPathName)] && [sizeof_collection [all_registers]] == 0} {
set run_group_path 0
}
if {$run_group_path} {
eval group_path -name $groupPathName $CDNC_PATH_GROUPS($groupPathName)"
}
}
Initially I thought it's not creating that path group because of command length truncation of Innovus, but that's not the case, I tried to shrink the register names, but still it doesn't create. Is there any other way to take care of this?
Share Improve this question asked Nov 22, 2024 at 10:51 MercuryMercury 12 bronze badges 4 |1 Answer
Reset to default 0does:
$CDNC_PATH_GROUPS($groupPathName)
contain a list of names?group_path
require not one list but one or more individual names?
If yes, then use
group_path -name $groupPathName {*}$CDNC_PATH_GROUPS($groupPathName)
# ..............................^^^
See Argument expansion in the Tcl syntax rules.
版权声明:本文标题:tcl - I am having issue with "eval" while trying to build a command inside foreach loop - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736304299a1932186.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
$CDNC_PATH_GROUPS(r2m)
exist? Does the value of$CDNC_PATH_GROUPS(r2m)
include the stringall_registers
? Why are you maintaining therun_group_path
variable? Instead, you could usecontinue
in the first if statement, or you could change the second if statement to a elseif statement. – Chris Heithoff Commented Nov 22, 2024 at 13:28puts [array names CDNC_PATH_GROUPS]
– flash Commented Dec 6, 2024 at 14:44