Pattern matching method

The pattern matching method enhances alignment accuracy and speed by calculating luminance separation degrees between regions in CAD and actual patterns, addressing the inefficiencies of existing methods.

JP2026185018APending Publication Date: 2026-11-27TORAY ENG CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2025081804
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-05-15
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing pattern matching methods are slow and inaccurate in aligning CAD patterns with actual patterns on workpieces such as wafers or substrates.

Method used

A pattern matching method that generates a luminance template from CAD patterns, superimposes it on an image of the actual pattern, calculates the separation degree of luminance values in different regions, and determines the matching position based on the maximum separation degree.

Benefits of technology

This method enables faster and more accurate pattern matching by maximizing the difference in luminance values between regions, improving alignment precision.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2026185018000001_ABST
    Figure 2026185018000001_ABST
Patent Text Reader

Abstract

This invention provides a pattern matching method that can perform pattern matching quickly and accurately. [Solution] The pattern matching method performs a luminance acquisition step to acquire the luminance values ​​of multiple pixels in the image 52 in the first region 61 of the luminance template 60 and the luminance values ​​of multiple pixels in the image 52 in the second region 62 of the luminance template 60. It then performs a separation degree calculation step to calculate the separation degree of the luminance values ​​based on the luminance values ​​of multiple pixels in the image 52 in the first region 61 and the luminance values ​​of multiple pixels in the image 52 in the second region 62, and determines the pattern matching position, which is the relative position between the luminance template 60 and the image 52 that corresponds to the maximum separation degree.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] The present invention relates to a method for matching a pattern formed on the surface of a workpiece such as a wafer, substrate, or panel with a CAD pattern created from design data of the pattern. [Background technology]

[0002] The die-to-database method is a pattern matching method that matches a pattern formed on the surface of a workpiece, such as a wafer or substrate, with a CAD pattern created from the design data of that pattern. More specifically, the die-to-database method obtains the coordinates of the area to be inspected from the design data, moves the stage on which the workpiece is placed to those coordinates, generates an image of the pattern on the workpiece by electron beam irradiation, superimposes the image with the CAD pattern created from the design data, creates a brightness profile of the image within a set range starting from the edge of the CAD pattern, determines the edge of the pattern on the image from the brightness profile, and determines the matching position where the bias value between the determined edge position and the corresponding edge of the CAD pattern is minimized. [Prior art documents] [Patent Documents]

[0003] [Patent Document 1] Japanese Patent Application Publication No. 5-324836 [Non-Patent Document 1] WH Press, SA Teukolsky, WT Vetterling, and BP Flannery, Numerical Recipes in C, Second Edition, Cambridge: Cambridge University Press, 1992, sections 13.2 and 14.5. [Non-Patent Document 2] JP Lewis, Fast Template Matching, Vision Interface 95, Canadian Image Processing and Pattern Recognition Society, Quebec City, Canada, May 15-19, 1995, p. 120-123. [Overview of the project] [Problems that the invention aims to solve]

[0004] This invention provides a pattern matching method that can perform pattern matching quickly and accurately. [Means for solving the problem]

[0005] In one embodiment, a pattern matching method is provided, which involves generating a CAD pattern from design data, creating a luminance template from the CAD pattern that includes at least a first region and a second region, superimposing the luminance template onto an image of a real pattern created according to the CAD pattern, performing a luminance acquisition step to acquire the luminance values ​​of multiple pixels in the image within the first region and the luminance values ​​of multiple pixels in the image within the second region, performing a separation degree calculation step to calculate the separation degree of luminance values ​​based on the luminance values ​​of multiple pixels in the image within the first region and the luminance values ​​of multiple pixels in the image within the second region, calculating multiple separation degrees of luminance values ​​corresponding to different relative positions between the luminance template and the image according to the luminance acquisition step and the separation degree calculation step, and determining a pattern matching position, which is the relative position between the luminance template and the image corresponding to the maximum separation degree among the multiple separation degrees of luminance values.

[0006] In one aspect, the CAD pattern generated from the design data is a CAD pattern to which at least one of corner rounding processing and scaling processing is applied, the corner rounding processing is processing for rounding corners of the CAD pattern, and the scaling processing is processing for enlarging or reducing the CAD pattern. In one aspect, the pattern matching method further includes determining that matching between the CAD pattern and the actual pattern has failed when the maximum degree of separation is lower than a threshold value. In one aspect, the first region is a region having a first width that extends along one side of the contour line of the CAD pattern, and the second region is a region having a second width that extends along the other side of the contour line of the CAD pattern. In one aspect, the brightness template includes a plurality of regions further including at least one region in addition to the first region and the second region, the brightness obtaining step includes obtaining brightness values of pixels of the image in each of the plurality of regions, and the separation degree calculating step includes calculating a degree of separation of a plurality of brightness values corresponding to the plurality of regions. [Effects of the Invention]

[0007] As the first region corresponding to the CAD pattern in the brightness template approaches the actual pattern in the image, a difference between the brightness in the first region and the brightness in the second region increases. Therefore, the relative position between the image where the degree of separation of the brightness values in the plurality of regions is maximized and the brightness template is a position where the first region corresponding to the CAD pattern in the brightness template is closest to the actual pattern in the image, that is, a pattern matching position. Experiments have confirmed that the present pattern matching method based on the degree of separation of brightness values is faster and enables more accurate pattern matching than the conventional pattern matching method based on brightness profiles. [Brief Description of Drawings]

[0008] [Figure 1] It is a schematic diagram illustrating an embodiment of an image processing apparatus. [Figure 2] It is a flowchart illustrating an embodiment of a pattern matching method. [Figure 3] FIG. 11 is a schematic diagram showing an example of a CAD pattern generated from design data. [Figure 4] FIG. 11 is a schematic diagram showing an example of a CAD pattern to which a corner rounding process for rounding corners has been applied. [Figure 5] FIG. 11 is a diagram showing an example of an image of an actual pattern. [Figure 6] FIG. 11 is a diagram showing an example of a luminance template. [Figure 7] FIG. 11 is a diagram showing an example in which a luminance template is superimposed on an image. [Figure 8] FIG. 11 is a diagram showing an example in which the position of a first region corresponding to a CAD pattern matches the position of an actual pattern on an image. [Figure 9] FIG. 11 is a diagram showing another example of a luminance template. [Figure 10] FIG. 11 is a diagram showing another example of a CAD pattern. [Figure 11] FIG. 11 is a schematic diagram showing an example of a CAD pattern to which a corner rounding process for rounding corners has been applied. [Figure 12] FIG. 11 is a diagram showing an example of an image of an actual pattern. [Figure 13] FIG. 11 is a diagram showing an example of a luminance template. [Figure 14] FIG. 11 is a diagram showing another example of a luminance template. [Figure 15] FIG. 11 is a diagram showing an example of a CAD pattern of a first layer and a CAD pattern of a second layer. [Figure 16] FIG. 16A is a diagram showing an example of a luminance template of a first layer, and FIG. 16B is a diagram showing another example of the luminance template of the first layer. [Figure 17] FIG. 17A is a diagram showing an example of a luminance template of a second layer, and FIG. 17B is a diagram showing another example of the luminance template of the second layer. [Figure 18] FIG. 11 is a diagram showing three examples of region information of a degree of separation. [Figure 19]This figure shows examples of luminance templates corresponding to Examples 1 through 3 in Figure 18. [Figure 20] Figure 20(a) shows an example of a separation map, and Figure 20(b) shows another example of a separation map. [Figure 21] Figure 21(a) is an image of the actual pattern created according to the CAD patterns of the first and second layers shown in Figure 15, and Figure 21(b) is a brightness mask image. [Figure 22] This is a flowchart explaining the process of creating a separation map. [Figure 23] Figure 23(a) is the histogram of the image in Figure 21(a), and Figure 23(b) is the histogram of the brightness mask image in Figure 21(b). [Modes for carrying out the invention]

[0009] Embodiments of the present invention will be described below with reference to the drawings. Figure 1 is a schematic diagram showing one embodiment of an image processing apparatus. The image processing apparatus comprises a scanning electron microscope 1 that generates an image of a workpiece W, and a processing system 5 that processes the image generated by the scanning electron microscope 1. Examples of workpiece W include wafers, masks, panels, and substrates used in the manufacture of semiconductor devices.

[0010] The processing system 5 consists of at least one computer. The processing system 5 includes a storage device 5a in which a program is stored, and an arithmetic unit 5b that performs calculations according to the instructions contained in the program. The storage device 5a includes main memory such as RAM and auxiliary storage such as a hard disk drive (HDD) or solid-state drive (SSD). Examples of arithmetic units 5b include a CPU (Central Processing Unit) and a GPU (Graphics Processing Unit). However, the specific configuration of the processing system 5 is not limited to these examples.

[0011] The processing system 5 may be an edge server connected to the scanning electron microscope 1 via a communication line, a cloud server connected to the scanning electron microscope 1 via a communication network such as the internet or a local network, or a fog computing device (gateway, fog server, router, etc.) installed within the network connected to the scanning electron microscope 1. The processing system 5 may be a combination of multiple servers. For example, the processing system 5 may be a combination of edge servers and cloud servers connected to each other via a communication network such as the internet or a local network.

[0012] The scanning electron microscope 1 includes an electron gun 15 that emits an electron beam, a focusing lens 16 that focuses the electron beam emitted from the electron gun 15, an X-deflector 17 that deflects the electron beam in the X direction, a Y-deflector 18 that deflects the electron beam in the Y direction, an objective lens 20 that focuses the electron beam onto a workpiece W, which is an example of a workpiece, and a stage 31 that supports the workpiece W. The configuration of the electron gun 15 is not particularly limited. For example, a field emitter type electron gun or a semiconductor photocathode type electron gun can be used as the electron gun 15.

[0013] The electron beam emitted from the electron gun 15 is focused by the focusing lens 16, then deflected by the X-deflector 17 and Y-deflector 18, and finally focused by the objective lens 20 to irradiate the surface of the workpiece W. When the primary electrons of the electron beam irradiate the workpiece W, secondary electrons and backscattered electrons are emitted from the workpiece W. The electrons emitted from the workpiece W are detected by the electron detector 26. The electron detection signal from the electron detector 26 is input to the image acquisition device 28 and converted into an image. In this way, the scanning electron microscope 1 generates an image of the surface of the workpiece W. The image acquisition device 28 is connected to the processing system 5, and the image of the workpiece W is sent to the processing system 5.

[0014] The following describes one embodiment of a method for performing pattern matching using an image processing device equipped with a scanning electron microscope 1 and a processing system 5. Pattern matching is the alignment of a CAD pattern generated from design data (also called CAD data) with a real pattern on an image. The real pattern is fabricated on a workpiece W according to the CAD pattern. CAD is an abbreviation for computer-aided design.

[0015] Figure 2 is a flowchart illustrating one embodiment of the pattern matching method. Each step of the flowchart will be described in detail below.

[0016] In step 1, the processing system 5 generates a CAD pattern from the design data. The CAD pattern is a virtual pattern generated from the pattern information contained in the design data and has a polygon shape. The design data includes pattern information such as the coordinates of the pattern vertices, the position, shape, and size of the pattern, and the layer number to which the pattern belongs. The pattern design data is pre-stored in the storage device 5a. The processing system 5 can read the pattern design data from the storage device 5a.

[0017] Figure 3 is a schematic diagram showing an example of a CAD pattern generated from design data. In the example shown in Figure 3, CAD patterns 40 and 41 have polygon shapes. However, the shape of the CAD pattern is not limited to the example shown in Figure 3.

[0018] In step 2, the processing system 5 applies a corner rounding process to CAD patterns 40 and 41 to round the corners of the CAD patterns 40 and 41, generating CAD patterns 40 and 41 with rounded corners as shown in Figure 4. Depending on the shape of the CAD patterns 40 and 41, the corner rounding process in step 2 may not be performed. For example, in the case of CAD patterns that do not have corners, such as line and space patterns, the corner rounding process is not performed.

[0019] In step 2, the processing system 5 may apply a scaling process to enlarge or reduce the CAD patterns 40 and 41 to the CAD patterns 40 and 41 in addition to, or instead of, the corner rounding process.

[0020] In step 3, the scanning electron microscope 1 generates an image 52 of the real patterns 50 and 51, as shown in Figure 5, by imaging the real patterns generated according to the CAD patterns 40 and 41. Figure 5 shows an example of an image 52 of the real patterns 50 and 51. Step 3 may be performed before or simultaneously with steps 1 and 2. Alternatively, step 3 may be performed simultaneously with or after step 4, which will be described next.

[0021] In step 4, the processing system 5 creates a luminance template 60 from the CAD patterns 40 and 41, which includes at least a first region 61 and a second region 62, as shown in Figure 6. Figure 6 is a diagram showing an example of the luminance template 60. In Figure 6, the area colored in dark gray is the first region 61, and the area colored in light gray is the second region 62. The first region 61 corresponds to the CAD patterns 40 and 41, and the outline of the first region 61 represents the shape of the CAD patterns 40 and 41. The second region 62 corresponds to the area other than the CAD patterns 40 and 41.

[0022] In the luminance template 60 of Figure 6, the first region 61 and the second region 62 are colored gray to visually distinguish them, but if the first region 61 and the second region 62 can be identified, coloring is not necessary. In the example shown in Figure 6, the luminance template 60 includes only two regions, the first region 61 and the second region 62, but it may also include three or more regions.

[0023] In step 5, the processing system 5 superimposes the luminance template 60 shown in Figure 6 onto the image 52 of the actual patterns 50 and 51 shown in Figure 5. Figure 7 shows an example of the luminance template 60 being superimposed on the image 52. In the example shown in Figure 7, the luminance template 60 is larger than the image 52. However, the size of the luminance template 60 relative to the image 52 is not particularly limited. For example, the luminance template 60 may be the same size as the image 52, or it may be smaller than the image 52.

[0024] In step 6, the processing system 5 performs a brightness acquisition process to obtain the brightness values ​​of multiple pixels in the image 52 within the first region 61 and the brightness values ​​of multiple pixels in the image 52 within the second region 62. The brightness values ​​of the actual patterns 50 and 51 in the image 52 are different from the brightness values ​​of the regions other than the actual patterns 50 and 51. The contour lines of the first region 61 and the second region 62 of the brightness template 60 define boundaries for separating pixels in the image 52 into either the first region 61 or the second region 62.

[0025] In step 7, the processing system 5 performs a separation calculation step to calculate the degree of separation between the luminance values ​​of multiple pixels in the image 52 within the first region 61 of the luminance template 60 and the luminance values ​​of multiple pixels in the image 52 within the second region 62 of the luminance template 60.

[0026] Specifically, the processing system 5 calculates the luminance value separation R using the following formula.

number

number

number

[0027] In the relative positions of the luminance template 60 and image 52 shown in Figure 7, the position of the first region 61 corresponding to the CAD patterns 40 and 41 is shifted from the positions of the actual patterns 50 and 51 on image 52. As a result, the luminance values ​​within the first region 61 include the luminance values ​​of the actual patterns 50 and 51 and the luminance values ​​of regions other than the actual patterns 50 and 51, and the luminance values ​​within the second region 62 also include the luminance values ​​of the actual patterns 50 and 51 and the luminance values ​​of regions other than the actual patterns 50 and 51.

[0028] Figure 8 shows an example where the position of the first region 61 corresponding to CAD patterns 40 and 41 coincides with the positions of the actual patterns 50 and 51 on image 52. As can be seen from Figure 8, the luminance values ​​in the first region 61 on image 52 are clearly different from the luminance values ​​in the second region 62 on image 52. Therefore, the degree of separation between the luminance values ​​in the first region 61 and the luminance values ​​in the second region 62 is greater than the degree of separation in the example shown in Figure 7. In other words, when the degree of separation of luminance values ​​is at its maximum, the position of the first region 61 is closest to the actual patterns 50 and 51 on image 52. The relative position of the luminance template 60 and image 52 when the degree of separation of luminance values ​​is at its maximum represents the position where the first region 61 corresponding to CAD patterns 40 and 41 coincides with the actual patterns 50 and 51 on image 52, i.e., the pattern matching position.

[0029] Therefore, the processing system 5 calculates multiple separation degrees corresponding to different relative positions between the luminance template 60 and the image 52. Each separation degree is calculated according to the luminance acquisition step in step 6 and the separation degree calculation step in step 7. In one embodiment, the processing system 5 calculates multiple separation degrees by repeating the luminance acquisition step in step 6 and the separation degree calculation step in step 7 while changing the relative position between the luminance template 60 and the image 52. For example, in step 8, the processing system 5 moves the relative position between the luminance template 60 and the image 52 by a distance equivalent to one pixel of the image 52, and then executes the luminance acquisition step in step 6 and the separation degree calculation step in step 7 again.

[0030] The relative position of the luminance template 60 and the image 52 may be moved by moving the luminance template 60 relative to the image 52, or by moving the image 52 relative to the luminance template 60, or by moving both the luminance template 60 and the image 52. The relative position of the luminance template 60 and the image 52 is repeated until the reference point (for example, any point in the luminance template 60 or the image 52) has moved all within a predetermined range, thereby obtaining multiple degrees of separation of luminance values ​​corresponding to multiple relative positions. The predetermined range is the range obtained by subtracting the smaller size from the larger size of the luminance template 60 and the image 52. For example, if the size of the luminance template is width wT × height hT and the image size is width wI × height hI, then the predetermined range is (wT - wI + 1) × (hT - hI + 1), and the range in which the reference point moves is within this range. However, this range is just an example, and the range in which the reference point moves is not limited to this example.

[0031] In step 9, the processing system 5 determines the maximum separation value from multiple separation values ​​of luminance values ​​and determines the pattern matching position, which is the relative position between the luminance template 60 and the image 52 corresponding to this maximum separation value.

[0032] As the first region 61, which corresponds to CAD patterns 40 and 41, approaches the actual patterns 50 and 51 in image 52, the difference in brightness between the first region 61 and the second region 62 increases. Therefore, the relative position between image 52 and the brightness template 60 where the degree of separation of brightness values ​​in multiple regions 61 and 62 is maximized is the position where the first region 61, which corresponds to CAD patterns 40 and 41 in the brightness template 60, is closest to the actual patterns 50 and 51 in image 52, and this is the pattern matching position. Experiments have confirmed that this pattern matching method based on the degree of separation of brightness values ​​is faster and more accurate than conventional pattern matching methods based on brightness profiles.

[0033] If the shape of the first region 61 of the luminance template 60 differs significantly from the shapes of the actual patterns 50 and 51 on the image 52 (for example, if the actual patterns on the image were not manufactured according to the CAD patterns 40 and 41 shown in Figure 3 or Figure 4), then it is expected that all of the multiple separation values ​​obtained by repeating steps 6 to 8 will be small. Therefore, if the maximum separation value among the multiple separation values ​​obtained is lower than the threshold, the processing system 5 determines that the matching between the CAD pattern and the actual pattern has failed.

[0034] Figure 9 shows another embodiment of the luminance template 60. The luminance template 60 in this embodiment is created based on the CAD patterns 40 and 41 shown in Figure 4, similar to the luminance template 60 in Figure 6, but the first region 61 is a region that extends along one side of the contour lines of the CAD patterns 40 and 41, and the second region 62 is a region that extends along the other side of the contour lines of the CAD patterns 40 and 41.

[0035] To visually distinguish between the first region 61 and the second region 62, in the example shown in Figure 9, the first region 61 is colored in dark gray, and the second region 62 is colored in light gray. The black area outside the second region 62 is an invalid region (or ignored region) 65, and the processing system 5 does not use the brightness values ​​of pixels within the invalid region 65 when calculating the degree of separation.

[0036] In the brightness template 60 shown in Figure 6, the widths of the first region 61 and the second region 62 are infinite, whereas in the brightness template 60 shown in Figure 9, the widths of the first region 61 and the second region 62 are finite. That is, the first region 61 has a first width, and the second region 62 has a second width. The widths of the first region 61 and the second region 62 are set in advance. The width of the first region 61 may be the same as or different from the width of the second region 62. The widths of the first region 61 and the second region 62 can be set and changed by user input. Reducing the width of the second region 62, which is colored in light gray, may improve the accuracy of pattern matching.

[0037] As described above, if the highest of the multiple separation degrees obtained in step 9 of Figure 2 is lower than the threshold, the processing system 5 determines that pattern matching has failed. There are several reasons why pattern matching may fail, but if pattern matching fails even though the actual patterns 50 and 51 on image 52 have the same shape as the CAD pattern, reducing the width of the second region 62 may make pattern matching successful.

[0038] The luminance templates 60 shown in Figures 6 to 9 indicate which region each pixel in the image is located within, and do not necessarily include CAD pattern information.

[0039] In the embodiments described so far, the luminance template 60 has two regions, a first region 61 and a second region 62, but the luminance template 60 may have three or more regions. Figure 10 shows another example of a CAD pattern. In this example, the CAD patterns 71 and 72 include a line pattern 71 and a hole pattern 72.

[0040] Figure 11 shows examples of CAD patterns 71 and 72 that include a hole pattern 72 with rounded corners, obtained by applying a corner rounding process to the hole pattern 72 shown in Figure 10. Figure 12 shows an example of image 83 of actual patterns 81 and 82 manufactured according to the CAD patterns 71 and 72 shown in Figure 11.

[0041] The processing system 5 creates a luminance template 90 from CAD patterns 71 and 72, which includes at least a first region 91, a second region 92, and a third region 93, as shown in Figure 13. Figure 13 is a diagram showing an example of the luminance template 90. In Figure 13, the area colored in light gray is the first region 91, the area colored in dark gray is the second region 92, and the area colored in medium gray is the third region 93. The first region 91 corresponds to the CAD pattern (line pattern) 71, and the contour lines of the first region 91 represent the shape of the CAD pattern (line pattern) 71. The second region 92 corresponds to the CAD pattern (hole pattern) 72, and the contour lines of the second region 92 represent the shape of the CAD pattern (hole pattern) 72. The third region 93 corresponds to the area other than the CAD patterns 71 and 72.

[0042] In order to visually distinguish between the first region 91, the second region 92, and the third region 93, the luminance template 90 in Figure 13 colors the first region 91, the second region 92, and the third region 93 in gray. However, if the first region 91, the second region 92, and the third region 93 can be identified, coloring is not necessary. In the example shown in Figure 13, the luminance template 90 includes only three regions: the first region 91, the second region 92, and the third region 93, but it may also include four or more regions.

[0043] The processing system 5 performs processing according to the flowchart shown in FIG. 2, as in the embodiment described above. In step 7 of FIG. 2, the processing system 5 executes a separation degree calculation step of calculating a separation degree among: luminance values of a plurality of pixels of the image 83 in a first region 91 of a luminance template 90; luminance values of a plurality of pixels of the image 83 in a second region 92 of the luminance template 90; and luminance values of a plurality of pixels of the image 83 in a third region 93 of the luminance template 90.

[0044] More specifically, the processing system 5 calculates the separation degree R of the luminance values using the following equations. [Equation] [Equation] [Equation] Here, I ― i represents an average of luminance values of the plurality of pixels of the image 83 in an i-th region (natural number i = 1, 2, ..., N), I ― represents an average of the luminance values of the entire image 83, n i represents the total number of pixels of the image 83 in the i-th region, and n represents the total from n1 to n N (n = n1 + n2 + ... + n N ), and I(x) represents the luminance value of the pixel x in the image 83. The pixel x is a pixel in a first region, a second region, ..., an Nth region in the image 83, and does not include a pixel in an invalid region described later. Equation (4) is an equation for calculating the separation degree, Equation (5) is an equation for calculating inter-region variance, and Equation (6) is an equation for calculating total variance.

[0045] The processing system 5 can calculate the separation degree of the luminance values using the luminance template 90 having three or more regions and the above-described equations (4), (5), and (6). Further, the processing system 5 can determine a pattern matching position according to the flowchart shown in FIG. 2.

[0046] Figure 14 shows yet another embodiment of the luminance template 90. The luminance template 90 in this embodiment, like the luminance template 90 in Figure 13, is created based on the CAD patterns 71 and 72 shown in Figure 11. The first region 91 is the region extending along one side of the contour line of the CAD pattern (line pattern) 71, the second region 92 is the region extending along the other side of the contour line of the CAD pattern (line pattern) 71 and one side of the contour line of the CAD pattern (hole pattern) 72, and the third region 93 is the region extending along the other side of the contour line of the CAD pattern (hole pattern) 72.

[0047] To visually distinguish between the first region 91, the second region 92, and the third region 93, in the example shown in Figure 14, the first region 91 is colored white, the second region 92 is colored light gray, and the third region 93 is colored dark gray. The black area outside the first region 91, the second region 92, and the third region 93 is an invalid region (or ignored region) 95, and the processing system 5 does not use the brightness values ​​of pixels within the invalid region 95 when calculating the degree of separation.

[0048] The widths of the first area 91, the second area 92, and the third area 93 are set in advance. The widths of the first area 91, the second area 92, and the third area 93 may be the same or different. The widths of the first area 91, the second area 92, and the third area 93 can be set and changed by user input.

[0049] In one embodiment, if the luminance template 60 has three or more regions, the setting of region information for the degree of separation, as described below, is inserted between steps 3 and 4 in Figure 2.

[0050] In Figure 15, the CAD pattern 101 of the first layer and the CAD pattern 102 of the second layer are obtained. CAD pattern 101 is a line pattern, and CAD pattern 102 is a hole pattern. As shown in Figure 16(a), a first region 104B and a second region 104D are set for the first layer. The first region 104B is the area within the CAD pattern 101, and the second region 104D is the area outside the CAD pattern 101. As shown in Figure 16(b), two regions, the first region 104b and the second region 104d, are set up on either side of the boundary between the first region 104B and the second region 104D, with a certain width w.

[0051] Similarly, as shown in Figure 17(a), a first region 106B and a second region 106D are set for the second layer. The first region 106B is the region within the CAD pattern 102, and the second region 106D is the region outside the CAD pattern 102. As shown in Figure 17(b), the first region 106b and the second region 106d are set up with width w on both sides of the boundary between the first region 106B and the second region 106D.

[0052] Figures 16(a) and 17(a) show the luminance template when width w = ∞. Figures 16(b) and 17(b) show the luminance template when width w < ∞. The black area 110 is an invalid area. Here, the figures are illustrated assuming the same value for width w, but width w may take different values ​​in each layer, or different values ​​in the first and second regions.

[0053] Here, we set the region information for the degree of separation as shown in Figure 18. In Example 1, the first region of the luminance template for calculating the degree of separation of the three regions is 104B, the second region is 104D and 106D, and the third region is 104D and 106B. The luminance template created with this setting is shown in Example 1 of Figure 19.

[0054] Similarly, in Example 2 of Figure 18, the first region of the luminance template is 104b, the second region is 104D and 106d or 104d and 106D, and the third region is 104D and 106b or 104d and 106B. The luminance template created with these settings is represented in Example 2 of Figure 19. Similarly, in Example 3 of Figure 18, the first region of the luminance template is 104b, the second region is 104D and 106d, and the third region is 104D and 106b or 104d and 106B. The luminance template created with these settings is represented in Example 3 of Figure 19.

[0055] In one embodiment, between steps 4 and 5 in Figure 2, the setting of the relative magnitudes of the average brightness of the regions described below is performed. The degree of separation defined by equation (4) increases as the inter-regional variance defined by equation (5) increases, regardless of the relative magnitudes of the average brightness. Therefore, if the relative magnitudes of the brightness of each region can be predicted in advance, defining these relative magnitudes can improve the matching performance.

[0056] The relationship between greater and lesser can be expressed, for example, as follows: I1: Average brightness of the first region I2: Average brightness of the second region I3: Average brightness of the third region I1 > I2 > I3 In cases where the matching process is easy, the size relationship determination process may be omitted to reduce processing time, in which case this process is skipped.

[0057] Figure 20(a) shows an example of a separation map obtained using the relative magnitudes of the average brightness of each region for a brightness template (Example 3 in Figure 19) and an image (Figure 21(a)). The separation map is a diagram showing the distribution of separation according to the relative position between the brightness template and the image. The separation values ​​are represented in grayscale in the separation map. The white areas in the separation map are areas with high separation. The range of separation values ​​is from 0 to 1, but Figure 20 has been scaled for easier visualization. The black areas are areas where this relative magnitude relationship is not satisfied and the brightness is set to 0. The processing system 5 determines the matching position by finding a position where the separation is even higher within the range of positions where the relative magnitude relationship is satisfied.

[0058] Next, in step 4 of Figure 2, we will explain the relationship between the size of the brightness template and the size of the image. The relationship between the width wT and height hT of the luminance template (hereinafter referred to as size wT × hT) and the width wI and height hI of the image (hereinafter referred to as size wI × hI) must be such that wT ≥ wI and hT ≥ hI, or wT ≤ wI and hT ≤ hI. For simplicity, throughout this specification, this relationship will consistently be assumed to be the former (wT ≥ wI and hT ≥ hI), but by simply swapping the first and second arguments of the Cor() function in equations (10)-(16) described later, it is possible to handle the latter case (wT ≤ wI and hT ≤ hI).

[0059] The following describes one embodiment of how to create a separation map. The processing system 5 creates a separation map while moving the relative positions of the overlapping luminance templates and images. In step 7 of Figure 2, the processing system 5 calculates and records the separation, which can change depending on the relative positions of the luminance templates and images, using equations (4)-(6). The range in which the smaller of the image and luminance templates can move determines the size of the separation map.

[0060] Processing system 5 checks whether the relative relationship of the average brightness of each region is satisfied at each relative position of the overlapping brightness template and the image, and sets the separation degree at that relative position to 0 if it is not satisfied. Note that in the case of images where the difficulty of the matching process is easy, this magnitude relationship determination process may be omitted in order to reduce processing time. Processing system 5 may also perform the process of checking whether the difference in average brightness is greater than or equal to a predetermined threshold in addition to satisfying the relative relationship of the average brightness of each region at each relative position of the overlapping brightness template and the image, and sets the separation degree at that relative position to 0 unless both conditions are met. In this way, by requiring not only the magnitude relationship of the average brightness but also that the difference in average brightness is greater than or equal to a set threshold, it is possible to perform a more stable separation degree calculation and improve the performance of separation degree matching.

[0061] Here, we will explain a fast method for calculating the degree of separation. Since calculating the degree of separation becomes computationally intensive when the brightness template size is large, techniques for speeding it up are necessary. Here, we will use a method that utilizes correlation calculation using the Fast Fourier Transform (FFT).

[0062] As shown in Non-Patent Documents 1 and 2, correlation calculations can be performed quickly using FFT. However, such a high-speed calculation using FFT directly is not possible for calculating the degree of separation. Nevertheless, it is possible to decompose the degree of separation calculation formula into a combination of multiple correlation calculations, obtain the results for each calculation individually, and then sum these results to obtain the final degree of separation value. This method makes it possible to quickly obtain a degree of separation map.

[0063] The following describes the process for creating the separation map, referring to Figure 22 and equations (7)-(19). In calculating the correlation map Cor(A,B) between object A and object B, when the size of object A is wA×hA and the size of object B is wB×hB, it must be that wA≧wB and hA≧hB, and the size of Cor(A,B) is (wA-wB+1)×(hA-hB+1). In this case, equations (7)-(19) hold. Note that the notation of (x,y) is omitted as appropriate, but we consider all maps to be functions of (x,y).

[0064] I(x, y): Image (x, y are pixel coordinates) I 2 (x, y): Squared image (same size as image I(x, y)) I U (x, y): Unit image (Brightness of the entire image = 1, same size as image I(x, y)) T i (x, y): Template for region i (1 for region i, 0 for all others) T All (x, y): Template for the entire region (0 for invalid regions, 1 for all others) Cor(A, B): Correlation map between object A and object B (can be calculated quickly using FFT) N: Number of areas I ― ,I ― i (i=1,…,N): Average brightness (all areas, area i) n i : Number of pixels in region i n: Total number of pixels (n=Σn) i )

[0065]

number

[0066]

number

[0067]

number

[0068]

number

[0069] In step 71, the processing system 5 calculates the brightness template Ti(x, y) (i=1, ..., N) for region i and the overall region template T, which are necessary for calculating the degree of separation. All Create (x, y). The processing system 5 also creates a squared image I of the same size as image I(x, y). 2 (x, y) and unit image I U Create (x, y). Here, a squared image is an image created by assigning the square of the brightness of each pixel as the brightness to each pixel. A unit image is an image in which the brightness of all pixels is 1.

[0070] In step 72, the processing system 5 uses equations (7) and (10) to calculate the pixel count map n of region i. i Find (x, y) (i=1, ..., N), use equations (7) and (11) to find the pixel count map n(x, y) of the entire region, and use equations (7) and (13) to find the average brightness map I of region i. ― i We find (x, y) (i=1, ..., N) and use equations (7) and (14) to obtain the average brightness map I of the entire region. ― Find (x, y), and use equations (7) and (16) to obtain the average value map of the square of the brightness of the entire region I ―2 Find (x, y).

[0071] In step 73, the processing system 5 processes the pixel count map n obtained in step 72. i (x, y), a pixel count map of the entire region n(x, y), and an average brightness map I of region i. ― i (x, y) and the average brightness map of the entire region I ― Using (x, y) and equation (17), we can create an inter-regional dispersion map σ 2 b Find (x, y).

[0072] In step 74, the processing system 5 calculates the average value map I of the square of the brightness of the entire region obtained in step 72. ―2 (x, y) and the average brightness map of the entire region I ― Using (x, y) and equation (18), we can obtain the total variance map σ 2 T Find (x, y).

[0073] In step 75, the inter-regional dispersion map σ obtained in step 73 is used. 2 b (x, y) and the total variance map σ obtained in step 74 2 T Using (x, y) and equation (19), we obtain the separation map η(x, y).

[0074] In step 7 shown in Figure 2, the maximum value of the separation is determined and its relative position is found as follows. In this embodiment, a method is used to obtain a matching position that gives the maximum value of the separation by first obtaining a separation map defined by a rectangular area of ​​image coordinates. However, it is also possible to directly maximize the separation and find the matching position without going through the separation map.

[0075] Methods that directly maximize the degree of separation include the steepest descent method, the conjugate gradient method, and the Nelder-Mead method. These methods, which are similar to descent methods, can find the matching position quickly because they require significantly fewer calculations of the degree of separation. However, they carry the risk of getting caught in extrema on the way to the optimal value, resulting in matching failure. Therefore, for images that have not been analyzed much, it is better to adopt the method of this embodiment, which involves creating a safer degree of separation map. If the characteristics of the image have already been sufficiently analyzed and optimization can be started from an initial value that is sufficiently close to the matching coordinate, it is considered better to adopt a descent-like method such as the one described above.

[0076] Next, we will explain the procedure for applying a mask to a specific region of the same image and then performing a matching process using the separation degree calculation of the two regions.

[0077] In the embodiments described below, the luminance template of the first layer is not dealt with, but rather the luminance mask of the first region of the first layer is dealt with. The image of this embodiment (Figure 21(a)) consists of three regions: a bright line pattern 201, a dark circular hole pattern 202 partially obscured by the line pattern 201, and a region of intermediate brightness 203 outside the circular hole pattern 202.

[0078] The bright line pattern 201 cannot be positioned vertically, so it is not useful for determining the vertical matching position. Therefore, matching must be performed using the hole pattern 202. In this case, if the line pattern 201 can be masked to create an invalid region, the image can be matched using the separation degree of the two regions.

[0079] Observing the histogram of the image in Figure 21(a) (Figure 23(a)), we can see that the luminance corresponding to line pattern 201 is isolated to the right, separate from the luminance of the other two regions. In such cases, it is thought that line pattern 201 can be separated based on luminance information. Therefore, if pixels with luminance above a certain threshold are set as invalid regions in the image, and the separation degree of the two regions based on hole pattern 202 is performed on the valid pixels, the matching process should function effectively.

[0080] In step 3 shown in Figure 2, the processing system 5 forms a mask 210 by replacing the brightness of pixels in the image that have a brightness greater than a predetermined threshold with a brightness of 0, thereby creating a brightness mask image as shown in Figure 21(b). Pixels that have been replaced with a brightness of 0 are treated as invalid regions during the separation calculation. The brightness range of the image is normalized in advance so that it is greater than or equal to 1.

[0081] The histogram of the luminance mask image is shown in Figure 23(b). Specifically, luminances above the threshold disappear, and instead a sharp peak of luminance=0 appears at the left edge.

[0082] In one embodiment, the processing system 5 performs luminance mask processing when creating a separation map. That is, the processing system 5 creates a separation map using a luminance template and a luminance mask image. Invalid regions are set not only in the luminance template but also in the luminance mask image. The processing system 5 calculates the separation based on the information of pixels that are not in invalid regions in both the luminance template and the luminance mask image. An example of a separation map obtained for a luminance template (Figure 17(a)) and a luminance mask image (Figure 21(b)) is shown in Figure 20(b).

[0083] The embodiments described above are intended to enable persons with ordinary skill in the art to implement the present invention. Various modifications of the above embodiments can be made naturally by those skilled in the art, and the technical idea of ​​the present invention can be applied to other embodiments as well. Therefore, the present invention is not limited to the embodiments described, but is to be interpreted in the broadest sense according to the technical idea defined by the claims. [Explanation of symbols]

[0084] W Workpiece 1. Scanning electron microscope 5 Processing System 5a Storage device 5b Arithmetic unit 15. Electron gun 16 Focusing lens 17X deflector 18 Y deflector 20 Objective lenses 26 Electron detectors 28 Image acquisition device 31 stages 40,41 CAD patterns 50, 51 Actual Patterns 52 images 60 Brightness Template 61 1st area 62 Second area 65 Invalid area 71,72 CAD patterns 81,82 Actual Patterns 83 images 90 Brightness Template 91 First area 92 Second area 93 Third area 95 Invalid area

Claims

1. Generate CAD patterns from design data, A luminance template including at least the first and second regions is created from the CAD pattern. The brightness template is superimposed onto the image of the actual pattern created according to the CAD pattern. A brightness acquisition step is performed to acquire the brightness values ​​of multiple pixels in the image within the first region and the brightness values ​​of multiple pixels in the image within the second region. A separation degree calculation step is performed to calculate the separation degree of brightness values ​​based on the brightness values ​​of multiple pixels in the image within the first region and the brightness values ​​of multiple pixels in the image within the second region. Multiple degrees of separation of luminance values ​​corresponding to different relative positions between the luminance template and the image are calculated according to the luminance acquisition step and the degree of separation calculation step. A pattern matching method for determining a pattern matching position, which is the relative position between the luminance template and the image corresponding to the highest separation degree among a plurality of separation degrees of luminance values.

2. The CAD pattern generated from the design data is a CAD pattern to which at least one of corner rounding and scaling processes has been applied. The aforementioned corner rounding process is a process of rounding the corners of the CAD pattern. The pattern matching method according to claim 1, wherein the scaling process is a process of enlarging or reducing the CAD pattern.

3. The pattern matching method according to claim 1, further comprising determining that the matching between the CAD pattern and the actual pattern has failed if the maximum separation degree is lower than a threshold.

4. The first region is a region having a first width that extends along one side of the contour line of the CAD pattern, The pattern matching method according to claim 1, wherein the second region is a region having a second width that extends along the other side of the contour line of the CAD pattern.

5. The luminance template includes a plurality of regions, in addition to the first region and the second region, further including at least one region. The luminance acquisition step includes acquiring the luminance value of the pixels of the image in each of the plurality of regions, The pattern matching method according to claim 1, wherein the separation degree calculation step includes calculating the separation degree of a plurality of luminance values ​​corresponding to the plurality of regions.

Citation Information

Patent Citations

  • Pattern matching method

    JP1993324836A