Home > Community > Forums > Custom IC SKILL > Working with Scratch Cellview

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: *

 Working with Scratch Cellview 

Last post Sun, Dec 6 2009 4:01 AM by annegry12. 3 replies.
Started by Yaosan 02 Dec 2009 04:30 PM. Topic has 3 replies and 1715 views
Page 1 of 1 (4 items)
Sort Posts:
  • Wed, Dec 2 2009 4:30 PM

    • Yaosan
    • Top 500 Contributor
    • Joined on Fri, Aug 7 2009
    • Toronto, Ontario
    • Posts 35
    • Points 610
    Working with Scratch Cellview Reply

    As most of you probably know, dbOpenCellViewByType() has a mode known as scratch mode. In this mode, the cellview opened cannot be saved to disk. However, I have some question regarding this mode. First of all, what is the master and context cellview related to the "sc" and "sd" mode? In what kind of situation should I use one of these two modes?

    I would also like to know the proper way of working in this scratch view mode. Should I create a new view in scratch mode and copy over the object one by one before I start doing the modification I need? This seems to be quite troublesome IC61x with all the new blockages, vias and other OA objects listed under different property of cellviews.

    I tried opening an existing, opened cellview in scratch mode, hoping it will return a new copy i.e. with new dbID that exists only in memory, but somehow it shares the same cellview ID as the original opened cellview. I also tried to use dbCopyCellView() but it won't let me copy to the scratch view unless I specify the overwrite flag, which will write the scratch view to disk, defeating the purpose of having one in the first place.

    Lawrence mention scratch mode is handled differently in IC61x and IC51, can someone please explain the differences? Thanks in advance for any feedback.

    • Post Points: 20
  • Thu, Dec 3 2009 2:28 PM

    Re: Working with Scratch Cellview Reply

    A few points, which will hopefully clear things up:

    First of all, a cellView can only be opened once in memory at a time - there's only ever a single cellView ID. So that means it's always in a single mode - if you open a view first in "a", then separately in "r", it will still actually be in "a" mode (for example). 

    Scratch mode was not initially supported in OpenAccess versions, but this was added to enable compatibility with previous code (it was added in an IC612 Hotfix, so it's been there in all IC613 and IC614 versions). It was also there in CDB.

    There are some differences in the way things worth between CDB and OA. In CDB you could not modify the data in a cellView opened in "r" mode; if you wanted to make changes, you needed to open it in "w" (overwrite), "a" (append/edit) or "s" (scratch) mode. Scratch mode means that you cannot save the results, however. In OA, you can actually modify readonly cellViews, but again, you cannot save the results. So strictly (I believe), "s" mode isn't really any different from "r" mode (I've not really checked in OA-enabled versions).

    Note that cellViews opened in scratch mode must exist on disk - although they might be empty. Currently there's no way to open a scratch cellView in memory only (although the edits themselves are only in memry).

    Now about "context" cellViews (referred to in the "sd" and "wd" and "ad" open modes. These are not really used any more - they were in older software versions. So I wouldn't worry about those modes - I've never had to use them.

    The "wc" and "ac" modes are to do with creating database representations alongside (say) textual views. So for example, if you have a Verilog textual view (e.g. a "functional" view, you'll see there's an "OA" representation alongside it). This is a non-master database - and needs to be opened in this "c" mode. 

    For scratch cellViews, it's almost certainly not important to know about the "sc" mode.

    So the best way is if you want to go into "s" mode, you can do so, and then use dbRefreshCellView() and dbReopen(cv "r") once done. Or dbPurge() to purge from memory.

    Regards,

    Andrew.

    • Post Points: 35
  • Fri, Dec 4 2009 12:58 PM

    • Yaosan
    • Top 500 Contributor
    • Joined on Fri, Aug 7 2009
    • Toronto, Ontario
    • Posts 35
    • Points 610
    Re: Working with Scratch Cellview Reply

    Hi Andrew,

    Thanks for taking the time to respond with such a detailed explanation, I learned a lot from your response.

    I do notice I can now change stuff even though the cellview is in read only mode in IC61. I'm thinking I can skip scratch cellview altogether, make the changes I want directly in an opened, read only cellview, stream out from virtual memory in IC614, then do a dbRefreshCellView() to discard the edit. I hope that works.

    Filed under:
    • Post Points: 5
  • Sun, Dec 6 2009 4:01 AM

    • annegry12
    • Not Ranked
    • Joined on Sun, Dec 6 2009
    • <?xml version="1.0" encoding="utf-16"?><string>Washington, DC</string>
    • Posts 1
    • Points 5
    Re: Working with Scratch Cellview Reply

    yeah, I also needed this information,..thanks ..this is such a big help...I am just new with it and still exploring it..

    • Post Points: 5
Page 1 of 1 (4 items)
Sort Posts:
Started by Yaosan at 02 Dec 2009 04:30 PM. Topic has 3 replies.