JPS63173432A - Clock crossing over circuit - Google Patents

Clock crossing over circuit

Info

Publication number
JPS63173432A
JPS63173432A JP62005420A JP542087A JPS63173432A JP S63173432 A JPS63173432 A JP S63173432A JP 62005420 A JP62005420 A JP 62005420A JP 542087 A JP542087 A JP 542087A JP S63173432 A JPS63173432 A JP S63173432A
Authority
JP
Japan
Prior art keywords
pulse
phase
reset pulse
read
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.)
Pending
Application number
JP62005420A
Other languages
Japanese (ja)
Inventor
Yuji Tajiri
田尻 裕二
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP62005420A priority Critical patent/JPS63173432A/en
Publication of JPS63173432A publication Critical patent/JPS63173432A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To read a data written from a head without error by reading a synchronizing pulse from a phase comparator means and sending it as a reset pulse to a memory means and as an initializing signal to a counting means when the phase of the synchronizing pulse and the output of the counting means are dissident. CONSTITUTION:A W reset pulse synchronously with a W-CK is used and a synchronizing pulse synchronously with the R-CK is generated from a synchronizing pulse generator 3. The phase of the synchronizing pulse and the phase of the output (carry) from the counter 71 are compared by a phase comparator 81 and when they are dissident, the synchronizing pulse is fed from the comparator as a R-reset pulse and the initializing signal to an elastic storage memory 61 and a counter 71. Then a read address reaches an address '0' and the data is read out of the address '0' by the R-CK in the former and the signal is counted up from '0' while being initialized in the latter. That is, the R-reset pulse is generated immediately from the first W-reset pulse, then the written data is read from the head without error.

Description

【発明の詳細な説明】 〔概要〕 クロック乗り換え回路において、位相比較手段で同期パ
ルスとカウント手段の出力との位相を比較し、比較出力
をメモリ手段とカウント手段に送出することにより、不
一致の場合に最初の書き込みリセットパルス以降のデー
タを誤りなく読み出せる様にしたものである。
[Detailed Description of the Invention] [Summary] In a clock switching circuit, a phase comparing means compares the phases of a synchronizing pulse and an output of a counting means, and a comparison output is sent to a memory means and a counting means, thereby detecting a mismatch. This makes it possible to read data after the first write reset pulse without error.

〔産業上の利用分野〕[Industrial application field]

本発明はクロック乗り換え回路、例えばエラスティック
ストアメモリを使用したクロック乗り換え回路の改良に
関するものである。
The present invention relates to an improvement in a clock switching circuit, for example, a clock switching circuit using elastic store memory.

第4図はクロック乗り換え回路接続図を示す。FIG. 4 shows a clock switching circuit connection diagram.

図において、第1の装置と第2の装置との間でデータの
受は渡しを行う際に2つの装置が、周期は同じだがジッ
タにより互いに位相がずれている別系統のクロックCK
−1,CK−2で動作している場合、クロック乗り換え
回路で第1の装置のクロックCK−1に同期したデータ
を、第2の装置のクロックCK−2に同期したデータに
変換(これをクロックの乗り換えと云う)して第2の装
置に送出する。
In the figure, when receiving and passing data between a first device and a second device, the two devices use clocks CK of different systems that have the same period but are out of phase with each other due to jitter.
-1, CK-2, the clock switching circuit converts data synchronized with the clock CK-1 of the first device to data synchronized with the clock CK-2 of the second device (this (This is called clock switching) and sends it to the second device.

この時、最初からデータを誤りな(変換できる(読みだ
せる)ことが必要である。
At this time, it is necessary that the data be correct (convertible (readable)) from the beginning.

〔従来の技術〕[Conventional technology]

第5図は従来例のブロック図、第6図は従来例のタイム
チャートを示す。尚、第6図の左側の数字は第5図中の
同じ数字の部分の波形を示す。
FIG. 5 is a block diagram of the conventional example, and FIG. 6 is a time chart of the conventional example. Note that the numbers on the left side of FIG. 6 indicate the waveforms of the portions with the same numbers in FIG.

以下、第6図を参照しながら第5図の動作を説明する。The operation shown in FIG. 5 will be explained below with reference to FIG.

先ず、クロック乗り換え回路に第6図−■に示す様な書
き込みデータ、この書き込みデータの先頭を示すフレー
ム同期パルス及び第6図−■に示す様な書き込みクロッ
ク(以下、 W−CKと省略する)が入力する。
First, the clock switching circuit receives write data as shown in Figure 6-■, a frame synchronization pulse indicating the beginning of this write data, and a write clock as shown in Figure 6-■ (hereinafter abbreviated as W-CK). enters.

そこで、書き込みリセットパルス発生器1でフレーム同
期パルスを用いて第6図−■に示す様な書き込みリセッ
トパルスを発生し、エラスティックストアメモリ (以
下、 FiFoと省略する)2と例えばDタイプフリッ
プフロップで構成された同期パルス発生器3に加える。
Therefore, the write reset pulse generator 1 uses a frame synchronization pulse to generate a write reset pulse as shown in FIG. Add to the synchronous pulse generator 3 composed of

前者ではこのパルスで内部のカウンタ(図示せず)をリ
セットし、0番地からW−CKを用いて書き込みデータ
をFiFo2に書き込んでいく。
In the former case, an internal counter (not shown) is reset by this pulse, and write data is written into the FiFo2 from address 0 using W-CK.

後者では書き込みリセットパルスのクロック乗り換えが
行われ、第6図−〇に示す様な読み出しクロック(以下
、 ll−GKと省略する)に同期したパルス(以下、
同期パルスと云う)を発生して位相比較器5に加える。
In the latter case, the clock of the write reset pulse is changed, and the pulse (hereinafter referred to as ``11-GK'') synchronized with the read clock (hereinafter abbreviated as ll-GK) as shown in Figure 6-0 is performed.
A synchronizing pulse (referred to as a synchronizing pulse) is generated and applied to the phase comparator 5.

ここで、例えば8ビツトのカウンタ4は第6図−〇に示
す様なR−CKをカウントし、上記のフレーム同期パル
スと同一の周期でキャリーを位相比較器5とFiFo2
に送出する。
Here, for example, the 8-bit counter 4 counts R-CK as shown in FIG.
Send to.

そこで、位相比較器5は同期パルスとキャリーの位相が
一致しているか否かを比較し、不一致の場合は第6図−
〇前半に示す様な初期化信号を送出してカウンタを初期
化するので第6図−■に示す様に0からカウント動作を
開始し、カウンタの出力は同期パルスと同期状態となる
Therefore, the phase comparator 5 compares whether the synchronization pulse and the carry phase match or not, and if they do not match, the phase comparator 5
Since the counter is initialized by sending an initialization signal as shown in the first half of ○, the counting operation starts from 0 as shown in FIG.

そして、第6図−■後半に示す様にカウンタからのキャ
リーがFiFo2と位相比較器5に送出されるとFiF
oのアドレスは0番地になると共に、キャリーによりカ
ウンタもOに戻ってフレーム同期パルスと同期が取れる
Then, as shown in the second half of Figure 6-■, when the carry from the counter is sent to FiFo2 and phase comparator 5, FiFo
The address of o becomes 0, and the counter also returns to O due to carry, allowing synchronization with the frame synchronization pulse.

尚、同期パルスとカウンタ4の出力の位相が一致すると
第6図−〇後半に示す様に位相比較器5から初期化信号
は送出されない。
Incidentally, when the phases of the synchronization pulse and the output of the counter 4 match, the initialization signal is not sent out from the phase comparator 5 as shown in the second half of FIG. 6--.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

ここで、カウンタ4のキャリーをR−リセットパルスと
して使用するが、このR−リセットパルスが一リセット
パルスに対して同期が取れるのは第6図−■、■の後半
に示す様に2番目の一リセットパルスが発生した時点よ
り以降であり、屑−リセットパルスの1番目から2番目
の間のデータは第6図−■に示す様に読み出しアドレス
が確定しないのでデータは無効になる、即ちクロック乗
り換えされたデータの一部が欠落すると云う問題点があ
る。
Here, the carry of counter 4 is used as an R-reset pulse, but this R-reset pulse can be synchronized with one reset pulse as shown in the second half of Figure 6-■ and ■. This is after the time when one reset pulse is generated, and the data between the first and second scrap reset pulses becomes invalid because the read address is not determined as shown in Figure 6-■. There is a problem that some transferred data may be lost.

C問題点を解決する為の手段〕 上記の問題点は第1図に示すクロック乗り換え回路によ
り解決される。
Means for Solving Problem C] The above problem is solved by the clock switching circuit shown in FIG.

8はカウント手段7の出力と書き込みリセットパルスか
ら発生した同期パルスとの位相を比較して、比較出力を
メモリ手段とカウント手段に送出する位相比較手段であ
る。
Reference numeral 8 denotes a phase comparison means that compares the phase of the output of the counting means 7 and the synchronization pulse generated from the write reset pulse, and sends a comparison output to the memory means and the counting means.

〔作用〕[Effect]

本発明は位相比較手段8の出力側を該メモリ手段6とカ
ウント手段7とに接続して、同期パルスパルスを用いて
発生した)を読み出しリセットパルスとしてメモリ手段
6に送出すると同時に、初期化信号としてカウント手段
7にも送出する様にした。
The present invention connects the output side of the phase comparison means 8 to the memory means 6 and the counting means 7, and reads out the pulse (generated using the synchronization pulse) and sends it to the memory means 6 as a reset pulse, and at the same time sends the initialization signal to the memory means 6. It is also sent to the counting means 7 as follows.

この為、最初の書き込みリセットパルスから読み出しリ
セットパルスを発生することができるので、書き込みデ
ータの先頭から正しく読み出すことが可能となりデータ
の無効はなくなる。
Therefore, since the read reset pulse can be generated from the first write reset pulse, it is possible to correctly read the write data from the beginning, and invalid data is eliminated.

〔実施例〕〔Example〕

第2図は本発明の実施例のブロック図、第3図は第2図
のタイムチャートを示す。尚、第3図中の左側の数字は
第2図中の同じ数字の部分の波形で、第3図−■は書き
込みデータを示す。又、全図を通じて同一符号は同一対
象物を示す。
FIG. 2 is a block diagram of an embodiment of the present invention, and FIG. 3 is a time chart of FIG. 2. Note that the numbers on the left side of FIG. 3 are the waveforms of the portions with the same numbers in FIG. 2, and FIG. 3--■ shows the write data. Also, the same reference numerals indicate the same objects throughout the figures.

以下、第3図を参照しながら第2図の動作を説明する。The operation shown in FIG. 2 will be explained below with reference to FIG.

先ず、W−CKに同期したトリセットパルスを用いて同
期パルス発生器3でR−CKに同期した同期パルスを発
生する(第2図−■〜■参照)。
First, the synchronization pulse generator 3 generates a synchronization pulse synchronized with R-CK using a triset pulse synchronized with W-CK (see FIG. 2--).

そして、この同期パルスとカウンタ71からの出力(キ
ャリー)の位相を位相比較器81で比較して不一致なら
ば、この比較器より同期パルスがR−リセットパルスと
初期化信号としてエラスティックストアメモリ61とカ
ウンタ71に加えられる(第2図−■、■参照)。
Then, a phase comparator 81 compares the phase of this synchronization pulse and the output (carry) from the counter 71, and if they do not match, this comparator outputs the synchronization pulse to the elastic store memory 61 as an R-reset pulse and an initialization signal. and is added to the counter 71 (see Figure 2--■, ■).

そこで、前者では第3図−■前半に示す様に読み出しア
ドレスがO番地になってR−tJで0番地からデータか
ら読み出され、後者では第3図−■前半に示す様に初期
化されてOよりカウントアツプする。
Therefore, in the former, the read address becomes address O as shown in the first half of Figure 3-■, and the data is read from address 0 at R-tJ, and in the latter, the data is initialized as shown in the first half of Figure 3-■. Count up from O.

そして、次の同期パルスとキャリーの位相は一致するの
で位相比較器81からキャリーがR−リセットパルス及
び初期化信号としてカウンタとFiFoに送出されるの
で、アドレスがO番地に、カウント値がOに戻る。
Then, since the next synchronization pulse and the carry match, the phase comparator 81 sends the carry as an R-reset pulse and an initialization signal to the counter and FiFo, so the address becomes O and the count value becomes O. return.

即ち、最初のWmリセットパルスから直ちにR−リセッ
トパルスを発生させることができるので、書き込まれた
データの先頭から誤りなく読み出すことができる。
That is, since the R-reset pulse can be generated immediately from the first Wm reset pulse, the written data can be read from the beginning without error.

〔発明の効果〕〔Effect of the invention〕

以上詳細に説明した様に本発明によれば書き込まれたデ
ータの先頭から誤りなく読み出すことができると云う効
果がある。
As described above in detail, the present invention has the advantage that written data can be read from the beginning without error.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の原理ブロック図、 第2図は本発明の実施例のブロック図、第3図は第2図
のタイムチャート、 第4図はクロック乗り換え回路接続図、第5図は従来例
のブロック図、 第6図は第5図のタイムチ4−トを示す。 図において、 1は書き込みリセットパルス発生器、 2.61はエラスティックストアメモリ、3は同期パル
ス発生器、 4.71はカウンタ、 5.81は位相比較器、 6はメモリ手段、 7はカウント手段、 8は位相比較手段を示す。 フイム+〜−ト 図
Fig. 1 is a block diagram of the principle of the present invention, Fig. 2 is a block diagram of an embodiment of the invention, Fig. 3 is a time chart of Fig. 2, Fig. 4 is a clock switching circuit connection diagram, and Fig. 5 is a conventional block diagram. An example block diagram, FIG. 6, shows the time chart of FIG. In the figure, 1 is a write reset pulse generator, 2.61 is an elastic store memory, 3 is a synchronization pulse generator, 4.71 is a counter, 5.81 is a phase comparator, 6 is a memory means, and 7 is a counting means. , 8 indicates phase comparison means. Film+~-to diagram

Claims (1)

【特許請求の範囲】 フレーム同期信号を用いて発生した書き込みリセットパ
ルスと書き込みクロックとを用いて所定番地からデータ
が書き込まれ、書き込まれたデータが読み出しクロック
を用いて読み出されるメモリ手段(6)と、 該読み出しクロックをカウントするカウント手段(7)
と、該カウント手段の出力と該書き込みリセットパルス
を用いて発生した同期パルスとの位相を比較する位相比
較手段(8)とを有するクロック乗り換え回路において
、 該位相比較手段(8)の出力を該メモリ手段(6)とカ
ウント手段(7)に送出する様にしたことを特徴とする
クロック乗り換え回路。
[Claims] A memory means (6) in which data is written from a predetermined location using a write reset pulse and a write clock generated using a frame synchronization signal, and the written data is read out using a read clock. , counting means (7) for counting the read clock;
and a phase comparison means (8) for comparing the phase of the output of the counting means and a synchronization pulse generated using the write reset pulse. A clock switching circuit characterized in that the clock is sent to a memory means (6) and a counting means (7).
JP62005420A 1987-01-13 1987-01-13 Clock crossing over circuit Pending JPS63173432A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62005420A JPS63173432A (en) 1987-01-13 1987-01-13 Clock crossing over circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62005420A JPS63173432A (en) 1987-01-13 1987-01-13 Clock crossing over circuit

Publications (1)

Publication Number Publication Date
JPS63173432A true JPS63173432A (en) 1988-07-18

Family

ID=11610665

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62005420A Pending JPS63173432A (en) 1987-01-13 1987-01-13 Clock crossing over circuit

Country Status (1)

Country Link
JP (1) JPS63173432A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07254892A (en) * 1994-03-16 1995-10-03 Nec Corp Phase varying circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07254892A (en) * 1994-03-16 1995-10-03 Nec Corp Phase varying circuit

Similar Documents

Publication Publication Date Title
JPS62146035A (en) Data synchronizer
JP2641276B2 (en) Two-stage synchronizer
JPS5923647A (en) Method of converting serial data signal and converting circuit
JPS63173432A (en) Clock crossing over circuit
RU98112238A (en) METHOD AND DEVICE FOR DETERMINING THE STATE OF A JOINT RESOURCE USED
US20050086400A1 (en) FIFO interface for flag-initiated DMA frame synchro-burst operation
US6744833B1 (en) Data resynchronization between modules sharing a common clock
JPH10257034A (en) Unit for switching without short break
JPS61177564A (en) Shared storage device
JP3364943B2 (en) Clock skew correction circuit
JPH04115753A (en) Elastic memory control circuit
SU1608752A1 (en) Device for regenerating dynamic memory
JPS581917Y2 (en) Phase synchronized circuit with multiple memory circuits
SU743211A1 (en) Binary signal regenerator
JP2850875B2 (en) Phase adjustment memory
SU1451775A1 (en) Buffer storage
JP2963821B2 (en) Bit buffer circuit
JPS5896327A (en) Interface circuit
JPH02226929A (en) Delay inserting/removing device
JPS60187163A (en) Buffer memory circuit
JPS58117055A (en) Scanning data protection system
JPS61171246A (en) Detection circuit for out of synchronism
JPH0282317A (en) Bias setting device for buffer memory
JPS6221337A (en) Staff synchronizing system
JPS61280194A (en) Holding memory control system