Virtuoso集成Calibre的脚本

EDA软件 0 6410 张长瑞 收藏

使用此脚本,应在.cdsinit文件中添加,如未经过特殊定义,cdsinit文件在用户家目录


使用的前提是Calibre工具设置了MGC_HOME的环境变量。


添加内容如下:

;
; check CALIBRE_HOME
;
cal_home=getShellEnvVar("CALIBRE_HOME")
if( cal_home==nil then
    printf("// CALIBRE_HOME environment variable not set; setting to value of MGC_HOME\n");
    cal_home=getShellEnvVar("MGC_HOME")
)

if( cal_home!=nil && isDir(cal_home) && isReadable(cal_home) then

    setSkillPath(append1(getSkillPath() strcat(cal_home "/lib")))

    ; Load calibre.skl or calibre.4.3.skl, not both!

    ; Load calibre.skl for Cadence versions 4.4 and greater
    load("calibre.skl")

;;; Load calibre.4.3.skl for Cadence version 4.3
;;; load("calibre.4.3.skl")

else

    ; CALIBRE_HOME is not set correctly. Report the problem.

    printf("//  Calibre Error: Environment variable ")

    if( cal_home==nil || cal_home=="" then
        printf("CALIBRE_HOME is not set.");
    else
        if( !isDir(cal_home) then
            printf("CALIBRE_HOME does not point to a directory.");
 else
            if( !isReadable(cal_home) then
                printf("CALIBRE_HOME points to an unreadable directory.");
            )
        )
    )
    printf(" Calibre Skill Interface not loaded.\n")

    ; Display a dialog box message about load failure.

    hiDisplayAppDBox(
        ?name           'MGCHOMEErrorDlg
        ?dboxBanner     "Calibre Error"
        ?dboxText       "Calibre Skill Interface not loaded."
        ?dialogType     hicErrorDialog
        ?dialogStyle    'modal
        ?buttonLayout   'Close
    )
)


相关推荐:

网友留言:

您需要 登录账户 后才能发表评论

我要评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。
验证码