Calibre Error: Enviroment variable MGC_HOME is not set

Discussion in 'Cadence' started by boki, Sep 15, 2003.

  1. boki

    boki Guest

    Hi, All:

    When I loading Calibre at CIW command window, there is the error
    message I got,
    could you please tell me how to fix it? Thanks a lot!

    load("/XXX/mentor/Calibre_ss/cur/lib/calibre.skl")

    // Calibre Error: Enviroment variable MGC_HOME is not set. Calibre
    skill Interface not loaded.

    Boki.
     
    boki, Sep 15, 2003
    #1
  2. Set a UNIX environment variable to your calibre installation path

    for csh/tsch:

    setenv MGC_HOME <calbre_inst_path>

    e.g. for my environment
    setenv MGC_HOME /asw/ment/ss6_cal_2002.5_16

    for your I assume MGC_HOME is
    /XXX/mentor/Calibre_ss/cur

    By the way?!?!?
    I can not find a file called 'calibre.skl' in the path
    '$MGC_HOME/lib'
    This directory contains only TCL and C libraries I guess.

    The file 'calibre.skl' is located at
    $MGC_HOME/shared/pkgs/icv/tools/queryskl
    in my Calibre installation.


    Because I'm now officially approved for good SKILL coding, :) I'm joking,
    I suggest you to use the code below in your .cdsinit file to load the Calibre
    SKILL GUI into the Cadence Design Framework, rather than just
    load( strcat( getShellEnvVar("MGC_HOME") ".../calibre.skl" ), there are
    conditions which catch your errors, most of them is out of the Mentor docs.

    Regards Bernd


    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;;
    ;; Disclaimer : NO WARRANTY, this SKILL function(s) is(are) released
    ;; without any warranty. The Author does not warrant,
    ;; guarantee, or make any representations regarding the
    ;; use, or the results of use of this SKILL function(s).
    ;; The entire risk of the use of this SKILL function(s)
    ;; is with you.
    ;;
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    let( (
    ;; getting the required variable for the Calibre-RVE/Virtuoso interface
    ( mgc_home getShellEnvVar("MGC_HOME") )
    )

    ;; calibre settings
    if( mgc_home && isDir( mgc_home ) && isReadable( mgc_home ) then

    ;; load calibre.skl for Cadence versions 4.4 and greater
    load( strcat( mgc_home "/shared/pkgs/icv/tools/queryskl/calibre.skl" ) )

    else

    ;; MGC_HOME is not set correctly. Report the problem.

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

    if( !mgc_home || mgc_home == "" then
    printf( "MGC_HOME is not set." ) ;
    else
    if( !isDir( mgc_home ) then
    printf( "MGC_HOME does not point to a directory." ) ;
    else
    unless( isReadable( mgc_home )
    printf( "MGC_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
    )
    )

    ) ;; close let
     
    Bernd Fischer, Sep 15, 2003
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.