Home > Community > Forums > Custom IC SKILL > how to determine some cellview is editing by somebody else?

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 how to determine some cellview is editing by somebody else? 

Last post Wed, Dec 19 2012 5:18 PM by Alvin Park. 7 replies.
Started by Alvin Park 11 Dec 2012 06:56 PM. Topic has 7 replies and 1347 views
Page 1 of 1 (8 items)
Sort Posts:
  • Tue, Dec 11 2012 6:56 PM

    • Alvin Park
    • Not Ranked
    • Joined on Fri, Mar 11 2011
    • Posts 6
    • Points 120
    how to determine some cellview is editing by somebody else? Reply

    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?

     

    • Post Points: 20
  • Tue, Dec 11 2012 8:55 PM

    • kb how
    • Top 100 Contributor
    • Joined on Fri, May 6 2011
    • Melaka, Melaka
    • Posts 76
    • Points 1,030
    Re: how to determine some cellview is editing by somebody else? Reply

    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

    -How-
    • Post Points: 20
  • Tue, Dec 11 2012 9:32 PM

    • Alvin Park
    • Not Ranked
    • Joined on Fri, Mar 11 2011
    • Posts 6
    • Points 120
    Re: how to determine some cellview is editing by somebody else? Reply

    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.

     

    • Post Points: 35
  • Wed, Dec 12 2012 1:17 AM

    • berndfi
    • Top 100 Contributor
    • Joined on Tue, Sep 11 2012
    • Neubiberg, Bavaria
    • Posts 66
    • Points 1,250
    Re: how to determine some cellview is editing by somebody else? Reply

     Maybe 'geGetLockInfo' is what you are looking for.

    • Post Points: 20
  • Wed, Dec 12 2012 1:41 AM

    Re: how to determine some cellview is editing by somebody else? Reply

    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.

    • Post Points: 20
  • Sun, Dec 16 2012 11:11 PM

    • Alvin Park
    • Not Ranked
    • Joined on Fri, Mar 11 2011
    • Posts 6
    • Points 120
    Re: how to determine some cellview is editing by somebody else? Reply

    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.

     

    • Post Points: 20
  • Mon, Dec 17 2012 2:57 AM

    Re: how to determine some cellview is editing by somebody else? Reply

    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.

    • Post Points: 5
  • Wed, Dec 19 2012 5:18 PM

    • Alvin Park
    • Not Ranked
    • Joined on Fri, Mar 11 2011
    • Posts 6
    • Points 120
    Re: how to determine some cellview is editing by somebody else? Reply

    Thank you.

     geGetLockInfo funcition helps me!

    • Post Points: 5
Page 1 of 1 (8 items)
Sort Posts:
Started by Alvin Park at 11 Dec 2012 06:56 PM. Topic has 7 replies.