Download and try LinkCAD DXF, GDSII, CIF, PostScript Translator now for free!
Each cell contains several geometrical elements, such as polygons, wires or references to other cells:
A polygon element consists of the following records:
|
BOUNDARY; |
|
|
LAYER n; |
Layer number (0 - 255) |
|
XY x0,y0 x1,y1 x2,y2 ... xn,yn x0,y0; |
Boundary (polygon) vertices. The first and the last vertices must coincide. |
|
ENDEL; |
|
A square element consists of the following records (the coordinate pair x5, y5 must be the same as x0, y0):
|
BOX; |
|
|
LAYER n; |
Layer number (0 - 255) |
|
XY x0,y0 x1,y1 x2,y2 x3,y3 x4,y4 x5,y5; |
Box vertices. The first and last vertices must coincide. |
|
ENDEL; |
|
A wire element consists of the following records:
|
PATH; |
|
|
LAYER n; |
Layer number (0 - 255) |
|
WIDTH width; |
Path width, in datbase units. |
|
XY x0,y0 x1,y1 x2,y2 ... xn,yn; |
Path coordinates. |
|
ENDEL; |
|
A cell reference consists of the following records:
|
SREF; |
|
|
SNAME name; |
name: name of referenced structure |
|
STRANS trans; |
Optional; combination of the following flags: |
|
MAG mag; |
Optional; magnification/scaling factor |
|
ANGLE angle; |
Optional; rotation angle in degrees, CCW. |
|
XY x, y; |
Coordinate of the insertion point. |
|
ENDEL; |
|
Note: transformations are applied in the following order: 1. scaling, mirroring; 2. rotation; 3. insertion.
Array transformations are applied in the following order: 1. scaling,
mirroring; 2. rotation; 3. insertion.
An array reference consists of the following records:
|
AREF; |
|
|
SNAME name; |
name: name of referenced structure |
|
STRANS trans; |
Optional; combination of the following flags: |
|
MAG mag; |
Optional; magnification/scaling factor |
|
ANGLE angle; |
Optional; rotation angle in degrees, CCW. The specified angle rotates the entire array (with the individual array members rigidly attached) about the array reference point. If this record is omitted, the default angle is zero degrees. |
|
COLROW columns, rows; |
Number of columns and rows. |
|
XY x0, y0 x1, y1 x2, y2; |
x0, y0: coordinate of array reference point (origin point). x1, y1: coordinate that is displaced from the reference point by the inter-column spacing times the number of columns, after all transformations have been applied. x2,
y2: coordinate
that is displaced from the reference point by the inter-row spacing times
the number of row, after
all transformations have been applied. |
|
ENDEL; |
|
Because (x1,y1) and (x2,y2) in the XY record are tedious to calculate (the coordinates do not specify the array boundary box and they include the specified array transformations), LinkCAD allows an alternative representation when reading GDS-TXT files. The column and row spacing is simply specified as the third and fourth parameter in the COLROW record, and the above coordinate pairs are dropped :
|
AREF; |
|
|
SNAME name; |
name: name of referenced structure |
|
STRANS trans; |
Optional; combination of the following flags: |
|
MAG mag; |
Optional; magnification/scaling factor |
|
ANGLE angle; |
Optional; rotation angle in degrees, CCW. The specified angle rotates the entire array (with the individual array members rigidly attached) about the array reference point. If this record is omitted, the default angle is zero degrees. |
|
COLROW cols, rows col-spc, row-spc; |
Number of columns and rows; column and row spacing of the untransformed array. |
|
XY x0, y0; |
x0, y0: coordinate of array reference point (origin point). |
|
ENDEL; |
|