在线咨询 切换到宽版
eetop公众号 创芯大讲堂 创芯人才网

 找回密码
 注册

手机号码,快捷登录

手机号码,快捷登录

搜帖子
查看: 239|回复: 2

[求助] 电路porting问题

[复制链接]
发表于 12 小时前 | 显示全部楼层 |阅读模式
悬赏500资产未解决
运行porting脚本出现错误中断,如下图所示,是什么原因导致的,是不是map文件写的有问题?



paramTable[j]=cdfFindParamByName(instCdf param)~>value
                           j++
                        ) ;foreach

                        if( recreateInst=="Yes" then
                           instMaster=dbOpenCellViewByType(newLib newCell newView)
                           instName=inst~>name
                           instPt=inst~>xy
                           instOrient=inst~>orient
                           dbDeleteObject(inst)
                           inst=dbCreateInst(cv instMaster instName instPt instOrient)
                        else
                           leReplaceAnyInstMaster(inst newLib newCell newView)
                        ) ;if

                        j=0
                        instCdf=cdfGetInstCDF(inst)
                        foreach(param cdddr(newTable)
                           paramId=cdfFindParamByName(instCdf param)
                           if( paramId~>paramType=="string" && !stringp(paramTable[j]) then
                              paramId~>value=sprintf(nil "\"%s\"" paramTable[j]) →error  :→*Error* fprintf/sprintf: format spec. incompatible with data - "Format is '\"%s\"', argument #1 is nil"
                           else
                              paramId~>value=paramTable[j]
                           ) ;if
                           j++
                        ) ;foreach
  
                        foreach( prop inst~>prop
                           unless( setof(x instCdf->parameters x->name==prop~>name)
                              dbDeleteObject(prop)
                           ) ;unless
                        ) ;foreach
                     ) ;foreach
                  ) ;for


 楼主| 发表于 12 小时前 | 显示全部楼层
截取了错误的一段脚本,红色字体是报错的脚本位置,绿色为ciw报错解释
回复

使用道具 举报

发表于 8 小时前 | 显示全部楼层
既然你都

if( paramId~>paramType=="string" && !stringp(paramTable[j]) then
判断它不是string了,为什么还用%s格式呢?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /3 下一条

手机版| 小黑屋| 关于我们| 联系我们| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2025-9-5 23:58 , Processed in 0.088976 second(s), 3 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表