• 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 determine some cellview is editing by somebody else...

Stats

  • Locked Locked
  • Replies 7
  • Subscribers 144
  • Views 16768
  • 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 determine some cellview is editing by somebody else?

Alvin Park
Alvin Park over 12 years ago

Hi... This is Alvin Park. SKILL Beginner ^_^

 

I programmed a SKILL code for auto editing.

first DB open by "dbOpenCellViewByType"

 TDB = dbOpenCellViewByType( LibName CellName "layout" "masklayout" "a")

in case normal... this return correct DB code to TDB parameter. So far so good.

 

but in case of editing by somebody else (locked) , CIW shows warning that this cell is locked. (shows warning only!)

This code return correct DB code in spit of not editing the cell.  

 

So before DB open by editing mode,

How can I determine some cell is editing by sombody else?

 

  • Cancel
  • kb how
    kb how over 12 years ago

    Hi Alvin,

     Once the cellview is edited by someone, cadence will locked it down to avoid other user from editing it. If you want to play safe for your code, you can perform checking before proceed. Example:

    if( cv = dbOpenCellViewByType( libName cellName viewName "maskLayout" "a") then

        ; Start your code here, coz you managed to edit it

    else

        error("Failed to open cellview in edit mode. Mission aborted\n")

    );if

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Alvin Park
    Alvin Park over 12 years ago

    Thank you for your reply and example code....

     

    Sorry to say your code does not work correctly.....

    ex:

    cv = dbOpenCellViewByType( "V1_55P0_FHD_C502_R06_DEC2012_Panel_AELA" "pixel_unit" "layout" "maskLayout" "a" ) ;open DB
    *WARNING* (DB-270000): dbOpenCellViewByType: Unable to lock database file for V1_55P0_FHD_C502_R06_DEC2012_Panel_AELA/pixel_unit/layout
    db:0x1c1b3d9a

     

    "pixel_unit" is editing by somebody else but cv does not return NILL but DB code (db:0x1c1b3d9a)....

    Just warning "Unable to lock database"  that is all....;

     

     

    C/F : In case of without writing permission, cv returns nill. your code works correct. Thank you.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • berndfi
    berndfi over 12 years ago

     Maybe 'geGetLockInfo' is what you are looking for.

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

    What version of the tools are you using? I have a vague recollection of this problem - but even going back a few releases I can't see it - it always returns nil for me for a locked cellView.

    One way to check would be to see if cv~>mode=="a" after the open - it will be "r" if it opened it readonly.

    You could also use the ddLock functions - but I would first try to get to the bottom of what version you are using and why this is happening, rather than trying to code around it. getVersion(t) will give the version details that I need to see.

    Thanks,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Alvin Park
    Alvin Park over 12 years ago

    Hi Andrew...

    Cadence version is IC6.1.4-64b.500.11

     

    after dbOpenCellViewByType function, check it's mode "r" or "a" again. It works good. thank you.

     

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

    I discovered what the problem is - if the cellView has already been opened in readonly, and then you try to open it for "a" (append) mode, it now (even in IC615) returns the dbObject of the cellView.

    I have filed a CCR to get this corrected, as it's a difference in behaviour from IC5141.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Alvin Park
    Alvin Park over 12 years ago

    Thank you.

     geGetLockInfo funcition helps me!

    • 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