cellview selection in CDF

Discussion in 'Cadence' started by Gerd, Oct 10, 2005.

  1. Gerd

    Gerd Guest

    Hello,

    I have the case where i want be able to select the name of an
    instantiated cellview in the CDF description. For example, i have one
    cell 'pmos' with two underlying cellviews called 'layout' and
    'rflayout'. Both are pcells generated from skill and they have some
    common and some non-common parameters. To make some distinction between
    these parameters upon instantiation of cell 'pmos' in a layout, i'm
    writing 'pmos' CDF on top of these pcells, but i can't seem to
    correctly display parameters for 'layout' or 'rflayout' instances. I'm
    thinking i can't use
    ?display "deGetViewType()==\"maskLayout\""

    because both are of type 'maskLayout', so i used
    ?display "deGetCellView()->viewName==\"layout\""
    ?display "deGetCellView()->viewName==\"rfayout\""

    but this doesn't work either (only the "layout" parameters are
    displayed). Is this because deGetCellView() refers to the top level
    cell (which is "layout") and not to the instance?
    Does anyone have a solution for this?

    thanks,
    Gerd
     
    Gerd, Oct 10, 2005
    #1
  2. Hi Gerd,

    You can't reliably do this, because when you're doing an Add Instance, the
    instance doesn't exist yet - so there is nothing to refer to. Whilst
    potentially you might be able to get the view name from the form, this is not
    safe either, since the form data structure is not necessarily available (in the
    same way, at least) from all different methods (schematic and layout, add
    instance, and edit properties).

    There is a PCR (at least one) asking for a callback on the
    libName/cellName/viewName fields of the form - which might potentially allow you
    to do this.

    Anyway, I can't think of a clean way of doing this which doesn't end up being a
    hack. Whilst I don't generally recommend CDF callbacks for deriving data, these
    are for display purposes only - but even so, I don't think it's that easy to do.

    Regards,

    Andrew.
     
    Andrew Beckett, Oct 10, 2005
    #2
  3. Gerd

    Gerd Guest

    Thanks, Andrew.
    What do you mean by PCR?
    Anyhow, i think i'll end up making a separate cell for the rf layout.

    regards,
    Gerd.
     
    Gerd, Oct 11, 2005
    #3
  4. Product Change Request. It's our internal system used to track change requests
    in the products.

    Andrew.
    Yes, that's probably what I'd do.

    Andrew.
     
    Andrew Beckett, Oct 11, 2005
    #4
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.