Serial Number Marking
Steps the main cell of the drawing, a die, on a panel of rows and columns, and gives every die a marking cell of its own with its serial number as text and as a two-dimensional barcode: Data Matrix, QR Code or Aztec. Open it from Tools → Drawing Operations → Serial Number Marking.
Serial Number Marking is a Python tool installed with LinkCAD. Like every tool that changes a drawing from Python, it needs the Edit option.
When to Use
- To prepare a mask or a laser marking file in which every die carries its own readable and machine-readable serial number
- To number the dies of a panel or wafer consistently, row by row
Options
Every length is in the unit chosen under Units.
| Option | Description | Default |
|---|---|---|
| Columns | Number of dies across | 5 |
| Rows | Number of dies down | 4 |
| Street | Gap between neighbouring dies | 200 |
| Units | Unit of every length in the dialog: nm, um, mil, mm, cm, inch or m | um |
| Serial prefix | Text placed before every serial number | LC26- |
| First serial number | Number of the first die | 1 |
| Digits | Serial numbers are zero-padded to this many digits | 4 |
| Panel cell | Name of the new cell that holds the panel | PANEL |
| Barcode | Data Matrix, QR Code or Aztec | Data Matrix |
| Data Matrix shape | Square, Rectangle or Any | Square |
| Symbol size | Empty for the smallest symbol that holds every serial number of the run. Otherwise a Data Matrix size such as 16x16 or 32x8, a QR Code version from 1 to 40, or an Aztec layer count from 1 to 32 (−1 to −4 for compact symbols) | Empty |
| Module size | Edge of one barcode module | 40 |
| Quiet zone (modules) | Light modules around the symbol; 0 uses what the symbology asks for, 4 for QR Code and 1 for the others | 0 |
| Invert | Draws the light modules instead of the dark ones, for a clear-field process | Off |
| Mark X, Mark Y | Lower-left corner of the mark, measured from the lower-left corner of the die | 500, 400 |
| Text height | Height of the serial number text | 300 |
| Font | Font of the text. A TrueType font gives filled letters | Arial |
| Layer | Layer of the marks; created if it does not exist | SERIAL |
How It Works
- The serial numbers are formed from the prefix, the first number and the number of digits, one per die
- Every barcode of the run gets the same symbol size, so the marks have the same footprint on every die. QR Code and Aztec symbols use medium error correction
- Each die gets a cell named
MARK_followed by its serial number, holding the barcode and, to its right, the serial number as text. Characters other than letters, digits,_,?and$become_in the cell name - The panel cell places the die and its marking cell at each position. Serial numbers run left to right, top row first, like a wafer map
- The panel cell becomes the main cell, and a summary reports the number of dies, the symbol size and the first and last serial number
Everything is checked before the drawing changes: a font that is not installed, serial numbers that do not fit the number of digits, a symbol size too small for the longest serial number, cell names that already exist, and a panel that exceeds the coordinate range stop the tool with a message, and nothing is added.
The text shows the serial number exactly as the barcode encodes it, backslashes, braces and percent signs included.
Exporting the Marks
The marks are text and rectangles. A GDSII text element is a label that a mask writer does not draw, so for a mask or laser file, turn on Explode text into polygons (and, if needed, splitting of polygons with many vertices) in the GDSII export options. Export also writes the new panel and marking cells, with the panel as the main cell.
Python
The tool is built on Cell.add_barcode() and BarcodeMatrix in linkcad.db, which a script can use directly.
See also: Text and Serial Numbers.