Home > Community > Forums > Custom IC SKILL > stream Out using 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: *

 stream Out using SKILL 

Last post Tue, Jul 26 2011 9:44 AM by ahata. 10 replies.
Started by ahata 15 Jul 2011 05:25 AM. Topic has 10 replies and 5824 views
Page 1 of 1 (11 items)
Sort Posts:
  • Fri, Jul 15 2011 5:25 AM

    • ahata
    • Not Ranked
    • Joined on Fri, Jul 15 2011
    • Posts 11
    • Points 145
    stream Out using SKILL Reply

    Hello,

    I'using the following code in order to transalte my OA layouts to gds.

    xstSetField("library" libName)
    xstSetField("topCell" cell )
    xstSetField("strmFile" strmOutCellName )
    xstSetField("virtualMemory" "true")
    xstOutDoTranslate()

    I seek throughout the Cadence documentation in order to see how the xstOutDoTranslate function is defined and I couldn't find anything about it. So could anyone tell me how this function is defined and which parameters I can tuned?

     My second question, when the xstOutDoTranslate is properly configured, once this command is executed it always produces a pop-up message highlighting the errors and warnings occurred during the translation and forces you to answer the question if I want to see the log file or not. Since I'd like to do the translation of several cells subsequently, is there any to not allowed this pop-up  windows to be prompt? 

    Thanks in advance

     ahata

    Filed under: , ,
    • Post Points: 20
  • Fri, Jul 15 2011 5:51 AM

    Re: stream Out using SKILL Reply

    Many of the fields are covered in the documentation (hit the Help button on the stream out form). 

    However, the simplest is to save a template from the form - and then you can see the available names there.

    Currently the "Show Completion Message Box" can't be set from xstSetField, nor is it saved in the template (I believe this is fixed in the next release, IC616). However, you can do:

     envSetVal("xstream" "xstShowCompletionMsgBox" 'boolean nil)

    which will influence it the first time (only) the interface is used - so I think that will do what you want.

    Regards,

    Andrew.

    • Post Points: 50
  • Fri, Jul 15 2011 7:45 AM

    • ahata
    • Not Ranked
    • Joined on Fri, Jul 15 2011
    • Posts 11
    • Points 145
    Re: stream Out using SKILL Reply

    Many thanks Andrew

    Setting that env variable to nil made the case, so now I can generate all my gds files in seconds...

    On the other hand, I check the help documentation about the xstOutDoTranslate() function and it seams that this function is not returning any value. I just wanted to create a "checking error" code to check with SKILL if the translation succeded or not.

     br

    ahata

     

     

    • Post Points: 20
  • Thu, Jul 21 2011 10:43 AM

    • ahata
    • Not Ranked
    • Joined on Fri, Jul 15 2011
    • Posts 11
    • Points 145
    Re: stream Out using SKILL Reply

    Hi,

     I would like to know how to get CDL files using SKILL code similar to what is done with the gds if there is a way. So is there any function for cdl export that would do the same as the xstOutDoTranslateto stream out gds files???

     I try using the cdlOutKeys parameter to configure the cdl extractio0n but I do not know how to call this configuration with an SKILL instruction. I need this to create a bunch of cdl files in a simple skill code.

    Many thaniks in advance

    br

    ahata

     

    Filed under: ,
    • Post Points: 5
  • Thu, Jul 21 2011 10:43 AM

    • ahata
    • Not Ranked
    • Joined on Fri, Jul 15 2011
    • Posts 11
    • Points 145
    Re: stream Out using SKILL Reply

    Hi,

     I would like to know how to get CDL files using SKILL code similar to what is done with the gds if there is a way. So is there any function for cdl export that would do the same as the xstOutDoTranslateto stream out gds files???

     I try using the cdlOutKeys parameter to configure the cdl extractio0n but I do not know how to call this configuration with an SKILL instruction. I need this to create a bunch of cdl files in a simple skill code.

    Many thaniks in advance

    br

    ahata

     

    Filed under: ,
    • Post Points: 20
  • Thu, Jul 21 2011 11:26 AM

    Re: stream Out using SKILL Reply
    The way to do this is to create an si.env file in a directory with similar contents to one you might get from using it interactively. Then invoke the UNIX command:

    si -command netlist -batch runDirectoryPath

    This could be launched from Virtuoso using ipcBeginProcess, say.

    Regards,

    Andrew
    • Post Points: 20
  • Mon, Jul 25 2011 1:56 AM

    Re: stream Out using SKILL Reply

    Ahata,

    You can define the function xstOutOnCompletion to trigger when the stream out finishes. See the documentation for more details.

    Andrew.

    • Post Points: 20
  • Tue, Jul 26 2011 8:26 AM

    • ahata
    • Not Ranked
    • Joined on Fri, Jul 15 2011
    • Posts 11
    • Points 145
    Re: stream Out using SKILL Reply

     

    Andrew Beckett:

    Ahata,

    You can define the function xstOutOnCompletion to trigger when the stream out finishes. See the documentation for more details.

    Andrew.

     

     

    i tried to use this function to check whether the streamOut translation  xstOutDoTranslate() ) worked or not and some weird stuff happened. 

    So initially I had my SKILL code with only the xstOutDoTranslate() instruction and everything went normal.

    ...

    xstOutDoTranslate()

    ...

    Then I added also the line  for xstOutOnCompletion as follows

    ...

    xstOutDoTranslate()

    xstOutOnCompletion(stat)

    ...

    The following error message appeared:

    *Error* apply: undefined function - xstOutOnCompletion

    Then if I erase the  the line xstOutOnCompletion(stat) and my code stays as:

    ...

    xstOutDoTranslate()

    ...

    The same error message appears again: 

    *Error* apply: undefined function - xstOutOnCompletion 

    So I need to close cadence and open it again in order to make my original code to work again.

     

    I don't know why this is happening...but I'm still able to create my gds files....

    btw, I'm using version cadence 6.1.4.

     

    Ahata

     

     

     

    • Post Points: 20
  • Tue, Jul 26 2011 8:36 AM

    Re: stream Out using SKILL Reply

    Ahata,

    You need to define the function xstOutOnCompletion - you don't call it, you define it. e.g.

    procedure(xstOutOnCompletion(stat)
    ...
    )

    There's an example in the documentation (although not a very useful one).

    Andrew.

    • Post Points: 20
  • Tue, Jul 26 2011 8:49 AM

    • ahata
    • Not Ranked
    • Joined on Fri, Jul 15 2011
    • Posts 11
    • Points 145
    Re: stream Out using SKILL Reply

    ok ok!

    Thereby, I need to create a function that gives me the status of the translation (in the manual example the xstOutOnCompletion uses this variable to chech if the translation was correct) .

    Anyways, my code ensures that all parameters set for the translation are correct, so the translation should be correct. In other case, I can always create a shell script which will verify the warning or error messages ocurred during the translation.

    Thanks!!

    Sergio

    • Post Points: 5
  • Tue, Jul 26 2011 9:44 AM

    • ahata
    • Not Ranked
    • Joined on Fri, Jul 15 2011
    • Posts 11
    • Points 145
    Re: stream Out using SKILL Reply

    I finally managed to stream out my cdl netlis. I used the following code (in case anyone wants to use it)

                strmOutCDLName = buildString( list( cell "src" "net" ) "." )
                cdlOutKeys = list(nil            
                    'cdsNetlistingMode "Analog"   
                    'runInBackground 'nil
                    'simStopList '("auCdl")
                    'simViewList '("auCdl" "schematic")
                    'globalGndSig ""
                    'globalPowerSig ""
                    'shrinkFACTOR 0
                    'checkScale "meter"
                    'diodeCheck "none"
                    'capacitorCheck "none"
                    'resistorCheck "none"
                    'resistorModel ""
                    'shortRES 2000
                    'simNetlistHier 't
                    'pinMAP ''nil
                    'displayPININFO 't
                    'checkLDD ''nil
                    'incFILE ""
                    'connects ""
                    'setEQUIV ""
                    'simRunDir ALO_WORK_DIR
                    'hnlNetlistFileName strmOutCDLName
                    'simSimulator "auCdl"
                    'simViewName "schematic"
                    'simCellName cell
                    'simLibName libName
                    'cdlSimViewList '("auCdl" "schematic")
                    'cdlSimStopList '("auCdl")                   
                )
           
                mgc_rve_set_cdlout_keys(libName cell "schematic" strmOutCDLName)
                    when( mgc_rve_globals->show_cdl_dlg && !mgc_rve_export_cdl_dlg(t)
                          return()
                    ) ; when
                    printf("\n*** Exporting netlist for cell %s ***\n" cell)
                    g_mgcExportCdlConnectFile = strmOutCDLName
                   when( mgc_rve_create_sienv_file()
                          si_cmd = mgc_rve_export_get_cdl_cmd(libName cell "schematic" strmOutCDLName)                 
                          pid=ipcBeginProcess(si_cmd)
                          ipcWait(pid)
                          printf("%L" ipcReadProcess(pid))
                    ) ; when
                    instruction = buildString( list( "mv" strmOutCDLName ALO_CDLOUT_FOLDER_PATH ) )
                 system(instruction)   
    thanks for your help
    • Post Points: 5
Page 1 of 1 (11 items)
Sort Posts:
Started by ahata at 15 Jul 2011 05:25 AM. Topic has 10 replies.