regarding cadence schematic editor and skill

Discussion in 'Cadence' started by sai dhiraj, Sep 18, 2008.

  1. sai dhiraj

    sai dhiraj Guest

    Hai every one
    1)i would like to find out the coordinates of each instance in a
    schematic that is open
    2)and would like to transfer it some where else using the skill code.
    Can some1 help me please in this regard.
    Thanx in advance
     
    sai dhiraj, Sep 18, 2008
    #1
  2. Something like that?
    (foreach i (geGetEditCellView)->instances
    i->xy = (list (car i->xy) (plus (cadr i->xy) 1)))

    Yours,
     
    Jean-Marc Bourguet, Sep 18, 2008
    #2
  3. sai dhiraj

    sai dhiraj Guest

    thanx for the reply
    and the regarding code for transfering it
    i need to transfer each instance separately to another window(say for
    example into a window of xcircuit)
    i need the code for copying the element in the schematic editor to
    another editor
     
    sai dhiraj, Sep 19, 2008
    #3
  4. sai dhiraj

    S. Badel Guest

    Drag and drop, it always work :)
     
    S. Badel, Sep 19, 2008
    #4
  5. sai dhiraj

    Riad KACED Guest

    Hi Sai,

    I’m just wondering whether you wanted to make the copy with skill as
    well ! In this case, I would propose to:

    1. Open the destination cellView in W/A using the dbOpenCellViewByType
    skill function
    2. For each instance of interest in the source cellView, grab the
    information you need to copy, i.e:
    a. The istance master, you need it to make the copy
    b. The instance name if you want to keep the same names, i.e M0, R0,

    c. The position as explained by Jean-Marc
    d. The instance properties, i.e the parameters whose values are
    changed from the CDF default. You can use the instId~>prop~>name and
    instId~>prop~>value to catch these information
    3. Create a new instance in the destination schematic, using the
    schCreateInst()
    4. Update the properties of the created instance with the once grabbed
    earlier from the source cellView.

    You might be interested in looking at the following example, just to
    have an idea how to use the skill functions I've just mentioned
    above.
    http://groups.google.com/group/comp...113a?lnk=gst&q=schCreateInst#5ea6d5b8dafd113a

    Otherwise, the Stéphane's Drag and Drop trick is my favourite,
    interactive-wise.

    Cheers,
    Riad
     
    Riad KACED, Sep 21, 2008
    #5
  6. sai dhiraj

    Riad KACED Guest

    Hi Sai,
    I’m just wondering whether you wanted to make the copy with skill as
    well ! you might try the schCopy skill function in this case. There is
    a quick snippet you could adjust for your needs:
    ;
    cvCp=dbOpenCellViewByType("rkTestLib" "testCopy" "schematic"
    "schematic" "w")
    instId=car(geGetSelSet()) ; I grab an instance graphically.
    schCopy( instId cvCp list(0:0 "R0") ) ; No transformation, neither
    rotation.
    dbSave(cvCp)
    dbClose(cvCp)
    geOpen(?lib cvCp->libName ?cell cvCp->cellName ?view cvCp->viewName ?
    viewType cvCp->cellViewType ?mode "r")
    ;

    This came with the copied object as expected, i.e same name,
    parameters, origin ... etc.
    Otherwise, the Stéphane's Drag and Drop trick is my favourite,
    interactive-wise

    Cheers,
    Riad.
     
    Riad KACED, Sep 22, 2008
    #6
  7. sai dhiraj

    sai dhiraj Guest

    Thanks for all your replies'
    but i have a different problem altogether
    i have a very very big circuit and whose .ps file i need
    the cadence .ps option doesn't give me a clear picture
    so i want to transfer all the instances by the skill code to the
    "xcircuit" window which i have observed gives me good .ps files of the
    circuit diagram
    Thanks
     
    sai dhiraj, Sep 23, 2008
    #7
  8. sai dhiraj

    Riad KACED Guest

    Hi Say,

    I'm a bit confused ...
    Is that .ps you are talking about stands for PostScript ?
    Are you doing all of this work just because the Cadence's post script
    looks bad ?
    I would rather recommend you to look in this forum how to make good
    looking postScripts with Cadence. It is possible yes, just google it
    in this forum. I recall having posted something quite recently but too
    lazy to search for it right now, It's being a bit late for me ...

    Cheers,
    Riad.
     
    Riad KACED, Sep 25, 2008
    #8
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.