JP2001148686A - Digital signal transmitting and receiving system - Google Patents

Digital signal transmitting and receiving system

Info

Publication number
JP2001148686A
JP2001148686A JP32937999A JP32937999A JP2001148686A JP 2001148686 A JP2001148686 A JP 2001148686A JP 32937999 A JP32937999 A JP 32937999A JP 32937999 A JP32937999 A JP 32937999A JP 2001148686 A JP2001148686 A JP 2001148686A
Authority
JP
Japan
Prior art keywords
clock
read clock
data
read
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.)
Pending
Application number
JP32937999A
Other languages
Japanese (ja)
Inventor
Takashi Yano
貴志 矢野
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP32937999A priority Critical patent/JP2001148686A/en
Publication of JP2001148686A publication Critical patent/JP2001148686A/en
Pending legal-status Critical Current

Links

Landscapes

  • Time-Division Multiplex Systems (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a digital signal transmitting/receiving system which has a small-scale circuit constitution and can surely transmit and receive the asynchronous data. SOLUTION: In a digital signal transmitting/receiving system where the data signal WDT sent from a device 10 of the transmitting side is latched by the read clock signal of a device 20 of the receiving side, the phase of a write clock WCK that is sent from the device 10 to the device 20 is compared with the phases of 1st and 2nd read clocks RCK1 and RCK2 respectively. When the phase of the clock WCK is coincident with the phase of one of both clocks RCK1 and RCK2, a clock selection part 21 switches a read clock RCK to one of both clocks RCK1 and RCK2 that has its phase which is not coincident with the phase of the clock WCK.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、伝送線路内で信号
がジッタやワンダを受ける場合、あるいは、データを送
受信する2つの装置がそれぞれ異なる発振源から得られ
たクロックで動作する場合などに、データ送受信の誤り
をなくすデジタル信号送受信方式に関する。
BACKGROUND OF THE INVENTION The present invention relates to a case where a signal receives jitter or wander in a transmission line, or a case where two devices for transmitting and receiving data operate with clocks obtained from different oscillation sources. The present invention relates to a digital signal transmission / reception method for eliminating data transmission / reception errors.

【0002】[0002]

【従来の技術】従来のデジタル信号送受信方式について
図14を参照して説明する。図14では、符号140を
送信側装置、符号150を受信側装置として説明する。
送信側装置140は、発振源141で生成されたクロッ
クAに乗せて、図(b)に示されるようなデータ信号A
を受信側装置150に送る。受信側装置150は、クロ
ック乗せ替え部151において、発振源152で生成さ
れたクロックBをもとにクロックの乗せ替えを行い、デ
ータ信号Bを出力する。この場合、データ信号Aは、ク
ロックBのたとえば立ち上がりエッジでラッチされる。
2. Description of the Related Art A conventional digital signal transmission / reception system will be described with reference to FIG. In FIG. 14, a description will be given with reference numeral 140 as a transmitting device and reference numeral 150 as a receiving device.
The transmission-side device 140 places the data signal A as shown in FIG.
Is sent to the receiving device 150. In the receiving device 150, the clock transfer unit 151 performs clock transfer based on the clock B generated by the oscillation source 152, and outputs a data signal B. In this case, the data signal A is latched at the rising edge of the clock B, for example.

【0003】上記した構成において、伝送路Lに外乱な
どがあり、送信側装置140のクロックAと受信側装置
150のクロックBとの間に位相のゆらぎがあると、図
(c)に示すようにデータ信号Aの変化点とクロックB
の立ち上がりエッジが一致し、データ信号Bに誤りが発
生する。このような場合、データ信号AとクロックBと
の位相関係がそのままの状態で安定化すると、データ信
号Bの誤りが継続する。
In the above configuration, if there is a disturbance in the transmission line L and there is a phase fluctuation between the clock A of the transmitting device 140 and the clock B of the receiving device 150, as shown in FIG. At the transition point of the data signal A and the clock B
Rising edges coincide with each other, and an error occurs in the data signal B. In such a case, if the phase relationship between the data signal A and the clock B is stabilized without change, the error of the data signal B continues.

【0004】上記した問題を解決するために、受信側装
置に複数のバッファメモリを設け、送信側装置から送ら
れてきたデータ信号を複数のバッファメモリにそれぞれ
別々のタイミングで書き込む方法がある。通常の状態で
は、1つのバッファメモリからデータを読み出し、デー
タ信号と読み出しクロックの位相関係が変化して、デー
タ信号に誤りが生じる可能性が出てきた場合に、別のバ
ッファメモリからデータ信号を読み出す方法である。
In order to solve the above problem, there is a method in which a plurality of buffer memories are provided in a receiving device, and data signals sent from a transmitting device are written into the plurality of buffer memories at different timings. In a normal state, data is read from one buffer memory, and when the phase relationship between the data signal and the read clock changes and there is a possibility that an error occurs in the data signal, the data signal is read from another buffer memory. This is a reading method.

【0005】[0005]

【発明が解決しようとする課題】上記したように、受信
側装置に複数のバッファメモリを設ければ、データ信号
の誤りを回避できる。しかし、多数の並列信号を送受信
するような場合、バッファメモリの数が多くなり、回路
規模が大型化するという問題がある。
As described above, if a plurality of buffer memories are provided in the receiving apparatus, errors in the data signal can be avoided. However, when transmitting and receiving a large number of parallel signals, there is a problem that the number of buffer memories increases and the circuit scale increases.

【0006】本発明は、上記した欠点を解決し、小規模
な回路で構成で、非同期データを確実に送受信できるデ
ジタル信号送受信方式を提供することを目的とする。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a digital signal transmission / reception system which solves the above-mentioned drawbacks and can reliably transmit and receive asynchronous data with a small circuit.

【0007】[0007]

【課題を解決するための手段】本発明は、送信側は、デ
ータ信号およびデータ信号に同期した書込みクロックを
送信し、受信側は、前記送信側から送られてきた前記デ
ータ信号を受信側の読出しクロック信号でラッチしてデ
ータ信号の送受信を行うデジタル信号送受信方式におい
て、前記受信側は、互いに同期した第1読出しクロック
および第2読出しクロックを生成するクロック生成手段
と、前記書込みクロックと前記第1読出しクロックの位
相を比較する第1位相比較手段と、前記書込みクロック
と前記第2読出しクロックの位相を比較する第2位相比
較手段とを有し、前記書込みクロックと前記第1読出し
クロックの位相が一致した場合は、前記読出しクロック
を前記第2読出しクロックに切り替え、前記書込みクロ
ックと前記第2読出しクロックの位相が一致した場合
は、前記読出しクロックを前記第1読出しクロックに切
り替えることを特徴としている。
According to the present invention, a transmitting side transmits a data signal and a write clock synchronized with the data signal, and a receiving side transmits the data signal transmitted from the transmitting side to a receiving side. In a digital signal transmitting and receiving method in which a data signal is transmitted and received by latching with a read clock signal, the receiving side includes: clock generating means for generating a first read clock and a second read clock synchronized with each other; A first phase comparator for comparing the phases of one read clock; and a second phase comparator for comparing the phases of the write clock and the second read clock, wherein the phases of the write clock and the first read clock are provided. If the two match, the read clock is switched to the second read clock, and the write clock and the second read clock are switched. Is the case where the phase of the clock are matched, and characterized in that switches the read clock to the first read clock.

【0008】[0008]

【発明の実施の形態】本発明の実施形態について図1を
参照して説明する。符号10は送信側装置で、符号20
は受信側装置である。受信側装置20は、クロック選択
部21やデータラッチ部22などから構成されている。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described with reference to FIG. Reference numeral 10 denotes a transmitting device, and reference numeral 20 denotes
Is a receiving side device. The receiving device 20 includes a clock selection unit 21, a data latch unit 22, and the like.

【0009】クロック選択部21には、送信側装置10
から送られてくる書込みクロックWCK、および、書込
みクロックWCKと非同期の受信側装置20で生成され
た第1および第2の読出しクロックRCK1、RCK2
が入力する。そして、読出しクロックRCKを出力す
る。
[0009] The clock selecting unit 21 includes
, And the first and second read clocks RCK1 and RCK2 generated by the receiving device 20 asynchronous with the write clock WCK.
Enter. Then, a read clock RCK is output.

【0010】データラッチ部22には、クロック選択部
21から出力された読出しクロックRCK、および、第
2読出しクロックRCK2をNOT回路23で反転した
信号、送信側装置10から送られてくるデータ信号WD
Tがそれぞれ入力する。データ信号WDTは、たとえば
単一または複数のNRZデータ信号系列で、書込みクロ
ックWCKと同期し、書込みクロックWCKのたとえば
立ち上がりエッジに変化点を有している。そして、デー
タラッチ部22はデータ信号RDTを出力する。
The data latch unit 22 includes a read clock RCK output from the clock selection unit 21, a signal obtained by inverting the second read clock RCK 2 by the NOT circuit 23, and a data signal WD sent from the transmission side device 10.
T inputs respectively. The data signal WDT is, for example, a single or a plurality of NRZ data signal sequences, is synchronized with the write clock WCK, and has a transition point, for example, at a rising edge of the write clock WCK. Then, the data latch unit 22 outputs the data signal RDT.

【0011】上記した各信号のタイミングは、たとえば
図2(a)〜(f)のように示される。
The timing of each of the above-mentioned signals is shown, for example, in FIGS.

【0012】ここで、受信側装置20について図3を参
照して説明する。図3は、図1および図2に対応する部
分に同一の符号を付し、重複する説明は一部省略する。
Here, the receiving apparatus 20 will be described with reference to FIG. In FIG. 3, parts corresponding to those in FIGS. 1 and 2 are denoted by the same reference numerals, and overlapping description is partially omitted.

【0013】クロック選択部21は、論理和回路(以下
AND回路という)で構成された2つの位相比較回路2
11、212、およびR−Sラッチ回路213、選択回
路214から構成されている。選択回路214は、2つ
のAND回路a1、a2、AND回路a1の入力側に位
置するNOT回路a3、2つのAND回路a1、a2の
出力側に位置するOR回路a4から構成されている。
The clock selection unit 21 includes two phase comparison circuits 2 composed of an OR circuit (hereinafter referred to as an AND circuit).
11, 212, an RS latch circuit 213, and a selection circuit 214. The selection circuit 214 includes two AND circuits a1 and a2, a NOT circuit a3 located on the input side of the AND circuit a1, and an OR circuit a4 located on the output side of the two AND circuits a1 and a2.

【0014】データラッチ部22は、Dフリップフロッ
プで構成された2つのデータラッチ回路221、222
が縦属接続された複数組が並列に接続されている。1段
目のデータラッチ回路221にはそれぞれ、送信側装置
から送られてくるデータ信号WDT0 〜WDTn および
読出しクロックRCKが入力する。2段目のデータラッ
チ回路222には、1段目のデータラッチ回路221の
出力が直接入力し、同時に、第2読出しクロックRCK
2がNOT回路23を経て入力する。
The data latch section 22 has two data latch circuits 221 and 222 each composed of a D flip-flop.
Are connected in parallel. Data signals WDT0 to WDTn and a read clock RCK sent from the transmission side device are input to the first-stage data latch circuit 221 respectively. The output of the first-stage data latch circuit 221 is directly input to the second-stage data latch circuit 222, and at the same time, the second read clock RCK is input.
2 is input via the NOT circuit 23.

【0015】上記した構成において、位相比較回路21
1で書込みクロックWCKと第1読出しクロックRCK
1が位相比較され、また、位相比較回路212で書込み
クロックWCKと第2読出しクロックRCK2が位相比
較される。このとき、位相比較される互いのクロックが
重なっていると、位相比較回路211、212の出力は
真となる。第1読出しクロックRCK1と第2読出しク
ロックRCK2は互いに同期し、図2(c)に示すよう
に、両者のパルス間隔BおよびCは書込みクロックWC
Kのパルス幅Aよりも広くなっている。そのため、2つ
の位相比較回路211、212の出力が同時に真になる
ことはない。
In the above configuration, the phase comparison circuit 21
1, the write clock WCK and the first read clock RCK
1 are compared in phase, and the phase comparison circuit 212 compares the phases of the write clock WCK and the second read clock RCK2. At this time, if the clocks whose phases are compared overlap with each other, the outputs of the phase comparison circuits 211 and 212 become true. The first read clock RCK1 and the second read clock RCK2 are synchronized with each other, and as shown in FIG.
It is wider than the pulse width A of K. Therefore, the outputs of the two phase comparison circuits 211 and 212 do not become true at the same time.

【0016】位相比較回路211、212の出力はR−
Sラッチ回路213に入力し、選択制御信号をラッチす
る。選択制御信号は、選択回路214のNOT回路a3
を経てのAND回路a1に入力し、また、AND回路a
2に直接入力する。AND回路a1には第1読出しクロ
ックRCK1が、また、AND回路a2には第2読出し
クロックRCK2が入力し、第1および第2の読出しク
ロックRCK1、RCK2のいずれか一方が選択され、
OR回路a4から読出しクロックRCKとして出力す
る。たとえば、位相比較回路211の出力が真のときは
第2読出しクロックRCK2が選択され、位相比較回路
212の出力が真のときは第1読出しクロックRCK1
が選択される。
The outputs of the phase comparison circuits 211 and 212 are R-
The signal is input to the S latch circuit 213 to latch the selection control signal. The selection control signal is output from the NOT circuit a3 of the selection circuit 214.
Is input to the AND circuit a1 through the
Input directly to 2. A first read clock RCK1 is input to the AND circuit a1, a second read clock RCK2 is input to the AND circuit a2, and one of the first and second read clocks RCK1 and RCK2 is selected.
Output from the OR circuit a4 as the read clock RCK. For example, when the output of phase comparison circuit 211 is true, second read clock RCK2 is selected, and when the output of phase comparison circuit 212 is true, first read clock RCK1 is selected.
Is selected.

【0017】読出しクロックRCKは、データラッチ部
22における1段目のデータラッチ回路221のラッチ
クロックとなる。この場合、読出しクロックRCKはデ
ータ信号WDTの変化点と一致しないため、確実にデー
タをラッチし、データ信号に誤りは発生しない。ラッチ
されたデータは、2段目のデータラッチ回路222で再
度ラッチされ、データラッチ部22から出力されるデー
タ信号RDT0 〜RDTn の位相が常に一定となるよう
にされる。
The read clock RCK is a latch clock for the first-stage data latch circuit 221 in the data latch unit 22. In this case, since the read clock RCK does not coincide with the transition point of the data signal WDT, the data is reliably latched, and no error occurs in the data signal. The latched data is latched again by the second-stage data latch circuit 222, so that the phases of the data signals RDT0 to RDTn output from the data latch unit 22 are always constant.

【0018】上記した構成によれば、第2読出しクロッ
クRCK2のたとえば立ち下がりでラッチがかかり、送
信側のデータ信号WDTは、図2(f)に示すように、
クロックを乗せ替えたデータ信号RDTに変換される。
この場合、データ信号WDTの変化点と第1読出しクロ
ックRCK1または第2読出しクロックRCK2の変化
点とが一致する状況が継続しても、データ信号WDT
は、変化点が一致していないいずれか一方の読出しクロ
ックでラッチされ、データ信号の誤りが回避される。
According to the above configuration, latching is performed, for example, at the falling edge of the second read clock RCK2, and the data signal WDT on the transmission side is, as shown in FIG.
The data signal RDT is converted to a data signal RDT obtained by changing the clock.
In this case, even if the change point of data signal WDT and the change point of first read clock RCK1 or second read clock RCK2 continue to match, data signal WDT
Are latched by either one of the read clocks whose change points do not match, thereby avoiding an error in the data signal.

【0019】ところで、上記した構成の場合、第1読出
しクロックRCK1から第2読出しクロックRCK2に
切り替える状況、逆に、第2読出しクロックRCK2か
ら第1読出しクロックRCK1に切り替える状況には、
次の4通りの切替パターンがある。
By the way, in the case of the above-described configuration, a situation where the first read clock RCK1 is switched to the second read clock RCK2, and conversely, a situation where the second read clock RCK2 is switched to the first read clock RCK1,
There are the following four switching patterns.

【0020】まず、第1の切替パターンについて図4で
説明する。図4は、書込みクロックWCKおよびデータ
信号WDTを基準としてこれらを時間領域で固定し、第
1および第2の読出しクロックRCK1、RCK2の両
方が、矢印で示すように左方向に移動していく状況を示
している。この場合、切替が発生する前は、第1読出し
クロックRCK1でデータ信号WDTをラッチしている
ものとする。時間tにおいて、第1読出しクロックRC
K1が書込みクロックWCKと重なる(図3のAND回
路211の出力が真となる)と、即座に読出しクロック
が第2読出しクロックRCK2に切り替わる。そして、
ラッチ出力を第2読出しクロックRCK2の立ち下がり
エッジで再度ラッチする。この場合、切り替えの前後に
おいて、出力されるデータ信号RDTは、図(f)に示
すように重複や欠落などが生じない。
First, the first switching pattern will be described with reference to FIG. FIG. 4 shows a situation where the write clock WCK and the data signal WDT are fixed in the time domain with respect to each other, and both the first and second read clocks RCK1 and RCK2 move leftward as indicated by arrows. Is shown. In this case, it is assumed that the data signal WDT is latched by the first read clock RCK1 before the switching occurs. At time t, the first read clock RC
When K1 overlaps with the write clock WCK (the output of the AND circuit 211 in FIG. 3 becomes true), the read clock is immediately switched to the second read clock RCK2. And
The latch output is latched again at the falling edge of the second read clock RCK2. In this case, before and after the switching, the output data signal RDT does not have duplication or omission as shown in FIG.

【0021】なお、図4(e)のRCK2は、RCK2
の極性を反転した信号を示し、以下、極性を反転した信
号は下線を引いて示す。
It should be noted that RCK2 in FIG.
The signal whose polarity is inverted is shown below, and the signal whose polarity is inverted is shown with an underline.

【0022】次に、第2の切替パターンについて図5で
説明する。図5は、書込みクロックWCKおよびデータ
信号WDTを基準としてこれらを時間領域で固定し、第
1および第2の読出しクロックRCK1、RCK2の両
方が、矢印で示すように左方向に移動していく状況を示
している。この場合、切替が発生する前は、第2読出し
クロックRCK2でデータ信号WDTをラッチしている
ものとする。時間tにおいて、第2読出しクロックRC
K2が書込みクロックWCKと重なる(図3のAND回
路212の出力が真となる)と、即座に読出しクロック
が第1読出しクロックRCK1に切り替わる。このと
き、図3のデータラッチ部12を構成する1段目のデー
タラッチ回路221の切替が間に合わないため、たとえ
ばデータ#1が、切替の発生する瞬間の第2読出しクロ
ックRCK2および切替完了後の第1読出しクロックR
CK1でラッチされる。その結果、図の(f)に示すよ
うに、出力されるデータ信号RDTはデータ#1が重複
して出力する。
Next, the second switching pattern will be described with reference to FIG. FIG. 5 shows a situation in which the write clock WCK and the data signal WDT are fixed in the time domain with respect to each other, and both the first and second read clocks RCK1 and RCK2 move leftward as indicated by arrows. Is shown. In this case, it is assumed that the data signal WDT is latched by the second read clock RCK2 before the switching occurs. At time t, the second read clock RC
When K2 overlaps with the write clock WCK (the output of the AND circuit 212 in FIG. 3 becomes true), the read clock is immediately switched to the first read clock RCK1. At this time, switching of the data latch circuit 221 of the first stage constituting the data latch unit 12 in FIG. 3 cannot be made in time, so that, for example, the data # 1 is changed to the second read clock RCK2 at the moment when the switching occurs and after the completion of the switching. First read clock R
Latched at CK1. As a result, as shown in (f) of the figure, the output data signal RDT has data # 1 redundantly output.

【0023】次に、第3の切替パターンについて図6で
説明する。図6は、書込みクロックWCKおよびデータ
信号WDTを基準としてこれらを時間領域で固定し、第
1および第2の読出しクロックRCK1、RCK2の両
方が、矢印で示すように右方向に移動していく状況を示
している。この場合、切替が発生する前は、第2読出し
クロックRCK2でデータ信号WDTをラッチしている
ものとする。時間tにおいて、第2読出しクロックRC
K2とデータ信号WCKと重なる(図3のAND回路2
12の出力が真となる)と、読出しクロックが第1読出
しクロックRCK1に切り替わる。そして、ラッチ出力
を第2読出しクロックRCK2の立ち下がりエッジで再
度ラッチする。この場合、切り替えの前後において、出
力されるデータ信号RDTは、図の(f)に示すように
重複や欠落などが生じない。
Next, the third switching pattern will be described with reference to FIG. FIG. 6 shows a situation in which these are fixed in the time domain with reference to the write clock WCK and the data signal WDT, and both the first and second read clocks RCK1 and RCK2 move rightward as indicated by arrows. Is shown. In this case, it is assumed that the data signal WDT is latched by the second read clock RCK2 before the switching occurs. At time t, the second read clock RC
K2 and the data signal WCK overlap (AND circuit 2 in FIG. 3)
12 becomes true), the read clock is switched to the first read clock RCK1. Then, the latch output is latched again at the falling edge of the second read clock RCK2. In this case, before and after the switching, the output data signal RDT does not have any duplication or omission as shown in FIG.

【0024】次に、第4の切替パターン4について図7
で説明する。図7は、書込みクロックWCKおよびデー
タ信号WDTを基準としてこれらを時間領域で固定し、
第1および第2の読出しクロックRCK1、RCK2の
両方が、矢印で示すように右方向に移動していく状況を
示している。この場合、切替が起こる前は、第1読出し
クロックRCK1でデータ信号WDTをラッチしている
ものとする。時間tにおいて、第1読出しクロックRC
K1がデータ信号WCKと重なる(図3のAND回路2
11の出力が真となる)と、即座に読出しクロックが第
2読出しクロックRCK2に切り替わる。また、ラッチ
出力を第2読出しクロックRCK2の立ち下がりエッジ
で再度ラッチする。この場合、切り替え時において、出
力されるデータ信号RDTは、図の(f)に示すよう
に、1タイムスロット分のデータ#1が欠落する。
Next, the fourth switching pattern 4 shown in FIG.
Will be described. FIG. 7 shows that these are fixed in the time domain on the basis of the write clock WCK and the data signal WDT,
This shows a situation where both the first and second read clocks RCK1 and RCK2 move rightward as indicated by arrows. In this case, it is assumed that the data signal WDT is latched by the first read clock RCK1 before the switching occurs. At time t, the first read clock RC
K1 overlaps the data signal WCK (AND circuit 2 in FIG. 3)
11 becomes true), the read clock is immediately switched to the second read clock RCK2. Further, the latch output is latched again at the falling edge of the second read clock RCK2. In this case, at the time of switching, the output data signal RDT lacks data # 1 for one time slot, as shown in FIG.

【0025】上記したように、第2の切替パターンおよ
び第4の切替パターンでは、読出しクロックを切り替え
た場合にデータの重複や欠落が起こる。このような問題
は一定の状況下では回避が困難で、データに不連続が発
生した場合など、回路によって適切な処置が必要とな
る。
As described above, in the second switching pattern and the fourth switching pattern, duplication or omission of data occurs when the read clock is switched. Such a problem is difficult to avoid under certain circumstances, and an appropriate measure is required depending on the circuit when data discontinuity occurs.

【0026】ここで、本発明の他の実施形態として、読
出しクロックを切替えた場合に、データの重複や欠落が
発生したか、発生しなかったを通知する機能を設けた例
を図8を参照して説明する。また、図8における各信号
のタイミングを図12に示す。
Here, as another embodiment of the present invention, FIG. 8 shows an example in which a function for notifying whether duplication or omission of data has occurred or not occurred when a read clock is switched is provided. I will explain. FIG. 12 shows the timing of each signal in FIG.

【0027】符号81はタイミング生成部で、タイミン
グ生成部81には、第1読出しクロックRCK1、およ
び、第1読出しクロックRCK1と同期したとえば8倍
の周波数をもつクロックRCが入力する。そして、第2
読出しクロックRCK2、ネガティブクリア信号NC
L、イネーブル信号ENを出力する。
Reference numeral 81 denotes a timing generator, to which a first read clock RCK1 and a clock RC synchronized with the first read clock RCK1 and having, for example, an eight-fold frequency are input. And the second
Read clock RCK2, negative clear signal NC
L, and outputs an enable signal EN.

【0028】符号82はクロック選択部で、クロック選
択部82には、送信側装置(図示せず)から送られてく
る書込みクロックWCK、および、読出しクロックRC
K1、クロックRCが入力し、さらに、タイミング生成
部81から出力される第2読出しクロックRCK2やネ
ガティブクリア信号NCL、イネーブル信号ENが入力
する。そして、読出しクロックRCKやNORM(デー
タ信号のラッチにエラーがない状態)、LOST(デー
タ信号にデータの欠落が発生した状態)、DUPL(デ
ータ信号にデータの重複が発生した状態)の各信号を出
力する。
Reference numeral 82 denotes a clock selection unit. The clock selection unit 82 has a write clock WCK and a read clock RC sent from a transmission side device (not shown).
K1 and the clock RC are input, and further, the second read clock RCK2 output from the timing generation unit 81, the negative clear signal NCL, and the enable signal EN are input. Then, the read clock RCK, NORM (a state where there is no error in the latch of the data signal), LOST (a state where data is missing in the data signal), and DUPL (a state where data duplication occurs in the data signal) are performed. Output.

【0029】符号83はデータラッチ部で、データラッ
チ部83には送信側装置(図示せず)から送られてくる
データ信号WDTおよび読出しクロックRCK、NOT
回路を経て第2読出しクロックRCK2がそれぞれ入力
する。そして、データ信号RDTを出力する。
Reference numeral 83 denotes a data latch unit. The data latch unit 83 has a data signal WDT and read clocks RCK and NOT sent from a transmission side device (not shown).
The second read clock RCK2 is input via the circuit. Then, it outputs a data signal RDT.

【0030】ここで、上記のタイミング生成部81につ
いて図9を参照して説明する。タイミング生成部81
は、第2読出しクロックRCK2などのタイミング信号
を生成する。符号IN1、IN2は入力端子で、入力端
子IN1、IN2に、Dフリップフロップで構成された
3個のデータラッチ回路D1、D2、D3が縦属接続さ
れている。3段目のデータラッチ回路D3に、Dフリッ
プフロップで構成されたデータラッチ回路D4が接続さ
れている。データラッチ回路D1とデータラッチ回路D
4にR−Sラッチ回路R1が接続され、R−Sラッチ回
路R1は出力端子OUT1に接続されている。なお、デ
ータラッチ回路D3は出力端子OUT2に接続されてい
る。また、データラッチ回路D4はNOT回路N1を介
して入力端子IN2に接続され、かつ、データラッチ回
路D5に接続されている。データラッチ回路D5は、N
OT回路N1を介して入力端子IN2に接続され、か
つ、出力端子OUT3に接続されている。
Here, the timing generator 81 will be described with reference to FIG. Timing generator 81
Generates a timing signal such as the second read clock RCK2. Reference characters IN1 and IN2 denote input terminals, and three data latch circuits D1, D2 and D3 each composed of a D flip-flop are cascade-connected to the input terminals IN1 and IN2. A data latch circuit D4 composed of a D flip-flop is connected to the third-stage data latch circuit D3. Data latch circuit D1 and data latch circuit D
4, the RS latch circuit R1 is connected, and the RS latch circuit R1 is connected to the output terminal OUT1. Note that the data latch circuit D3 is connected to the output terminal OUT2. The data latch circuit D4 is connected to the input terminal IN2 via the NOT circuit N1, and is connected to the data latch circuit D5. The data latch circuit D5 has N
It is connected to the input terminal IN2 via the OT circuit N1 and to the output terminal OUT3.

【0031】上記した構成において、入力端子IN1か
ら第1読出しクロックRCK1が入力し、入力端子IN
2からクロックRCが入力する。そして、出力端子0U
T1〜0UT3から、それぞれイネーブル信号EN、第
1読出しクロックRCK1と同期しタイミングの異なる
読出しクロックRCK2、ネガティブクリア信号NCL
が出力する。
In the above configuration, the first read clock RCK1 is input from the input terminal IN1, and the input terminal IN1
2, a clock RC is input. And the output terminal 0U
From T1 to 0UT3, an enable signal EN, a read clock RCK2 having a different timing in synchronization with the first read clock RCK1, and a negative clear signal NCL, respectively.
Output.

【0032】次に、クロック選択部82について図10
を参照して説明する。
Next, FIG.
This will be described with reference to FIG.

【0033】符号IN3〜IN8は入力端子で、入力端
子IN3、IN5にDフリップフロップで構成されたデ
ータラッチ回路D6が接続され、入力端子IN3、IN
6にDフリップフロップで構成されたデータラッチ回路
D7が接続されている。なお、入力端子IN3とデータ
ラッチ回路間にNOT回路N2が接続されている。デー
タラッチ回路D6、D7はAND回路A1、A2に接続
され、AND回路A1、A2はOR回路O1を経て出力
端子0UT4に接続されている。入力端子IN4、IN
5にAND回路A3が接続され、入力端子IN4、IN
6にAND回路A4が接続されている。AND回路A
3、A4はR−Sラッチ回路R2に接続されている。入
力端子IN7に、Dフリップフロップで構成されたデー
タラッチ回路D8、D9が接続され、データラッチ回路
D8、D9の1つの端子は入力端子IN8に接続されて
いる。また、R−Sラッチ回路R2は、NOT回路N
3、N4を経てそれぞれAND回路A1やデータラッチ
回路D8に接続され、また、AND回路A2やデータラ
ッチ回路D9に直接接続されている。データラッチ回路
D8は出力端子0UT5に接続され、データラッチ回路
D9は出力端子0UT6に接続され、データラッチ回路
D8、D9は排他的OR回路E1を経て出力端子0UT
7に接続されている。
Reference numerals IN3 to IN8 denote input terminals. The input terminals IN3 and IN5 are connected to a data latch circuit D6 composed of D flip-flops.
6 is connected to a data latch circuit D7 composed of a D flip-flop. Note that a NOT circuit N2 is connected between the input terminal IN3 and the data latch circuit. The data latch circuits D6 and D7 are connected to AND circuits A1 and A2, and the AND circuits A1 and A2 are connected to an output terminal 0UT4 via an OR circuit O1. Input terminals IN4, IN
5, an AND circuit A3 is connected to input terminals IN4 and IN4.
6 is connected to an AND circuit A4. AND circuit A
3, A4 is connected to the RS latch circuit R2. Data latch circuits D8 and D9 each composed of a D flip-flop are connected to the input terminal IN7, and one terminal of the data latch circuits D8 and D9 is connected to the input terminal IN8. Further, the RS latch circuit R2 includes a NOT circuit N
3 and N4, are connected to the AND circuit A1 and the data latch circuit D8, respectively, and are directly connected to the AND circuit A2 and the data latch circuit D9. The data latch circuit D8 is connected to the output terminal 0UT5, the data latch circuit D9 is connected to the output terminal 0UT6, and the data latch circuits D8 and D9 are connected to the output terminal 0UT via the exclusive OR circuit E1.
7 is connected.

【0034】上記した構成において、入力端子IN3〜
IN8から、クロックRC、書込みクロックWCK、第
1読出しクロックRCK1、第2読出しクロックRCK
2、イネーブル信号EN、ネガティブクリア信号NCL
が入力する。そして、出力端子0UT4〜OUT7から
読出しクロックRCK、DUPL(データ信号にデータ
の重複が発生した状態)、LOST(データ信号にデー
タの欠落が発生した状態)、NORM(データ信号のラ
ッチにエラーがない状態)の各信号が出力する。
In the above configuration, the input terminals IN3 to IN3
From IN8, a clock RC, a write clock WCK, a first read clock RCK1, a second read clock RCK
2. Enable signal EN, negative clear signal NCL
Enter. Then, read clocks RCK, DUPL (a state where data duplication occurs in the data signal), LOST (a state where data loss occurs in the data signal), and NORM (there is no error in the latch of the data signal) from the output terminals 0UT4 to OUT7. State).

【0035】上記したように、クロック選択部82で
は、ラッチクロックの切替えを行い、かつ、その切替え
が上記した切替パターン1〜4のどれに該当するかを排
他的に真となるNORM、LOST、DUPLの各信号
で通知する。なお、NORMはデータのラッチ時にエラ
ーがない場合、LOSTはデータが欠落した場合、DU
PLはデータ重複した場合に、それぞれ真となる。
As described above, the clock selecting unit 82 switches the latch clock, and determines which of the above switching patterns 1 to 4 is exclusively true by NORM, LOST, Notification is made with each signal of DUPL. Note that NORM indicates that there is no error when data is latched, and LOST indicates that DU has been lost when data is lost.
PL becomes true when data is duplicated.

【0036】次に、データラッチ部83について図11
を参照して説明する。
Next, the data latch unit 83 will be described with reference to FIG.
This will be described with reference to FIG.

【0037】符号IN9〜IN12は入力端子で、入力
端子IN10〜IN11nと入力端子IN9に、それぞ
れDフリップフロップで構成された2個のデータラッチ
回路D11、D12が縦属接続され、それぞれの2段目
のデータラッチ回路D12に出力端子OUT8〜OUT
9nが接続されている。
Reference characters IN9 to IN12 denote input terminals. Two data latch circuits D11 and D12 each composed of a D flip-flop are connected in cascade to the input terminals IN10 to IN11n and the input terminal IN9. The output terminals OUT8 to OUT8 are connected to the second data latch circuit D12.
9n are connected.

【0038】上記した構成において、入力端子IN10
〜IN11nからデータ信号WDT0 〜WDTn が1段
目のデータラッチ回路D11に入力する。このとき、1
段目のデータラッチ回路D11には、入力端子IN9か
ら第2読出しクロックRCK2の極性を反転したクロッ
RCK2も入力する。2段目のデータラッチ回路D1
2には、入力端子IN12から読出しクロックRCKが
入力する。そして、出力端子OUT8〜OUT9nに、
データ信号RDT0 〜RDTn が出力する。
In the above configuration, the input terminal IN10
ININ11n to the first stage data latch circuit D11. At this time, 1
The stage of the data latch circuit D11 is clock RCK2 obtained by inverting the polarity of the input terminal IN9 second read clock RCK2 also enter. Second stage data latch circuit D1
2, the read clock RCK is input from the input terminal IN12. And, to the output terminals OUT8 to OUT9n,
Data signals RDT0 to RDTn are output.

【0039】上記した構成によれば、図12の時間t1
で、第2読出しクロックRCK2と書込みクロックWC
Kが重なり、読出しクロックの切替えがあると、図
(m)に示すようにデータ#2の重複が発生する。この
場合、図(j)に示すように信号DUPLが真となる。
According to the above configuration, the time t1 in FIG.
And the second read clock RCK2 and the write clock WC
When K overlaps and the read clock is switched, duplication of data # 2 occurs as shown in FIG. In this case, the signal DUPL becomes true as shown in FIG.

【0040】また、時間t2で、第1読出しクロックR
CK1と書込みクロックWCKが重なり、読出しクロッ
クの切替えがあると、図(m)に示すようにデータ#4
が欠落する。この場合、図(k)に示すように信号LO
STが真となる。
At time t2, the first read clock R
When CK1 overlaps the write clock WCK and the read clock is switched, as shown in FIG.
Is missing. In this case, as shown in FIG.
ST becomes true.

【0041】また、データの重複や欠落がない場合は、
図(l)に示すように信号NORMが真となる。
If there is no duplication or omission of data,
The signal NORM becomes true as shown in FIG.

【0042】上記したようにデータラッチ部83では、
出力信号をラッチするタイミングでDUPL、LOS
T、NORMのいずれかの信号が真となる。このため、
たとえば信号DUPLが真の場合は、データ信号RDT
の出力を容認(ALLO)するなどの処理を行える。
As described above, in the data latch unit 83,
DUPL, LOS at the timing of latching the output signal
Either T or NORM signal becomes true. For this reason,
For example, if signal DUPL is true, data signal RDT
For example, processing such as accepting the output of (ALLO) can be performed.

【0043】なお、図10のクロック選択部82では、
入力端子IN3、IN5にデータラッチ回路D6が接続
され、入力端子IN3、IN6にデータラッチ回路D7
が接続され、また、入力端子IN3とデータラッチ回路
D7間にNOT回路N2が接続されている。ここで、こ
れらデータラッチ回路D6やデータラッチ回路D7の動
作について図13を参照して説明する。なお、図13で
は、図12に対応する部分には同じ符号を付し重複する
説明は省略する。
In the clock selector 82 shown in FIG.
A data latch circuit D6 is connected to the input terminals IN3 and IN5, and a data latch circuit D7 is connected to the input terminals IN3 and IN6.
Are connected, and a NOT circuit N2 is connected between the input terminal IN3 and the data latch circuit D7. Here, the operation of the data latch circuits D6 and D7 will be described with reference to FIG. In FIG. 13, portions corresponding to those in FIG. 12 are denoted by the same reference numerals, and redundant description will be omitted.

【0044】たとえば、時間tにおいて、書込みクロッ
クWCKと第2読出しクロックRCK2が一致し切替え
が発生する。このとき、データラッチ回路D6やデータ
ラッチ回路D7がないと、図(f)で示すように、読出
しクロックRCKにグリッチGが発生し、グリッチGの
幅によっては後段のラッチ部が誤動作する場合がある。
このような場合、データラッチ回路D6やデータラッチ
回路D7を設ければ、グリッチGの発生を防止できる。
For example, at time t, the write clock WCK and the second read clock RCK2 coincide, and switching occurs. At this time, if there is no data latch circuit D6 or data latch circuit D7, a glitch G occurs in the read clock RCK as shown in FIG. 7F, and depending on the width of the glitch G, the subsequent latch unit may malfunction. is there.
In such a case, if the data latch circuit D6 or the data latch circuit D7 is provided, generation of glitch G can be prevented.

【0045】また、図8の実施形態では、図12(a)
で示すように、第1読出しクロックRCK1のたとえば
8倍の周波数のクロックRCを用いている。このような
クロックRCを用いることにより、第1読出しクロック
RCK1より遅延した第2読出しクロックRCK2を生
成でき、また、データの重複や欠落を通知するDUP
L、LOST、NORMなどの各信号を生成でき、か
つ、グリッチの発生を防止できる。
In the embodiment shown in FIG. 8, FIG.
As shown in the figure, a clock RC having a frequency, for example, eight times the frequency of the first read clock RCK1 is used. By using such a clock RC, the second read clock RCK2 delayed from the first read clock RCK1 can be generated, and a DUP for notifying data duplication or loss is provided.
Each signal such as L, LOST, NORM, etc. can be generated, and the occurrence of glitch can be prevented.

【0046】上記した構成によれば、データを送受信す
る2つの装置や回路間を結ぶ伝送線路中で信号がジッタ
やワンダを受ける場合、あるいは、データを送受信する
2つの装置や回路がそれぞれ異なる発振源から得られた
クロックで動作する場合に、簡単な回路構成で、データ
の送受信にエラーがなく、データの送受信を円滑に行え
るデジタル信号送受信方式が得られる。
According to the above configuration, when a signal receives jitter or wander in a transmission line connecting between two devices or circuits for transmitting and receiving data, or when two devices or circuits for transmitting and receiving data have different oscillations. When operating with the clock obtained from the source, a digital signal transmission / reception system can be obtained which has a simple circuit configuration, has no error in data transmission / reception, and can smoothly transmit / receive data.

【0047】[0047]

【発明の効果】本発明によれば、小規模な回路で構成
で、非同期データを確実に送受信できるデジタル信号送
受信方式を実現できる。
According to the present invention, it is possible to realize a digital signal transmission / reception system capable of reliably transmitting and receiving asynchronous data with a small-scale circuit.

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

【図1】本発明の実施形態を説明する回路構成図であ
る。
FIG. 1 is a circuit configuration diagram illustrating an embodiment of the present invention.

【図2】本発明の実施形態を説明するための信号のタイ
ミングを示す図である。
FIG. 2 is a diagram showing signal timings for explaining an embodiment of the present invention.

【図3】本発明の実施形態を説明する回路構成図であ
る。
FIG. 3 is a circuit configuration diagram illustrating an embodiment of the present invention.

【図4】本発明の実施形態における第1切替パターンを
説明するための図である。
FIG. 4 is a diagram illustrating a first switching pattern according to the embodiment of the present invention.

【図5】本発明の実施形態における第2切替パターンを
説明するための図である。
FIG. 5 is a diagram for explaining a second switching pattern in the embodiment of the present invention.

【図6】本発明の実施形態における第3切替パターンを
説明するための図である。
FIG. 6 is a diagram illustrating a third switching pattern according to the embodiment of the present invention.

【図7】本発明の実施形態における第4切替パターンを
説明するための図である。
FIG. 7 is a diagram illustrating a fourth switching pattern according to the embodiment of the present invention.

【図8】本発明の他の実施形態を説明する回路構成図で
ある。
FIG. 8 is a circuit configuration diagram illustrating another embodiment of the present invention.

【図9】本発明の他の実施形態におけるタイミング生成
部の回路構成図である。
FIG. 9 is a circuit configuration diagram of a timing generation unit according to another embodiment of the present invention.

【図10】本発明の他の実施形態におけるクロック選択
部の回路構成図である。
FIG. 10 is a circuit configuration diagram of a clock selection unit according to another embodiment of the present invention.

【図11】本発明の他の実施形態におけるデータラッチ
部の回路構成図である。
FIG. 11 is a circuit configuration diagram of a data latch unit according to another embodiment of the present invention.

【図12】本発明の他の実施形態を説明するための信号
のタイミングを示す図である。
FIG. 12 is a diagram showing signal timings for explaining another embodiment of the present invention.

【図13】本発明の他の実施形態におけるグリッチ防止
の動作を説明するための信号のタイミングを示す図であ
る。
FIG. 13 is a diagram showing signal timings for explaining a glitch prevention operation in another embodiment of the present invention.

【図14】従来例を説明する図である。FIG. 14 is a diagram illustrating a conventional example.

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

10…送信側装置 20…受信側装置 21…クロック選択部 22…データラッチ部 23…NOT回路 DESCRIPTION OF SYMBOLS 10 ... Transmission side apparatus 20 ... Reception side apparatus 21 ... Clock selection part 22 ... Data latch part 23 ... NOT circuit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 送信側は、データ信号およびデータ信号
に同期した書込みクロックを送信し、受信側は、前記送
信側から送られてきた前記データ信号を受信側の読出し
クロック信号でラッチしてデータ信号の送受信を行うデ
ジタル信号送受信方式において、前記受信側は、互いに
同期した第1読出しクロックおよび第2読出しクロック
を生成するクロック生成手段と、前記書込みクロックと
前記第1読出しクロックの位相を比較する第1位相比較
手段と、前記書込みクロックと前記第2読出しクロック
の位相を比較する第2位相比較手段とを有し、前記書込
みクロックと前記第1読出しクロックの位相が一致した
場合は、前記読出しクロックを前記第2読出しクロック
に切り替え、前記書込みクロックと前記第2読出しクロ
ックの位相が一致した場合は、前記読出しクロックを前
記第1読出しクロックに切り替えることを特徴とするデ
ジタル信号送受信方式。
1. A transmitting side transmits a data signal and a write clock synchronized with the data signal, and a receiving side latches the data signal sent from the transmitting side with a reading clock signal of the receiving side to transmit the data signal. In the digital signal transmission / reception method for transmitting / receiving a signal, the receiving side compares a phase of the write clock and a phase of the first read clock with clock generation means for generating a first read clock and a second read clock synchronized with each other. First phase comparing means; and second phase comparing means for comparing the phases of the write clock and the second read clock. When the phases of the write clock and the first read clock match, the read operation is performed. The clock is switched to the second read clock, and the phases of the write clock and the second read clock match. Wherein the read clock is switched to the first read clock.
【請求項2】 第1読出しクロックと第2読出しクロッ
クとの間隔が書込みクロックの幅よりも大きい請求項1
記載のデジタル信号送受信方式。
2. The method according to claim 1, wherein an interval between the first read clock and the second read clock is larger than a width of the write clock.
Digital signal transmission / reception system described in the above.
【請求項3】 第1位相比較手段および第2位相比較手
段の少なくとも一方は論理和回路で構成されている請求
項1記載のデジタル信号送受信方式。
3. The digital signal transmission / reception system according to claim 1, wherein at least one of said first phase comparison means and said second phase comparison means comprises an OR circuit.
【請求項4】 読出しクロックを第1読出しクロックか
ら第2読出しクロックに切り替え、あるいは、読出しク
ロックを第2読出しクロックから第1読出しクロックに
切り替えた場合に発生するデータの重複およびデータの
欠落の少なくとも一方を示す信号を生成する信号生成手
段を設けた請求項1記載のデジタル信号送受信方式。
4. A method according to claim 1, wherein the read clock is switched from the first read clock to the second read clock, or at least data duplication and data loss occurring when the read clock is switched from the second read clock to the first read clock. 2. The digital signal transmission / reception system according to claim 1, further comprising a signal generation unit that generates a signal indicating one of the two.
JP32937999A 1999-11-19 1999-11-19 Digital signal transmitting and receiving system Pending JP2001148686A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32937999A JP2001148686A (en) 1999-11-19 1999-11-19 Digital signal transmitting and receiving system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32937999A JP2001148686A (en) 1999-11-19 1999-11-19 Digital signal transmitting and receiving system

Publications (1)

Publication Number Publication Date
JP2001148686A true JP2001148686A (en) 2001-05-29

Family

ID=18220792

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32937999A Pending JP2001148686A (en) 1999-11-19 1999-11-19 Digital signal transmitting and receiving system

Country Status (1)

Country Link
JP (1) JP2001148686A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011030220A (en) * 2009-07-24 2011-02-10 Korea Electronics Telecommun System and apparatus for synchronization between heterogeneous periodic clock domain, circuit for detecting synchronization failure, and method of receiving data

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011030220A (en) * 2009-07-24 2011-02-10 Korea Electronics Telecommun System and apparatus for synchronization between heterogeneous periodic clock domain, circuit for detecting synchronization failure, and method of receiving data
US8433019B2 (en) 2009-07-24 2013-04-30 Electronics And Telecommunications Research Institute System and apparatus for synchronization between heterogeneous periodic clock domains, circuit for detecting synchronization failure and data receiving method

Similar Documents

Publication Publication Date Title
US4970405A (en) Clock selection circuit for selecting one of a plurality of clock pulse signals
US4920540A (en) Fault-tolerant digital timing apparatus and method
US4748417A (en) Method and circuit arrangement for switching a clock-controlled device having a plurality of operating statuses
US6031886A (en) Digital phase alignment apparatus in consideration of metastability
US4700346A (en) Self-checking, dual railed, leading edge synchronizer
JPH10267994A (en) Integrated circuit
JP2001148686A (en) Digital signal transmitting and receiving system
US6002714A (en) Data, path and flow integrity monitor
JP3322303B2 (en) Semiconductor storage device
JP2006251895A (en) Bus interface circuit
JP3085420B2 (en) Transmission signal instantaneous interruption communication device
JP3930641B2 (en) Switching method and switching system for active and standby systems
JP3070546B2 (en) Alarm transfer circuit
JPH06188695A (en) Information latch circuit
KR950013799B1 (en) Cluck signal selecting apparatus of double cluck system
JP2740492B2 (en) Asynchronous data transfer circuit between LSIs
JP2605318B2 (en) Data transmission method
JP2769064B2 (en) System selection control method
JPH07177004A (en) Both phase signal generation circuit
JP2000183859A (en) Slip controller
JPH11203159A (en) Interface device, parallel data synchronous circuit and parallel data synchronizing method
JPS63310211A (en) Clock fault detecting circuit
JPH0690657B2 (en) Clock switching circuit
JPH06252941A (en) Cell data transfer method and circuit therefor
JP2020041821A (en) Test circuit and test method