regarding cadence schematic editor and skill

S

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 <asaidhiraj@gmail.com> writes:

Hai every one
1)i would like to find out the coordinates of each instance in a
schematic that is open
(geGetEditCellView)->instances~>xy

2)and would like to transfer it some where else using the skill code.
Can some1 help me please in this regard.
Something like that?
(foreach i (geGetEditCellView)->instances
i->xy = (list (car i->xy) (plus (cadr i->xy) 1)))

Yours,

--
Jean-Marc
 
On Sep 18, 5:04 pm, Jean-Marc Bourguet <j...@bourguet.org> wrote:
sai dhiraj <asaidhi...@gmail.com> writes:
Hai every one
1)i would like to find out the coordinates of each instance in a
schematic that is open

(geGetEditCellView)->instances~>xy

2)and would like to transfer it some where else using the skill code.
Can some1 help me please in this regard.

Something like that?
(foreach i (geGetEditCellView)->instances
i->xy = (list (car i->xy) (plus (cadr i->xy) 1)))

Yours,

--
Jean-Marc
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 wrote:
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
Drag and drop, it always work :)
 
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.cad.cadence/browse_thread/thread/b421f36eebbfc5dc/5ea6d5b8dafd113a?lnk=gst&q=schCreateInst#5ea6d5b8dafd113a

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

Cheers,
Riad
 
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
On Sep 22, 6:02 am, Riad KACED <riad.ka...@gmail.com> wrote:
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.
Thanks
 
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.
 

Welcome to EDABoard.com

Sponsor

Back
Top