JPH01274280A - Method and device for inspecting pattern - Google Patents

Method and device for inspecting pattern

Info

Publication number
JPH01274280A
JPH01274280A JP63102948A JP10294888A JPH01274280A JP H01274280 A JPH01274280 A JP H01274280A JP 63102948 A JP63102948 A JP 63102948A JP 10294888 A JP10294888 A JP 10294888A JP H01274280 A JPH01274280 A JP H01274280A
Authority
JP
Japan
Prior art keywords
pattern
inspection
data
pattern data
stored
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP63102948A
Other languages
Japanese (ja)
Inventor
Takahiro Nakano
隆広 中野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NSK Ltd
Original Assignee
NSK Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NSK Ltd filed Critical NSK Ltd
Priority to JP63102948A priority Critical patent/JPH01274280A/en
Publication of JPH01274280A publication Critical patent/JPH01274280A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To accurately perform the inspection of defect by comparing an inspection pattern with a master pattern after matching them corresponding to the inclination of the inspection pattern. CONSTITUTION:Image data from a CCD camera 3 are stored in shift register groups (9a-9d) sequentially. A controller 4 read outs the image data stored in the shift register groups (9a-9d), and stores them in a bit map memory 10a as the read data of the inspection pattern. Also, the readout of a table 1 and the register groups (9a-9d) are controlled corresponding to the inclination of the inspection pattern 3. The existence of the defect in a pattern formed in an object 2 to be inspected can be inspected by comparing the contour image data of the inspection pattern stored in the bit map memory 10a with that of the master pattern stored in a bit map memory 10c.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、マスク、レチクル、プリント基板等に形成
されたパターンの欠陥の有無を検査するパターン欠陥検
査方法及び装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a pattern defect inspection method and apparatus for inspecting the presence or absence of defects in patterns formed on masks, reticles, printed circuit boards, etc.

〔従来の技術〕[Conventional technology]

従来のパターン検査方法としては、例えば特開昭60−
21523号公報(第1従来例)、特開昭59−126
830号公報(第2従来例)に記載されているものがあ
る。
For example, as a conventional pattern inspection method,
Publication No. 21523 (first conventional example), JP-A-59-126
There is one described in Publication No. 830 (second conventional example).

第1従来例は、フォトマスクの欠陥検査方法であって、
マスク上に位置合わせマークとして少なくとも3個のマ
ークを設け、これらのマークの各中心位置をマスクを光
照射部によって一方向に走査することにより得られる被
検査パターンに対応する走査信号を検出する信号検出部
により検出し、これらの中心位置の各座標から前記マス
クのX方向伸縮量、Y方向伸縮量及び直交度のずれを求
め、これらに基づいて基準信号発生部(マスクパターン
)の比較用走査信号を発生する際の位置↑n報を補正す
ることにより、被検査パターンとマスクパターンとの位
置ずれによる誤判断を防止するようにしている。
A first conventional example is a photomask defect inspection method, which includes:
A signal for detecting a scanning signal corresponding to a pattern to be inspected obtained by providing at least three marks as alignment marks on a mask and scanning the center position of each of these marks in one direction with a light irradiation unit. Detected by the detection unit, the amount of expansion/contraction in the X direction, the amount of expansion/contraction in the Y direction, and the deviation in orthogonality of the mask are determined from each coordinate of these center positions, and based on these, the reference signal generating unit (mask pattern) is scanned for comparison. By correcting the position ↑n information when the signal is generated, erroneous judgments due to positional deviation between the pattern to be inspected and the mask pattern are prevented.

第2の従来例は、走査に使用する一次元ラインセンサを
被検体中の走査領域に対して一定角度傾けた状態で走査
を行い、画像に対するライン方向のずれを防止するよう
にしている。
In the second conventional example, scanning is performed with a one-dimensional line sensor used for scanning tilted at a fixed angle with respect to a scanning area in a subject to prevent deviation in the line direction with respect to the image.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかしながら、上記第1従来例にあっては、被検査部材
に被検査パターンとは別個に少なくとも3つの位置合わ
せマークを設ける必要があると共に、これらの位置合わ
せパターンを読取って中心位置座標を検出する必要があ
り、パターンの位置合わせマーク読取手段がペット必要
など装置が複雑大型化するという未解決の課題があった
However, in the first conventional example, it is necessary to provide at least three alignment marks on the member to be inspected separately from the pattern to be inspected, and these alignment patterns are read to detect the center position coordinates. There was an unresolved problem that the device would be complicated and large, such as the need for a pattern alignment mark reading means and the need for a pet.

また、上記第2従来例にあっては、1次元ラインセンサ
をX方向に走査しながら、被検査パターンをY方向に連
続的に移動させる場合の読取パターンの補正には有効で
あるが、被検査パターンとマスクパターンとのずれを補
正するためには、別途被検査パターンとマスクパターン
とのずれ角を検出しなければ、1次元ラインセンサの傾
きを制御することができないという未解決の課題があっ
た。
Furthermore, the second conventional example described above is effective for correcting the read pattern when the pattern to be inspected is continuously moved in the Y direction while scanning the one-dimensional line sensor in the X direction. In order to correct the deviation between the inspection pattern and the mask pattern, there is an unresolved problem that the tilt of the one-dimensional line sensor cannot be controlled without separately detecting the deviation angle between the pattern to be inspected and the mask pattern. there were.

そこで、この発明は、上記従来例の未解決の課題に着目
してなされたものであり、特別な位置合わせマークを設
けることなく、被検査パターンに角度ずれを生じている
場合であっても、その状態で被検査パターンをX方向及
びY方向に走査しながら読取って、画像処理時に角度誤
差を補正することによって上記従来例の課題を解決する
ことが可能なパターン検査方法及び装置を提供すること
を目的としている。
Therefore, the present invention has been made by focusing on the unresolved problems of the conventional example, and it is possible to detect the problem even when the pattern to be inspected has an angular deviation without providing a special alignment mark. To provide a pattern inspection method and apparatus capable of solving the problems of the conventional example by reading the pattern to be inspected while scanning it in the X and Y directions in this state and correcting angular errors during image processing. It is an object.

〔課題を解決するための手段] 上記課題を解決するために、請求項(1)の発明は、検
査対象パターンを形成した被検査物と撮像装置とを相対
的に1次元又は2次元に走査して検査パターンデータを
得、該検査パターンデータと予め記憶したマスタパター
ンデータとを比較して検査パターンの欠陥を検査するよ
うにしたパターン検査方法において、前記撮像装置から
の1走査ライン毎の検査パターンデータを複数の画素群
に分割して記憶し、該記憶された検査パターンデータと
前記マスタパターンデータとを比較して検査パターンの
傾きを算出し、該検査パターンの傾きに応じて前記検査
パターン及びマスタパターンデータの何れかの読出順を
変更して両パターンデータ間を整合させてから両者を比
較するようにしたことを特徴としている。ここで、検査
パターンデータ及びマスタパターンデータとの排他的論
理和をとることにより行うことが好ましい。
[Means for Solving the Problem] In order to solve the above problem, the invention of claim (1) scans an object to be inspected on which a pattern to be inspected is formed and an imaging device relatively one-dimensionally or two-dimensionally. In the pattern inspection method, defects in the inspection pattern are inspected by obtaining inspection pattern data and comparing the inspection pattern data with master pattern data stored in advance. The pattern data is divided into a plurality of pixel groups and stored, and the slope of the test pattern is calculated by comparing the stored test pattern data with the master pattern data, and the test pattern is adjusted according to the slope of the test pattern. The present invention is characterized in that the reading order of either of the master pattern data and the master pattern data is changed to match the two pattern data, and then the two are compared. Here, it is preferable to perform exclusive OR with the inspection pattern data and the master pattern data.

さらに、請求項(3)の発明は、検査対象パターンを形
成した被検査物と撮像装置とを相対的に1次元又は2次
元に走査して検査パターンデータを得、該検査パターン
データと予め記憶したマスタパターンデータとを比較し
て検査パターンの欠陥を検査するようにしたパターン検
査装置において、前記撮像装置からの1走査ライン毎の
検査パターンデータを複数の画素群に分割して記憶する
分割記憶手段と、該分割記憶手段に記憶された検査パタ
ーンデータと前記マスタパターンデータとを比較して検
査パターンの傾きを検出する傾き検出手段と、該傾き検
出手段の検出結果に基づいて前記検査パターン及びマス
タパターンデータの何れかの読出順を変更して両パター
ンデータ間を整合させるデータ整合手段と、該データ整
合手段で整合された検査パターンデータ及びマスタパタ
ーンデータをを比較する比較手段とを備えたことを特徴
としている。ここで、比較手段は、検査パターンデータ
及びマスタパターンデータの排他的論理和をとって欠陥
部を抽出すること構成とすることが好ましい。
Furthermore, the invention of claim (3) obtains inspection pattern data by relatively scanning the inspection object on which the inspection target pattern is formed and an imaging device in one or two dimensions, and stores the inspection pattern data and the inspection pattern data in advance. In the pattern inspection apparatus, the inspection pattern data is inspected for defects by comparing the inspection pattern data with the master pattern data obtained by the imaging device, and the inspection pattern data for each scanning line from the image pickup device is divided into a plurality of pixel groups and stored therein. a tilt detecting means for detecting the tilt of the test pattern by comparing the test pattern data stored in the divided storage means with the master pattern data; A data matching means for changing the reading order of any of the master pattern data to match both pattern data, and a comparison means for comparing the inspection pattern data and the master pattern data matched by the data matching means. It is characterized by Here, it is preferable that the comparison means extracts the defective portion by performing an exclusive OR of the inspection pattern data and the master pattern data.

〔作用〕[Effect]

この発明においては、被検査物を走査して得られるl走
査分の検査パターンデータを複数の画素群に分割して記
憶し、その分割記憶された検査パターンデータとマスタ
パターンデータとを比較することにより、両者間の傾き
誤差を検出し、この傾き誤差に応じて検査パターンデー
タ及びマスタパターンデータの何れかのデータ読出順を
変更することにより、両者間のパターンデータの整合性
を確保し、この整合をとった状態で両パターンデータを
比較することにより、特別な位置合わせマークや、その
読取手段を設けることなく傾き誤差を補正した正確なパ
ターン検査を行うことができる。
In this invention, inspection pattern data for one scan obtained by scanning an object to be inspected is divided into a plurality of pixel groups and stored, and the divided and stored inspection pattern data and master pattern data are compared. By detecting the tilt error between the two and changing the data reading order of either the inspection pattern data or the master pattern data according to this tilt error, the consistency of the pattern data between the two is ensured. By comparing both pattern data in a matched state, accurate pattern inspection can be performed with tilt errors corrected without providing any special alignment marks or means for reading them.

〔実施例] 以下、この発明の実施例を図面に基づいて説明する。〔Example] Embodiments of the present invention will be described below based on the drawings.

第1図はこの発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing one embodiment of the present invention.

図中、1はマスク、レチクル、プリント基板等の表面に
所定の検査パターンPを形成した被検査物2を載置して
少なくともXY力方向移動可能なR置台であって、この
載置台1がX軸駆動モータ1a及びY軸駆動モータ1b
によってXY力方向移動される。
In the figure, reference numeral 1 denotes an R mounting table on which a test object 2 having a predetermined inspection pattern P formed on the surface of a mask, a reticle, a printed circuit board, etc. is placed and is movable at least in the XY force direction. X-axis drive motor 1a and Y-axis drive motor 1b
is moved in the XY force direction by

載置台1の上面側には、被検査物2と対向する位置に撮
像装置としてのCCDカメラ3が固定配置され、このC
CDカメラ3で被検査物2の検査パターンPを撮像して
その画像データを出力する。
A CCD camera 3 as an imaging device is fixedly arranged on the upper surface side of the mounting table 1 at a position facing the object to be inspected 2.
A CD camera 3 images an inspection pattern P of an object to be inspected 2 and outputs the image data.

そして、′R載置台及びCCDカメラ3が例えばコンピ
ュータを含んで構成される制御装置4によって制御され
ると共に、CCDカメラ3の画像データが制御装置4に
よって処理される。
The 'R mounting table and the CCD camera 3 are controlled by a control device 4 including, for example, a computer, and the image data of the CCD camera 3 is processed by the control device 4.

制御装置4には、X軸モータ1a及びY軸モータ1bを
制御するモータコントローラ7、CCDカメラ3を制御
するカメラコントローラ8、CCDカメラ3からの画像
信号の1走査ラインを例えば8つのシフトレジスタR1
〜R6に分割して記憶する複数例えば4つの直列に接続
されたシフトレジスタ群9a〜9dと、画像メモリとし
ての4つのビットマツプメモリ10a、10b、10c
及び10d、iffff−プ装置1)、磁気ディスク装
置12、CRTデイスプレィ13、プリンタ14並びに
欠陥検査回路20が接続されている。磁気テープ装置1
)には、マスク等の被検査物2に形成する検査パターン
Pの設計を行う場合に使用するCAD装置からのフォト
プロッタ又はパターンジェネレータへの入力用データ(
以下、CADデータと称す)を記録した磁気テープが装
着される。ここで、CADデータは、第2図に示すよう
に、マスクパターンMを形成する場合に必要なデータで
あり、数値制御装置等と同様のフォーマットを有し、例
えばX軸方向に走査する所定形状のアパーチャーA1及
びY軸方向に走査するアパーチャーA2の選択データD
IO,Dll、アパーチャーA1及びA2の移動座標デ
ータ(XXi、  Y7、)及びシャッタの開データD
01.閉データD02等で構成され、例えばマスクパタ
ーンMの上半部を走査するには、’ G’OOX Il
l Y□Do 2D10」としてシャッターを閉状態で
アパーチャーA、を初期位置(X+、Y+)に移動させ
、次いでr G 01 XxzYy□DOIJとしてシ
ャッターを開状態としてからアパーチャーA1を移動終
了位置(xz、yz)に移動させることにより行う。
The control device 4 includes a motor controller 7 that controls the X-axis motor 1a and the Y-axis motor 1b, a camera controller 8 that controls the CCD camera 3, and eight shift registers R1 for one scanning line of image signals from the CCD camera 3.
A plurality of shift register groups 9a to 9d connected in series, for example, four shift register groups 9a to 9d, which are divided and stored in ~R6, and four bitmap memories 10a, 10b, 10c as image memories.
and 10d, an ifffp device 1), a magnetic disk device 12, a CRT display 13, a printer 14, and a defect inspection circuit 20 are connected. Magnetic tape device 1
) includes input data (
A magnetic tape on which CAD data (hereinafter referred to as CAD data) is recorded is attached. Here, the CAD data is data necessary for forming the mask pattern M, as shown in FIG. 2, and has a format similar to that of a numerical control device, etc. Selection data D of aperture A1 and aperture A2 scanning in the Y-axis direction
IO, Dll, aperture A1 and A2 movement coordinate data (XXi, Y7,) and shutter open data D
01. For example, in order to scan the upper half of the mask pattern M, 'G'OOX Il
l Y□Do 2D10'' to close the shutter and move aperture A to the initial position (X+, Y+), then r G 01 XxzYy□DOIJ to open the shutter and move aperture A1 to the end position (xz, yz).

制御装置4は、予め内蔵するROMに記す、なされたプ
ログラムに従って所定の処理を実行し、まずCCDカメ
ラ3から出力される4走査ライン分の画像データを順次
バッファメモリとしてのシフトレジスタ群9a〜9dに
格納し、格納された画像データから予め設定した所定パ
ターンの左右方向のエツジ座標(X p + 、 Y 
p I)及び(X F t 、 Y P Z )を算出
し、これらエツジ座標(X p + 、  Y P I
 )及び(XP2.  Yrt)  とマスクパターン
Mの同一パターンのエツジ座標(X Mr 、Y 、4
I)及び(XM2. YMZ)とからマスクパターンM
に対する検査パターンPの傾きtanθを算出し、この
傾きtanθからシフトレジスタ群9a〜9dの各シフ
トレジスタR1〜R8に対する続出アドレス順序を決定
することにより座標変換し、この続出アドレス順序にし
たがって、シフトレジスタ群9a〜9dに格納されてい
る画像データを読出し、これをビ・ノドマツプメモリ1
0aに検査パターン読取データとして格納する。なお、
検査パターンPの傾きによるCCDカメラ3のライン方
向のずれに対しては予め傾きに応じて設定した所定量だ
けスキャン時にテーブルをライン方向に移動させること
により補正する。
The control device 4 executes a predetermined process according to a program written in a built-in ROM in advance, and first, the image data for four scanning lines output from the CCD camera 3 are sequentially transferred to shift register groups 9a to 9d as buffer memories. The left and right edge coordinates (X p + , Y
p I) and (X F t , Y P Z ), and these edge coordinates (X p + , Y P I
) and (XP2. Yrt) and the edge coordinates of the same pattern of mask pattern M (X Mr , Y , 4
I) and (XM2. YMZ) to create a mask pattern M
The slope tan θ of the test pattern P is calculated, and the successive address order for each of the shift registers R1 to R8 of the shift register groups 9a to 9d is determined from this slope tanθ, thereby performing coordinate conversion, and according to this successive address order, the shift register The image data stored in the groups 9a to 9d is read out and stored in the video node map memory 1.
0a as test pattern read data. In addition,
The deviation of the CCD camera 3 in the line direction due to the inclination of the inspection pattern P is corrected by moving the table in the line direction during scanning by a predetermined amount set in advance according to the inclination.

また、制御装置4は、CADデータからマスクパターン
Mの外形を示す座標データ(エツジのX。
The control device 4 also generates coordinate data (edge X) indicating the outer shape of the mask pattern M from the CAD data.

y座標を数値データ)を算出してこれをマスタパターン
データとして磁気ディスク装置12に記憶すると共に、
この磁気ディスク装置12に記憶されているマスタパタ
ーンデータからその輪郭を表す輪郭画像データを形成し
てこれをビットマツプメモリ10bに記憶し、且つ同様
の方法でビットマツプメモリ10aに格納されている検
査パターンデータの輪郭画像データを形成してこれをビ
ットマツプメモリIOCに記憶し、両メモリ10b及び
10cに記憶された輪郭画像データを欠陥検査装置20
に出力して両者を比較することにより、被検査物2に形
成されたパターンの欠陥の有無を検査し、欠陥があると
きには、その欠陥部のデータをビットマツプメモリ10
dに記憶し、この記憶データを必要に応じてCRTデイ
スプレィ14及びプリンタ15に出力する。
y coordinate as numerical data) and store this as master pattern data in the magnetic disk device 12,
Outline image data representing the outline is formed from the master pattern data stored in the magnetic disk device 12, and this is stored in the bitmap memory 10b, and the inspection data stored in the bitmap memory 10a in a similar manner is The outline image data of the pattern data is formed and stored in the bitmap memory IOC, and the outline image data stored in both memories 10b and 10c is transferred to the defect inspection device 20.
By comparing the two, the pattern formed on the object to be inspected 2 is inspected for defects. If there is a defect, the data of the defective part is stored in the bitmap memory 10.
d, and outputs this stored data to the CRT display 14 and printer 15 as necessary.

欠陥検査回路20は、第3図に示すように、セレクト入
力端子Sに供給される選択入力信号が論理値“0°“で
あるときに一方の入力端子■1に供給される入力信号を
選択し、論理値“1′”であるときに他方の入力端子I
2に供給される入力信号を選択する2つのセレクター2
0A及び20Bと、その選択出力が夫々入力側に供給さ
れる排他的論理和回路21とを備えている。セレクター
20Aの一方の入力端子1)には後述するマスクパター
ンMに対応する検査ウィンドウWHO中心画素W9、の
読出信号が直並列変換回路を有するI10インタフェー
ス22を介して、他方の入力端子■2には後述する検査
ウィンドウW14の各画素WMI〜WM、の読出信号が
前記I10インタフェース22及びOR回路23を介し
て、セレクト端子Sには後述する検査パターンPに対応
する検査ウィンドウW、の中心画素wpsが前記I10
インタフェース22を介して夫々入力され、且つセレク
ター20Bの一方の入力端子■1には後述する検査パタ
ーンPに対応する検査ウィンドウWPの中心画素WP5
の続出信号がI10インタフェース22を介して、他方
の入力端子■2には後述する検査ウィンドウWPの各画
素W、〜WP9の読出信号がI10インタフェース22
及びOR回路24を介して、セレクト端子Sにはマスク
パターンMに対応する検査ウィンドウW、の中心画素W
、4.がI10インタフェース22を介して夫々入力さ
れている。また、排他的論理和回路21の出力信号が欠
陥検査信号としてI10インタフェース22を介して制
御装置4に出力される。
As shown in FIG. 3, the defect inspection circuit 20 selects the input signal supplied to one input terminal 1 when the selection input signal supplied to the select input terminal S has a logical value of "0°". When the logical value is "1'", the other input terminal I
two selectors 2 for selecting the input signals supplied to 2;
0A and 20B, and an exclusive OR circuit 21 whose selected output is supplied to the input side, respectively. One input terminal 1) of the selector 20A receives a readout signal from the center pixel W9 of the inspection window WHO corresponding to a mask pattern M to be described later. The readout signal of each pixel WMI to WM of the inspection window W14, which will be described later, is sent to the select terminal S via the I10 interface 22 and the OR circuit 23, and the center pixel wps of the inspection window W corresponding to the inspection pattern P, which will be described later. is the above I10
The center pixel WP5 of the inspection window WP corresponding to the inspection pattern P, which will be described later, is inputted through the interface 22, and one input terminal (1) of the selector 20B is inputted via the interface 22.
A readout signal of each pixel W, to WP9 of the inspection window WP, which will be described later, is sent to the other input terminal 2 through the I10 interface 22.
and the center pixel W of the inspection window W corresponding to the mask pattern M is connected to the select terminal S via the OR circuit 24.
,4. are respectively input via the I10 interface 22. Further, the output signal of the exclusive OR circuit 21 is outputted to the control device 4 via the I10 interface 22 as a defect inspection signal.

次に、上記実施例の動作を制御装置4の処理手順を示す
第4図〜第8図のフローチャートを伴って説明する。
Next, the operation of the above embodiment will be explained with reference to flowcharts of FIGS. 4 to 8 showing the processing procedure of the control device 4.

すなわち、第4図に示すように、ステップ■で磁気テー
プ装置1)を駆動してマスクパターンMのCADデータ
を読込み、その輪郭データをビットマツプメモリ10b
に書込むマスクパターン輪郭データ登録処理を実行する
That is, as shown in FIG. 4, in step (2), the magnetic tape device 1) is driven to read the CAD data of the mask pattern M, and the contour data is stored in the bitmap memory 10b.
Executes mask pattern contour data registration processing to be written to.

次いでステップ■に移行して、CCDカメラ3からの画
像データを読込み、これに基づいて検査パターンがマス
クパターンに対して傾斜しているときにその傾斜を補正
してビットマツプメモリ10aに登録する検査パターン
座標変換処理を実行する。
Next, the process proceeds to step (3), where image data from the CCD camera 3 is read, and based on this, when the inspection pattern is tilted with respect to the mask pattern, the tilt is corrected and the inspection is performed to register it in the bitmap memory 10a. Execute pattern coordinate conversion processing.

次いで、ステップ■に移行して、ピントマツプメモリ1
0aに格納されている検査パターンの輪郭データを形成
してこれをビットマツプメモリ10Cに登録する検査パ
ターン輪郭データ登録処理を実行する。
Next, move to step ■ and focus map memory 1.
A test pattern contour data registration process is executed to form contour data of the test pattern stored in 0a and register it in the bitmap memory 10C.

次いで、ステップ■に移行して、ビットマツプメモリ1
0b及び10cに格納されているマスクパターン及び検
査パターンの輪郭データを読出して両者を比較判断して
欠陥データを形成し、これをビットマツプメモリ10d
に登録する欠陥検査処理を実行する。
Next, proceed to step ■, and bitmap memory 1
The contour data of the mask pattern and inspection pattern stored in bitmap memory 10d are read out and compared and judged to form defect data.
Execute the defect inspection process registered in .

次いで、ステップ■に移行して、検査を終了するか否か
を判定し、検査を継続する場合には、ステップ■に移行
して次の検査を開始する検査開始指令が入力されたか否
かを判定し、検査開始指令が入力されていないときには
、そのまま待機し、検査開始指令が入力されたときには
、前記ステップ■に戻り、検査を終了する場合には処理
を終了する。
Next, the process proceeds to step ■, where it is determined whether or not to end the inspection. If the inspection is to be continued, the process proceeds to step ■, where it is determined whether or not an inspection start command to start the next inspection has been input. If the test start command is not input, the process remains on standby; if the test start command is input, the process returns to step (2), and if the test is to be completed, the process is terminated.

そして、ステップ■のマスタパターン輪郭データ登録処
理は、第5図に示すように、マスク、レチクル、プリン
ト基板等のパターンを設計する際に使用するCADデー
タを記録した磁気テープを磁気テープ装置1)に装着し
、この状態でステップ■aで磁気テープ装置1)を駆動
してCADデータを読込み、次いでステップ■bに移行
してアパーチャーの種別、始点座標及び終点座標からマ
スクパターンMの外形の始点座標(X+、)’+)及び
終点座標(xz、yz)を算出する。すなわち、アパー
チャーの種別に応じてアパーチャーの大きさがわかり、
始点座標(x+、y+)及び終点座標(X2゜yz)か
らマスクパターンMの延長方向がわかるので、例えばマ
スクパターンMが簡単のため第2図に示す逆り字状のパ
ターンであるものとすると、アパーチャーA、の始点座
標(x+、y+)及び終点座標(x、、’yz)からマ
スクパターンMの外形の始点は、アパーチャーAIが始
点座標(x+、y+)にある状態で、左上隅の座標(x
+、y+)が外形のエツジ座標であることが認識され、
同様に外形の他端側のエツジ座標は、アパーチャーA、
が終点座標(Xz、Yz)にある状態で、右下隅の座標
(x2゜yz)であることが認識され、さらにアパーチ
ャーA1の終点座標位置で下側に連接する他のアパーチ
ャーの終点座標がないことにより、右下隅の座標(X3
.V3)もエツジ座標として認識することができ、同様
にしてアパーチャーA2の始点座標(X !、 Y 3
)及び終点座標(X4.Y4)から外形のエツジ座標(
Xn、)’t)、  (Xs、)’s)及び(xb、y
6)を算出し、これらエツジ座標の算出が終了したらス
テップ■Cに移行して各エツジ座標を結んで第9図(a
lに示す輪郭パターンデータを形成し、これをステップ
■dでピントマツプメモリ10bに記憶して、マスクパ
ターンMの輪郭データ登録処理を終了する。
Then, in the master pattern contour data registration process of step (2), as shown in FIG. In this state, drive the magnetic tape device 1) to read the CAD data in step (a), then proceed to step (b) to determine the starting point of the outer shape of the mask pattern M from the aperture type, starting point coordinates, and ending point coordinates. The coordinates (X+,)'+) and the end point coordinates (xz, yz) are calculated. In other words, the size of the aperture can be determined depending on the type of aperture.
Since the extending direction of the mask pattern M can be determined from the starting point coordinates (x+, y+) and the ending point coordinates (X2°yz), for example, if the mask pattern M is an inverted pattern shown in FIG. 2 for simplicity, then , aperture A, from the starting point coordinates (x+, y+) and ending point coordinates (x,,'yz), the starting point of the outline of the mask pattern M is located at the upper left corner with the aperture AI at the starting point coordinates (x+, y+). Coordinates (x
+, y+) are recognized as the edge coordinates of the outline,
Similarly, the edge coordinates of the other end of the outline are aperture A,
is at the end point coordinates (Xz, Yz), it is recognized as the lower right corner coordinates (x2゜yz), and there are no end point coordinates of other apertures connected to the lower side at the end point coordinate position of aperture A1. By doing so, the coordinates of the lower right corner (X3
.. V3) can also be recognized as edge coordinates, and in the same way, the starting point coordinates of aperture A2 (X!, Y3)
) and the end point coordinates (X4.Y4) to the edge coordinates of the outline (
Xn, )'t), (Xs,)'s) and (xb,y
6), and when the calculation of these edge coordinates is completed, proceed to step ■C, connect each edge coordinate, and calculate
The contour pattern data shown in 1 is formed and stored in the focus map memory 10b in step d, and the contour data registration process of the mask pattern M is completed.

また、検査パターン座標変換処理は、第6図に示すよう
に、ステップ■aで、CCDカメラ3から出力されるの
検査パターン読取データを最初の4走査ライン分をバッ
ファメモリとしてのシフトレジスタ群9a〜9dに占込
む。このシフトレジスタ群9a〜9dに対するデータの
書込みは、各シフトレジスタ群9a〜9dが直列に接続
されているので、CCDカメラから時間順次に出力され
るデータを順次シフトレジスタ群9aのシフトレジスタ
R9に書込むことにより、最初に書込まれた書込データ
が順次シフトされてシフトレジスタ群9dのシフトレジ
スタR1)の最終段に書込まれる。
In the inspection pattern coordinate conversion process, as shown in FIG. Occupies ~9d. Since each shift register group 9a to 9d is connected in series, writing of data to the shift register group 9a to 9d is performed by sequentially inputting data output from the CCD camera in time order to the shift register R9 of the shift register group 9a. By writing, the first write data is sequentially shifted and written to the final stage of the shift register R1) of the shift register group 9d.

次いで、ステップ■bに移行してシフトレジスタ群9a
〜9dに対する読取データの書込みが完了したか否かを
判定し、書込みが未完了であるときには、前記ステップ
■aに戻って読取データの書込処理を継続し、書込みが
完了したときには、ステップ■Cに移行する。
Next, the process moves to step (2)b and the shift register group 9a
It is determined whether writing of the read data to ~9d has been completed, and if the writing is not completed, the process returns to step (a) to continue writing the read data, and when the writing is completed, step (2) is performed. Move to C.

このステップ■Cでは、シフトレジスタ群9a〜9dに
書込まれた検査パターン読取データを検索して予め設定
されたパターンPに対するエツジ座標(XPl、Y□)
及び(X p z 、 Y p z )を算出し、これ
らエツジ座標とマスクパターンMのエツジ座標(X s
 + 、 Y 、+ )及び(X N Z 、Y 、4
□)とからマスクパターンMに対する検査パターンPの
傾きtanθを算出する。この傾きtanθの算出は、
先ず検査パターンP及びマスクパターンMの一方のエツ
ジ座標(X p r 、 Y p r )及び(X□、
 YMI)に着目して、X方向の偏差ΔX及びY方向の
偏差ΔYを下記(1)式及び(2)式に従って算出し、
次いで両者に基づいて下記(3)式の演算を行って傾き
tanθ、を算出する。
In this step ■C, the inspection pattern read data written in the shift register groups 9a to 9d is searched to determine the edge coordinates (XPl, Y□) for the preset pattern P.
and (X p z , Y p z ), and these edge coordinates and the edge coordinates of the mask pattern M (X s
+ , Y , + ) and (X N Z , Y , 4
The inclination tan θ of the inspection pattern P with respect to the mask pattern M is calculated from □). The calculation of this slope tanθ is
First, the edge coordinates (X p r , Y p r ) and (X□,
YMI), calculate the deviation ΔX in the X direction and the deviation ΔY in the Y direction according to the following formulas (1) and (2),
Next, the following equation (3) is calculated based on both to calculate the slope tanθ.

ΔX= l XPI  X、4+ l   ・・・・・
・・・・・・・(1)ΔY= l Y、、−Y□1  
・・・・・・・・・・・・(2)tanθ、=ΔX/Δ
Y ・・・・・・・・・・・・(3)同様に、他方のエ
ツジ座標についても同様の演算を行って傾きtanθ2
を算出し、両傾きtanθ、及びtanθ2の何れか大
きい方又は両者が等しいときには何れか一方を傾きta
nθとして決定する。この決定は、検査パターンPが何
れかのエツジ座標を中心として傾斜している場合があり
、このときには、中心となるエツジ座標については傾き
が零となり、他方のエツジ座標については傾斜に応じた
傾きtanθが得られるので、その傾きtanθを検査
パターンの傾きとして決定する。
ΔX= l XPI X, 4+ l...
・・・・・・・・・(1) ΔY= l Y,, -Y□1
・・・・・・・・・・・・(2) tanθ, = ΔX/Δ
Y ・・・・・・・・・・・・(3) Similarly, perform the same calculation for the other edge coordinate to obtain the slope tanθ2
Calculate the slope tanθ and tanθ2, whichever is larger, or when both are equal, set either one as the slope ta
Determine as nθ. This determination may be performed when the inspection pattern P is tilted around one of the edge coordinates, and in this case, the tilt for the central edge coordinate is zero, and for the other edge coordinate, the tilt is determined according to the tilt. Since tanθ is obtained, the slope tanθ is determined as the slope of the inspection pattern.

次いで、ステップ■dに移行して、前記ステップ■Cで
算出した傾きtanθに基づいて予め記憶された傾きt
anθと続出アドレスとの対応関係を示す記憶テーブル
を参照してシフトレジスタ群9a〜9dにおける読出ア
ドレス順序(例えばシフトレジスタ群9dのシフトレジ
スタR[l、R?、シフトレジスタ群9Cのシフトレジ
スタRb、Rs、シフトレジスタ群9bのシフトレジス
タR4,R3及びシフトレジスタ群9aのシフトレジス
タR2゜R1)を選択する。この場合、傾きtanθが
小さくなるに従ってシフトレジスタ9a、9b、9Cの
順に記憶されているデータの読出しが行われなくなり、
傾きtanθが零であるときには、シフトレジスタ9d
の記憶データのみを読出す。
Next, the process moves to step ■d, and the slope t stored in advance is calculated based on the slope tanθ calculated in step ■C.
The order of read addresses in shift register groups 9a to 9d (for example, shift register R[l, R? of shift register group 9d, shift register Rb of shift register group 9C) is determined by referring to a memory table showing the correspondence between anθ and successive addresses. , Rs, shift registers R4, R3 of the shift register group 9b and shift registers R2°R1) of the shift register group 9a are selected. In this case, as the slope tan θ becomes smaller, the data stored in the shift registers 9a, 9b, and 9C are not read out in this order.
When the slope tanθ is zero, the shift register 9d
Read only the stored data.

次いで、ステップ■eに移行して、上記ステップ■dで
選択された続出アドレス順序でシフトレジスタ群93〜
9dの各シフトレジスタR3〜R8から書込データを読
出し、これを順次ビットマツプメモリ10aに格納する
Next, the process moves to step ■e, and the shift register groups 93 to 93 are sequentially selected in the order of successive addresses selected in step ■d.
The write data is read from each of the shift registers R3 to R8 of 9d and sequentially stored in the bitmap memory 10a.

次いで、ステップ■fに移行して、ビットマツプメモリ
10aに全ての画像データの書込みが完了したか否かを
判定し、書込みが未完了であるときには、ステップ■g
に移行してCCDカメラ3からの次の4走査ライン分の
画像データをシフトレジスタ群9a〜9dに格納してか
らステップ■eに戻り、全ての画像データの書込みが完
了したときには処理を終了して第4図のステップ■に移
行する。
Next, the process moves to step f, and it is determined whether or not writing of all the image data to the bitmap memory 10a is completed, and if the writing is not completed, the process proceeds to step f.
Then, the image data for the next four scan lines from the CCD camera 3 is stored in the shift register group 9a to 9d, and then the process returns to step e, and when all the image data has been written, the process ends. Then move on to step (2) in FIG.

この検査パターン座標変換処理によって、検査パターン
PのマスクパターンMに対する傾きに応じてシフトレジ
スタ群9a〜9dの各シフトレジスタR+−Reの続出
位置を変更することにより、ビットマツプメモリ10a
に格納される検査パターンデータは、その傾きが補正さ
れてマスクパターンに対して整合性を有するものとなる
By this inspection pattern coordinate conversion processing, the positions of the shift registers R+-Re of the shift register groups 9a to 9d are changed according to the inclination of the inspection pattern P with respect to the mask pattern M.
The inspection pattern data stored in the mask pattern has its tilt corrected and becomes consistent with the mask pattern.

さらに、ステップ■の検査パターン輪郭データ登録処理
は、第7図に示すように、ステップ■aで、ビットマツ
プメモリ10aに記憶されている検査パターンPの画像
データを画素単位で行及び列方向に走査して、符号が“
0”から“1“に又はその逆に反転するビット位置を検
索し、このビット位置をエツジ座標として、順次記憶し
て各エツジ座標を結ぶことにより検査パターンPの輪郭
データを作成し、次いで、ステップ■bに移行して輪郭
データをビットマツプメモリ10cに記憶させてから第
4図のステップ■に移行する。
Furthermore, as shown in FIG. 7, in the inspection pattern contour data registration process of step (2), in step (a), the image data of the inspection pattern P stored in the bitmap memory 10a is input pixel by pixel in the row and column directions. Scan and find the sign “
Search for a bit position that is inverted from "0" to "1" or vice versa, store this bit position sequentially as edge coordinates, and connect each edge coordinate to create outline data of the inspection pattern P. Then, The process moves to step (2) b, where the contour data is stored in the bitmap memory 10c, and then the process moves to step (4) in FIG.

またさらに、ステップ■の欠陥検査処理は、第8図に示
すように、ステップ■aで各ビットマツプメモリ10b
及び10cに記憶されている第9図fatに示すマスク
パターンMの輪郭データ及び第9図fc)に示す検査パ
ターンPの輪郭データの続出開始位置を例えば第9図(
a)及び(C)で鎖線図示の如く中心画素WM5. W
PSが画素D0゜となるように設定すると共に、検査ウ
ィンドウ(読出範囲)WH及びW、を例えば3×3画素
に設定し、次いで、ステップ■bに移行して、検査ウィ
ンドウWH及び検査ウィンドウW、の各画素をシリアル
に読出し、これを欠陥検査回路20に出力すると共に、
この欠陥検査回路20の欠陥データを読込み、これをビ
ットマツプメモリ10dに記憶し、次いでステップ■C
に移行して、ビットマツプメモリ10b及び10cに記
憶されている全ての画素に対して欠陥検査を行ったか否
かを判定し、欠陥検査未完了であるときには、ステップ
■dに移行して、検査ウィンドウWM及びW、を右に1
画素分シフトさせてからステップ■aに戻り、欠陥検査
が全て終了したときには処理を終了して第4図のステッ
プ■に移行する。なお、ステップ■dで検査ウィンドウ
W、4及びW、の中心画素W、4.及びW2.が右端に
達しているときには、下の行の左端にシフトさせる。
Furthermore, in the defect inspection process of step (2), as shown in FIG.
For example, the contour data of the mask pattern M shown in FIG. 9 (fat) stored in 10c and the contour data of the inspection pattern P shown in FIG.
In a) and (C), the center pixel WM5. W
PS is set to be pixel D0°, and inspection windows (reading ranges) WH and W are set to, for example, 3×3 pixels, and then, proceeding to step b, inspection windows WH and inspection windows W are set. Serially reads out each pixel of , outputs it to the defect inspection circuit 20, and
The defect data of this defect inspection circuit 20 is read and stored in the bitmap memory 10d, and then step
It is determined whether defect inspection has been performed on all the pixels stored in the bitmap memories 10b and 10c. If the defect inspection is not completed, the process proceeds to step d and the inspection is performed. Windows WM and W, 1 to the right
After shifting by the number of pixels, the process returns to step (2) a, and when all defect inspections are completed, the process is terminated and the process proceeds to step (4) in FIG. Incidentally, in step d, the center pixels W, 4. and W2. When reaches the right edge, it is shifted to the left edge of the row below.

したがって、第9図(a)及び(C1における画素D0
゜。
Therefore, the pixel D0 in FIGS. 9(a) and (C1
゜.

I)o+・・・・・・のように検査ウィンドウWM及び
Weの中心画素Wイ、及びWP、が共に論理値II O
IIであるときには、セレクター20B及び20Aで入
力端子I、を選択するので、中心画素WMS及びWl、
の論理値゛O”のビット信号が排他的論理和回路21に
入力されるので、その出力は論理値“0°゛となり、ビ
ットマツプメモリ10dの該当画素位置に欠陥無しを表
す論理値゛0°゛が書込まれる。
I) o+... The central pixels W i and WP of the inspection windows WM and We both have a logical value II O
II, selectors 20B and 20A select input terminal I, so center pixels WMS and Wl,
Since the bit signal with the logical value "O" is input to the exclusive OR circuit 21, its output becomes the logical value "0°", and the corresponding pixel position in the bitmap memory 10d has the logical value "0" indicating that there is no defect. °゛ is written.

同様に、マスクパターンMに対応する検査ウィンドウW
H及び検査パターンPに対応する検査ウィンドウW、の
中央画素WH5及びWP、の何れか一方が論理値“1パ
、他方が論理値“°0°“であるときには、論理値゛1
“°となった中央画素WMS(又はW P S )と、
他方の各画素W p I” W P 9 (又はW、4
゜〜W s q )のOR出力とが排他的論理和回路2
1に入力されるので、各画素WP1〜WP9(又はW□
〜W□)の何れか1つが論理値“1“′であれば、排他
的論理和回路21の出力が論理値°“0″となって欠陥
無しと判断することができ、各画素WPI〜W2.(又
はW141−WHl)の全てが論理値“0′″であると
きには、排他的論理和回路21の出力が論理値“1″°
となって欠陥有りと判断することができる。
Similarly, the inspection window W corresponding to the mask pattern M
When one of the central pixels WH5 and WP of the inspection window W corresponding to H and the inspection pattern P has a logical value of "1" and the other has a logical value of "°0°", the logical value is "1".
The central pixel WMS (or W P S ) that has become "°,
Each pixel of the other side W p I” W P 9 (or W, 4
The OR output of ゜ ~ W s q ) is the exclusive OR circuit 2
1, each pixel WP1 to WP9 (or W□
~ W W2. (or W141-WHl) is the logical value “0′”, the output of the exclusive OR circuit 21 is the logical value “1”°
Therefore, it can be determined that there is a defect.

そして、必要に応じてビットマツプメモリ9cの記憶内
容を読出してCRTデイスプレィ13又はプリンタ14
に出力することにより、検査パターンPの欠陥部の表示
又は印字を行うことができる。
Then, the contents of the bitmap memory 9c are read out and displayed on the CRT display 13 or printer 14 as necessary.
By outputting the image to the image data, the defective portion of the inspection pattern P can be displayed or printed.

また、CODカメラ3で撮像した被検査物2の検査パタ
ーンPに第10図(alに示すように内部欠陥がある場
合には、第7図の検査パターン輪郭データ処理を行うこ
とにより、第10図(b)に示すように外周側の輪郭と
内部欠陥の周囲の輪郭とを表す輪郭データが得られ、こ
れがビー/ )マツプメモリ10cに記憶される。
In addition, if the inspection pattern P of the inspected object 2 captured by the COD camera 3 has an internal defect as shown in FIG. As shown in Figure (b), contour data representing the outer peripheral side contour and the contour around the internal defect is obtained, and this data is stored in the map memory 10c.

そして、第8図の欠陥検査処理を実行すると、ビットマ
ツプメモリIOCの画素D0゜〜Da□までの間は、マ
スクパターンMと検査パターンPとの輪郭データが互い
に一致するので、ビットマツプメモリ10dには論理値
′°1”の欠陥データが書込まれることがないが、検査
パターンPに対応する検査ウィンドウW2の中心画素W
Psが画素Dl13の位置に達すると、マスクパターン
Mの画素D1)3のビットは論理値″″O”であり、且
つ検査パターンPの画素Dm3のビットが論理値“1′
°であると共に、マスクパターンMに対応する検査ウィ
ンドウWMの各画素WM1〜WM、が論理値“O1)で
あるので、欠陥であると判断し、ビットマツプメモリ1
0dの画素り、3に論理値゛′1”を書込んでがら検査
ウィンドウWH及びW2を1画素分右にシフトしてステ
ップ■aに戻る。
Then, when the defect inspection process shown in FIG. Although defect data with a logical value of '°1' is not written in the center pixel W of the inspection window W2 corresponding to the inspection pattern P,
When Ps reaches the position of the pixel Dl13, the bit of the pixel D1)3 of the mask pattern M has the logical value ""O", and the bit of the pixel Dm3 of the inspection pattern P has the logical value "1'
degree, and each pixel WM1 to WM of the inspection window WM corresponding to the mask pattern M has the logical value "O1), so it is determined that there is a defect, and the bitmap memory
While writing the logic value "'1" into the pixel 0d, 3, the inspection windows WH and W2 are shifted to the right by one pixel, and the process returns to step (2) a.

以下同様に、検査パターンPに対応する検査ウィンドウ
W、の中心画素WPSが検査パターンPの画素D84〜
DI+6・ D 9:l+ D Q&・ DA3・ D
MA・ D1)3・DI&+  DC3〜DC&につい
て欠陥有りと判断してビットマツプメモリ10dの対応
する画素位置に論理値″“1゛′を書込む。
Similarly, the center pixel WPS of the inspection window W corresponding to the inspection pattern P is the pixel D84 of the inspection pattern P.
DI+6・D 9:l+D Q&・DA3・D
MA・D1)3・DI&+ It is determined that DC3 to DC& are defective and a logical value ``1'' is written in the corresponding pixel position of the bitmap memory 10d.

したがって、第10図(C1に示すように、ビットマツ
プメモリ10dの記憶内容から検査パターンPの欠陥部
を認識することができる。
Therefore, as shown in FIG. 10 (C1), the defective portion of the inspection pattern P can be recognized from the stored contents of the bitmap memory 10d.

この実施例によると、3×3ビツトの検査ウィンドウW
、及びW2を使用して欠陥検査を行うようにしているの
で、マスクパターンM及び検査パターンPに±1ビット
の量子化誤差或いは位置すれが生じた場合でも欠陥無し
と判断することができ、誤検出を防止することができる
According to this embodiment, a 3×3 bit inspection window W
, and W2 are used to perform defect inspection, so even if there is a quantization error or positional misalignment of ±1 bit in the mask pattern M and inspection pattern P, it can be determined that there is no defect, and no errors can be detected. Detection can be prevented.

なお、上記実施例においては、検査ウィンドウW、4及
びW、を3×3ビツトに選定した場合について説明した
が、これに限らず任意の大きさの検査ウィンドウを適用
し得ることは言うまでもない。
In the above embodiment, a case has been described in which the inspection windows W, 4, and W are selected to be 3×3 bits, but it goes without saying that the present invention is not limited to this, and inspection windows of any size can be applied.

そして、検査ウィンドウW、4及びW、を最小画素単位
の大きさに選定することもでき、この場合にはマスクパ
ターンM及び検査パターンPの相対応する画素のビット
の排他的論理和をとることにより、両者が一致すれば正
常、不一致であるときには欠陥有りと判断することがで
きる。
The inspection windows W, 4, and W can also be selected to have a minimum pixel unit size, and in this case, the exclusive OR of the bits of corresponding pixels of the mask pattern M and the inspection pattern P is performed. Therefore, if the two match, it can be determined that it is normal, and if they do not match, it can be determined that there is a defect.

さらに、上記実施例においては、検査パターンデータの
続出順序を変更して検査パターン及びマスタパターンの
整合を得るようにした場合について説明したが、これに
限定されるものではなく、マスタパターンデータの続出
順序を変更するようにしてもよい。
Further, in the above embodiment, a case has been described in which the order in which the test pattern data is successively produced is changed to obtain consistency between the test pattern and the master pattern, but the invention is not limited to this. The order may be changed.

またさらに、上記実施例においては、パターンの両端の
エツジ座標を基準として傾きを算出する場合について説
明したが、プリント基板等にあっては所定のスルーホー
ル等の微小パターンの位置座標を基準として傾きを算出
するようにしてもよい。
Furthermore, in the above embodiment, the case where the inclination is calculated based on the edge coordinates of both ends of the pattern was explained, but in the case of a printed circuit board, etc., the inclination is calculated based on the position coordinates of a minute pattern such as a predetermined through hole. may be calculated.

なおさらに、上記実施例においては、撮像装置としてC
CDカメラ3を適用した場合について説明したが、これ
に限定されるものではなく、ライン走査形のイメージセ
ンサと同期をとって移動する載置台の組合わせ等を適用
することもできる。
Furthermore, in the above embodiment, C is used as an imaging device.
Although the case where the CD camera 3 is applied has been described, the present invention is not limited to this, and a combination of a line scanning type image sensor and a mounting table that moves in synchronization can also be applied.

また、上記実施例においては、CADデータとしてフォ
トプロッタ又はパターンジェネレータへの入力用データ
を適用した場合について説明したが、これに限定される
ものではなく、パターンの外形を取り出せる図形データ
であればよく、またデータ記録媒体としては磁気テープ
以外にフロッピィディスクネットワーク等の任意の記録
媒体を適用することができる。
Furthermore, in the above embodiment, a case has been described in which input data to a photoplotter or a pattern generator is applied as CAD data, but the invention is not limited to this, and any graphic data that can extract the outline of a pattern may be used. Furthermore, as the data recording medium, any recording medium such as a floppy disk network other than magnetic tape can be used.

〔発明の効果] 以上説明したように、この発明によれば、前記撮像装置
からの1走査ライン毎の検査パターンデータを複数の画
素群に分割して記憶し、該記憶された検査パターンデー
タと前記マスタパターンデータとを比較して検査パター
ンの傾きを算出し、該検査パターンの傾きに応じて前記
検査パターン及びマスタパターンデータの何れかの読出
順を変更して両パターンデータ間を整合させてから両者
を比較するようにしたので、検査パターンとマスクパタ
ーンとの角度ずれによる欠陥パターンと誤判断すること
を確実に防止することができ、しかもそのための構成を
簡易化することができる効果が得られる。
[Effects of the Invention] As explained above, according to the present invention, inspection pattern data for each scanning line from the imaging device is divided into a plurality of pixel groups and stored, and the stored inspection pattern data and Calculating the slope of the test pattern by comparing it with the master pattern data, and changing the reading order of either the test pattern or the master pattern data according to the slope of the test pattern to match both pattern data. Since the two are compared from the beginning, it is possible to reliably prevent misjudgment of defective patterns due to angular deviation between the inspection pattern and the mask pattern, and also to simplify the configuration. It will be done.

また、検査パターンの輪郭データとマスクパターンの輪
郭データとの排他的論理和をとることにより、両データ
間に多少座標ずれを生じている場合にも正確な欠陥検査
を行うことができる。
Moreover, by calculating the exclusive OR of the contour data of the inspection pattern and the contour data of the mask pattern, accurate defect inspection can be performed even when there is some coordinate shift between the two data.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図はこの発明の一実施例を示すブロック図、第2図
はマスクパターンを示す説明図、第3図は欠陥検査回路
の一例を示すブロック図、第4図は制御装置の処理手順
を示すフローチャート、第5図はマスクパターンの輪郭
データ処理手順を示すフローチャート、第6図は制御装
置の検査パターン座標変換処理手順を示すフローチャー
ト、第7図は制御装置の検査パターン輪郭データ処理手
順を示すフローチャート、第8図は制御装置の欠陥検査
処理手順を示すフローチャート、第9図(al〜(d)
及び第1O図(a)〜(C)はそれぞれこの発明の実施
例の動作の説明に供するパターンの説明図である。 図中、■は!1装置、2は被検査物、3はCODカメラ
(撮像装置)、4は制御装置、9a〜9dはシフトレジ
スタ群、R3−R4はシフトレジスタ、10a〜10d
はビットマツプメモリ、1)は磁気テープ装置、12は
磁気ディスク、13はCRTデイスプレィ、14はプリ
ンタ、Mはマスクパターン、Pは検査パターン、WH,
W、は検査ウィンドウ、WMS、 WF2は中心画素、
20は欠陥検査回路である。 第1図 第2図 第3図 第6図 第7図  第8因 第9図CG) 第9図(b) 第9図(C) 第9図(d) 第10図(G) 第10図(b)
Fig. 1 is a block diagram showing an embodiment of the present invention, Fig. 2 is an explanatory diagram showing a mask pattern, Fig. 3 is a block diagram showing an example of a defect inspection circuit, and Fig. 4 shows a processing procedure of a control device. 5 is a flowchart showing the mask pattern contour data processing procedure, FIG. 6 is a flowchart showing the inspection pattern coordinate conversion processing procedure of the control device, and FIG. 7 is a flowchart showing the inspection pattern contour data processing procedure of the control device. Flowchart, FIG. 8 is a flowchart showing the defect inspection processing procedure of the control device, and FIG. 9 (al to (d)
10(a) to 10(C) are explanatory diagrams of patterns for explaining the operation of the embodiment of the present invention, respectively. In the figure, ■ is! 1 device, 2 is an object to be inspected, 3 is a COD camera (imaging device), 4 is a control device, 9a to 9d are shift register groups, R3-R4 are shift registers, 10a to 10d
is a bit map memory, 1) is a magnetic tape device, 12 is a magnetic disk, 13 is a CRT display, 14 is a printer, M is a mask pattern, P is a test pattern, WH,
W, is the inspection window, WMS, WF2 is the center pixel,
20 is a defect inspection circuit. Figure 1 Figure 2 Figure 3 Figure 6 Figure 7 Figure 8 Cause Figure 9 CG) Figure 9 (b) Figure 9 (C) Figure 9 (d) Figure 10 (G) Figure 10 (b)

Claims (4)

【特許請求の範囲】[Claims] (1)検査対象パターンを形成した被検査物と撮像装置
とを相対的に1次元又は2次元に走査して検査パターン
データを得、該検査パターンデータと予め記憶したマス
タパターンデータとを比較して検査パターンの欠陥を検
査するようにしたパターン検査方法において、前記撮像
装置からの1走査ライン毎の検査パターンデータを複数
の画素群に分割して記憶し、該記憶された検査パターン
データと前記マスタパターンデータとを比較して検査パ
ターンの傾きを算出し、該検査パターンの傾きに応じて
前記検査パターン及びマスタパターンデータの何れかの
読出順を変更して両パターンデータ間を整合させてから
両者を比較するようにしたことを特徴とするパターン検
査方法。
(1) Obtain inspection pattern data by relatively scanning the inspection object on which the inspection target pattern is formed and an imaging device in one or two dimensions, and compare the inspection pattern data with pre-stored master pattern data. In the pattern inspection method, inspection pattern data for each scanning line from the imaging device is divided into a plurality of pixel groups and stored, and the stored inspection pattern data and the Calculate the slope of the test pattern by comparing it with the master pattern data, change the reading order of either the test pattern or the master pattern data according to the slope of the test pattern, and then match the data of both patterns. A pattern inspection method characterized by comparing the two.
(2)検査パターンデータ及びマスタパターンデータの
比較は、両者の排他的論理和をとることにより行うよう
にした請求項(1)記載のパターン検査方法。
(2) The pattern inspection method according to claim (1), wherein the inspection pattern data and the master pattern data are compared by performing an exclusive OR of the two.
(3)検査対象パターンを形成した被検査物と撮像装置
とを相対的に1次元又は2次元に走査して検査パターン
データを得、該検査パターンデータと予め記憶したマス
タパターンデータとを比較して検査パターンの欠陥を検
査するようにしたパターン検査装置において、前記撮像
装置からの1走査ライン毎の検査パターンデータを複数
の画素群に分割して記憶する分割記憶手段と、該分割記
憶手段に記憶された検査パターンデータと前記マスタパ
ターンデータとを比較して検査パターンの傾きを検出す
る傾き検出手段と、該傾き検出手段の検出結果に基づい
て前記検査パターン及びマスタパターンデータの何れか
の読出順を変更して両パターンデータ間を整合させるデ
ータ整合手段と、該データ整合手段で整合された検査パ
ターンデータ及びマスタパターンデータをを比較する比
較手段とを備えたことを特徴とするパターン検査装置。
(3) Obtain inspection pattern data by relatively scanning the inspection object on which the inspection target pattern has been formed and the imaging device one-dimensionally or two-dimensionally, and compare the inspection pattern data with pre-stored master pattern data. The pattern inspection apparatus is configured to inspect defects in an inspection pattern using a plurality of pixel groups; a tilt detecting means for detecting the tilt of the test pattern by comparing the stored test pattern data and the master pattern data; and reading either the test pattern or the master pattern data based on the detection result of the tilt detecting means. A pattern inspection device comprising: data matching means for matching both pattern data by changing the order; and comparison means for comparing the inspection pattern data and master pattern data matched by the data matching means. .
(4)比較手段は、検査パターンデータ及びマスタパタ
ーンデータの排他的論理和をとって欠陥部を抽出するよ
うにしてなる請求項(3)記載のパターン欠陥検査装置
(4) The pattern defect inspection apparatus according to claim (3), wherein the comparison means extracts the defective portion by calculating an exclusive OR of the inspection pattern data and the master pattern data.
JP63102948A 1988-04-26 1988-04-26 Method and device for inspecting pattern Pending JPH01274280A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63102948A JPH01274280A (en) 1988-04-26 1988-04-26 Method and device for inspecting pattern

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63102948A JPH01274280A (en) 1988-04-26 1988-04-26 Method and device for inspecting pattern

Publications (1)

Publication Number Publication Date
JPH01274280A true JPH01274280A (en) 1989-11-02

Family

ID=14341042

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63102948A Pending JPH01274280A (en) 1988-04-26 1988-04-26 Method and device for inspecting pattern

Country Status (1)

Country Link
JP (1) JPH01274280A (en)

Similar Documents

Publication Publication Date Title
US5048094A (en) Method and apparatus for checking pattern
US4628531A (en) Pattern checking apparatus
US4744047A (en) Pattern test apparatus including a plurality of pattern generators
US5046113A (en) Method of and apparatus for detecting pattern defects by means of a plurality of inspecting units each operating in accordance with a respective inspecting principle
JP2591292B2 (en) Image processing device and automatic optical inspection device using it
JPH0691003B2 (en) Reticle / mask inspection method and its inspection device
JP3313474B2 (en) Print inspection equipment
JPS6317523A (en) Electron-beam lithography equipment
CN109213090B (en) Position control system, position detection device, and recording medium
US5900941A (en) High speed pattern inspection method and system
JP2004212221A (en) Pattern inspection method and pattern inspection apparatus
JPH09190531A (en) Mounting data production method and device, inspection method for substrate and mounting state
JPH01274280A (en) Method and device for inspecting pattern
JP2924859B2 (en) Appearance inspection method and device
JPS60126830A (en) Scanning method for defect inspecting device of pattern
JPH04295748A (en) Pattern inspecting apparatus
JPH10173029A (en) Method of determining measuring positions of wafer
JPH0518372B2 (en)
JPS60138921A (en) Inspecting device of pattern shape
JPH10260022A (en) Pattern inspecting method
JPH0254375A (en) Method and device for checking pattern defect
JPH058822B2 (en)
JPH01193633A (en) Method and apparatus for inspecting pattern defect
JPS6227933Y2 (en)
JPH071232B2 (en) Image defect detection method