Skip to content

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.

OptionDescriptionDefault
ColumnsNumber of dies across5
RowsNumber of dies down4
StreetGap between neighbouring dies200
UnitsUnit of every length in the dialog: nm, um, mil, mm, cm, inch or mum
Serial prefixText placed before every serial numberLC26-
First serial numberNumber of the first die1
DigitsSerial numbers are zero-padded to this many digits4
Panel cellName of the new cell that holds the panelPANEL
BarcodeData Matrix, QR Code or AztecData Matrix
Data Matrix shapeSquare, Rectangle or AnySquare
Symbol sizeEmpty 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 sizeEdge of one barcode module40
Quiet zone (modules)Light modules around the symbol; 0 uses what the symbology asks for, 4 for QR Code and 1 for the others0
InvertDraws the light modules instead of the dark ones, for a clear-field processOff
Mark X, Mark YLower-left corner of the mark, measured from the lower-left corner of the die500, 400
Text heightHeight of the serial number text300
FontFont of the text. A TrueType font gives filled lettersArial
LayerLayer of the marks; created if it does not existSERIAL

How It Works

  1. The serial numbers are formed from the prefix, the first number and the number of digits, one per die
  2. 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
  3. 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
  4. 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
  5. 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.