Cells and instances
Cell values
Calling a cell runs its body with the given arguments and produces a cell value:
let child = inverter(1200., 2000., 4);
A cell value isn't placed anywhere until you pass it to inst. Pass it to bbox to get its bounds.
Instance values
Inst is a placed cell. Its type carries the fields the cell exports.
| Field | Type | Description |
|---|---|---|
x | Float | x position. |
y | Float | y position. |
<cell field> | Declared type | A field exported by the cell, moved into the parent coordinate system where that applies. |
let placed = inst(inverter(1200., 2000., 4), x=100., y=50.);
let bounds = bbox(placed);
Imported GDS cells expose fields found in the file, including pin names when pin layers are configured.