Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue #1887 fixed (doc update) #1891

Merged
merged 1 commit into from
Oct 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading