Generates a gds file for a given cell from Synopsys OptoCompiler™ and returns a structure with port information and bounding box of the cell. This command is only available on Linux.
| Syntax | Description |
|---|---|
| results =ocgetgeometry(inputs); | Generate a gds file and a port information structure using the input settings. The table below discusses the input settings and returned results.. |
The input settings is a structure that must contain the fields shown in the table below.
| Field | Description |
|---|---|
| libDefs | Specifies the location of the lib.defs file. |
| library | Specifies the library that contains the cell. |
| cell | Specifies the cell. |
| view | Specifies the view to generate the gds from. |
| params | A structure that includes parameters for PCells. The key to each structure is the name of the parameter, and the value is the value of the parameter. |
| output | Specifies the output location of the gds file. |
| layermap | Specifies the layer map file. |
The returned results is a structure that contains the following fields:
| Field | Description |
|---|---|
| portInfo | A structure with port information for the cell. |
| boundingBox | A cell array with bounding box information for the cell. |
Example
pcell_params= struct;
pcell_params.<parameter1 name> = <parameter1 value>;
pcell_params.<parameter2 name> = <parameter2 value>;
...
inputs = struct;
inputs.libDefs = <path to lib.defs>;
inputs.library = <library name>;
inputs.cell = <cell name>;
inputs.view = <viewname>;
inputs.params = pcell_params;
inputs.layermap = <path to layermap file>;
inputs.output = <output GDS file location>;
ports_struct = ocgetgeometry(inputs);See Also