is there a procedure in SKILL to determine the bit of invoki

  • Thread starter bohu.seattle@gmail.com
  • Start date
B

bohu.seattle@gmail.com

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
 
In article <1172626345.393771.65790@j27g2000cwj.googlegroups.com> "bohu.seattle@gmail.com" <bohu.seattle@gmail.com> writes:
hi there,
is there a procedure in SKILL , when called in icfb or icde , can
determine whether the icde/icfb is
32bit or 64bit?
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
(phz@seeheader.nospam)

"Real engineers wear jewelry made from discarded motherboards."
 
On 27 Feb 2007 19:52:52 -0800, pxhxz@cadence.com (Pete nospam Zakel) wrote:

In article <1172626345.393771.65790@j27g2000cwj.googlegroups.com> "bohu.seattle@gmail.com" <bohu.seattle@gmail.com> writes:
hi there,
is there a procedure in SKILL , when called in icfb or icde , can
determine whether the icde/icfb is
32bit or 64bit?

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
(phz@seeheader.nospam)

"Real engineers wear jewelry made from discarded motherboards."
You can also do some pattern matching on the results of getVersion() - a little
less indirect.

Andrew.

--
Andrew Beckett
Principal European Technology Leader
Cadence Design Systems, UK.
 
In article <stvdu2h8kg670ksedecang4joq827n5v24@4ax.com> Andrew Beckett <andrewb@DcEaLdEeTnEcTe.HcIoSm> writes:
On 27 Feb 2007 19:52:52 -0800, pxhxz@cadence.com (Pete nospam Zakel) wrote:
In article <1172626345.393771.65790@j27g2000cwj.googlegroups.com> "bohu.seattle@gmail.com" <bohu.seattle@gmail.com> writes:
hi there,
is there a procedure in SKILL , when called in icfb or icde , can
determine whether the icde/icfb is
32bit or 64bit?

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.

You can also do some pattern matching on the results of getVersion() - a little
less indirect.
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
(phz@seeheader.nospam)

"No man is an island, but some of us are long peninsulas."
 
On 1 Mar 2007 13:46:14 -0800, pxhxz@cadence.com (Pete nospam Zakel) wrote:

In article <stvdu2h8kg670ksedecang4joq827n5v24@4ax.com> Andrew Beckett <andrewb@DcEaLdEeTnEcTe.HcIoSm> writes:
On 27 Feb 2007 19:52:52 -0800, pxhxz@cadence.com (Pete nospam Zakel) wrote:
In article <1172626345.393771.65790@j27g2000cwj.googlegroups.com> "bohu.seattle@gmail.com" <bohu.seattle@gmail.com> writes:
hi there,
is there a procedure in SKILL , when called in icfb or icde , can
determine whether the icde/icfb is
32bit or 64bit?

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.

You can also do some pattern matching on the results of getVersion() - a little
less indirect.

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
(phz@seeheader.nospam)

"No man is an island, but some of us are long peninsulas."
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
Principal European Technology Leader
Cadence Design Systems, UK.
 

Welcome to EDABoard.com

Sponsor

Back
Top