This function adds a reference to another cell to the current cell in the GDSII file stream. This function replicates the referenced cell (has to be previously opened and finished) to the current cell, to create a nested hierarchy. The layer numbers of the replicated structures follow the referenced cell. References can only be added in a GDSII cell, so this command can be called only if a current cell has been created. In addition, the cell to be replicated has to exist before it is referenced.
Syntax |
Description |
---|---|
gdsaddref(f, "cellname", dx, dy) |
Adds a reference to another cell ("cellname") to the current cell, with a specified move of dx and dy. |
Parameter |
Type |
Description |
---|---|---|
f |
string |
a file handle that was previously opened with gdsopen. |
cellname |
string |
name of the referenced cell. |
dx |
number |
x-movement of the replicated cell in the current cell. |
dy |
number |
y-movement of the replicated cell in the current cell. |
Example
An example of script code is available on the gdsopen page.
See Also
gdsopen, gdsclose, gdsbegincell, gdsendcell, gdsaddpoly, gdsaddcircle, gdsaddrect, gdsimport, gdsaddpath, gdsaddtext