• 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. skill function to create config view automatically with...

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 144
  • Views 16404
  • 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

skill function to create config view automatically with a specified template

teapot
teapot over 12 years ago

Hello experts

i am wondering if you have a skill function to create a config view automatically with a specified template .. also, i want it to set a particular cell/instance to a specfied view and change the inherited view list for that cell/instance. this is for OA OSS flow

i did a search found a relevant post/procedure CCSCreateConfigWithSpectreTemplate. i tried it, however, the template pops up is empty .. so not sure if that one actually works or i did something wrong

 i am new to skill, would really appreciate your advices on this

 thank you so much

tea

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    That solution seems an excessively complicated way of doing it (I'll suggest this to the original author). It has too much dependency on the user interface.

    Here's a simpler approach, using the procedural API to interface with config views. It's not strictly building from a template, but I've given the ability to specify the libList, viewList and stopList via keyword arguments:

    procedure(CCFcreateConfigView(lib cell view topView @key
        (viewList "spectre cmos_sch cmos.sch schematic veriloga ahdl")
        (stopList "spectre")
        libList
        "ttttggg"
        )
        let((hdb)
            hdb=hdbOpen(lib cell view "w")
            unless(hdb error("Could not open %s/%s/%s for write\n" lib cell view))
            hdbSetTopCellViewName(hdb lib cell topView)
            when(stringp(libList)
                hdbSetDefaultLibListString(hdb libList)
            )
            when(stringp(viewList)
                hdbSetDefaultViewListString(hdb viewList)
            )
            when(stringp(stopList)
                hdbSetDefaultStopListString(hdb stopList)
            )
            hdbSave(hdb)
            hdbClose(hdb)
            t
        )
    )

     

    You can then call:

    CCFcreateConfigView("mylib" "mycell" "config" "schematic")

    or 

    ; create using the same options as the "AMS" config template, but with a libList specified as
    ; well
    CCFcreateConfigView("mylib" "mycell" "config_ams" "schematic" ?viewList "spectre spice verilog verilogams behavioral functional systemverilog schematic veriloga vhdl vhdlams wreal" ?stopList "spectre" ?libList "sample")

    The assumption in the code is that the lib and cell of the top cell are the same as the lib and cell of the config view; the third arg specifies the config view name and the fourth arg the name of the view for the top cellView.

    Hopefully this will do the job for you, and is cleaner.

    Regards,

    Andrew.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    That solution seems an excessively complicated way of doing it (I'll suggest this to the original author). It has too much dependency on the user interface.

    Here's a simpler approach, using the procedural API to interface with config views. It's not strictly building from a template, but I've given the ability to specify the libList, viewList and stopList via keyword arguments:

    procedure(CCFcreateConfigView(lib cell view topView @key
        (viewList "spectre cmos_sch cmos.sch schematic veriloga ahdl")
        (stopList "spectre")
        libList
        "ttttggg"
        )
        let((hdb)
            hdb=hdbOpen(lib cell view "w")
            unless(hdb error("Could not open %s/%s/%s for write\n" lib cell view))
            hdbSetTopCellViewName(hdb lib cell topView)
            when(stringp(libList)
                hdbSetDefaultLibListString(hdb libList)
            )
            when(stringp(viewList)
                hdbSetDefaultViewListString(hdb viewList)
            )
            when(stringp(stopList)
                hdbSetDefaultStopListString(hdb stopList)
            )
            hdbSave(hdb)
            hdbClose(hdb)
            t
        )
    )

     

    You can then call:

    CCFcreateConfigView("mylib" "mycell" "config" "schematic")

    or 

    ; create using the same options as the "AMS" config template, but with a libList specified as
    ; well
    CCFcreateConfigView("mylib" "mycell" "config_ams" "schematic" ?viewList "spectre spice verilog verilogams behavioral functional systemverilog schematic veriloga vhdl vhdlams wreal" ?stopList "spectre" ?libList "sample")

    The assumption in the code is that the lib and cell of the top cell are the same as the lib and cell of the config view; the third arg specifies the config view name and the fourth arg the name of the view for the top cellView.

    Hopefully this will do the job for you, and is cleaner.

    Regards,

    Andrew.

     

    • 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