JPH02180419A - Data rate converting circuit - Google Patents

Data rate converting circuit

Info

Publication number
JPH02180419A
JPH02180419A JP33424888A JP33424888A JPH02180419A JP H02180419 A JPH02180419 A JP H02180419A JP 33424888 A JP33424888 A JP 33424888A JP 33424888 A JP33424888 A JP 33424888A JP H02180419 A JPH02180419 A JP H02180419A
Authority
JP
Japan
Prior art keywords
circuit
clock signal
data
signal
latch
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
JP33424888A
Other languages
Japanese (ja)
Inventor
Kazuhisa Marukaku
丸角 和久
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 Home Electronics Ltd
NEC Corp
Original Assignee
NEC Home Electronics Ltd
Nippon Electric 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 NEC Home Electronics Ltd, Nippon Electric Co Ltd filed Critical NEC Home Electronics Ltd
Priority to JP33424888A priority Critical patent/JPH02180419A/en
Publication of JPH02180419A publication Critical patent/JPH02180419A/en
Pending legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)

Abstract

PURPOSE:To prevent the circuit from forming erroneous data by applying the competition detecting signal of competition detecting circuit to a selective circuit as a selection control signal, and outputting auxiliary data by means of a clock signal which does not compate at the time of competing. CONSTITUTION:A competition detecting circuit 30 divides a first clock signal CK1 into two through a 1/2-dividing circuit 31, and detects the competition of the CK1 with a second clock signal CK2. Output signals Q32 and Q33 from flip flop circuits 32 and 33 are applied to an exclusive OR circuit 36. A selection control signal S36 is outputted from the said circuit 36, and data Q22 latched in a 180 deg. different phase are selected and outputted at the time of competing. Consequently stable data rate converting data Q12 can be obtained. In addition, since a circuit 30 to detect the competition is composed of a D-type flip flop circuit and a buffer circuit, the constitution is simplified.

Description

【発明の詳細な説明】 「産業上の利用分野」 本発明は、あるクロック信号に同期してサンプリングさ
れたサンプリング信号を、異なる周波数を有する非同期
の他のクロック信号で再サンプリングするデータレート
変換回路に関する。
Detailed Description of the Invention "Industrial Application Field" The present invention relates to a data rate conversion circuit that resamples a sampling signal sampled in synchronization with a certain clock signal with another asynchronous clock signal having a different frequency. Regarding.

[従来の技術] 例えば、ビデオテープレコーダにおいて、クロマ信号は
、カラーサブキャリア信号に同期したクロック信号で処
理された後、輝度信号処理系で処理された輝度信号のデ
ータレートに合わせるなめにそのデータレートが変換さ
れる。また、クロマ信号処理系での処理においても、途
中でデータレートが適宜変換される。
[Prior Art] For example, in a video tape recorder, a chroma signal is processed using a clock signal synchronized with a color subcarrier signal, and then its data is processed in a luminance signal processing system in order to match the data rate of the luminance signal processed. Rates are converted. Furthermore, the data rate is appropriately converted during processing in the chroma signal processing system.

このように各種信号をデジタル的に処理する装置におい
ては、その処理段階によって必要に応じてデータレ−I
・を変換している。
In devices that digitally process various signals in this way, the data layer I
・Converting.

このようなデータレートの変換は、従来では、変換前の
周波数を有するクロック信号(変換前クロック信号)で
原データをラッチし、そのラッチしたデータを変換後の
周波数を有するクロック信号(変換後クロック信号)で
再度ラッチすることで行なっていた。
Conventionally, such data rate conversion is performed by latching the original data with a clock signal having the frequency before conversion (pre-conversion clock signal), and then using the latched data as a clock signal having the frequency after conversion (post-conversion clock signal). This was done by re-latching the signal (signal).

[発明が解決しようとする課題] しかしながら、変換前クロック信号と変換後クロック信
号とが非同期であって、異なる周波数を有する場合には
、変換前クロック信号によって原データをラッチするか
しないかのうちに、変換後クロック信号によってそのラ
ッチ信号をさらにラッチしようとする場合も生じる。こ
の場合には、変換後クロック信号によるラッチ動作が適
確になされず、後段のラッチ回路に本来のデータにはな
い値のデータがラッチされるようなことも生じていた。
[Problems to be Solved by the Invention] However, when the pre-conversion clock signal and the post-conversion clock signal are asynchronous and have different frequencies, it is difficult to determine whether or not to latch the original data using the pre-conversion clock signal. Furthermore, there may be cases where the latch signal is further latched using the converted clock signal. In this case, the latch operation using the converted clock signal is not performed properly, and data with a value that does not exist in the original data may be latched in the latch circuit at the subsequent stage.

このような変換前後のクロック信号の競合が生じ、本来
のデータの前後いずれかがラッチされている分には聞届
となることはないが、本来のデータにない値がクロック
信号の競合によって形成されて生じることは大きな問題
である。
This kind of conflict between clock signals before and after conversion occurs, and although it is not noticeable as long as either the original data is latched before or after the original data, a value that is not in the original data may be formed due to the conflict between the clock signals. What is happening is a big problem.

従来、かかる不都合を解決するため、第1に、変換前ク
ロック信号と変換後クロック信号とに基づくラッチタイ
ミングの競合を監視し、競合した場合には、そのときだ
け変換前クロック信号のラッチタイミングを遅延させて
競合を回避する方法が提案されている。
Conventionally, in order to solve this problem, firstly, the latch timing conflict based on the pre-conversion clock signal and the post-conversion clock signal is monitored, and if a conflict occurs, the latch timing of the pre-conversion clock signal is changed only at that time. A method has been proposed to avoid contention by delaying the process.

しかし、この方法によれば、変換前クロック信号を可変
的に遅延させるためのアナログ遅延回路が必要となり、
このデータレート変換回路を含めた信号処理回路が複雑
になり、また、集積回路化する場合にこのアナログ遅延
回路を実現することが大きな問題となる。
However, this method requires an analog delay circuit to variably delay the pre-conversion clock signal.
The signal processing circuit including this data rate conversion circuit becomes complicated, and realizing this analog delay circuit becomes a big problem when it is integrated into an integrated circuit.

また、ラッチタイミングの競合による不都合を解決する
ため、第2に、変換後クロック信号より周波数が高い別
個のクロック信号によって、変換前クロック信号によっ
てラッチしたデータをラッチし、このラッチデータを変
換後クロック信号の周波数に応じて間引いて出力データ
を形成し、競合による不都合を解決しようとしたものが
ある。
In addition, in order to solve the problem caused by latch timing conflicts, secondly, the data latched by the pre-conversion clock signal is latched by a separate clock signal with a higher frequency than the post-conversion clock signal, and this latched data is transferred to the post-conversion clock signal. Some methods have attempted to solve problems caused by contention by forming output data by thinning out data according to the frequency of the signal.

しかし、この場合には、本来不必要な別個のクロック信
号を形成する必要があるという問題と共に、変換後クロ
ック信号に合わせてでラッチデータに間引くための複雑
な構成が必要になるという問題がある。
However, in this case, there is the problem that it is necessary to form a separate clock signal that is originally unnecessary, and that a complicated structure is required to thin out the latch data according to the clock signal after conversion. .

本発明は、以上の点を考慮してなされたものであり、デ
ータレートの変換前後の2個のクロック信号によるラッ
チタイミングが競合しても、誤ったデータを形成するこ
とがなくデータレートを変換することができる簡易な構
成のデータレート変換回路を提供しようとするものであ
る。
The present invention has been made in consideration of the above points, and is capable of converting data rates without forming erroneous data even if the latch timings of two clock signals before and after data rate conversion conflict. The present invention is intended to provide a data rate conversion circuit with a simple configuration that can perform the following steps.

[課題を解決するための手段] かかる課題を解決するため、本発明のデータレ・−ト変
換回路は、入力データをレート変換前にかかる第1のク
ロック信号に基づいてラッチする第1のラッチ回路と、
この第1のラッチ回路の出力データを、第1のクロック
信号又はレート変換後にかかる第2のクロック信号に基
づいてラッチする第2のラッチ回路と、この第2のラッ
チ回路に対するクロック信号と異なる位相を有する同一
周波数のクロック信号に基づいて、第1のラッチ回路の
出力データをラッチする第3のラッチ回路と、第1のク
ロック信号の位相と、第2のクロック信号の位相との競
合を検出する競合検出回路と、この競合検出回路の出力
信号に基づいて、競合時に第3のラッチ回路の出力デー
タを選択し、非競合時に第2のラッチ回路の出力データ
を選択する選択@回路と、この選択回路を介したデータ
を第2のクロック信号に基づいてラッチする第4のラッ
チ回路とで構成した。
[Means for Solving the Problem] In order to solve the problem, the data rate conversion circuit of the present invention includes a first latch circuit that latches input data based on the first clock signal before rate conversion. and,
a second latch circuit that latches the output data of the first latch circuit based on the first clock signal or a second clock signal applied after rate conversion; and a clock signal for the second latch circuit that has a different phase. a third latch circuit that latches the output data of the first latch circuit based on clock signals of the same frequency having the same frequency, and detects conflict between the phase of the first clock signal and the phase of the second clock signal. a selection@circuit that selects the output data of the third latch circuit when there is a conflict and selects the output data of the second latch circuit when there is no conflict, based on the output signal of the conflict detection circuit; A fourth latch circuit latches data passed through this selection circuit based on a second clock signal.

[作用] 入力データは、第1のラッチ回路によって第1のクロッ
ク信号に基づいてラッチされ、このラッチされたデータ
はさらに、第1のクロック信号又は第2のクロック信号
に基づいて第2のラッチ回路でラッチされると共に、こ
の第2のクロック信号と同一周波数で異なる位相のクロ
ック信号に基づいて第3のラッチ回路でラッチされる。
[Operation] The input data is latched by the first latch circuit based on the first clock signal, and the latched data is further latched by the second latch circuit based on the first clock signal or the second clock signal. It is latched by the circuit, and is also latched by a third latch circuit based on a clock signal having the same frequency as the second clock signal but a different phase.

このようにして第2及び第3のラッチ回路でラッチされ
た各データは、選択回路に与えられる9また、第1及び
第2のクロック信号は競合検出回路に与えられ、この競
合検出回路によってこれら第1及び第2のクロック信号
が競合しているか否かが検出され、競合検出信号が選択
回路に選択制御信号として与えられる。選択回路は、競
合時に第3のラッチ回路の出力データを選択し、非競合
時に第2のラッチ回路の出力データを選択して第4のラ
ッチ回路に出力する。第4のラッチ回路は第2のクロッ
ク信号に基づいて選択回路からのデータをラッチし、こ
のラッチデータがデータレート変換回路の出力データと
して出力される。
Each data thus latched by the second and third latch circuits is given to a selection circuit9.Furthermore, the first and second clock signals are given to a conflict detection circuit, and this conflict detection circuit controls these signals. It is detected whether or not the first and second clock signals conflict with each other, and a conflict detection signal is provided to the selection circuit as a selection control signal. The selection circuit selects the output data of the third latch circuit when there is a conflict, and selects the output data of the second latch circuit when there is no conflict and outputs it to the fourth latch circuit. The fourth latch circuit latches data from the selection circuit based on the second clock signal, and this latched data is output as output data of the data rate conversion circuit.

この結果、競合時には、競合しないクロック信号によっ
てラッチされた予備のデータが出力されるようになり、
競合時に不安定な値をとるデータが出力されることはな
い。
As a result, in the event of a conflict, spare data latched by a non-conflicting clock signal is output.
Data with unstable values will not be output during contention.

[実施例] 以下、本発明の一実施例を図面を参照しながら詳述する
[Example] Hereinafter, an example of the present invention will be described in detail with reference to the drawings.

第1図において、このデータレート変換回路10は、第
1のクロック信号CKIに基づいて変換前の入力データ
をラッチするD型フリップフロップ回路11と、第2の
クロック信号CK2に基づいてラッチ動作してレート変
換後の出力データを送出するD型フリップフロップ回路
12とに加えて、サンプリング位相選択回路20と、競
合検出回路30とが設けられている。
In FIG. 1, this data rate conversion circuit 10 includes a D-type flip-flop circuit 11 that latches input data before conversion based on a first clock signal CKI, and a D-type flip-flop circuit 11 that latches input data based on a second clock signal CK2. In addition to the D-type flip-flop circuit 12 that outputs rate-converted output data, a sampling phase selection circuit 20 and a conflict detection circuit 30 are provided.

サンプリング位相選択回路20は、ラッチ回路として用
いられる2個のD型フリップフロッ1回路21及び22
と、2人力1出力消成のスイッチ回路23と、インバー
タ回路24とからなる。
The sampling phase selection circuit 20 includes two D-type flip-flop circuits 21 and 22 used as latch circuits.
, a switch circuit 23 for two-manpower one-output cancellation, and an inverter circuit 24.

フリップフロップ回路21及び22にはそれぞれ、フリ
ップフロップ回路11がラッチしたデータQllが入力
され、フリップフロ91回路21は、第2のクロック信
号CK2に基づいて入力データQllをラッチし、他方
のフリップフロップ回路22は、第2のクロック信号C
K2がインバータ回路24を介して反転されて形成され
た第3のクロック信号CK3に基づいて入力データQ1
1をラッチする。
Data Qll latched by the flip-flop circuit 11 is input to the flip-flop circuits 21 and 22, respectively, and the flip-flop 91 circuit 21 latches the input data Qll based on the second clock signal CK2, and the flip-flop circuit 21 latches the input data Qll based on the second clock signal CK2. 22 is the second clock signal C
The input data Q1 is generated based on the third clock signal CK3, which is formed by inverting K2 via the inverter circuit 24.
Latch 1.

フリップフロ91回路21のラッチデータQ21はスイ
ッチ回路23に第1の選択入力として与えられ、他方の
フリップフロ91回路22のラッチデータQ22はスイ
ッチ回#123に第2の選択入力として与えられる。ス
イッチ回路23には、後述する競合検出図#130から
の出力信号S36が選択制御信号として与えられ、スイ
ッチ回路23はこの選択制御信号S36が競合状態を示
していない(論理’LJ )ときに、フリップフロップ
回路21からのラッチデータQ21を選択し、選択制御
信号S36が競合状態を示している(論理’HJ )と
きに、フリップフロップ回路22からのラッチデータQ
22を選択してフリップフロップ回路12に出力する。
The latch data Q21 of the flip-flop 91 circuit 21 is applied to the switch circuit 23 as a first selection input, and the latch data Q22 of the other flip-flow 91 circuit 22 is applied to the switch circuit #123 as a second selection input. The switch circuit 23 is given an output signal S36 from a conflict detection diagram #130, which will be described later, as a selection control signal, and when the selection control signal S36 does not indicate a conflict state (logic 'LJ), the switch circuit 23 When the latch data Q21 from the flip-flop circuit 21 is selected and the selection control signal S36 indicates a conflict state (logic 'HJ), the latch data Q21 from the flip-flop circuit 22 is selected.
22 is selected and output to the flip-flop circuit 12.

すなわち、このサンプリング位相選択回路20は、第1
のクロックCK1と第2のクロック信号CK2とが競合
していないときには、第2のクロック信号CK2に基づ
いてラッチしたデータQ21を出力し、競合状態にある
場合には、第2のクロック信号CK2に基づいてラッチ
したデータQ21は誤ったデータになっている可能性が
あるので、それを反転したクロック信号CK3によって
ラッチしたデータQ22を出力するようにしている。
That is, this sampling phase selection circuit 20
When there is no conflict between the clock CK1 and the second clock signal CK2, the latched data Q21 is output based on the second clock signal CK2, and when there is a conflict, the data Q21 is output based on the second clock signal CK2. Since the data Q21 latched based on the data Q21 may be erroneous data, the data Q22 latched based on the inverted clock signal CK3 is output.

競合検出回路30は、1/2分周回路として動作するD
型フリップフロップ回路31と、ラッチ回路として、よ
り詳細には、位相比較回路として動作する2個のD型フ
リップフロップ回路32及び33と、微少時間遅延回路
として動作する2個の2段バッファ回路34及び35と
、一致不一致回路として動作するエクスクル−シブオア
回路36とで構成されている。
The conflict detection circuit 30 operates as a 1/2 frequency divider circuit.
type flip-flop circuit 31, two D-type flip-flop circuits 32 and 33 that operate as a latch circuit, more specifically, as a phase comparison circuit, and two two-stage buffer circuits 34 that operate as a minute time delay circuit. and 35, and an exclusive OR circuit 36 which operates as a match/mismatch circuit.

この競合検出回路30は、第1及び第2のクロック信号
CKI及びCK2の競合を検出するものであるが、この
実施例の場合、第1のクロック信号CKiが第2のクロ
ック信号CK2に比べて1゜5倍以内の周波数を有する
ものであって、しかも、第1のクロック信号CKIの立
ち上がり位相(立ち上がりでラッチしている)だけが問
題となるので、無意味な時点での競合検出を排除するた
め、第1のクロック信号CKIを1/2分周回路31を
介して1/2分周して第2のクロック信号CK2との競
合を検出するようにしている。
This conflict detection circuit 30 detects a conflict between the first and second clock signals CKI and CK2. In this embodiment, the first clock signal CKi is higher than the second clock signal CK2. Since the frequency is within 1.5 times, and only the rising phase of the first clock signal CKI (latched at the rising edge) is a problem, conflict detection at pointless points is eliminated. Therefore, the frequency of the first clock signal CKI is divided by 1/2 via the 1/2 frequency dividing circuit 31 to detect a conflict with the second clock signal CK2.

この分周信号Q31は、2段バッファ回路34を介して
微少時間だけ遅延されてD型フリップフロップ回路32
のデータ入力端子に与えられる。
This frequency-divided signal Q31 is delayed by a minute amount of time via the two-stage buffer circuit 34, and then sent to the D-type flip-flop circuit 32.
is applied to the data input terminal of

このフリップフロップ凹832のクロック入力端子には
、第2のクロック信号CK2が直接与えられる。従って
、このフリップフロップ回路32によって、分周信号Q
31を微少時間だけ遅延させた遅延信号S34と、第2
のクロック信号CK2との位相同士が比較される。
The second clock signal CK2 is directly applied to the clock input terminal of this flip-flop recess 832. Therefore, by this flip-flop circuit 32, the frequency-divided signal Q
31 delayed by a minute time, and the second
The phases of the clock signal CK2 and the clock signal CK2 are compared.

第2のクロック信号CK2は、2段バッファ回路35を
介して上述と同様な微少時間だけ遅延されてD型フリッ
プフロップ回路33のクロック入力端子に与えられる。
The second clock signal CK2 is applied to the clock input terminal of the D-type flip-flop circuit 33 via the two-stage buffer circuit 35 after being delayed by the same minute time as described above.

このフリップフロップ回路33のデータ入力端子には、
第1のクロック信号CKIの分周信号Q31が直接与え
られる。従って、このフリップフロップ回路33によっ
て、分周信号Q31と、第2のクロック信号CK2を微
少時間だけ遅延させた遅延信号S35との位相同士が比
較される。
The data input terminal of this flip-flop circuit 33 is
A frequency-divided signal Q31 of the first clock signal CKI is directly applied. Therefore, the flip-flop circuit 33 compares the phases of the frequency-divided signal Q31 and the delayed signal S35 obtained by delaying the second clock signal CK2 by a minute amount of time.

ここで、2段バッファ回路34及び35による遅延時間
としては、ラッチ回路11及び12でのラッチ動作の競
合によるデータの改変が問題となっているので、ラッチ
回路11.12のセットアツプタイムやホールドタイム
を満足する時間であれば良い。なお、この実施例の場合
には、2段のバッファ回路34.35を介することでか
かる時間を得ている。
Here, as for the delay time caused by the two-stage buffer circuits 34 and 35, data modification due to competition between latch operations in the latch circuits 11 and 12 is a problem, so the set-up time and hold time of the latch circuits 11 and 12 It is fine as long as it is a time that satisfies you. In this embodiment, the required time is obtained by passing through two stages of buffer circuits 34 and 35.

このように、本来の分周信号Q31の位相を僅かに遅ら
せた位相と第2のクロック信号CK2の位相とをフリッ
プフロップ回路32で比較し、逆に、本来の第2のクロ
ック信号CK2の位相を僅かに遅らせた位相と分周信号
Q31の位相とをフリップフロップ回路33で比較して
いるので、分周信号Q31(従って、第1のクロック信
号CK1)と第2のクロック信号CK2とが競合してい
る場合には、各フリップフロップ回路32.33からは
異なる論理レベルの出力信号Q32、Q33が出力され
、他方、競合していない場合にはいずれの信号Q31、
CK2を僅かに遅延させたとしても各フリップフロップ
回路32.33からは同一の論理レベルの出力信号Q3
2、Q33が出力される。
In this way, the flip-flop circuit 32 compares the phase of the original frequency-divided signal Q31 with a slightly delayed phase of the second clock signal CK2, and conversely, the phase of the original second clock signal CK2 is compared with the phase of the second clock signal CK2. Since the flip-flop circuit 33 compares the slightly delayed phase of the frequency-divided signal Q31 with the phase of the frequency-divided signal Q31, the frequency-divided signal Q31 (therefore, the first clock signal CK1) and the second clock signal CK2 conflict with each other. If there is a conflict, output signals Q32 and Q33 of different logic levels are output from each flip-flop circuit 32 and 33, whereas if there is no conflict, which signal Q31,
Even if CK2 is slightly delayed, each flip-flop circuit 32, 33 outputs the output signal Q3 of the same logic level.
2, Q33 is output.

これらのフリップフロップ回路32及び33からの出力
信号Q32、Q33は、エクスクル−シブオア回路36
に与えられる。エクスクル−シブオア回路36は、2人
力Q32、Q33の論理レベルが異なるとき、すなわち
競合状態にあるときには、上述のスイッチ回路23をフ
リップフロップ回路22側に接続させる出力信号S36
を送出し、他方、2人力Q32、Q33の論理レベルが
一致しているとき、すなわち、競合状態にないときには
上述のスイッチ回路23をフリップフロップ回路21側
に接続させる出力信号S36を送出する。
Output signals Q32 and Q33 from these flip-flop circuits 32 and 33 are sent to an exclusive OR circuit 36.
given to. The exclusive OR circuit 36 outputs an output signal S36 that connects the above-mentioned switch circuit 23 to the flip-flop circuit 22 side when the logic levels of the two inputs Q32 and Q33 are different, that is, when they are in a competitive state.
On the other hand, when the logic levels of the two inputs Q32 and Q33 match, that is, when they are not in a competitive state, an output signal S36 is sent that connects the above-mentioned switch circuit 23 to the flip-flop circuit 21 side.

なお、フリップフロップ回路32及び33で位相比較を
行なうにつき、第2のクロック信号CK2にかかる位相
信号(CK2自体、535)をこれらフリップフロップ
回路32及び33のクロック入力端子に与えるようにし
たのは、スイッチ回路23の切換が、第2のクロック信
号CK2の周期を単位時間として行なわれるようにする
ためである。
Note that when performing phase comparison between the flip-flop circuits 32 and 33, the phase signal related to the second clock signal CK2 (CK2 itself, 535) is applied to the clock input terminals of these flip-flop circuits 32 and 33. This is to ensure that the switching of the switch circuit 23 is performed using the period of the second clock signal CK2 as a unit time.

以上の構成において、データレートの変換前にかかる第
1のクロックCKIが第2図(A)に示すように変化し
、データレートの変換後にかかる第2のクロック信号C
K2が第2図(C)に示すように変化しているとする。
In the above configuration, the first clock CKI applied before data rate conversion changes as shown in FIG. 2(A), and the second clock signal CKI applied after data rate conversion changes.
Assume that K2 is changing as shown in FIG. 2(C).

この場合、第1のクロック信号CKIによってフリップ
フロップ回路11でラッチされたラッチデータQllは
、第2図(B)に示すようになる。
In this case, the latched data Qll latched by the flip-flop circuit 11 in response to the first clock signal CKI becomes as shown in FIG. 2(B).

従って、このラッチデータQLIを第2のクロック信号
CK2及びその反転クロック信号CK3に基づいて、フ
リップフロップ回路21及び22でラッチしたラッチデ
ータQ21及びQ22はそれぞれ、第2図(E)及び第
2図(D)に示すようになる。
Therefore, the latch data Q21 and Q22 obtained by latching this latch data QLI by the flip-flop circuits 21 and 22 based on the second clock signal CK2 and its inverted clock signal CK3 are shown in FIGS. 2(E) and 2, respectively. The result is as shown in (D).

ここで、第1のクロック信号CKIと第2のクロック信
号CK2とが時点t1で競合したとする。
Here, it is assumed that the first clock signal CKI and the second clock signal CK2 compete at time t1.

この場合、この時点t1でフリップフロップ回路21で
ラッチされたラッチデータQ21は、この時点前後でフ
リップフロップ回路21に与えられたデータQllの前
後いずれの値「aJ又はrb」になるかはっきりせず、
また、値[aj及びrl)Jが混ざったようなデータに
なることもある。他方、この時点t1でも、フリップフ
ロップ回路22のラッチデータQ22は安定な値「aJ
をとるものとなっている。
In this case, it is not clear whether the latched data Q21 latched by the flip-flop circuit 21 at this time t1 will be the value "aJ or rb" before or after the data Qll given to the flip-flop circuit 21 before or after this time. ,
Further, the data may be a mixture of values [aj and rl)J. On the other hand, even at this time t1, the latch data Q22 of the flip-flop circuit 22 has a stable value "aJ
It is supposed to take.

このようなラッチデータQ21及びQ22がスイッチ回
路23に与えられる。
Such latch data Q21 and Q22 are provided to the switch circuit 23.

また、第1のクロック信号CKIは、フリップフロップ
回路31に与えられ、このフリップフロ71回路31で
分周されて第2図(F)に示すような分周信号Q31が
出力される。
Further, the first clock signal CKI is applied to a flip-flop circuit 31, frequency-divided by the flip-flop circuit 31, and a frequency-divided signal Q31 as shown in FIG. 2(F) is output.

従って、この分周信号Q31を遅延させた信号S34と
第2のクロック信号CK2との位相を比較したフリップ
フロップ回路32からは、第2図(G)に示すような位
相比較信号Q32が出力される。この例の場合、時点t
1から位相比較信号Q32は論理「■(」に立ち上がる
。また、分周信号Q31と第2のクロック信号CK 2
を遅延させた信号S35との位相を比較したフリップフ
ロップ回路33からは、第2図(H)に示すような位相
比較信号Q33が出力される。この例の場合、時点L1
から第2のクロック信号CK 2の1周期だけ遅れた時
点し2から位相比較信号Q33は論理r)(Jに立ち上
がる。
Therefore, the flip-flop circuit 32, which compares the phase of the signal S34 obtained by delaying the frequency-divided signal Q31 and the second clock signal CK2, outputs a phase comparison signal Q32 as shown in FIG. 2(G). Ru. In this example, time t
1, the phase comparison signal Q32 rises to the logic "■(". Also, the frequency division signal Q31 and the second clock signal CK2
The flip-flop circuit 33 which compares the phase with the delayed signal S35 outputs a phase comparison signal Q33 as shown in FIG. 2(H). In this example, time L1
The phase comparison signal Q33 rises to logic r) (J) from a time point delayed by one period of the second clock signal CK2.

従って、エクスクル−シブオア回路36からは、第2図
(J)に示すように、はぼ時点t1から時点t2の間だ
け論理rH」に立ち上がる選択制御信号S36が出力さ
れ、スイッチ回路23によって、第2図(J)に示すよ
うに、この期間tl−t2では安定状態にあるラッチデ
ータQ22が選択され、他、の期間では競合が問題とな
らないので、変換後にかかる第2のクロック信号CK2
でラッチしたラッチデータQ21が選択されてラッチ回
路12に与えられる(S23>。かくして、ラッチ回路
12から、競合に関係なく、第2図(K)G′;−示す
ように、安定なデータ列でなるレート変換された出力デ
ータQ12が送出される。
Therefore, as shown in FIG. 2(J), the exclusive OR circuit 36 outputs a selection control signal S36 that rises to logic rH only from time t1 to time t2, and the switch circuit 23 As shown in FIG. 2 (J), the latch data Q22 in a stable state is selected during this period tl-t2, and since competition is not a problem during other periods, the second clock signal CK2 applied after conversion is selected.
The latch data Q21 latched in is selected and given to the latch circuit 12 (S23>. In this way, the latch circuit 12 generates a stable data string as shown in FIG. Rate-converted output data Q12 is sent out.

従って、上述の実施例によれば、変換後の第2のクロッ
ク信号CK2に基づいて、変換前の第1のクロック信号
CKIによってラッチされたデータQllをラッチする
と共に、第2のクロック信号CK 2とは180度だけ
異なる位相でラッチしておき、競合時には、180度異
金石位相でラッチしたデータQ22を選択して出力する
ようにしたので、安定なデータレート変換データQ12
を得ることができる。かくするにつき、競合を検出する
ための回路30をD型フリップフロップ回路やバッファ
回路やエクスクル−シブオア回路で構成したので、構成
が簡易であると共に集積回路化に容易に対応できる。
Therefore, according to the embodiment described above, based on the second clock signal CK2 after conversion, the data Qll latched by the first clock signal CKI before conversion is latched, and the second clock signal CK2 Data Q22 is latched at a phase that differs by 180 degrees from that of Q12, and in the event of a conflict, the data Q22 latched at a phase different by 180 degrees is selected and output, resulting in stable data rate conversion data Q12.
can be obtained. Accordingly, since the circuit 30 for detecting competition is constructed from a D-type flip-flop circuit, a buffer circuit, and an exclusive OR circuit, the construction is simple and can be easily adapted to integrated circuits.

なお、上述の実施例においては、第1のクロック信号C
KIを1/2分周して競合を検出するものを示したが、
他方のクロック信号CK 2の周波数を2逓倍して競合
を検出するようにしても良い。
Note that in the above embodiment, the first clock signal C
We have shown a method that detects conflicts by dividing KI by 1/2, but
The conflict may be detected by doubling the frequency of the other clock signal CK2.

また、第1及び第2のクロック信号CK1及びCK 2
の周波数比に応じて分層比を定めれば良く、2分周に限
定されるものでなく、また、分周をしないで競合を検出
するようにしても良い。
Moreover, the first and second clock signals CK1 and CK2
The layer division ratio may be determined according to the frequency ratio of , and is not limited to frequency division by two, and competition may be detected without frequency division.

また、上述の実施例においては、競合検出のための遅延
回路として2段バッファ回路34.35を利用したもの
を示したが、他の段数のバッファ回路を利用しても良く
、また、バッファ回路以外の微少遅延時間を得ることが
できる遅延素子を用いるようにしても良い。
Further, in the above embodiment, the two-stage buffer circuits 34 and 35 are used as delay circuits for conflict detection, but buffer circuits with other numbers of stages may be used. A delay element that can obtain a minute delay time other than the above may also be used.

さらに、上述の実施例においては、競合時にだけ選択さ
れる予備のデータQ22と、本来のデータQ21とを変
換後のクロック信号CK2の位相情報でラッチするもの
を示したが、変換前のクロック信号の周波数が変換後の
クロック信号の周波数より低い場合には、予備データ及
びそれに対応した本来のデータを変換前のクロック信号
に基づいてラッチするようにしても良い。この場合には
、第1及び第2のクロック信号CKI及びCK2の位相
を比較するために設けられたラッチ回路のデータ入力端
子及びクロック入力端子に与える信号関係も上述の実施
例のものと逆にすることを要する。
Furthermore, in the above embodiment, the preliminary data Q22 selected only in the event of a conflict and the original data Q21 are latched using the phase information of the converted clock signal CK2, but the clock signal before conversion If the frequency of is lower than the frequency of the clock signal after conversion, the preliminary data and the original data corresponding thereto may be latched based on the clock signal before conversion. In this case, the signal relationship applied to the data input terminal and clock input terminal of the latch circuit provided for comparing the phases of the first and second clock signals CKI and CK2 is also reversed from that of the above embodiment. It is necessary to do so.

上述の実施例においては、競合時のための予備データを
ラッチしておくフリップフロップ回路22に対するクロ
ック信号CK3を、第2のクロック信号CK2を反転さ
せて形成するものを示したが、他の方法によって形成し
ても良く、また、その位相も第2のクロック信号CK2
の逆相である必要はなく、第1及び第2のクロック信号
CKI及びCK2の周波数比により適宜選択し、第1及
び第2のクロック信号CKI及びCK2が競合したとき
に、フリップフロップ回路22が確実にデータをラッチ
できるようにすれば良い。
In the embodiment described above, the clock signal CK3 for the flip-flop circuit 22 which latches preliminary data in case of contention is formed by inverting the second clock signal CK2, but other methods may also be used. The phase may also be determined by the second clock signal CK2.
It is not necessary that the phase of the flip-flop circuit 22 is opposite to that of the first clock signal CKI and CK2. All you have to do is make sure the data can be latched.

[発明の効果] 以上のように、本発明によれば、競合時に備えて変換前
又は変tfi後のクロック信号と同一周波数で位相が異
なるクロック信号で、変換前のクロック信号に基づいて
ラッチされたデータをラッチして予備データを得ておき
、競合検出時に、その予備データを選択させて出力する
ようにしたので、変換前及び変換後のクロック信号が競
合しても誤ったデータを形成することのないデータレー
ト変換回路を得ることができる。
[Effects of the Invention] As described above, according to the present invention, in preparation for a conflict, a clock signal having the same frequency and a different phase as the clock signal before conversion or after TFI is latched based on the clock signal before conversion. The data is latched to obtain preliminary data, and when a conflict is detected, the preliminary data is selected and output, so even if the clock signals before and after conversion conflict, erroneous data will not be generated. Therefore, it is possible to obtain a data rate conversion circuit with no problems.

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

第1図は本発明によるデータレート変換回路の一実施例
を示すブロック図、第2図はその各部タイミングチャー
トである。 10・・・データレート変換回路、11.12.21.
22・・・ラッチ用り型フリップフロップ回路、20・
・・サンプリング位相選択回路、23・・・スイッチ回
路、24・・・インバータ回路、30・・・競合検出回
路、31・・・分周用り型フリップフロ71回路、32
.33・・・位相比較用り型フリップフロップ回路、3
4.35・・・遅延用2段バッファ回路、36・・・一
致不一致検出用エクスクルーシブオア回路。
FIG. 1 is a block diagram showing an embodiment of a data rate conversion circuit according to the present invention, and FIG. 2 is a timing chart of each part thereof. 10...Data rate conversion circuit, 11.12.21.
22... Latch type flip-flop circuit, 20.
... Sampling phase selection circuit, 23... Switch circuit, 24... Inverter circuit, 30... Conflict detection circuit, 31... Frequency division type flip-flow 71 circuit, 32
.. 33...Flip-flop circuit for phase comparison, 3
4.35...Two-stage buffer circuit for delay, 36...Exclusive OR circuit for detecting coincidence and mismatch.

Claims (2)

【特許請求の範囲】[Claims] (1)入力データをレート変換前にかかる第1のクロッ
ク信号に基づいてラッチする第1のラッチ回路と、 この第1のラッチ回路の出力データを、上記第1のクロ
ック信号又はレート変換後にかかる第2のクロック信号
に基づいてラッチする第2のラッチ回路と、 この第2のラッチ回路に対するクロック信号と異なる位
相を有する同一周波数のクロック信号に基づいて、上記
第1のラッチ回路の出力データをラッチする第3のラッ
チ回路と、 上記第1のクロック信号の位相と、上記第2のクロック
信号の位相との競合を検出する競合検出回路と、 この競合検出回路の出力信号に基づいて、競合時に上記
第3のラッチ回路の出力データを選択し、非競合時に上
記第2のラッチ回路の出力データを選択する選択回路と
、 この選択回路を介したデータを上記第2のクロック信号
に基づいてラッチする第4のラッチ回路とを備えたこと
を特徴とするデータレート変換回路。
(1) A first latch circuit that latches input data based on a first clock signal applied before rate conversion; and a first latch circuit that latches input data based on the first clock signal applied before rate conversion; and a second latch circuit that latches based on a second clock signal; and a clock signal of the same frequency that has a different phase from the clock signal for the second latch circuit, and outputs data from the first latch circuit. a third latch circuit for latching; a conflict detection circuit for detecting a conflict between the phase of the first clock signal and the phase of the second clock signal; a selection circuit that selects the output data of the third latch circuit when there is no contention and selects the output data of the second latch circuit when there is no contention; and a selection circuit that selects the output data of the second latch circuit when there is no conflict; A data rate conversion circuit comprising: a fourth latch circuit for latching.
(2)上記競合検出回路を、 上記各ラッチ回路がラッチ時に安定になるまでの微少時
間だけ、上記第1(又は第2)のクロック信号の位相情
報を含む第1のパルス信号を遅延させた遅延信号を、上
記第2(又は第1)のクロック信号の位相情報を含む第
2のパルス信号のタイミングでラッチする第5のラッチ
回路と、上記第1のパルス信号を、上記第2のパルス信
号を上記微少時間だけ遅延させた遅延信号のタイミング
でラッチする第6のラッチ回路と、 上記第5及び第6のラッチ回路からの出力信号の論理レ
ベルの一致不一致を検出して、一致時に非競合を指示す
ると共に、不一致時に競合を指示する競合検出信号を出
力する一致不一致回路とで構成したことを特徴とする請
求項第1項に記載のデータレート変換回路。
(2) The conflict detection circuit delays the first pulse signal containing the phase information of the first (or second) clock signal by a minute amount of time until each of the latch circuits becomes stable when latched. a fifth latch circuit that latches the delayed signal at the timing of a second pulse signal that includes phase information of the second (or first) clock signal; A sixth latch circuit latches the signal at the timing of the delayed signal delayed by the minute amount of time, and detects a mismatch between the logical levels of the output signals from the fifth and sixth latch circuits, 2. The data rate conversion circuit according to claim 1, further comprising a match/mismatch circuit that indicates a conflict and outputs a conflict detection signal that indicates a conflict when there is a mismatch.
JP33424888A 1988-12-30 1988-12-30 Data rate converting circuit Pending JPH02180419A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33424888A JPH02180419A (en) 1988-12-30 1988-12-30 Data rate converting circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33424888A JPH02180419A (en) 1988-12-30 1988-12-30 Data rate converting circuit

Publications (1)

Publication Number Publication Date
JPH02180419A true JPH02180419A (en) 1990-07-13

Family

ID=18275205

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33424888A Pending JPH02180419A (en) 1988-12-30 1988-12-30 Data rate converting circuit

Country Status (1)

Country Link
JP (1) JPH02180419A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8581642B2 (en) 2010-03-08 2013-11-12 Oki Semiconductor Co., Ltd. Data transfer circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8581642B2 (en) 2010-03-08 2013-11-12 Oki Semiconductor Co., Ltd. Data transfer circuit

Similar Documents

Publication Publication Date Title
JP2909740B2 (en) Phase matching circuit
JP2641276B2 (en) Two-stage synchronizer
JPH02180419A (en) Data rate converting circuit
JPH031760A (en) Reception television signal regenerator
JPH03163908A (en) Clock signal delay circuit
JP3024130B2 (en) Arbitrary phase extraction circuit
JPH0879029A (en) Four-phase clock pulse generating circuit
JP2000163155A (en) Data processing circuit
JPH0731628Y2 (en) Pulse generator
JPS63241372A (en) Logic circuit
JPH0191519A (en) Clock generator
JPS63310058A (en) Microcomputer
JP2543108B2 (en) Synchronous pulse generator
JPH03255743A (en) Bit synchronizing circuit
JPH07101224B2 (en) Frequency comparison circuit
JPH0236630A (en) Bit phase synchronizing circuit
JPH04335412A (en) Clock generating circuit
JPH04246908A (en) Flip flop circuit
JPH03205931A (en) Signal synchronizing circuit
JPH05180900A (en) Logical comparison device of ic test device
JPS62227220A (en) Frequency division circuit
JPH05327484A (en) Variable divider
JPS62261986A (en) Pulse measuring circuit with noise removing ability
JPH05167438A (en) Synchronizing circuit
JPH01228377A (en) Digital synchronization detecting device