稳定性与频率补偿 2021-10-19 23:17 采纳率: 100%
浏览 152
已结题

Cadence用ocean脚本导出仿真数据出错

运行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.ocnError 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

img

  • 写回答

1条回答 默认 最新

  • 稳定性与频率补偿 2021-10-20 00:10
    关注

    修改以后的ocean脚本如下

    ;; 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 10 ?numberNotation 'none ?from 40n ?to 32.04u ?step 0.2u v("/OUTP"))
    exit()
    

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

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 11月1日
  • 已采纳回答 10月24日
  • 创建了问题 10月19日

悬赏问题

  • ¥15 微信会员卡等级和折扣规则
  • ¥15 微信公众平台自制会员卡可以通过收款码收款码收款进行自动积分吗
  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒
  • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
  • ¥70 2048小游戏毕设项目
  • ¥20 mysql架构,按照姓名分表
  • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分