PATTERN CHECKING APPARATUS

Abstract: A pattern checking apparatus carries out the detection of candidate defects through a primary selection with a sen­ sitivity high enough to detect any existing defect, and then carries out a detailed analysis by a controlling processor (19) for a pattern including the periphery of the detected candidate defect through a secondary selection in which a candidate defect which is not a defect in a practical sense is removed from candidates, so that only real defects are de­ tected.

Description: The present invention relates to a pattern checking apparatus and, particularly, to a high-speed pattern inspection system for checking patterns on printed boards or integrated circuit wafers, patterns on masks used to fabricate printed boards or integrated circuits, or the like. Fig. 1 shows the pattern detecting part of a conventional pattern checking apparatus as disclosed, for example, in Japanese Patent Publication No. 54-37475. This apparatus performs defect detection for patterns on a mask 1 for fabrication of integrated circuits by comparing two chip patterns 1A and 1B on the mask 1 based on the fact that the mask includes a number of repeated chip patterns of the same circuit configuration and that the probability of defects of the same appearance existing at the same position of each chip is negligibly small. The apparatus operates in such a way that a flying spot scanner 2 projects light spots through objective lenses 3 and 4 onto corresponding positions of the chip patterns 1A and 1B on the mask 1, and photo-electric detectors 5 and 6 transform the pattern images into electrical signals so that the signals are compared with each other. Fig. 2 shows the principle of defect detection in the above-mentioned apparatus. Due to errors in optical and mechanical systems, it is not possible to make a completely registrated relation between corresponding pattern portions 7A and 7B (shown by the solid line and dashed line) of the chip patterns 1A and 1B. Therefore, the patterns are compared under registering or errors of, for example, Δx and Δy. The existence of anti-coincident portions of the chip patterns 1A and 1B may be detected as a defect, and portions which are normal but anti-coincident with each other due to the above-mentioned registering errors could erroneously be detected as defects. To eliminate the detection of such pseudo defects, this conventional technique allows the maximum tolerable values δ x and δ y for registering errors Δx and Δy which cannot be avoided between normal patterns and it is devised to detect only anti-coincidence ouside the tolerable range such as, for example, a portion 8 of the chip pattern 7A. One problem of this apparatus is that a defect smaller than the registering error cannot be detected in principle. Recently-used masks for fabricating LSIs have the minimum dimension as small as 1-2 µm, and a defect of 1 µm or less needs to be detected. This necessitates the positioning accuracy of scanning to be maintained within 1 µm, that is a very difficult requirement for the mechanical and optical systems. Another prior art apparatus as disclosed, for example, in Japanese Patent Application Laid-Open No. 50-131469, contemplate to overcome the above-mentioned deficiency by first making the image of features of patterns to be compared and then comparing the pattern features with each other. The principle of this apparatus will be described in connection with Fig. 2. If attention is paid, for example, to small pattern elements as features of a pattern, small pattern elements 8A and 9A will be detected on the partial pattern 7A of the chip pattern 1A. On the other hand, only a small pattern element 9B will be detected on the partial pattern 7B of a chip pattern 1B. Then, these pattern features are compared. For the element 9A detected on the partial pattern 7A, the element 9B detected on the partial pattern 7B exists within the range of registering error. For the element 8A detected on the partial pattern 7A, on the other hand, no corresponding element exists on the partial pattern 7B. Thus, this apparatus enables the detection of defects smaller than the registering error by comparing pattern features within a distance range larger than the registering error. The latter apparatus is more capable in detecting defects smaller than the registering error as compared with the previous apparatus in which patterns are compared directly. However, the ability of defect detection depends on the type of pattern features to be selected. Namely, since there are infinite types of defects, feature extracters for recognizing every defect type will be needed when all types of defects are to be detected. A large-scale hardware will be required to realize such a function, resulting naturally in an increased construction cost, or, if the function is accomplished by way of software, an enormous checking time will be required. It is the object of the present invention to provide an inexpensive pattern checking apparatus which has a greatly increased sensitivity of defect detection and is capable of preventing erroneous detection so as to perform a reliable and fast pattern checking. In order to solve said problem the invention starts from the pattern checking apparatus due to the preamble of claim 1 that is known from the patent document US 3 987 244. The prior art teaches a programmable image processor that compares successive vertical frames of the received video image of an object placed within a television camera field of view with a similar object video image stored in memory, and provides a signal manifestation of the video mismatches therebetween. The programmable image processor provides for the scanning of the received video image by the stored video image in two orthogonal directions within the camera field of view, to distinguish between video mismatches resulting from dissimilarities in the video images and mismatches resulting from the misalignment of the object in the orthogonal directions within the camera field of view. After an adjustment of said misalignment the reference image and the image of the actual object must be rescanned in order to match the images. According to the present invention positional adjustments can be made as the processing is going on so that each object needs to be scanned only once. This is accomblished by adjusting the points from which the buffer outputs are taken in such a way that no data is lost during the analysis of the positional error. The buffer memories and the analyzing memories according to the characterizing portion of claim 1 are essential parts of this process. Summing up the pattern checking operation of the claimed apparatus, a pattern to be checked is compared with a standard pattern so as to extract candidate defects by picking up anti-coincident portions or defect-like portions, and the candidate defects are checked in further detail with reference to the checking criterion. A pattern portion including the detected candidate defects is subjected to detailed analysis by a controlling processor so as to remove a defect which is practically harmless, from the candidate defects. In this case, most of the pseudo defects are considered to be caused by a positioning error, and if they were included in the candidate defects, a great number of the candidate defects would need to be processed beyond the capacity of the processor. Therefore, positioning is corrected thoroughly so as to prevent such pseudo defects from being included in candidate defects. Furthermore, according to the present invention, the pseudo defects detected at a corner of the circuit pattern as in Fig. 14 can be removed from the candidate defects. At the first step, the "primary selection" is carried out through the detection which is sensitive enough to detect any small defect. Next, a pattern portion including detected candidate defects is subjected to detailed analysis by a controlling processor (e.g., computer) so as to carry out the "secondary selection" by which a comparison result which is not a defect in a practical sense is removed from candidate defects. In this case, most of the pseudo defects are considered to be caused by the above-mentioned positioning error, and if they were included in candidate defects of the "primary selection", a great number of candidate defects would need to be processed beyond the capacity of the processor. Therefore, positioning is corrected thoroughly so as to prevent such pseudo defects from being included in candidate defects. While the detailed analysis is carried out by the processor, pattern data are stored in a buffer memory so that they are not lost during the analysis and missing of checking does not occur. In this way, defect detection on a real-time basis is achieved. The present invention will be more apparent from the following detailed description taken in conjunction with the accompanying drawings, in which: Fig. 1 is an illustration showing, as an example, the pattern detecting part of a conventional pattern checking apparatus; Fig. 2 is a diagram used to explain the deflect detection principle of the apparatus shown in Fig. 1; Fig. 3 is a block diagram of a pattern checking apparatus embodying the present invention; Figs. 4a and 4b are diagrams used to explain two-dimensional pattern scanning carried out by the apparatus; Fig. 5 is a block diagram showing an example of a candidate defect detecting part in the apparatus; Fig. 6 is a block diagram showing an example of a defect detection circuit in the apparatus; Fig. 7 is a set of timing charts used to explain the operation of the defect detection circuit; Figs. 8a and 8b are block diagrams showing an example of an image segmentation circuit; Fig. 9 is a block diagram showing an example of an anti-coincidence detector in the apparatus; Figs. 10a and 10b are diagrams used to explain typical pseudo defects due to the positioning error; Fig. 11 is a block diagram showing an example of a positioning error corrector in an image buffer memory in a candidate defect detector; Fig. 12 is a flowchart showing the defect analysis carried out by an processor; Figs. 13a and 14a are illustrations showing examples of detected image data; and Figs. 13b, 14b and 14c are illustrations showing examples of standard image data. Preferred embodiments of the present invention will now be described with reference to the drawings. Fig. 3 is a block diagram showing a pattern checking apparatus embodying the present invention. The apparatus is used, for example, for pattern checking or defect detection of photo-masks for fabricating semiconductor integrated circuits. Figs. 4a and 4b are diagrams used to explain two-dimensional pattern scanning employed by the apparatus, Fig. 5 is a block diagram showing an example of a candidate defect detecting part in the apparatus, Fig. 6 is a block diagram showing an example of a defect detection circuit in the apparatus, and Fig. 7 is a set of timing charts used to explain the operation of the defect detection circuit. Reference numeral 11 represents a mask to be checked, and numerals 12, 13 and 14 represents a scanning and imaging part including an X-Y table 12A, a mechanism controller 12B, a coordinate read-out unit 12C, an illuminating light source 13A, a condenser lens 13B, a microscope 13C, an image pickup unit 14A, an A/D converter 14B, and a timing circuit 14C. Numeral 15 represents a candidate defect detecting part. Numerals 16, 17 and 18 represent a standard pattern data generating part, made up of a bit pattern generator 16, a memory interface circuit 17, and a standard data memory 18. Numeral 19 represents a controlling processor. The mask 11 placed on the X-Y table 12A is illuminated transparently by means of the light source 13A and the condenser lens 13B. A pattern image of the mask 11 is magnified by the microscope 13C and the optical pattern image is transformed into an electrical video signal by the image pickup unit 14A. The signal is converted by the A/D converter 14B into a detected pattern image signal in a digital form. Standard data stored in the standard data memory 18 such as magnetic tape unit is supplied through the memory interface circuit 17 to the bit pattern generator 16 which in turn generates a standard pattern. The detected pattern image signal from the A/D converter 14B is compared with the standard pattern data by the candidate defect detecting part 15 on a real-time basis to detect candidate defects. The bit pattern generation is well known and explanation thereof will be omitted. Next, in order to facilitate general understanding of the apparatus, two-dimensional scanning for the whole mask 11 will be described. The mask 11 under test is generally made of a glass plate 110 on which a number of repeated functional patterns 111 of a chip (one integrated circuit also called die) are regularly arranged in the X and Y directions as shown in Fig. 4a. The X-Y table 12A mounting the mask 11 thereon is driven by the mechanism controller 12B in accordance with preset data so that the whole mask 11 is scanned. The scanning operation is shown in Fig. 4b. Chip patterns including patterns 111A and 111B are scanned in such a manner that while using the image pickup unit 14A having a detection width (sensor width) of ℓ, the X-Y table 12A is moved to scan the mask in the X direction until the end of an effective area 112 of the mask at which the table is moved in the Y direction by one scanning line and the table is moved in the X direction but oppositely with respect to the previous scanning. These operations are repeated until two-dimensional pattern scanning for the entire mask completes. In Fig. 4b, portions indicated by A and B are effective chip sections while a portion indicated by C is a dicing area. Next, a concrete arrangement of the candidate defect detecting part 15 will be described in more detail. The following conditions are established in the pattern checking apparatus. (I) The accuracy of the X-Y table 12A for mounting the mask 11 to be checked and the accuracy of mask printing are within a few µm in the whole area of the mask. Namely, a pattern detection error which can occur when the image pickup unit scans one chip is within 0.1 - 0.2 µm. (II) When a real defect is detected, a certain area around the defect is not necessary to be checked. (III) The boundary areas between chips, i.e., dicing areas, are not necessary to be checked. The operation of the candidate defect detecting part 15 will be described with reference to Fig. 5. The detected pattern image signal in a digital value derived through the A/D converter 14B from the analog image signal of the mask pattern detected by the image pickup unit 14 is supplied to a multiplexer 24 through a position correction circuit 20 which modifies the two-dimensional output position in response to the command from the controlling processor 19. The signal is also supplied sequentially to buffer memories 22-1 through 22-m. In Fig. 5, a command signal line from the controlling processor 19 to the position correction circuit 20 is not shown for purposes of simplicity. The buffer memories 22 are made up of shift registers for storing temporarily image data in a certain time frame, and a positional displacement correcting function is provided at the image data output section. This type of buffer memory is available, for example, as 2-port or dual-port memory. In this case, data is written in one address and read out from another address so as to achieve a certain displacement of output data and, consequenlty, the positional displacement can be corrected. Outputs of the buffer memories 22 with the displacement correcting function are supplied to an input of the multiplexer 24, so that one of an output of the position correction circuit 20 and outputs of the buffer memories 22 is selected to form an input V D to the defect detection circuit 28 and also to an analyzing memory 26 which stores candidate defect image data to be analyzed later by the controlling processor 19. The standard pattern data from the bit pattern generator 16 is supplied through a position correction circuit 21 to a multiplexer 25, and also supplied sequentially to buffer memories 23-1 through 23-m. The buffer memories 23 are used for the same purpose as of the buffer memories 22, and the output from each output section thereof having a positional displacement correcting function as in the case of the buffer memories 22 is supplied to the multiplexer 23 and also to the following buffer memory 23. An output V R of the multiplexer 25 is supplied to the defect detection circuit 28 and the analyzing memory 27 whose contents are read out later by the controlling processor 19 for analysis. Initially, the position correction circuit 20 and the displacement corrector portions of the buffer memories 22 and 23 are set to the center of the correctable range in response to the command from the controlling processor 19. (The command signal line is not shown in the figure.) In the initial state, the multiplexers 24 and 25 select the outputs of the position correcting circuits 20 and 21, respectively, so that the defect detection circuit 28 receives th detected-pattern video signal and the standard pattern signal. The defect detection circuit 28 is capable of determining a defect on a real-time basis (at the rate of image data sampling by the image pickup unit 14A). The defect detecting function will be described with reference to Fig. 6. The multiplexer 24 for the detected image data provides image data V D representing multi-value information and it is expressed digitally by means of the A/D converter 14B. On the other hand, comparators 281, 282 and 283 are designed to receive two-value image data V L , V M and V H in accordance with three low, medium and high threshold values Th L , Th M and Th H given by the controlling processor 19. (The threshod input lines are not shown in Fig. 5.) The relationship between the three threshold values and detected image data is shown in Fig. 7, where the digital data is depicted as an analog waveform for purposes of easy understanding. As shown in the figure, the detected image signal for a small pattern, even if it is produced intrinsically from black-white two-value patterns as of a photo-mask, does not provide a 100% contrast due to the deficient resolution of the optical system. Therefore, a plurality of threshold values are provided so that small patterns can be detected. The two-value image data V L , V M and V H are compared with the standard image data V R by respective anti-coincidence detectors 284, 285 and 286. In this case, anti-coincidence outputs as shown by D₁, D₂ and D₃ are produced. The anti-coincidence outputs includes the case of incorrect positioning between the standard image data V R and the detected image data V D and the case of real defect. The three anti-coincidence outputs are taken logical sum by an OR gate 287, which produces the candidate defect detection output signal D of the defect detection circuit 28. The comparators 281-283 are, of course, designed such that an error which cannot be avoided even through the positional correction, e.g., one bit of quantization error, is counted out of the positioning error when the inconsistent part of the detected image data V D from the standard data V R is within the unavoidable error. Namely, only real defect signals excluding those which include the unavoidable positioning error constitute the candidate defect detection signal D. The dead band of the comparators 281, 282 and 283 for preventing the detection of pseudo defects caused by the positioning error can be made far smaller than that of the foregoing prior art apparatus owing to the function of the positioning circuit as will be described later. The defect detecting operation will further be described in detail. First, segmentation of image will be described with reference to Figs. 8a and 8b which are block diagrams showing an example of the image segmentation circuit provided in the defect detection circuit 28. As shown in Fig. 8a, a partial image consisting of 3-by-3 picture elements is taken from the sample under test. The circuit arrangement includes serial-in/serial-out shift registers 280A and 280B for storing image data for one scanning line provided by the image pickup unit 14A, and a serial-in/parallel-out shift register 280C for reading out the image data in a parallel fashion. The circuit arrangement for the model includes a serial-in/serial-out shift register 280D and a serial-in/parallel-out shift register 280E, and operates to provide a partial image corresponding to the central picture element in the 3-by-3 partial image of the sample. The method of determining a defect with the ±1 bit tolerance for positioning will be described with reference to Fig. 8b. The model picture element b₂₂ corresponds in the phase (position) to a₂₂ of the 3-by-3 sample picture elements. For b₂₂ = "1", when all of a₂₁, a₂₂ and a₂₃ are "0", it is determined to be defective as the detection of anti-coincidence in the horizontal direction. For b₂₂ = "0", when all of a₂₁, a₂₂ and a₂₃ are "1", it is determined to be defective as the detection of anti-coincidence in the horizontal direction. Fig. 9 is a block diagram showing one embodiment of the anti-coincidence detector arranged by logic circuit. The circuit has input signals a₂₁, a₂₂, a₂₃ and b₂₂ corresponding to the picture elements shown in Fig. 8b, and it will readily be understood that this logic circuit arrangement provides the anti-coincidence output. This is an example of circuit for the detection of anti-coincidence with the ±1 bit tolerance of positioning error in the horizontal direction. Through the application of the circuit to the vertical and oblique directions, the difference of 2 bits or more between the sample and model is detected as a defect while allowing the positional displacement of ±1 bit in each direction. The candidate defect signal D issues an interrupt request through an interrupt controller 29 to the controlling processor 19, which then halts the entry of image data to the analyzing memories 26 and 27. (The halt command signal line is not shown in Fig. 5.) Subsequently, image data including candidate defect image stored in the analyzing memory 26 is compared with standard image data stored in the analyzing memory 27, and detailed analysis ("secondary selection") is carried out. The positioning error and pseudo defect caused by the improper two-value level are to be removed by the "primary selection" which precedes the "secondary selection" as described previously, and only a real candidate defect is analyzed in detail by the controlling processor 19 and a real defect is stored along with the corresponding coordinates in the memory of the controlling processor 19. Next, the method of saving the positioning error in the "primary selection", that constitutes the principal portion of the present invention, will be described. Figs. 10a and 10b are illustrations explaining a typical pseudo defect caused by the positional displacement, and a candidate defect is detected by an anti-coincidence detector similar to that shown in Figs. 8a and 8b and Fig. 9. The candidate defect detector determines the defectiveness using information of only small 3-by-3 area as mentioned previously and, therefore, a 2-bit displacement as of the case of Figs. 10a and 10b causes an interrupt request to the controlling processor 19. The controlling processor 19 first reads out the contents of the analyzing memories 26 and 27. The analyzing memory 26 is a multi-value memory for storing a sample pattern, and it can be formed in various two-value arrangements by software. Each of the analyzing memories 26 and 27 stores an area larger than 3-by-3, and the skate of pattern around the candidate defect can be examined for analysis. Figs. 10a and 10b show an example of examining 5-by-5 picture elements around the candidate defect. The standard pattern (hatched portion) shown in Fig. 10a is moved in the X and Y directions and the amount of anti-coincidence is evaluated. In this case, the assumption is made that a portion pushed out of the 5-by-5 area as a result of the movement is ignored, and for a portion which newly enters the 5-by-5 area, peripheral pattern information is preserved. Table 1 lists the relationship between the number of anti-coincident picture elements and the amount of movement when the sample pattern of Fig. 10b is moved relative to the model pattern of Fig. 10a in the X direction. In the table, the rightward movement of the sample pattern relative to the model pattern in Figs. 10a and 10b is defined to be positive. It can be seen from Table 1 that the sample pattern of Fig. 10b has a displacement of two picture elements in the X direction relative to the model pattern of Fig. 10a. Accordingly, it is concluded that the candidate defect detected by the candidate defect detector has actually be detected due to the occurrence of a 2-bit positional displacement and, thus, it is a pseudo defect which should not be determined as a defect. On this account, this anti-coincidence is not stored as a real candidate defect in the memory, but instead, correction for the +2 bit positional displacement is indicated to one of the buffer memories 22 with the position corrector (e.g., buffer memory 22-1), and the multiplexer 24 is switched to select the next buffer memory (e.g., buffer memory 22-2). These are the operations for the positional displacement in the X direction. The similar correcting method can be used for a positional displacement in the Y direction or X and Y directions. As a result of the foregoing analysis, if a candidate defect is found to be created due to the positioning error, the controlling processor 19 operates on the displacement corrector positions provided in the buffer memories 22 and 23 to correct the detected amount of displacement. Fig. 11 shows in block diagram of an example of the displacement corrector. A two-dimensional image detected by the image pickup unit 14A is assumed to be made up of 128-by-128 picture elements. The circuit arrangement includes a necessary number of 128-bit shift registers 30, equal in length to the number of picture elements in the lateral direction, connected in series, and one of the outputs of the shift registers is selected by a multiplexer 31 so that the image in the longitudinal direction can be delayed selectively. Alternatively, the displacement corrector may be included in the position correcting circuits 20 and 21, so that for the arrangement of the corrector included in the standard correction circuit, when the multiplexer 31 selects output y₃, the standard image data is delayed by three picture elements in the Y direction relative to the detected image data. Conversely, if the position correcting circuit 20 is arranged as shown in Fig. 11, the detected image data is delayed by three picture elements relative to the standard image data. Switching of the multiplexer 31 allows the positioning between the detected image data and the standard image data in the longitudinal direction, i.e., in the Y direction. While in Fig. 11 the shift register 30 of 1 bit x 128 is shown, it is needless to say that a shift register of bit count of multi-level image signal by 128 is employed for the position correction circuit 20 and the like. Similarly, the positional displacement in the X direction can be corrected by selecting one of the outputs of the serial-in/parallel-out shift register 32 by the multiplexer 33. Selection of the multiplexer 31 or 33 takes place in accordance with the amount of correction of displacement calculated by the controlling processor 19. The analysis by the controlling processor 19 takes a very long time as compared with the scanning of image data if it is designed like a usual computer. The buffer memories 22 and 23 are used to retain image data during the analysis, and they are made up of shift registers with a capacity enough to store image data corresponding to at least the time needed for the analysis. If a candidate defect is determined, as a result of analysis, to be a pseudo defect caused by the positional displacement repositioning is carried out by the position correction circuit 20 or 21 in response to the command from the controlling processor 19 and, thereafter, the multiplexers 24 and 25 are switched so that the input to the defect detection circuit 28 is conducted through the buffer memory 22 (including the positional displacement corrector), and the detected image data stored during the analysis following the completion of positioning and the standard image data also stored during the analysis are received as input data. During the analyzing period, the defect detection circuit 28 is deactivated by the controlling processor 19, and it restarts operating after the multiplexers 24 and 25 have been switched. By use of the foregoing buffer memories, the loss of data is prevented while the detailed analysis goes on, and a defect determination circuit without missing of inspection can be realized. By using m-stage buffer memories, a maximum of m pseudo defects can be removed by the detailed analysis without the occurrence of an absent inspection area. Due to condition (I) mentioned earlier, the positional displacement in one chip during the inspection of a photomask can be covered by image buffers as small as a few stages. Due to conditions (II) and (III), the image input to the defect detection circuit 28 can be restored to the initial state when a defect is detected or when the dicing area is scanned. On this account, the provision of the maximum number of stages needed for checking in one chip allows inspection for all chips. The cumulative positioning error caused by errors in the mechanical scanning system can be corrected by the position correction circuits 20 and 21. While the invention has been described for a system employing the electronic positioning method, more satisfactory result is obtained by moving the image pickup unit 14A in the X and Y directions in place of the foregoing method. The analysis by the controlling processor 19 is carried out using contrasting image data as performed by the analyzing memory 26, and the amount of correction for the positional displacement can take a value smaller than one bit through the interpolating calculation for data between picture elements which have been sampled when image data produced by the image pickup unit 14A is converted by the A/D converter 14B into multi-level digital image data. While the embodiment has been described on the assumption that the standard pattern data is derived from design data, it will be appreciated that the similar defect determination circuit can be used for an apparatus in which defects are detected based on the comparison between two chips within one mask. While in the foregoing embodiment the displacement correctors are provided for both of the sample and model shift registers, another arrangement may be made such that a simple delay shift register is provided for one and the output port for the positive and negative positioning is determined solely from the other. Through the foregoing analysis and operation for the "primary selection", pseudo defects caused by the positional displacement are separated from real candidate defects, and the number of candidate defects can be reduced significantly. In consequence, the real candidate defects can be analyzed more precisely by the controlling processor 19. The feature of the present invention is to extract real candidate defects from numerous candidate defects through the "primary selection". The following describes the "primary selection" and the following detailed analysis ("secondary selection") using the flow-chart of Fig. 12. Steps 121 through 126 are processes, shown as an example, for saving a pseudo defect caused by the positional displacement, instead of registering it as a defect. In case the controlling processor 19 has determined in step 124 that the candidate is not a pseudo defect caused by the positional displacement, the operation proceeds to step 127. This can be a case of defect, for example, as shown in Fig. 13a and Fig. 14a. Fig. 13a shows an isolated defect, and if such an isolated defect is detected against a blank model as shown in Fig. 13b, the operation proceeds from step 127 to step 128 so as to register the defect. In step 124, if anti-coincidence as shown in Figs. 14a and 14b (angular pseudo defect of the pattern) is detected, the operation proceeds to step 127. Fig. 14a shows an example of detected image data, and such an angular pseudo defect occurs frequently due to physical etching or insufficient optical resolution. The standard image data is shown in Fig. 14b. In many cases, this type of pseudo defects at the corner are determined-to be harmless and saved. In this case, at step 127, the determination "more detailed analysis is required" is made, and the operation proceeds to step 129. In step 129, for example, the pattern is determined to be an angle based on the standard pattern of Fig. 14b through the use of a known pattern recognition technique, and in step 130 the standard image data is modified as shown in Fig. 14c. Namely, Fig. 14c is a modified version of Fig. 14b in accordance with the saving condition. Thereafter, in step 131, data of Figs. 14a and 14c are analyzed again, and the candidate is determined to be a defect or it is saved as a pseudo defect basing on the two-dimensional information of both patterns or three-dimensional information including the two-dimensional information and illuminance of each picture element. Two examples of defects have been shown. The detailed analysis can be carried out precisely because pseudo defects caused by the positional displacement are removed in step 124. According to the present invention, as described above, defect determination is made while carrying out the positioning during the checking, whereby the structure of the defect finding device can be made simple and a significant cost reduction can be expected. After a defect has been detected, it is analyzed in detail to determine whether it is a real defect or a defect which is harmless practically. This allows the use of a sensitive candidate defect detector which has not been put into practice in the past due to anxiety of increasing erroneous determination. Consequently, the sensitivity of detection can be improved significantly, and a pattern checking apparatus which prevents erroneous determination can be provided. The present invention is significantly effective for the improvement of reliability, speed-up, and economy of pattern checking for, for example, patterns and the like used to fabricate semiconductor devices.

Claims: A pattern checking apparatus comprising: scanning and imaging means (12, 13, 14A, 14C) for two-dimensionally scanning a pattern to be checked so as to provide sequential image signals; A/D converter means (14B) for converting the image signals sequentially received from said scanning and imaging means (12, 13, 14A, 14C) into digital image signals; standard data generating means (16, 17, 18) for sequentially generating standard pattern data corresponding to said pattern to be checked; first buffer memory means (22) for temporarily storing the digital image signals received from said A/D converter means (14B); second buffer memory means (23) for temporarily storing the standard pattern data from said standard data generating means (16, 17, 18); and candidate defect detecting means (28) for comparing the digital image signals and the standard pattern data to detect a candidate defect on the basis of detection of anti-coincidence therebetween; CHARACTERIZED IN THAT said apparatus further comprises: output means (24,25) for each of the buffer memory means (22,23) so arranged that the delay between input and output of a signal or datum is adjustable; a first analyzing memory (26) for storing the digital image signal of the candidate defect portion and a pattern portion around the candidate defect portion, the entry of the digital image signals into said first analyzing memory being stopped when said candidate defect detecting means (28) detects the candidate defect; a second analyzing memory (27) for storing the standard pattern data for the candidate defect portion and the pattern portion therearound, the entry of the standard pattern data into said second analysing memory being stopped when said cancidate defect detecting means (28) detects the candidate defect; and controlling processor means (19, 29) responsive to detection of the candidate defect by said candidate defect detecting means (28) for reading and comparing the digital image signals stored in said first analyzing memory (26) and the standard pattern data stored in said second analyzing memory (27) to determine the amount of positioning error therebetween when a positioning error exists, and minimising said positioning error and compensating for the time during which the entry of data into the two analysing memories (26,27) has been stopped by increasing appropriately each of said adjustable delays between input and output for the buffer memory means (22,23). A pattern checking apparatus according to claim 1, further comprising a multiplexer (24 or 25) connected between said first or second buffer memory means (22 or 23) and said first or second analyzing memory (26 or 27) and also said candidate defect detecting means (28) for performing the correction of said positioning error amount. A pattern checking apparatus according to claim 1 or 2, wherein each of said first and second buffer memory means (22, 23) is provided in the form of a shift-register. A pattern checking apparatus according to one of claims 1 to 3, wherein each of said first and second analyzing memories (26, 27) is provided in the form of a shift-register. A pattern checking apparatus according to one of claims 1 to 4, wherein said candidate defect detecting means (28) includes means (281-287) for comparing the digital image signal with a plurality of threshold values (ThH, ThM, ThL) to obtain a plurality of binary image data and for detecting anti-coincidence between the plural binary image data and said standard pattern data, the detected anti-coincidence being OR-ed by an OR circuit. A pattern checking apparatus according to one of claims 1 to 5, wherein said candidate defect detecting means (28) is nonsensitive to a very small position displacement in detecting the anti-coincidence. A pattern checking apparatus according to one of claims 1 to 6, further comprising a controllable position correction circuit (20, 30-32) provided as part of said first buffer memory means (22) for shifting the position of said digital image signals under control of said controlling processor means (19). A pattern checking apparatus according to claim 1 or 2, further comprising a multiplexer (25) connected between said second buffer memory means (23) and said condidate detecting means (28) and also second analyzing memory (27) for performing the correction of said positioning error amount. A pattern checking apparatus according to one of claims 1 to 6, further comprising a controllable position correction circuit (21, 30-32) provided as part of said second buffer memory means (23) for shifting the position of said standard pattern data under control of said controlling processor means (19).

Inventors: AIUCHI, SUSUMU, DOI, HIDEAKI, MATSUYAMA, YUKIO, NAKAHATA, KOZO, NOMOTO, MINEO, OKAMOTO, KEIICHI
Applicants: HITACHI, LTD.
Application year: 1984
Main classification: G06F15
IPC codes: G06T7, G01N21, G01B11