Published by Henry Frankland – Latest update: 04/10/2022
Relevant product(s): L-Edit, CalibreOne, Calibre nmDRC
Operating systems: L-Edit (Windows or Linux RHEL), Calibre (Linux RHEL only)
Versions affected: v2016.1 Update 0 and above
Relevant area(s): Verification, Tanner Tools
Calibre provides XOR through the DRC verification option to compare two layout cells in Tanner tools. There are two layout comparison flows through the Calibre DRC integration, FastXOR and XOR. This technote will go over the Layout vs Layout techniques when running not using FASTXOR.
FastXOR automatically builds the verification deck based on the input layout cells, while XOR does not build the XOR rules and requires an LVL rule deck to be provided by the foundry or constructed by the user.
The choice of FASTXOR or XOR flow depends on your licensing. The full commercial Calibre licenses or Tanner Calibre One licenses:
- Tanner Calibre One DRC/LVS –> XOR
- Calibre nmDRC –> FASTXOR, XOR, DBdiff
The key steps for XOR rule file generation for a technology comprise of two steps:
- Obtain a layer map
- Obtaining a GDS with all GDS exported layers
- Run DBdiff on the GDS file to generate a rule deck
If only TannerCalibre One licenses are only available, to run the DBdiff command step you will need to contact your software vendor to support you in doing this.
< — DBdiff — >
- A Linux command line Calibre tool used to compare the hierarchy of top-level cells from two GDS/LEFDEF/OASIS database files. Intended as a quick utility tool to see if there are any differences between the two files, not a replacement for the XOR.
- Licenses: nmDRC & nmDRC-H
< — XOR — >
- A command line or interactive Calibre tool that requires the user to have a LVL deck from the foundry or create one. it is recommended to have a layermap for naming the layers, otherwise, format L<x>_D<y> is used to denote XOR result layers. This tool can be used within the Tanner Calibre integration.
- Licenses: Tanner CalibreOne OR nmDRC
1.0. Obtaining layer structure from L-edit
Layermaps are human-readable text files that map between layer names and the GDS layer numbers, as shown in Figure 1. They are typically provided as standard by the foundry within the PDK, or made available on request.
In some rare cases a layermap may not be readily available, these files can be quickly adapted from L-edit using the “Layer summery” tool and a script:
- Open L-edit with a project that has the PDK attached and any layout cell open
- goto “File > Layer summery“
- In the “Layer Summery” wizard select menu select “List only layers with GDSII numbers” then add “include layer’s GDSII number” and “Include layer’s data type” and execute, as shown in Figure 2.
Note: The generated file is not directly in the structure needed for a layer map file, producing a column structure GDS, DataType, Layer-name; needs reordering, and layer name to be split into layer name and purpose. The correct column order is shown in Figure 1.
- Run the attached python script “layerSumToLayerMap.py” to reorder the file
1.2. Obtaining Technology layers
To build a generic rule deck in the ‘2.0 creating rule deck‘ a GDS is required containing all the drawn layers. To do this run the attached script “xor_gen_gds.cpp” in a new cell and export the resulting GDS then contact Support to assist with step ‘2.0 creating a rule deck‘.
1.2.1. Prepping the script file
before the “xor_gen_gds.cpp” script can be executed, line 40 needs to be adjusted to point to your layermap file. The layer map file is used to determine which layers to draw in the open active cell.
- Open the “xor_gen_gds.cpp” in a notepad of a programming IDE of your choice
- Change line 40 to reflect the location of the layermap obtained from the foundry, or built using methods described in ‘1.1 layermap‘
1.2.2. Generating GDS file
- Open a project or new library that attaches the foundry PDK
- create a new cell “Cell > new view…” (or hotkey ‘N‘) and call it “__XOR__“
- With the new cell open, open the UPI script loading window by going “Tools > macro…“
- select “Load…” and then use the presented windows explorer window to select the “xor_gen_gds.cpp“
- in the macro window, in the Macros section select Macro1 and select Run, as shown in Figure 6.
- Next export the “__XOR__” cell to a gds by going “File > export Mask Data > GDSII…”
- decide on the export location select the “__XOR__”
- select the cell for export
- select ‘export‘, as shown in Figure 7.
2.0. Creating the rule deck
- nmDRC-H license
- Calibre installed
The rule deck creation stage is handled by the DBdiff tool on the Linux environment. If using Tanner CalibreOne licensing, contact support for further assistance.
- Move the layermap and GDS file to the Linux machine where the DBdiff command will be executed.
- execute the dbdiff command “dbdiff -system GDS -design __XOR__.gds out_cell -refdesign __XOR__.gds out_cell -write_xor_rules rules.xor xor -layermap layers.map”
- Store the resulting ‘rules.xor‘ LVL rule deck file in an appropriate place
Using rule deck
To use the rule deck in a DRC run:
- From L-edit execute a DRC verification run
- From Calibre interactive select the rules as the ‘XOR.rule‘, as shown in Figure 8
- then under the inputs section go to “RUN” and change the drop-down field to “Fast XOR“, as shown in Figure 9
- setup both input fields to reference the two cells/GDS to be compared under “Layout paths“, as shown in Figure 9
- Open the “FAST XOR” item in the menu and ensure the option “Create XOR file” is unchecked as shown in Figure 10.
- Execute the layout comparison with the “Run DRC” button
More information about dbdiff
More information about FastXOR