Home > Community > Forums > Custom IC SKILL > How to pass values from perl script to skill ?

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 How to pass values from perl script to skill ? 

Last post Wed, Mar 27 2013 8:59 AM by theopaone. 2 replies.
Started by siliconx 25 Mar 2013 07:24 AM. Topic has 2 replies and 829 views
Page 1 of 1 (3 items)
Sort Posts:
  • Mon, Mar 25 2013 7:24 AM

    • siliconx
    • Not Ranked
    • Joined on Fri, Mar 15 2013
    • Dresden, Saxony
    • Posts 6
    • Points 105
    How to pass values from perl script to skill ? Reply

    Hello everyone,

    I have a perl script which is working on some text file. The output of the perl file are multiple arrays which contains length, minwidths and metal layers. On the other hand I have a skill script, Which I have been using to create layout. In skill I need to use the values from the perl script. So, I want to know that how can I access perl arrays or subroutine in skill? or is there any other way to do it ?

    Thank you.

     

    Regards,

    Varun

    Filed under:
    • Post Points: 20
  • Mon, Mar 25 2013 10:48 PM

    • uttamkumar
    • Not Ranked
    • Joined on Thu, Jan 31 2013
    • Posts 2
    • Points 25
    Re: How to pass values from perl script to skill ? Reply

     you can use skill's Interprocess communication functions.There is a detailed documentation on this topic.

    Example:

     cid=ipcBeginProcess("perl filename")   //starts perl program execution from skill and returns a handle for the child process

      ipcWaitForProcess(cid)     //waits for child process

      while(ipcIsAliveProcess(cid)

                  printf("%s" ipcReadProcess(cid))   //read data from stdout

     

    ofcourse there are many other functions available that might be useful to you.

    regards

    uttam

     

     

    • Post Points: 20
  • Wed, Mar 27 2013 8:59 AM

    • theopaone
    • Top 50 Contributor
    • Joined on Tue, Feb 12 2013
    • Cedar Park, TX
    • Posts 136
    • Points 2,050
    Re: How to pass values from perl script to skill ? Reply

    If using IPC, be sure to flush the buffer in Perl after writing to stdout. Othewise the data may not get to SKILL until the buffer is full or closed.

    A better way is to write to a file and then read in the file. You could use comma separated records, one line for each device and break them into a list for SKILL processing.

    Ted

    • Post Points: 5
Page 1 of 1 (3 items)
Sort Posts:
Started by siliconx at 25 Mar 2013 07:24 AM. Topic has 2 replies.