JP5177856B2 - Clock transfer circuit - Google Patents
Clock transfer circuit Download PDFInfo
- Publication number
- JP5177856B2 JP5177856B2 JP2008060894A JP2008060894A JP5177856B2 JP 5177856 B2 JP5177856 B2 JP 5177856B2 JP 2008060894 A JP2008060894 A JP 2008060894A JP 2008060894 A JP2008060894 A JP 2008060894A JP 5177856 B2 JP5177856 B2 JP 5177856B2
- Authority
- JP
- Japan
- Prior art keywords
- address
- clock
- read
- write
- write address
- 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
Links
Images
Landscapes
- Synchronisation In Digital Transmission Systems (AREA)
Description
本発明は、クロック乗せ換え回路、特に、デジタル信号伝送において、クロックに同期して入力するデータを異なる周期のクロックに同期して出力するクロック乗せ換え回路に関する。 The present invention relates to a clock transfer circuit, and more particularly to a clock transfer circuit that outputs data input in synchronization with a clock in synchronization with a clock having a different period in digital signal transmission.
従来のこの種のクロック乗せ換え回路(例えば、特許文献1参照)を図8に示す。書き込み及び読み出しの各々に同期したフレームパルス信号を監視することにより、同一メモリによる書き込みと読み出しを回避する構成をとる。 FIG. 8 shows a conventional clock transfer circuit of this type (see, for example, Patent Document 1). By monitoring a frame pulse signal synchronized with each of writing and reading, a configuration for avoiding writing and reading by the same memory is adopted.
図8において、フレーム対応の複数のアドレス領域を備え、読出しと書込みが独立して行える2ポートRAM部50と、書込フレーム信号202および書込クロック205に基づき2ポートRAM部50へ入力データ200を書き込むためのアドレスを生成する書込アドレス生成部51と、読出フレーム信号206および読出クロック210に基づき2ポートRAM部50から出力データ201を読み出すためのアドレスを生成する読出アドレス生成部52と、読出制御信号209により読出動作を調停する読出制御部53を有する。
In FIG. 8, a two-
書込アドレス生成部51は、2ポートRAM部50のアドレス領域を示す上位書込アドレス204と、入力データ200のタイムスロットに対応したアドレスを示す下位書込アドレス204を生成し、2ポートRAM部50の上位書込アドレス204に対応したアドレス領域内の下位書込アドレス203に対応したアドレスに入力データ200を書き込むことが可能である。
The write
読出制御部53は、上位書込アドレス204を監視して、読出アドレス生成部52から読出フレーム信号206の直前に入力する読出制御信号209毎に、上位書込アドレス204と重複しない上位読出アドレス208を生成することが可能である。
The
読出アドレス生成部52は出力データ201のタイムスロットに対応したアドレスを示す下位読出アドレス207と読出制御信号209を生成し、2ポートRAM部の上位読出アドレス208に対応したフレーム領域内の下位読出アドレス207に対応したアドレスより出力データ201を読み出すことが可能である。このようにして、書込クロック205と読出クロック210の位相の変化を吸収できるようにしている。
Read
また、書込アドレスカウンタと読出アドレスカウンタを例えばパワーオン時にリセットし、書込アドレスカウンタのカウント値に基づいて書込アドレスを形成し、読出アドレスカウンタのカウント値に基づいて読出アドレスを形成して、デュアルポートメモリに供給することにより、書込アドレスと読出アドレスが充分に離れるようにし、読出しが書込みを追い越す等の誤動作を回避したクロック乗せ換え回路が知られている(例えば、特許文献2参照)。 Further, the write address counter and the read address counter are reset at power-on, for example, the write address is formed based on the count value of the write address counter, and the read address is formed based on the count value of the read address counter. A clock transfer circuit is known in which a write address and a read address are sufficiently separated from each other by supplying to a dual port memory so that a malfunction such as a read overtaking a write is avoided (see, for example, Patent Document 2). ).
更に、ある基本クロックに同期したデータを、それとは異なるクロックに同期するデータに変換する際、グレイコード等の採用により、メモリカウンタに計数値の変換に応じてカウンタを構成するビットが常に1ビットだけ変化するカウンタを用いることによって、ハードウェアの伝播遅延時間のばらつきの影響を受けることなくして、誤動作を防止したデータ変換技術が開示されている(例えば、特許文献3参照)。 Furthermore, when data synchronized with a certain basic clock is converted into data synchronized with a different clock, by adopting a Gray code or the like, the memory counter always has 1 bit constituting the counter according to the conversion of the count value. There has been disclosed a data conversion technique in which malfunction is prevented by using a counter that changes only without being affected by variations in hardware propagation delay time (see, for example, Patent Document 3).
しかしながら、上記の特許文献1記載のクロック乗せ換え回路では、書込クロック205と読出クロック210の位相が変化しても、書込みと読出しの競合を来たさないようにするための書込アドレスと読出アドレスの距離の確保を、外部から与えられる上位アドレスに依存して行なっているため、外部状況の変化があると所期の目的を達せられなくなる虞があるという第1の問題点がある。
However, in the clock transfer circuit described in
更に、第2の問題点は、読出フレームパルスが読出クロックに同期して外部から入力されているため、外部に入力クロックに周波数同期(位相は同期していなくとも良い)した、読出フレームパルスを生成する回路を必要としているという第2の問題点がある。 Further, the second problem is that since the read frame pulse is input from the outside in synchronization with the read clock, the read frame pulse is externally frequency-synchronized with the input clock (the phase may not be synchronized). There is a second problem that a circuit to be generated is required.
また、特許文献2記載のクロック乗せ換え回路では、書込アドレスカウンタと読出アドレスカウンタが初期化されるのはパワーオン時等のみであり、その後は書込アドレスカウンタのカウント値,読出アドレスカウンタのカウント値に基づいて書込アドレス,読出アドレスを生成しているため、入力データや回路素子の変動があっても対応できず、誤動作を招きかねないという問題点がある。
In the clock transfer circuit described in
また、特許文献3記載の周波数変換装置では、バイナリカウンタの場合には、ゲートの遅延時間のばらつき等により、カウント値が変化と同時にクロックが入力することがあり、その変化が2ビット以上であると、カウントアップの順序を逸脱したカウント値を取り込むことになるのを阻止するためにグレイコード等を採用したものであって、書込みと読み出しの調整を図ったものではない。
Further, in the frequency conversion device described in
そこで、本発明の目的は、入力データがフレーム構成やパケット構成などによらず、2ポートRAM部の書込みと読出しのアドレス競合を回避し、入力データや回路素子の変動があっても常にクロックの乗せ換えを行うことができるクロック乗せ換え回路を提供することにある。 Therefore, an object of the present invention is to avoid the address conflict between writing and reading in the 2-port RAM section regardless of whether the input data is a frame configuration or a packet configuration, so that even if there is a change in input data or circuit elements, It is an object of the present invention to provide a clock transfer circuit capable of transfer.
本発明のクロック位相乗せ換え回路は、クロックに同期して入力するデータを異なる周期のクロックに同期して出力するクロック乗せ換え回路において、独立して書込みと読出しが可能な2ポートRAMと、書込クロックに同期して入力するデータの2ポートRAMへの書込アドレスを順次に生成する書込アドレス生成部と、読出クロックに同期して2ポートRAMの読出アドレスを順次に生成する読出アドレス生成部と、書込アドレスと読出アドレスの接近を常時監視して、所定の差分になると書込アドレスと読出アドレスが所定の差分を超える差分となるように初期化するアドレス初期化検出部とを有することを特徴とする。 The clock phase changing circuit of the present invention is a clock changing circuit for outputting data inputted in synchronization with a clock in synchronization with a clock having a different period, a two-port RAM capable of writing and reading independently, A write address generation unit for sequentially generating a write address to the 2-port RAM for data input in synchronization with the input clock, and a read address generation for sequentially generating a read address for the 2-port RAM in synchronization with the read clock. has a part, constantly monitors the approach of the write address and the read address, the address initialization detection unit for initializing such a write address and a read address when a predetermined difference is a difference exceeding a predetermined difference It is characterized by that.
具体的には、アドレス初期化検出部(図1の7)は、書込アドレスをグレイコードに変換するグレイコードエンコード部(図1の4)と、グレイコードエンコード化された書込アドレスを前記読出クロックでリタイミングしてバイナリーコードに変換するグレイコードデコード部(図1の5)と、バイナリーコード化された書込アドレスの値と、読出アドレスを読出クロックでリタイミングした読出アドレスの値とを比較し、その差分が所定の値以内であるときは書込アドレス生成部と読出アドレス生成部へアドレス初期化信号を出力するアドレス比較部(図1の6)とから成る。 Specifically, the address initialization detection unit (7 in FIG. 1) includes a gray code encoding unit (4 in FIG. 1) that converts the write address into a gray code, and the gray code encoded write address. A gray code decoding unit (5 in FIG. 1) that retimes with a read clock and converts it to a binary code, a binary coded write address value, and a read address value with the read address retimed with a read clock When the difference is within a predetermined value, the write address generation unit and the address comparison unit (6 in FIG. 1) for outputting an address initialization signal to the read address generation unit.
そして、アドレス初期化は、2ポートRAMの書込アドレスの値と読出アドレスの値が2ポートRAMのアドレスの深さの半分だけ隔てた差分になるように行なわれる。 The address initialization is performed so that the value of the write address and the value of the read address of the 2-port RAM are different from each other by half the depth of the address of the 2-port RAM.
また、本発明のクロック乗せ換え回路は、基準クロックにより同期を確立して書込クロックを生成する書込クロックPLL(図7の9)および基準クロックにより同期を確立して前記読出クロックを生成する読出クロックPLL(図7の10)を監視し、同期が同時に確立すると、書込アドレス生成部(図1の2)と読出アドレス生成部(図1の3)へアドレス初期化信号を出力するPLLステータス検出部(図7の11)を上記構成に付加するようにしてもよい。 In addition, the clock transfer circuit of the present invention generates a write clock PLL (9 in FIG. 7) that establishes synchronization by a reference clock and generates a write clock, and generates the read clock by establishing synchronization by a reference clock. A PLL that monitors the read clock PLL (10 in FIG. 7) and outputs an address initialization signal to the write address generator (2 in FIG. 1) and the read address generator (3 in FIG. 1) when synchronization is simultaneously established. You may make it add a status detection part (11 of FIG. 7) to the said structure.
本発明のクロック乗せ換え回路は、書込アドレスの値と読出アドレスの値の接近を常時監視して、所定の距離になると書込アドレスと読出アドレスを適度の距離をおくように初期化するため、入力データの構成によらず書込クロックと読出クロックの位相差の変化のみを原因にアドレスを初期化し、書込アドレスと読出アドレスの競合を自動的に防ぎ、入力データや回路素子の変動があってもデータにビットエラーが発生し続ける状態を防ぐことができるという効果を有する。 The clock transfer circuit according to the present invention constantly monitors the approach between the write address value and the read address value, and initializes the write address and the read address so as to be at an appropriate distance when a predetermined distance is reached. Regardless of the configuration of the input data, the address is initialized only by the change in the phase difference between the write clock and the read clock, and the conflict between the write address and the read address is automatically prevented. Even if it exists, it has the effect that the state where a bit error continues to generate | occur | produce in data can be prevented.
次に、本発明の実施の形態について図面を参照して詳細に説明する。 Next, embodiments of the present invention will be described in detail with reference to the drawings.
[構成の説明]
図1は、本発明のクロック乗せ換え回路の実施例1の構成を示すブロック図である。図1において、このクロック乗せ換え回路は2ポートRAM1,書込アドレス生成部2,読出アドレス生成部3,グレイコードエンコード部4,グレイコードデコード部5およびアドレス比較部6で構成されている。
[Description of configuration]
FIG. 1 is a block diagram showing a configuration of a clock transfer circuit according to a first embodiment of the present invention. In FIG. 1, the clock transfer circuit is composed of a 2-
このクロック乗せ換え回路は、書込クロック104に同期して入力データ100を2ポートRAM1に書き込み、読出クロック105に同期して2ポートRAM1から出力データ101を読み出すことにより、書込クロック104から読出105クロックへの乗せ換えを行なうものである。
This clock transfer circuit reads the
2ポートRAM1は書込みと読出しが同時に行なえるが、読出しが書込みを追い越す等の誤動作があってはならず、そのためには、書込アドレス102と読出アドレス103が適度の距離を保つ必要がある。本実施例では、アドレス初期化検出部7がその任に当たり、書込アドレス102と読出アドレス103の差分が±1以内になると、書込アドレス生成部2と読出アドレス生成部3を初期化する。
The two-
2ポートRAM1は、書込みと読出しが相互に独立して行える。2ポートRAM1への書込みは、書込アドレス生成部2から出力される書込アドレス102により指定されるアドレスに、書込クロック104に応答して順次に入力データ100を書き込むことによって行なわれる。また、読出しは、読出アドレス生成部3から出力される読出アドレス103により指定されるアドレスから、読出クロック105に応答して順次に出力データ101を読み出すことによって行なわれる。
The 2-
書込アドレス生成部2は、システム起動時およびアドレス比較部6から出力されるアドレス初期化信号106により‘0’(10進)に初期化される。初期化制御を受けない場合には、書込クロック104により+1ずつインクリメントされる書込アドレス102を生成し出力する。
The write
読出アドレス生成部3は、システム起動時およびアドレス比較部6から出力されるアドレス初期化信号106により2ポートRAM1の深さの半分(深さが8ビットであれば‘4’)に初期化される。初期化制御を受けない場合には、読出クロック105により+1ずつインクリメントされる読出アドレス103を生成し出力する。
Read
グレイコードエンコード部4は、書込アドレス102をグレイコードにエンコードし、書込アドレス(グレイコードエンコード後)107を出力する。この場合、書込アドレス102はインクリメントデータであるから、書込アドレス(グレイコードエンコード後)107の隣り合うデータは、1ビットしか変化しないという特徴を有する。
The gray
グレイコードデコード部5は、書込アドレス(グレイコードエンコード後)107を一度、読出クロック105でリタイミングしてグレイコードをデコードし、書込アドレス(グレイコードデコード後)108を出力する。読出クロック105でリタイミングする際、伝送路の揺らぎ等により、書込クロック104と読出105クロックが接近し、読むべき書込アドレス(グレイコードエンコード後)107より1クロック前の書込アドレス(グレイコードエンコ
ード後)107を読んでしまうことがあり得る。
The gray
アドレス比較部6は、書込アドレス(グレイコードデコード後)108と、読出アドレス103を1ビットリタイミングした信号(この信号103’はアドレス比較部6の内部信号)を比較し、値が一致もしくは±1のときに初期化信号106をアサートする。これにより、書込アドレス102と読出アドレス103の競合を回避することができる。
[動作の説明]
次に、図2〜図6を用いて本クロック乗せ換え回路の動作を説明する。
The
[Description of operation]
Next, the operation of the clock transfer circuit will be described with reference to FIGS.
図2は2ポートRAM1の深さが8ビットであった場合のグレイコードデコード部5の動作を示すタイミングチャートである。グレイコードデコード部5は、書込クロック104に同期して入力される書込アドレス(グレイコードエンコード後)107を読出クロック105にてリタイミングを行い、その後にグレイコードをデコードして書込アドレス(グレイコードデコード後)108を得る。このとき、隣り合う値は必ず1ビットしか変化しないというグレイコードの特徴から、書込クロック104に対し、読出クロック105の位相が確定していない場合においても、必ずリタイミングすべき値、もしくは一つ前の値をリタイミングする。
FIG. 2 is a timing chart showing the operation of the Gray
なお、図2〜図6では、目視上は書込アドレス(グレイコードエンコード後)107の切替り時点と読出クロック105の立上り時点がずれているが、グレイコードデコード部5において、実際には両時点が接近してタイミングでリタイミングが行なわれる。そのために、リタイミングされる書込アドレス(グレイコードエンコード後)107の値が上述のように定まらなくなる。
In FIG. 2 to FIG. 6, the switching time of the write address (after gray code encoding) 107 and the rising time of the
図3〜図6は、書込クロック104と読出クロック105との遅速関係、およびタイミングされる値により4つに場合分けしたタイミングチャートである。
3 to 6 are timing charts divided into four cases according to the slow relationship between the
図3は書込クロック104が伝送路の揺らぎ等により読出クロック105よりも速まる場合であって、グレイコードデコード部5で前の値を読んでしまったときのタイミングチャートである。時刻T1に到るまでは、書込アドレス(グレイコードデコード後)108の値と読出アドレス(リタイミング後)103’の値の差分が±1を超えている。しかし、時刻T1では、書込アドレス(グレイコードデコード後)108の値は‘010’、読出アドレス(リタイミング後)103’の値は‘011’となって、その差分が±1以内となるため、時刻T2においてアドレス初期化信号106がアサートされる。
FIG. 3 is a timing chart when the
アドレス初期化信号106がアサートされると、書込アドレス生成部2は非同期で初期化され書込アドレス102の値は‘000’になり、読出アドレス生成部3も同様に非同期で初期化され読出アドレス103の値は‘100’になる。時刻T2から読出クロック105の1周期が経過する時刻T3までの間は、前の周期の値を引き継ぐため、書込アドレス(グレイコードデコード後)108の値と読出アドレス(リタイミング後)103’の値の差分が±1以内となる。
When the
しかし、時刻T3では、初期化の効果が現れて、書込アドレス(グレイコードデコード後)108の値は‘000’、読出アドレス(リタイミング後)103’の値は‘100’となる。これにより、差分が±1を超えるので、アドレス初期化信号106は時刻T4でデゼーブルされ、当分の間は初期化の必要なく動作を続けることができる。初期化されるまでの出力データ101は破棄され、時刻T2以降の出力データ101が有効化される。
However, at time T3, an initialization effect appears, and the value of the write address (after Gray code decoding) 108 is ‘000’, and the value of the read address (after retiming) 103 is ‘100’. Thus, since the difference exceeds ± 1, the
図4は書込クロック104が伝送路の揺らぎ等により読出105クロックよりも速まる場合であって、グレイコードデコード部5で本来の値を読んだときのタイミングチャートである。時刻T1に到るまでは、書込アドレス(グレイコードデコード後)108の値と読出アドレス(リタイミング後)103’の値の差分が±1を超えている。しかし、時刻T1では、書込アドレス(グレイコードエンコード後)103’の値は‘000’、読出アドレス(リタイミング後)103’の値は‘001’となって、その差分が±1以内となるため、時刻T2においてアドレス初期化信号106がアサートされる。
FIG. 4 is a timing chart when the original value is read by the gray
アドレス初期化信号106がアサートされると、書込アドレス生成部2は非同期で初期化され書込アドレス102の値は”000”になり、読出アドレス生成部3も同様に非同期で初期化され読出アドレス103の値は”100”になる。時刻T2から読出クロック105の1周期が経過する時刻T3までの間は、前の周期の値を引き継ぐため、書込アドレス(グレイコードデコード後)108の値と読出アドレス(リタイミング後)103’の値の差分が±1以内となる。
When the
しかし、時刻T3では、初期化の効果が現れて、書込アドレス(グレイコードデコード後)108の値は‘000’、読出アドレス(リタイミング後)103’の値は‘100’となる。これにより、差分が±1を超えるので、アドレス初期化信号106は時刻T4でデゼーブルされ、当分の間は初期化の必要なく動作を続けることができる。初期化されるまでの出力データ101は破棄され、時刻T2以降の出力データ101が有効化される。
However, at time T3, an initialization effect appears, and the value of the write address (after Gray code decoding) 108 is ‘000’, and the value of the read address (after retiming) 103 is ‘100’. Thus, since the difference exceeds ± 1, the
図5は書込クロック104が伝送路の揺らぎ等により読出クロック105よりも遅くなる場合であって、グレイコードデコード部5で前の値を読んでしまったときのタイミングチャートである。時刻T1に到るまでは、書込アドレス(グレイコードデコード後)108の値と読出アドレス(リタイミング後)103’の値の差分が±1を超えている。しかし、時刻T1では、書込アドレス(グレイコードエンコード後)108の値は‘111’、読出アドレス(リタイミング後)103’の値は‘110’となって、その値の差分が±1以内となるため、時刻T2においてアドレス初期化信号106がアサートされる。
FIG. 5 is a timing chart in the case where the
アドレス初期化信号106がアサートされると、書込アドレス生成部2は非同期で初期化され書込アドレス102の値は”000”になり、読出アドレス生成部3も同様に非同期で初期化され読出アドレス103の値は”100”になる。時刻T2から読出クロック105の1周期が経過する時刻T3までの間は、前の周期の値を引き継ぐため、書込アドレス(グレイコードデコード後)108の値と読出アドレス(リタイミング後)103’の値の差分が±1以内となる。
When the
しかし、時刻T3では書込アドレス(グレイコードデコード後)108の値は‘001’、読出アドレス(リタイミング後)103’の値は‘100’となって、差分が±1を超えるので、アドレス初期化信号106は時刻T4でデゼーブルされ、当分の間は初期化の必要なく動作を続けることができる。初期化されるまでの出力データ101は破棄され、時刻T2以降の出力データ101が有効化される。
However, at time T3, the value of the write address (after Gray code decoding) 108 is' 001 ', the value of the read address (after retiming) 103' is' 100 ', and the difference exceeds ± 1, so the address The
図6は書込クロック104が伝送路の揺らぎ等により読出クロック105よりも遅くなる場合であって、グレイコードデコード部5で本来の値を読んだときのタイミングチャートである。時刻T1に到るまでは、書込アドレス(グレイコードデコード後)108の値と読出アドレス(リタイミング後)103’の値の差分が±1を超えている。しかし、時刻T1では、書込アドレス(グレイコードエンコード後)108の値は‘010’、読出アドレス(リタイミング後)103’の値は‘001’となって、その値の差分が±1以内となるため、時刻T2においてアドレス初期化信号106がアサートされる。
FIG. 6 is a timing chart when the original value is read by the Gray
アドレス初期化信号106がアサートされると、書込アドレス生成部2は非同期で初期化され書込アドレスの値は”000”になり、読出アドレス生成部3も同様に非同期で初期化され読出アドレスの値は”100”になる。時刻T2から読出クロック105の1周期が経過する時刻T3までの間は、前の周期の値を引き継ぐため、書込アドレス(グレイコードデコード後)108の値と読出アドレス(リタイミング後)103’の値の差分が±1以内となる。
When the
しかし、時刻T3では、初期化の効果が現れて、書込アドレス(グレイコードデコード後)108の値は‘000’、読出アドレス(リタイミング後)103’の値は‘100’になる。これにより、差分が±1を超えるので、アドレス初期化信号106は時刻T4でデゼーブルされ、当分の間は初期化の必要なく動作を続けることができる。初期化されるまでの出力データ101は破棄され、時刻T2以降の出力データ101が有効化される。
However, at time T3, the effect of initialization appears, and the value of the write address (after Gray code decoding) 108 becomes ‘000’, and the value of the read address (after retiming) 103 ‘100’. Thus, since the difference exceeds ± 1, the
以上、詳細に説明したように、本発明では、2ポートRAM1の書込アドレス102と読出アドレス103の接近を監視し、所定の距離内になるとアドレス初期化信号106を生成して、書込アドレス生成部2と読出アドレス生成部3を適時に初期化することにより、書込アドレス102および読出アドレス103の競合を防ぎ、伝送路にエラーを発生し続ける可能性を自動で回避することができる。
As described above in detail, according to the present invention, the approach of the
図7は、本発明のクロック乗せ換え回路の実施例2の構成を示すブロック図である。このクロック乗せ換え回路は、以上に説明したクロック乗せ換え回路(図1)にPLLステータス検出部11を付加して、ここからもアドレス初期化信号112を供給できるようにしたものである。そして、その説明上、データ生成部8,書込クロック生成PLL9および読出クロック生成PLL10を掲出している。
FIG. 7 is a block diagram showing the configuration of the clock transfer circuit according to the second embodiment of the present invention. In this clock transfer circuit, the
書込クロック104は書込クロック生成PLL9によって生成され、読出クロック105は読出クロック生成PLL10により生成される。書込クロック生成PLL9および読出クロック生成PLL10は、外部より入力される基準クロック109により、それぞれが同期を確立する構成をとる。なお、データ生成部8は書込クロック104に同期した入力データ100を出力する。
The
しかし、書込クロック生成PLL9と読出クロック生成PLL10が非同期状態から同期状態に推移する際、同時に基準クロック109との同期が確立するとは限らない。従って、2ポートRAM1の書込アドレス102と読出アドレス103の差分が2ポートRAM1の深さの半分(深さ8ビットの場合は差分4となる)で安定状態となるとは限らない。そこで、ここではPLLステータス検出部11を追加する構成をとる。
However, when the write
PLLステータス検出部11は、書込クロック生成PLL9の同期/非同期状態を示す書込クロック生成PLLロック/アンロック信号110および読出クロック生成部10の同期/非同期状態を示す読出クロック生成PLLロック/アンロック信号111を監視し、両方のPLLがいずれも同期状態に推移した時点で、アドレス初期化信号(PLL同期)112をアサートし、書込アドレス生成部2と読出アドレス生成部3へ供給して初期化する。
The PLL
以上のように、書込クロック102と読出クロック103の間で周波数同期が確立してから書込アドレス生成部2および読出アドレス生成部3の初期化を行うことにより、2ポートRAM1の深さの半分で安定状態となる。なお、以降の書込クロック102の揺らぎ等による周波数の変化に対する動作は実施例1で説明したとおりである。
As described above, the initialization of the write
1 2ポートRAM部
2 書込アドレス生成部
3 読出アドレス生成部
4 グレイコードエンコード部
5 グレイコードデコード部
6 アドレス比較部
7 アドレス初期化検出部
8 データ生成部
9 書込クロック生成部
10 読出クロック生成部
11 PLLステータス検出部
DESCRIPTION OF
Claims (3)
ク乗せ換え回路において、
独立して書込みと読出しが可能な2ポートRAMと、
書込クロックに同期して前記入力するデータの前記2ポートRAMへの書込アドレスを順
次に生成する書込アドレス生成部と、
読出クロックに同期して前記2ポートRAMの読出アドレスを順次に生成する読出アドレ
ス生成部と、
前記書込アドレスと前記読出アドレスの接近を常時監視して、所定の差分になると前記
書込アドレスと読出アドレスが前記所定の差分を超える差分となるように初期化するアドレス初期化検出部とを有し、
前記アドレス初期化検出部は、
前記書込アドレスをグレイコードに変換するグレイコードエンコード部と、
前記グレイコードエンコード化された書込アドレスを前記読出クロックでリタイミング
してバイナリーコードに変換するグレイコードデコード部と、
前記バイナリーコード化された書込アドレスの値と、前記読出アドレスを前記読出クロ
ックでリタイミングした読出アドレスの値とを比較し、その差分が所定の値以内であると
きは前記書込アドレス生成部と前記読出アドレス生成部へアドレス初期化信号を出力する
アドレス比較部とから成ることを特徴とするクロック位相乗せ換え回路。 In a clock transfer circuit that outputs data input in synchronization with a clock in synchronization with a clock of a different period,
2-port RAM that can be written and read independently;
A write address generator for sequentially generating a write address of the input data to the 2-port RAM in synchronization with a write clock;
A read address generator for sequentially generating read addresses of the two-port RAM in synchronization with a read clock;
An address initialization detector that constantly monitors the approach between the write address and the read address, and initializes the write address and the read address to be a difference exceeding the predetermined difference when a predetermined difference is reached. Yes, and
The address initialization detection unit
A gray code encoding unit for converting the write address into a gray code;
Retiming the gray code encoded write address with the read clock
And a Gray code decoding part that converts it into a binary code,
The binary coded write address value and the read address are converted to the read clock.
Compared with the read address value retimed by the clock, the difference is within a predetermined value.
Output an address initialization signal to the write address generator and the read address generator
A clock phase change circuit comprising an address comparison unit.
が前記2ポートRAMのアドレスの深さの半分だけ隔てた差分になるように行なわれること
を特徴とする請求項1記載のクロック位相乗せ換え回路。 The address initialization claims, characterized in that the values of the read address of the write address of the dual port RAM is performed so that the difference was separated by half the depth of the address of the two-port RAM The clock phase change circuit according to Item 1 .
び前記基準クロックにより同期を確立して前記読出クロックを生成する読出クロックPLL
を監視し、前記同期が同時に確立すると、前記書込アドレス生成部と前記読出アドレス生
成部へアドレス初期化信号を出力するPLLステータス検出部を付加したことを特徴とする
請求項1または請求項2記載のクロック位相乗せ換え回路。 A write clock PLL that establishes synchronization with a reference clock and generates the write clock, and a read clock PLL that establishes synchronization with the reference clock and generates the read clock
3. A PLL status detector for outputting an address initialization signal to the write address generator and the read address generator when the synchronization is established at the same time is added. The clock phase changing circuit described.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008060894A JP5177856B2 (en) | 2008-03-11 | 2008-03-11 | Clock transfer circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008060894A JP5177856B2 (en) | 2008-03-11 | 2008-03-11 | Clock transfer circuit |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2009218885A JP2009218885A (en) | 2009-09-24 |
JP5177856B2 true JP5177856B2 (en) | 2013-04-10 |
Family
ID=41190317
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008060894A Active JP5177856B2 (en) | 2008-03-11 | 2008-03-11 | Clock transfer circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5177856B2 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012238992A (en) | 2011-05-11 | 2012-12-06 | Sony Corp | Clock handoff circuit and clock handoff method |
WO2013179349A1 (en) | 2012-05-31 | 2013-12-05 | パナソニック株式会社 | Clock transfer circuit, video processing system, and semiconductor integrated circuit |
JP6127816B2 (en) * | 2013-08-01 | 2017-05-17 | セイコーエプソン株式会社 | Semiconductor integrated circuit device, electronic device, and memory control method |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07250101A (en) * | 1994-03-14 | 1995-09-26 | Nec Corp | Elastic storage circuit |
JPH10242949A (en) * | 1997-02-28 | 1998-09-11 | Sony Corp | Data frequency conversion method and device for executing the method |
JP4417807B2 (en) * | 2004-08-25 | 2010-02-17 | 株式会社東芝 | Elastic buffer |
-
2008
- 2008-03-11 JP JP2008060894A patent/JP5177856B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2009218885A (en) | 2009-09-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7826305B2 (en) | Latency counter, semiconductor memory device including the same, and data processing system | |
KR100543910B1 (en) | Digital delay locked loop and method for controlling thereof | |
JP4751178B2 (en) | Synchronous semiconductor device | |
KR100801741B1 (en) | Delay Locked Loop | |
JP4504581B2 (en) | Register-controlled delay lock loop using ring delay and counter | |
US7098712B2 (en) | Register controlled delay locked loop with reduced delay locking time | |
KR101004665B1 (en) | Semiconductor memory device and output enable signal generating method | |
KR100988809B1 (en) | Semiconductor memory device and output enable signal generating method | |
TWI449342B (en) | Serializer and data serializing method | |
KR100665232B1 (en) | Synchronous semiconductor memory device | |
JP2007036869A (en) | Serial/parallel conversion, parallel/serial conversion, and fifo integrated circuit | |
CA2338320C (en) | Integrated data clock extractor | |
JP5177856B2 (en) | Clock transfer circuit | |
JP4592179B2 (en) | DELAY-LOCKED LOOP, SEMICONDUCTOR DEVICE INCLUDING THE DELAY-LOCKED LOOP, AND CONTROL METHOD FOR SYSTEM RUNNING BY CLOCK SYNCHRONIZATION | |
KR101847543B1 (en) | Semiconductor memory device and operating method thereof | |
JP2011139418A (en) | Delay locked loop and method for driving the same | |
US8099620B2 (en) | Domain crossing circuit of a semiconductor memory apparatus | |
US20050237822A1 (en) | Resynchronization circuit | |
US9001612B2 (en) | Semiconductor memory device and operation method thereof | |
US7696801B2 (en) | Reset method for clock triggering digital circuit and related signal generating apparatus utilizing the reset method | |
JP2000111587A (en) | Jitter detection circuit | |
KR100832023B1 (en) | Delay locked loop of semiconductor memory device | |
JP2008176569A (en) | Reset circuit and data transfer control circuit | |
JP3201352B2 (en) | Synchronization circuit | |
JP4890396B2 (en) | Staff multiplex transmission equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20110831 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110902 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20111019 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20120619 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120713 |
|
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: 20121211 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20130107 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5177856 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |