Home > Community > Forums > Custom IC SKILL > polygon in a pcell

## Email

Recipients email * (separate multiple addresses with commas)

Message *

 Send yourself a copy

## Subscribe

Intro copy of the newsletter section here, some intro copy of the newsletter. Instruction of how to subscribe to this newsletter.

First Name *

Last Name *

Email *

Company / Institution *

 Send Yourself A Copy

# polygon in a pcell

Last post Tue, Nov 6 2007 7:19 AM by archive. 4 replies.
 Started by archive 06 Nov 2007 07:19 AM. Topic has 4 replies and 1777 views
• #### Tue, Nov 6 2007 7:19 AM

• archive
• Joined on Fri, Jul 4 2008
• Posts 88
• Points 4,930
polygon in a pcell
 Hi,I need a pcell with a parameterized polygon in it.Are there any pcell - safe functions that can be used to create an orthogonal polygon? Thank you!mimsOriginally posted in cdnusers.org by mims
• Post Points: 0
• #### Tue, Nov 6 2007 8:08 AM

• archive
• Joined on Fri, Jul 4 2008
• Posts 88
• Points 4,930
RE: polygon in a pcell
 Not sure I really understand. You can use dbCreatePolygon in a pcell with no trouble - and the points can be derived from whatever parameters you define for the pcell.Regards,Andrew.Originally posted in cdnusers.org by adbeckett
• Post Points: 0
• #### Wed, Nov 7 2007 3:52 AM

• archive
• Joined on Fri, Jul 4 2008
• Posts 88
• Points 4,930
RE: polygon in a pcell
 I am using rodCreatePolygon which can produce a non-orthogonal polygon, just as dbCreatePolygon. The pcell parameter that I use to define the polygon is _coords. I add an additional point to it in case that the shape would become non-orthogonal. The drawn polygon is orthogonal. Afterwords I define stretch handles on it (with a user function which alters the corresponding x or y coordinates of the two points affected by the stretch). In the case of an additional point added the results of the stretch were unexpected. In the user stretch function I printed the properties of the instance and the value of the _coords was the original value that is supllied to the pcell before the check for orthogonality. I don't know if this makes any sense. On draw the pcell uses the correct value of _coords and on stretch it uses the original unmodified value supplied by the user during the pcell instantiation. I was wondering if I am missing an obvious solution.Regards,mimsOriginally posted in cdnusers.org by mims
• Post Points: 0
• #### Wed, Nov 7 2007 5:19 AM

• archive
• Joined on Fri, Jul 4 2008
• Posts 88
• Points 4,930
RE: polygon in a pcell
 Perhaps you could post the code? That would make it much easier to figure out what's wrong. From what you've described, there are lots of opportunities to make a mistake...Regards,Andrew.Originally posted in cdnusers.org by adbeckett
• Post Points: 0
• #### Wed, Nov 7 2007 8:37 AM

• archive
• Joined on Fri, Jul 4 2008
• Posts 88
• Points 4,930
RE: polygon in a pcell
 Here is the code... It did get messy and more complex that it is needed.. The other way that I was thinking of to implement stretching was to create the cell dynamically, but this seemed simpler.Regards,mimsOriginally posted in cdnusers.org by mims polygon.il
• Post Points: 0
###### Sort Posts: Oldest to newest Newest to oldest
 Started by archive at 06 Nov 2007 07:19 AM. Topic has 4 replies.