• 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 Design
  3. SKILL to modify layout parameter

Stats

  • Locked Locked
  • Replies 6
  • Subscribers 126
  • Views 18047
  • 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 to modify layout parameter

40Ford
40Ford over 12 years ago

I have written SKILL functions to change or add parameters to a cellView. What I need to do now is grab the value of a parameter from a schematic and copy that value to the corresponding layout.

The parameter is called "connectivity" and I only want to change the value in cell "option". Yes, "option" is the cellName.

I know how to grab and instance and grab the property in SKILL but what I can't understand is how to know I'm getting the corresponding layout view for that instance.

 Any suggestions?

  • Cancel
Parents
  • 40Ford
    40Ford over 12 years ago

     This may have worked. I haven't thoroughly verified it yet.

     procedure(reset_default_param()
        let((clv csv instList layInstList schInstList schInstName schParamValue numelem)
            clv = geGetEditCellView()
            csv = dbOpenCellViewByType(clv~>libName clv~>cellName "schematic" "schematic" "r")

            layInstList = clv~>instances
            schInstList = csv~>instances

            schInstName = setof(inst schInstList inst~>cellName == "option")~>baseName
            schParamValue = list()

            foreach(inst schInstList
                if(inst~>cellName == "option" then
                    schParamValue = append(schParamValue list( dbSearchPropByName(inst "connectivity")~>value))
                ) ; end if
            ) ; end foreach

            dbClose(csv)

            numelem = 1
            foreach(inst layInstList
                foreach(elem schInstName
                    if(inst~>baseName == strcat("|" elem) then
                        printf("\nmatch")
                        dbReplaceProp(inst "connectivity" 'string nthelem(numelem schParamValue))
                    ) ; end if
                ) ; foreach
                numelem = numelem + 1
            ) ; end foreach
        ) ; end let
    ) ; end procedure

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • 40Ford
    40Ford over 12 years ago

     This may have worked. I haven't thoroughly verified it yet.

     procedure(reset_default_param()
        let((clv csv instList layInstList schInstList schInstName schParamValue numelem)
            clv = geGetEditCellView()
            csv = dbOpenCellViewByType(clv~>libName clv~>cellName "schematic" "schematic" "r")

            layInstList = clv~>instances
            schInstList = csv~>instances

            schInstName = setof(inst schInstList inst~>cellName == "option")~>baseName
            schParamValue = list()

            foreach(inst schInstList
                if(inst~>cellName == "option" then
                    schParamValue = append(schParamValue list( dbSearchPropByName(inst "connectivity")~>value))
                ) ; end if
            ) ; end foreach

            dbClose(csv)

            numelem = 1
            foreach(inst layInstList
                foreach(elem schInstName
                    if(inst~>baseName == strcat("|" elem) then
                        printf("\nmatch")
                        dbReplaceProp(inst "connectivity" 'string nthelem(numelem schParamValue))
                    ) ; end if
                ) ; foreach
                numelem = numelem + 1
            ) ; end foreach
        ) ; end let
    ) ; end procedure

     

    • 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