is there a procedure in SKILL to determine the bit of invoking icde/icfb?

Discussion in 'Cadence' started by bohu.seattle, Feb 28, 2007.

  1. bohu.seattle

    bohu.seattle Guest

    hi there,
    is there a procedure in SKILL , when called in icfb or icde , can
    determine whether the icde/icfb is
    32bit or 64bit?

    thanks
     
    bohu.seattle, Feb 28, 2007
    #1
  2. bohu.seattle

    Guest Guest

    if( system( strcat( "grep '^\\\\o Sub version:.*64-bit addresses' "
    hiGetLogFileName() " > /dev/null")) == 0
    then println( "64-bit addresses" )
    else println( "32-bit addresses" )
    )

    It's sort-of roundabout, but it works.

    -Pete Zakel
    ()

    "Real engineers wear jewelry made from discarded motherboards."
     
    Guest, Feb 28, 2007
    #2
  3. You can also do some pattern matching on the results of getVersion() - a little
    less indirect.

    Andrew.
     
    Andrew Beckett, Mar 1, 2007
    #3
  4. bohu.seattle

    Guest Guest

    No, the return from getVersion doesn't include the the address size. That's
    added by the HI code when it outputs the CDS.log header.

    -Pete Zakel
    ()

    "No man is an island, but some of us are long peninsulas."
     
    Guest, Mar 1, 2007
    #4
  5. Hi Pete,

    Actually it does (for 64 bit, anyway):

    layout -64 -V

    gives:

    @(#)$CDS: layout.exe_64 version 5.1.0-64b 02/20/2007 00:24 (cicamd10) $

    Of course, that's down to how the workbench is built, but it seems to be a
    convention...

    So something as simple as rexMatchp("64b" getVersion()) will tell you it is 64
    bit.

    Regards,

    Andrew.
     
    Andrew Beckett, Mar 2, 2007
    #5
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.