Few questions about skill, for experts

B

bu-bu

Guest
Hello all,

I have some questions about skill and Cadence. Thanks to help me!

~Is it possible to display Japanese font in skill ? I mean, messages
in CIW or when creating a user interface ?
I guess it's not possible, maybe someone can confirm ?

~ how to make a script resident in memory ?
i have a script that i want to use every time. I would like to make it
resident in memory, to avoid to click my buttons many times a day.

~ Is it possible to create a checksum for a view ? (symbol, schematic
or layout ?)
I would like to create a versioning tool that detects automatically
the changes in these view and update a text file.
I thought it could be easy with checksums.


thanks a lot for your help !!!

Best Regards,

bu.
 
bu-bu wrote, on 08/27/08 02:59:
Hello all,

I have some questions about skill and Cadence. Thanks to help me!

~Is it possible to display Japanese font in skill ? I mean, messages
in CIW or when creating a user interface ?
I guess it's not possible, maybe someone can confirm ?
I don't believe this is possible. I may be wrong though - I've never tried...

~ how to make a script resident in memory ?
i have a script that i want to use every time. I would like to make it
resident in memory, to avoid to click my buttons many times a day.
Not sure what you mean. When SKILL is loaded, it's in memory. Perhaps you're
asking to have something that is called on a regular basis? If so,
take a look at my sourcelink solution number 11381132

~ Is it possible to create a checksum for a view ? (symbol, schematic
or layout ?)
I would like to create a versioning tool that detects automatically
the changes in these view and update a text file.
I thought it could be easy with checksums.
You could invoke the UNIX "cksum" command on the data files.

thanks a lot for your help !!!

Best Regards,

bu.
Regards,

Andrew.
 
On Aug 27, 3:59 am, bu-bu <bedo...@gmail.com> wrote:

~ how to make a script resident in memory ?
i have a script that i want to use every time. I would like to make it
resident in memory, to avoid to click my buttons many times a day.

If you want to run a script every few seconds you could do this.

hiRegTimer( "yourfunction( \"your input\")" 10)

I use this in a showproperties function which shows the w and l of
the
current selected transistor or resistor for example. I implemented
a value input to start, stop or repeat the function. This enables
you to stop it from repeat mode. Sample code to get the idea:

procedure( wrShowProperties( @optional value instance)

let( ( all internal vars ...)

wrText = nil
unless( boundp( 'wrShowPropertiesValue)
wrShowPropertiesValue = "start"
wrShowPropertiesTextPrev = ""
)

if( null( value) && null( instance)
then
if( wrShowPropertiesValue == "repeat"
then
wrShowPropertiesValue = "stop"
else
wrShowPropertiesValue = "repeat"
)
)

case( wrShowPropertiesValue
( "stop"
wrText = "stopped"
instancepointerPrev = nil
)
( t
....
code to get interesting properties to show
....
if( wrShowPropertiesValue == "repeat" && null( instance)
then
hiRegTimer( "wrShowProperties( \"repeat\")" 10)
)
if( wrShowPropertiesValue == "stop"
then
wrText = "stopped"
)
)
) ;; case
if( wrDecodeBindKeysText == " Alt-q Alt-q"
then
wrTextStop =" (Alt-q to stop)"
else
wrTextStop =" (Alt-q Alt-q to stop)"
)
if( stringp( wrText) && wrText != wrShowPropertiesTextPrev &&
wrWriteModeTxt == wrWriteModeTxtPrev
then
wrWindowName( strcat( wrWriteModeTxt "wrShowProperties: " wrText
wrTextStop))
wrShowPropertiesTextPrev = wrText
)
) ;; let
;; test: wrShowProperties( )
)

see my blog for more details: http://relyveld.wordpress.com/

Greetings, William.
 
wre wrote, on 08/29/08 11:45:
On Aug 27, 3:59 am, bu-bu <bedo...@gmail.com> wrote:

~ how to make a script resident in memory ?
i have a script that i want to use every time. I would like to make it
resident in memory, to avoid to click my buttons many times a day.


If you want to run a script every few seconds you could do this.

hiRegTimer( "yourfunction( \"your input\")" 10)

I use this in a showproperties function which shows the w and l of
the
current selected transistor or resistor for example. I implemented
a value input to start, stop or repeat the function. This enables
you to stop it from repeat mode. Sample code to get the idea:

snipped
see my blog for more details: http://relyveld.wordpress.com/

Greetings, William.
In fact, the solution I mentioned in my previous post (11381132) uses hiRegTimer
internally. It's a convenient wrapper around it to make it easier to set up
repeating events.

Still, it's not clear that this is what was actually being requested...

Andrew.
 
On 8¤ë29¤é, ¤ČŤá7:45, wre <wre.gro...@gmail.com> wrote:
On Aug 27, 3:59 am, bu-bu <bedo...@gmail.com> wrote:

~ how to make a script resident in memory ?
i have a script that i want to use every time. I would like to make it
resident in memory, to avoid to click my buttons many times a day.

If you want to run a script every few seconds you could do this.

hiRegTimer( "yourfunction( \"your input\")" 10)

I use this in a showproperties function which shows the w and l of
the
current selected transistor or resistor for example. I implemented
a value input to start, stop or repeat the function. This enables
you to stop it from repeat mode. Sample code to get the idea:

procedure( wrShowProperties( @optional value instance)

let( ( all internal vars ...)

wrText = nil
unless( boundp( 'wrShowPropertiesValue)
wrShowPropertiesValue = "start"
wrShowPropertiesTextPrev = ""
)

if( null( value) && null( instance)
then
if( wrShowPropertiesValue == "repeat"
then
wrShowPropertiesValue = "stop"
else
wrShowPropertiesValue = "repeat"
)
)

case( wrShowPropertiesValue
( "stop"
wrText = "stopped"
instancepointerPrev = nil
)
( t
...
code to get interesting properties to show
...
if( wrShowPropertiesValue == "repeat" && null( instance)
then
hiRegTimer( "wrShowProperties( \"repeat\")" 10)
)
if( wrShowPropertiesValue == "stop"
then
wrText = "stopped"
)
)
) ;; case
if( wrDecodeBindKeysText == " Alt-q Alt-q"
then
wrTextStop =" (Alt-q to stop)"
else
wrTextStop =" (Alt-q Alt-q to stop)"
)
if( stringp( wrText) && wrText != wrShowPropertiesTextPrev &&
wrWriteModeTxt == wrWriteModeTxtPrev
then
wrWindowName( strcat( wrWriteModeTxt "wrShowProperties: " wrText
wrTextStop))
wrShowPropertiesTextPrev = wrText
)
) ;; let
;; test: wrShowProperties( )
)

see my blog for more details:http://relyveld.wordpress.com/

Greetings, William.
Hello All,

thanks a lot for your answers. I will study the code you gave me :)

regards,

b.
 

Welcome to EDABoard.com

Sponsor

Back
Top