EDAboard.com | EDAboard.eu | EDAboard.de | EDAboard.co.uk | RTV forum PL | NewsGroups PL

SKILL question

elektroda.net NewsGroups Forum Index - Cadence - SKILL question

Mohamed Abdel Baset
Guest

Thu Jun 24, 2010 5:12 pm   



Hi all,

I want my SKILL code to stop at certain line (without halting the CIW)
till a variable is set to certain value then resume working again.

Can anybody help?

Thanks in advance,
Mohamed

Andrew Beckett
Guest

Fri Jun 25, 2010 1:13 pm   



Mohamed Abdel Baset wrote, on 06/24/10 15:12:
Quote:
Hi all,

I want my SKILL code to stop at certain line (without halting the CIW)
till a variable is set to certain value then resume working again.

Can anybody help?

Thanks in advance,
Mohamed

Hi Mohamed,

Not sure I understand. Could you illustrate what you're wanting with some pseudo
code? How is the variable going to get set?

Bear in mind that SKILL is single threaded, so that may answer your question
for you, but maybe you could use the setguard() function in SKILL to register a
function to be called when a named variable changes, and then it can execute
some code when it has a certain value?

See the documentation on setguard - maybe this does what you want?

Regards,

Andrew.

Mohamed Abdel Baset
Guest

Fri Jun 25, 2010 7:05 pm   



On Jun 25, 2:13 pm, Andrew Beckett <andr...@DcEaLdEeTnEcTe.HcIoSm>
wrote:
Quote:
Mohamed Abdel Baset wrote, on 06/24/10 15:12:

Hi all,

I want my SKILL code to stop at certain line (without halting the CIW)
till a variable is set to certain value then resume working again.

Can anybody help?

Thanks in advance,
Mohamed

Hi Mohamed,

Not sure I understand. Could you illustrate what you're wanting with some pseudo
code? How is the variable going to get set?

Bear in mind that SKILL is single threaded, so that may answer  your question
for you, but maybe you could use the setguard() function in SKILL to register a
function to be called when a named variable changes, and then it can execute
some code when it has a certain value?

See the documentation on setguard - maybe this does what you want?

Regards,

Andrew.

Hi Andrew,

The following is my code:
cid = edit(<text-file-path>)
;;;I want to stop execution here till cid is "dead" i.e.
ipcIsAliveProcess(cid) = nil that means "user has exited the editor"
;;;then here is the rest of the script
I think setguard is not what I am searching for.

waiting your replies,
Mohamed

Andrew Beckett
Guest

Tue Jun 29, 2010 9:36 am   



Mohamed Abdel Baset wrote, on 06/25/10 17:05:
Quote:

Hi Andrew,

The following is my code:
cid = edit(<text-file-path>)
;;;I want to stop execution here till cid is "dead" i.e.
ipcIsAliveProcess(cid) = nil that means "user has exited the editor"
;;;then here is the rest of the script
I think setguard is not what I am searching for.

waiting your replies,
Mohamed

Mohamed,

You could just do:

ipcWait(cid)

but this will block Virtuoso until the editor is exited.

Otherwise you could use ipcBeginProcess("nedit fileName" "" 'myDataHandler
'myDataHandler 'myExitHandler)

and then the function myExitHandler will get called when the editor is exited.

Read the documentation on ipcBeginProcess for more details.

Best Regards,

Andrew.

--
Andrew Beckett
Senior Solution Architect - Cadence Design Systems Ltd (UK)

Mohamed Abdel Baset
Guest

Tue Jun 29, 2010 2:18 pm   



On Jun 29, 10:36 am, Andrew Beckett <andr...@DcEaLdEeTnEcTe.HcIoSm>
wrote:
Quote:
Mohamed Abdel Baset wrote, on 06/25/10 17:05:



Hi Andrew,

The following is my code:
cid = edit(<text-file-path>)
;;;I want to stop execution here till cid is "dead" i.e.
ipcIsAliveProcess(cid) = nil that means "user has exited the editor"
;;;then here is the rest of the script
I think setguard is not what I am searching for.

waiting your replies,
Mohamed

Mohamed,

You could just do:

ipcWait(cid)

but this will block Virtuoso until the editor is exited.

Otherwise you could use ipcBeginProcess("nedit fileName" "" 'myDataHandler
'myDataHandler 'myExitHandler)

and then the function myExitHandler will get called when the editor is exited.

Read the documentation on ipcBeginProcess for more details.

Best Regards,

Andrew.

--
Andrew Beckett
Senior Solution Architect - Cadence Design Systems Ltd (UK)

Thanks for your help
Mohamed

elektroda.net NewsGroups Forum Index - Cadence - SKILL question

Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
RTV map EDAboard.com map News map EDAboard.eu map EDAboard.de map EDAboard.co.uk map Opony