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

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 1713|回复: 1

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

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

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

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

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




  1. <blockquote>



复制代码
运行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即可解决问题

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

本版积分规则

关闭

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

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

GMT+8, 2025-2-27 01:45 , Processed in 0.014918 second(s), 8 queries , Gzip On, Redis On.

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