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

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

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 1392|回复: 0

[求助] ocean脚本仿真LDO的PM和GAIN

[复制链接]
发表于 2018-12-6 09:57:47 | 显示全部楼层 |阅读模式

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

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

x
;; Run PVT corner simulation


ocnWaveformTool( 'wavescan )
simulator( 'spectre )


design(  "/export/home/project/LDO/spectre/sim_LDO/spectre/schematic/netlist/netlist")
resultsDir( "./waveform" )


analysis('ac ?start "1" ?stop "1G"   ?dec "20" )




;Output I/
psf_dir = "./waveform/psf"
createDir("./report")
writePort = outfile("./report/result.txt" "w")
fprintf(writePort "@MOS  @MIM   V   T   VPP    T_155  IVDD IVDD_MAX\n")
fprintf(writePort "-------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n")
close(writePort)




mos_list = list("mos_tt" "mos_ff" "mos_ss")
tem_list = list(-40  27  85)


foreach(mos  mos_list
foreach(tem tem_list


    modelFile(

          sprintf(nil "/export/home/user/gum/models/smic18ee/spectre/models/%s" mos )


)

    temp(tem)
    run()


    selectResult( 'ac )
    gain_max =ymax(dB20(VF("/VREFIN<24>") ?result "ac"))
    pm = gainMargin(VF("/VREFIN<24>"))


    writePort = outfile( "./report/result.txt" "a" )
    fprintf( writePort "@%s  %3d  %.3f  %.3f\n"  
                       mos   tem  gain_max pm)

   


close(writePort)

    )
    )


----------------------------------------------------------
我是初学者,跪求大神可以帮忙修改下,老是can‘t handle "db20()" "phaseMargin()"
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

×

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

GMT+8, 2024-3-29 20:33 , Processed in 0.014916 second(s), 7 queries , Gzip On, Redis On.

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