*Error* unknown: dbSetq: Can not set attribute

Discussion in 'Cadence' started by saby, Oct 28, 2005.

  1. saby

    saby Guest

    Hi,
    I imported the DEF file into DFII. I want to open the imported design
    with the layout view of the std-cells and not the abstract view. So, I
    wrote a small piece of skill code that will replace all the "abstract"
    cell views with "layout" e.g.

    cv~>cellView = "layout"

    But doing so gives me the error:
    *Error* unknown: dbSetq: Can not set attribute - viewName

    Is it an illegal operation? Becase manually I can do this by changing
    the "abstract" to "layout" in properties menu. What can be the reason?

    Also, is there a way to directly open the imported DEF into virtuoso
    layout and not the preview? I read a similar discussion on this
    lastweek, but I could not find the property that needs to be changed
    that will make virtuoso( not preview) to handle the design. Any
    comments?

    Regards
    Saby.
     
    saby, Oct 28, 2005
    #1
  2. Changing the cellView attribute would never be the right thing to do, since the
    cellView attribute indicates which cellView the object belongs to. If it was an
    instance id that you're talking about, the atttribute that most people try to
    change (and fail) is viewName:

    instId~>viewName="layout".

    The libName, cellName, viewName attributes cannot be directly changed. You can
    change the "master" attribute to the new cellView Id, and then the libName,
    cellName, viewName attributes will show the right thing (effectively they're
    derived in this context). The edit properties form disguises all this from you
    in order to make it easier for you to change.

    e.g:

    instId~>master=dbOpenCellViewByType(instId~>libName instId~>cellName "layout")

    or you could use the dbSetInstHeaderMasterName() function to change all
    instances of the same type at the same time.

    There is a menu Design->Remaster Instances which can be used for this. Simply
    fill in the viewName fields only, from "abstract" to "layout". This would avoid
    you having to write the SKILL in the first place.

    As for changing it to open in Virtuoso Layout Editor, you can do this with the
    Design->Set Default Application menu. In years gone by, I got rid of the preview
    magic properties by using the following SKILL code:

    /***************************************************************
    * *
    * (abResetViewType libName cellName viewName) *
    * *
    * Reset the viewType by removing the viewSubType property on *
    * a cellView. *
    * *
    ***************************************************************/

    (procedure (abResetViewType libName cellName viewName)
    (let (cv)
    (setq cv (dbOpenCellViewByType libName cellName viewName "" "a"))
    (when cv
    (dbDeletePropByName cv "viewSubType")
    (dbSave cv)
    (dbClose cv)
    )))

    Regards,

    Andrew.
     
    Andrew Beckett, Oct 30, 2005
    #2
  3. saby

    saby Guest

    Dear Andrew,
    Thanks for your insightful comments. It solved my problem.

    regards
    saby.
     
    saby, Oct 30, 2005
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.