JP3408486B2 - Synchronous circuit between devices - Google Patents

Synchronous circuit between devices

Info

Publication number
JP3408486B2
JP3408486B2 JP2000050634A JP2000050634A JP3408486B2 JP 3408486 B2 JP3408486 B2 JP 3408486B2 JP 2000050634 A JP2000050634 A JP 2000050634A JP 2000050634 A JP2000050634 A JP 2000050634A JP 3408486 B2 JP3408486 B2 JP 3408486B2
Authority
JP
Japan
Prior art keywords
data
circuit
output
clock
signal
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
JP2000050634A
Other languages
Japanese (ja)
Other versions
JP2001244920A (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 Computertechno Ltd
Original Assignee
NEC Computertechno 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 NEC Computertechno Ltd filed Critical NEC Computertechno Ltd
Priority to JP2000050634A priority Critical patent/JP3408486B2/en
Publication of JP2001244920A publication Critical patent/JP2001244920A/en
Application granted granted Critical
Publication of JP3408486B2 publication Critical patent/JP3408486B2/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 transfer control of data between devices using clocks of the same frequency, and more particularly to improvement when clock skew between devices becomes a problem.

【0002】百メガヘルツから数百メガヘルツのクロッ
ク周波数で、装置間、回路基板間、又はLSI間のデー
タ転送を行うとき、クロックの波長は概ね1メートルか
ら数メートルであるから、数メートルのデータ転送で
は、1クロックから数クロックサイクル分の遅延が発生
し、データ伝送路に数サイクル分のデータが載ってい
る。この周波数帯において、遅延時間をクロックサイク
ルの整数倍に合わせておき、受信データの変化点に受信
装置クロックの取込みエッジを一致させないように設計
するのは困難である。
When data is transferred between devices, circuit boards, or LSIs at a clock frequency of hundreds of megahertz to several hundreds of megahertz, the wavelength of the clock is about 1 meter to several meters, so that data transfer of several meters is performed. In this case, a delay of one clock to several clock cycles occurs, and several cycles of data are loaded on the data transmission path. In this frequency band, it is difficult to design the delay time to be an integral multiple of the clock cycle so that the capture edge of the receiver clock does not coincide with the change point of the received data.

【0003】本発明は、このような遅延時間の予測が困
難な場合でも、受信装置のクロックにデータが乗り移る
ことが出来る様にするための技術に関する。
The present invention relates to a technique for enabling data to be transferred to a clock of a receiver even when such a delay time is difficult to predict.

【0004】[0004]

【従来の技術】図10は、従来の装置間の乗り移り制御
を説明する原理図である。送信装置1から受信装置2に
伝送されたデータは、装置間のクロックスキューが問題
となる為、単純に受信装置側のクロックで取り込むこと
が出来ない場合があり、受信装置側のクロック又はその
反転クロックで取り込み、いずれか一方を選択する仕組
みになっている。
2. Description of the Related Art FIG. 10 is a principle diagram for explaining conventional transfer control between devices. The data transmitted from the transmission device 1 to the reception device 2 may not be simply captured by the clock of the reception device side because the clock skew between the devices becomes a problem. It is a mechanism that takes in at the clock and selects either one.

【0005】例えば、特開平11−46182号公報に
開示されている様に、受信データを受信装置クロック、
その反転クロックでそれぞれフリップフロップに取込
み、どちらを同期化データの対象とするかの判定に、取
込んだデータの垂直パリティチェック結果を用いてい
る。
For example, as disclosed in Japanese Unexamined Patent Application Publication No. 11-46182, the received data is converted into a receiver clock,
Each of the inverted clocks is taken into a flip-flop, and the vertical parity check result of the taken-in data is used to determine which is to be the target of the synchronized data.

【0006】また、特開昭63−95518号公報に開
示されているように、送信装置側のクロックと、受信装
置側のクロックの位相関係を比較し、受信装置側で受信
装置のクロックまたはその反転クロックのいずれで取り
込むべきか判定している。
Further, as disclosed in Japanese Patent Laid-Open No. 63-95518, the phase relationship between the clock on the transmitting device side and the clock on the receiving device side is compared, and the receiving device side clock or the receiving device clock is compared. It is determined which of the inverted clocks should be used.

【0007】[0007]

【発明が解決しようとする課題】ところが、前記の垂直
パリティチェック結果を用いる技術では、n本の受信デ
ータの各ビットで、偶数回の誤りが生じると、受信装置
側のクロックまたはその反転クロックのどちらで取り込
んだデータ系を同期化受信データとするかの判定が出来
ないという問題がある。
However, in the technique using the above vertical parity check result, when an error occurs even number of times in each bit of the n received data, the clock of the receiving device side or its inverted clock is changed. There is a problem that it is not possible to determine which of the data systems taken in is to be the synchronized reception data.

【0008】水平パリティチェック結果を用いても、n
本の受信データの偶数本で誤った取込みを行った場合、
パリティエラーとして検出されず、妥当な判定が出来な
い。
Even if the horizontal parity check result is used,
If you mistakenly capture even number of received data of a book,
A parity error is not detected and a proper judgment cannot be made.

【0009】又、n本のデータが全て”0”で、かつ時
間的変化がない場合、パリティチェックによって誤りを
検出出来ない場合がある。
If all the n pieces of data are "0" and there is no temporal change, an error may not be detected by the parity check.

【0010】更に、送信装置と受信装置の距離が離れ、
伝送波形に歪みが生じると、受信装置側のクロックまた
はその反転クロックのいずれ取り込んでも正しいデータ
が受信出来ない場合がある。
Further, the distance between the transmitter and the receiver is increased,
If the transmitted waveform is distorted, correct data may not be received even if the clock on the receiver side or its inverted clock is taken in.

【0011】この様な例を図11を参照し説明する。送
信装置1の出力波形は、約1クロックサイクル遅れて受
信装置2に到達している。しかし、減衰による波形歪み
の為受信装置のクロックの立ち上がりエッジの時刻t5
と、受信装置の反転クロックの立ち上がりエッジの時刻
t6のいずれにおいても正しい値をサンプリング出来な
い。
Such an example will be described with reference to FIG. The output waveform of the transmitter 1 arrives at the receiver 2 with a delay of about one clock cycle. However, due to waveform distortion due to attenuation, time t5 of the rising edge of the clock of the receiving device
Then, the correct value cannot be sampled at any time t6 of the rising edge of the inverted clock of the receiver.

【0012】又、前記の送信装置側のクロックを受信装
置に伝送し、受信装置のクロックと位相関係を比較する
技術の場合、送信装置と受信装置の距離に応じてクロッ
ク波形に減衰が生じ、距離が長くなった場合クロックの
エッジを正確に捉えることが出来なくなり、装置間の位
相差を正確に比較出来ない場合がある。
Further, in the case of the technique of transmitting the clock on the transmitter side to the receiver and comparing the phase relationship with the clock of the receiver, the clock waveform is attenuated according to the distance between the transmitter and the receiver. When the distance becomes long, it may not be possible to accurately capture the edge of the clock, and it may not be possible to accurately compare the phase difference between the devices.

【0013】本発明の主な目的は、受信装置側のクロッ
クまたはその反転クロックで取り込むかの判定に際し、
その判定が確実に出来るパターンを用いることと、送信
される信号に、データ伝送路の遅延および波形歪みが加
わる状態であっても、送信装置と受信装置のクロックの
位相関係の判定を行うことにより、受信装置側のクロッ
クに確実にデータの乗り移りが出来る回路を提供するこ
とにある。
The main object of the present invention is to determine whether to use the clock on the side of the receiver or its inverted clock,
By using a pattern that can be reliably determined, and by determining the phase relationship between the clocks of the transmitter and receiver even if the transmitted signal is subject to delay and waveform distortion in the data transmission path. The purpose of the present invention is to provide a circuit that can reliably transfer data to the clock on the receiving device side.

【0014】[0014]

【課題を解決するための手段】本発明の第1の装置間の
同期回路は、送信装置に、テスト指示に応じ、送信装置
のクロックを用い一定周期のテスト信号を発生しデータ
伝送路に送出する回路を備え、受信装置に、テスト指示
に応じ前記テスト信号と同周期、同パターンのテスト信
号を受信装置のクロックを用い発生する回路、その出力
と前記送信装置のテスト信号の受信出力との位相差を区
分判定し結果を記憶する手段、受信データを受信装置の
反転クロックで取り込む第1のデータ保持手段、第1の
データ保持手段の出力を受信装置のクロックで取り込む
第2のデータ保持手段、受信データを受信装置のクロッ
クで取り込む第3のデータ保持手段とを備え、前記記憶
された判定結果により、前記第2のデータ保持手段出力
と前記第3のデータ保持手段の出力のいずれか一方を選
択し同期化受信データとすることを特徴とする。
According to a first aspect of the present invention, there is provided a synchronizing circuit between devices, which generates a test signal of a constant cycle using a clock of the transmitting device in response to a test instruction and sends the signal to a data transmission line. A circuit for generating a test signal having the same cycle and pattern as the test signal in response to a test instruction using the clock of the receiving device in the receiving device, and its output and the receiving output of the test signal of the transmitting device. Means for classifying the phase difference and storing the result, first data holding means for receiving the received data with the inverted clock of the receiving device, second data holding means for taking the output of the first data holding means with the clock of the receiving device And a third data holding means for receiving the received data at the clock of the receiving device, and based on the stored determination result, the output of the second data holding means and the third data holding means. Either the output of the holding means, characterized in that the synchronizing received data.

【0015】本発明の第2の装置間の同期回路は、前記
第1の装置間同期回路において、前記受信装置の入力部
に、前記送信装置よりデータと同等の伝送路で伝送され
る送信装置クロックの反転信号により前記伝送されたデ
ータを取り込み、前記受信データとする第4のデータ保
持手段を有することを特徴とする。
According to a second aspect of the present invention, there is provided a synchronization circuit between devices, wherein in the first inter-device synchronization circuit, a transmitting device which transmits data to the input section of the receiving device from the transmitting device through a transmission line equivalent to data. It is characterized by further comprising a fourth data holding means for fetching the transmitted data by the inverted signal of the clock and making it the received data.

【0016】本発明の第3の装置間の同期回路は、前記
第1、又は第2の装置間同期回路において、前記送信装
置テスト信号の受信出力を受け、その出力のパルス幅を
若干縮小し、前記テスト信号間位相差の区分判定回路に
渡すタイミング補償回路を設け、前記判定回路がタイミ
ングマージンを考慮した判定を行うことを特徴とする。
A third inter-device synchronization circuit of the present invention is the first or second inter-device synchronization circuit, which receives the reception output of the transmission device test signal and slightly reduces the pulse width of the output. A timing compensation circuit for passing the phase difference between the test signals to the classification determination circuit is provided, and the determination circuit performs the determination in consideration of the timing margin.

【0017】本発明の第4の装置間の同期回路は、前記
第3の装置間同期回路において、データ幅がn(nは自
然数)ビットの場合、nビットの内の1ビットについて
のみ、送信装置からのテスト信号と受信装置内部のテス
ト信号の位相差の区分を判定する手段を有し、前記1ビ
ットの位相差区分の判定結果に基づき、nビットのデー
タについて、前記第2のデータ保持手段出力と前記第3
のデータ保持手段出力のいずれか一方を選択し、同期化
受信データとすることを特徴とする。
The fourth inter-device synchronization circuit of the present invention is the third inter-device synchronization circuit, wherein when the data width is n (n is a natural number) bits, only one bit out of n bits is transmitted. A means for determining a phase difference section between a test signal from the apparatus and a test signal inside the receiving apparatus, and based on the result of the 1-bit phase difference section determination, holds the second data for n-bit data. Means output and said third
It is characterized in that either one of the data holding means outputs is selected and used as the synchronized reception data.

【0018】本発明の第5の装置間の同期回路は、前記
第4の装置間同期回路において、前記送信装置と受信装
置が同時に電源を供給される場合に、送信装置の電源確
定信号から所定時間Aまでの期間を規定する第1のタイ
マー、受信装置の電源確定信号から所定時間B(B<
A)までの期間を規定する第2のタイマーを、それぞれ
送信装置、受信装置に設け、各装置で自装置のタイマー
が規定する期間、前記テスト指示をオンとすることを特
徴とする。
According to a fifth aspect of the present invention, there is provided a synchronization circuit between devices, wherein in the fourth aspect of the synchronization circuit, when the transmitter and the receiver are simultaneously supplied with power, a predetermined power supply confirmation signal from the transmitter is used. A first timer that defines the period up to time A, a predetermined time B (B <B <
A second timer for defining the period up to A) is provided in each of the transmitting device and the receiving device, and each device turns on the test instruction for a period defined by the timer of the own device.

【0019】本発明の第6の装置間の同期回路は、前記
第4の装置間同期回路において、前記送信装置と受信装
置が同時に電源を供給される場合に、送信装置に送信装
置の電源確定信号から所定時間Aまでの期間を規定する
第1のタイマーを設け、該規定期間送信装置のテスト指
示をオンとし、受信装置に前記同期化受信データライン
上の受信テスト信号のパルスをカウントし、カウントが
所定時間Aより十分短かい時間に対応した所定数に至っ
たことを検出するカウンタ手段を設け、受信装置の電源
確定から前記検出までの期間受信装置のテスト指示をオ
ンとし、前記検出時に前記位相差の区分判定結果を前記
記憶手段に設定することを特徴とする。
According to a sixth aspect of the present invention, there is provided a synchronization circuit between devices, wherein in the fourth aspect of the synchronization circuit between devices, when the transmitter and the receiver are simultaneously supplied with power, the transmitter determines the power supply of the transmitter. A first timer that defines a period from the signal to the predetermined time A is provided, the test instruction of the transmission device is turned on for the specified period, and the reception device counts the pulses of the reception test signal on the synchronized reception data line, Counter means for detecting that the count has reached a predetermined number corresponding to a time sufficiently shorter than the predetermined time A is provided, and the test instruction of the receiving device is turned on during the period from the power confirmation of the receiving device to the detection, and at the time of the detection. The determination result of the phase difference classification is set in the storage means.

【0020】[0020]

【発明の実施の形態】本発明の上記および他の目的、特
徴および利点を明確にすべく、以下図面を参照しなが
ら、本発明の実施の形態につき詳細に説明する。
BEST MODE FOR CARRYING OUT THE INVENTION To clarify the above and other objects, features and advantages of the present invention, embodiments of the present invention will be described in detail below with reference to the drawings.

【0021】図1は、本発明による装置間の同期回路の
第1実施形態の全体を示すブロック図である。本図は、
送信装置1と受信装置2からなる。
FIG. 1 is a block diagram showing an entire first embodiment of a synchronizing circuit between devices according to the present invention. This figure shows
It comprises a transmitter 1 and a receiver 2.

【0022】送信装置1は、テスト指示信号5により動
作を切り替えるための選択回路11、フリップフロップ
(以下FFと省略)21、インバータ12、13で構成
される。FFのD、Q、CKは、それぞれデータ入力端
子、出力端子、クロック入力端子を示す。
The transmitter 1 is composed of a selection circuit 11 for switching the operation according to the test instruction signal 5, a flip-flop (hereinafter abbreviated as FF) 21, and inverters 12 and 13. D, Q, and CK of FF indicate a data input terminal, an output terminal, and a clock input terminal, respectively.

【0023】受信装置2は、送信装置1からのデータを
一時保存する為の第4のデータ保持手段としての第4の
FF31、受信装置の反転クロックを生成するためのイ
ンバータ85、第1のデータ保持手段としての第1のF
F41、第2のデータ保持手段としての第2のFF5
1、第3のデータ保持手段としての第3のFF61、選
択回路71、タイミング補償回路81、タイミングテス
ト回路82、タイミング判定回路83、判定結果記憶手
段としてのホールド回路84で構成される。
The receiving device 2 has a fourth FF 31 as a fourth data holding means for temporarily storing the data from the transmitting device 1, an inverter 85 for generating an inverted clock of the receiving device, and a first data. First F as holding means
F41, second FF5 as second data holding means
1, a third FF 61 as third data holding means, a selection circuit 71, a timing compensation circuit 81, a timing test circuit 82, a timing determination circuit 83, and a hold circuit 84 as determination result storage means.

【0024】タイミングテスト回路82は、4種のタイ
ミングを生成するFF824〜FF827、受信データ
のタイミングをテストするためのFF820〜FF82
3、インバータ828、829で構成される。
The timing test circuit 82 includes FFs 824 to FF827 for generating four types of timings and FFs 820 to FF82 for testing the timings of received data.
3 and inverters 828 and 829.

【0025】次に本実施形態の動作について説明する。
選択回路11は、テスト指示信号5が”1”のとき、F
F21の出力信号をインバータ12により反転した信号
を選択し出力する。このとき、選択回路11の出力信号
は、再びFF21に入力される為ループを形成し、1ク
ロックサイクル毎にその値が反転し”0101”を繰り
返す信号を発振する。初期値が”0”か”1”かは不定
である。一方、テスト指示信号5が”0”のとき、選択
回路11は送信すべき入力データ3を選択する。FF2
1は、送信装置1内部の任意の入力データを送信装置ク
ロック4の立ち上がりエッジに同期して出力する。イン
バータ13は、送信装置クロック4を反転し、受信装置
2に出力する。
Next, the operation of this embodiment will be described.
When the test instruction signal 5 is “1”, the selection circuit 11 outputs F
A signal obtained by inverting the output signal of F21 by the inverter 12 is selected and output. At this time, the output signal of the selection circuit 11 forms a loop because it is input to the FF 21 again, and its value is inverted every clock cycle to oscillate a signal that repeats "0101". Whether the initial value is "0" or "1" is indefinite. On the other hand, when the test instruction signal 5 is "0", the selection circuit 11 selects the input data 3 to be transmitted. FF2
1 outputs any input data inside the transmitter 1 in synchronization with the rising edge of the transmitter clock 4. The inverter 13 inverts the transmitter clock 4 and outputs it to the receiver 2.

【0026】テスト指示信号5は、そのまま受信装置2
に出力される。受信装置2の第4のFF31は、送信装
置1のFF21の出力信号を、インバータ13が出力す
る信号の立ち上がりエッジで取り込む。FF21と第4
のFF31の間の伝送路と、インバータ13と第4のF
F31の間の伝送路の距離が等しければ、これらの間の
遅延量が等しくすることが出来、波形歪みが許容できる
範囲で、伝送路の長さによらず、第4のFF31はデー
タを取り込むことが出来る。このとき、送信装置クロッ
ク4のデューティー比は50%であることを前提として
いる。
The test instruction signal 5 is directly received by the receiving device 2
Is output to. The fourth FF 31 of the receiver 2 captures the output signal of the FF 21 of the transmitter 1 at the rising edge of the signal output by the inverter 13. FF21 and the fourth
Transmission line between the FF31, the inverter 13 and the fourth F
If the distances of the transmission lines between the F31s are equal, the delay amount between them can be made equal to each other, and the fourth FF 31 takes in the data regardless of the length of the transmission line within a range in which the waveform distortion is allowable. You can At this time, it is assumed that the duty ratio of the transmitter clock 4 is 50%.

【0027】第1のFF41は、受信装置クロック7を
インバータ85によって反転した信号の立ち上がりエッ
ジで、第4のFF31の出力信号を取り込む。第2のF
F51は、第1のFF41の出力を受信装置クロック7
の立ち上がりエッジで取り込む。第3のFF61は、第
4のFF31の出力を単に受信装置クロック7の立ち上
がりエッジで取り込む。
The first FF 41 takes in the output signal of the fourth FF 31 at the rising edge of the signal obtained by inverting the receiver clock 7 by the inverter 85. Second F
F51 outputs the output of the first FF41 to the receiver clock 7
Capture on the rising edge of. The third FF 61 simply takes in the output of the fourth FF 31 at the rising edge of the receiver clock 7.

【0028】送信装置クロック4と受信装置クロック7
は周期が等しいが、位相は必ずしも等しくない信号であ
る。第4のFF31の出力信号が変化するタイミング
で、第1のFF41または第3のFF61に取り込んだ
場合、値がメタステーブルと呼ばれる不安定状態になる
ことがある。しかし、第4のFF31の出力信号は、受
信装置2内部の波形歪みを無視できるとすれば、第3の
FF61、又は、第1のFFのいずれか一方で安定して
取り込まれ、誤りがないはずである。
Transmitter clock 4 and receiver clock 7
Are signals having the same period but not necessarily the same phase. When the output signal of the fourth FF 31 is fetched into the first FF 41 or the third FF 61 at the timing when the output signal of the fourth FF 31 changes, the value may be in an unstable state called metastable. However, if the waveform distortion inside the receiving device 2 can be ignored, the output signal of the fourth FF 31 is stably taken in by either the third FF 61 or the first FF, and there is no error. Should be.

【0029】そこで、FF31の出力信号が、受信装置
クロック7に乗り移るためには、受信装置クロック7の
立ち上がりエッジまたは、その反転信号の立ち上がりエ
ッジのどちらで取り込むべきか判定する必要がある。
Therefore, in order to transfer the output signal of the FF 31 to the receiver clock 7, it is necessary to determine whether to take in the rising edge of the receiver clock 7 or the rising edge of its inverted signal.

【0030】以下に、その判定方法を示す。タイミング
補償回路81は、第4のFF31の出力信号の変化点に
近いタイミングが判定に用いられない様に、FF31の
出力信号の立ち上がりエッジのタイミングを所定の時間
だけ遅らせるものである。
The determination method will be described below. The timing compensation circuit 81 delays the timing of the rising edge of the output signal of the FF 31 by a predetermined time so that the timing close to the change point of the output signal of the fourth FF 31 is not used for the determination.

【0031】例えば、図2に示す様な回路で実現され
る。入力信号は2分配され、一方は遅延素子810を通
った後、他方はそのままアンド回路811に入力されて
いる。遅延素子810の遅延時間は、例えば受信装置ク
ロック7の1クロックサイクルの時間の1/10から1
/4程度が望ましい。何故ならば、極端に少ないと、第
4のFF31の出力信号の変化点に近いタイミングの信
号がタイミング判定回路83に入力された場合にマージ
ンを幾らも含まない判定をしてしまい、又例えば、1/
2以上とすると、後述のタイミング判定が正しく行われ
ないからである。
For example, it is realized by a circuit as shown in FIG. The input signal is divided into two, one of which is passed through the delay element 810 and the other is directly input to the AND circuit 811. The delay time of the delay element 810 is, for example, 1/10 to 1 of one clock cycle of the receiver clock 7.
/ 4 is desirable. Because, if it is extremely small, it is determined that the margin is not included when a signal having a timing close to the change point of the output signal of the fourth FF 31 is input to the timing determination circuit 83. 1 /
This is because if the number is 2 or more, the timing determination described below will not be performed correctly.

【0032】図1に戻り、タイミングテスト回路82
は、第4のFF31の出力信号の位相が、受信装置クロ
ック7から生成される4種の”0101”の繰り返しパ
ターンのいずれに近いかをテストする。FF824は、
その出力信号をインバータ828を介して入力に戻すこ
とによって、1クロックサイクル毎にその値が反転
し、”0101”を繰り返す信号を発振する。位相は必
ずしも等しくないが、FF21と同じテストパターンを
発生する。
Returning to FIG. 1, the timing test circuit 82
Tests whether the phase of the output signal of the fourth FF 31 is closer to one of the four types of repeating patterns of "0101" generated from the receiver clock 7. FF824 is
By returning the output signal to the input through the inverter 828, the value is inverted every clock cycle, and a signal that repeats "0101" is oscillated. Although the phases are not necessarily the same, the same test pattern as that of the FF 21 is generated.

【0033】この信号は、受信装置クロック7をインバ
ータ829で反転した信号の立ち上がりエッジでFF8
25に取り込まれる。受信装置クロック7のデューティ
ー比が50%であるとすれば、FF825の出力は、F
F824の出力に比べ、180度位相が遅れていること
になる。
This signal is FF8 at the rising edge of the signal obtained by inverting the receiver clock 7 by the inverter 829.
25. If the duty ratio of the receiver clock 7 is 50%, the output of the FF 825 is F
This means that the phase is 180 degrees behind the output of F824.

【0034】FF826は、FF825の出力信号を受
信装置クロック7の立ち上がりエッジのタイミングで取
り込み、FF824の出力に比べ360度位相が遅れた
信号を生成する。また、FF827は、FF826の出
力信号をインバータ829で反転した信号の立ち上がり
エッジで取り込み、FF824の出力に比べ540度位
相が遅れた信号を生成する。
The FF 826 takes in the output signal of the FF 825 at the timing of the rising edge of the receiver clock 7, and generates a signal whose phase is delayed by 360 degrees with respect to the output of the FF 824. Further, the FF 827 takes in the output signal of the FF 826 at the rising edge of the signal inverted by the inverter 829, and generates a signal whose phase is delayed by 540 degrees from the output of the FF 824.

【0035】FF820は、FF824の出力信号の立
ち上がりエッジで、タイミング補償回路81の出力信号
を取り込む。同様に、FF821、FF822、FF8
23は、それぞれFF825、FF826、FF827
の出力信号の立ち上がりエッジで、タイミング補償回路
81の出力信号を取り込む。
The FF 820 takes in the output signal of the timing compensation circuit 81 at the rising edge of the output signal of the FF 824. Similarly, FF821, FF822, FF8
23 are FF825, FF826, and FF827, respectively.
The output signal of the timing compensation circuit 81 is taken in at the rising edge of the output signal of.

【0036】図3にFF820〜FF827の信号のタ
イミング例を示す。タイミング補償回路81の出力は、
時刻t1で立ち上がり、時刻t2で立ち下がっている。
時刻t1からt2の間で、FF825が立ち上がりエッ
ジを出力しているので、FF821の出力は常に”1”
になる。FF825の立ち上がりエッジの時刻t3は、
受信装置クロック7立ち下がりエッジの時刻と等しいか
ら、受信装置2は、受信装置クロック7の立ち下がりエ
ッジの時刻でデータを取り込めばよいことが分かる。
FIG. 3 shows an example of the timing of the signals of FF820 to FF827. The output of the timing compensation circuit 81 is
It rises at time t1 and falls at time t2.
Since the FF 825 outputs the rising edge between the times t1 and t2, the output of the FF 821 is always "1".
become. At time t3 of the rising edge of FF825,
Since it is equal to the time of the falling edge of the receiver clock 7, it can be seen that the receiver 2 should capture data at the time of the falling edge of the receiver clock 7.

【0037】図示してないケースであるが、同様に時刻
t1からt2の間で、FF824の出力信号が立ち上が
っていれば、FF820の出力は常に”1”となり、受
信装置2は、受信装置クロック7の立ち上がりエッジの
時刻でデータを取り込めばよいことが分かる。
Although not shown, similarly, if the output signal of the FF 824 rises between the times t1 and t2, the output of the FF 820 is always "1", and the receiver 2 receives the receiver clock. It can be seen that the data should be captured at the time of the rising edge of 7.

【0038】又、同様に、FF822の出力が”1”と
なる場合は、受信装置クロック7の立ち上がりエッジ
で、FF823の出力が”1”となる場合は、受信装置
クロック7の立ち下がりエッジでデータを取り込めばよ
いことが分かる。
Similarly, when the output of the FF822 is "1", it is the rising edge of the receiver clock 7, and when the output of the FF823 is "1", it is the falling edge of the receiver clock 7. You can see that you need to import the data.

【0039】一方、図4に示す様に、時刻t1からt2
の間の時刻t3でFF825の出力の立ち上がりエッジ
があり、時刻t1からt2の間の時刻t4でもFF82
6の立ち上がりエッジが存在する場合がある。ここで時
刻t4はT1と同じであるが、図4では便宜上T1の右
側に示している。FF821とFF822の両方の出力
が常に”1”となる。この場合、受信装置2は、受信装
置クロック7の立ち上がりエッジと立ち下がりエッジの
どちらを用いてもデータを受信出来ることを示してい
る。
On the other hand, as shown in FIG. 4, from time t1 to t2
There is a rising edge of the output of the FF 825 at the time t3 between the time t1 and the time t4 between the times t1 and t2.
There may be 6 rising edges. Here, the time t4 is the same as T1, but is shown on the right side of T1 in FIG. 4 for convenience. The outputs of both FF821 and FF822 are always "1". In this case, it is shown that the receiving device 2 can receive data using either the rising edge or the falling edge of the receiving device clock 7.

【0040】FF820〜FF823の出力と、受信装
置2が使用すべき受信装置クロック7のエッジの関係
は、図5の様になる。このとき、タイミング判定回路8
3の出力信号を図5の通りに定めれば、受信装置2が使
用すべき受信装置クロック7のエッジを選択するのに都
合がよい。そして、タイミング判定回路83の出力が”
1”のとき、受信装置2は受信装置クロック7の立ち上
がりエッジを、”0”のとき立ち下がりエッジを用いれ
ばよい。尚、FF820〜FF823の出力の組み合わ
せは、図5のいずれかになる。
The relationship between the outputs of FF820 to FF823 and the edge of the receiver clock 7 to be used by the receiver 2 is as shown in FIG. At this time, the timing determination circuit 8
If the output signal of 3 is defined as shown in FIG. 5, it is convenient for the receiving device 2 to select the edge of the receiving device clock 7 to be used. Then, the output of the timing determination circuit 83 is "
In the case of "1", the receiving apparatus 2 may use the rising edge of the receiving apparatus clock 7, and in the case of "0", the falling edge. The combination of the outputs of the FF820 to FF823 is any one of FIG.

【0041】又、タイミング判定回路83出力をRとす
れば R = (#FF823・FF820)+(#FF82
1・FF822) (#FF823:FF823の反転出力、・:論理積、
+:論理和)となる。
When the output of the timing judgment circuit 83 is R, R = (# FF823 / FF820) + (# FF82
1 · FF822) (# FF823: inverted output of FF823, ·: logical product,
+: Logical sum).

【0042】図1に戻り説明する。タイミング判定回路
83の出力は、ホールド回路84に入力され、テスト指
示信号5が”1”から”0”に変化するときに値がホー
ルドされる。テスト指示信号5が”0”では、入力デー
タ3が受信装置2に送られてくるため、位相の判定がで
きなくなるため、ホールド回路84が必要である。ホー
ルド回路84は例えばホールド入力付きのFFを使用
し、セット入力をテスト指示信号5によりゲートされた
判定回路83の出力とし、ホールド入力をテスト指示信
号5とする。
Returning to FIG. 1, description will be made. The output of the timing determination circuit 83 is input to the hold circuit 84, and the value is held when the test instruction signal 5 changes from "1" to "0". When the test instruction signal 5 is "0", the input data 3 is sent to the receiving device 2 and the phase cannot be determined. Therefore, the hold circuit 84 is necessary. The hold circuit 84 uses, for example, an FF with a hold input, the set input is the output of the determination circuit 83 gated by the test instruction signal 5, and the hold input is the test instruction signal 5.

【0043】ホールド回路84の出力信号は、選択回路
71に入力される。選択回路71はホールド回路84の
出力が”1”のとき第3のFF61の出力を選択し、ホ
ールド回路84の出力が”0”のとき第2のFF51の
出力を選択し、同期化受信データ6として受信装置内部
に供給する。
The output signal of the hold circuit 84 is input to the selection circuit 71. The selection circuit 71 selects the output of the third FF 61 when the output of the hold circuit 84 is “1”, selects the output of the second FF 51 when the output of the hold circuit 84 is “0”, and synchronizes the received data. 6 is supplied to the inside of the receiving device.

【0044】これら一連の動作により、第4のFF31
の出力信号は、受信装置クロック7を用いたタイミング
に乗り移ることができる。尚、上記第3のFF31は、
送信装置1と受信装置2の距離が短く、伝送する信号の
減衰、歪みが少なければ設けなくても良い(送信装置1
でFF21の出力を送出するドライバ、受信装置2でこ
れを受けるレシーバの形となる)。
By the series of these operations, the fourth FF 31
The output signal of can be transferred to the timing using the receiver clock 7. The third FF 31 is
If the distance between the transmitter 1 and the receiver 2 is short and the attenuation and distortion of the transmitted signal are small, it is not necessary to provide the transmitter 1 (transmitter 1
In the form of a driver for sending out the output of the FF21, and a receiver for receiving it at the receiving device 2).

【0045】次に、本発明による装置間の同期回路の第
2実施形態を説明する。前記第1実施形態では、入力デ
ータ3を1ビットの信号として扱ってきたが、複数ビッ
トに拡張することができる。図6は、本実施形態の全体
を示すブロック図である。
Next, a second embodiment of the synchronizing circuit between devices according to the present invention will be described. In the first embodiment, the input data 3 has been treated as a 1-bit signal, but it can be expanded to a plurality of bits. FIG. 6 is a block diagram showing the whole of this embodiment.

【0046】FF22は、入力データ3の第2〜n番目
のビット対応に設けられ入力データ3を受信装置2に出
力するFFである。第4のFF32は、FF22のデー
タをインバータ13のクロック信号で受信するFFであ
る。第1のFF42は、受信装置クロック7をインバー
タ85によって反転した信号の立ち上がりエッジで、第
4のFF32の出力信号を取り込む。第2のFF52
は、第1のFF42の出力を受信装置クロック7の立ち
上がりエッジで取り込む。第3のFF62は、第4のF
F32の出力を単に受信装置クロック7の立ち上がりエ
ッジで取り込む。
The FF 22 is provided for the second to nth bits of the input data 3 and outputs the input data 3 to the receiving device 2. The fourth FF 32 is an FF that receives the data of the FF 22 with the clock signal of the inverter 13. The first FF 42 captures the output signal of the fourth FF 32 at the rising edge of the signal obtained by inverting the receiver clock 7 by the inverter 85. Second FF 52
Captures the output of the first FF 42 at the rising edge of the receiver clock 7. The third FF 62 is the fourth F
The output of F32 is simply captured at the rising edge of the receiver clock 7.

【0047】選択回路72は、ホールド回路84の出力
が”1”のときFF62の出力を選択し、ホールド回路
84の出力が”0”のときFF52の出力を選択し、同
期化受信データ6の第2番目のビットから第n番目のビ
ットとして出力する。
The selection circuit 72 selects the output of the FF 62 when the output of the hold circuit 84 is "1", and selects the output of the FF 52 when the output of the hold circuit 84 is "0", and selects the output of the synchronized reception data 6. Output from the second bit to the nth bit.

【0048】FF32、FF42、FF52、FF6
2、選択回路72はデータの第2〜n番目のビット対応
に設けられる。
FF32, FF42, FF52, FF6
2. The selection circuit 72 is provided corresponding to the 2nd to nth bits of data.

【0049】テスト指示信号5による送信装置1と受信
装置2の間の位相関係の判定は、FF21が出力する第
1ビット目のデータ線を用いて行う。第1ビット目と各
ビット間の遅延特性の変動幅が、タイミング補償回路8
1の遅延時間以内であれば、各ビットのデータ線の長さ
を等しくすることにより、ビット間のスキューがない状
態でデータの乗り移りができる。
The determination of the phase relationship between the transmitting device 1 and the receiving device 2 based on the test instruction signal 5 is performed using the first bit data line output from the FF 21. The fluctuation range of the delay characteristic between the first bit and each bit is the timing compensation circuit 8
Within the delay time of 1, the data lines can be transferred without making the bit skew by making the lengths of the data lines for each bit equal.

【0050】次に、本発明による装置間の同期回路の第
3実施形態を説明する。本実施形態はテスト指示信号5
の代替方法に関するものである。
Next, a third embodiment of the synchronizing circuit between devices according to the present invention will be described. In this embodiment, the test instruction signal 5
It is related to the alternative method of.

【0051】図1において、テスト指示信号5は選択回
路11を制御し、入力データ3またはFF21の反転出
力を選択するものである。また、ホールド回路84を制
御し、タイミング判定回路83の出力をホールドするた
めのものである。テスト指示信号5は、送信装置1と受
信装置2で使用しているため、送信装置1から受信装置
2に送出する必要が有った。本実施形態ではこれを解消
する。
In FIG. 1, the test instruction signal 5 controls the selection circuit 11 to select the input data 3 or the inverted output of the FF 21. It also controls the hold circuit 84 and holds the output of the timing determination circuit 83. Since the test instruction signal 5 is used by the transmission device 1 and the reception device 2, it is necessary to send the test instruction signal 5 from the transmission device 1 to the reception device 2. In the present embodiment, this is solved.

【0052】図7は、本実施形態の全体構成を示すもの
であり、送信装置1のテスト指示信号発生のため、第1
のタイマー回路901を設ける。同様に受信装置2のテ
スト指示信号発生のため、第2のタイマー回路902を
設ける。
FIG. 7 shows the overall configuration of this embodiment, which is the first because the transmitter 1 generates a test instruction signal.
The timer circuit 901 is provided. Similarly, a second timer circuit 902 is provided to generate a test instruction signal for the receiver 2.

【0053】図9を参照しその動作を説明する。、送信
装置電源確定信号8の立ち上がりにより所定の数サイク
ル間タイマー回路901をリセットし、次サイクルより
カウントを開始する(リセット指示なければ、送信装置
電源確定信号8オン且つカウントが時間A以下を歩進条
件とする)。そしてタイマー回路901が所定の時間A
に達するまでの期間は選択回路11の入力としてFF2
1の反転信号を選択し、FF21がテスト信号を出力す
る様制御する。所定の時間Aを経過した後、選択回路1
1は入力データ3を選択する。
The operation will be described with reference to FIG. , The timer circuit 901 is reset for a predetermined number of cycles by the rise of the transmitter power supply confirmation signal 8 and starts counting from the next cycle (if there is no reset instruction, the transmitter power supply confirmation signal 8 is on and the count is less than the time A). As a starting condition). Then, the timer circuit 901 sets the predetermined time A
FF2 as an input of the selection circuit 11 for the period until reaching
The inverted signal of 1 is selected, and the FF 21 is controlled to output the test signal. After a predetermined time A has passed, the selection circuit 1
1 selects the input data 3.

【0054】一方、受信装置2内部の第2のタイマ回路
902は、受信装置電源確定信号9の立ち上がりにより
所定の数サイクル間リセットされ、次サイクルよりカウ
ントを開始し、所定の時間Bを経過した後、ホールド回
路84に対しホールド指示を与える。
On the other hand, the second timer circuit 902 inside the receiver 2 is reset for a predetermined number of cycles by the rise of the receiver power supply confirmation signal 9, starts counting from the next cycle, and a predetermined time B has passed. After that, a hold instruction is given to the hold circuit 84.

【0055】送信装置電源確定信号8と受信装置電源確
定信号9が同じタイミングであり、所定の時間Aが所定
の時間Bより長いとすれば、送信装置1から出力される
繰り返しパターンによって得られたタイミング判定結果
を、ホールド回路84にホールドすることができ、送信
装置1と受信装置2を接続する信号線を1本減らすこと
ができる。
If the transmitter power supply confirmation signal 8 and the receiver power supply confirmation signal 9 have the same timing and the predetermined time A is longer than the predetermined time B, it is obtained by the repeating pattern output from the transmission device 1. The timing determination result can be held in the hold circuit 84, and the number of signal lines connecting the transmitter 1 and the receiver 2 can be reduced by one.

【0056】次に、本発明による装置間の同期回路の第
4実施形態を説明する。本実施形態は前記第3実施形態
の受信装置側の第2のタイマ回路902をカウンタ回路
903に変更したものである。
Next, a fourth embodiment of the inter-device synchronization circuit according to the present invention will be described. In this embodiment, the second timer circuit 902 on the receiving device side of the third embodiment is changed to a counter circuit 903.

【0057】本実施形態の全体構成を図8に示す。以下
にその動作を説明する。第1のタイマ回路901は、図
7の第3の実施形態と同様の動作をする。カウンタ回路
903は、選択回路71の出力信号の立ち上がり/立ち
下がりをカウントし、所定の回数に達した後、ホールド
回路84に対しホールド指示を与える。
The overall structure of this embodiment is shown in FIG. The operation will be described below. The first timer circuit 901 operates similarly to the third embodiment shown in FIG. The counter circuit 903 counts the rising / falling edge of the output signal of the selection circuit 71, and gives a hold instruction to the hold circuit 84 after reaching a predetermined number of times.

【0058】タイマ回路901の計測時間が所定の時間
Aになる前に、カウンタ回路903のカウント数が所定
の回数に達するように設定すれば、図7の第3の実施形
態と同様に、送信装置1と受信装置2を接続する信号線
を1本減らすことができる。
If the count number of the counter circuit 903 is set to reach the predetermined number before the measured time of the timer circuit 901 reaches the predetermined time A, the transmission is performed as in the third embodiment of FIG. The number of signal lines connecting the device 1 and the receiving device 2 can be reduced by one.

【0059】以上の説明において、ホールド回路84の
例としてホールド入力付きのFFを示したが、これを不
揮発性のフラッシュROMの1ビットとその書き込み手
段としても良い。
In the above description, the FF with hold input is shown as an example of the hold circuit 84, but this may be used as one bit of the nonvolatile flash ROM and its writing means.

【0060】この場合、テスト信号を発生させるモード
信号として、送信装置1或いは送信装置1と受信装置2
の両方に、スイッチ乃至ジャンパーピンを設け、初めて
装置を使用する時と、送信装置1や、受信装置2や装置
間のケーブルを修理で交換したときのみスイッチ乃至ジ
ャンパーピンでテストモード指定し、装置クロック間の
位相差区分を判定しフラッシュROMの対応ビットを更
新する装置間同期回路でもよい。これは特に短時間の装
置の立上げを要求される場合に有効である。
In this case, the transmitter 1 or the transmitter 1 and the receiver 2 is used as the mode signal for generating the test signal.
Switch or jumper pin is provided on both of them, and the test mode is designated by the switch or jumper pin only when the device is used for the first time and when the cable between the transmitter 1, the receiver 2 and the device is replaced for repair. It may be an inter-device synchronization circuit that determines the phase difference classification between clocks and updates the corresponding bit of the flash ROM. This is particularly effective when it is required to start up the device for a short time.

【0061】又、ホールド回路84をシフトパス付きの
R−SFF(セットリセットFF)とし、一度テストし
記憶した判定値(判定回路83出力)を受信装置2の立
ち上げ時のイニシャライズでのシフトイン動作で、毎回
設定する様にしても良い。
Further, the hold circuit 84 is an R-SFF (set-reset FF) with a shift path, and the judgment value (output of the judgment circuit 83) which has been tested once and stored (the output of the judgment circuit 83) is shifted in at the initialization of the receiving device 2 at the time of startup. Therefore, it may be set every time.

【0062】又、送信装置1と受信装置2の両装置とイ
ンタフェースを持ち、これらのシフトモードのオン/オ
フ、シフトイン/アウト、クロックの作動/停止を両装
置を纏めて制御できる上位装置ないしコンソール装置が
存在する場合は下記の装置間同期回路でもよい。
Further, it has an interface with both the transmitting device 1 and the receiving device 2, and is capable of collectively controlling ON / OFF of these shift modes, shift in / out, and operation / stop of the clock of these devices. If a console device exists, the following inter-device synchronization circuit may be used.

【0063】即ち、送信装置1と受信装置2のそれぞれ
のテスト指示信号をシフトモード下のシフトインでのみ
設定可能なFFとして、上位装置ないしコンソール装置
がシフトモード下で送信装置1、受信装置2のテスト指
示FFをオンにシフトインする。その後シフトモードを
解除し、通常クロックを出力し、クロック停止後シフト
モードに戻し、前記ホールド回路84としてのシフトパ
ス付きのR−SFFの値を読取りこれを毎回イニシャラ
イズ時設定する様にする。
That is, each test instruction signal of the transmitter 1 and the receiver 2 is set as an FF that can be set only by shift-in in the shift mode, and the host device or console device is in the shift mode in the transmitter 1 and the receiver 2. The test instruction FF of 1 is shifted on. After that, the shift mode is released, the normal clock is output, the clock is stopped, the mode is returned to the shift mode, the value of the R-SFF with the shift path as the hold circuit 84 is read, and this is set at every initialization.

【0064】[0064]

【発明の効果】以上説明した様に本発明は、送信装置に
送信装置クロックを用いテストパターンを発生する回路
と、受信装置に送信装置と同周期のテストパターンを受
信装置のクロックを用いて発生させ、テスト信号間、或
いは送信装置クロックの反転クロックでサンプリングし
中継した送信装置テスト信号と受信装置テスト信号間の
位相差を区分する回路を備えている。
As described above, according to the present invention, a circuit for generating a test pattern using a transmitter clock for a transmitter and a test pattern for a receiver having the same cycle as the transmitter are generated using a clock of the receiver. And a circuit for discriminating the phase difference between the test signals, or the phase difference between the transmitter test signal and the receiver test signal, which are sampled and relayed by the inverted clock of the transmitter clock.

【0065】従って、送信装置と受信装置のクロック
が、どの様な位相関係であってもその位相差を判定出
来、データ取込みタイミングとして、受信装置クロック
とその反転出力のいずれが妥当か判定出来、妥当タイミ
ングの取込みデータ系を同期化受信データとし選択する
ので、クロックの位相が異なる装置間のデータ伝送を常
に正確に行える効果を有す。
Therefore, the phase difference of the clocks of the transmitter and the receiver can be determined regardless of the phase relationship, and which of the receiver clock and its inverted output is appropriate as the data acquisition timing can be determined. Since the data system having the proper timing is selected as the synchronized reception data, there is an effect that the data transmission between the devices having the different clock phases can always be performed accurately.

【0066】又、実際にデータを送信するデータ伝送路
を用い、送信装置と受信装置の間のクロックの位相差を
判定する為、位相差にはデータ伝送路の遅延および波形
歪みが反映されており、位相差を判定するときこれらの
影響を差し引く必要がなく、判定回路を簡素に出来る効
果も有す。
Further, since the phase difference of the clock between the transmitter and the receiver is determined by using the data transmission line for actually transmitting the data, the phase difference reflects the delay and the waveform distortion of the data transmission line. However, it is not necessary to subtract these influences when determining the phase difference, and there is an effect that the determination circuit can be simplified.

【0067】又、本発明によれば受信装置入力部に、送
信装置のクロックの反転信号のタイミングでデータを取
り込むFFを取り付けることにより受信時の波形歪みを
整形し、位相差の判定精度を高めることができる。
Further, according to the present invention, an FF for taking in data at the timing of the inverted signal of the clock of the transmitter is attached to the input unit of the receiver to shape the waveform distortion at the time of reception and enhance the accuracy of the phase difference determination. be able to.

【0068】又、本発明で使用されるタイミング補償回
路は、送信装置から受信装置へデータが乗り移るときに
発生する不安定な(毎回のサンプル値が一定でない)タ
イミングの取込データ系を選択しないので、送信装置、
受信装置のクロック周期が同一という条件であれば、ク
ロック周波数に依存して遅延素子の遅延時間を変更する
必要がなく、周期的に広範囲のクロックに対し、マージ
ンのある同期化伝送をもたらす効果を有す。
Further, the timing compensation circuit used in the present invention does not select an unstable acquisition data system (a sample value is not constant every time) which occurs when data is transferred from the transmission device to the reception device. So the transmitter,
If the clock cycle of the receiving device is the same, it is not necessary to change the delay time of the delay element depending on the clock frequency, and it is possible to achieve synchronized transmission with a margin for a wide range of clocks periodically. Have

【0069】又、本発明は装置の電源投入時に、テスト
信号を自動発生し、妥当なタイミングで取り込んだ方の
受信データ系を選択する信号を自動設定し保持するの
で、立ち上げ完了後直ぐに同期化データ伝送が行える効
果を有す。
Further, according to the present invention, a test signal is automatically generated at the time of turning on the power of the apparatus, and a signal for selecting the received data system of the fetched one is automatically set and held at a proper timing, so that the synchronization is performed immediately after the start-up is completed. It has the effect of transmitting the converted data.

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

【図1】本発明の第1の実施形態の全体構成を示すブロ
ック図。
FIG. 1 is a block diagram showing an overall configuration of a first embodiment of the present invention.

【図2】図1のタイミング補償回路81の詳細を示す
図。
FIG. 2 is a diagram showing details of a timing compensation circuit 81 in FIG.

【図3】図1のタイミングテスト回路82のタイムチャ
ート(ケース1)。
3 is a time chart of the timing test circuit 82 of FIG. 1 (case 1).

【図4】図1のタイミングテスト回路82のタイムチャ
ート(ケース2)。
4 is a time chart of the timing test circuit 82 of FIG. 1 (case 2).

【図5】図1のタイミング判定回路83の真理値表。5 is a truth table of the timing judgment circuit 83 of FIG.

【図6】本発明の第2実施形態の全体構成を示すブロッ
ク図。
FIG. 6 is a block diagram showing the overall configuration of a second embodiment of the present invention.

【図7】本発明の第3の実施形態の全体構成を示すブロ
ック図。
FIG. 7 is a block diagram showing an overall configuration of a third embodiment of the present invention.

【図8】本発明の第4の実施形態の全体構成を示すブロ
ック図。
FIG. 8 is a block diagram showing the overall configuration of a fourth embodiment of the present invention.

【図9】本発明の第3の実施形態の動作を示すタイムチ
ャート。
FIG. 9 is a time chart showing the operation of the third embodiment of the present invention.

【図10】従来の装置間のデータの乗り移りを実現する
方法の原理図。
FIG. 10 is a principle diagram of a conventional method for realizing data transfer between devices.

【図11】従来の装置間のデータ伝送で受信波形に歪み
が生じている例を示す図。
FIG. 11 is a diagram showing an example in which a received waveform is distorted in conventional data transmission between devices.

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

1 送信装置 2 受信装置 3 入力データ 4 送信装置クロック 5 テスト指示信号 6 同期化受信データ 7 受信装置クロック 8 送信装置電源確定信号 9 受信装置電源確定信号 11、71、72 選択回路 12、13、85、828、829 インバータ 21、22、31、32、41、42、51、52、6
1、62 FF 81 タイミング補償回路 82 タイミングテスト回路 83 タイミング判定回路 84 ホールド回路 820〜827 FF 901 第1のタイマ回路 902 第2のタイマ回路 903 カウンタ回路
1 transmitter 2 receiver 3 input data 4 transmitter clock 5 test instruction signal 6 synchronized received data 7 receiver clock 8 transmitter power supply confirmation signal 9 receiver power supply confirmation signal 11, 71, 72 selection circuits 12, 13, 85 , 828, 829 Inverters 21, 22, 31, 32, 41, 42, 51, 52, 6
1, 62 FF 81 Timing compensation circuit 82 Timing test circuit 83 Timing determination circuit 84 Hold circuit 820-827 FF 901 First timer circuit 902 Second timer circuit 903 Counter circuit

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI H04L 25/40 G06F 1/04 340D 29/00 H04L 13/00 T (58)調査した分野(Int.Cl.7,DB名) H04L 7/00 G06F 1/10 G06F 1/12 G06F 13/42 350 H04L 25/02 301 H04L 25/40 H04L 29/00 ─────────────────────────────────────────────────── ─── Continuation of front page (51) Int.Cl. 7 identification code FI H04L 25/40 G06F 1/04 340D 29/00 H04L 13/00 T (58) Fields investigated (Int.Cl. 7 , DB name) ) H04L 7/00 G06F 1/10 G06F 1/12 G06F 13/42 350 H04L 25/02 301 H04L 25/40 H04L 29/00

Claims (6)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 送信装置に、テスト指示に応じ、送信装
置のクロックを用い一定周期のテスト信号を発生しデー
タ伝送路に送出する回路を備え、受信装置に、テスト指
示に応じ前記テスト信号と同周期、同パターンのテスト
信号を受信装置のクロックを用い発生する回路、その出
力と前記送信装置のテスト信号の受信出力との位相差を
区分判定し結果を記憶する手段、受信データを受信装置
の反転クロックで取り込む第1のデータ保持手段、第1
のデータ保持手段の出力を受信装置のクロックで取り込
む第2のデータ保持手段、受信データを受信装置のクロ
ックで取り込む第3のデータ保持手段とを備え、前記記
憶された判定結果により、前記第2のデータ保持手段出
力と前記第3のデータ保持手段の出力のいずれか一方を
選択し同期化受信データとすることを特徴とする装置間
の同期回路。
1. A transmitter is provided with a circuit for generating a test signal of a constant cycle using a clock of the transmitter in response to a test instruction and transmitting the test signal to a data transmission path, and a receiver is provided with the test signal in response to the test instruction. A circuit for generating a test signal of the same cycle and the same pattern by using a clock of the receiving device, means for discriminating the phase difference between the output of the receiving device and the receiving output of the test signal of the transmitting device, and storing the result, receiving data for the receiving device First data holding means for fetching with the inverted clock of
The second data holding means for fetching the output of the data holding means at the clock of the receiving device and the third data holding means for fetching the received data at the clock of the receiving device, and the second data holding means according to the stored determination result. 2. A synchronizing circuit between devices, characterized in that either one of the output of the data holding means and the output of the third data holding means is selected as the synchronized reception data.
【請求項2】 前記の装置間同期回路において、前記受
信装置の入力部に、前記送信装置よりデータと同等の伝
送路で伝送される送信装置クロックの反転信号により前
記伝送されたデータを取り込み、前記受信データとする
第4のデータ保持手段を有することを特徴とする請求項
1記載の装置間の同期回路。
2. In the inter-device synchronization circuit, the transmitted data is taken into an input section of the receiving device by an inverted signal of a transmitting device clock transmitted from the transmitting device through a transmission line equivalent to the data, 2. The inter-device synchronization circuit according to claim 1, further comprising a fourth data holding unit for storing the received data.
【請求項3】 前記送信装置テスト信号の受信出力を受
け、その出力のパルス幅を若干縮小し、前記テスト信号
間位相差の区分判定回路に渡すタイミング補償回路を設
け、前記判定回路がタイミングマージンを考慮した判定
を行うことを特徴とする請求項1、又は2記載の装置間
の同期回路。
3. A timing compensation circuit is provided, which receives a received output of the transmitter test signal, slightly reduces the pulse width of the output, and passes the pulse width to the test signal phase difference classification determination circuit, wherein the determination circuit is a timing margin. 3. The inter-device synchronization circuit according to claim 1, wherein the determination is performed in consideration of.
【請求項4】 前記の装置間同期回路において、データ
幅がn(nは自然数)ビットの場合、nビットの内の1
ビットについてのみ、送信装置からのテスト信号と受信
装置内部のテスト信号の位相差の区分を判定する手段を
有し、前記1ビットの位相差区分の判定結果に基づき、
nビットのデータについて、前記第2のデータ保持手段
出力と前記第3のデータ保持手段出力のいずれか一方を
選択し、同期化受信データとすることを特徴とする請求
項3記載の装置間の同期回路。
4. In the inter-device synchronization circuit, if the data width is n (n is a natural number) bits, 1 out of n bits is set.
Only for bits, there is a means for determining the phase difference classification of the test signal from the transmitter and the test signal inside the receiver, and based on the judgment result of the 1-bit phase difference classification,
4. The apparatus according to claim 3, wherein for n-bit data, either one of the output of the second data holding means and the output of the third data holding means is selected and used as the synchronized reception data. Synchronous circuit.
【請求項5】 前記送信装置と受信装置が同時に電源を
供給される場合に、送信装置の電源確定信号から所定時
間Aまでの期間を規定する第1のタイマー、受信装置の
電源確定信号から所定時間B(B<A)までの期間を規
定する第2のタイマーを、それぞれ送信装置、受信装置
に設け、各装置で自装置のタイマーが規定する期間、前
記テスト指示をオンとすることを特徴とする請求項4記
載の装置間の同期回路。
5. A first timer that defines a period from a power supply confirmation signal of the transmission device to a predetermined time A when the transmission device and the reception device are simultaneously supplied with power, and a predetermined timer from a power supply confirmation signal of the reception device. A second timer that defines a period up to time B (B <A) is provided in each of the transmission device and the reception device, and each device turns on the test instruction for a period defined by the timer of its own device. The synchronous circuit between the devices according to claim 4.
【請求項6】 前記送信装置と受信装置が同時に電源を
供給される場合に、送信装置に送信装置の電源確定信号
から所定時間Aまでの期間を規定する第1のタイマーを
設け、該規定期間送信装置のテスト指示をオンとし、受
信装置に前記同期化受信データライン上の受信テスト信
号のパルスをカウントし、カウントが所定時間Aより十
分短かい時間に対応した所定数に至ったことを検出する
カウンタ手段を設け、受信装置の電源確定から前記検出
までの期間受信装置のテスト指示をオンとし、前記検出
時に前記位相差の区分判定結果を前記記憶手段に設定す
ることを特徴とする請求項4記載の装置間の同期回路。
6. When the transmitter and the receiver are supplied with power at the same time, the transmitter is provided with a first timer for defining a period from a power supply confirmation signal of the transmitter to a predetermined time A, and the prescribed period. The test instruction of the transmission device is turned on, the reception device counts the pulses of the reception test signal on the synchronized reception data line, and it is detected that the count has reached a predetermined number corresponding to a time sufficiently shorter than the predetermined time A. 7. A counter means for controlling the receiver is turned on, a test instruction of the receiving device is turned on during a period from the power supply confirmation of the receiving device to the detection, and the phase difference classification determination result is set in the storage device at the time of the detection. 4. A synchronization circuit between the devices described in 4.
JP2000050634A 2000-02-28 2000-02-28 Synchronous circuit between devices Expired - Fee Related JP3408486B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000050634A JP3408486B2 (en) 2000-02-28 2000-02-28 Synchronous circuit between devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000050634A JP3408486B2 (en) 2000-02-28 2000-02-28 Synchronous circuit between devices

Publications (2)

Publication Number Publication Date
JP2001244920A JP2001244920A (en) 2001-09-07
JP3408486B2 true JP3408486B2 (en) 2003-05-19

Family

ID=18572398

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000050634A Expired - Fee Related JP3408486B2 (en) 2000-02-28 2000-02-28 Synchronous circuit between devices

Country Status (1)

Country Link
JP (1) JP3408486B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5092794B2 (en) * 2008-02-26 2012-12-05 日本電気株式会社 Frame pulse signal latch circuit and phase adjustment method
JP5451318B2 (en) 2009-10-29 2014-03-26 ラピスセミコンダクタ株式会社 Transmission device, signal transmission device, signal reception device and transmission method, signal transmission method, signal reception method
JP5856986B2 (en) * 2013-01-21 2016-02-10 株式会社日立製作所 Metastable prevention type synchronization circuit

Also Published As

Publication number Publication date
JP2001244920A (en) 2001-09-07

Similar Documents

Publication Publication Date Title
JP2007317016A (en) Interface circuit and memory control device
US7808846B2 (en) Semiconductor memory device
JP4419067B2 (en) Semiconductor device, memory device and memory module having digital interface
US8589717B1 (en) Serial peripheral interface
JP4119581B2 (en) Data transmission device, data output device, and data transmission method
EP1946475B1 (en) Data interface and method of seeking synchronization
JP3408486B2 (en) Synchronous circuit between devices
KR100817270B1 (en) Interface device and method for synchronizing data
KR101334111B1 (en) Quad-data rate controller and realization method thereof
CN110047552A (en) A kind of memory reading speed measuring circuit
CN111208867B (en) DDR (double data Rate) read data integer clock cycle-based synchronization circuit and synchronization method
US6744834B1 (en) Method and apparatus for initializing a synchronizer for same frequency, phase unknown data across multiple bit-sliced interfaces
JPH03171945A (en) Digital system
JPH04178047A (en) Skew compensation system
JP4945616B2 (en) Semiconductor device having digital interface
JPH08329000A (en) Information processor
SU1443745A1 (en) Multichannel device for shaping pulse sequences
JP2010213204A (en) Data transmitting/receiving method
JP3491374B2 (en) Bit error rate measurement device
KR20210081081A (en) Transmission enable signal generation circuit and integrated circuit
IL264939A (en) Circuitries and methods of preventing variable latencies caused by meta-stability
JPH10242951A (en) Pseudo random pattern draw in circuit
JPH08316942A (en) Asynchronous data transmission circuit
JPS6048076B2 (en) Inter-device interface method
JPH09135236A (en) Frame timing phase adjusting circuit

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20030218

LAPS Cancellation because of no payment of annual fees