Patent ID: 8089058

Claim:
A method for establishing a wafer testing recipe comprising: acquiring, by an automatic optical inspection (AOI) system, images of a number of dies from a produced wafer; using, by an off-line system, at least a part of said images to compose a reference-image to be used as testing reference of a typical die image; defining, by the off-line system, on said reference-image elements of a die pattern that differ from each other as different kinds of zones of interest; determining, by the off-line system, Detection-Policies that comprise a Detection-Policy for each kind of zone of interest; determining a Detection-Policy algorithm of each Detection-Policy; determining, by the off-line system, parameters of each of said Detection-Policy algorithm; determining, by the off-line system, Reporting-Policies that comprise a Reporting-policy for each kind of zone of interest by defining a set of defect classes that could be used during inspection of a specific lot of wafers; determining, by the off-line system, Inspection-Policies that comprise an Inspection-policy for each kind of zone of interest, each Inspection-policy defining a behavior of an inspection system as a set of pre-defined logical rules; establishing, by the off-line system, a wafer testing recipe by integrating of said testing reference of a typical die image, said defined zones of interest, Detection-Policies, parameters of said each Detection-Policy algorithm, said Reporting-Policies and said Inspection-Policies; wherein the wafer testing recipe comprises a sub-recipe for each kind of area of interest; and performing, by the AOI system, an AOI process to recognize defects using the wafer testing recipe.