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

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日

悬赏问题

  • ¥30 Matlab打开默认名称带有/的光谱数据
  • ¥50 easyExcel模板 动态单元格合并列
  • ¥15 res.rows如何取值使用
  • ¥15 在odoo17开发环境中,怎么实现库存管理系统,或独立模块设计与AGV小车对接?开发方面应如何设计和开发?请详细解释MES或WMS在与AGV小车对接时需完成的设计和开发
  • ¥15 CSP算法实现EEG特征提取,哪一步错了?
  • ¥15 游戏盾如何溯源服务器真实ip?需要30个字。后面的字是凑数的
  • ¥15 vue3前端取消收藏的不会引用collectId
  • ¥15 delphi7 HMAC_SHA256方式加密
  • ¥15 关于#qt#的问题:我想实现qcustomplot完成坐标轴
  • ¥15 下列c语言代码为何输出了多余的空格