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

 找回密码
 注册

手机号码,快捷登录

手机号码,快捷登录

搜帖子
查看: 2081|回复: 1

[求助] Cadence用ocean脚本导出仿真数据出错

[复制链接]
发表于 2021-10-19 23:18:52 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
本帖最后由 大学生视野 于 2021-10-20 00:40 编辑


   

        

                
  1. <blockquote>

  2.         

   

    复制代码
运行CMP_offset.ocn脚本出错
CMP_offset.ocn内容如下:

;; open the simulation result in "Dir"
openResults("/home/vikinglan/pll_tsmc013/simulation/Rvco_v1/spectre/schematic-save/psf")
;; point out which result to process
selectResult('tran)
;; export result to a txt file
ocnPrint(?output "./comp.txt" ?precision 2 ?numberNotation 'none ?from 40n ?to 32.04u ?step 0.2u v("/OUTP"))
exit()


出现下面错误,应该如何解决?



   
SYNTAX ERROR found at line 3 column 17 of file CMP_offset.ocn*Error* lineread/read: syntax error encountered in input
*Error* load: error while loading file - "CMP_offset.ocn" at line 3
load( "CMP_offset.ocn" )
*Error* fprintf/sprintf: format spec. incompatible with data - "Format is ‘%-14.2g ', argument #1 is 1"
*Error* load: error while loading file - "CMP_offset.ocn" at line 3


image.png
image.png
 楼主| 发表于 2021-10-20 00:23:34 | 显示全部楼层
修改以后的ocean脚本如下



   

        

                
  1. <p>;; open the simulation result in "Dir"</p><p>openResults("/home/vikinglan/pll_tsmc013/simulation/Rvco_v1/spectre/schematic-save/psf")</p><p>;; point out which result to process</p><p>selectResult('tran)</p><p>;; export result to a txt file</p><p><b>ocnPrint(?output "./comp.txt" ?precision 10 ?numberNotation 'none ?from 40n ?to 32.04u ?step 0.2u v("/OUTP"))</b></p><p>exit()</p>
            

   

    复制代码



把ocnPrint(?output "./comp.txt" ?precision 2这里从2改成10即可解决问题

回复 支持 反对

使用道具 举报

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

本版积分规则

关闭

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

X

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

GMT+8, 2025-9-14 05:33 , Processed in 0.017025 second(s), 5 queries , Gzip On, Redis On.

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