• 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 get the schematic(TestBench) details associated with...

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 143
  • Views 668
  • 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 get the schematic(TestBench) details associated with a adexl

Manikk0501
Manikk0501 over 9 years ago

Hi,

I want to get the information of the design associated with adexl session. How can I do that? Let say, I know the libname,viewname and adexl viewname. With that I want to get the testbench detail especially the testbench viewname.

Thanks and Regards,

Manikandan Kuzandhaivelu

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 9 years ago

    Hi Manikandan,

    This code will do it (the first function). It returns a list of lists, one per test in the ADE XL view (because they could have different testbenches):

    /* abGetADEXLReferences.il
    
    Author     A.D.Beckett
    Group      Custom IC (UK), Cadence Design Systems Ltd.
    Language   SKILL
    Date       Nov 21, 2012 
    Modified   A.D.Beckett 
    By         Nov 22, 2012 
    
    Return a list of all the references in an ADE XL view.
    Also provide a function to check if the ADE XL view
    only references testbenches from the same library.
    
    ***************************************************
    
    SCCS Info: @(#) abGetADEXLReferences.il 11/22/12.11:18:56 1.2
    
    */
    
    /***************************************************************
    *                                                              *
    *             abGetADEXLReferences(lib cell view)              *
    *                                                              *
    *  Return a list of lib/cell/view lists. Each one corresponds  *
    *     to the lib/cell/view used in the tests in the adexl      *
    *  view. It doesn't try to uniquify the list, so if the same   *
    *   testbench is used in multiple tests, it will be returned   *
    *                       multiple times.                        *
    *                                                              *
    ***************************************************************/
    
    procedure(abGetADEXLReferences(lib cell view)
        let((sess sdb references toolArgs)
            sess=axlCreateSession(strcat("refs" getCurrentTime()))
            sdb=axlSetMainSetupDBLCV(sess lib cell view)
            when(sdb
                references=
                    foreach(mapcar testName cadr(axlGetTests(sdb))
                        toolArgs=axlGetTestToolArgs(axlGetTest(sdb testName))
                        list(
                            cadr(assoc("lib" toolArgs))
                            cadr(assoc("cell" toolArgs))
                            cadr(assoc("view" toolArgs))
                        )
                    )
                axlCloseSetupDB(sdb)
            )
            axlCloseSession(sess)
            references
        )
    )
    
    /***************************************************************
    *                                                              *
    *         abAreADEXLReferencesToSameLib(lib cell view)         *
    *                                                              *
    *    Simple check on an ADE XL view to return t if all the     *
    *  testbenches come from the same library as the ADE XL view   *
    *                           itself.                            *
    *                                                              *
    ***************************************************************/
    
    procedure(abAreADEXLReferencesToSameLib(lib cell view)
        forall(lcv abGetADEXLReferences(lib cell view)
            car(lcv)==lib
        )
    )
    
    /***************************************************************
    *                                                              *
    * abCheckADEXLReferencesToSameLibForLib(lib @optional verbose) *
    *                                                              *
    *       Check all the ADE XL views in the library to see       *
    *        if they have references outside this library.         *
    *                                                              *
    ***************************************************************/
    
    procedure(abCheckADEXLReferencesToSameLibForLib(lib @optional verbose)
        let((fileObj references popups (nullport outfile("/dev/null")))
            ;----------------------------------------------------------------
            ; Suppress the convert state popups
            ;----------------------------------------------------------------
            popups=envGetVal("asimenv" "showConvertNotifyDialog")
            envSetVal("asimenv" "showConvertNotifyDialog" 'boolean nil)
            ;----------------------------------------------------------------
            ; attempt to swallow warnings and errors by redirecting
            ; using dynamic scoping
            ;----------------------------------------------------------------
            let(((woport nullport) (errport nullport))
                foreach(cell ddGetObj(lib)~>cells
                    foreach(view cell~>views
                        fileObj=ddGetObj(lib cell~>name view~>name "*")
                        when(fileObj && ddMapGetFileViewType(fileObj)=="adexl"
                            when(verbose
                                printf("Checking %s/%s/%s\n" lib cell~>name 
                                    view~>name)
                            )
                            references=abGetADEXLReferences(
                                lib cell~>name view~>name)
                            when(exists(lcv references car(lcv)!=lib)
                                printf("%s/%s/%s has references to %L\n"
                                    lib cell~>name view~>name
                                    setof(lcv references car(lcv)!=lib)
                                )
                            )
                        )
                    )
                )
            )
            close(nullport)
            when(popups
                envSetVal("asimenv" "showConvertNotifyDialog" 'boolean t)
            )
            t
        )
    )
    

    Regards,

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

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