6 Replies Latest reply on Dec 4, 2012 11:55 PM by dshevchenko

    Bug in calibre (Work with OA Database).

    dshevchenko

      Hello I work in Calibre using OpenAccess database and found

      bug.

       

      Bug when using PCELL (skill pcells).

       

      Version of Calibre: ixl_cal_2012.4_16.11

      Use Cadence IC06.15.011

      Cadence cdsLib plugin (version 32.11_22.42)

      OpenAccess database library versions are listed below.

      Library: oaBase 22.41.004 Wed Nov 24 12:00:24 2010

      Library: oaCM 22.41.004 Wed Nov 24 12:00:24 2010

      Library: oaDM 22.41.004 Wed Nov 24 12:00:24 2010

      Library: oaDesign 22.41.004 Wed Nov 24 12:00:24 2010

      Library: oaTech 22.41.004 Wed Nov 24 12:00:24 2010

      Library: oaUtil 22.41.004 Wed Nov 24 12:00:24 2010

      Library: oaWafer 22.41.004 Wed Nov 24 12:00:24 2010

       

      Now the error:

      In Virtuouso Make a new Cellview type layout.

      In Virtuouso Layout Suite put pcell, such as MOSFETs.

      Saves.

      Then run through Calibre CALIBRE SKILL INTERFACE ( In Virtuouso menu Calibre-> Run

      DRC).

      In Calibre put

      Layout-> Format-> OpenAccess

      I press "Run DRC" and error show this message

       

      ERROR: Empty pcell pch_25$$47339693470362 found, aborting as

      -AbortOnEmptyPCell is specified

      ERROR: Failure to read input file LibMikron_CMOS_065 at record offset 0.

       

      I decided to find out is able the Calibre to open pcells.

      Launched from the command line

      calibredrv

       

      Further

      File-> Open Database

      In the flag put OpenAccess

      Opposite Library click the Browse ... button

      In the window "Calibre OPENACCESS Library Browser"

      Choose my cell and view layout

      Open it.

      Polygons / cells opens normally.

      Pcells was not open, the layers are not visible, but in the tree

      present as nch_25$$47974228619290 and pch_25$$47974228619802

        • 1. Re: Bug in calibre (Work with OA Database).
          chung_lee

          Hi, 

           

          The appnote below talks about debugging techniques with OpenAccess.   Section 6.2 covers empty pcells in detail.

          http://supportnet.mentor.com/assets/MG575919/10731.pdf

           

          Hope this helps,

          Chung

          • 2. Re: Bug in calibre (Work with OA Database).
            dshevchenko
            I read this pdf.
            I set the parameters as it was written
            
            CDS_ENABLE_EXP_PCELL=true
            CDS_EXP_PCELL_DIR=/tmp/.expressPcells
            CDS_EXP_ALL_PARAMS=true
            
            ln -s $CDS_INST_DIR/tools/cdsSkillPcell/lib/64bit/libcdsSkillPcell.so $OA_HOME/lib/linux_rhel40_gcc44x_64/opt/libcdsSkillPcells.so
            
            If I run Calibre from Virtuouso Layout Suite
            via Menu Calibre-> Run DRC (CALIBRE SKILL INTERFACE) in the path CDS_EXP_PCELL_DIR generate some files and program Calibre works normally.
            If I clear folder CDS_EXP_PCELL_DIR and run calibre from terminal calibredrv - pcells was not open.
            
            I run some tools
            
            $OA_HOME/bin/oa2strm -gds cell_name.gds -lib test -cell primer
            *****************************************************************************
            Tool:           oa2strm             22.41.004
            *****************************************************************************
            Running: oa2strm -lib test -gds cell_name.gds -cell primer
            Started: Wed Nov 28 14:55:25 2012 (Hostname: dshevchenko.mikron.sitronics.com)
            *WARNING* (icLic-3) Could not get license Virtuoso_Layout_Suite_L
            *INFO* (icLic-25) License Virtuoso_Layout_Suite_XL ("Layout XL") was used to run Layout L.
            Checking out VLS-XL license for the Express Pcell feature because a VLS-L license is not available.
            ERROR: (OASTRM-10055): While evaluating the Pcell, the following error was returned: "Could not find Express Pcell submaster for Library:LibMikron_CMOS_065 Cell:pch_25 View:layout .
            ". Correct the errors before restarting the translation.
            Finished:       oa2strm
            Time elapsed:   0.86 seconds
            CPU Time:       0.055991 seconds
            System Time:    0.023996 seconds
            Peak VM:        1826816 bytes
            Messages:       1 error, 0 warnings
            
            $MGC_HOME/bin/fdi2gds -system OA -design test primer -outFile cell_name.gds
            //  Calibre FDI  v2012.4_16.11 Mon Nov 12 07:11:17 PST 2012
            //
            //                  Copyright Mentor Graphics Corporation 2008-2010
            //                             All Rights Reserved.
            //         THIS WORK CONTAINS TRADE SECRET AND PROPRIETARY INFORMATION
            //             WHICH IS THE PROPERTY OF MENTOR GRAPHICS CORPORATION
            //               OR ITS LICENSORS AND IS SUBJECT TO LICENSE TERMS.
            //
            //  Mentor Graphics software executing under x86-64 Linux
            //  64 bit virtual addressing enabled
            //
            //  Running on Linux dshevchenko 2.6.18-308.16.1.el5 #1 SMP Tue Sep 18 07:21:07 EDT 2012 x86_64
            *WARNING* (icLic-3) Could not get license Virtuoso_Layout_Suite_L
            *INFO* (icLic-25) License Virtuoso_Layout_Suite_XL ("Layout XL") was used to run Layout L.
            Checking out VLS-XL license for the Express Pcell feature because a VLS-L license is not available.
            WARNING: Empty pcell nch_na$$47378821992602 is found, an empty cell definition is added
            WARNING: Empty pcell rpod$$47378821993754 is found, an empty cell definition is added
            WARNING: Empty pcell ndio$$47378821994906 is found, an empty cell definition is added
            WARNING: Empty pcell pch$$47378821997850 is found, an empty cell definition is added
            WARNING: Empty pcell nch$$47378821999002 is found, an empty cell definition is added
            WARNING: Empty pcell nch_25$$47378822000154 is found, an empty cell definition is added
            WARNING: Empty pcell pch_25$$47378822001306 is found, an empty cell definition is added
            • 3. Re: Bug in calibre (Work with OA Database).
              samantha_lizak

              Hi-

               

              It sounds like the problem is that it runs fine from the Virtuoso GUI, but does not run with Calibre batch.

               

              Did you save the pcells to a GDS?  As noted on page 7 of the App Note that Chung linked, Calibre needs to have evaluated pcells. When you run from Virtuoso, it is presumably making the evaluation it does available to Calibre -- you do mention it generates files into the CDS_EXP_PCELL_DIR.  Before you ran in batch mode, though, you cleared that directory. What happens if you leave the contents in place?

               

              Hope this helps-

               

              Sam.

              • 4. Re: Bug in calibre (Work with OA Database).
                dshevchenko

                "Did you save the pcells to a GDS?"

                I'm a PDK Developer. I develop PDK to run it through OA only, without export to gds.

                 

                " As noted on page 7 of the App Note that Chung linked, Calibre needs to have evaluated pcells."

                Other program for example layouteditor  (layouteditor.net) direct read from OA DB without pcell caching by Virtuouso XL.

                 

                "Before you run in batch mode, though, you cleared that directory. What happens if you leave the contents in place?"

                In designs, used cached pcells calibredrv working normally.

                If I open not cached design (for example from another computer)- not working.

                • 5. Re: Bug in calibre (Work with OA Database).
                  srinivas_velivala

                  Hi,

                  For Calibre to read pcells you need to generate the cache for the pcells in the design and point Calibre to the generated cache. These steps are clearly mentioned in the AppNote that Chung provided you earlier and looks like if you follow the settings specified in the AppNote you are able to successfully read the pcells using Calibre

                   

                  To the best of my knowledge you need to generate the cache for the pcells before you can get a third-party tool to read pcells. For example the industry standard OA2strm converter also needs to have the pcell cache generated before it can successfully read the pcells. Even the Virtuoso streamout function will generate an error message when streaming out GDSII from Virtuoso if there is no pcell cache generated for the design.

                   

                  I have not used the layouteditor software before and in fact this is the first time that I'm hearing about the tool.  Could you please share some information on the settings needed to read pcells using the layouteditor tool?

                  • 6. Re: Bug in calibre (Work with OA Database).
                    dshevchenko

                    Hi.

                    You may be download program layouteditor.

                    http://layouteditor.net/download.php5

                    My version layout-20120824-linux-64bit

                    I changed  directory to directory containing lib.defs (cds.lib)

                    Then I setup CDS environment.

                    Next I run /usr/bin/layout

                    In layouteditor menu I run: File->OpenAccess->Load OpenAccess View.

                    I select Library, Cell and view - layout, containing pcells.

                    All Pcells open normally.

                    Why calibre does not use this mechanism? - I don't know.