Magic VLSI Layout Tool Version 7.3 *

polygon


Generate polygons from the command line.

Shortcuts:

None.

Usage:

polygon type x1 y1 x2 y2 ... xn yn

where type is a tile type to draw, and x1 y1 ... xn yn are n vertices of a polygon.

Summary:

The polygon command allows generation of polygons on the layout from the command line, similarly to the wire segment command. The polygon command automatically generates the proper tile geometry for the polygon as specified by vertices. Vertex points are pairs of X Y coordinates, and may take any dimensional value (default lambda, but may be internal units or metric units). Note that polygons should be convex; the tile generation algorithm is not guaranteed to work with non-convex geometries.

While simple non-Manhattan structures (triangles) can be generated with the "splitpaint" and "spliterase" commands using macros, there is no convenient interactive method for generating complex polygon geometry. The polygon command is best used in scripts to create specific patterns based on known geometry.

Implementation Notes:

polygon is implemented as a built-in command in magic.

See Also:

wire

Return to command index

Last updated: December 4, 2005 at 8:39pm