JP5177856B2 - Clock transfer circuit - Google Patents

Clock transfer circuit Download PDF

Info

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
Application number
JP2008060894A
Other languages
Japanese (ja)
Other versions
JP2009218885A (en
Inventor
隆 飯島
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Engineering Ltd
Original Assignee
NEC Engineering Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP2008060894A priority Critical patent/JP5177856B2/en
Publication of JP2009218885A publication Critical patent/JP2009218885A/en
Application granted granted Critical
Publication of JP5177856B2 publication Critical patent/JP5177856B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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-port RAM section 50 having a plurality of address areas corresponding to frames and capable of reading and writing independently, and input data 200 to the two-port RAM section 50 based on a write frame signal 202 and a write clock 205. A write address generation unit 51 for generating an address for writing, a read address generation unit 52 for generating an address for reading the output data 201 from the two-port RAM unit 50 based on the read frame signal 206 and the read clock 210, A read control unit 53 that arbitrates a read operation by a read control signal 209 is provided.

書込アドレス生成部51は、2ポートRAM部50のアドレス領域を示す上位書込アドレス204と、入力データ200のタイムスロットに対応したアドレスを示す下位書込アドレス204を生成し、2ポートRAM部50の上位書込アドレス204に対応したアドレス領域内の下位書込アドレス203に対応したアドレスに入力データ200を書き込むことが可能である。   The write address generation unit 51 generates an upper write address 204 indicating the address area of the 2-port RAM unit 50 and a lower write address 204 indicating an address corresponding to the time slot of the input data 200. The input data 200 can be written to the address corresponding to the lower write address 203 in the address area corresponding to 50 upper write addresses 204.

読出制御部53は、上位書込アドレス204を監視して、読出アドレス生成部52から読出フレーム信号206の直前に入力する読出制御信号209毎に、上位書込アドレス204と重複しない上位読出アドレス208を生成することが可能である。   The read control unit 53 monitors the upper write address 204, and for each read control signal 209 input from the read address generation unit 52 immediately before the read frame signal 206, the upper read address 208 that does not overlap with the upper write address 204. Can be generated.

読出アドレス生成部52は出力データ201のタイムスロットに対応したアドレスを示す下位読出アドレス207と読出制御信号209を生成し、2ポートRAM部の上位読出アドレス208に対応したフレーム領域内の下位読出アドレス207に対応したアドレスより出力データ201を読み出すことが可能である。このようにして、書込クロック205と読出クロック210の位相の変化を吸収できるようにしている。   Read address generator 52 generates lower read address 207 indicating the address corresponding to the time slot of output data 201 and read control signal 209, and lower read address in the frame area corresponding to upper read address 208 of the 2-port RAM unit. The output data 201 can be read from the address corresponding to 207. In this way, changes in the phases of the write clock 205 and the read clock 210 can be absorbed.

また、書込アドレスカウンタと読出アドレスカウンタを例えばパワーオン時にリセットし、書込アドレスカウンタのカウント値に基づいて書込アドレスを形成し、読出アドレスカウンタのカウント値に基づいて読出アドレスを形成して、デュアルポートメモリに供給することにより、書込アドレスと読出アドレスが充分に離れるようにし、読出しが書込みを追い越す等の誤動作を回避したクロック乗せ換え回路が知られている(例えば、特許文献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).

特開2004-140619(第4頁、図1)JP 2004-140619 (4th page, FIG. 1) 特開平8-274585(第4頁−第6頁、図1)JP-A-8-274585 (pages 4-6, FIG. 1) 特開平10-242949(第2頁、図2)JP 10-242949 (2nd page, Fig. 2)

しかしながら、上記の特許文献1記載のクロック乗せ換え回路では、書込クロック205と読出クロック210の位相が変化しても、書込みと読出しの競合を来たさないようにするための書込アドレスと読出アドレスの距離の確保を、外部から与えられる上位アドレスに依存して行なっているため、外部状況の変化があると所期の目的を達せられなくなる虞があるという第1の問題点がある。   However, in the clock transfer circuit described in Patent Document 1 described above, even if the phases of the write clock 205 and the read clock 210 change, the write address for avoiding the conflict between the write and the read Since the distance of the read address is secured depending on the upper address given from the outside, there is a first problem that the intended purpose may not be achieved if there is a change in the external situation.

更に、第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 Patent Document 2, the write address counter and the read address counter are initialized only at the time of power-on, and thereafter, the count value of the write address counter and the read address counter Since the write address and the read address are generated on the basis of the count value, there is a problem that even if there is a change in input data or circuit elements, it is not possible to cope with it, which may cause a malfunction.

また、特許文献3記載の周波数変換装置では、バイナリカウンタの場合には、ゲートの遅延時間のばらつき等により、カウント値が変化と同時にクロックが入力することがあり、その変化が2ビット以上であると、カウントアップの順序を逸脱したカウント値を取り込むことになるのを阻止するためにグレイコード等を採用したものであって、書込みと読み出しの調整を図ったものではない。   Further, in the frequency conversion device described in Patent Document 3, in the case of a binary counter, a clock may be input simultaneously with a change in count value due to variations in gate delay time, and the change is 2 bits or more. In order to prevent a count value that deviates from the count-up order from being taken in, a gray code or the like is employed, and the writing and reading are not adjusted.

そこで、本発明の目的は、入力データがフレーム構成やパケット構成などによらず、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-port RAM 1, a write address generation unit 2, a read address generation unit 3, a Gray code encoding unit 4, a Gray code decoding unit 5, and an address comparison unit 6.

このクロック乗せ換え回路は、書込クロック104に同期して入力データ100を2ポートRAM1に書き込み、読出クロック105に同期して2ポートRAM1から出力データ101を読み出すことにより、書込クロック104から読出105クロックへの乗せ換えを行なうものである。   This clock transfer circuit reads the input data 100 from the write clock 104 by writing the input data 100 to the 2-port RAM 1 and reading the output data 101 from the 2-port RAM 1 in synchronization with the read clock 105. Transfer to 105 clocks.

2ポートRAM1は書込みと読出しが同時に行なえるが、読出しが書込みを追い越す等の誤動作があってはならず、そのためには、書込アドレス102と読出アドレス103が適度の距離を保つ必要がある。本実施例では、アドレス初期化検出部7がその任に当たり、書込アドレス102と読出アドレス103の差分が±1以内になると、書込アドレス生成部2と読出アドレス生成部3を初期化する。   The two-port RAM 1 can perform writing and reading at the same time, but there must be no malfunction such as reading overtaking writing. To that end, the write address 102 and the read address 103 need to be kept at an appropriate distance. In this embodiment, the address initialization detection unit 7 takes charge of this, and when the difference between the write address 102 and the read address 103 is within ± 1, the write address generation unit 2 and the read address generation unit 3 are initialized.

2ポートRAM1は、書込みと読出しが相互に独立して行える。2ポートRAM1への書込みは、書込アドレス生成部2から出力される書込アドレス102により指定されるアドレスに、書込クロック104に応答して順次に入力データ100を書き込むことによって行なわれる。また、読出しは、読出アドレス生成部3から出力される読出アドレス103により指定されるアドレスから、読出クロック105に応答して順次に出力データ101を読み出すことによって行なわれる。   The 2-port RAM 1 can perform writing and reading independently of each other. Writing to the 2-port RAM 1 is performed by sequentially writing the input data 100 in response to the write clock 104 to the address specified by the write address 102 output from the write address generator 2. Reading is performed by sequentially reading the output data 101 in response to the read clock 105 from the address specified by the read address 103 output from the read address generator 3.

書込アドレス生成部2は、システム起動時およびアドレス比較部6から出力されるアドレス初期化信号106により‘0’(10進)に初期化される。初期化制御を受けない場合には、書込クロック104により+1ずつインクリメントされる書込アドレス102を生成し出力する。   The write address generation unit 2 is initialized to ‘0’ (decimal) by the system initialization and the address initialization signal 106 output from the address comparison unit 6. When the initialization control is not received, a write address 102 incremented by +1 by the write clock 104 is generated and output.

読出アドレス生成部3は、システム起動時およびアドレス比較部6から出力されるアドレス初期化信号106により2ポートRAM1の深さの半分(深さが8ビットであれば‘4’)に初期化される。初期化制御を受けない場合には、読出クロック105により+1ずつインクリメントされる読出アドレス103を生成し出力する。   Read address generator 3 is initialized to half the depth of 2-port RAM 1 ('4' if the depth is 8 bits) at system startup and by address initialization signal 106 output from address comparator 6. The When the initialization control is not received, a read address 103 incremented by +1 by the read clock 105 is generated and output.

グレイコードエンコード部4は、書込アドレス102をグレイコードにエンコードし、書込アドレス(グレイコードエンコード後)107を出力する。この場合、書込アドレス102はインクリメントデータであるから、書込アドレス(グレイコードエンコード後)107の隣り合うデータは、1ビットしか変化しないという特徴を有する。   The gray code encoding unit 4 encodes the write address 102 into a gray code, and outputs a write address (after gray code encoding) 107. In this case, since the write address 102 is increment data, the adjacent data of the write address (after Gray code encoding) 107 has a feature that only one bit changes.

グレイコードデコード部5は、書込アドレス(グレイコードエンコード後)107を一度、読出クロック105でリタイミングしてグレイコードをデコードし、書込アドレス(グレイコードデコード後)108を出力する。読出クロック105でリタイミングする際、伝送路の揺らぎ等により、書込クロック104と読出105クロックが接近し、読むべき書込アドレス(グレイコードエンコード後)107より1クロック前の書込アドレス(グレイコードエンコ
ード後)107を読んでしまうことがあり得る。
The gray code decoding unit 5 re-times the write address (after gray code encoding) 107 once with the read clock 105 to decode the gray code, and outputs the write address (after gray code decoding) 108. When retiming with the read clock 105, the write clock 104 and the read 105 clock approach each other due to fluctuations in the transmission path, etc., and the write address (gray) one clock before the write address (after gray code encoding) 107 to be read It is possible to read 107 after code encoding.

アドレス比較部6は、書込アドレス(グレイコードデコード後)108と、読出アドレス103を1ビットリタイミングした信号(この信号103’はアドレス比較部6の内部信号)を比較し、値が一致もしくは±1のときに初期化信号106をアサートする。これにより、書込アドレス102と読出アドレス103の競合を回避することができる。
[動作の説明]
次に、図2〜図6を用いて本クロック乗せ換え回路の動作を説明する。
The address comparison unit 6 compares the write address (after gray code decoding) 108 with a signal obtained by retiming the read address 103 by 1 bit (this signal 103 ′ is an internal signal of the address comparison unit 6), and the values match or The initialization signal 106 is asserted when ± 1. Thereby, the conflict between the write address 102 and the read address 103 can be avoided.
[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 code decoding unit 5 when the depth of the 2-port RAM 1 is 8 bits. The gray code decoding unit 5 performs retiming on the read clock 105 after the write address (after gray code encoding) 107 inputted in synchronization with the write clock 104, and then decodes the gray code to write address 108 (after Gray code decoding) is obtained. At this time, due to the feature of the Gray code that adjacent values always change by only 1 bit , even if the phase of the read clock 105 is not fixed with respect to the write clock 104, a value to be retimed or Retime previous value.

なお、図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 read clock 105 are deviated visually. The timing is approached and retiming is performed at the timing. Therefore, the value of the write address 107 (after Gray code encoding) to be retimed cannot be determined as described above.

図3〜図6は、書込クロック104と読出クロック105との遅速関係、およびタイミングされる値により4つに場合分けしたタイミングチャートである。   3 to 6 are timing charts divided into four cases according to the slow relationship between the write clock 104 and the read clock 105 and the value to be timed.

図3は書込クロック104が伝送路の揺らぎ等により読出クロック105よりも速まる場合であって、グレイコードデコード部5で前の値を読んでしまったときのタイミングチャートである。時刻T1に到るまでは、書込アドレス(グレイコードデコード後)108の値と読出アドレス(リタイミング後)103’の値の差分が±1を超えている。しかし、時刻T1では、書込アドレス(グレイコードデコード後)108の値は‘010’、読出アドレス(リタイミング後)103’の値は‘011’となって、その差分が±1以内となるため、時刻T2においてアドレス初期化信号106がアサートされる。   FIG. 3 is a timing chart when the write clock 104 is faster than the read clock 105 due to fluctuations in the transmission path or the like, and when the previous value is read by the Gray code decoding unit 5. Until the time T1, the difference between the value of the write address (after gray code decoding) 108 and the value of the read address (after retiming) 103 'exceeds ± 1. However, at time T1, the value of the write address (after gray code decoding) 108 is “010”, the value of the read address (after retiming) 103 is “011”, and the difference is within ± 1. Therefore, the address initialization signal 106 is asserted at time T2.

アドレス初期化信号106がアサートされると、書込アドレス生成部2は非同期で初期化され書込アドレス102の値は‘000’になり、読出アドレス生成部3も同様に非同期で初期化され読出アドレス103の値は‘100’になる。時刻T2から読出クロック105の1周期が経過する時刻T3までの間は、前の周期の値を引き継ぐため、書込アドレス(グレイコードデコード後)108の値と読出アドレス(リタイミング後)103’の値の差分が±1以内となる。   When the address initialization signal 106 is asserted, the write address generation unit 2 is asynchronously initialized and the value of the write address 102 becomes '000', and the read address generation unit 3 is similarly asynchronously initialized and read. The value of the address 103 is “100”. From time T2 to time T3 when one cycle of the read clock 105 elapses, the value of the previous cycle is taken over, so the value of the write address (after Gray code decoding) 108 and the read address (after retiming) 103 ′ The difference between the values is within ± 1.

しかし、時刻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 address initialization signal 106 is disabled at time T4, and the operation can be continued for the time being without initialization. The output data 101 until initialization is discarded, and the output data 101 after time T2 is validated.

図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 code decoding unit 5 in the case where the write clock 104 is faster than the read 105 clock due to fluctuations in the transmission path. Until the time T1, the difference between the value of the write address (after gray code decoding) 108 and the value of the read address (after retiming) 103 'exceeds ± 1. However, at time T1, the value of the write address (after Gray code encoding) 103 'is' 000 ', the value of the read address (after retiming) 103' is '001', and the difference is within ± 1. Therefore, the address initialization signal 106 is asserted at time T2.

アドレス初期化信号106がアサートされると、書込アドレス生成部2は非同期で初期化され書込アドレス102の値は”000”になり、読出アドレス生成部3も同様に非同期で初期化され読出アドレス103の値は”100”になる。時刻T2から読出クロック105の1周期が経過する時刻T3までの間は、前の周期の値を引き継ぐため、書込アドレス(グレイコードデコード後)108の値と読出アドレス(リタイミング後)103’の値の差分が±1以内となる。   When the address initialization signal 106 is asserted, the write address generation unit 2 is asynchronously initialized and the value of the write address 102 becomes “000”, and the read address generation unit 3 is similarly asynchronously initialized and read. The value of the address 103 is “100”. From time T2 to time T3 when one cycle of the read clock 105 elapses, the value of the previous cycle is taken over, so the value of the write address (after Gray code decoding) 108 and the read address (after retiming) 103 ′ The difference between the values is within ± 1.

しかし、時刻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 address initialization signal 106 is disabled at time T4, and the operation can be continued for the time being without initialization. The output data 101 until initialization is discarded, and the output data 101 after time T2 is validated.

図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 write clock 104 becomes slower than the read clock 105 due to fluctuations in the transmission path and the like, and the previous value is read by the Gray code decoding unit 5. Until the time T1, the difference between the value of the write address (after gray code decoding) 108 and the value of the read address (after retiming) 103 'exceeds ± 1. However, at time T1, the value of the write address (after Gray code encoding) 108 is “111”, the value of the read address (after retiming) 103 is “110”, and the difference between the values is within ± 1. Therefore, the address initialization signal 106 is asserted at time T2.

アドレス初期化信号106がアサートされると、書込アドレス生成部2は非同期で初期化され書込アドレス102の値は”000”になり、読出アドレス生成部3も同様に非同期で初期化され読出アドレス103の値は”100”になる。時刻T2から読出クロック105の1周期が経過する時刻T3までの間は、前の周期の値を引き継ぐため、書込アドレス(グレイコードデコード後)108の値と読出アドレス(リタイミング後)103’の値の差分が±1以内となる。   When the address initialization signal 106 is asserted, the write address generation unit 2 is asynchronously initialized and the value of the write address 102 becomes “000”, and the read address generation unit 3 is similarly asynchronously initialized and read. The value of the address 103 is “100”. From time T2 to time T3 when one cycle of the read clock 105 elapses, the value of the previous cycle is taken over, so the value of the write address (after Gray code decoding) 108 and the read address (after retiming) 103 ′ The difference between the values is within ± 1.

しかし、時刻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 initialization signal 106 is disabled at time T4 and can continue to operate for the time being without initialization. The output data 101 until initialization is discarded, and the output data 101 after time T2 is validated.

図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 code decoding unit 5 in the case where the write clock 104 becomes slower than the read clock 105 due to fluctuations in the transmission path or the like. Until the time T1, the difference between the value of the write address (after gray code decoding) 108 and the value of the read address (after retiming) 103 'exceeds ± 1. However, at time T1, the value of the write address (after Gray code encoding) 108 is '010', the value of the read address (after retiming) 103 is '001', and the difference between the values is within ± 1 Therefore, the address initialization signal 106 is asserted at time T2.

アドレス初期化信号106がアサートされると、書込アドレス生成部2は非同期で初期化され書込アドレスの値は”000”になり、読出アドレス生成部3も同様に非同期で初期化され読出アドレスの値は”100”になる。時刻T2から読出クロック105の1周期が経過する時刻T3までの間は、前の周期の値を引き継ぐため、書込アドレス(グレイコードデコード後)108の値と読出アドレス(リタイミング後)103’の値の差分が±1以内となる。   When the address initialization signal 106 is asserted, the write address generation unit 2 is initialized asynchronously and the value of the write address becomes “000”, and the read address generation unit 3 is similarly asynchronously initialized and read address The value of becomes “100”. From time T2 to time T3 when one cycle of the read clock 105 elapses, the value of the previous cycle is taken over, so the value of the write address (after Gray code decoding) 108 and the read address (after retiming) 103 ′ The difference between the values is within ± 1.

しかし、時刻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 address initialization signal 106 is disabled at time T4, and the operation can be continued for the time being without initialization. The output data 101 until initialization is discarded, and the output data 101 after time T2 is validated.

以上、詳細に説明したように、本発明では、2ポートRAM1の書込アドレス102と読出アドレス103の接近を監視し、所定の距離内になるとアドレス初期化信号106を生成して、書込アドレス生成部2と読出アドレス生成部3を適時に初期化することにより、書込アドレス102および読出アドレス103の競合を防ぎ、伝送路にエラーを発生し続ける可能性を自動で回避することができる。   As described above in detail, according to the present invention, the approach of the write address 102 and the read address 103 of the 2-port RAM 1 is monitored, and when it is within a predetermined distance, the address initialization signal 106 is generated to generate the write address. By initializing the generation unit 2 and the read address generation unit 3 in a timely manner, the conflict between the write address 102 and the read address 103 can be prevented, and the possibility of continuously generating errors in the transmission path can be automatically avoided.

図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 PLL status detector 11 is added to the clock transfer circuit (FIG. 1) described above so that the address initialization signal 112 can be supplied from here. For the description, a data generation unit 8, a write clock generation PLL 9, and a read clock generation PLL 10 are displayed.

書込クロック104は書込クロック生成PLL9によって生成され、読出クロック105は読出クロック生成PLL10により生成される。書込クロック生成PLL9および読出クロック生成PLL10は、外部より入力される基準クロック109により、それぞれが同期を確立する構成をとる。なお、データ生成部8は書込クロック104に同期した入力データ100を出力する。   The write clock 104 is generated by the write clock generation PLL 9 and the read clock 105 is generated by the read clock generation PLL 10. The write clock generation PLL 9 and the read clock generation PLL 10 are configured to establish synchronization by a reference clock 109 input from the outside. The data generator 8 outputs input data 100 synchronized with the write clock 104.

しかし、書込クロック生成PLL9と読出クロック生成PLL10が非同期状態から同期状態に推移する際、同時に基準クロック109との同期が確立するとは限らない。従って、2ポートRAM1の書込アドレス102と読出アドレス103の差分が2ポートRAM1の深さの半分(深さ8ビットの場合は差分4となる)で安定状態となるとは限らない。そこで、ここではPLLステータス検出部11を追加する構成をとる。   However, when the write clock generation PLL 9 and the read clock generation PLL 10 transition from the asynchronous state to the synchronous state, synchronization with the reference clock 109 is not always established at the same time. Therefore, the difference between the write address 102 and the read address 103 of the 2-port RAM 1 does not always become a stable state at half the depth of the 2-port RAM 1 (difference 4 when the depth is 8 bits). Therefore, here, a configuration is adopted in which the PLL status detection unit 11 is added.

PLLステータス検出部11は、書込クロック生成PLL9の同期/非同期状態を示す書込クロック生成PLLロック/アンロック信号110および読出クロック生成部10の同期/非同期状態を示す読出クロック生成PLLロック/アンロック信号111を監視し、両方のPLLがいずれも同期状態に推移した時点で、アドレス初期化信号(PLL同期)112をアサートし、書込アドレス生成部2と読出アドレス生成部3へ供給して初期化する。   The PLL status detection unit 11 includes a write clock generation PLL lock / unlock signal 110 indicating the synchronous / asynchronous state of the write clock generation PLL 9 and a read clock generation PLL lock / unlock indicating the synchronous / asynchronous state of the read clock generation unit 10. The lock signal 111 is monitored, and when both PLLs are synchronized, the address initialization signal (PLL synchronization) 112 is asserted and supplied to the write address generation unit 2 and the read address generation unit 3 initialize.

以上のように、書込クロック102と読出クロック103の間で周波数同期が確立してから書込アドレス生成部2および読出アドレス生成部3の初期化を行うことにより、2ポートRAM1の深さの半分で安定状態となる。なお、以降の書込クロック102の揺らぎ等による周波数の変化に対する動作は実施例1で説明したとおりである。   As described above, the initialization of the write address generation unit 2 and the read address generation unit 3 is performed after frequency synchronization is established between the write clock 102 and the read clock 103, so that the depth of the 2-port RAM 1 is increased. Half is stable. The subsequent operation with respect to a change in frequency due to fluctuations in the write clock 102 is the same as described in the first embodiment.

本発明のクロック乗せ換え回路の実施例1の構成を示すブロック図The block diagram which shows the structure of Example 1 of the clock transfer circuit of this invention. 本発明のクロック乗せ換え回路におけるグレイコードデコード部5の動作を示すタイミングチャートTiming chart showing the operation of the Gray code decoding unit 5 in the clock transfer circuit of the present invention 本発明のクロック乗せ換え回路の第1のタイミングチャートFirst timing chart of clock transfer circuit of the present invention 本発明のクロック乗せ換え回路の第2のタイミングチャートSecond timing chart of clock transfer circuit of the present invention 本発明のクロック乗せ換え回路の第3のタイミングチャートThird timing chart of clock transfer circuit of the present invention 本発明のクロック乗せ換え回路の第4のタイミングチャートFourth timing chart of clock transfer circuit of the present invention 本発明のクロック乗せ換え回路の実施例2の構成を示すブロック図The block diagram which shows the structure of Example 2 of the clock transfer circuit of this invention 従来のクロック乗せ換え回路の一レノ構成を示すブロック図Block diagram showing one reno configuration of a conventional clock transfer circuit

符号の説明Explanation of symbols

1 2ポートRAM部
2 書込アドレス生成部
3 読出アドレス生成部
4 グレイコードエンコード部
5 グレイコードデコード部
6 アドレス比較部
7 アドレス初期化検出部
8 データ生成部
9 書込クロック生成部
10 読出クロック生成部
11 PLLステータス検出部
DESCRIPTION OF SYMBOLS 1 2 port RAM part 2 Write address generation part 3 Read address generation part 4 Gray code encoding part 5 Gray code decoding part 6 Address comparison part 7 Address initialization detection part 8 Data generation part 9 Write clock generation part 10 Read clock generation Part 11 PLL status detection part

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の前記書込アドレスの値と読出アドレスの値
が前記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
を監視し、前記同期が同時に確立すると、前記書込アドレス生成部と前記読出アドレス生
成部へアドレス初期化信号を出力する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.
JP2008060894A 2008-03-11 2008-03-11 Clock transfer circuit Active JP5177856B2 (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

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