Tricky problem in creation of Pcell Symbol

Discussion in 'Cadence' started by Sylvain, Jan 9, 2008.

  1. Sylvain

    Sylvain Guest

    Hello,

    I am trying to create a new symbol in my database, this symbol should
    be a Pcell in order to change its appearance depending on users
    parameters.

    This creation works well, as I can see my new symbol in the library
    browser, but when I want to instanciate it it in a schematic, it
    doesnt work anymore and all my device views(layout, symbol) don't
    appear anymore in the browser.
    I have to tell that if I open a layoutm and try to instanciate my
    device, the browser shows both layout and symbol views (and both can
    be instanciated)...

    So i'm wondering if I'm not doing something wrong.

    Here is a sample code that show my problem :

    (pcDefinePCell (list (ddGetObj "MYLIB") "MYDEVICE" "symbol")
    (
    (Fix string "Default")
    )
    (let (
    (cv pcCellView)
    )
    (dbCreateLine cv (list "device" "drawing") (list 0:0 2:0))
    )
    )

    Do you see something in this code, or anywhere else , that can lead to
    my problem ?


    Thank you for your time.


    Sylvain
     
    Sylvain, Jan 9, 2008
    #1
  2. Sylvain

    S. Badel Guest

    (pcDefinePCell (list (ddGetObj "MYLIB") "MYDEVICE" "symbol")
    The first argument to pcDefinePCell has an optional fourth entry, the viewType. It defaults to
    maskLayout - makes sense, most pcells are layout cells - however if you want a schematic or symbol,
    you should specify it as "schematic" or "schematicSymbol".

    In your case,

    (pcDefinePCell (list (ddGetObj "MYLIB") "MYDEVICE" "symbol" "schematicSymbol") ... )

    Other than that, I do not see a problem here.


    Stéphane
     
    S. Badel, Jan 9, 2008
    #2
  3. Sylvain

    Sylvain Guest

    Yes Stephane.
    That's it !

    Merci beaucoup, bonne journee.

    Sylvain
     
    Sylvain, Jan 9, 2008
    #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.