插爆区域引小buf搬出去

bash 复制代码
pro modify_txi_insert {file1} {
	set rptId [open "${file1}_mod.tcl"  w 0750]
	set fileId [open ${file1} r 0750]
	set filePtr [split [read $fileId] \n]
	close $filePtr
	for {set lineNum 0} {$lineNum < [llength $filePtr]} {incr lineNum} {
		set line [lindex $filePtr $lineNum]
		if {[regexp {^insert_buffer} $line]} {
			regexp {^\s*(\S*)\s*(\S*)\s*(\S*)} $line match end pin cell
			puts $pin
			foreach_in_col pin1 [remove_from_collection [all_fanin -to $pin -flat -levels 1] [get_pins $pin]] {
				set pin_name [get_attr [get_pins $pin1] full_name]
				if {[regexp "/I$" $pin_name]} {
					puts $rptId "$end $pin_name $cell"
				} else {
					puts "$pin is not connect to port buffer"	
				}
			}
		}
	}
	close $rpdId
}

处理的文本格式如下

bash 复制代码
 insert_buffer $pin1/D BUFFD4.*
 insert_buffer $pin2/D DELD1.*
相关推荐
哈里谢顿3 小时前
使用kvm创建一台虚拟机
linux
hanyi_qwe4 小时前
文本三剑客--awk
linux·运维·服务器
Caven774 小时前
【Linux 技巧】如何在登录时自动激活 Conda Base 环境
linux·运维·conda
凌寒114 小时前
Linux(Debian)安装、卸载 MySQL
linux·运维·mysql·debian
IT小哥哥呀4 小时前
如何从 Windows SSH 进入 VirtualBox Ubuntu 虚拟机——密码认证(逐步指南)
linux·windows·ubuntu·ssh·教程·虚拟机
怀旧,5 小时前
【Linux系统编程】7. 进程的概念(上)
linux·运维·服务器
7***n756 小时前
API网关设计模式
linux·服务器·设计模式
哈里谢顿6 小时前
环境变量 HTTP_PROXY/HTTPS_PROXY 深度解析:为什么 cURL 行,Docker 不行?
linux
馨谙7 小时前
使用 systemd 用户服务管理容器:从概念到实践
linux·容器
人工智能训练7 小时前
Windows中如何将Docker安装在E盘并将Docker的镜像和容器存储在E盘的安装目录下
linux·运维·前端·人工智能·windows·docker·容器