JP2947178B2 - Clock skew judgment circuit - Google Patents

Clock skew judgment circuit

Info

Publication number
JP2947178B2
JP2947178B2 JP22123496A JP22123496A JP2947178B2 JP 2947178 B2 JP2947178 B2 JP 2947178B2 JP 22123496 A JP22123496 A JP 22123496A JP 22123496 A JP22123496 A JP 22123496A JP 2947178 B2 JP2947178 B2 JP 2947178B2
Authority
JP
Japan
Prior art keywords
signal
clock
output
circuit
skew
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.)
Expired - Fee Related
Application number
JP22123496A
Other languages
Japanese (ja)
Other versions
JPH1063367A (en
Inventor
隆裕 川村
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.)
NEC Corp
Original Assignee
Nippon Electric Co 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP22123496A priority Critical patent/JP2947178B2/en
Publication of JPH1063367A publication Critical patent/JPH1063367A/en
Application granted granted Critical
Publication of JP2947178B2 publication Critical patent/JP2947178B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、クロックスキュー
判定回路に関し、特に、マイクロプロセッサのクロック
スキューの不具合を判定するクロックスキュー判定回路
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a clock skew determination circuit, and more particularly to a clock skew determination circuit for determining a clock skew failure of a microprocessor.

【0002】[0002]

【従来の技術】近年、複数のクロックに同期して動作す
るマイクロプロセッサが増加している。このマイクロプ
ロセッサに用いられる複数のクロック間においては、マ
イクロプロセッサ内部の回路の遅延あるいはクロックの
ドライブ能力等の違いによりクロックスキューが生じる
が、このクロックスキューが設計値以上の値になった場
合、信号の筒抜けが発生し、マイクロプロセッサの正常
動作を妨げる要因となってしまう。
2. Description of the Related Art In recent years, the number of microprocessors operating in synchronization with a plurality of clocks has been increasing. A clock skew occurs between a plurality of clocks used in the microprocessor due to a delay in a circuit in the microprocessor or a difference in clock drive capability, but when the clock skew becomes a design value or more, the signal becomes skewed. In the cylinder, which is a factor that hinders the normal operation of the microprocessor.

【0003】従来、この種のクロックスキューの判定
は、内部クロックを直接外部端子に出力し、該当端子に
おける出力をオシロスコープを用いて観測することによ
り内部クロックを測定したり、内部クロック同士を直接
比較した信号を外部端子に出力し、該当端子における出
力をオシロスコープを用いて観測することにより内部ク
ロックを測定したり、あるいは、チップ上のクロックラ
インに針立てを行い、針立てが行われた部分においてオ
シロスコープを用いて内部クロックを直接測定したりす
ることによって行われていた。
Conventionally, this type of clock skew determination is performed by directly outputting an internal clock to an external terminal and observing the output at the corresponding terminal using an oscilloscope to measure the internal clock or directly compare the internal clocks. The output signal is output to an external terminal, and the internal clock is measured by observing the output at the corresponding terminal using an oscilloscope. This has been done by directly measuring the internal clock using an oscilloscope.

【0004】図5は、従来のクロックスキュー判定回路
の一構成例を示す回路ブロック図である。
FIG. 5 is a circuit block diagram showing a configuration example of a conventional clock skew determination circuit.

【0005】本従来例は図5に示すように、入力される
クロック信号を分周する分周器500,501と、分周
器500において分周されたクロック信号と分周器50
1において分周されたクロック信号との排他的論理和を
とるXORゲート503と、XORゲート503におい
て求められた排他的論理和を出力する出力端子502と
から構成されている。
In this conventional example, as shown in FIG. 5, frequency dividers 500 and 501 for dividing an input clock signal, a clock signal divided by the frequency divider 500 and a frequency divider 50 are used.
It comprises an XOR gate 503 which takes an exclusive OR with the clock signal divided in 1 and an output terminal 502 which outputs the exclusive OR obtained by the XOR gate 503.

【0006】以下に、上記のように構成されたクロック
スキュー判定回路の動作について説明する。
Hereinafter, the operation of the clock skew determination circuit configured as described above will be described.

【0007】まず、分周器500に第1のクロック信号
CLK1が、分周器501に第2のクロック信号CLK
2がそれぞれ入力されると、分周器500において、ク
ロック信号CLK1と同位相でデューティ50%のクロ
ック信号C1が出力され、また、分周器501におい
て、クロック信号CLK2と同位相でデューティ50%
のクロック信号C2が出力される。
First, the frequency divider 500 receives the first clock signal CLK1 and the frequency divider 501 receives the second clock signal CLK1.
2 are input, the frequency divider 500 outputs the clock signal C1 having the same phase as the clock signal CLK1 and the duty 50%, and the frequency divider 501 has the duty 50% and the same phase as the clock signal CLK2.
Is output.

【0008】次に、分周器500から出力されたクロッ
ク信号C1と分周器501から出力されたクロック信号
C2とがXORゲート503に入力され、XORゲート
503において、クロック信号C1とクロック信号C2
との排他的論理和がとられ、それにより、出力端子50
2にクロック信号CLK1とクロック信号CLK2との
間に生じたクロックスキューの幅を持つハイレベルのパ
ルスが出力される。
Next, the clock signal C1 output from the frequency divider 500 and the clock signal C2 output from the frequency divider 501 are input to the XOR gate 503, where the clock signal C1 and the clock signal C2 are output.
Of the output terminal 50
2, a high-level pulse having the width of the clock skew generated between the clock signal CLK1 and the clock signal CLK2 is output.

【0009】その後、出力端子502に出力されたパル
スにおけるハイレベルの時間を観測することによって、
クロック信号CLK1とクロック信号CLK2との間に
生じたクロックスキューの判定が行われる。
Then, by observing the high level time of the pulse output to the output terminal 502,
The clock skew generated between the clock signal CLK1 and the clock signal CLK2 is determined.

【0010】[0010]

【発明が解決しようとする課題】しかしながら、上述し
たような従来のクロックスキュー判定回路においては、
以下に記載するような問題点がある。
However, in the conventional clock skew determination circuit as described above,
There are problems as described below.

【0011】(1)内部クロックを直接外部端子に出力
し、該当端子における出力をオシロスコープを用いて観
測することにより内部クロックを測定するクロックスキ
ュー判定回路において複数のクロックを直接外部で測定
することによりクロックスキューの判定を行うが、クロ
ックを直接測定するため、外部の様々なノイズの影響を
受け、正確な測定が困難となってしまう。
(1) A clock skew determination circuit for measuring an internal clock by directly outputting an internal clock to an external terminal and observing the output at the corresponding terminal using an oscilloscope and directly measuring a plurality of clocks externally. Although the clock skew is determined, since the clock is measured directly, it is affected by various external noises, which makes accurate measurement difficult.

【0012】(2)内部クロック同士を直接比較した信
号を外部端子に出力し、該当端子における出力をオシロ
スコープを用いて観測することにより内部クロックを測
定するクロックスキュー判定回路において出力された信
号に基づいて、内部クロックが、設計されたスキューに
収まっているかどうかの判断を行うため、オシロスコー
プ等を用いて出力信号を測定する場合に高い測定精度が
要求されてしまう。
(2) A signal obtained by directly comparing the internal clocks with each other is output to an external terminal, and the output at the corresponding terminal is observed using an oscilloscope. In order to determine whether or not the internal clock is within the designed skew, high measurement accuracy is required when measuring an output signal using an oscilloscope or the like.

【0013】(3)チップ上のクロックラインに針立て
を行い、針立てが行われた部分においてオシロスコープ
を用いて内部クロックを直接測定するクロックスキュー
判定回路において複数のクロックを直接外部で測定する
ことによりクロックスキューの判定を行うが、クロック
を直接測定するため、外部の様々なノイズの影響を受
け、正確な測定が困難となってしまう。
(3) A plurality of clocks are directly measured externally by a clock skew determination circuit which performs a needle setting on a clock line on a chip and directly measures an internal clock using an oscilloscope in a portion where the needle setting is performed. The clock skew is determined according to the following formula, but since the clock is measured directly, it is affected by various external noises, which makes accurate measurement difficult.

【0014】本発明は、上述したような従来の技術が有
する問題点に鑑みてなされたものであって、マイクロプ
ロセッサ内部におけるクロックスキューを正確かつ容易
に判定することができるクロックスキュー判定回路を提
供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned problems of the prior art, and provides a clock skew determination circuit capable of accurately and easily determining a clock skew inside a microprocessor. The purpose is to do.

【0015】[0015]

【課題を解決するための手段】 上記目的を達成するた
めに本発明は、第1のクロック信号と第2のクロック信
号との間に生じるクロックスキューを判定するクロック
スキュー判定回路において、入力信号を第1のクロック
信号によりラッチし、ラッチ前後で異なる信号レベルを
出力する第1のラッチ回路と、該第1のラッチ回路から
出力された信号を予め決められた所定時間だけ遅延させ
て出力する遅延回路と、該遅延回路から出力された信号
を第2のクロック信号によりラッチ出力する第2のラッ
チ回路と、前記第1のラッチ回路から出力された信号及
び前記第2のラッチ回路から出力された信号を入力して
論理をとる論理ゲートとを有し、該論理ゲートから出力
されたパルス幅に基づいて、前記第1のクロック信号と
前記第2のクロック信号との間に生じたスキューがクロ
ックスキュー設計時間を越えたか否かを判定することを
特徴とする。
Means for Solving the Problems In order to achieve the above object, the present invention provides a first clock signal and a second clock signal.
Clock to determine the clock skew that occurs between
A skew determination circuit that latches an input signal with a first clock signal and outputs a different signal level before and after the latch; and a signal output from the first latch circuit in advance. A delay circuit that delays and outputs the signal by a predetermined time, a second latch circuit that latches and outputs a signal output from the delay circuit with a second clock signal, and a signal that is output from the first latch circuit Inputting the signal and the signal output from the second latch circuit
A logic gate that takes a logic, and a skew generated between the first clock signal and the second clock signal exceeds a clock skew design time based on a pulse width output from the logic gate. Or not.

【0016】また、第1のクロック信号と第2のクロッ
ク信号との間に生じるクロックスキュー量を測定するク
ロックスキュー判定回路において、入力信号を第1のク
ロック信号によりラッチし、ラッチ前後で異なる信号レ
ベルを出力する第1のラッチ回路と、該第1のラッチ回
路から出力された信号をそれぞれに設定された所定時間
だけ遅延させて出力する複数の遅延回路と、該複数の遅
延回路から出力された信号の中から1つの信号を選択し
て出力する選択回路と、該選択回路から出力された信号
を第2のクロック信号によりラッチ出力する第2のラッ
チ回路と、前記第1のラッチ回路から出力された信号及
び前記第2のラッチ回路から出力された信号を入力して
論理をとる論理ゲートとを有し、該論理ゲートから出力
されたパルス幅に基づいて、前記第1のクロック信号と
前記第2のクロック信号との間に生じたスキューが前記
選択回路にて選択された遅延回路における遅延時間を越
えたか否かを判定することにより、前記第1のクロック
信号と前記第2のクロック信号との間に生じたスキュー
量を測定することを特徴とする。
Further, the first clock signal and the second clock signal
Clock skew between the clock signal
In the lock skew determination circuit, the input signal is latched by the first clock signal , and different signal levels are obtained before and after the latch.
A first latch circuit that outputs a bell, a plurality of delay circuits that delay the signal output from the first latch circuit by a predetermined time respectively set, and output the delayed signal, and a plurality of delay circuits that output the signal output from the plurality of delay circuits. A selection circuit for selecting and outputting one signal from the selected signals, a second latch circuit for latching and outputting a signal output from the selection circuit by a second clock signal, Inputting the output signal and the signal output from the second latch circuit ,
A logic gate that takes logic, and a skew generated between the first clock signal and the second clock signal is selected by the selection circuit based on a pulse width output from the logic gate. The skew amount generated between the first clock signal and the second clock signal is measured by determining whether or not the delay time in the delay circuit has been exceeded.

【0017】また、前記マイクロプロセッサに内蔵され
ていることを特徴とする。
Further, the microprocessor is built in the microprocessor.

【0018】(作用)上記のように構成された本発明に
おいては、クロックスキューを判定するためのテスト信
号が第1のラッチ回路において第1のクロック信号の立
ち上がりでラッチ出力され、第1のラッチ回路において
ラッチ出力された信号が遅延回路において所定時間だけ
遅延されて出力され、遅延回路において遅延された信号
が第2のラッチ回路において第2のクロック信号の立ち
上がりでラッチ出力され、第1のラッチ回路から出力さ
れた信号及び第2のラッチ回路から出力された信号が論
理ゲートに入力され、論理ゲートにおいて第1のラッチ
回路から出力された信号と第2のラッチ回路から出力さ
れた信号との論理積がとられ、その結果に基づいて、第
1のクロック信号と第2のクロック信号との間に生じた
スキューの不具合判定が行われる。
(Operation) In the present invention configured as described above, the test signal for determining the clock skew is latched and output at the rising edge of the first clock signal in the first latch circuit, and the first latch circuit outputs the test signal. A signal latched and output by the circuit is output after being delayed by a predetermined time in a delay circuit, and the signal delayed in the delay circuit is latched and output by a second latch circuit at a rising edge of a second clock signal, and the first latch is output. The signal output from the circuit and the signal output from the second latch circuit are input to a logic gate, and the logic gate outputs the signal output from the first latch circuit and the signal output from the second latch circuit. AND operation is performed, and based on the result, a skew defect occurring between the first clock signal and the second clock signal. Constant is performed.

【0019】このように、第1のクロック信号と第2の
クロック信号とを用いた出力信号のパルス幅によって第
1のクロック信号と第2のクロック信号との間に生じた
クロックスキューの不具合判定が行われるので、外部の
様々なノイズの影響を受けることなく、マイクロプロセ
ッサ内部におけるクロックスキューが正確かつ容易に判
定される。
As described above, the problem determination of the clock skew generated between the first clock signal and the second clock signal due to the pulse width of the output signal using the first clock signal and the second clock signal. Is performed, the clock skew inside the microprocessor can be accurately and easily determined without being affected by various external noises.

【0020】また、遅延時間が異なる遅延回路を複数個
設け、複数の遅延回路から出力された信号の中から第2
のラッチ回路に入力される信号を選択する選択回路を設
けた場合は、選択回路において、複数の遅延回路から出
力された信号の中から第2のラッチ回路に入力される信
号を選択してその際のクロックスキューの判定結果を参
照することにより、第1のクロック信号と第2のクロッ
ク信号とのクロックスキュー量が測定される。
A plurality of delay circuits having different delay times are provided, and a second one of the signals output from the plurality of delay circuits is provided.
When a selection circuit for selecting a signal input to the latch circuit is provided, the selection circuit selects a signal input to the second latch circuit from signals output from the plurality of delay circuits, and The amount of clock skew between the first clock signal and the second clock signal is measured by referring to the clock skew determination result at that time.

【0021】[0021]

【発明の実施の形態】以下に、本発明の実施の形態につ
いて図面を参照して説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0022】(第1の実施の形態)図1は、本発明のク
ロックスキュー判定回路の第1の実施の形態を示す回路
ブロック図である。
(First Embodiment) FIG. 1 is a circuit block diagram showing a first embodiment of a clock skew determining circuit according to the present invention.

【0023】本形態は図1に示すように、クロックスキ
ューの判定を行うためのクロックスキューテスト信号S
1及び第1のクロック信号CLK1が入力され、クロッ
ク信号CLK1の立ち上がり時においてクロックキュー
テスト信号S1を信号S2としてラッチ出力する第1の
ラッチ回路100と、ラッチ回路100から出力された
信号S2を所定時間だけ遅延させて信号S3として出力
する遅延回路102と、信号S3及び第2のクロック信
号CLK2が入力され、クロック信号CLK2の立ち上
がり時において信号S3を信号S4としてラッチ出力す
る第2のラッチ回路101と、ラッチ回路101から出
力された信号S4及びラッチ回路100から出力された
信号S2が入力され、信号S2と信号S4との論理積を
とり、信号S5として出力するANDゲート104と、
ANDゲート104から出力された信号S5を外部に出
力する出力端子103とから構成されている。
In this embodiment, as shown in FIG. 1, a clock skew test signal S for determining clock skew is used.
The first and first clock signals CLK1 are input, a first latch circuit 100 that latches and outputs the clock cue test signal S1 as a signal S2 when the clock signal CLK1 rises, and a signal S2 output from the latch circuit 100 is predetermined. A delay circuit 102 that outputs the signal S3 with a delay by a time, and a second latch circuit 101 that receives the signal S3 and the second clock signal CLK2 and latches and outputs the signal S3 as a signal S4 when the clock signal CLK2 rises. And an AND gate 104 to which the signal S4 output from the latch circuit 101 and the signal S2 output from the latch circuit 100 are input, AND the signal S2 and the signal S4, and output as a signal S5;
And an output terminal 103 for outputting the signal S5 output from the AND gate 104 to the outside.

【0024】以下に、上記のように構成されたクロック
スキュー判定回路の動作について説明する。
Hereinafter, the operation of the clock skew determining circuit configured as described above will be described.

【0025】まず、ラッチ回路100にクロックスキュ
ーテスト信号S1及びクロック信号CLK1が入力され
ると、ラッチ回路100において、クロック信号CLK
1の立ち上がり時においてクロックキューテスト信号S
1が信号S2としてラッチ出力される。
First, when the clock skew test signal S1 and the clock signal CLK1 are input to the latch circuit 100, the clock signal CLK
1 at the rise of the clock cue test signal S
1 is latched and output as a signal S2.

【0026】次に、ラッチ回路100から出力された信
号S2が遅延回路102に入力され、遅延回路102に
おいて、信号S2が所定時間だけ遅延されて信号S3と
して出力される。
Next, the signal S2 output from the latch circuit 100 is input to the delay circuit 102, where the signal S2 is delayed by a predetermined time and output as a signal S3.

【0027】次に、遅延回路102から出力された信号
S3とクロック信号CLK2がラッチ回路101に入力
され、ラッチ回路101において、クロック信号CLK
2の立ち上がり時において信号S3が信号S4としてラ
ッチ出力される。
Next, the signal S3 and the clock signal CLK2 output from the delay circuit 102 are input to the latch circuit 101, and the latch circuit 101 outputs the clock signal CLK.
The signal S3 is latched and output as the signal S4 at the rise of the signal S2.

【0028】次に、ラッチ回路101から出力された信
号S4がANDゲート104に入力される。ここで、A
NDゲート104には、ラッチ回路100から出力され
た信号S2も入力されており、ANDゲート104にお
いて、信号S2と信号S4との論理積がとられ、信号S
5として出力される。
Next, the signal S4 output from the latch circuit 101 is input to the AND gate 104. Where A
The signal S2 output from the latch circuit 100 is also input to the ND gate 104. The AND gate 104 obtains the logical product of the signal S2 and the signal S4, and
5 is output.

【0029】その後、出力端子103に出力されたパル
スにおけるハイレベルの時間を測定することによって、
クロック信号CLK1とクロック信号CLK2との間に
生じたクロックスキューの判定が行われる。
Then, by measuring the high level time of the pulse output to the output terminal 103,
The clock skew generated between the clock signal CLK1 and the clock signal CLK2 is determined.

【0030】以下に、上述したクロックスキュー判定回
路の動作について図面を参照して詳細に説明する。
Hereinafter, the operation of the above-described clock skew determination circuit will be described in detail with reference to the drawings.

【0031】図2は、図1に示したクロックスキュー判
定回路において、クロックスキューが設計値の範囲内で
ある場合のタイミングチャートである。
FIG. 2 is a timing chart in the case where the clock skew is within the range of the design value in the clock skew determination circuit shown in FIG.

【0032】テスト信号S1は、ラッチ回路100にお
いてクロック信号CLK1の立ち上がりで信号S2とし
てラッチ出力される(点200)。
The test signal S1 is latched and output as a signal S2 at the rising edge of the clock signal CLK1 in the latch circuit 100 (point 200).

【0033】クロック信号CLK1でラッチ出力された
信号S2は、遅延回路102において所定時間だけ遅延
され、信号S3として出力される(点201)。
The signal S2 latched by the clock signal CLK1 is delayed by a predetermined time in the delay circuit 102 and output as a signal S3 (point 201).

【0034】遅延回路102から出力された信号S3
は、ラッチ回路101においてクロック信号CLK2の
立ち上がりで信号S4としてラッチ出力される(点20
2)。このとき、クロック信号CLK1とクロック信号
CLK2とのクロックスキューが設計値の範囲内である
ので、信号S3が変化する前の状態がラッチ出力され
る。
Signal S3 output from delay circuit 102
Is latched as a signal S4 at the rising edge of the clock signal CLK2 in the latch circuit 101 (point 20).
2). At this time, since the clock skew between the clock signals CLK1 and CLK2 is within the range of the design value, the state before the signal S3 changes is latched and output.

【0035】信号S3の変化後の値は、クロック信号C
LK2の次の立ち上がり時においてラッチ出力される
(点203)。
The value after the change of the signal S3 is the clock signal C
At the next rising of LK2, it is latched and output (point 203).

【0036】信号S2と信号S4との論理積S5は、ク
ロックスキューの設計値の範囲内となる小さなパルス波
形となる(点204)。
The logical product S5 of the signal S2 and the signal S4 has a small pulse waveform within the range of the design value of the clock skew (point 204).

【0037】図3は、図1に示したクロックスキュー判
定回路において、クロックスキューが設計値の範囲をオ
ーバーしている場合のタイミングチャートである。
FIG. 3 is a timing chart in the case where the clock skew exceeds the design value range in the clock skew determination circuit shown in FIG.

【0038】テスト信号S1は、ラッチ回路100にお
いてクロック信号CLK1の立ち上がりで信号S2とし
てラッチ出力される(点300)。
The test signal S1 is latched and output as a signal S2 at the rising edge of the clock signal CLK1 in the latch circuit 100 (point 300).

【0039】クロック信号CLK1でラッチ出力された
信号S2は、遅延回路102において所定時間だけ遅延
され、信号S3として出力される(点301)。
The signal S2 latched by the clock signal CLK1 is delayed by a predetermined time in the delay circuit 102 and output as a signal S3 (point 301).

【0040】遅延回路102から出力された信号S3
は、ラッチ回路101においてクロック信号CLK2の
立ち上がりで信号S4としてラッチ出力される(点30
2)。このとき、クロック信号CLK1とクロック信号
CLK2とのクロックスキューが設計値の範囲をオーバ
ーしているので、信号S3が変化した後の状態がラッチ
出力される。
Signal S3 output from delay circuit 102
Is latched as a signal S4 at the rising edge of the clock signal CLK2 in the latch circuit 101 (point 30).
2). At this time, since the clock skew between the clock signal CLK1 and the clock signal CLK2 exceeds the range of the design value, the state after the signal S3 has changed is latched and output.

【0041】信号S2と信号S4との論理積S5は、ク
ロック信号の幅以上となる大きなパルス波形となる(点
303)。
The logical product S5 of the signal S2 and the signal S4 has a large pulse waveform which is larger than the width of the clock signal (point 303).

【0042】上述したように、オシロスコープ等を用い
ることなく、出力信号が内部クロックよりも大きなパル
スになっているかどうかを確認するだけでクロックスキ
ューの判定を行うことができる。
As described above, the clock skew can be determined only by checking whether the output signal has a pulse larger than the internal clock without using an oscilloscope or the like.

【0043】(第2の実施の形態)図4は、本発明のク
ロックスキュー判定回路の第2の実施の形態を示す回路
ブロック図であり、クロックスキューの量を測定するこ
とができるものである。
(Second Embodiment) FIG. 4 is a circuit block diagram showing a clock skew determination circuit according to a second embodiment of the present invention, in which the amount of clock skew can be measured. .

【0044】本形態は図4に示すように、クロックスキ
ューの判定を行うためのクロックスキューテスト信号S
1及び第1のクロック信号CLK1が入力され、クロッ
ク信号CLK1の立ち上がり時においてクロックキュー
テスト信号S1を信号S2としてラッチ出力する第1の
ラッチ回路400と、ラッチ回路400から出力された
信号S2をそれぞれに設定された所定時間だけ遅延させ
て信号X1〜Xnとしてそれぞれ出力する複数の遅延回
路402−1〜402−nと、遅延回路402−1〜4
02−nから出力された信号X1〜Xnの中から1つの
信号を選択して信号S3として出力する選択回路405
と、選択回路405から出力された信号S3及び第2の
クロック信号CLK2が入力され、クロック信号CLK
2の立ち上がり時において信号S3を信号S4としてラ
ッチ出力する第2のラッチ回路401と、ラッチ回路4
01から出力された信号S4及びラッチ回路100から
出力された信号S2とが入力され、信号S2と信号S4
との論理積をとり、信号S5として出力するANDゲー
ト404と、ANDゲート404から出力された信号S
5を外部に出力する出力端子403とから構成されてい
る。
In this embodiment, as shown in FIG. 4, a clock skew test signal S for determining clock skew is used.
The first and second clock signals CLK1 are input, the first latch circuit 400 latches and outputs the clock cue test signal S1 as the signal S2 when the clock signal CLK1 rises, and the signal S2 output from the latch circuit 400, respectively. And a plurality of delay circuits 402-1 to 402-n which respectively output signals X1 to Xn after being delayed by a predetermined time set in
A selection circuit 405 that selects one signal from the signals X1 to Xn output from 02-n and outputs it as a signal S3
And the signal S3 and the second clock signal CLK2 output from the selection circuit 405 are input, and the clock signal CLK
A second latch circuit 401 that latches and outputs the signal S3 as the signal S4 at the rise of the second latch circuit 4;
01 and the signal S2 output from the latch circuit 100 are input, and the signal S2 and the signal S4
AND gate 404 which takes the logical product of the AND and outputs the signal S5 and the signal S output from the AND gate 404
5 to the outside.

【0045】以下に、上記のように構成されたクロック
スキュー判定回路の動作について説明する。
Hereinafter, the operation of the clock skew determining circuit configured as described above will be described.

【0046】まず、ラッチ回路400にクロックスキュ
ーテスト信号S1及びクロック信号CLK1が入力され
ると、ラッチ回路400において、クロック信号CLK
1の立ち上がり時においてクロックキューテスト信号S
1が信号S2としてラッチ出力される。
First, when the clock skew test signal S1 and the clock signal CLK1 are input to the latch circuit 400, the clock signal CLK
1 at the rise of the clock cue test signal S
1 is latched and output as a signal S2.

【0047】次に、ラッチ回路400から出力された信
号S2が遅延回路402−1〜402−nに入力され、
遅延回路402−1〜402−nにおいて、信号S2
が、それぞれに設定されている所定時間だけ遅延されて
信号X1〜Xnとして出力される。なお、遅延回路40
2−1〜402−nにおいては、それぞれ異なる遅延時
間が設定されている。
Next, the signal S2 output from the latch circuit 400 is input to the delay circuits 402-1 to 402-n.
In the delay circuits 402-1 to 402-n, the signal S2
Are output as signals X1 to Xn after being delayed by a predetermined time set for each. The delay circuit 40
In 2-1 to 402-n, different delay times are set.

【0048】次に、遅延回路402−1〜402−nか
ら出力された信号X1〜Xnが選択回路405に入力さ
れ、選択回路405において、遅延量選択信号Y1〜Y
nによって信号X1〜Xnのうち1つの信号が選択さ
れ、信号S3として出力される。
Next, the signals X1 to Xn output from the delay circuits 402-1 to 402-n are input to the selection circuit 405, where the delay amount selection signals Y1 to Yn are output.
One of the signals X1 to Xn is selected by n, and is output as a signal S3.

【0049】次に、選択回路405から出力された信号
S3とクロック信号CLK2がラッチ回路401に入力
され、ラッチ回路401において、クロック信号CLK
2の立ち上がり時において信号S3が信号S4としてラ
ッチ出力される。
Next, the signal S3 and the clock signal CLK2 output from the selection circuit 405 are input to the latch circuit 401.
The signal S3 is latched and output as the signal S4 at the rise of the signal S2.

【0050】次に、ラッチ回路401から出力された信
号S4がANDゲート404に入力される。ここで、A
NDゲート404には、ラッチ回路400から出力され
た信号S2も入力されており、ANDゲート404にお
いて、信号S2と信号S4との論理積がとられ、信号S
5として出力される。
Next, the signal S 4 output from the latch circuit 401 is input to the AND gate 404. Where A
The signal S2 output from the latch circuit 400 is also input to the ND gate 404. The AND gate 404 calculates the logical product of the signal S2 and the signal S4, and outputs the signal S2.
5 is output.

【0051】その後、出力端子403に出力されたパル
スにおけるハイレベルの時間を測定することによって、
クロック信号CLK1とクロック信号CLK2との間に
生じたクロックスキューの判定が行われる。
Thereafter, by measuring the high level time of the pulse output to the output terminal 403,
The clock skew generated between the clock signal CLK1 and the clock signal CLK2 is determined.

【0052】ここで、本形態においては、選択回路40
5において、ラッチ回路401に入力される信号S3が
遅延回路402−1〜402−nから出力される信号X
1〜Xnのうちから選択されるため、それにより、クロ
ック信号CLK1とクロック信号CLK2とのクロック
スキュー量を測定することができる。
Here, in the present embodiment, the selection circuit 40
5, the signal S3 input to the latch circuit 401 is the signal X output from the delay circuits 402-1 to 402-n.
Since it is selected from 1 to Xn, it is possible to measure the amount of clock skew between the clock signal CLK1 and the clock signal CLK2.

【0053】例えば、遅延回路402−1の遅延量が1
0ns、遅延回路402−2の遅延量が11nsである
場合で、選択回路405において遅延回路402−1か
ら出力された信号X1が選択された場合のクロックスキ
ューの判定結果が設計値オーバーであって、かつ、選択
回路405において遅延回路402−1から出力された
信号X2が選択された場合のクロックスキューの判定結
果が設計値以内であるという結果が得られた場合、クロ
ック信号CLK1とクロック信号CLK2とのクロック
スキューは10ns以上、11ns未満であることが判
る。
For example, if the delay amount of the delay circuit 402-1 is 1
0 ns, the delay amount of the delay circuit 402-2 is 11 ns, and the determination result of the clock skew when the signal X1 output from the delay circuit 402-1 is selected by the selection circuit 405 exceeds the design value. When the selection result of the clock skew when the signal X2 output from the delay circuit 402-1 is selected by the selection circuit 405 is within the design value, the clock signal CLK1 and the clock signal CLK2 are obtained. It can be seen that the clock skew is 10 ns or more and less than 11 ns.

【0054】[0054]

【発明の効果】本発明は、以上説明したように構成され
ているので、以下に記載するような効果を奏する。
Since the present invention is constructed as described above, it has the following effects.

【0055】請求項1に記載のものにおいては、第1の
クロック信号と第2のクロック信号とを用いた出力信号
のパルス幅によって第1のクロック信号と第2のクロッ
ク信号との間に生じたクロックスキューの不具合判定が
行われる構成としたため、外部の様々なノイズの影響を
受けることなく、マイクロプロセッサ内部におけるクロ
ックスキューを正確かつ容易に判定することができる。
According to the first aspect of the present invention, a pulse generated between the first clock signal and the second clock signal by a pulse width of an output signal using the first clock signal and the second clock signal. In this configuration, the clock skew defect determination is performed, so that the clock skew inside the microprocessor can be accurately and easily determined without being affected by various external noises.

【0056】請求項2に記載のものにおいては、遅延時
間が異なる遅延回路を複数個設け、複数の遅延回路から
出力された信号の中から第2のラッチ回路に入力される
信号を選択する選択回路を設けたため、選択回路におい
て、複数の遅延回路から出力された信号の中から第2の
ラッチ回路に入力される信号を選択してその際のクロッ
クスキューの判定結果を参照することにより、第1のク
ロック信号と第2のクロック信号とのクロックスキュー
量を測定することができる。
According to the second aspect of the present invention, a plurality of delay circuits having different delay times are provided, and a selection circuit selects a signal input to the second latch circuit from signals output from the plurality of delay circuits. Since the circuit is provided, the selection circuit selects the signal input to the second latch circuit from the signals output from the plurality of delay circuits, and refers to the determination result of the clock skew at that time, thereby obtaining The amount of clock skew between the first clock signal and the second clock signal can be measured.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明のクロックスキュー判定回路の第1の実
施の形態を示す回路ブロック図である。
FIG. 1 is a circuit block diagram showing a first embodiment of a clock skew determination circuit according to the present invention.

【図2】図1に示したクロックスキュー判定回路におい
て、クロックスキューが設計値の範囲内である場合のタ
イミングチャートである。
FIG. 2 is a timing chart in the case where the clock skew is within a design value range in the clock skew determination circuit shown in FIG.

【図3】図1に示したクロックスキュー判定回路におい
て、クロックスキューが設計値の範囲をオーバーしてい
る場合のタイミングチャートである。
FIG. 3 is a timing chart in a case where a clock skew exceeds a design value range in the clock skew determination circuit shown in FIG. 1;

【図4】図4は、本発明のクロックスキュー判定回路の
第2の実施の形態を示す回路ブロック図である。
FIG. 4 is a circuit block diagram illustrating a clock skew determination circuit according to a second embodiment of the present invention.

【図5】従来のクロックスキュー判定回路の一構成例を
示す回路ブロック図である。
FIG. 5 is a circuit block diagram illustrating a configuration example of a conventional clock skew determination circuit.

【符号の説明】[Explanation of symbols]

100,101,400,401 ラッチ回路 102,402−1〜402−n 遅延回路 103,403 出力端子 104,404 ANDゲート 200〜204,300〜303 観測点 405 選択回路 100, 101, 400, 401 Latch circuit 102, 402-1 to 402-n Delay circuit 103, 403 Output terminal 104, 404 AND gate 200 to 204, 300 to 303 Observation point 405 Selection circuit

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 第1のクロック信号と第2のクロック信
号との間に生じるクロックスキューを判定するクロック
スキュー判定回路において、入力信号を第1のクロック
信号によりラッチし、ラッチ前後で異なる信号レベルを
出力する第1のラッチ回路と、該第1のラッチ回路から
出力された信号を予め決められた所定時間だけ遅延させ
て出力する遅延回路と、該遅延回路から出力された信号
を第2のクロック信号によりラッチ出力する第2のラッ
チ回路と、前記第1のラッチ回路から出力された信号及
び前記第2のラッチ回路から出力された信号を入力して
論理をとる論理ゲートとを有し、該論理ゲートから出力
されたパルス幅に基づいて、前記第1のクロック信号と
前記第2のクロック信号との間に生じたスキューがクロ
ックスキュー設計時間を越えたか否かを判定することを
特徴とするクロックスキュー判定回路。
1. A first clock signal and a second clock signal.
Clock to determine the clock skew that occurs between
A skew determination circuit that latches an input signal with a first clock signal and outputs a different signal level before and after the latch; and a signal output from the first latch circuit in advance. A delay circuit that delays and outputs the signal by a predetermined time, a second latch circuit that latches and outputs a signal output from the delay circuit with a second clock signal, and a signal that is output from the first latch circuit Inputting the signal and the signal output from the second latch circuit
A logic gate that takes a logic, and a skew generated between the first clock signal and the second clock signal exceeds a clock skew design time based on a pulse width output from the logic gate. A clock skew determination circuit for determining whether the clock skew has occurred.
【請求項2】 第1のクロック信号と第2のクロック信
号との間に生じるクロックスキュー量を測定するクロッ
クスキュー判定回路において、入力信号を第1のクロッ
ク信号によりラッチし、ラッチ前後で異なる信号レベル
出力する第1のラッチ回路と、該第1のラッチ回路か
ら出力された信号をそれぞれに設定された所定時間だけ
遅延させて出力する複数の遅延回路と、該複数の遅延回
路から出力された信号の中から1つの信号を選択して出
力する選択回路と、該選択回路から出力された信号を第
2のクロック信号によりラッチ出力する第2のラッチ回
路と、前記第1のラッチ回路から出力された信号及び前
記第2のラッチ回路から出力された信号を入力して論理
をとる論理ゲートとを有し、該論理ゲートから出力され
たパルス幅に基づいて、前記第1のクロック信号と前記
第2のクロック信号との間に生じたスキューが前記選択
回路にて選択された遅延回路における遅延時間を越えた
か否かを判定することにより、前記第1のクロック信号
と前記第2のクロック信号との間に生じたスキュー量を
測定することを特徴とするクロックスキュー判定回路。
2. A first clock signal and a second clock signal.
Clock skew generated between
In the skew determination circuit, the input signal is latched by the first clock signal , and different signal levels are obtained before and after the latch.
, A plurality of delay circuits for delaying a signal output from the first latch circuit by a predetermined time respectively set and outputting the same, and a plurality of delay circuits output from the plurality of delay circuits. A selection circuit for selecting and outputting one signal from signals, a second latch circuit for latching and outputting a signal output from the selection circuit by a second clock signal, and an output from the first latch circuit Inputting the output signal and the signal output from the second latch circuit, and
And a skew generated between the first clock signal and the second clock signal is selected by the selection circuit based on a pulse width output from the logic gate. A skew amount generated between the first clock signal and the second clock signal by determining whether or not a delay time in a delayed delay circuit has been exceeded. .
【請求項3】 請求項1または請求項2に記載のクロッ
クスキュー判定回路において、前記マイクロプロセッサ
に内蔵されていることを特徴とするクロックスキュー判
定回路。
3. The clock skew determination circuit according to claim 1, wherein the clock skew determination circuit is built in the microprocessor.
JP22123496A 1996-08-22 1996-08-22 Clock skew judgment circuit Expired - Fee Related JP2947178B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22123496A JP2947178B2 (en) 1996-08-22 1996-08-22 Clock skew judgment circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22123496A JP2947178B2 (en) 1996-08-22 1996-08-22 Clock skew judgment circuit

Publications (2)

Publication Number Publication Date
JPH1063367A JPH1063367A (en) 1998-03-06
JP2947178B2 true JP2947178B2 (en) 1999-09-13

Family

ID=16763578

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22123496A Expired - Fee Related JP2947178B2 (en) 1996-08-22 1996-08-22 Clock skew judgment circuit

Country Status (1)

Country Link
JP (1) JP2947178B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100837278B1 (en) 2007-02-27 2008-06-11 삼성전자주식회사 Clock skew controller and integrated circuit including the same

Also Published As

Publication number Publication date
JPH1063367A (en) 1998-03-06

Similar Documents

Publication Publication Date Title
US6661266B1 (en) All digital built-in self-test circuit for phase-locked loops
CN109387776B (en) Method of measuring clock jitter, clock jitter measuring circuit, and semiconductor device
EP2026469B1 (en) Circuit device and method of measuring clock jitter
US6807243B2 (en) Delay clock generating apparatus and delay time measuring apparatus
US20030107951A1 (en) Compact ate with time stamp system
JP3625400B2 (en) Test circuit for variable delay element
EP0909957A2 (en) Measuring signals in a tester system
US7945404B2 (en) Clock jitter measurement circuit and integrated circuit having the same
JP3179429B2 (en) Test circuit for frequency measurement and semiconductor integrated circuit having the same
US6553545B1 (en) Process parameter extraction
EP1148340B1 (en) All digital built-in self-test circuit for phase-locked loops
US7495429B2 (en) Apparatus and method for test, characterization, and calibration of microprocessor-based and digital signal processor-based integrated circuit digital delay lines
US6829548B2 (en) DLL static phase error measurement technique
JP2947178B2 (en) Clock skew judgment circuit
US8159209B2 (en) Digital signal delay measuring circuit and digital signal delay measuring method
US20070061654A1 (en) Semiconductor integrated circuit and test method
US5754063A (en) Method and apparatus to measure internal node timing
US6373313B1 (en) Delay time regulation method and delay time regulation circuit
US10261128B2 (en) Test circuit capable of measuring PLL clock signal in ATPG mode
US7386407B2 (en) Semiconductor device test method using an evaluation LSI
JP3058130B2 (en) Test circuit for high-speed semiconductor integrated circuit devices
JP4657825B2 (en) Interface circuit of semiconductor device and measuring method
JP2591849B2 (en) Test circuit
US20050030074A1 (en) Semiconductor device having PLL-circuit
US9906355B2 (en) On-die signal measurement circuit and method

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19981215

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19990601

LAPS Cancellation because of no payment of annual fees