JP6410594B2 - Synchronizer and semiconductor device - Google Patents

Synchronizer and semiconductor device Download PDF

Info

Publication number
JP6410594B2
JP6410594B2 JP2014259261A JP2014259261A JP6410594B2 JP 6410594 B2 JP6410594 B2 JP 6410594B2 JP 2014259261 A JP2014259261 A JP 2014259261A JP 2014259261 A JP2014259261 A JP 2014259261A JP 6410594 B2 JP6410594 B2 JP 6410594B2
Authority
JP
Japan
Prior art keywords
flip
clock
flop
synchronizer
data
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.)
Active
Application number
JP2014259261A
Other languages
Japanese (ja)
Other versions
JP2016119617A (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.)
Rohm Co Ltd
Original Assignee
Rohm Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Rohm Co Ltd filed Critical Rohm Co Ltd
Priority to JP2014259261A priority Critical patent/JP6410594B2/en
Publication of JP2016119617A publication Critical patent/JP2016119617A/en
Application granted granted Critical
Publication of JP6410594B2 publication Critical patent/JP6410594B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Logic Circuits (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Description

本発明は、デジタル信号処理に関し、より具体的には、異なるクロックドメイン間でのデータの送受信に関する。   The present invention relates to digital signal processing, and more specifically to transmission and reception of data between different clock domains.

周波数が異なる、あるいは同一の周波数で動作する2つのクロックドメインの間で、データを送受信する際に、メタステーブル状態を回避する目的でシンクロナイザが使用される。シンクロナイザは、クロック乗せ換え回路とも称される。   A synchronizer is used to avoid a metastable state when data is transmitted and received between two clock domains operating at different frequencies or operating at the same frequency. The synchronizer is also called a clock change circuit.

図1は、従来のシンクロナイザの回路図である。このシンクロナイザ200rは、低い周波数foのクロック信号CLKoと同期動作する第1クロックドメインから、高い周波数fdのクロック信号CLKdと同期動作する第2クロックドメインへのデータ伝送に使用される。シンクロナイザ200rは、直列に接続された複数のフリップフロップFF21〜FF23を含む。   FIG. 1 is a circuit diagram of a conventional synchronizer. The synchronizer 200r is used for data transmission from the first clock domain that operates in synchronization with the clock signal CLKo having the low frequency fo to the second clock domain that operates in synchronization with the clock signal CLKd having the high frequency fd. Synchronizer 200r includes a plurality of flip-flops FF21 to FF23 connected in series.

初段のフリップフロップFF21のクロック端子には、クロック信号CLKoが入力される。2段目および3段目のフリップフロップFF22,FF23のクロック端子には、クロック信号CLKdが入力される。   The clock signal CLKo is input to the clock terminal of the first flip-flop FF21. The clock signal CLKd is input to the clock terminals of the second-stage and third-stage flip-flops FF22 and FF23.

図2は、図1のシンクロナイザ200rの動作波形図である。フリップフロップFF21の出力データDATAは、フリップフロップFF22によって、クロック信号CLKdのエッジで取り込まれる。フリップフロップF12の出力DATA_Sync1はメタステーブル状態となりうる。このデータDATA_Sync1を、次段のフリップフロップFF22に取り込むことにより、メタステーブル状態が除去されたデータDATA_Sync2が生成される。   FIG. 2 is an operation waveform diagram of the synchronizer 200r of FIG. The output data DATA of the flip-flop FF21 is taken in at the edge of the clock signal CLKd by the flip-flop FF22. The output DATA_Sync1 of the flip-flop F12 can be in a metastable state. By taking in this data DATA_Sync1 to the flip-flop FF22 at the next stage, data DATA_Sync2 from which the metastable state has been removed is generated.

図1のシンクロナイザ200rは、fo<fdの場合には、クロックの乗せ換えが可能であるが、fo>fdの場合にはうまく動作しない。   The synchronizer 200r in FIG. 1 can change clocks when fo <fd, but does not operate well when fo> fd.

図3は、従来のシンクロナイザの回路図である。このシンクロナイザ300rは、高い周波数foのクロック信号CLKoと同期動作する第1クロックドメインから、低い周波数fdのクロック信号CLKdと同期動作する第2クロックドメインへのデータ伝送に使用される。   FIG. 3 is a circuit diagram of a conventional synchronizer. The synchronizer 300r is used for data transmission from the first clock domain that operates in synchronization with the clock signal CLKo having the high frequency fo to the second clock domain that operates in synchronization with the clock signal CLKd having the low frequency fd.

シンクロナイザ300rは、図1のシンクロナイザ200rと同様に、直列に接続された複数のフリップフロップFF21〜FF23を含む。さらにシンクロナイザ300rは、フリップフロップFF21の前段に設けられたパルス伸張回路310を備える。パルス伸張回路310は、クロック信号CLKoと同期して動作する。フリップフロップFF31,FF32は直列に接続される。ORゲートOR1は、フリップフロップFF2の出力と、フリップフロップF21の出力の論理和(OR)を生成する。ORゲートOR1の出力DATA2は、シンクロナイザ200rに入力される。   The synchronizer 300r includes a plurality of flip-flops FF21 to FF23 connected in series like the synchronizer 200r of FIG. Further, the synchronizer 300r includes a pulse expansion circuit 310 provided in the preceding stage of the flip-flop FF21. The pulse expansion circuit 310 operates in synchronization with the clock signal CLKo. The flip-flops FF31 and FF32 are connected in series. The OR gate OR1 generates a logical sum (OR) of the output of the flip-flop FF2 and the output of the flip-flop F21. The output DATA2 of the OR gate OR1 is input to the synchronizer 200r.

図4は、図3のシンクロナイザ300rの動作波形図である。ORゲートOR1の出力DATA2は、元の入力データDATAのパルス幅を、クロック信号CLKoの2サイクル分に伸張したデータとなる。ORゲートOR1の出力DATA2は、フリップフロップFF21〜FF23を経由することで、メタステーブル状態が取り除かれる。   FIG. 4 is an operation waveform diagram of the synchronizer 300r of FIG. The output DATA2 of the OR gate OR1 becomes data obtained by expanding the pulse width of the original input data DATA to two cycles of the clock signal CLKo. The output DATA2 of the OR gate OR1 passes through the flip-flops FF21 to FF23, so that the metastable state is removed.

特開平10−135938号公報Japanese Patent Laid-Open No. 10-135938

このように従来では、2つのクロックドメインの周波数fo、fdの大小関係に応じて、図1または図3のシンクロナイザ200r、300rを選択する必要があった。特に図3のシンクロナイザ300rは、必要なフリップフロップの個数が多いため、チップ面積が増加し、コストが高くなるという問題があった。   Thus, conventionally, it is necessary to select the synchronizers 200r and 300r in FIG. 1 or FIG. 3 according to the magnitude relationship between the frequencies fo and fd of the two clock domains. In particular, the synchronizer 300r of FIG. 3 has a problem that the chip area increases and the cost increases because of the large number of necessary flip-flops.

図3のシンクロナイザ300rにおいてクロック信号CLKoとCKdの周波数の比がさらに大きい場合には、パルス幅をさらに伸張する必要があり、したがってパルス伸張回路310のフリップフロップの段数をさらに増やす必要があり、チップ面積はより大きくなる。 In the synchronizer 300r of FIG. 3, when the ratio of the frequency of the clock signal CLKo and C L Kd is larger, it is necessary to further expand the pulse width, and therefore, it is necessary to further increase the number of flip-flop stages of the pulse expansion circuit 310. The chip area becomes larger.

本発明は係る課題に鑑みてなされたものであり、そのある態様の例示的な目的のひとつは、少ない素子数で、周波数が高いクロックドメインから低いドメインへのデータ伝送と、周波数が低いクロックドメインから高いドメインへのデータ伝送に対応可能なシンクロナイザの提供にある。   SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned problems, and one of exemplary purposes of one aspect thereof is to transmit data from a clock domain having a high frequency to a domain having a low frequency and to use a clock domain having a low frequency. Is to provide a synchronizer that can handle data transmission from a high domain to a high domain.

本発明のある態様は、第1周波数foの第1クロック信号と同期する第1クロックドメインからのデータを受け、第2周波数fdの第2クロック信号と同期する第2クロックドメインへ受け渡すシンクロナイザに関する。シンクロナイザは、その入力端子に第1クロックドメインのデータを受け、そのクロック端子に第1クロック信号を受ける第1フリップフロップと、第1フリップフロップの出力データを反転する第1インバータと、その入力端子に第1フリップフロップの出力データを受け、そのクロック端子に第2クロック信号を受け、その反転セット端子に第1インバータの出力を受ける第2フリップフロップと、その入力端子に第2フリップフロップの出力データを受け、そのクロック端子に第2クロック信号を受ける第3フリップフロップと、を備える。   An aspect of the present invention relates to a synchronizer that receives data from a first clock domain synchronized with a first clock signal having a first frequency fo and transfers the data to a second clock domain synchronized with a second clock signal having a second frequency fd. . The synchronizer receives a first clock domain data at its input terminal, receives a first clock signal at its clock terminal, a first inverter for inverting the output data of the first flip-flop, and its input terminal Receives the output data of the first flip-flop, receives the second clock signal at its clock terminal, receives the output of the first inverter at its inverting set terminal, and the output of the second flip-flop at its input terminal A third flip-flop receiving data and receiving a second clock signal at its clock terminal.

この態様によると、fo>fd、fo<fdいずれの場合も、クロックの乗せ換えを行なうことができる。またfoとfdの比率にかかわらず、回路規模は小さくてすむ。   According to this aspect, the clock can be changed in both cases of fo> fd and fo <fd. Further, the circuit scale can be small regardless of the ratio of fo and fd.

第1フリップフロップから第3フリップフロップそれぞれの反転リセット端子には、リセット信号が入力されてもよい。   A reset signal may be input to the inverting reset terminal of each of the first to third flip-flops.

本発明の別の態様もまた、シンクロナイザである。このシンクロナイザは、その入力端子に第1クロックドメインのデータを受け、そのクロック端子に第1クロック信号を受ける第4フリップフロップと、第4フリップフロップの出力データを反転する第2インバータと、その入力端子に第2インバータの出力データを受け、そのクロック端子に第2クロック信号を受け、その反転リセット端子に第2インバータの出力を受ける第5フリップフロップと、その入力端子に第5フリップフロップの出力データを受け、そのクロック端子に第2クロック信号を受ける第6フリップフロップと、を備える。   Another embodiment of the present invention is also a synchronizer. The synchronizer receives a first clock domain data at its input terminal, receives a first clock signal at its clock terminal, a second inverter for inverting the output data of the fourth flip-flop, and its input A fifth flip-flop receiving the output data of the second inverter at its terminal, a second clock signal at its clock terminal, receiving the output of the second inverter at its inverting reset terminal, and an output of the fifth flip-flop at its input terminal A sixth flip-flop receiving data and receiving a second clock signal at its clock terminal.

この態様によっても、fo>fd、fo<fdいずれの場合も、クロックの乗せ換えを行なうことができる。またfoとfdの比率にかかわらず、回路規模は小さくてすむ。   Also in this mode, clock transfer can be performed in both cases of fo> fd and fo <fd. Further, the circuit scale can be small regardless of the ratio of fo and fd.

第5フリップフロップおよび第6フリップフロップそれぞれの反転セット端子には、セット信号が入力されてもよい。 A set signal may be input to each inverting set terminal of the fifth flip-flop and the sixth flip-flop.

第5フリップフロップの反転リセット端子には、第2インバータの出力に代えて、スキャンテスト用論理信号が入力可能に構成されてもよい。
これにより、スキャンテストが可能となる。
Instead of the output of the second inverter, a scan test logic signal may be input to the inverting reset terminal of the fifth flip-flop.
As a result, a scan test can be performed.

ある態様においてシンクロナイザは、第2インバータの出力とスキャンテスト用論理信号を受け、一方を選択して第5フリップフロップの反転リセット端子に出力するセレクタをさらに備えてもよい。   In one aspect, the synchronizer may further include a selector that receives the output of the second inverter and the scan test logic signal, selects one of them, and outputs the selected signal to the inverting reset terminal of the fifth flip-flop.

本発明の別の態様は、半導体装置に関する。半導体装置は、シリアルデータを受信するインタフェース回路と、クロック信号を生成するクロック発生回路と、インタフェース回路の出力データを受け、クロック信号と同期して出力する上述のいずれかのシンクロナイザと、シンクロナイザの出力データを処理する信号処理回路と、を備える。   Another embodiment of the present invention relates to a semiconductor device. The semiconductor device includes an interface circuit that receives serial data, a clock generation circuit that generates a clock signal, one of the synchronizers that receives output data of the interface circuit and outputs the data in synchronization with the clock signal, and an output of the synchronizer A signal processing circuit for processing data.

本発明の別の態様も、半導体装置に関する。半導体装置は、第1クロック信号を生成する第1クロック発生回路と、第2クロック信号を生成する第2クロック発生回路と、第1クロック信号と同期して動作する第1信号処理回路と、第2クロック信号と同期して動作する第2信号処理回路と、第1信号処理回路からのデータを受け、第2信号処理回路に受け渡す上述のいずれかの第1のシンクロナイザと、第2信号処理回路からのデータを受け、第1信号処理回路に受け渡す上述のいずれかの第2のシンクロナイザと、を備える。   Another embodiment of the present invention also relates to a semiconductor device. The semiconductor device includes: a first clock generation circuit that generates a first clock signal; a second clock generation circuit that generates a second clock signal; a first signal processing circuit that operates in synchronization with the first clock signal; A second signal processing circuit that operates in synchronization with the two-clock signal; any one of the first synchronizers that receives data from the first signal processing circuit and delivers the data to the second signal processing circuit; and second signal processing Any one of the above-mentioned second synchronizers which receives data from the circuit and transfers it to the first signal processing circuit.

なお、以上の構成要素の任意の組み合わせや本発明の構成要素や表現を、方法、装置、システムなどの間で相互に置換したものもまた、本発明の態様として有効である。   Note that any combination of the above-described constituent elements and the constituent elements and expressions of the present invention replaced with each other among methods, apparatuses, systems, and the like are also effective as an aspect of the present invention.

本発明のシンクロナイザによれば、少ない素子数で、周波数が高いクロックドメインから低いドメインへのデータ伝送と、周波数が低いクロックドメインから高いドメインへのデータ伝送に対応できる。   According to the synchronizer of the present invention, data transmission from a clock domain having a high frequency to a low domain and data transmission from a clock domain having a low frequency to a high domain can be accommodated with a small number of elements.

従来のシンクロナイザの回路図である。It is a circuit diagram of the conventional synchronizer. 図1のシンクロナイザの動作波形図である。It is an operation | movement waveform diagram of the synchronizer of FIG. 従来のシンクロナイザの回路図である。It is a circuit diagram of the conventional synchronizer. 図3のシンクロナイザの動作波形図である。FIG. 4 is an operation waveform diagram of the synchronizer of FIG. 3. 第1の実施の形態に係るシンクロナイザの回路図である。It is a circuit diagram of a synchronizer concerning a 1st embodiment. 図5のシンクロナイザの動作波形図である。FIG. 6 is an operation waveform diagram of the synchronizer of FIG. 5. 図5のシンクロナイザの動作波形図である。FIG. 6 is an operation waveform diagram of the synchronizer of FIG. 5. 第2の実施の形態に係るシンクロナイザの回路図である。It is a circuit diagram of a synchronizer concerning a 2nd embodiment. 第1の半導体装置のブロック図である。1 is a block diagram of a first semiconductor device. 第2の半導体装置のブロック図である。It is a block diagram of the 2nd semiconductor device.

以下、本発明を好適な実施の形態をもとに図面を参照しながら説明する。各図面に示される同一または同等の構成要素、部材、処理には、同一の符号を付するものとし、適宜重複した説明は省略する。また、実施の形態は、発明を限定するものではなく例示であって、実施の形態に記述されるすべての特徴やその組み合わせは、必ずしも発明の本質的なものであるとは限らない。   The present invention will be described below based on preferred embodiments with reference to the drawings. The same or equivalent components, members, and processes shown in the drawings are denoted by the same reference numerals, and repeated descriptions are omitted as appropriate. The embodiments do not limit the invention but are exemplifications, and all features and combinations thereof described in the embodiments are not necessarily essential to the invention.

本明細書において、「部材Aが、部材Bと接続された状態」とは、部材Aと部材Bが物理的に直接的に接続される場合のほか、部材Aと部材Bが、電気的な接続状態に影響を及ぼさない他の部材を介して間接的に接続される場合も含む。
同様に、「部材Cが、部材Aと部材Bの間に設けられた状態」とは、部材Aと部材C、あるいは部材Bと部材Cが直接的に接続される場合のほか、電気的な接続状態に影響を及ぼさない他の部材を介して間接的に接続される場合も含む。
In this specification, “the state in which the member A is connected to the member B” means that the member A and the member B are electrically connected in addition to the case where the member A and the member B are physically directly connected. It includes the case of being indirectly connected through another member that does not affect the connection state.
Similarly, “the state in which the member C is provided between the member A and the member B” refers to the case where the member A and the member C or the member B and the member C are directly connected, as well as an electrical condition. It includes the case of being indirectly connected through another member that does not affect the connection state.

(第1の実施の形態)
図5は、第1の実施の形態に係るシンクロナイザ100の回路図である。シンクロナイザ100は、第1フリップフロップFF11〜第3フリップフロップFF13、第1インバータ102を備える。
シンクロナイザ100は、第1周波数foの第1クロック信号CLKoと同期する第1クロックドメインからのデータD1を受け、第2周波数fdの第2クロック信号CLKdと同期する第2クロックドメインへ受け渡す。
(First embodiment)
FIG. 5 is a circuit diagram of the synchronizer 100 according to the first embodiment. The synchronizer 100 includes a first flip-flop FF11 to a third flip-flop FF13, and a first inverter 102.
The synchronizer 100 receives data D1 from the first clock domain synchronized with the first clock signal CLKo having the first frequency fo, and delivers the data D1 to the second clock domain synchronized with the second clock signal CLKd having the second frequency fd.

第1フリップフロップFF11は、その入力端子Dに第1クロックドメインのデータD1を受け、そのクロック端子に第1クロック信号CLKoを受ける。第1インバータ102は、第1フリップフロップFF11の出力データDATAを反転する。第2フリップフロップFF12は、その入力端子に第1フリップフロップFF11の出力データDATAを受け、そのクロック端子に第2クロック信号CLKdを受け、その反転セット端子SNに第1インバータ102の出力DATA_Setを受ける。第3フリップフロップFF13は、その入力端子に第2フリップフロップFF12の出力データDATA_Sync1を受け、そのクロック端子に第2クロック信号CLKdを受ける。第1フリップフロップFF11から第3フリップフロップFF13それぞれの反転リセット端子には、リセット信号XRSTが入力される。   The first flip-flop FF11 receives the data D1 of the first clock domain at its input terminal D, and receives the first clock signal CLKo at its clock terminal. The first inverter 102 inverts the output data DATA of the first flip-flop FF11. The second flip-flop FF12 receives the output data DATA of the first flip-flop FF11 at its input terminal, receives the second clock signal CLKd at its clock terminal, and receives the output DATA_Set of the first inverter 102 at its inverting set terminal SN. . The third flip-flop FF13 receives the output data DATA_Sync1 of the second flip-flop FF12 at its input terminal, and receives the second clock signal CLKd at its clock terminal. The reset signal XRST is input to the inverting reset terminals of the first flip-flop FF11 to the third flip-flop FF13.

以上がシンクロナイザ100の構成である。続いて動作を説明する。図6、図7は、図5のシンクロナイザ100の動作波形図である。   The above is the configuration of the synchronizer 100. Next, the operation will be described. 6 and 7 are operation waveform diagrams of the synchronizer 100 of FIG.

図6を参照し、fo<fdの動作を説明する。第1フリップフロップFF11の出力DATAの変化タイミングは、第2クロック信号CLKdのエッジと重なっており、したがって第2フリップフロップFF12の出力DATA_Sync1はメタステーブル状態となっている。   The operation of fo <fd will be described with reference to FIG. The change timing of the output DATA of the first flip-flop FF11 overlaps the edge of the second clock signal CLKd. Therefore, the output DATA_Sync1 of the second flip-flop FF12 is in a metastable state.

第1フリップフロップFF11の出力DATAがハイレベルに遷移すると、第1インバータ102により反転され、第2フリップフロップFF12のセット端子SN(反転論理)にローレベルの信号DATA_Setが入力される。セット端子には、第2クロック信号CLKdの複数サイクルにまたがってローレベルが入力され、その間、第2フリップフロップFF12の出力DATA_Sync1は、ハイレベル(1)に固定される。このデータDATA_Sync1が第3フリップフロップFF13を経由することにより、メタステーブル状態が除去されたデータDATA_Sync2が生成される。   When the output DATA of the first flip-flop FF11 transitions to a high level, the first inverter 102 inverts it, and the low-level signal DATA_Set is input to the set terminal SN (inverted logic) of the second flip-flop FF12. A low level is input to the set terminal over a plurality of cycles of the second clock signal CLKd, and during that time, the output DATA_Sync1 of the second flip-flop FF12 is fixed to a high level (1). When this data DATA_Sync1 passes through the third flip-flop FF13, data DATA_Sync2 from which the metastable state is removed is generated.

図7を参照し、fo>fdの動作を説明する。この場合、第2フリップフロップFF12のセット端子(反転論理)は無視してよい。第1フリップフロップFF11の出力DATAの変化タイミングは、第2クロック信号CLKdのエッジと重なっており、したがって第2フリップフロップFF12の出力DATA_Sync1はメタステーブル状態となっている。このデータDATA_Sync1が第3フリップフロップFF13を経由することにより、メタステーブル状態が除去されたデータDATA_Sync2が生成される。   The operation of fo> fd will be described with reference to FIG. In this case, the set terminal (inverted logic) of the second flip-flop FF12 may be ignored. The change timing of the output DATA of the first flip-flop FF11 overlaps the edge of the second clock signal CLKd. Therefore, the output DATA_Sync1 of the second flip-flop FF12 is in a metastable state. When this data DATA_Sync1 passes through the third flip-flop FF13, data DATA_Sync2 from which the metastable state is removed is generated.

以上がシンクロナイザ100の動作である。このシンクロナイザ100によれば、fo>fd、fo<fdいずれの場合も、クロックの乗せ換えを行なうことができる。また図3のシンクロナイザ300rに比べて、2つのクロック信号の周波数foとfdの比率にかかわらず、回路規模は小さくてすむため、チップ面積およびコストを低減できる。   The operation of the synchronizer 100 has been described above. According to this synchronizer 100, it is possible to change clocks in both cases of fo> fd and fo <fd. Compared to the synchronizer 300r of FIG. 3, the circuit size can be reduced regardless of the ratio of the frequencies fo and fd of the two clock signals, and the chip area and cost can be reduced.

(第2の実施の形態)
図8は、第2の実施の形態に係るシンクロナイザ100aの回路図である。シンクロナイザ100aは、第4フリップフロップFF14〜第6フリップフロップFF16、第2インバータ104、セレクタ106を備える。
(Second Embodiment)
FIG. 8 is a circuit diagram of a synchronizer 100a according to the second embodiment. The synchronizer 100a includes a fourth flip-flop FF14 to a sixth flip-flop FF16, a second inverter 104, and a selector 106.

シンクロナイザ100aは、図5のシンクロナイザ100と同様に、第1周波数foの第1クロック信号CLKoと同期する第1クロックドメインからのデータを受け、第2周波数fdの第2クロック信号CLKdと同期する第2クロックドメインへ受け渡す。   Similarly to the synchronizer 100 of FIG. 5, the synchronizer 100a receives data from the first clock domain synchronized with the first clock signal CLKo having the first frequency fo, and synchronizes with the second clock signal CLKd having the second frequency fd. Deliver to the 2 clock domain.

第4フリップフロップFF14は、その入力端子に第1クロックドメインのデータを受け、そのクロック端子に第1クロック信号CLKoを受ける。第2インバータ104は、第4フリップフロップFF14の出力データDATAを反転する。第5フリップフロップFF15は、その入力端子に第2インバータ104の出力データXDATAを受け、そのクロック端子に第2クロック信号CLKdを受ける。また第5フリップフロップFF15は、その反転リセット端子RNにセレクタ106を経由して第2インバータ104の出力XDATAを受ける。第6フリップフロップFF16は、その入力端子に第5フリップフロップFF15の出力データDATA_Sync1を受け、そのクロック端子に第2クロック信号CLKdを受ける。第5フリップフロップFF15および第6フリップフロップFF16それぞれの反転セット端子SN(反転論理)には、セット信号XSETが入力される。 The fourth flip-flop FF14 receives data of the first clock domain at its input terminal and receives the first clock signal CLKo at its clock terminal. The second inverter 104 inverts the output data DATA of the fourth flip-flop FF14. The fifth flip-flop FF15 receives the output data XDATA of the second inverter 104 at its input terminal, and receives the second clock signal CLKd at its clock terminal. The fifth flip-flop FF15 receives the output XDATA of the second inverter 104 via the selector 106 at its inverting reset terminal RN. The sixth flip-flop FF16 receives the output data DATA_Sync1 of the fifth flip-flop FF15 at its input terminal, and receives the second clock signal CLKd at its clock terminal. The set signal XSET is input to the inversion set terminal SN (inversion logic) of each of the fifth flip-flop FF15 and the sixth flip-flop FF16.

また第5フリップフロップFF15の反転リセット端子RNには、第2インバータ104の出力XDATAに代えて、スキャンテスト用論理信号SCNが入力可能に構成される。具体的には、セレクタ106は、第2インバータ104の出力XDATAとスキャンテスト用論理信号SCNを受け、制御信号CNTに応じて一方を選択し、第5フリップフロップFF15の反転リセット端子RNに出力する。   In addition, instead of the output XDATA of the second inverter 104, the scan test logic signal SCN can be input to the inverting reset terminal RN of the fifth flip-flop FF15. Specifically, the selector 106 receives the output XDATA of the second inverter 104 and the scan test logic signal SCN, selects one in accordance with the control signal CNT, and outputs it to the inverting reset terminal RN of the fifth flip-flop FF15. .

以上がシンクロナイザ100aの構成である。このシンクロナイザ100aは、図5のシンクロナイザ100を論理反転した構成と把握することができる。したがって動作波形は、fo<fdの場合には図6と同様に動作し、fo>fdの場合には図7と同様に動作する。   The above is the configuration of the synchronizer 100a. The synchronizer 100a can be understood as a configuration obtained by logically inverting the synchronizer 100 of FIG. Therefore, the operation waveform operates in the same manner as in FIG. 6 when fo <fd, and in the same manner as in FIG. 7 when fo> fd.

このシンクロナイザ100aによれば、図5のシンクロナイザ100と同様の効果を得ることができる。   According to the synchronizer 100a, the same effect as that of the synchronizer 100 of FIG. 5 can be obtained.

また、第5フリップフロップFF15の反転リセット端子RNに、セレクタ106を介してスキャンテスト用論理信号SCNを入力可能とした。これによりスキャンテストが可能となる。   Further, the scan test logic signal SCN can be input to the inverting reset terminal RN of the fifth flip-flop FF15 via the selector 106. This allows a scan test.

続いてシンクロナイザの用途を説明する。
図9は、第1の半導体装置500のブロック図である。半導体装置500は、シリアルインタフェース回路502、クロック発生回路504、シンクロナイザ506、信号処理回路508を備える。
Next, the use of the synchronizer will be described.
FIG. 9 is a block diagram of the first semiconductor device 500. The semiconductor device 500 includes a serial interface circuit 502, a clock generation circuit 504, a synchronizer 506, and a signal processing circuit 508.

シリアルインタフェース回路502は、たとえばIC(Inter IC )バスを介して、他の半導体装置(不図示)と接続され、シリアルデータSDAおよびクロックSCLを受ける。 The serial interface circuit 502 is connected to another semiconductor device (not shown) via, for example, an I 2 C (Inter IC) bus and receives serial data SDA and a clock SCL.

クロック発生回路504は、たとえばPLL回路であり、クロック信号CLKを生成する。シンクロナイザ506は、シリアルインタフェース回路502の出力データD1を受け、クロック信号CLKと同期して出力する。シンクロナイザ506は、図5あるいは図8のシンクロナイザ100に相当する。信号処理回路508は、シンクロナイザ100の出力データD2を処理する。信号処理の内容は特に限定されない。   Clock generation circuit 504 is a PLL circuit, for example, and generates clock signal CLK. The synchronizer 506 receives the output data D1 from the serial interface circuit 502 and outputs it in synchronization with the clock signal CLK. The synchronizer 506 corresponds to the synchronizer 100 of FIG. 5 or FIG. The signal processing circuit 508 processes the output data D2 of the synchronizer 100. The content of signal processing is not particularly limited.

図10は、第2の半導体装置600のブロック図である。半導体装置600は、第1クロック発生回路602、第2クロック発生回路604、第1信号処理回路606、第2信号処理回路608、第1シンクロナイザ610、第2シンクロナイザ612を備える。   FIG. 10 is a block diagram of the second semiconductor device 600. The semiconductor device 600 includes a first clock generation circuit 602, a second clock generation circuit 604, a first signal processing circuit 606, a second signal processing circuit 608, a first synchronizer 610, and a second synchronizer 612.

第1クロック発生回路602は、第1クロック信号CLK1を生成し、第2クロック発生回路604は、第2クロック信号CLK2を生成する。第1信号処理回路606は、第1クロック信号CLK1と同期して動作する。第2信号処理回路608は、第2クロック信号CLK2と同期して動作する。第1シンクロナイザ610は、第1信号処理回路606からのデータD3を受け、第2クロック信号CLK2に乗せ変えたデータD4を第2信号処理回路608に受け渡す。第2シンクロナイザ612は、第2信号処理回路608からのデータD5を受け、第1クロック信号CLK1に乗せ変えたデータD6を第1信号処理回路606に受け渡す。第1シンクロナイザ610および第2シンクロナイザ612は、図5あるいは図8のシンクロナイザ100に相当する。   The first clock generation circuit 602 generates a first clock signal CLK1, and the second clock generation circuit 604 generates a second clock signal CLK2. The first signal processing circuit 606 operates in synchronization with the first clock signal CLK1. The second signal processing circuit 608 operates in synchronization with the second clock signal CLK2. The first synchronizer 610 receives the data D3 from the first signal processing circuit 606, and passes the data D4 changed to the second clock signal CLK2 to the second signal processing circuit 608. The second synchronizer 612 receives the data D5 from the second signal processing circuit 608, and transfers the data D6, which is replaced with the first clock signal CLK1, to the first signal processing circuit 606. The first synchronizer 610 and the second synchronizer 612 correspond to the synchronizer 100 of FIG. 5 or FIG.

たとえば半導体装置600は送受信機であり、第1信号処理回路606は、送信TXに関連した処理を、第2信号処理回路608は受信RXに関連した処理を行なってもよい。   For example, the semiconductor device 600 may be a transceiver, and the first signal processing circuit 606 may perform processing related to transmission TX, and the second signal processing circuit 608 may perform processing related to reception RX.

実施の形態にもとづき、具体的な語句を用いて本発明を説明したが、実施の形態は、本発明の原理、応用を示しているにすぎず、実施の形態には、請求の範囲に規定された本発明の思想を逸脱しない範囲において、多くの変形例や配置の変更が認められる。   Although the present invention has been described using specific terms based on the embodiments, the embodiments only illustrate the principles and applications of the present invention, and the embodiments are defined in the claims. Many variations and modifications of the arrangement are permitted without departing from the spirit of the present invention.

100…シンクロナイザ、102…第1インバータ、FF11…第1フリップフロップ、FF12…第2フリップフロップ、FF13…第3フリップフロップ、FF14…第4フリップフロップ、FF15…第5フリップフロップ、FF16…第6フリップフロップ、104…第2インバータ、106…セレクタ、fo…第1周波数、fd…第2周波数、CLKo…第1クロック信号、CLKd…第2クロック信号、500…半導体装置、502…シリアルインタフェース回路、504…クロック発生回路、506…シンクロナイザ、508…信号処理回路、600…半導体装置、602…第1クロック発生回路、604…第2クロック発生回路、606…第1信号処理回路、608…第2信号処理回路、610…第1シンクロナイザ、612…第2シンクロナイザ。 DESCRIPTION OF SYMBOLS 100 ... Synchronizer, 102 ... 1st inverter, FF11 ... 1st flip-flop, FF12 ... 2nd flip-flop, FF13 ... 3rd flip-flop, FF14 ... 4th flip-flop, FF15 ... 5th flip-flop, FF16 ... 6th flip-flop 104 ... second inverter 106 ... selector fo ... first frequency fd ... second frequency CLKo ... first clock signal CLKd ... second clock signal 500 ... semiconductor device 502 ... serial interface circuit 504 ... Clock generation circuit, 506 ... Synchronizer, 508 ... Signal processing circuit, 600 ... Semiconductor device, 602 ... First clock generation circuit, 604 ... Second clock generation circuit, 606 ... First signal processing circuit, 608 ... Second signal processing Circuit, 610... First synchronizer, 61 ... the second synchronizer.

Claims (8)

第1周波数の第1クロック信号と同期する第1クロックドメインからのデータを受け、第2周波数の第2クロック信号と同期する第2クロックドメインへ受け渡すシンクロナイザであって、
その入力端子に第1クロックドメインのデータを受け、そのクロック端子に前記第1クロック信号を受ける第1フリップフロップと、
前記第1フリップフロップの出力データを反転する第1インバータと、
その入力端子に前記第1フリップフロップの出力データを受け、そのクロック端子に前記第2クロック信号を受け、その反転セット端子に前記第1インバータの出力を受ける第2フリップフロップと、
その入力端子に前記第2フリップフロップの出力データを受け、そのクロック端子に前記第2クロック信号を受ける第3フリップフロップと、
を備えることを特徴とするシンクロナイザ。
A synchronizer that receives data from a first clock domain that is synchronized with a first clock signal of a first frequency and passes the data to a second clock domain that is synchronized with a second clock signal of a second frequency;
A first flip-flop receiving data of the first clock domain at its input terminal and receiving the first clock signal at its clock terminal;
A first inverter for inverting the output data of the first flip-flop;
A second flip-flop that receives the output data of the first flip-flop at its input terminal, receives the second clock signal at its clock terminal, and receives the output of the first inverter at its inverting set terminal;
A third flip-flop receiving the output data of the second flip-flop at its input terminal and receiving the second clock signal at its clock terminal;
A synchronizer characterized by comprising:
前記第1フリップフロップから前記第3フリップフロップそれぞれの反転リセット端子には、リセット信号が入力されることを特徴とする請求項1に記載のシンクロナイザ。   The synchronizer according to claim 1, wherein a reset signal is input to an inverting reset terminal of each of the first flip-flop to the third flip-flop. 第1周波数の第1クロック信号と同期する第1クロックドメインからのデータを受け、第2周波数の第2クロック信号と同期する第2クロックドメインへ受け渡すシンクロナイザであって、
その入力端子に第1クロックドメインのデータを受け、そのクロック端子に前記第1クロック信号を受ける第4フリップフロップと、
前記第4フリップフロップの出力データを反転する第2インバータと、
その入力端子に前記第2インバータの出力データを受け、そのクロック端子に前記第2クロック信号を受け、その反転リセット端子に前記第2インバータの出力を受ける第5フリップフロップと、
その入力端子に前記第5フリップフロップの出力データを受け、そのクロック端子に前記第2クロック信号を受ける第6フリップフロップと、
を備えることを特徴とするシンクロナイザ。
A synchronizer that receives data from a first clock domain that is synchronized with a first clock signal of a first frequency and passes the data to a second clock domain that is synchronized with a second clock signal of a second frequency;
A fourth flip-flop receiving data of the first clock domain at its input terminal and receiving the first clock signal at its clock terminal;
A second inverter for inverting the output data of the fourth flip-flop;
A fifth flip-flop receiving the output data of the second inverter at its input terminal, receiving the second clock signal at its clock terminal, and receiving the output of the second inverter at its inverting reset terminal;
A sixth flip-flop receiving the output data of the fifth flip-flop at its input terminal and receiving the second clock signal at its clock terminal;
A synchronizer characterized by comprising:
前記第5フリップフロップおよび前記第6フリップフロップそれぞれの反転セット端子には、セット信号が入力されることを特徴とする請求項3に記載のシンクロナイザ。 4. The synchronizer according to claim 3, wherein a set signal is input to each of the inverting set terminals of the fifth flip-flop and the sixth flip-flop. 前記第5フリップフロップの前記反転リセット端子には、前記第2インバータの出力に代えて、スキャンテスト用論理信号が入力可能に構成されることを特徴とする請求項3または4に記載のシンクロナイザ。   5. The synchronizer according to claim 3, wherein a scan test logic signal can be input to the inverting reset terminal of the fifth flip-flop instead of the output of the second inverter. 前記第2インバータの出力と前記スキャンテスト用論理信号を受け、一方を選択して前記第5フリップフロップの前記反転リセット端子に出力するセレクタをさらに備えることを特徴とする請求項5に記載のシンクロナイザ。   6. The synchronizer according to claim 5, further comprising a selector that receives the output of the second inverter and the logic signal for scan test, selects one and outputs the selected signal to the inverting reset terminal of the fifth flip-flop. . シリアルデータを受信するインタフェース回路と、
クロック信号を生成するクロック発生回路と、
前記インタフェース回路の出力データを受け、前記クロック信号と同期して出力する請求項1から6のいずれかに記載のシンクロナイザと、
前記シンクロナイザの出力データを処理する信号処理回路と、
を備えることを特徴とする半導体装置。
An interface circuit for receiving serial data;
A clock generation circuit for generating a clock signal;
The synchronizer according to any one of claims 1 to 6, which receives output data of the interface circuit and outputs it in synchronization with the clock signal;
A signal processing circuit for processing the output data of the synchronizer;
A semiconductor device comprising:
第1クロック信号を生成する第1クロック発生回路と、
第2クロック信号を生成する第2クロック発生回路と、
前記第1クロック信号と同期して動作する第1信号処理回路と、
前記第2クロック信号と同期して動作する第2信号処理回路と、
前記第1信号処理回路からのデータを受け、前記第2信号処理回路に受け渡す請求項1から6のいずれかに記載の第1のシンクロナイザと、
前記第2信号処理回路からのデータを受け、前記第1信号処理回路に受け渡す請求項1から6のいずれかに記載の第2のシンクロナイザと、
を備えることを特徴とする半導体装置。
A first clock generation circuit for generating a first clock signal;
A second clock generation circuit for generating a second clock signal;
A first signal processing circuit that operates in synchronization with the first clock signal;
A second signal processing circuit that operates in synchronization with the second clock signal;
The first synchronizer according to any one of claims 1 to 6, wherein the first synchronizer receives data from the first signal processing circuit and transfers the data to the second signal processing circuit;
The second synchronizer according to any one of claims 1 to 6, wherein the second synchronizer receives data from the second signal processing circuit and transfers the data to the first signal processing circuit.
A semiconductor device comprising:
JP2014259261A 2014-12-22 2014-12-22 Synchronizer and semiconductor device Active JP6410594B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014259261A JP6410594B2 (en) 2014-12-22 2014-12-22 Synchronizer and semiconductor device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014259261A JP6410594B2 (en) 2014-12-22 2014-12-22 Synchronizer and semiconductor device

Publications (2)

Publication Number Publication Date
JP2016119617A JP2016119617A (en) 2016-06-30
JP6410594B2 true JP6410594B2 (en) 2018-10-24

Family

ID=56244522

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014259261A Active JP6410594B2 (en) 2014-12-22 2014-12-22 Synchronizer and semiconductor device

Country Status (1)

Country Link
JP (1) JP6410594B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111049503A (en) * 2019-12-19 2020-04-21 中国科学院计算技术研究所 Superconducting trigger and operation method thereof

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20190134037A (en) * 2018-05-24 2019-12-04 에스케이하이닉스 주식회사 Semiconductor apparatus with domain crossing

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4290412B2 (en) * 2002-11-18 2009-07-08 Okiセミコンダクタ株式会社 Data transfer device
TWI453569B (en) * 2011-03-18 2014-09-21 Realtek Semiconductor Corp Signal synchronizing apparatus
JP2014219786A (en) * 2013-05-07 2014-11-20 日本電波工業株式会社 Signal synchronization circuit

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111049503A (en) * 2019-12-19 2020-04-21 中国科学院计算技术研究所 Superconducting trigger and operation method thereof
CN111049503B (en) * 2019-12-19 2021-10-22 中国科学院计算技术研究所 Superconducting trigger and operation method thereof

Also Published As

Publication number Publication date
JP2016119617A (en) 2016-06-30

Similar Documents

Publication Publication Date Title
TWI410791B (en) Apparatus and method for transmitting and receiving data bits
CN110232886B (en) Two-stage decision feedback equalizer and display including the same
US7482841B1 (en) Differential bang-bang phase detector (BBPD) with latency reduction
TWI579706B (en) Data synchronization across asynchronous boundaries using selectable synchronizers to minimize latency
JP4141885B2 (en) Serial communication device
US8132036B2 (en) Reducing latency in data transfer between asynchronous clock domains
US7254201B2 (en) Clock and data recovery circuit and method
JP2012065094A (en) Phase adjustment circuit, receiver, and communication system
CN112130617A (en) Clock dynamic switching circuit
JP6410594B2 (en) Synchronizer and semiconductor device
KR20080101495A (en) Clock switching circuit
JP4992947B2 (en) Parallel-serial converter and parallel data output device
JP2009526278A (en) Data interface and synchronous search method
EP2015457B1 (en) Serial-to-parallel conversion circuit and method of designing the same
JP7193110B2 (en) Multi-lane serializer device
JP4598872B2 (en) Timing recovery circuit, communication node, network system, and electronic device
JP2010141594A (en) Clock regeneration circuit, and clock regeneration method
JP5560778B2 (en) Clock transfer circuit and clock transfer method
JP2007312321A (en) Semiconductor integrated circuit for serial/parallel conversion
JP2005109955A (en) Asynchronous communication circuit
JP5378765B2 (en) Data transfer system
JP5923730B2 (en) Clock data recovery device
JP2013175832A (en) Image processing apparatus, signal transfer circuit and semiconductor integrated circuit
JP5742334B2 (en) Data transfer system, data transfer device, and data transfer method
JP4672032B2 (en) Serial communication device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20171114

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180620

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180703

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180829

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20180911

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180925

R150 Certificate of patent or registration of utility model

Ref document number: 6410594

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250