JP2002077118A - Synchronizing circuit equipped with synchronization abnormality detecting function, semiconductor integrated circuit, and information processing device - Google Patents

Synchronizing circuit equipped with synchronization abnormality detecting function, semiconductor integrated circuit, and information processing device

Info

Publication number
JP2002077118A
JP2002077118A JP2000255656A JP2000255656A JP2002077118A JP 2002077118 A JP2002077118 A JP 2002077118A JP 2000255656 A JP2000255656 A JP 2000255656A JP 2000255656 A JP2000255656 A JP 2000255656A JP 2002077118 A JP2002077118 A JP 2002077118A
Authority
JP
Japan
Prior art keywords
register
signal
clock
output
circuit
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.)
Granted
Application number
JP2000255656A
Other languages
Japanese (ja)
Other versions
JP3528770B2 (en
Inventor
Makoto Ogiwara
誠 荻原
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
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP2000255656A priority Critical patent/JP3528770B2/en
Publication of JP2002077118A publication Critical patent/JP2002077118A/en
Application granted granted Critical
Publication of JP3528770B2 publication Critical patent/JP3528770B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To solve a problem of easily detecting an abnormality of synchronization in a synchronizing circuit due to a turbulence in the clock signals of an input end so as to avoid a serious trouble to spoil data. SOLUTION: A synchronizing circuit is equipped with a register 11 which receives signals T-IN, operating on a first clock (CLK1), a register 12 which receives the output of the register 11, operating on a second clock (CLK2), a register 13 which receives the output of the register 12, operating on the CLK2, a register 14 which receives the output of the register 13, operating on the CLK2, an AND gate 15 which forms signals T-OUT after synchronization, working out the logical product of the output of the register 13 and the inverted output value of the register 14, and an AND gate 16 which detects a synchronization abnormality, working out the logical product of the output of the register 11 and the signal T-IN.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は同期化の異常検出機
能を備えた同期化回路と、この同期化回路を組み込んだ
半導体集積回路及び情報処理装置に関し、特にシリアル
データを受信してパラレルデータに変換して使用する際
の同期化における異常を検出する技術に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a synchronization circuit having a synchronization abnormality detection function, a semiconductor integrated circuit incorporating the synchronization circuit, and an information processing apparatus. The present invention relates to a technique for detecting an abnormality in synchronization at the time of conversion and use.

【0002】[0002]

【従来の技術】データを転送する方法としてデータを複
数ビットまとめて転送するパラレル転送と、1ビットず
つ転送するシリアル転送とがある。近年シリアル転送は
光による転送が普及し転送速度が高速化する傾向にあ
る。シリアル転送では、受信したシリアルデータをパラ
レルデータに変換するシリアルパラレル変換回路を備え
ており、シリアルパラレル変換回路はシリアルデータを
パラレルデータに変換するする機能と、シリアルデータ
からパラレルデータに同期したクロックの生成を行う機
能がある。
2. Description of the Related Art As a method for transferring data, there are a parallel transfer for transferring a plurality of bits at a time and a serial transfer for transferring one bit at a time. In recent years, light transfer has become popular in serial transfer, and the transfer speed tends to increase. The serial transfer includes a serial-parallel conversion circuit that converts received serial data into parallel data.The serial-parallel conversion circuit has a function to convert serial data into parallel data and a clock that synchronizes from serial data to parallel data. There is a function to generate.

【0003】この生成クロックは、シリアルデータから
抽出されるためシリアルデータに乱れが発生すると生成
クロックも乱れることになり、この乱れが装置に誤動作
を誘発する場合がある。
Since the generated clock is extracted from the serial data, if the serial data is disturbed, the generated clock is also disturbed, and this disturbance may cause a malfunction in the device.

【0004】特にシリアルインタフェースが光インタフ
ェースの場合には、送出側の光データリンクの電源のオ
ン時や光ケーブルの挿抜時や伝送路による光の減衰等の
原因により一時的に入力光が不安定な状態となり生成ク
ロックが乱れることがある。
[0004] In particular, when the serial interface is an optical interface, input light is temporarily unstable due to factors such as turning on the power of the optical data link on the transmitting side, inserting and removing an optical cable, and light attenuation due to a transmission line. State and the generated clock may be disturbed.

【0005】従来の同期化回路の一例を図5に示す。図
5の同期化回路40は、クロック信号CLK1の1クロ
ック(以降1Tと略す)幅の入力タイミング信号T−I
Nを、2段同期及び前衛微分回路によって同期化しクロ
ック信号CLK2の1T幅の出力タイミング信号T−O
UTを作成する回路である。CLK1信号はシリアルデ
ータから抽出されたクロックに相当し、CLK2信号は
シリアルデータを受信して動作する回路又は装置内の基
準クロックである。
FIG. 5 shows an example of a conventional synchronization circuit. The synchronization circuit 40 shown in FIG. 5 has an input timing signal TI having a width of one clock (hereinafter abbreviated as 1T) of the clock signal CLK1.
N is synchronized by a two-stage synchronization and advancing differentiation circuit, and a 1T-wide output timing signal TO of the clock signal CLK2 is output.
This is a circuit for creating a UT. The CLK1 signal corresponds to a clock extracted from serial data, and the CLK2 signal is a reference clock in a circuit or device that receives and operates the serial data.

【0006】レジスタ41はセット・リセット型のフリ
ップフロップで構成され、CLK1をクロック信号と
し、入力信号T−INを受けると“1”にセットされ
る。レジスタ42、レジスタ43、レジスタ44はデー
タ型のフリップフロップであり、CLK2をクロック信
号とし、それぞれレジスタ41、レジスタ42、レジス
タ43の出力を受けるようになっている。レジスタ42
とレジスタ43は同期をとるためのレジスタであり、レ
ジスタ44はレジスタ43出力の前衛微分を実行するた
めに設けられたレジスタである。
The register 41 is constituted by a set / reset type flip-flop, uses CLK1 as a clock signal, and is set to "1" when receiving an input signal T-IN. The register 42, the register 43, and the register 44 are data-type flip-flops, and receive the output of the register 41, the register 42, and the register 43 by using CLK2 as a clock signal. Register 42
The register 43 is a register provided for synchronizing, and the register 44 is a register provided for executing the advance differentiation of the output of the register 43.

【0007】ANDゲート45は、入力の論理積を出力
するゲートで、レジスタ43の出力を前衛微分し、T−
OUT信号を作成する。レジスタ43が“1”となる
と、T−OUT信号が1T間だけ出力され、次にレジス
タ43の出力をリセット入力としているレジスタ41が
リセットされて、次のT−IN信号を受け付けられる状
態になる。
The AND gate 45 is a gate for outputting a logical product of the inputs.
Create an OUT signal. When the register 43 becomes "1", the T-OUT signal is output only for 1T, and then the register 41 having the output of the register 43 as a reset input is reset, and becomes ready to receive the next T-IN signal. .

【0008】従って、レジスタ41がリセットされた後
に次のT−INが入力された場合(許容範囲内)は正し
く動作するが、レジスタ41のリセットと同じかそれ以
前のタイミングで次のT−INが入力された場合(許容
範囲外)は次のT−INは正しくレジスタ41にセット
されず、正常に動作しなくなる。
Therefore, when the next T-IN is input after the register 41 is reset (within the allowable range), the circuit operates correctly, but at the same or earlier timing as the reset of the register 41, the next T-IN operates. Is input (outside the permissible range), the next T-IN is not correctly set in the register 41 and does not operate normally.

【0009】図6は、タイミング信号T−INが同期化
の許容範囲内で入力され同期化される場合の動作を説明
するタイミングチャートである。T−INがCLK1
=A1で“1”となると、レジスタ41はCLK1=A
2にて“1”にセットされる。レジスタ42はCLK2
=B3にて“1”にセットされ、次にレジスタ43がC
LK2=B4にて“1”にセットされと、レジスタ43
が“1”でレジスタ44が“0”となるのでANDゲー
ト45の出力T−OUTがCLK2=B4〜B5の1T
間“1”となり、T−INに同期化されたT−OUTが
得られる。次に、レジスタ41がCLK1=A5でリセ
ットされ、CLK1=A6以降に入力されたT−INが
正しく処理できるようになるので、CLK1=A7で入
力されたT−INは正しく処理される。
FIG. 6 is a timing chart for explaining the operation when the timing signal T-IN is input and synchronized within the allowable range of synchronization. T-IN is CLK1
= A1 and becomes “1”, the register 41 stores CLK1 = A
Set to "1" at 2. Register 42 is CLK2
= B3, the register 43 is set to “1”.
When LK2 = B4 is set to “1”, the register 43
Is "1" and the register 44 becomes "0", so that the output T-OUT of the AND gate 45 becomes 1T of CLK2 = B4 to B5.
During this time, it becomes "1", and T-OUT synchronized with T-IN is obtained. Next, the register 41 is reset at CLK1 = A5, and the T-IN input after CLK1 = A6 can be correctly processed, so that the T-IN input at CLK1 = A7 is correctly processed.

【0010】図7は、CLK1が何らかの原因で乱れて
不正となり、周期が短くなって許容範囲を越えた場合の
動作を示したタイミングチャートである。T−INが
CLK1=C1で入力されるとCLK1=A2でレジス
タ41がセットされ以降レジスタ41〜44は図6と同
様に動作し、CLK2=D4でT−OUTを出力する。
FIG. 7 is a timing chart showing an operation in a case where CLK1 is disturbed for some reason and becomes illegal, and the period becomes short and exceeds an allowable range. When T-IN is input at CLK1 = C1, the register 41 is set at CLK1 = A2, and thereafter the registers 41 to 44 operate in the same manner as in FIG. 6, and output T-OUT at CLK2 = D4.

【0011】図7の場合は、クロック周期が速くなるた
め、レジスタ41のリセットはCLK1=C8のタイミ
ングとなるが、次のT−INがC7で発生するとレジ
スタ41はCLK1=C8のタイミングでセットとりセ
ット指示が衝突し結果リセットされる。このため、次の
T−INが入力されたことが、レジスタ41に伝達され
なくなり、T−OUT信号も出力されなくなってしま
う。
In the case of FIG. 7, since the clock cycle becomes shorter, the register 41 is reset at the timing of CLK1 = C8. However, when the next T-IN occurs at C7, the register 41 is set at the timing of CLK1 = C8. The set command conflicts and the result is reset. Therefore, the input of the next T-IN is not transmitted to the register 41, and the T-OUT signal is not output.

【0012】T−IN信号が、例えば、シリアルデータ
が受信されたことを示す信号等である場合は、受信側の
回路や装置にその旨が伝えられなくなるので、それ以降
は正しく受信したデータを制御することができなくな
る。
When the T-IN signal is, for example, a signal indicating that serial data has been received, the fact cannot be transmitted to the receiving side circuit or device. You lose control.

【0013】[0013]

【発明が解決しようとする課題】しかしながら、従来の
技術では、上述した異常が発生しても、上述の不正の発
生を検出する手段がなかったため、不正に気づかずに不
正な状態のまま処理が進められてしまい、後になってデ
ータ化け等の重大な障害の発生に気づくというような問
題があった。
However, in the prior art, even if the above-mentioned abnormality occurs, there is no means for detecting the occurrence of the above-mentioned irregularity, so that the processing can be performed in an illegal state without noticing the irregularity. There has been a problem that the user is aware of the occurrence of a serious failure such as data corruption later.

【0014】本発明の目的は、このような同期化回路に
おいて上述のように正しく同期化できなかったことを検
出するための手段を提供するものであり、これにより障
害の影響の範囲が拡大しないようにすることを可能とす
る。
An object of the present invention is to provide a means for detecting that synchronization has not been correctly performed in such a synchronization circuit as described above, and thereby the range of influence of a fault is not expanded. To make it possible.

【0015】[0015]

【課題を解決するための手段】本発明の第1の同期化回
路は、第1のクロックの1つ分の幅を持つ信号Aを受け
てこれを同期化して第2のクロックの1つ分の幅のパル
ス信号Bにして出力する同期化回路であって、前記第1
のクロックで動作して前記信号Aを受ける第1のレジス
タと、前記第2のクロックで動作し、前記第1のレジス
タの出力を受けて同期化した前記信号Bを作成する作成
回路とを有し、前記第1のレジスタは、セットされると
前記作成回路にて前記信号Bの作成が終了するまでセッ
ト状態を維持しておくように制御され、前記信号Aと前
記第1のレジスタの出力との論理積の結果で同期化の異
常を検出することを特徴とする。
A first synchronizing circuit according to the present invention receives a signal A having a width corresponding to one of the first clocks, synchronizes the signal A, and synchronizes the signal A with a width of one of the second clocks. A synchronization signal which is output as a pulse signal B having a width of
A first register that operates on the second clock and receives the signal A; and a generating circuit that operates on the second clock and generates the signal B synchronized with the output of the first register. When the first register is set, it is controlled so as to maintain the set state until the creation of the signal B is completed by the creation circuit, and the signal A and the output of the first register are controlled. An abnormality in synchronization is detected based on a result of a logical product of the logical product and

【0016】本発明の第2の同期化回路は、第1のクロ
ックの1つ分の幅を持つ信号Aを受けてこれを同期化し
て第2のクロックの1つ分の幅のパルス信号Bにして出
力する同期化回路であって、前記第1のクロックで動作
して前記信号Aを受ける第1のレジスタと、前記第2の
クロックで動作して前記第1のレジスタの出力を受ける
第2のレジスタと、前記第2のクロックで動作して前記
第2のレジスタの出力を受ける第3のレジスタと、前記
第2のクロックで動作して前記第3のレジスタの出力を
受ける第4のレジスタと、前記第3のレジスタの出力と
前記第4のレジスタの出力の反転値との論理積により前
記信号Bを作成する回路とを有し、前記第1のレジスタ
は前記第3のレジスタの出力によりリセットされるよう
に制御され、前記第1のレジスタの出力と前記信号Aと
の論理積により同期化の異常を検出することを特徴とす
る。
The second synchronizing circuit of the present invention receives a signal A having a width of one of the first clocks, synchronizes the signal A, and synchronizes the signal A with a pulse signal B of one width of the second clock. A first register that operates at the first clock and receives the signal A, and a second register that operates at the second clock and receives the output of the first register. A second register, a third register operating at the second clock and receiving the output of the second register, and a fourth register operating at the second clock and receiving the output of the third register. A register, and a circuit for generating the signal B by a logical product of an output of the third register and an inverted value of an output of the fourth register, wherein the first register has a function of the third register. Controlled to be reset by the output, And detecting a synchronization abnormality by the logic product of the outputs of the first register and the signal A.

【0017】本発明の第1の半導体集積回路は、第1の
クロックの1つ分の幅を持つ信号Aを受けてこれを同期
化して第2のクロックの1つ分の幅のパルス信号Bにし
て出力する同期化回路を有し、前記同期化回路は、前記
第1のクロックで動作して前記信号Aを受ける第1のレ
ジスタと、前記第2のクロックで動作して前記第1のレ
ジスタの出力を受ける第2のレジスタと、前記第2のク
ロックで動作して前記第2のレジスタの出力を受ける第
3のレジスタと、前記第2のクロックで動作して前記第
3のレジスタの出力を受ける第4のレジスタと、前記第
3のレジスタの出力と前記第4のレジスタの出力の反転
値との論理積により前記信号Bを作成する回路と、前記
第3のレジスタの出力によりリセットされるように制御
される前記第1のレジスタの出力と前記信号Aとの論理
積により同期化の異常を検出する回路とを有する。
The first semiconductor integrated circuit of the present invention receives a signal A having a width of one of the first clocks, synchronizes the received signal A with a pulse signal B having a width of one of the second clocks. A synchronization circuit that operates with the first clock and receives the signal A; and a synchronization circuit that operates with the second clock and outputs the first signal. A second register receiving the output of the register, a third register operating at the second clock and receiving the output of the second register, and a third register operating at the second clock and operating at the second clock. A fourth register for receiving an output, a circuit for generating the signal B by a logical product of an output of the third register and an inverted value of an output of the fourth register, and resetting by an output of the third register The first is controlled to be And a circuit for detecting a synchronization anomaly by the logical product of the output of register with the signal A.

【0018】本発明の第2の半導体集積回路は、シリア
ルデータを受信してこれをパラレルデータに変換して内
部で処理する回路を含んだ半導体集積回路であって、シ
リアルデータをパラレルデータに変換するシリアルパラ
レル変換回路と、前記シリアルパラレル変換回路から出
力される第1のクロックで動作し、変換された前記パラ
レルデータをデータバッファに書き込む書き込み制御回
路と、前記データバッファに前記パラレルデータを書き
込んだことを通知する信号Aを前記書き込み制御回路か
ら受けて前記情報処理装置で使用する第2のクロックに
同期した信号Bにする同期化回路と、前記第2のクロッ
クで動作し、前記信号Bを受けて前記データバッファか
ら前記パラレルデータを読み出す制御をする読み出し制
御回路とを有し、前記同期化回路は、前記第1のクロッ
クで動作して前記信号Aを受ける第1のレジスタと、前
記第2のクロックで動作して前記第1のレジスタの出力
を受ける第2のレジスタと、前記第2のクロックで動作
して前記第2のレジスタの出力を受ける第3のレジスタ
と、前記第2のクロックで動作して前記第3のレジスタ
の出力を受ける第4のレジスタと、前記第3のレジスタ
の出力と前記第4のレジスタの出力の反転値との論理積
により前記信号Bを作成する回路と、前記第3のレジス
タの出力によりリセットされるように制御される前記第
1のレジスタの出力と前記信号Aとの論理積により同期
化の異常を検出する回路とを有する。
A second semiconductor integrated circuit according to the present invention is a semiconductor integrated circuit including a circuit which receives serial data, converts the serial data into parallel data, and internally processes the serial data, and converts the serial data into parallel data. A serial-to-parallel conversion circuit, a write control circuit that operates with the first clock output from the serial-to-parallel conversion circuit, and writes the converted parallel data to a data buffer, and writes the parallel data to the data buffer. A synchronizing circuit that receives a signal A notifying the fact from the write control circuit and converts the signal B into a signal B synchronized with a second clock used in the information processing device, and operates with the second clock to generate the signal B. A read control circuit for receiving and controlling the reading of the parallel data from the data buffer, A first register operating at the first clock and receiving the signal A; a second register operating at the second clock and receiving an output of the first register; A third register operating at the second clock and receiving the output of the second register, a fourth register operating at the second clock and receiving the output of the third register, A circuit for generating the signal B by a logical product of an output of the third register and an inverted value of an output of the fourth register; and a first circuit controlled to be reset by an output of the third register. A circuit for detecting an abnormality in synchronization based on a logical product of the output of the register and the signal A;

【0019】本発明の第1の情報処理装置は、第1のク
ロックの1つ分の幅を持つ信号Aを受けてこれを同期化
して第2のクロックの1つ分の幅のパルス信号Bにして
出力する同期化回路を有し、前記同期化回路は、前記第
1のクロックで動作して前記信号Aを受ける第1のレジ
スタと、前記第2のクロックで動作して前記第1のレジ
スタの出力を受ける第2のレジスタと、前記第2のクロ
ックで動作して前記第2のレジスタの出力を受ける第3
のレジスタと、前記第2のクロックで動作して前記第3
のレジスタの出力を受ける第4のレジスタと、前記第3
のレジスタの出力と前記第4のレジスタの出力の反転値
との論理積により前記信号Bを作成する回路とを有し、
前記第1のレジスタは前記第3のレジスタの出力により
リセットされるように制御され、前記第1のレジスタの
出力と前記信号Aとの論理積により同期化の異常を検出
する回路を有することを特徴とする。
The first information processing apparatus of the present invention receives a signal A having a width of one of the first clocks, synchronizes the signal A, and synchronizes the signal A with a pulse signal B of one width of the second clock. A synchronization circuit that operates with the first clock and receives the signal A; and a synchronization circuit that operates with the second clock and outputs the first signal. A second register for receiving the output of the register; and a third register for receiving the output of the second register, operating on the second clock.
And the third clock operating with the second clock.
A fourth register for receiving the output of the third register;
And a circuit that creates the signal B by the logical product of the output of the register and the inverted value of the output of the fourth register.
The first register is controlled so as to be reset by an output of the third register, and has a circuit for detecting an abnormality in synchronization based on a logical product of the output of the first register and the signal A. Features.

【0020】本発明の第2の情報処理装置は、シリアル
データを受信してこれをパラレルデータに変換して内部
で処理する情報処理装置であって、シリアルデータをパ
ラレルデータに変換するシリアルパラレル変換回路と、
前記シリアルパラレル変換回路から出力される第1のク
ロックで動作し、変換された前記パラレルデータをデー
タバッファに書き込む書き込み制御回路と、前記データ
バッファに前記パラレルデータを書き込んだことを通知
する信号Aを前記書き込み制御回路から受けて前記情報
処理装置で使用する第2のクロックに同期した信号Bに
する同期化回路と、前記第2のクロックで動作し、前記
信号Bを受けて前記データバッファから前記パラレルデ
ータを読み出す制御をする読み出し制御回路とを有し、
前記同期化回路は、前記第1のクロックで動作して前記
信号Aを受ける第1のレジスタと、前記第2のクロック
で動作し、前記第1のレジスタの出力を受けて同期化し
た前記信号Bを作成する回路と、セットされると前記作
成回路にて前記信号Bの作成が終了するまでセット状態
を維持しておくように制御される前記第1のレジスタの
出力と前記信号Aとの論理積をとり同期化の異常が発生
したことを検出する回路とを有する。
A second information processing apparatus according to the present invention is an information processing apparatus which receives serial data, converts the serial data into parallel data, and internally processes the serial data, and converts the serial data into parallel data. Circuit and
A write control circuit that operates on a first clock output from the serial / parallel conversion circuit and writes the converted parallel data to a data buffer, and a signal A that notifies that the parallel data has been written to the data buffer. A synchronization circuit which receives the signal B from the data buffer and operates the second clock to generate a signal B synchronized with a second clock used in the information processing apparatus; A read control circuit that controls reading of parallel data,
The synchronization circuit operates with the first clock and receives the signal A. The first register operates with the second clock and receives the output of the first register and synchronizes the signal. B and a signal between the output of the first register and the signal A, which, when set, are controlled to maintain the set state until the creation of the signal B is completed in the creation circuit. And a circuit for taking a logical product and detecting that a synchronization abnormality has occurred.

【0021】本発明の第3の情報処理装置は、シリアル
データを受信してこれをパラレルデータに変換して内部
で処理する情報処理装置であって、シリアルデータをパ
ラレルデータに変換するシリアルパラレル変換回路と、
前記シリアルパラレル変換回路から出力される第1のク
ロックで動作し、変換された前記パラレルデータをデー
タバッファに書き込む書き込み制御回路と、前記データ
バッファに前記パラレルデータを書き込んだことを通知
する信号Aを前記書き込み制御回路から受けて前記情報
処理装置で使用する第2のクロックに同期した信号Bに
する同期化回路と、前記第2のクロックで動作し、前記
信号Bを受けて前記データバッファから前記パラレルデ
ータを読み出す制御をする読み出し制御回路とを有し、
前記同期化回路は、前記第1のクロックで動作して前記
信号Aを受ける第1のレジスタと、前記第2のクロック
で動作して前記第1のレジスタの出力を受ける第2のレ
ジスタと、前記第2のクロックで動作して前記第2のレ
ジスタの出力を受ける第3のレジスタと、前記第2のク
ロックで動作して前記第3のレジスタの出力を受ける第
4のレジスタと、前記第3のレジスタの出力と前記第4
のレジスタの出力の反転値との論理積により前記信号B
を作成する回路と、前記第3のレジスタの出力によりリ
セットされるように制御される前記第1のレジスタの出
力と前記信号Aとの論理積により同期化の異常を検出す
る回路とを有する。
A third information processing apparatus according to the present invention is an information processing apparatus which receives serial data, converts the serial data into parallel data, and internally processes the data. The serial information conversion apparatus converts serial data into parallel data. Circuit and
A write control circuit that operates on a first clock output from the serial / parallel conversion circuit and writes the converted parallel data to a data buffer, and a signal A that notifies that the parallel data has been written to the data buffer. A synchronization circuit which receives the signal B from the data buffer and operates the second clock to generate a signal B synchronized with a second clock used in the information processing apparatus; A read control circuit that controls reading of parallel data,
A first register operating at the first clock and receiving the signal A; a second register operating at the second clock and receiving an output of the first register; A third register operating at the second clock and receiving the output of the second register, a fourth register operating at the second clock and receiving the output of the third register, The output of the third register and the fourth
The signal B is obtained by ANDing the inverted value of the output of the register
And a circuit for detecting an abnormality in synchronization based on a logical product of the output of the first register and the signal A, which is controlled to be reset by the output of the third register.

【0022】[0022]

【発明の実施の形態】次に、本発明の実施の形態につい
て図面を参照して詳細に説明する。図1は本発明の同期
化回路のブロック図である。図1は、従来の同期化回路
40を示した図5に対して、同期化のエラー検出に関す
る回路としてANDゲート16とレジスタ17を付加し
ている。
Next, embodiments of the present invention will be described in detail with reference to the drawings. FIG. 1 is a block diagram of a synchronization circuit according to the present invention. In FIG. 1, an AND gate 16 and a register 17 are added to FIG. 5 showing a conventional synchronization circuit 40 as a circuit relating to synchronization error detection.

【0023】本発明の同期化回路10は、クロック信号
CLK1の1T幅の入力タイミング信号T−INを、2
段同期及び前衛微分回路によって同期化しクロック信号
CLK2の1T幅の出力タイミング信号T−OUTを作
成する回路である。
The synchronization circuit 10 of the present invention converts the input timing signal T-IN having a 1T width of the clock signal CLK1 to 2
This is a circuit for synchronizing by a stage synchronizing and advancing differentiation circuit and generating an output timing signal T-OUT having a 1T width of the clock signal CLK2.

【0024】レジスタ11はセット・リセット型のフリ
ップフロップで構成され、CLK1をクロック信号と
し、入力信号T−INを受けると“1”にセットされ
る。レジスタ12、レジスタ13、レジスタ14はデー
タ型のフリップフロップであり、CLK2をクロック信
号とし、それぞれレジスタ11、レジスタ12、レジス
タ13の出力を受けるようになっている。レジスタ12
とレジスタ13は同期をとるためのレジスタであり、レ
ジスタ14はレジスタ13出力の前衛微分を実行するた
めに設けられたレジスタである。
The register 11 is constituted by a set / reset type flip-flop, and is set to "1" when CLK1 is used as a clock signal and the input signal T-IN is received. The register 12, the register 13, and the register 14 are data-type flip-flops, and receive the output of the register 11, the register 12, and the register 13 using CLK2 as a clock signal. Register 12
The register 13 is a register for synchronizing, and the register 14 is a register provided for executing the advance differentiation of the output of the register 13.

【0025】ANDゲート15は、論理積をとるゲート
で、レジスタ13の出力を前衛微分し、T−OUT信号
を作成する。レジスタ13が“1”でレジスタ14が
“0”となる1T間だけT−OUT信号を“1”として
出力され、一方で、この間にレジスタ13の出力をリセ
ット入力としているレジスタ11がリセットされて、次
のT−IN信号を受け付けられるようにする。
The AND gate 15 is a gate that takes a logical product and performs an advancing differentiation of the output of the register 13 to generate a T-OUT signal. The T-OUT signal is output as "1" only during 1T when the register 13 is "1" and the register 14 is "0". Meanwhile, the register 11 having the output of the register 13 as a reset input is reset. , The next T-IN signal can be accepted.

【0026】従って、レジスタ11がリセットされた後
に次のT−INが入力された場合(許容範囲内)は正し
く動作するが、レジスタ11のリセットと同じかそれ以
前のタイミングで次のT−INが入力された場合(許容
範囲外)は次のT−INは正しくレジスタ11にセット
されず、正常に動作しなくなる。
Therefore, when the next T-IN is input after the register 11 is reset (within the allowable range), the circuit operates correctly, but at the same or earlier timing as the reset of the register 11, the next T-IN is input. Is input (outside the permissible range), the next T-IN is not correctly set in the register 11 and does not operate normally.

【0027】ANDゲート16はこの状態を検出する論
理積回路であり、レジスタ11が“1”の際に次のT−
INが入力され“1”となると“1”を出力し、レジス
タ17をセットする。レジスタ17はエラー処理におい
てレジスタ17をリセットする指示等で生成されるリセ
ット信号によりリセットされる。レジスタ17の出力は
同期化エラー検出信号としてエラーを処理する手段(図
示しない)へ通知される。
The AND gate 16 is an AND circuit for detecting this state, and when the register 11 is "1", the next T-
When IN is input and becomes “1”, “1” is output and the register 17 is set. The register 17 is reset by a reset signal generated by an instruction to reset the register 17 in error processing. The output of the register 17 is notified to a means (not shown) for processing an error as a synchronization error detection signal.

【0028】次に、本発明の同期化回路の動作について
説明する。図2は、本発明の同期化回路10において正
常に同期化が実行される場合の動作を示したフローチャ
ートである。図2における動作は従来の同期化回路40
の正常動作のフローチャートの図6と同様に動作するの
で詳細な説明は省略する。図2では、T−INとT−
INが誤動作しない間隔を保っているために、正常に
動作する。このため、レジスタ17はセットされず、同
期化エラー検出信号も“0”ままである。
Next, the operation of the synchronization circuit of the present invention will be described. FIG. 2 is a flowchart showing an operation when synchronization is normally executed in the synchronization circuit 10 of the present invention. The operation in FIG.
Since the operation is the same as that of FIG. 6 of the flowchart of the normal operation, detailed description thereof will be omitted. In FIG. 2, T-IN and T-IN
Normal operation is performed because the interval at which IN does not malfunction is maintained. Therefore, the register 17 is not set, and the synchronization error detection signal remains at "0".

【0029】図3は、CLK1が何らかの原因で乱れて
不正となり、周期が早くなって許容範囲を越えて異常と
なった場合の動作を示したタイミングチャートである。
T−INがCLK1=C1で入力されるとCLK1=
C2でレジスタ11がセットされ以降レジスタ11〜1
4は図2と同様に動作し、CLK2=D4でレジスタ1
3がセットされるとCLK2=D4から1T間T−OU
Tが出力され、同時にレジスタ11のリセットを指示
する。
FIG. 3 is a timing chart showing the operation when CLK1 is disturbed for some reason and becomes irregular, and the cycle becomes short and becomes abnormal beyond the allowable range.
When T-IN is input at CLK1 = C1, CLK1 =
After the register 11 is set at C2, the registers 11 to 1
4 operates in the same manner as in FIG.
When 3 is set, T-OU for 1T from CLK2 = D4
T is output, and at the same time, the reset of the register 11 is instructed.

【0030】図3の場合は、クロック周期が異常に短く
なっているため、レジスタ11のリセットタイミングは
CLK1=C8のタイミングとなり、CLK1=C7で
入力された次のT−INのセットタイミングと衝突し
結果レジスタ11はセットされずリセットされてしま
う。この際、T−INとレジスタ11はともに“1”
となっているため、ANDゲート16の出力も“1”と
なり、CLK1=C8のタイミングでレジスタ17がセ
ットされる。
In the case of FIG. 3, since the clock cycle is abnormally short, the reset timing of the register 11 is the timing of CLK1 = C8, which collides with the set timing of the next T-IN input at CLK1 = C7. Then, the result register 11 is reset without being set. At this time, both the T-IN and the register 11 are "1".
Therefore, the output of the AND gate 16 also becomes "1", and the register 17 is set at the timing of CLK1 = C8.

【0031】このため、T−INの入力がレジスタ1
1に伝達されず、T−INに対応するT−OUT信号
は作成されなくなってしまう。上記の衝突タイミングで
セットを優先するようにしても、レジスタ11もレジス
タ13も“1”の状態が1T伸びるだけなので、レジス
タ13の前衛微分で作成されるT−OUTはやはり出力
されずに喪失する。
Therefore, the input of T-IN is set to the register 1
1 and the T-OUT signal corresponding to T-IN is not created. Even if the priority is given to the set at the above collision timing, the state of "1" in both the register 11 and the register 13 is only extended by 1T, so that the T-OUT created by the advancing differentiation of the register 13 is also lost without being output. I do.

【0032】以上のようにして、同期化回路10におい
て、入力信号T−INのタイミングが許容範囲外となっ
た場合、ANDゲート16で検出できるようにした。こ
のように簡単な回路の追加によって異常の発生を検出で
きるので、少ないコストにより効率的に信頼性を向上さ
せることができる。
As described above, in the synchronization circuit 10, when the timing of the input signal T-IN is out of the allowable range, the AND gate 16 can detect it. Since the occurrence of an abnormality can be detected by adding such a simple circuit, the reliability can be efficiently improved at a small cost.

【0033】次に、図1の同期化回路10を組み込んだ
回路の一例について説明する。図4は情報処理装置20
に含まれるデータ受信部分を示すブロック図である。こ
こで、情報処理装置20とは、情報処理装置本体や、通
信インタフェースを制御する装置又はボードや、システ
ム全体と考えるものとする。
Next, an example of a circuit incorporating the synchronization circuit 10 of FIG. 1 will be described. FIG. 4 shows an information processing apparatus 20.
FIG. 3 is a block diagram showing a data receiving portion included in the data. Here, the information processing apparatus 20 is considered to be an information processing apparatus main body, an apparatus or board for controlling a communication interface, or the entire system.

【0034】図4に示した情報処理装置20内のデータ
受信部は、シリアルデータX30を受信してパラレルデ
ータX31に変換し、データバッファ23と同期化回路
10を設けて内部クロック(CLK2)に同期化させて
受信したデータを情報処理装置20内に分配する回路を
含み、読み出しデータX32は内部バスに接続する場合
もある。
The data receiving section in the information processing apparatus 20 shown in FIG. 4 receives the serial data X30, converts it into parallel data X31, and provides the data buffer 23 and the synchronization circuit 10 to generate the internal clock (CLK2). A read data X32 may be connected to the internal bus in some cases, including a circuit for distributing the data received in synchronization within the information processing device 20.

【0035】図4のデータ受信部の構成は、入力のシリ
アルデータX30をパラレルデータX31へ変換するシ
リアルパラレル変換回路21と、シリアルパラレル変換
回路21で変換されたパラレルデータX31を一時的に
保持するデータバッファ23と、データバッファ23の
書き込みを制御する書き込み制御回路22と、データバ
ッファ23の読み出しを制御する読み出し制御回路24
と、同期化回路10とを含む。
The configuration of the data receiving unit shown in FIG. 4 has a serial / parallel conversion circuit 21 for converting input serial data X30 into parallel data X31, and temporarily holds parallel data X31 converted by serial / parallel conversion circuit 21. A data buffer 23, a write control circuit 22 for controlling writing in the data buffer 23, and a read control circuit 24 for controlling reading in the data buffer 23
And a synchronization circuit 10.

【0036】シリアルデータX30は、通信路(図示し
ない)から受信した信号であり、光インタフェースから
受信した場合は光信号を電気信号に変換した後の信号で
ある。シリアルパラレル変換回路21は、受信したシリ
アルデータX30をパラレルデータX31に変換して出
力する。この際に、シリアルデータX30からこれに同
期したクロック信号(CLK1)を作成し出力する。
The serial data X30 is a signal received from a communication path (not shown), and is a signal obtained by converting an optical signal into an electric signal when received from an optical interface. The serial / parallel conversion circuit 21 converts the received serial data X30 into parallel data X31 and outputs it. At this time, a clock signal (CLK1) synchronized with the serial data X30 is generated and output.

【0037】CLK1に対して情報処理装置20は内部
の動作で使用するクロックCLK2があり、書き込み制
御回路22と、データバッファ23の書き込みについて
は、CLK1で動作し、読み出し制御回路24とデータ
バッファ23の読み出しについてはCLK2で動作し、
同期化回路10はCLK1とCLK2を用いて入力信号
T−INを同期化する。
The information processing apparatus 20 has a clock CLK2 used for the internal operation of CLK1, and the write control circuit 22 and the data buffer 23 operate at CLK1 for writing, and the read control circuit 24 and the data buffer 23 Operates at CLK2, and
The synchronization circuit 10 synchronizes the input signal T-IN using CLK1 and CLK2.

【0038】シリアルパラレル変換回路21の出力のパ
ラレルデータX31は書き込み制御回路22の制御によ
ってデータバッファ23へ書き込まれる。書き込み制御
回路22は書き込んだことを通知する書き込み通知信号
X36(T−INに相当)を同期化回路10で同期化し
て書き込み通知信号X37(T−OUT)で読み出し制
御回路24へ出力する。
The parallel data X 31 output from the serial / parallel conversion circuit 21 is written to the data buffer 23 under the control of the write control circuit 22. The write control circuit 22 synchronizes the write notification signal X36 (corresponding to T-IN) notifying that the writing has been performed by the synchronization circuit 10, and outputs the write notification signal X37 (T-OUT) to the read control circuit 24 as the write notification signal X37 (T-OUT).

【0039】データバッファ23の出力の読み出しデー
タX32は情報処理装置20の内部へ分配されるが、読
み出しデータX32を受け取る回路がCLK2で動作す
るので、読み出しデータX32もCLK2に合わせて出
力されなければならない。このため、読み出し制御回路
24はCLK2で動作する必要があり、CLK1で動作
する書き込み制御回路22から受ける信号に関しては同
期化回路10で同期化して受けるようにする。この他に
も、CLK2と異なるクロックで動作するタイミング信
号を同期化する際にも同期化回路10を使用することが
できる。
The read data X32 output from the data buffer 23 is distributed to the inside of the information processing apparatus 20, but since the circuit for receiving the read data X32 operates at CLK2, the read data X32 must also be output in accordance with CLK2. No. Therefore, the read control circuit 24 needs to operate at CLK2, and the signal received from the write control circuit 22 operating at CLK1 is received by the synchronization circuit 10 in a synchronized manner. In addition, the synchronization circuit 10 can be used to synchronize a timing signal that operates with a clock different from CLK2.

【0040】読み出し制御回路24は、図示しないが例
えば、データバッファ23の書き込みアドレスを保持す
る書き込みポインタと読み出しアドレスを保持する読み
出しポインタを持っており、同期化回路10から書き込
み通知信号X37(T−OUT)を受けると、書き込み
ポインタを1つ進め、データバッファ23の出力データ
の受け取り先からの読み出し指示があるとデータバッフ
ァ23からデータを出力し読み出しポインタを1つ進め
るといった制御を行う。
Although not shown, the read control circuit 24 has, for example, a write pointer for holding the write address of the data buffer 23 and a read pointer for holding the read address, and the write notification signal X37 (T- OUT), the write pointer is advanced by one, and when there is a read instruction from the receiving destination of the output data of the data buffer 23, the data is output from the data buffer 23 and the read pointer is advanced by one.

【0041】信号X34は、書き込み許可信号や書き込
みアドレス信号等を含んでおり、信号X35は読み出し
アドレスや出力許可信号を含んでいる。ただし、データ
バッファ23の出力がバスに接続されていないような場
合は、常時出力状態とすることで出力許可信号は不要と
なる。
The signal X34 includes a write enable signal and a write address signal, and the signal X35 includes a read address and an output enable signal. However, in the case where the output of the data buffer 23 is not connected to the bus, the output permission signal is not required by always setting the output state.

【0042】同期化回路10は、図1に示す回路であ
り、T−IN(書き込み通知信号X36)、CLK1、
CLK2を入力としてT−OUT(書き込み通知信号X
37)と同期化エラー検出信号X38を出力する。受信
したシリアルデータX30に乱れが生じて、シリアルパ
ラレル変換回路21でシリアルデータX30から抽出し
たクロック信号CLK1が図3のように乱れると、同期
化回路10は同期化エラー検出信号X38を“1”とし
てエラーの発生を通知する。
The synchronization circuit 10 is the circuit shown in FIG. 1 and includes T-IN (write notification signal X36), CLK1,
CLK2 as input and T-OUT (write notification signal X
37) and outputs a synchronization error detection signal X38. When the received serial data X30 is disturbed and the clock signal CLK1 extracted from the serial data X30 by the serial / parallel conversion circuit 21 is disturbed as shown in FIG. 3, the synchronization circuit 10 sets the synchronization error detection signal X38 to "1". Notify that an error has occurred.

【0043】以上のように、受信されたシリアルデータ
X30は、シリアルパラレル変換回路21でパラレルデ
ータX31に変換されて出力され、書き込み制御回路2
2の制御によってパラレルデータX31がデータバッフ
ァ23に書き込まれる。書き込み制御回路22はデータ
バッファ23へのパラレルデータX31の書き込み実行
を通知する書き込み通知信号X36を同期化回路10に
送り、同期化回路10はCLK2に同期した書き込み通
知信号X37を作成して読み出し制御回路24へ送る。
As described above, the received serial data X30 is converted into parallel data X31 by the serial / parallel conversion circuit 21 and output.
By the control of 2, the parallel data X31 is written to the data buffer 23. The write control circuit 22 sends a write notification signal X36 for notifying the execution of writing of the parallel data X31 to the data buffer 23 to the synchronization circuit 10, and the synchronization circuit 10 generates a write notification signal X37 synchronized with CLK2 to perform read control. Send to circuit 24.

【0044】読み出し制御回路24は書き込み通知信号
X37によってデータバッファ23へのデータの書き込
みがあったことを知り、書き込みポインタを+1進め、
データバッファ23のデータを受ける回路の指示や状態
に従って読み出しデータX32を送り、読み出しポイン
タを+1進める。
The read control circuit 24 knows from the write notification signal X37 that data has been written to the data buffer 23, and advances the write pointer by +1.
The read data X32 is sent according to the instruction or state of the circuit that receives the data in the data buffer 23, and the read pointer is advanced by +1.

【0045】以上の動作を繰り返すことにより、次々と
受信したシリアルデータをパラレルデータに変換して情
報処理装置20に取り込んでいくが、図3のようなクロ
ック周期が乱れる異常が発生すると、書き込み制御回路
22から読み出し制御回路24へ書き込みの通知信号が
伝わらなくなるため、実際にはデータバッファ23へデ
ータが書き込まれていても、データバッファ23にデー
タが届いていないように見える。このため、データバッ
ファ23へのデータ書き込み回数と読み出し制御回路2
4の認識する書き込み回数とがずれるため、以降正しく
データを処理することができなくなり、このまま処理を
続けるとデータを取り違えて不正な処理をしてしまい、
データ化けのような重大な障害を引き起こす可能性もあ
る。
By repeating the above operation, the serial data received one after another is converted into parallel data and taken into the information processing device 20, but when an abnormality such as the clock cycle as shown in FIG. Since the write notification signal is not transmitted from the circuit 22 to the read control circuit 24, it appears that the data does not reach the data buffer 23 even if the data is actually written to the data buffer 23. Therefore, the number of times of writing data to the data buffer 23 and the read control circuit 2
4, the data cannot be correctly processed thereafter, and if the processing is continued as it is, the data is mistaken and the illegal processing is performed.
It can also cause serious problems such as garbled data.

【0046】情報処理装置20は、同期化エラー検出信
号X38によりエラー発生の通知を受けると、予め決め
られている、エラー処理手段に対してこれを通知し、エ
ラー処理手段によって、回復処理等の救済が可能とな
る。エラー処理手段による処理によって、シリアルデー
タX30の受信が正常にできるようになる前に、同期化
回路10内のレジスタ17はリセットされ、また、読み
出し制御回路24等も初期状態にリセットされる。
When the information processing apparatus 20 is notified of the occurrence of the error by the synchronization error detection signal X38, the information processing apparatus 20 notifies the predetermined error processing means of the notification, and the error processing means performs recovery processing and the like. Relief is possible. Before the serial data X30 can be normally received by the error processing means, the register 17 in the synchronization circuit 10 is reset, and the read control circuit 24 and the like are reset to the initial state.

【0047】以上のように、情報処理装置20のデータ
受信部に同期化エラー検出回路を設けた同期化回路10
を組み込むことによって、同期異常の発生を簡単に検出
可能となり、これをエラー処理手段に通知して処理する
ことにより、データ化け等の重大な影響を及ぼす障害を
事前に回避することができるので、情報処理装置20の
信頼性を高めることができる。
As described above, the synchronization circuit 10 provided with the synchronization error detection circuit in the data receiving section of the information processing apparatus 20
By incorporating, it is possible to easily detect the occurrence of a synchronization error, and by notifying this to the error processing means and processing it, it is possible to avoid in advance a serious adverse effect such as garbled data. The reliability of the information processing device 20 can be improved.

【0048】次に半導体集積回路に同期化回路10を組
み込んだ場合について説明する。この場合の構成は、図
4において、情報処理装置20を半導体集積回路と読み
替えればよく、また動作も同じとなるので構成、動作に
ついての説明は省略する。同期化回路10を組み込んだ
半導体集積回路としては、シリアル通信特に光インタフ
ェースの通信路の受信機能を組み込んだ1チップの半導
体集積回路(LSIやIC)が考えられ、この半導体集
積回路内にエラー処理手段が組み込まれていない場合
は、同期化エラー検出信号は単独又は他の信号に含まれ
るように半導体集積回路チップ外へ出力されるように実
現されるべきである。
Next, a case where the synchronization circuit 10 is incorporated in a semiconductor integrated circuit will be described. In this case, in FIG. 4, the information processing device 20 may be replaced with a semiconductor integrated circuit in FIG. 4, and the operation is the same. Therefore, the description of the configuration and operation is omitted. As a semiconductor integrated circuit incorporating the synchronization circuit 10, a one-chip semiconductor integrated circuit (LSI or IC) incorporating a communication function, particularly a receiving function of a communication path of an optical interface, can be considered. In the case where the means is not incorporated, the synchronization error detection signal should be realized so as to be output outside the semiconductor integrated circuit chip alone or included in another signal.

【0049】また、図4に示したデータ受信回路以外で
も、同期化が必要な場合に同期化回路10を組み込ん
で、同期化エラーを簡単に検出可能となるので、図4の
構成に範囲を限定するものではなく広く適用ができるこ
とは明らかである。
Further, in addition to the data receiving circuit shown in FIG. 4, when synchronization is required, a synchronization circuit 10 can be incorporated so that a synchronization error can be easily detected. Obviously, it can be widely applied without limitation.

【0050】[0050]

【発明の効果】上述したように本発明の同期化回路によ
れば、簡単なチェック回路を付加することにより、同期
化の異常を簡単に検出することができるという効果があ
り、さらに、この同期化回路を情報処理装置又はシステ
ムに組み込むことにより装置又はシステムの信頼性を向
上できるという効果がある。
As described above, according to the synchronization circuit of the present invention, the addition of a simple check circuit has the effect that abnormality in synchronization can be easily detected. There is an effect that the reliability of the device or system can be improved by incorporating the conversion circuit into the information processing device or system.

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

【図1】本発明の同期化回路の図である。FIG. 1 is a diagram of a synchronization circuit of the present invention.

【図2】本発明の同期化回路の正常時の動作を示したタ
イミングチャートである。
FIG. 2 is a timing chart showing the normal operation of the synchronization circuit of the present invention.

【図3】本発明の同期化回路の異常時の動作を示したタ
イミングチャートである。
FIG. 3 is a timing chart illustrating an operation of the synchronization circuit according to the present invention when an abnormality occurs.

【図4】本発明の同期化回路を組み込んだ情報処理装置
(又は半導体集積回路)のデータ受信部のブロック図で
ある。
FIG. 4 is a block diagram of a data receiving unit of an information processing device (or a semiconductor integrated circuit) incorporating the synchronization circuit of the present invention.

【図5】従来の同期化回路の図である。FIG. 5 is a diagram of a conventional synchronization circuit.

【図6】従来の同期化回路の正常時の動作を示したタイ
ミングチャートである。
FIG. 6 is a timing chart showing the normal operation of the conventional synchronization circuit.

【図7】従来の同期化回路の異常時の動作を示したタイ
ミングチャートである。
FIG. 7 is a timing chart showing an operation of the conventional synchronization circuit when an abnormality occurs.

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

10 同期化回路 11 レジスタ 12 レジスタ 13 レジスタ 14 レジスタ 15 ANDゲート 16 ANDゲート 17 レジスタ 20 情報処理装置 21 シリアルパラレル変換回路 22 書き込み制御回路 23 データバッファ 24 読み出し制御回路 40 同期化回路 41 レジスタ 42 レジスタ 43 レジスタ 44 レジスタ 45 ANDゲート Reference Signs List 10 synchronization circuit 11 register 12 register 13 register 14 register 15 AND gate 16 AND gate 17 register 20 information processing device 21 serial / parallel conversion circuit 22 write control circuit 23 data buffer 24 read control circuit 40 synchronization circuit 41 register 42 register 43 register 44 register 45 AND gate

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 第1のクロックの1つ分の幅を持つ信号
Aを受けてこれを同期化して第2のクロックの1つ分の
幅のパルス信号Bにして出力する同期化回路において、
前記第1のクロックで動作して前記信号Aを受ける第1
のレジスタと、前記第2のクロックで動作し、前記第1
のレジスタの出力を受けて同期化した前記信号Bを作成
する作成回路とを備え、前記第1のレジスタは、セット
されると前記作成回路にて前記信号Bの作成が終了する
までセット状態を維持しておくように制御され、前記信
号Aと前記第1のレジスタの出力との論理積の結果で同
期化の異常を検出することを特徴とする同期化回路。
1. A synchronization circuit for receiving a signal A having a width of one of a first clock, synchronizing the signal A, and outputting a pulse signal B having a width of one of a second clock,
A first receiving the signal A by operating with the first clock;
Operating with the second clock and the first clock.
And a creating circuit for creating the signal B synchronized by receiving the output of the register of the first register. When the first register is set, the first register keeps the set state until the creation of the signal B is completed by the creating circuit. A synchronization circuit which is controlled so as to be maintained and detects an abnormality in synchronization based on a result of a logical product of the signal A and an output of the first register.
【請求項2】 第1のクロックの1つ分の幅を持つ信号
Aを受けてこれを同期化して第2のクロックの1つ分の
幅のパルス信号Bにして出力する同期化回路において、
前記第1のクロックで動作して前記信号Aを受ける第1
のレジスタと、前記第2のクロックで動作して前記第1
のレジスタの出力を受ける第2のレジスタと、前記第2
のクロックで動作して前記第2のレジスタの出力を受け
る第3のレジスタと、前記第2のクロックで動作して前
記第3のレジスタの出力を受ける第4のレジスタと、前
記第3のレジスタの出力と前記第4のレジスタの出力の
反転値との論理積により前記信号Bを作成する回路とを
備え、前記第1のレジスタは前記第3のレジスタの出力
によりリセットされるように制御され、前記第1のレジ
スタの出力と前記信号Aとの論理積により同期化の異常
を検出することを特徴とする同期化回路。
2. A synchronizing circuit for receiving a signal A having a width of one of a first clock, synchronizing the same, and outputting a pulse signal B having a width of one of a second clock,
A first receiving the signal A by operating with the first clock;
And the first clock operating with the second clock.
A second register receiving the output of the second register;
A third register operating at the clock of the third register and receiving the output of the second register, a fourth register operating at the second clock and receiving the output of the third register, and the third register And a circuit that creates the signal B by ANDing the output of the fourth register and the inverted value of the output of the fourth register. The first register is controlled so as to be reset by the output of the third register. A synchronization circuit for detecting an abnormality in synchronization based on a logical product of an output of the first register and the signal A.
【請求項3】 第1のクロックの1つ分の幅を持つ信号
Aを受けてこれを同期化して第2のクロックの1つ分の
幅のパルス信号Bにして出力する同期化回路を組み込ん
で同期化を実行する半導体集積回路において、前記同期
化回路は、前記第1のクロックで動作して前記信号Aを
受ける第1のレジスタと、前記第2のクロックで動作し
て前記第1のレジスタの出力を受ける第2のレジスタ
と、前記第2のクロックで動作して前記第2のレジスタ
の出力を受ける第3のレジスタと、前記第2のクロック
で動作して前記第3のレジスタの出力を受ける第4のレ
ジスタと、前記第3のレジスタの出力と前記第4のレジ
スタの出力の反転値との論理積により前記信号Bを作成
する回路と、前記第3のレジスタの出力によりリセット
されるように制御される前記第1のレジスタの出力と前
記信号Aとの論理積により同期化の異常を検出する回路
とを有することを特徴とする半導体集積回路。
3. A synchronizing circuit for receiving a signal A having a width of one first clock, synchronizing the signal A, and outputting a pulse signal B having a width of one second clock is incorporated. Wherein the synchronization circuit operates with the first clock and receives the signal A; and the first register operates with the second clock and operates at the first clock. A second register receiving the output of the register, a third register operating at the second clock and receiving the output of the second register, and a third register operating at the second clock and operating at the second clock. A fourth register for receiving an output, a circuit for generating the signal B by a logical product of an output of the third register and an inverted value of an output of the fourth register, and resetting by an output of the third register Is controlled to be A circuit for detecting an abnormality in synchronization based on a logical product of an output of the first register and the signal A.
【請求項4】 シリアルデータを受信してこれをパラレ
ルデータに変換して内部で処理する回路を含んだ半導体
集積回路において、シリアルデータをパラレルデータに
変換するシリアルパラレル変換回路と、前記シリアルパ
ラレル変換回路から出力される第1のクロックで動作
し、変換された前記パラレルデータをデータバッファに
書き込む書き込み制御回路と、前記データバッファに前
記パラレルデータを書き込んだことを通知する信号Aを
前記書き込み制御回路から受けて前記情報処理装置で使
用する第2のクロックに同期した信号Bにする同期化回
路と、前記第2のクロックで動作し、前記信号Bを受け
て前記データバッファから前記パラレルデータを読み出
す制御をする読み出し制御回路とを備え、前記同期化回
路は、前記第1のクロックで動作して前記信号Aを受け
る第1のレジスタと、前記第2のクロックで動作して前
記第1のレジスタの出力を受ける第2のレジスタと、前
記第2のクロックで動作して前記第2のレジスタの出力
を受ける第3のレジスタと、前記第2のクロックで動作
して前記第3のレジスタの出力を受ける第4のレジスタ
と、前記第3のレジスタの出力と前記第4のレジスタの
出力の反転値との論理積により前記信号Bを作成する回
路と、前記第3のレジスタの出力によりリセットされる
ように制御される前記第1のレジスタの出力と前記信号
Aとの論理積により同期化の異常を検出する回路とを有
することを特徴とする半導体集積回路。
4. A semiconductor integrated circuit including a circuit for receiving serial data, converting the serial data into parallel data, and internally processing the serial data. A write control circuit that operates on a first clock output from the circuit and writes the converted parallel data to a data buffer; and a write control circuit that sends a signal A notifying that the parallel data has been written to the data buffer. A synchronization circuit that receives the signal B from the data buffer and reads the parallel data from the data buffer in response to the signal B. A read control circuit for controlling the first clock. A first register that operates on the clock and receives the signal A, a second register that operates on the second clock and receives the output of the first register, and a second register that operates on the second clock. A third register receiving the output of the second register, a fourth register operating at the second clock and receiving the output of the third register, an output of the third register, A circuit for generating the signal B by a logical product of an inverted value of the output of the register and a signal between the output of the first register and the signal A which are controlled to be reset by the output of the third register A circuit for detecting an abnormality in synchronization based on a logical product.
【請求項5】 第1のクロックの1つ分の幅を持つ信号
Aを受けてこれを同期化して第2のクロックの1つ分の
幅のパルス信号Bにして出力する同期化回路を組み込ん
で同期化を実行する情報処理装置において、前記同期化
回路は、前記第1のクロックで動作して前記信号Aを受
ける第1のレジスタと、前記第2のクロックで動作して
前記第1のレジスタの出力を受ける第2のレジスタと、
前記第2のクロックで動作して前記第2のレジスタの出
力を受ける第3のレジスタと、前記第2のクロックで動
作して前記第3のレジスタの出力を受ける第4のレジス
タと、前記第3のレジスタの出力と前記第4のレジスタ
の出力の反転値との論理積により前記信号Bを作成する
回路と、前記第3のレジスタの出力によりリセットされ
るように制御される前記第1のレジスタの出力と前記信
号Aとの論理積により同期化の異常を検出する回路とを
有することを特徴とする情報処理装置。
5. A synchronizing circuit for receiving a signal A having a width of one of the first clock, synchronizing the signal A, and outputting a pulse signal B having a width of one of the second clock is incorporated. In the information processing apparatus, the synchronization circuit operates with the first clock and receives the signal A, and operates with the second clock to generate the first register. A second register for receiving the output of the register;
A third register operating at the second clock and receiving the output of the second register, a fourth register operating at the second clock and receiving the output of the third register, A circuit for generating the signal B by a logical product of an output of the third register and an inverted value of an output of the fourth register; and a first circuit controlled to be reset by an output of the third register. An information processing apparatus, comprising: a circuit that detects an abnormality in synchronization based on a logical product of an output of a register and the signal A.
【請求項6】 シリアルデータを受信してこれをパラレ
ルデータに変換して内部で処理する情報処理装置におい
て、シリアルデータをパラレルデータに変換するシリア
ルパラレル変換回路と、前記シリアルパラレル変換回路
から出力される第1のクロックで動作し、変換された前
記パラレルデータをデータバッファに書き込む書き込み
制御回路と、前記データバッファに前記パラレルデータ
を書き込んだことを通知する信号Aを前記書き込み制御
回路から受けて前記情報処理装置で使用する第2のクロ
ックに同期した信号Bにする同期化回路と、前記第2の
クロックで動作し、前記信号Bを受けて前記データバッ
ファから前記パラレルデータを読み出す制御をする読み
出し制御回路とを備え、前記同期化回路は、前記第1の
クロックで動作して前記信号Aを受ける第1のレジスタ
と、前記第2のクロックで動作し、前記第1のレジスタ
の出力を受けて同期化した前記信号Bを作成する回路
と、前記第1のレジスタはセットされると前記作成回路
にて前記信号Bの作成が終了するまでセット状態を維持
しておくように制御され、前記信号Aと前記第1のレジ
スタの出力との論理積をとり同期化の異常が発生したこ
とを検出する回路とを有することを特徴とする情報処理
装置。
6. An information processing apparatus for receiving serial data, converting the serial data into parallel data, and internally processing the serial data. A serial-parallel conversion circuit for converting serial data into parallel data, and an output from the serial-parallel conversion circuit. A write control circuit that operates at a first clock and writes the converted parallel data to a data buffer; and receives a signal A notifying that the parallel data has been written to the data buffer from the write control circuit. A synchronizing circuit for converting a signal B synchronized with a second clock used in the information processing apparatus, and a read circuit that operates on the second clock and receives the signal B and controls to read the parallel data from the data buffer A control circuit, wherein the synchronization circuit operates with the first clock. A first register that receives the signal A, a circuit that operates on the second clock and generates the synchronized signal B by receiving an output of the first register, and the first register is set. Then, the generation circuit is controlled so as to maintain the set state until the generation of the signal B is completed, and the logical product of the signal A and the output of the first register is obtained, and synchronization abnormality is detected. And a circuit for detecting the occurrence.
【請求項7】 シリアルデータを受信してこれをパラレ
ルデータに変換して内部で処理する情報処理装置におい
て、シリアルデータをパラレルデータに変換するシリア
ルパラレル変換回路と、前記シリアルパラレル変換回路
から出力される第1のクロックで動作し、変換された前
記パラレルデータをデータバッファに書き込む書き込み
制御回路と、前記データバッファに前記パラレルデータ
を書き込んだことを通知する信号Aを前記書き込み制御
回路から受けて前記情報処理装置で使用する第2のクロ
ックに同期した信号Bにする同期化回路と、前記第2の
クロックで動作し、前記信号Bを受けて前記データバッ
ファから前記パラレルデータを読み出す制御をする読み
出し制御回路とを備え、前記同期化回路は、前記第1の
クロックで動作して前記信号Aを受ける第1のレジスタ
と、前記第2のクロックで動作して前記第1のレジスタ
の出力を受ける第2のレジスタと、前記第2のクロック
で動作して前記第2のレジスタの出力を受ける第3のレ
ジスタと、前記第2のクロックで動作して前記第3のレ
ジスタの出力を受ける第4のレジスタと、前記第3のレ
ジスタの出力と前記第4のレジスタの出力の反転値との
論理積により前記信号Bを作成する回路と、前記第3の
レジスタの出力によりリセットされるように制御される
前記第1のレジスタの出力と前記信号Aとの論理積によ
り同期化の異常を検出する回路とを有することを特徴と
する情報処理装置。
7. An information processing apparatus for receiving serial data, converting the serial data into parallel data, and internally processing the serial data. A serial-parallel conversion circuit for converting serial data into parallel data, and an output from the serial-parallel conversion circuit. A write control circuit that operates at a first clock and writes the converted parallel data to a data buffer; and receives a signal A notifying that the parallel data has been written to the data buffer from the write control circuit. A synchronizing circuit for converting a signal B synchronized with a second clock used in the information processing apparatus, and a read circuit that operates on the second clock and receives the signal B and controls to read the parallel data from the data buffer A control circuit, wherein the synchronization circuit operates with the first clock. A first register receiving the signal A, a second register operating at the second clock and receiving the output of the first register, and a second register operating at the second clock and operating at the second clock. A third register receiving an output, a fourth register operating at the second clock and receiving the output of the third register, an output of the third register and an inversion of an output of the fourth register. A circuit for generating the signal B by a logical product of a value and a signal A, and a logical product of the signal A and the output of the first register controlled to be reset by the output of the third register. An information processing apparatus comprising: a circuit for detecting an abnormality.
JP2000255656A 2000-08-25 2000-08-25 Synchronization circuit having synchronization abnormality detection function, semiconductor integrated circuit, and information processing device Expired - Lifetime JP3528770B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000255656A JP3528770B2 (en) 2000-08-25 2000-08-25 Synchronization circuit having synchronization abnormality detection function, semiconductor integrated circuit, and information processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000255656A JP3528770B2 (en) 2000-08-25 2000-08-25 Synchronization circuit having synchronization abnormality detection function, semiconductor integrated circuit, and information processing device

Publications (2)

Publication Number Publication Date
JP2002077118A true JP2002077118A (en) 2002-03-15
JP3528770B2 JP3528770B2 (en) 2004-05-24

Family

ID=18744398

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000255656A Expired - Lifetime JP3528770B2 (en) 2000-08-25 2000-08-25 Synchronization circuit having synchronization abnormality detection function, semiconductor integrated circuit, and information processing device

Country Status (1)

Country Link
JP (1) JP3528770B2 (en)

Also Published As

Publication number Publication date
JP3528770B2 (en) 2004-05-24

Similar Documents

Publication Publication Date Title
JP2002323995A (en) Trace circuit
US7193429B2 (en) Serial data communication system having plurality of data transmission paths
CN111522757A (en) I2C bus-based interrupt reading and clearing control method
US9218030B2 (en) Programming interface and method
JP3528770B2 (en) Synchronization circuit having synchronization abnormality detection function, semiconductor integrated circuit, and information processing device
WO2022147955A1 (en) Timing controller, clock reset method and display panel
JPH1185304A (en) Clock input control circuit
US6041418A (en) Race free and technology independent flag generating circuitry associated with two asynchronous clocks
JP4759494B2 (en) Serial data communication system and serial data communication device
US20230325336A1 (en) Method for transferring data between a first digital domain and a second digital domain, and corresponding system on a chip
JP2003141062A (en) Iic bus control system
KR100299316B1 (en) Cell Boundary Recovery Method In ATM Switching System
JPH03232040A (en) Data processor
JP4279023B2 (en) Status display information setting circuit
WO2008026283A1 (en) Clock monitoring circuit, information processing apparatus and clock monitoring method
JP5920370B2 (en) Electronic control unit
JP2000353939A (en) Clock signal synchronous flip flop circuit
JPH09128168A (en) Data transfer system
JP2002215602A (en) Self-synchronizing transfer control circuit and data driving information processor having same
CN118113644A (en) Method for transmitting control signals between a first and a second digital domain and system on chip
JPH10214207A (en) Information processing system
JPH07262045A (en) Dsp firmware debugging device
JP2008022116A (en) Transmission apparatus
JPH11118890A (en) Circuit failure detecting method and circuit
KR20020049735A (en) Interrupt controlling circuit

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20031219

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040203

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040216

R150 Certificate of patent (=grant) or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080305

Year of fee payment: 4

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090305

Year of fee payment: 5

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090305

Year of fee payment: 5

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100305

Year of fee payment: 6

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100305

Year of fee payment: 6

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110305

Year of fee payment: 7

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110305

Year of fee payment: 7

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120305

Year of fee payment: 8

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120305

Year of fee payment: 8

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130305

Year of fee payment: 9