Patent ID: 8036447

Claim:
A pattern inspection apparatus comprising: an image memory for storing image data obtained by photographing a semiconductor wafer on which a plurality of chips are formed; a memory controller for extracting image data from said image memory and transferring the image data; a positional deviation detecting unit for calculating a positional deviation amount between images of two areas on the semiconductor wafer to be compared; a defect discriminating unit for obtaining a differential image between the images of said two areas by using the positional deviation amount as a correction value and extracting defect candidates from the differential image; a defect analyzing unit for analyzing the images extracted as the defect candidates; and a control unit for controlling operation of the image memory, memory controller, positional deviation detecting unit, defect discriminating unit and defect analyzing unit, wherein said control unit: holds information to identify an obtaining method performed in each area in the chip as a cell comparison or a die comparison, sets either the cell comparison or the die comparison based on a position of said defect candidate and said information to identify the obtaining method, and outputs a head address of an inspection image in said image memory, an extracting image size, a reference image position information indicating a relative position between an area on the semiconductor wafer which contains the inspection image and an area on the semiconductor wafer which contains a reference image corresponding to the inspection image, and information to identify the cell comparison or the die comparison, to said memory controller, wherein said memory controller: extracts said inspection image from the image data in said image memory by using the head address of said inspection image, extracts said reference image from the image data in said image memory by using the head address of said inspection image, said extracting image size, the reference image position information and the information to identify the cell comparison or the die comparison, and transfers the extracted inspection image and the reference image to said defect analyzing unit.