PT:pt write_change to innovus 脚本

2024-05-10 13:36
文章标签 脚本 change write pt innovus

本文主要是介绍PT:pt write_change to innovus 脚本,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

7b0b406f5e7b4f36a876346d5703a6e8.png

6a628bd160cb49099f8a9622849a011d.png

我正在「拾陆楼」和朋友们讨论有趣的话题,你⼀起来吧?

拾陆楼知识星球入口

0e09f6874287495aad250a66f26f9d41.png

#!usr/bin/perl
open rf,"$ARGV[0]";
open wf,">test. tcl";

while (<rf>) {
          s/\[(\D[^\s\]]*)?\]/\\\[$1\\\]/g;
          if (/current _ instances$/) {
                 $curinst = "";
                 $hinst = "";
                 $orient_mark=0;
                 next
          }
          if (/current_instance\s+{(\S+)}/) {
                 $curinst = "$1";
                 $curinst =~s/^{//g;
                 $curinst =~s/}$//g;
                 $hinst ="-hinstGuide ${curinst}
                 $curinst ="${curinst}\/";
                 next
          }
          if (/insert _ buffer\s+\[get_ pins\s+\{(.*)\}\]\s+(\S+)\s+-new_net_names\s+\{(\S+)\}\s+-new_cell_names\s+\{(\S+)\}\s+-location\s+\{(.*)\}\s+-orientation\s+(\S+)/ ) {
                 $term_name = "${curinst}$1";
                 $cell_name = $2;
                 $net_name = $3;
                 $name = $4;
                 $location = $5;
                 $ori2 = $6;
                 if ($ori2 eq "N") {$ori = "R0"}

                 if ($ori2 eq"FS") {$ori = "MX"}

                 if ($ori2 eq "S") {$ori = "R180"}

                 if ($ori2 eq"FN") {$ori = "MY"}

                 print wf "set result [ecoAddRepeater -term $term_name -cell $cell_name -newNetName $net_name -name $name -loc {$location} -bufOrient $ori $hinst]\n"; 

                next

        }

       if (/add buffer_on_route\s+\[get _ net -of (.*)\]\s+-user_specified_buffers\s+\{\s*(.*)\s*\}\s+.*/) {

               $pin = $1;

               $ll = $2;

               $i = 0;

               $inst_list = "";

               $cell_list = "";

               $pt = "";

               $j = 0;

               $pin =~ s/^{//g;

               $pin =~ s/}$//g;

               foreach (split(/\s+/,$ll)) {

                       $i+=1;

                       if ($i==1) {

                               $inst_list="$inst_list $_";

                       } elsif ($i==2) {

                               $cell_list="$cell_list $_";

                       } elsif ($i==3) {

                               $pt="$pt $_";

                       } elsif ($i==4) {

                               $pt="$pt $_";

                       } elsif ($i==5) {

                               $i=0;

                       }

                      $orient_mark=1;

             }

             @cell_list = split(/\s+/,$cell _ list);

             if ( @cell_list > 1) {

                      print wf "set result  [ecoAddRepeater -net [get_object_name [get_net -of ${curinst}$pin]] -cell \"$cell _ list\" -loc \"$pt\" -name \"$inst _ list\"]\n";

             } else {

                      print wf "set result [ecoAddRepeater -net [get_object_name [get_net -of ${curinst}$pin]] -cell \"$cell_ list\" -loc \"$pt\" -name \"$inst_list\" $hinst]\n";

            }

    } elsif (/set_cell_location -coordinates\s+{(.*)}\s+-orientation\s+(\S+)\s+\[get_cells\s+{(.*)}/) {

         $ori2= $2;

         $loc2 = $1;

         $c2 = $3;

        if ($ori2 eq"N") {$ori = "R0"}

        if ($ori2 eq"FS") {$ori = "MX"}

        if ($ori2 eq "S") {$ori = "R180"}

        if ($ori2 eq"FN") {$ori = "MY"}

       @cell_list = split(/\s+/,$cell_list);

       if ($orient_mark && @cell_list > 1) {

                  print wf "dbSet [dbGet -p top.inst.name [lindex \$result $j ]].orient $ori\n";

print wf "dbSet [dbGet -p top.inst.name [lindex \$result $j ]]. pt \"$loc2\"\n";

} else {

print wf "dbSet [dbGet -p top.inst.name ${curinst}$c2]. orient $ori\n";

print wf "dbSet [dbGet -p top.inst.name ${curinst}$c2]. pt \"$loc2\"\n";

}

$j+=3;

} elsif (/size_cell\s{(\S+)}\s+{(\S+)}$/) {

print wf "ecoChangeCell -inst ${curinst}$1 -cell $2\n";

$orient_mark=0;

} else {

$j=0;

print wf $_;

}

close rf;

close wf

 

 

这篇关于PT:pt write_change to innovus 脚本的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/976587

相关文章

UE3脚本UnrealScript UC语法点滴

持续更新 目录 类定义修饰符  1.dependson(CLASSNAME) 2.config(ININAME) 3.native 4.notplaceable 5.inherits(CLASSNAME1[,CLASSNAME2,...]) 类对象实例创建 类默认属性设置 变量 1.声明 var local 2.修饰符 config  3.array 类型变量 以及

【青龙面板辅助】JD商品自动给好评获取京豆脚本

1.打开链接 开下面的链接进入待评价商品页面 https://club.jd.com/myJdcomments/myJdcomments.action?sort=0 2.登陆后执行脚本 登陆后,按F12键,选择console,复制粘贴以下代码,先运行脚本1,再运行脚本2 脚本1代码 可以自行修改评价内容。 var content = '材质很好,质量也不错,到货也很快物流满分,包装快递满

Redis-在springboot环境下执行lua脚本

文章目录 1、什么lua2、创建SpringBoot工程3、引入相关依赖4、创建LUA脚本5、创建配置类6、创建启动类7、创建测试类 1、什么lua “Lua”的英文全称是“Lightweight Userdata Abstraction Layer”,意思是“轻量级用户数据抽象层”。 2、创建SpringBoot工程 3、引入相关依赖 <?xml version

vscode python pip : 无法将“pip”项识别为 cmdlet、函数、脚本文件或可运行程序的名称

在vscode中控制台运行python文件出现:无法将"pip”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。 使用vscode开发python,需要安装python开发扩展: 本文已经安装,我们需要找的是python安装所在目录,本文实际路径如下: 如果在本文路径中没有此目录,请尝试在C盘中搜索 python,搜索到相关python目录后,点击Python 3.9进入目录,

android的strings整理脚本

统一对String整理的工具,结构如下 代码 package com.owant.toollib;import java.io.BufferedReader;import java.io.File;import java.io.FileReader;import java.util.ArrayList;import java.util.List;import java.util

网页脚本输入这么简单

如何在网页中进行脚本操作呢? 研究了一下,很简单,用google浏览器的Console直接操作javaScript。思路: Created with Raphaël 2.1.0 开始 输入(如何输入) 点击(如何点击) 结束 下面是,通过脚本刷直播屏的实现,直接在Console输入即可 var words=new Arra

芯片后端之 PT 使用 report_timing 产生报告如何阅读

今天,就PT常用的命令,做一个介绍,希望对大家以后的工作,起到帮助作用。 在PrimeTime中,使用report_timing -delay max命令生成此报告。switch -delay max表示定时报告用于设置(这是默认值)。 首先,我们整体看一下通过report_timing 运行之后,报告产生的整体样式。 pt_shell> report_timing -from start_

github 报错 git fatal: unable to write new index file

错误一:git fatal: unable to write new index file主要原因就是服务器磁盘空间不够导致的,增加服务器空间就OK了在百度上面搜索没得到什么有效信息,在gooogle上搜索得到很多有效信息 Finding large directories with something like the following helped clean up some log fi

c语言使用system函数后台运行python脚本

最近需要在c工程的mian函数中使用system函数调用一个shell脚本,shell脚本是用来将某些系统配置通过sock通信发送给主核进程,但是可能出现偶发性的配置失败情况,经过分析可以大概断定是由于sock通信的时候,主核进程正在忙于其他事物导致未能在expire之前将消息接受并处理,导致消息丢失,而发送方无法感知系统是否成功加载配置。         所以,需要在脚本的最后

Linux——Shell脚本

重头戏终于来了! 一、Shell脚本简介 shell script 是利用 shell 的功能所写的一个『程序 (program)』,这个程序是使用纯文本文件,将一些 shell 的语法与指令(含外部指令)写在里面, 搭配正规表示法、管线命令与数据流重导向等功能,以达到我们所想要的处理目的。 #!/bin/bash 在宣告这个 script 使用的 shell 名称。 用vi test.s