Growing pcell
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
Growing pcell

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Cadence
Author Message
Rauni
Guest





Posted: Thu Oct 28, 2004 11:33 am    Post subject: Growing pcell Reply with quote

Hi,

Is there any way to implement the following pcell in Cadence Virtuoso?

Example:

1. Pcell has a single line in METAL1. It has one parameter (x). ASCII
illustration: (All we love ASCII graphics ;-)


|


2. I create an instance in layout by calling this pcell with parameter
x=5. I hope that I'll get the following instance:


|
||
|||
||||
|||||



This horizontal repetition is ok, but that vertical stretching which
increments from left to right is the problem.

Is there any internal variables which I could use?


Thank you

Rauni

Back to top
Roger Light
Guest





Posted: Thu Oct 28, 2004 12:15 pm    Post subject: Re: Growing pcell Reply with quote

Rauni wrote:

Quote:
1. Pcell has a single line in METAL1. It has one parameter (x). ASCII
illustration: (All we love ASCII graphics ;-)


|


2. I create an instance in layout by calling this pcell with parameter
x=5. I hope that I'll get the following instance:


|
||
|||
||||
|||||

I presume you are editing the pcell parameters in virtuoso at the
moment. I would edit the pcell so that you have x and y repetition,
which would give this:

|||||
|||||
|||||
|||||
|||||

Then use the menu Pcell->Compile->To Skill File...

This gives you the skill code to make your pcell. You can then edit the
for loops in the repetition code so that it only places cells where you
want.

for(pcIndexX 0
(fix(pcRepeatX) - 1)
for(pcIndexY 0
(fix(pcIndexX) - 1) nil <- edit this line
(pcLayer = 5)
(pcPurpose = "drawing")
........

I've replaced the original "pcRepeatY" with "pcIndexX", so the number of
repetitions in the Y direction is equal to the current X index.

To use the new skill file, create a libInit.il file in your library
directory. This runs skill when that particular library is initialised,
so put

load("/path/to/your/pcell/skill/file")

inside.

Hope this helps!

Cheers,

Roger
Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Cadence All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB