innovus对GUI里手工复制的inst批量重命名
专栏:iLoveIC Oct. 29, 2024, 7:15 p.m. 197 阅读
innovus对GUI里手工复制的inst批量重命名

Innovus用GUI菜单手工复制的inst命名有些奇怪。每次复制后,会在原inst名字后再加上"_copy_xxx"。如果复制好几次,就会一直加"_copy_xxx",这并不友好,如下图。

image.png

我们可以用命令把所有的"_copy_xxx" inst都取出来,进行重命名。方法如下:

set mycopiedinst [dbGet top.insts.name WELLTAP_*_copy_*]
set totalcopiedinst [llength $mycopiedinst]
for {set i 0} {$i < $totalcopiedinst} {incr i} {
    set oldfullname [lindex $mycopiedinst $i]
	if {[string match {*/*} $oldfullname]} {
		# ...
	} else {
		set oldbasename $oldfullname
	}
	# ...
	changeInstName -inst $oldfullname -newBaseName $newbasename
}

 

感谢阅读,更多文章点击这里:【专栏:iLoveIC】
最新20篇 开设专栏