JPH11120757A - Fifo register circuit - Google Patents

Fifo register circuit

Info

Publication number
JPH11120757A
JPH11120757A JP9294938A JP29493897A JPH11120757A JP H11120757 A JPH11120757 A JP H11120757A JP 9294938 A JP9294938 A JP 9294938A JP 29493897 A JP29493897 A JP 29493897A JP H11120757 A JPH11120757 A JP H11120757A
Authority
JP
Japan
Prior art keywords
fifo
data
output
status display
stored
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
JP9294938A
Other languages
Japanese (ja)
Inventor
Okihiro Ono
起寛 小野
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.)
Toyo Communication Equipment Co Ltd
Original Assignee
Toyo Communication Equipment 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 Toyo Communication Equipment Co Ltd filed Critical Toyo Communication Equipment Co Ltd
Priority to JP9294938A priority Critical patent/JPH11120757A/en
Publication of JPH11120757A publication Critical patent/JPH11120757A/en
Pending legal-status Critical Current

Links

Landscapes

  • Shift Register Type Memory (AREA)

Abstract

PROBLEM TO BE SOLVED: To reduce a circuit scale and to make handling easy when the number of bits accumulated in FIFO is desired to know externally by taking an output of a shift register outside of FIFO, and controlling writing and reading in/from FIFO based on the number of data accumulated inside of FIFO obtained from an output of the shift register. SOLUTION: In a status display section 5, data is moved in the status display section 5 with same movement as the data movement in a data accumulation section 4. A control section 3 decides whether data is shifted in FIFO or not considering an output of the status display section 5. A decoder 13 decodes a state in which output Snout-S(n-1)out from each shift register S1-Sn of the status display section 5 of FIFO are decoded and data of (n-1) bits is accumulated in a state being almost filled up, resets a SR-FF18, and outputs a control signal of prohibiting of writing to an input interface section.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、データ通信に用い
られるFIFOレジスタ回路に関し、特に、回路規模を
小さくできるFIFOレジスタ回路に関する。
The present invention relates to a FIFO register circuit used for data communication, and more particularly, to a FIFO register circuit capable of reducing the circuit scale.

【0002】[0002]

【従来の技術】一般に、入力された瞬間から入力の順番
で、データが出力されるというファーストインファース
トアウト(FIFO)型バッファが知られている。これ
をFIFOという。上記FIFOは、外部ではアドレス
を意識する必要はなく、書き込みクロックと読み出しク
ロックだけで動作する。この二つのクロックは完全非同
期であり好きなときに外部からの読み出しおよび書き込
みの制御が出来る。しかし、アドレスを外部では意識し
なくて良い分、これだけでは内部状態を把握できないた
め、FIFOにはFull Flag,Empty F
lagを表示する機能があり、FIFOがいま満杯であ
るのか空であるのかを外部に伝えている。外部では、そ
の表示を見て、Full Flagが立っていれば書き
込みクロックを止める制御を行い、Empty Fla
gが立っていれば読み出しクロックを止めるという制御
を行っている。このFIFOは、例えば通信装置の受信
側で、受信伝送路からの抽出クロックを、通信装置内の
装置内クロックに乗せ換えるときの緩衝用メモリとして
用いることが出来る。すなわち、受信されたデータは当
然それを発した装置のクロックで送信されたものであ
り、その送信クロックとそれを受信した装置の装置内ク
ロックとは位相が違う。さらには同期が送信装置と受信
装置の間で取れていない場合にはクロック速度も違って
くる。従って、受信装置では受信されたデータから、ク
ロックを抽出し、その抽出クロックを使用して受信デー
タを認識する。
2. Description of the Related Art Generally, a first-in first-out (FIFO) type buffer in which data is output in the order of input from the moment of input is known. This is called FIFO. The FIFO does not need to be aware of the address externally, and operates only with the write clock and the read clock. These two clocks are completely asynchronous and can control reading and writing from outside at any time. However, since the address does not need to be considered externally, the internal state cannot be grasped by this alone. Therefore, the Full Flag, Empty F
There is a function to display a lag, and it tells the outside whether the FIFO is now full or empty. On the outside, the display is controlled, and control is performed to stop the write clock if Full Flag is set, and Empty Flag is set.
Control is performed such that the read clock is stopped if g rises. This FIFO can be used, for example, as a buffer memory when a clock extracted from a reception transmission line is replaced with an internal clock in the communication device on the receiving side of the communication device. That is, the received data is naturally transmitted by the clock of the device that issued it, and the transmitted clock and the internal clock of the device that received it have different phases. Furthermore, if synchronization is not achieved between the transmitting device and the receiving device, the clock speed will also differ. Therefore, the receiving device extracts a clock from the received data, and recognizes the received data using the extracted clock.

【0003】しかし、受信装置にはそれを動かしている
装置内のクロックが存在するわけであるから受信データ
をその位相に合わせてやる必要がある。そこで、FIF
Oが読み出し、書き込みが完全非同期なのを利用して、
一旦受信データを受信クロックでFIFOに書き込み、
読み出すときは装置内のクロックで読み出すことで、受
信データを装置内クロックの位相に合わせる様にしてい
る。ここで、上記送信装置と、受信装置のクロックの位
相が違っても同期が取れていれば、受信側FIFOから
の読み出し開始を、FIFOにデータが十分貯まってか
らにすることで受信データは誤り無く正常に受信できる
が、同期が取れていない状態の時は送信装置と受信装置
でクロックの速度自体が微妙に違ってしまうので、FI
FOにある程度データを貯めておくだけでは、すぐにF
IFOが満杯になったり、空になったりしてしまう。こ
の様な状態になったときには、書き込みおよび読み出し
データは止めることが出来ないので、上書き、2度読み
などによってFIFO内でデータ誤りを起こしてしま
う。これをそのままにしておくと頻繁に満杯になったり
ならなかったり、または空になったりデータが貯まった
りでデータ誤りが非常に多くなってしまう。
[0003] However, since the receiving device has a clock in the device operating the receiving device, it is necessary to adjust the received data to the phase thereof. So, FIF
Using the fact that O reads and writes are completely asynchronous,
Once the received data is written to the FIFO with the receive clock,
At the time of reading, the received data is read with the clock in the device so that the received data is adjusted to the phase of the clock in the device. Here, if the transmitting device and the receiving device are synchronized even if the clock phases are different, the reading from the receiving FIFO can be started after the data is sufficiently accumulated in the FIFO, so that the received data is erroneous. Can be received normally, but when synchronization is not established, the clock speed itself differs slightly between the transmitting device and the receiving device.
Just storing some data in the FO,
The IFO is full or empty. In such a state, the write and read data cannot be stopped, so that a data error occurs in the FIFO due to overwriting, reading twice, or the like. If this is left as it is, it will not be full frequently, or it will become empty or accumulate data, and the number of data errors will be extremely large.

【0004】こうしたことを防ぐために、一旦満杯にな
りそうまたは空になりそうになったら(多少、余裕を持
たせ、その余裕を1とする)あるビット分(mとする)
だけ書き込みまたは読み出しをやめて、そのやめた分の
データ誤りは仕方ないとして、しばらくの間データ誤り
を起こさない様にFIFOのデータ蓄積数に余裕を持た
せてやる制御方法があり、これをスリップ制御という。
このスリップ制御に必要な情報としては、FIFOが満
杯になりそうという(n−1ビット貯まっているとい
う)情報、空になりそう(1ビットしか貯まっていな
い)という情報、そして満杯−mビット貯まっていると
いう情報、mビット貯まっているという情報が必要であ
る。従来のFIFOの場合、満杯になりそう、空になり
そう、満杯−mビット、mビット貯まっているという情
報は、外部では知ることができない。このため、FIF
Oの外部にアップダウンカウンタを用意して、書き込ん
だビット数と、読み出したビット数を数えて、さらにそ
の出力をデコードして書き込み読み出しの制御を行わな
くてはならない。
In order to prevent such a situation, once it is about to be full or empty (leave a margin and set the margin to 1) for a certain bit (m).
There is a control method in which the write or read operation is stopped and the data error for the stop is inevitable, and a sufficient amount of data is stored in the FIFO so that no data error occurs for a while. This is called slip control. .
The information required for the slip control includes information that the FIFO is going to be full (n-1 bits are stored), information that the FIFO is going to be empty (only 1 bit is stored), and full-m bits are stored. Is necessary, and information that m bits are stored. In the case of the conventional FIFO, information indicating that the FIFO is almost full, is likely to be empty, and is full-m bits or m bits cannot be externally known. For this reason, FIF
An up / down counter must be prepared outside O, the number of bits written and the number of bits read must be counted, and the output thereof must be decoded to control writing and reading.

【0005】上記従来の技術を具体的に図2を参照して
説明する。図2はシフトレジスタで構成されたFIFO
を使ってスリップ制御を行うFIFOレジスタ回路を示
している。図2に示す様に、このFIFOレジスタ回路
は、入力データをFIFO内に流すための入力インター
フェース部1と、FIFO内に貯まっているデータを出
力してやるための出力インターフェース部2と、入力さ
れたデータがFIFO内を速やかに流れる制御をする制
御部3と、実際のデータが蓄積されるデータ蓄積部4
と、どこまでデータが蓄積されているかを表示するステ
ータス表示部5と、書き込みクロックと読み出しクロッ
クを数えてその差、つまりFIFOに蓄積されているデ
ータ数を表示するアップダウンカウンタ部6と、上記ア
ップダウンカウンタ部6の出力をデコードするデコーダ
部7、8、10、11と、デコーダ出力により書き込み
読み出し制御信号を生成するSR−FF(SRフリップ
フロップ)9、12とを有している。上記FIFOレジ
スタ回路において、FIFOとしては、入力インターフ
ェース部1、出力インターフェース部2、制御部3、デ
ータ蓄積部4、およびステータス表示部5を含み、外部
回路としては、アップダウンカウンタ部6、デコーダ部
7、8、10、11、およびSR−FF9、12を含ん
でいる。また、上記データ蓄積部4は、複数(この場合
n個)のシフトレジスタD1〜Dnから成り、上記ステ
ータス表示部5もn個のシフトレジスタS1〜Snから
成っている。
[0005] The above prior art will be described specifically with reference to FIG. Figure 2 shows a FIFO composed of shift registers
5 shows a FIFO register circuit that performs slip control by using. As shown in FIG. 2, the FIFO register circuit includes an input interface unit 1 for flowing input data into the FIFO, an output interface unit 2 for outputting data stored in the FIFO, and an input data unit. And a data storage unit 4 for controlling the flow of data in the FIFO quickly and a data storage unit 4 for storing actual data.
A status display unit 5 for displaying how much data has been stored, an up / down counter unit 6 for counting the number of write clocks and read clocks, and indicating the number of data stored in the FIFO, Decoders 7, 8, 10, 11 for decoding the output of the down counter 6 and SR-FFs (SR flip-flops) 9, 12 for generating a write / read control signal based on the decoder output. In the FIFO register circuit, the FIFO includes an input interface unit 1, an output interface unit 2, a control unit 3, a data storage unit 4, and a status display unit 5, and the external circuits include an up-down counter unit 6, a decoder unit 7, 8, 10, 11 and SR-FF 9, 12. The data storage unit 4 includes a plurality of (in this case, n) shift registers D1 to Dn, and the status display unit 5 also includes n shift registers S1 to Sn.

【0006】上記FIFOレジスタ回路の動作として
は、入力データは、書き込みクロックによって入力イン
ターフェース部1を通ってデータ蓄積部4に入力され
る。そして、データ蓄積部4に入ったデータは制御部3
の制御を受けながら、書き込み読み出しクロックよりか
なり速いFIFO内クロックによりデータ蓄積部4の一
番先頭のシフトレジスタまで到達し、入力されたデータ
は先に入力されたデータのすぐ後ろのシフトレジスタに
蓄積される。この様にして、入力データはデータが蓄積
されていない一番出力側に近いシフトレジスタに蓄えら
れる。また、読み出しクロックが入った場合は、蓄積さ
れているデータが入ったクロック数だけ同時にシフトす
る仕組みになっている。また、ステータス表示部5で
は、データがデータ蓄積部4で移動するのと同じ動き
で、ステータス表示データがステータス表示部5内を移
動する仕組みになっている。このステータス表示部5の
出力を見て、制御部3はデータがFIFO内をシフトす
るかどうかを決定している。
As an operation of the FIFO register circuit, input data is input to the data storage unit 4 through the input interface unit 1 by a write clock. The data stored in the data storage unit 4 is stored in the control unit 3.
, The data reaches the first shift register of the data storage unit 4 by the clock in the FIFO which is considerably faster than the write / read clock, and the input data is stored in the shift register immediately after the previously input data. Is done. In this way, the input data is stored in the shift register closest to the output side where no data is stored. Further, when a read clock is input, the data is simultaneously shifted by the number of clocks containing the stored data. In the status display unit 5, the status display data moves in the status display unit 5 in the same manner as the data moves in the data storage unit 4. Looking at the output of the status display section 5, the control section 3 determines whether or not the data shifts in the FIFO.

【0007】図2に示した従来のFIFOレジスタにお
いては、シフトレジスタD1〜Dnで構成されたFIF
Oが内部状態を外部に出力していないために、スリップ
制御を行う際に外部にわざわざアップダウンカウンタ部
6をおかなくてはならない状況となっている(シフトレ
ジスタで構成されたFIFOは、Full Flagも
Empty Flagもない)。そして、上記アップダ
ウンカウンタ部6の出力をデコーダ7、8でそれぞれ満
杯−mビット貯まっている、満杯−1ビット貯まってい
るという状態をデコードし、そのデコード結果をもとに
SR−FF9で書き込みの制御信号を生成している。つ
まり、FIFOが満杯になりそうだったら(n−1ビッ
ト貯まったら)デコーダ8がデコードされSR−FF9
にリセットがかかり、入力インターフェース部1に書き
込み禁止の制御信号を出す。書き込みを禁止している間
に読み出しが行われているのでアップダウンカウンタ部
6の出力はn−mまで減少する。そのとき、デコーダ7
から信号が出力されてSR−FF9がセットされ、入力
インターフェース部1に書き込み許可の制御信号が出力
される。同様に、デコーダ10、11、SR−FF12
によってFIFOの蓄積ビット数が残り1ビットであっ
たら、出力インターフェース部2に読み出し禁止の制御
信号が出力され、mビットデータが貯まったら読み出し
許可の制御信号が出力される。この様に、従来のFIF
Oでは、スリップ制御を行うのにアップダウンカウンタ
部6を用意して制御しなくてはならなかった。
[0007] In the conventional FIFO register shown in FIG. 2, an FIFO including shift registers D 1 to Dn is used.
Since O does not output the internal state to the outside, the up-down counter unit 6 must be set to the outside when slip control is performed (the FIFO constituted by the shift register is full. No Flag or Empty Flag). The outputs of the up / down counter section 6 are decoded by decoders 7 and 8 to indicate that the state is full-m bits and full-1 bit, respectively, and the SR-FF 9 writes based on the decoding result. Is generated. That is, if the FIFO is almost full (n-1 bits are accumulated), the decoder 8 decodes the data and the SR-FF 9
Is reset, and a write-inhibit control signal is output to the input interface unit 1. Since reading is being performed while writing is prohibited, the output of the up / down counter unit 6 decreases to nm. At that time, the decoder 7
, The SR-FF 9 is set, and a write enable control signal is output to the input interface unit 1. Similarly, the decoders 10, 11, SR-FF12
If the number of bits stored in the FIFO is 1 bit, a read-inhibit control signal is output to the output interface unit 2, and if m-bit data is accumulated, a read-enable control signal is output. Thus, the conventional FIF
In O, the up-down counter section 6 had to be prepared and controlled to perform the slip control.

【0008】[0008]

【発明が解決しようとする課題】しかしながら、上記従
来のFIFOレジスタ回路においては、アップダウンカ
ウンタ部6を外部に用意することにより、外部での回路
規模が大きくなり、その制御も必要なことから回路が複
雑化するという欠点があった。本発明は、上述した如き
従来のFIFOが有する欠点を除去するためになされた
ものであって、FIFOに蓄積されているビット数を外
部で知る場合に、外部に付けなければならない回路規模
を小さく、簡単に出来るFIFOレジスタ回路を提供す
ることを目的とする。
However, in the above-mentioned conventional FIFO register circuit, the provision of the up / down counter section 6 on the outside increases the circuit scale on the outside and requires control of the circuit. However, there was a drawback that it became complicated. The present invention has been made in order to eliminate the disadvantages of the conventional FIFO as described above, and to reduce the circuit scale which must be provided externally when the number of bits stored in the FIFO is known externally. It is an object of the present invention to provide a FIFO register circuit which can be easily performed.

【0009】[0009]

【課題を解決するための手段】上述の目的を達成するた
め本発明は、ファーストインファーストアウト型バッフ
ァ(FIFO)を有してスリップ制御を行うFIFOレ
ジスタ回路において、上記FIFOが複数のシフトレジ
スタで構成され、上記FIFOの内部に蓄積されている
データ数を得るために上記各シフトレジスタの出力を上
記FIFOの外部へ引き出す手段と、上記各シフトレジ
スタの出力から得られるFIFOの内部に蓄積されたデ
ータ数に基づいて上記FIFOへの書き込み読み出しを
制御する制御手段とを具備したことを特徴とする。本発
明の他の特徴は、上記FIFOが、複数のシフトレジス
タから成るデータ蓄積部と、複数のシフトレジスタから
成るステータス表示部とを有し、上記引き出し手段が、
上記ステータス表示部の各シフトレジスタの出力を外部
へ引き出す様になっていることである。本発明の他の特
徴は、上記制御手段が、上記ステータス表示部の各シフ
トレジスタの出力から上記FIFOの蓄積データ数を
得、上記蓄積データ数が上記FIFOの満杯になりそう
な第1の値となった場合に上記FIFOへの書き込みを
禁止し、上記蓄積データ数が上記FIFOの空になりそ
うな第2の値となった場合に上記FIFOからの読み出
しを禁止する様に構成されていることである。
In order to achieve the above object, the present invention provides a FIFO register circuit having a first-in first-out type buffer (FIFO) for performing slip control, wherein the FIFO comprises a plurality of shift registers. Means for extracting the output of each shift register to the outside of the FIFO in order to obtain the number of data stored inside the FIFO, and the means stored in the FIFO obtained from the output of each shift register. Control means for controlling writing and reading to and from the FIFO based on the number of data. Another feature of the present invention is that the FIFO has a data storage unit composed of a plurality of shift registers, and a status display unit composed of a plurality of shift registers.
The output of each shift register of the status display section is drawn to the outside. According to another feature of the present invention, the control means obtains the number of data stored in the FIFO from the output of each shift register of the status display unit, and the first value at which the number of stored data is likely to become full of the FIFO. Is set, the writing to the FIFO is prohibited, and the reading from the FIFO is prohibited when the number of stored data becomes the second value that is likely to empty the FIFO. That is.

【0010】[0010]

【発明の実施の形態】以下、本発明を図示した実施形態
に基づいて説明する。図1は本発明によるFIFOレジ
スタ回路の一実施形態を示す回路図である。図1に示す
様に、このFIFOレジスタ回路は、入力データをFI
FO内に流すための入力インターフェース部1と、FI
FO内に貯まっているデータを出力してやるための出力
インターフェース部2と、入力されたデータがFIFO
内を速やかに流れる制御をする制御部3と、実際のデー
タが蓄積されるデータ蓄積部4と、どこまでデータが蓄
積されているかを表示するステータス表示部5と、容量
nのFIFOに満杯近く(n−1ビット)貯まってしま
った状態をデコードするデコード13と、FIFOが満
杯になるまでにある程度余裕がある(n−mビット貯ま
っている)状態をデコードするデコーダ14と、上記デ
コーダ13、14からのデコード結果を受けて書き込み
クロックの有効無効を制御するSR−FF15と、FI
FOがほぼ空になる状態(残りが1ビット)をデコード
するデコーダ16と、FIFOにある程度データが貯ま
っている(mビット貯まっている)状態をデコードする
デコーダ17と、上記デコーダ16、17からのデコー
ド結果を受けて、読み出しクロックの有効無効を制御す
るSR−FF18とを有している。また、上記データ蓄
積部4は、複数(この場合n個)のシフトレジスタD1
〜Dnから成り、上記ステータス表示部5もn個のシフ
トレジスタS1〜Snから成っている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, the present invention will be described based on illustrated embodiments. FIG. 1 is a circuit diagram showing one embodiment of a FIFO register circuit according to the present invention. As shown in FIG. 1, this FIFO register circuit stores
An input interface unit 1 for flowing into the FO;
An output interface unit 2 for outputting data stored in the FO;
The control unit 3 controls the flow of the data quickly, the data storage unit 4 stores the actual data, the status display unit 5 displays how much data is stored, and the FIFO of the capacity n is almost full ( a decoder 13 for decoding a state that has been stored (n-1 bits), a decoder 14 for decoding a state where there is some allowance before the FIFO is filled (n-m bits are stored), and the decoders 13 and 14 An SR-FF 15 for controlling the validity / invalidity of the write clock in response to the decoding result from
A decoder 16 for decoding a state where the FO is almost empty (the remaining one bit), a decoder 17 for decoding a state where data is stored to some extent in the FIFO (m bits are stored), and An SR-FF 18 for controlling the validity / invalidity of the read clock in response to the decoding result. The data storage unit 4 includes a plurality (n in this case) of shift registers D1.
To Dn, and the status display section 5 also includes n shift registers S1 to Sn.

【0011】次に、上記FIFOレジスタ回路の動作を
説明する。まず、入力データは、書き込みクロックによ
って入力インターフェース部1を通ってデータ蓄積部4
に入力される。そして、データ蓄積部4に入ったデータ
は制御部3の制御を受けながら、書き込み読み出しクロ
ックよりかなり速いFIFO内クロックによりデータ蓄
積部4の一番先頭のシフトレジスタまで到達し、入力さ
れたデータは先に入力されたデータのすぐ後ろのシフト
レジスタに蓄積される。この様にして、入力データはデ
ータが蓄積されていない一番出力側に近いシフトレジス
タに蓄えられる。また、読み出しクロックが入った場合
は、蓄積されているデータが入ったクロック数だけ同時
にシフトする仕組みになっている。また、ステータス表
示部5では、データがデータ蓄積部4で移動するのと同
じ動きで、ステータス表示データがステータス表示部5
内を移動する仕組みになっている。このステータス表示
部5の出力を見て、制御部3はデータがFIFO内をシ
フトするかどうかを決定している。そして、上記デコー
ダ13ではFIFOのステータス表示部5の各シフトレ
ジスタS1〜Snからの出力Snout〜S(n−1)
outまでがデコードされ、FIFOに満杯近く(n−
1ビット)貯まってしまった状態をデコードし、そのデ
コード結果に従って上記SR−FF18にリセットがか
かり、入力インターフェース部1に書き込み禁止の制御
信号が出される。
Next, the operation of the FIFO register circuit will be described. First, the input data is passed through the input interface unit 1 by the write clock to the data storage unit 4.
Is input to Then, the data input to the data storage unit 4 reaches the first shift register of the data storage unit 4 by the clock in the FIFO which is considerably faster than the write / read clock while being controlled by the control unit 3, and the input data is The data is stored in the shift register immediately after the previously input data. In this way, the input data is stored in the shift register closest to the output side where no data is stored. Further, when a read clock is input, the data is simultaneously shifted by the number of clocks containing the stored data. In the status display unit 5, the status display data is displayed in the same manner as the data moves in the data storage unit 4.
It is a mechanism that moves inside. Looking at the output of the status display section 5, the control section 3 determines whether or not the data shifts in the FIFO. The decoder 13 outputs the outputs Snout to S (n-1) from the shift registers S1 to Sn of the status display unit 5 of the FIFO.
out is decoded and the FIFO is almost full (n-
The stored state is decoded, and the SR-FF 18 is reset according to the decoding result, and a write-inhibit control signal is output to the input interface unit 1.

【0012】そして、書き込みを禁止している間に読み
出しが行われているので、FIFOに蓄積されているビ
ット数はn−mまで減少し、そのとき、上記ステータス
表示部5からの信号Snout〜S(n−m)outを
デコードしているデコーダ14から信号が出力されてS
R−FF15がセットされ、入力インターフェース部1
に書き込み許可の制御信号が出力される。同様に、上記
デコーダ16、17、SR−FF18によってFIFO
の蓄積ビット数が残り1ビットであったら、出力インタ
ーフェース部2に読み出し禁止の制御信号が出力され、
mビットデータが貯まったら読み出し許可の制御信号が
出力される。すなわち、上記デコーダ16では上記ステ
ータス表示部5の各シフトレジスタS1〜Slからの出
力S1out〜Sloutまでがデコードされ、FIF
Oの蓄積ビット数が残り1ビットの状態をデコードし、
そのデコード結果に従って上記SR−FF18にリセッ
トがかかり、上記出力インターフェース部2に読み出し
禁止の制御信号が出力される。
Since reading is performed while writing is prohibited, the number of bits stored in the FIFO decreases to nm, and at that time, the signals Snout to Snout from the status display unit 5 are output. A signal is output from the decoder 14 that decodes S (nm) out and S
The R-FF 15 is set and the input interface unit 1
, A write enable control signal is output. Similarly, the decoders 16, 17 and SR-FF 18 perform FIFO
If the number of accumulated bits is 1 bit, a read-inhibit control signal is output to the output interface unit 2,
When the m-bit data is accumulated, a read permission control signal is output. That is, the decoder 16 decodes the outputs S1out to Sout from the shift registers S1 to S1 of the status display unit 5, and
The state where the number of stored bits of O is 1 bit is decoded,
The SR-FF 18 is reset according to the decoding result, and a read-inhibit control signal is output to the output interface unit 2.

【0013】そして、読み出しを禁止している間に書き
込みが行われているので、FIFOに蓄積されているビ
ット数はmビットまで増加し、そのとき、上記ステータ
ス表示部5からの信号S1out〜Smoutをデコー
ドしている上記デコーダ17から信号が出力され上記S
R−FF18がセットされ、上記出力インターフェース
部2に読み出し許可の制御信号が出力される。この様に
FIFOからステータス表示部5の各シフトレジスタの
出力を外部に出力することによって、従来の場合に比べ
て、アップダウンカウンタ部がいらなくなり、それによ
って、回路規模を小さくでき、それを制御する煩わしさ
も解消できる。従って、より簡潔にスリップ制御が実現
できるようになる。なお、以上本発明をスリップ制御に
適用したものを例として説明したが、本発明はこれのみ
に限定されるものではなく、FIFOレジスタを使用す
る回路全般に適用できる。
Since writing is performed while reading is prohibited, the number of bits stored in the FIFO increases to m bits. At this time, the signals S1out to Smout from the status display unit 5 are output. A signal is output from the decoder 17 that decodes
The R-FF 18 is set, and a read permission control signal is output to the output interface unit 2. By outputting the output of each shift register of the status display unit 5 from the FIFO to the outside in this manner, an up-down counter unit is not required as compared with the conventional case, thereby making it possible to reduce the circuit scale and control it. Troublesomeness can be eliminated. Therefore, the slip control can be more simply realized. Although the present invention has been described with reference to an example in which the present invention is applied to slip control, the present invention is not limited to this, and can be applied to all circuits using a FIFO register.

【0014】[0014]

【発明の効果】本発明は、以上説明した様に、シフトレ
ジスタで構成されたFIFOからその内部に蓄積されて
いるデータ数を外部に引き出すことによって、従来の場
合に比べて、アップダウンカウンタ部がいらなくなり、
このことによって回路規模を小さくできる。また、アッ
プダウンカウンタ部を制御する煩わしさも解消でき、よ
り簡潔にスリップ制御が実現できるようになる。よっ
て、FIFOの周辺部の回路規模を小さく、設計を簡素
化することにおいて著しい効果を発揮する。
As described above, according to the present invention, the number of data stored therein is extracted to the outside from the FIFO constituted by the shift register, thereby making the up-down counter unit different from the conventional case. No longer needed
This can reduce the circuit scale. Further, the trouble of controlling the up / down counter section can be eliminated, and the slip control can be more simply realized. Therefore, a remarkable effect is exhibited in reducing the circuit scale in the peripheral portion of the FIFO and simplifying the design.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明を実施したFIFOレジスタ回路の回路
図である。
FIG. 1 is a circuit diagram of a FIFO register circuit embodying the present invention.

【図2】従来のシフトレジスタで構成されたFIFOで
スリップ制御を実現したFIFOレジスタ回路の回路図
である。
FIG. 2 is a circuit diagram of a FIFO register circuit in which slip control is realized by a FIFO configured by a conventional shift register.

【符号の説明】[Explanation of symbols]

1…入力インターフェース部、 2…出力イ
ンターフェース部、3…制御部、
4…データ蓄積部、5…ステータス表示部、
6…アップダウンカウンタ部、7、
8、10、11、13、14、16、17…デコーダ、
9、12、15、18…SRフリップフロップ(SR−
FF)、
1 input interface unit 2 output interface unit 3 control unit
4 Data storage unit 5 Status display unit
6, up-down counter, 7,
8, 10, 11, 13, 14, 16, 17 ... decoder,
9, 12, 15, 18 ... SR flip-flop (SR-
FF),

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 ファーストインファーストアウト型バッ
ファ(FIFO)を有してスリップ制御を行うFIFO
レジスタ回路であって、上記FIFOが複数のシフトレ
ジスタで構成され、上記FIFOの内部に蓄積されてい
るデータ数を得るために上記各シフトレジスタの出力を
上記FIFOの外部へ引き出す手段と、上記各シフトレ
ジスタの出力から得られるFIFOの内部に蓄積された
データ数に基づいて上記FIFOへの書き込み読み出し
を制御する制御手段とを具備したことを特徴とするFI
FOレジスタ回路。
An FIFO having a first-in first-out type buffer (FIFO) for performing slip control
A register circuit, wherein the FIFO is constituted by a plurality of shift registers, and means for extracting an output of each shift register to the outside of the FIFO to obtain the number of data stored in the FIFO; Control means for controlling writing to and reading from the FIFO based on the number of data stored in the FIFO obtained from the output of the shift register.
FO register circuit.
【請求項2】 上記FIFOが、複数のシフトレジスタ
から成るデータ蓄積部と、複数のシフトレジスタから成
るステータス表示部とを有し、上記引き出し手段が、上
記ステータス表示部の各シフトレジスタの出力を外部へ
引き出す様に構成されていることを特徴とする請求項1
に記載のFIFOレジスタ回路。
2. The apparatus according to claim 1, wherein the FIFO includes a data storage unit including a plurality of shift registers, and a status display unit including a plurality of shift registers, and the extracting unit outputs an output of each shift register of the status display unit. 2. The apparatus according to claim 1, wherein the apparatus is configured to be drawn out to the outside.
3. The FIFO register circuit according to 1.
【請求項3】 上記制御手段が、上記ステータス表示部
の各シフトレジスタの出力から上記FIFOの蓄積デー
タ数を得、上記蓄積データ数が上記FIFOの満杯にな
りそうな第1の値となった場合に上記FIFOへの書き
込みを禁止し、上記蓄積データ数が上記FIFOの空に
なりそうな第2の値となった場合に上記FIFOからの
読み出しを禁止する様に制御を行うことを特徴とする請
求項2に記載のFIFOレジスタ回路。
3. The control means obtains the number of data stored in the FIFO from the output of each shift register of the status display unit, and the number of stored data becomes a first value that is likely to fill the FIFO. In this case, control is performed to prohibit writing to the FIFO and to prohibit reading from the FIFO when the number of stored data becomes a second value that is likely to cause the FIFO to become empty. 3. The FIFO register circuit according to claim 2, wherein:
JP9294938A 1997-10-13 1997-10-13 Fifo register circuit Pending JPH11120757A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9294938A JPH11120757A (en) 1997-10-13 1997-10-13 Fifo register circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9294938A JPH11120757A (en) 1997-10-13 1997-10-13 Fifo register circuit

Publications (1)

Publication Number Publication Date
JPH11120757A true JPH11120757A (en) 1999-04-30

Family

ID=17814228

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9294938A Pending JPH11120757A (en) 1997-10-13 1997-10-13 Fifo register circuit

Country Status (1)

Country Link
JP (1) JPH11120757A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004506975A (en) * 2000-08-11 2004-03-04 アドバンスト・マイクロ・ディバイシズ・インコーポレイテッド Efficient clock start and stop device for clock forward system I / O
JP2007108966A (en) * 2005-10-13 2007-04-26 Nec Corp Semiconductor digital circuit, fifo buffer circuit, and data delivery method used therefor
US7353356B2 (en) 2002-03-07 2008-04-01 Renesas Technology Corp. High speed, low current consumption FIFO circuit

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004506975A (en) * 2000-08-11 2004-03-04 アドバンスト・マイクロ・ディバイシズ・インコーポレイテッド Efficient clock start and stop device for clock forward system I / O
US7353356B2 (en) 2002-03-07 2008-04-01 Renesas Technology Corp. High speed, low current consumption FIFO circuit
JP2007108966A (en) * 2005-10-13 2007-04-26 Nec Corp Semiconductor digital circuit, fifo buffer circuit, and data delivery method used therefor

Similar Documents

Publication Publication Date Title
US6044030A (en) FIFO unit with single pointer
US5841472A (en) MPEG2 transport decoder
US6493818B2 (en) Technique for pipelining synchronization to maintain throughput across two asynchronous clock domain boundaries
KR0123239B1 (en) Fifo memory
EP1130521B1 (en) Memory access circuit and memory access control circuit
US4885584A (en) Serializer system with variable character length capabilities
US6321233B1 (en) Apparatus for controlling pipelined memory access requests
US7870310B2 (en) Multiple counters to relieve flag restriction in a multi-queue first-in first-out memory system
JPH06259225A (en) Synchronizer of data transfer
US7085874B2 (en) Synchronous/asynchronous bridge circuit for improved transfer of data between two circuits
JPH0814983B2 (en) Compatible FIFO memory controller
JPH04301290A (en) Pushup memory circuit
JPH11120757A (en) Fifo register circuit
KR0155044B1 (en) Ram data transferring apparatus using fifo memory and its method
JP4346506B2 (en) First-in first-out memory and storage medium control device using the same
WO1999026145A2 (en) Video graphics controller having locked and unlocked modes of operation
US6486704B1 (en) Programmable burst FIFO
US6865654B2 (en) Device for interfacing asynchronous data using first-in-first-out
JP2004070148A (en) Liquid crystal display controller
KR101123087B1 (en) Data transmission circuit
JP2002050172A (en) Fifo control circuit
JPS5936773B2 (en) Local burst transfer control method
KR0179903B1 (en) First in first out memory
JP2002252852A (en) Code feeder and semiconductor integrated circuit
JPH07253920A (en) Fifo ram controller