JPH02135944A - Bit buffer circuit - Google Patents

Bit buffer circuit

Info

Publication number
JPH02135944A
JPH02135944A JP63291293A JP29129388A JPH02135944A JP H02135944 A JPH02135944 A JP H02135944A JP 63291293 A JP63291293 A JP 63291293A JP 29129388 A JP29129388 A JP 29129388A JP H02135944 A JPH02135944 A JP H02135944A
Authority
JP
Japan
Prior art keywords
clock
phase
internal clock
data
buffer
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.)
Granted
Application number
JP63291293A
Other languages
Japanese (ja)
Other versions
JP2869981B2 (en
Inventor
Kazunori Sakai
堺 和則
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 Corp
Original Assignee
NEC Corp
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 Corp filed Critical NEC Corp
Priority to JP63291293A priority Critical patent/JP2869981B2/en
Publication of JPH02135944A publication Critical patent/JPH02135944A/en
Application granted granted Critical
Publication of JP2869981B2 publication Critical patent/JP2869981B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To always perform buffering at a safe phase by providing a discrimination point on an intermediate point between the positive phase and the negative phase of an internal clock, and monitoring the phase near to the intermediate point of the time slot of an external clock out of the rise of the positive phase or that of the negative phase. CONSTITUTION:Firstly, a discrimination clock (e) is prepared to control the phase of a readout clock (g) by a gate 2 which inputs the internal clock (b) and a double internal clock (d). Next, a select signal (f) is generated by latching the external clock (a) with the discrimination clock (e) at a flip-flop 3. The readout clock (g) goes to the one in which an appropriate phase is outputted selectively at a selector 4 which inputs the positive phase (b) and the negative phase (c) of the internal clock by the select signal. Data in a readout buffer 6 is read out to a readout buffer 7 synchronizing with the positive phase (b) of the internal clock for duty correction. In such a way, it is possible to obtain internal data 8 by switching the data 1 synchronized with the external clock (a) to the internal clock (b) in interlocking manner.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、ビットバッファ回路に関する。[Detailed description of the invention] [Industrial application field] The present invention relates to a bit buffer circuit.

〔従来の技術〕[Conventional technology]

従来のビットバッファ回路は、第4図に示すように、外
部データ30を外部クロック27に同期して書き込みバ
ッファ35に書き込み、外部クロック27と非同期の内
部クロック28に同期させて、ビット対応で読み出しバ
ッファ36に読み出す、この場合、外部クロック27を
微分回路31によりタロツクの立上りを微分した外部ク
ロック微分パルスと、内部クロックの正相28と逆相2
9とをセレクタ34により選択出力したクロックを同様
に微分回路32により立上り微分した内部クロック微分
パルスとを、比較器33において、これらの二つの微分
パルスの位相が重なるかどうかを検証する。位相の重複
がある場合、外部クロック(書き込みクロック)とセレ
クタ34の出力クロック(読み出しクロック)との位相
が一致したと判断し、比較器33はセレクタ34のセレ
クト信号を切り換え、読み出しクロックを反転すること
により常に的確な位相で内部クロックへのデータの乗せ
換えを実現している。
As shown in FIG. 4, the conventional bit buffer circuit writes external data 30 to a write buffer 35 in synchronization with an external clock 27, and reads it in bits in synchronization with an internal clock 28 that is asynchronous to the external clock 27. In this case, the external clock 27 is read out to the buffer 36, and the external clock differential pulse obtained by differentiating the rising edge of the tarock by the differentiating circuit 31, and the positive phase 28 and negative phase 2 of the internal clock are read out.
A comparator 33 verifies whether or not the phases of these two differential pulses overlap with the internal clock differential pulse obtained by similarly differentiating the rising edge of the clock 9 and output by the selector 34 by the differentiating circuit 32. If there is phase overlap, it is determined that the phases of the external clock (write clock) and the output clock (read clock) of the selector 34 match, and the comparator 33 switches the select signal of the selector 34 and inverts the read clock. This ensures that data is always transferred to the internal clock with the correct phase.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のビットバッファ回路は、外部クロックお
よび内部クロックの立ち上り微分パルスの位相の重複を
監視することにより読み出しクロックの位相制御を行な
っているため、書き込みクロックと読み出しクロックの
位相が相当近づがないと読み出しクロックの位相反転は
起らない。
The conventional bit buffer circuit described above controls the phase of the read clock by monitoring the phase overlap of the rising differential pulses of the external clock and the internal clock, so the phases of the write clock and read clock do not get very close. Otherwise, phase inversion of the read clock will not occur.

このため、外部クロックの位相変動量が大きい場合は、
微分パルスの重複が起らず、ビットの二度読みあるいは
ビットスリップが発生する危険性があるという欠点があ
る。
Therefore, if the amount of phase fluctuation of the external clock is large,
The disadvantage is that no overlap of the differential pulses occurs and there is a risk of double reading of bits or bit slips.

〔課題を解決するための手段〕[Means to solve the problem]

本発明によれば、外部クロックに同期して外部データを
書き込むバッファと、内部クロックの正相と逆相を選択
するセレクタと、セレクタの出力クロックに同期して書
き込みバッファのデータを読み出す第一の読み出しバッ
ファと、第一の読み比しバッファのデータを内部クロッ
クの正相に同期して読み出す第二の読み出しバッファと
、内部クロックと二倍の内部クロックを入力とするゲー
トと、ゲート出力と外部クロックを入力としセレクタの
セレクト信号を出力するフリップフロップとを具備する
ビットバッファ回路が得られる。
According to the present invention, there is provided a buffer for writing external data in synchronization with an external clock, a selector for selecting positive phase or negative phase of the internal clock, and a first buffer for reading data in the write buffer in synchronization with the output clock of the selector. a read buffer, a second read buffer that reads data from the first read ratio buffer in synchronization with the positive phase of the internal clock, a gate that receives the internal clock and twice the internal clock as input, and a gate output and an external clock. A bit buffer circuit is obtained which includes a flip-flop that receives a clock as an input and outputs a select signal of a selector.

〔実施例〕〔Example〕

次に、本発明の実施例を示した図面を参照して、本発明
をより詳細に説明する。
Next, the present invention will be described in more detail with reference to the drawings showing embodiments of the present invention.

第1図および第2図を参照すると、本発明の第一の実施
例において、外部クロックaに同期した外部データ1は
、まず外部クロックaを書き込みクロックとして、書き
込みバッファ5に書き込まれる。書き込腋れたデータは
、読み出しクロックgに同期して読み出しバッファ6に
読み出される。その読み出しクロックgの位相を制御す
るために、まず内部クロックbと二倍の内部クロックd
を入力するゲート2により判別クロックeを作成する。
Referring to FIGS. 1 and 2, in the first embodiment of the present invention, external data 1 synchronized with external clock a is first written into write buffer 5 using external clock a as the write clock. The data that has not been written is read out to the read buffer 6 in synchronization with the read clock g. In order to control the phase of the read clock g, we first use the internal clock b and the double internal clock d.
The determination clock e is created by the gate 2 which receives the input signal.

次に、フリップフロップ3において、外部クロックaを
判別クロックeでラッチすることにより、セレクト信号
fを作成する。読み出しクロックgはこのセレクト信号
により内部クロックの正相すと逆相Cとを入力するセレ
クタ4において適切な位相を選択出力されたものとなる
。最終的に読み出しバッファ6のデータをデユーティ−
補正のため内部クロックの正相すに同期して読み出しバ
ッファ7に読み出すことにより、連動的に外部クロック
aに同期したデータ1を内部クロックbに乗せかえて内
部データ8を得ている。
Next, in the flip-flop 3, a select signal f is created by latching the external clock a with the discrimination clock e. The appropriate phase of the read clock g is selected and outputted by the selector 4 which inputs the positive phase and negative phase C of the internal clock according to this select signal. Finally, the data in read buffer 6 is put on duty.
For correction, by reading data to the read buffer 7 in synchronization with the positive phase of the internal clock, internal data 8 is obtained by interlockingly replacing the data 1 synchronized with the external clock a with the internal clock b.

第3図を参照すると、本発明の第二の実施例において、
デユーティ−補正カウンタ9は、書き込みクロックであ
る外部クロックaの立ち上りをトリガーとし、n倍の内
部クロック(nXb)で外部クロックbの1タイムスロ
ツトの中間点までカウントアツプしてその間「1」を保
持している。
Referring to FIG. 3, in a second embodiment of the invention,
Duty correction counter 9 is triggered by the rising edge of external clock a, which is a write clock, and counts up to the midpoint of one time slot of external clock b using n times the internal clock (nXb), and holds "1" during that time. are doing.

この第二の実施例では、デユーティ−補正カウンタ9に
より、常にデユーティ−50%のクロックをフリップフ
ロップ3に送出するため、外部クロックのデユーティ−
に依存せず常に外部クロツタの中間点を監視点とするこ
とが可能になり最も適切な位相を選択できるという利点
がある。
In this second embodiment, since the duty correction counter 9 always sends a clock with a duty of -50% to the flip-flop 3, the duty of the external clock is reduced.
This has the advantage that the intermediate point of the external clock can always be used as the monitoring point without depending on the phase, and the most appropriate phase can be selected.

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

以上説明したように、本発明によれば、外部クロックに
同期したデータを内部クロックに乗せ換えるビットバッ
ファ回路において、外部クロックと内部クロックの位相
を比較するにあたり、内部クロックの正相と逆相の中間
点に判別点を設け、正相の立ち上りと逆相の立ち上りの
内、外部クロックのタイムスロットの中間点に近い方を
リアルタイムで監視することにより、常に安全な位相で
のバッファリングが可能なため、データの乗せ換え時点
でビットスリップはなく、またダブルバッファ構成のた
め常にデータ長の等しい内部クロックに同期したデータ
を得るこのができるという効果がある。
As explained above, according to the present invention, in a bit buffer circuit that transfers data synchronized with an external clock to an internal clock, when comparing the phases of the external clock and the internal clock, the positive phase and negative phase of the internal clock are By setting a discrimination point at the midpoint and monitoring in real time the rising edge of the positive phase and the rising edge of the negative phase, whichever is closer to the midpoint of the external clock time slot, buffering can always be performed with a safe phase. Therefore, there is no bit slip at the time of data transfer, and because of the double buffer configuration, it is possible to always obtain data synchronized with the internal clock with the same data length.

【図面の簡単な説明】 第1図は本発明の第一の実施例のブロック図、第2図は
第1図に示した第一の実施例の各部の信号波形図、第3
図は本発明の第二の実施例のブロック図、第4図は従来
のビットバッファ回路のブロック図である。 a:外部クロック、b:内部クロック(正相)C:内部
クロック(逆相)、d:二倍内部クロック、1:外部デ
ータ、2:ゲート、3:フリップフロップ、4:セレク
タ、5:書き込みバッファ、6:読み出しバッファ、7
:読み出しバッファ、8:内部データ、9:デューティ
ー補正カウンタ、27:外部クロック、28:内部クロ
ック(正相)、19:内部クロック(逆相)、30:外
部データ、31:微分回路、32:微分回路、33:位
相比較器、34:セレクタ、35:書き込みバッファ、
36:読み出しバッファ、37:内部データ。 代理人 弁理士  内 原  晋 第1図 第2図
[Brief Description of the Drawings] Fig. 1 is a block diagram of the first embodiment of the present invention, Fig. 2 is a signal waveform diagram of each part of the first embodiment shown in Fig. 1, and Fig. 3 is a block diagram of the first embodiment of the present invention.
The figure is a block diagram of a second embodiment of the present invention, and FIG. 4 is a block diagram of a conventional bit buffer circuit. a: external clock, b: internal clock (positive phase) C: internal clock (negative phase), d: double internal clock, 1: external data, 2: gate, 3: flip-flop, 4: selector, 5: write Buffer, 6: Read buffer, 7
: Read buffer, 8: Internal data, 9: Duty correction counter, 27: External clock, 28: Internal clock (positive phase), 19: Internal clock (negative phase), 30: External data, 31: Differential circuit, 32: Differential circuit, 33: Phase comparator, 34: Selector, 35: Write buffer,
36: Read buffer, 37: Internal data. Agent: Susumu Uchihara, patent attorney Figure 1 Figure 2

Claims (1)

【特許請求の範囲】[Claims]  外部クロックに同期して外部データを書き込むバッフ
ァと、内部クロックの正相と逆相を選択するセレクタと
、前記セレクタの出力クロックに同期して前記書き込み
バッファのデータを読み出す第一の読み出しバッファと
、前記第一の読み出しバッファのデータを内部クロック
の正相に同期して読み出す第二の読み出しバッファと、
内部クロックと二倍の内部クロックを入力とするゲート
と、前記ゲート出力と外部クロックを入力とし前記セレ
クタのセレクト信号を出力するフリップフロップとを具
備することを特徴とするビットバッファ回路。
a buffer for writing external data in synchronization with an external clock, a selector for selecting a positive phase or a negative phase of an internal clock, and a first read buffer for reading data from the write buffer in synchronization with an output clock of the selector; a second read buffer that reads data from the first read buffer in synchronization with the positive phase of an internal clock;
1. A bit buffer circuit comprising: a gate receiving an internal clock and a double internal clock; and a flip-flop receiving the gate output and an external clock and outputting a select signal of the selector.
JP63291293A 1988-11-17 1988-11-17 Bit buffer circuit Expired - Lifetime JP2869981B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63291293A JP2869981B2 (en) 1988-11-17 1988-11-17 Bit buffer circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63291293A JP2869981B2 (en) 1988-11-17 1988-11-17 Bit buffer circuit

Publications (2)

Publication Number Publication Date
JPH02135944A true JPH02135944A (en) 1990-05-24
JP2869981B2 JP2869981B2 (en) 1999-03-10

Family

ID=17767011

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63291293A Expired - Lifetime JP2869981B2 (en) 1988-11-17 1988-11-17 Bit buffer circuit

Country Status (1)

Country Link
JP (1) JP2869981B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0654705A2 (en) 1993-11-24 1995-05-24 Fuji Photo Film Co., Ltd. Photographic processing composition and method of photographic processing using the same

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0654705A2 (en) 1993-11-24 1995-05-24 Fuji Photo Film Co., Ltd. Photographic processing composition and method of photographic processing using the same

Also Published As

Publication number Publication date
JP2869981B2 (en) 1999-03-10

Similar Documents

Publication Publication Date Title
JP2695535B2 (en) Timer input control circuit and counter control circuit
JPS63139436A (en) Stuff synchronizing circuit
JP2641276B2 (en) Two-stage synchronizer
JPH02135944A (en) Bit buffer circuit
JP2783495B2 (en) Clock transfer circuit
JPH0370314A (en) Clock interrupt detection circuit
JP2555723B2 (en) Bit buffer circuit
JPH05344112A (en) Bit phase synchronizing circuit
JPH02114732A (en) Frame conversion circuit
JP2692438B2 (en) Frame synchronization circuit
JP2679471B2 (en) Clock switching circuit
JP2704063B2 (en) CCD image sensor control circuit
JPH0775319B2 (en) Sync detection circuit with majority decision function
JP2917583B2 (en) Staff synchronization circuit
JPH076152A (en) Input circuit for external control signal
JPS62259133A (en) Slip control system by delayed loading and unloading
JPH02280263A (en) Microprocessor
JPH03254469A (en) Connection circuit for disk controller and data separator
JPH0385012A (en) Pulse generating circuit
JPH0564901B2 (en)
JPS61214024A (en) Bit buffer device
JPH0817360B2 (en) Staff control circuit
JPS63245114A (en) Selection circuit for high speed clock
JPH03205931A (en) Signal synchronizing circuit
JPH03257610A (en) Reset circuit