• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. How to add a menu item to the export in CIW

Stats

  • Locked Locked
  • Replies 12
  • Subscribers 143
  • Views 17755
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to add a menu item to the export in CIW

venuuuuu
venuuuuu over 13 years ago

 hi all,

I need to add a menu item "Run GDS to Library" (Which writes out GDS files for all layout views in a library) to export in CIW.

Let me know how to do it .

  • Cancel
Parents
  • venuuuuu
    venuuuuu over 13 years ago

     hi Andrew,

    I saw your code on cadence online support .

    /* abWriteLibGDS.il

    Author     A.D.Beckett

    Group      Custom IC (UK), Cadence Design Systems Ltd.

    Language   SKILL

    Date       Mar 05, 2002

    Modified 

    By       

     

    To use this, Save a template from the File->Export Stream form,

    which contains any layer maps etc that you want to use. Then

    you can run the code by doing:
     


    abWriteLibGDS("libName" "/path/to/template/file")

     

    ***************************************************

     

    SCCS Info: @(#) abWriteLibGDS.il 03/05/02.10:52:04 1.1

     

     

    /***************************************************************

    *                                                              *

    *     abWriteLibGDS(libName fileOrDPL [?viewName "layout"      *

    *                       ?suffix ".gds")                        *

    *                                                              *

    *    Writes out GDS files for all layout views in a library    *

    *                                                              *

    ***************************************************************/

     

    procedure(abWriteLibGDS(

        libName fileOrDPL @key (viewName "layout") (suffix ".gds")

        )

        let((streamOutKeys)

            if(stringp(fileOrDPL) && isFile(fileOrDPL) then

                loadi(fileOrDPL)

            else

                streamOutKeys=fileOrDPL

            ) ; if

            foreach(cell ddGetObj(libName)~>cells

                when(ddGetObj(libName cell~>name viewName "master.tag")

                    abWriteCellGDS(libName cell~>name viewName streamOutKeys suffix)

                ) ; when

            ) ; foreach

            t

        ) ; let

    ) ; procedure

     

    /*****************************************************************

    *                                                                *

    * abWriteCellGDS(libName cellName viewName streamOutKeys suffix) *

    *                                                                *

    *    Given the library, cell and view names, and a DPL of the    *

    *     template file data, the suffix to apply to the files,      *

    *    write out a stream file. This is done by creating a new     *

    *  template file, and invoking "pipo strmout", and waiting for   *

    *                          the results.                          *

    *                                                                *

    *****************************************************************/

     

    procedure(abWriteCellGDS(libName cellName viewName streamOutKeys suffix)

        let((template fileName ipcId)

            streamOutKeys->libName=libName

            streamOutKeys->primaryCell=cellName

            streamOutKeys->viewName=viewName

            streamOutKeys->outFile=strcat(cellName suffix)

            streamOutKeys->errFile=strcat("PIPO_" cellName ".LOG")

            printf("Writing GDS for %s/%s/%s to %s\n"

                libName cellName viewName

                streamOutKeys->outFile

            ) ; printf

            fileName=makeTempFileName("/tmp/writeCellGDS")

            template=outfile(fileName)

            fprintf(template "streamOutKeys='%L\n" streamOutKeys)

            close(template)

            ipcId=ipcBeginProcess(strcat("pipo strmout " fileName))

            ipcWait(ipcId)

            deleteFile(fileName)

        ) ; let

    ) ; procedure

     ;; =============


    I need to attach this function as an item in  File->Export. 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • venuuuuu
    venuuuuu over 13 years ago

     hi Andrew,

    I saw your code on cadence online support .

    /* abWriteLibGDS.il

    Author     A.D.Beckett

    Group      Custom IC (UK), Cadence Design Systems Ltd.

    Language   SKILL

    Date       Mar 05, 2002

    Modified 

    By       

     

    To use this, Save a template from the File->Export Stream form,

    which contains any layer maps etc that you want to use. Then

    you can run the code by doing:
     


    abWriteLibGDS("libName" "/path/to/template/file")

     

    ***************************************************

     

    SCCS Info: @(#) abWriteLibGDS.il 03/05/02.10:52:04 1.1

     

     

    /***************************************************************

    *                                                              *

    *     abWriteLibGDS(libName fileOrDPL [?viewName "layout"      *

    *                       ?suffix ".gds")                        *

    *                                                              *

    *    Writes out GDS files for all layout views in a library    *

    *                                                              *

    ***************************************************************/

     

    procedure(abWriteLibGDS(

        libName fileOrDPL @key (viewName "layout") (suffix ".gds")

        )

        let((streamOutKeys)

            if(stringp(fileOrDPL) && isFile(fileOrDPL) then

                loadi(fileOrDPL)

            else

                streamOutKeys=fileOrDPL

            ) ; if

            foreach(cell ddGetObj(libName)~>cells

                when(ddGetObj(libName cell~>name viewName "master.tag")

                    abWriteCellGDS(libName cell~>name viewName streamOutKeys suffix)

                ) ; when

            ) ; foreach

            t

        ) ; let

    ) ; procedure

     

    /*****************************************************************

    *                                                                *

    * abWriteCellGDS(libName cellName viewName streamOutKeys suffix) *

    *                                                                *

    *    Given the library, cell and view names, and a DPL of the    *

    *     template file data, the suffix to apply to the files,      *

    *    write out a stream file. This is done by creating a new     *

    *  template file, and invoking "pipo strmout", and waiting for   *

    *                          the results.                          *

    *                                                                *

    *****************************************************************/

     

    procedure(abWriteCellGDS(libName cellName viewName streamOutKeys suffix)

        let((template fileName ipcId)

            streamOutKeys->libName=libName

            streamOutKeys->primaryCell=cellName

            streamOutKeys->viewName=viewName

            streamOutKeys->outFile=strcat(cellName suffix)

            streamOutKeys->errFile=strcat("PIPO_" cellName ".LOG")

            printf("Writing GDS for %s/%s/%s to %s\n"

                libName cellName viewName

                streamOutKeys->outFile

            ) ; printf

            fileName=makeTempFileName("/tmp/writeCellGDS")

            template=outfile(fileName)

            fprintf(template "streamOutKeys='%L\n" streamOutKeys)

            close(template)

            ipcId=ipcBeginProcess(strcat("pipo strmout " fileName))

            ipcWait(ipcId)

            deleteFile(fileName)

        ) ; let

    ) ; procedure

     ;; =============


    I need to attach this function as an item in  File->Export. 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information