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

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 ad软件 pcb布线pcb规则约束编辑器where the object matpcb布线pcb规则约束编辑器where the object matchs怎么没有+15v只有no net
    • ¥15 虚拟机vmnet8 nat模式可以ping通主机,主机也能ping通虚拟机,但是vmnet8一直未识别怎么解决,其次诊断结果就是默认网关不可用
    • ¥20 求各位能用我能理解的话回答超级简单的一些问题
    • ¥15 yolov5双目识别输出坐标代码报错
    • ¥15 这个代码有什么语法错误
    • ¥15 给予STM32按键中断与串口通信
    • ¥15 使用QT实现can通信
    • ¥15 关于sp验证的一些东西,求告知如何解决,
    • ¥35 关于#javascript#的问题:但是我写的只能接码数字和字符,帮我写一个解码JS问题