SKILL question

Discussion in 'Cadence' started by Mohamed Abdel Baset, Jun 24, 2010.

  1. 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
     
    Mohamed Abdel Baset, Jun 24, 2010
    #1
  2. Mohamed Abdel Baset wrote, on 06/24/10 15:12:
    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.
     
    Andrew Beckett, Jun 25, 2010
    #2
  3. 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 Abdel Baset, Jun 25, 2010
    #3
  4. Mohamed Abdel Baset wrote, on 06/25/10 17:05:
    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, Jun 29, 2010
    #4
  5. Thanks for your help
    Mohamed
     
    Mohamed Abdel Baset, Jun 29, 2010
    #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.