Skip to content

Commit

Permalink
issue #1887 fixed (doc update)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koefferlein committed Oct 12, 2024
1 parent 7953cad commit dae0c16
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
10 changes: 8 additions & 2 deletions src/doc/doc/about/drc_ref_source.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,15 +181,21 @@ Filters are expressions describing ranges
of layers and/or datatype numbers or layer names. Multiple filters
can be given and all layers matching at least one of these filter
expressions are joined to render the input layer for the DRC engine.
For the syntax of the filter expressions see <class_doc href="LayerMap#map">LayerMap#map</class_doc> (look for
the version that uses a map expression).
</p><p>
Some filter expressions are:
</p><p>
<ul>
<li><tt>1/0-255 </tt>: Datatypes 0 to 255 for layer 1 </li>
<li><tt>1/* </tt>: All datatypes for layer 1 </li>
<li><tt>1/0,5,10 </tt>: Datatypes 0, 5 and 10 for layer 1 </li>
<li><tt>1/0;2/17 </tt>: Layer 1, datatype 0 and layer 2, datatype 17 </li>
<li><tt>1-10 </tt>: Layers 1 to 10, datatype 0 </li>
<li><tt>METAL </tt>: A layer named "METAL" </li>
<li><tt>METAL (17/0) </tt>: A layer named "METAL" or layer 17, datatype 0 (for GDS, which does
not have names)</li>
<li><tt>METAL;VIA </tt>: A layer named "METAL" and the layer named "VIA" </li>
<li><tt>METAL;17/0 </tt>: A layer named "METAL" and layer 17, datatype 0 </li>
<li><tt>'17' </tt>: A layer named "17". Note the quotes which indicate a string, not a layer number </li>
</ul>
</p><p>
Layers created with "input" may contain both texts (labels) and polygons. There is a subtle
Expand Down
10 changes: 8 additions & 2 deletions src/drc/drc/built-in-macros/_drc_source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -383,15 +383,21 @@ def extent(cell_filter = nil)
# of layers and/or datatype numbers or layer names. Multiple filters
# can be given and all layers matching at least one of these filter
# expressions are joined to render the input layer for the DRC engine.
# For the syntax of the filter expressions see RBA::LayerMap#map (look for
# the version that uses a map expression).
#
# Some filter expressions are:
#
# @ul
# @li @tt 1/0-255 @/tt: Datatypes 0 to 255 for layer 1 @/li
# @li @tt 1/* @/tt: All datatypes for layer 1 @/li
# @li @tt 1/0,5,10 @/tt: Datatypes 0, 5 and 10 for layer 1 @/li
# @li @tt 1/0;2/17 @/tt: Layer 1, datatype 0 and layer 2, datatype 17 @/li
# @li @tt 1-10 @/tt: Layers 1 to 10, datatype 0 @/li
# @li @tt METAL @/tt: A layer named "METAL" @/li
# @li @tt METAL (17/0) @/tt: A layer named "METAL" or layer 17, datatype 0 (for GDS, which does
# not have names)@/li
# @li @tt METAL;VIA @/tt: A layer named "METAL" and the layer named "VIA" @/li
# @li @tt METAL;17/0 @/tt: A layer named "METAL" and layer 17, datatype 0 @/li
# @li @tt '17' @/tt: A layer named "17". Note the quotes which indicate a string, not a layer number @/li
# @/ul
#
# Layers created with "input" may contain both texts (labels) and polygons. There is a subtle
Expand Down

0 comments on commit dae0c16

Please sign in to comment.