• 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 lock the cell placement

Stats

  • Locked Locked
  • Replies 15
  • Subscribers 144
  • Views 23375
  • 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 lock the cell placement

bharath2k4er
bharath2k4er over 16 years ago

Hi, 

can someone help in locking the placement of the Instance (should not be able to move the instance once i lock the position) in the virtuoso layout editor using skill..

It is equvivalent to this command SET_OBJECT_FIXED_EDIT(GET_SELECTION) 1 (1 means postion fixed, 0 means postion is notfixed).This command is available in the IC compiler (ICC tool). 

 

Thanks for your support,

Bharath. 

  • Cancel
  • jazzmatazz
    jazzmatazz over 13 years ago
    Hi, Andrew lxHiUnlockSelected() makes the cells status "unplaced" .
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • skillUser
    skillUser over 13 years ago

     Hi Jazzmatazz,

    The function is doing what it is documented to do:

    lxHiUnlockSelected( 
    g_all
     )
         => t | nil


    Changes the placement status of the selected objects from locked, placed, or firm to unplaced. If the original placement status is unknown or unplaced, this command does not change it.

    What you can do, however, is to set the "status" attribute of the cell(s) to 'nil' and this is displayed as "none" in the Edit Instance Properties form.  So, use SKILL to iterate over the instances and set the "status" attribute of each one, something like the following assuming they are selected:

    
      geGetSelectedSet()~>status = nil
    => (nil nil nil nil)
    

     In this example I selected 4 instances.

    Hope this helps.

    Lawrence.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • jazzmatazz
    jazzmatazz over 13 years ago
    Thank You SkillUser. Regards
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Martin Kovac
    Martin Kovac over 10 years ago

    Hi Derek,

    Firstly, thank you for your post. But when i try to apply your skill code i get still this error message in CIW:

    *Error* return: return can only be used within a prog

    *WARNING* (GE-2042): An unexpected error occurred while applying MySelectionLockFunction SKILL function.

    The reported error is : nil.

    (db:0x14a5841a)

    I assign the MySelectionLockProperty to instance and then I call "selection.il" from CIW where the code is saved. I really dont know where the mistake can be hidden. Please can you give me an advice? Thank you very much

     Martin 

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 10 years ago

    Martin,

    Derek's code has a missing prog, and should not be calling return as is. It should be:

    procedure(myFilterFunction(obj)
      prog(()
        if(obj~>objType == "inst" && obj~>myFixedProperty then
            return()
        else
            return(t)
        )
      )
    )

    or:

    procedure(myFilterFunction(obj)
        if(obj~>objType == "inst" && obj~>myFixedProperty then
            nil
        else
            t
        )
    )

    If using IC615 or IC616, there's the built-in "selection protection" which can be found under Edit->Select->Set Selection Protection in the layout editor. If using an older version, you could use my prototype of the same functionality which can be found in solution 11522924. My code uses a similar approach to Derek, but is just packaged up with a set of functions to highlight the "protected" objects, to override the protection, and so on. 

    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