mirror of
https://github.com/KLayout/klayout.git
synced 2026-08-22 14:07:15 +02:00
Generated documentation
This commit is contained in:
@@ -1175,6 +1175,24 @@ four-terminal MOS transistor.
|
|||||||
See <class_doc href="DeviceExtractorMOS4Transistor">DeviceExtractorMOS4Transistor</class_doc> for more details
|
See <class_doc href="DeviceExtractorMOS4Transistor">DeviceExtractorMOS4Transistor</class_doc> for more details
|
||||||
about this extractor (non-strict mode applies for 'mos4').
|
about this extractor (non-strict mode applies for 'mos4').
|
||||||
</p>
|
</p>
|
||||||
|
<a name="name"/><h2>"name" - Assigns a name to a layer for reference in the LVS database</h2>
|
||||||
|
<keyword name="name"/>
|
||||||
|
<p>Usage:</p>
|
||||||
|
<ul>
|
||||||
|
<li><tt>name(layer, name)</tt></li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
See <a href="/about/drc_ref_netter.xml#name">Netter#name</a> for a description of that function.
|
||||||
|
</p>
|
||||||
|
<a name="name_prefix"/><h2>"name_prefix" - Specifies the layer name prefix for auto-generated layer names</h2>
|
||||||
|
<keyword name="name_prefix"/>
|
||||||
|
<p>Usage:</p>
|
||||||
|
<ul>
|
||||||
|
<li><tt>name_prefix(prefix)</tt></li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
See <a href="/about/drc_ref_netter.xml#name_prefix">Netter#name_prefix</a> for a description of that function.
|
||||||
|
</p>
|
||||||
<a name="netlist"/><h2>"netlist" - Obtains the extracted netlist from the default <a href="/about/drc_ref_netter.xml">Netter</a></h2>
|
<a name="netlist"/><h2>"netlist" - Obtains the extracted netlist from the default <a href="/about/drc_ref_netter.xml">Netter</a></h2>
|
||||||
<keyword name="netlist"/>
|
<keyword name="netlist"/>
|
||||||
<p>
|
<p>
|
||||||
|
|||||||
@@ -422,6 +422,49 @@ but no error is raised.
|
|||||||
The <class_doc href="LayoutToNetlist">LayoutToNetlist</class_doc> object provides access to the internal details of
|
The <class_doc href="LayoutToNetlist">LayoutToNetlist</class_doc> object provides access to the internal details of
|
||||||
the netter object.
|
the netter object.
|
||||||
</p>
|
</p>
|
||||||
|
<a name="name"/><h2>"name" - Assigns a name to a layer</h2>
|
||||||
|
<keyword name="name"/>
|
||||||
|
<p>Usage:</p>
|
||||||
|
<ul>
|
||||||
|
<li><tt>name(layer, name)</tt></li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
Layer names are listed in the LayoutToNetlist (L2N) or LVS database. They
|
||||||
|
are used to identify the layers, the net or device terminal geometries are
|
||||||
|
on. It is usual to have computed layers, so it is necessary to indicate the
|
||||||
|
purpose of the layer for later reuse of the geometries.
|
||||||
|
</p><p>
|
||||||
|
It is a good practice to assign names to computed and original layers,
|
||||||
|
for example:
|
||||||
|
</p><p>
|
||||||
|
<pre>
|
||||||
|
poly = input(...)
|
||||||
|
poly_resistor = input(...)
|
||||||
|
|
||||||
|
poly_wiring = poly - poly_resistor
|
||||||
|
name(poly_wiring, "poly_wiring")
|
||||||
|
</pre>
|
||||||
|
</p><p>
|
||||||
|
Names must be assigned before the layers are used for the first time
|
||||||
|
in <a href="#connect">connect</a>, <a href="#soft_connect">soft_connect</a>, <a href="#connect_global">connect_global</a>, <a href="#soft_connect_global">soft_connect_global</a> and
|
||||||
|
extract_devices statements.
|
||||||
|
</p><p>
|
||||||
|
If layers are not named, they will be given a name made from the
|
||||||
|
<a href="#name_prefix">name_prefix</a> and an incremental number when the layer is used for the
|
||||||
|
first time.
|
||||||
|
</p><p>
|
||||||
|
<a href="#name">name</a> can only be used once on a layer and the layer names must be
|
||||||
|
unique (not taken by another layer).
|
||||||
|
</p>
|
||||||
|
<a name="name_prefix"/><h2>"name_prefix" - Specifies the name prefix for auto-generated layer names</h2>
|
||||||
|
<keyword name="name_prefix"/>
|
||||||
|
<p>Usage:</p>
|
||||||
|
<ul>
|
||||||
|
<li><tt>name_prefix(prefix)</tt></li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
See <link href="#name"/> for details. The default prefix is "l".
|
||||||
|
</p>
|
||||||
<a name="netlist"/><h2>"netlist" - Gets the extracted netlist or triggers extraction if not done yet</h2>
|
<a name="netlist"/><h2>"netlist" - Gets the extracted netlist or triggers extraction if not done yet</h2>
|
||||||
<keyword name="netlist"/>
|
<keyword name="netlist"/>
|
||||||
<p>Usage:</p>
|
<p>Usage:</p>
|
||||||
|
|||||||
@@ -396,6 +396,9 @@ the schematic netlist for all circuits starting with "INV":
|
|||||||
same_nets("INV*", "A*")
|
same_nets("INV*", "A*")
|
||||||
</pre>
|
</pre>
|
||||||
</p><p>
|
</p><p>
|
||||||
|
A plain "*" for the net pattern forces all (named) nets to be equivalent between layout and schematic.
|
||||||
|
Unnamed nets from the extracted netlist are not considered - i.e. nets without a label.
|
||||||
|
</p><p>
|
||||||
After using this function, the compare algorithm will consider these nets equivalent.
|
After using this function, the compare algorithm will consider these nets equivalent.
|
||||||
Use this method to provide hints for the comparer in cases which are difficult to
|
Use this method to provide hints for the comparer in cases which are difficult to
|
||||||
resolve otherwise.
|
resolve otherwise.
|
||||||
@@ -404,6 +407,16 @@ circuit_a and net_a are for the layout netlist, circuit_b and net_b for the sche
|
|||||||
Names are case sensitive for layout-derived netlists and case-insensitive for SPICE schematic netlists.
|
Names are case sensitive for layout-derived netlists and case-insensitive for SPICE schematic netlists.
|
||||||
</p><p>
|
</p><p>
|
||||||
Use this method andwhere in the script before the <a href="#compare">compare</a> call.
|
Use this method andwhere in the script before the <a href="#compare">compare</a> call.
|
||||||
|
</p><p>
|
||||||
|
Multiple calls of "same_nets" can be used. The calls are effective in the order
|
||||||
|
the are given. For example, the following sequence specifies equivalence of all
|
||||||
|
equally named nets, with the exception of "A" and "B" which are equivalent to each other
|
||||||
|
inside cell "ND2", despite their different name:
|
||||||
|
</p><p>
|
||||||
|
<pre>
|
||||||
|
same_nets("*", "*")
|
||||||
|
same_nets("ND2", "A", "B")
|
||||||
|
</pre>
|
||||||
</p>
|
</p>
|
||||||
<a name="same_nets!"/><h2>"same_nets!" - Establishes an equivalence between the nets with matching requirement</h2>
|
<a name="same_nets!"/><h2>"same_nets!" - Establishes an equivalence between the nets with matching requirement</h2>
|
||||||
<keyword name="same_nets!"/>
|
<keyword name="same_nets!"/>
|
||||||
@@ -416,6 +429,22 @@ Use this method andwhere in the script before the <a href="#compare">compare</a>
|
|||||||
<p>
|
<p>
|
||||||
This method is equivalent to <a href="#same_nets">same_nets</a>, but requires identity of the given nets.
|
This method is equivalent to <a href="#same_nets">same_nets</a>, but requires identity of the given nets.
|
||||||
If the specified nets do not match, an error is reported.
|
If the specified nets do not match, an error is reported.
|
||||||
|
</p><p>
|
||||||
|
For example, this global specification requires all named nets from the
|
||||||
|
layout to have an equivalent net in the schematic and those nets need to be
|
||||||
|
identical for all circuits:
|
||||||
|
</p><p>
|
||||||
|
<pre>
|
||||||
|
same_nets!("*", "*")
|
||||||
|
</pre>
|
||||||
|
</p><p>
|
||||||
|
The following specification requires "A" and "B" to be identical in
|
||||||
|
circuit "ND2". It is not an error if either "A" does not exist in the
|
||||||
|
layout or "B" does not exist in the schematic:
|
||||||
|
</p><p>
|
||||||
|
<pre>
|
||||||
|
same_nets!("ND2", "A", "B")
|
||||||
|
</pre>
|
||||||
</p>
|
</p>
|
||||||
<a name="schematic"/><h2>"schematic" - Gets, sets or reads the reference netlist</h2>
|
<a name="schematic"/><h2>"schematic" - Gets, sets or reads the reference netlist</h2>
|
||||||
<keyword name="schematic"/>
|
<keyword name="schematic"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user