JP2000011635A - Fifo memory - Google Patents

Fifo memory

Info

Publication number
JP2000011635A
JP2000011635A JP10179280A JP17928098A JP2000011635A JP 2000011635 A JP2000011635 A JP 2000011635A JP 10179280 A JP10179280 A JP 10179280A JP 17928098 A JP17928098 A JP 17928098A JP 2000011635 A JP2000011635 A JP 2000011635A
Authority
JP
Japan
Prior art keywords
read
data
address
circuit
signal
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.)
Withdrawn
Application number
JP10179280A
Other languages
Japanese (ja)
Inventor
Yasunobu Tokuda
泰信 徳田
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP10179280A priority Critical patent/JP2000011635A/en
Publication of JP2000011635A publication Critical patent/JP2000011635A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a FIFO memory of a large capacity capable of a high speed operation for an FIFO(first in first out) memory. SOLUTION: A two-port RAM register 1, register circuit 6 and output selector circuit 7 are provided, the register circuit 6 stores data of address 0 and the two-port RAM 1 stores other data in advance. The output selector circuit 7 is controlled so that the register circuit 6 outputs data when reading at address 0 and the two-port RAM1 outputs data in other case. This reduces the access time of FIFO to attain a high speed operation allowing the working frequency to be raised.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明はFIFO(ファース
ト・イン・ファースト・アウト)メモリについて、特に
その回路の構成方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a FIFO (first-in first-out) memory, and more particularly to a circuit configuration method thereof.

【0002】[0002]

【従来の技術】FIFOメモリは2ポートRAMに、ア
ドレスを順次生成するためのカウンタ回路、および書き
込みと読み出しの制御回路を付加することで構成でき
る。2ポートRAMの一方のポートをデータの書き込み
専用、もう一方のポートをデータの読み出し専用に使う
ことにより書き込みと読み出しを非同期かつ高速に行な
うことができる。特開平3−156788には2ポート
RAMを使ったFIFOメモリの回路が示してある。こ
の方法によると大容量の2ポートRAMを使うことによ
って容易に大容量のFIFOを実現することが可能であ
る。
2. Description of the Related Art A FIFO memory can be constituted by adding a counter circuit for sequentially generating addresses and a control circuit for writing and reading to a two-port RAM. By using one port of the two-port RAM exclusively for writing data and the other port exclusively for reading data, writing and reading can be performed asynchronously and at high speed. Japanese Patent Application Laid-Open No. 3-156788 discloses a FIFO memory circuit using a two-port RAM. According to this method, a large-capacity FIFO can be easily realized by using a large-capacity two-port RAM.

【0003】図9はこのような構成による従来のFIF
Oの回路図を示している。1は2ポートRAMである。
1への書き込みはライトコントロール回路2からのメモ
リライト信号12とライトアドレスカウンタ回路3から
のライトアドレス信号13によって制御される。ライト
サイクルごとにライトアドレス信号13が増加していく
ことによってデータ入力10に与えられたデータが順次
書き込まれる。1からの読み出しはリードコントロール
回路4からのメモリリード信号14とリードアドレスカ
ウンタ回路5からのリードアドレス信号15によって書
き込みが行なわれたのと同じ順番でデータ出力17から
データが出力される。書き込み側の2つの信号、ライト
イネーブル信号XWEとライトリセット信号XWRSは
ライトクロックWCKに同期して取り込まれる。すなわ
ち書き込みのサイクルはXWEが”L”の状態でWCK
の立ち上がりで開始し、ライトアドレスカウンタ回路3
のリセットはXWRSが”L”の状態でWCKが立ち上
がることによって行われる。読み出しの信号も同じよう
にしてリードイネーブル信号XREとリードリセット信
号XRRSはリードクロックRCKの立ち上がりで内部
に取り込まれる。リセットが行われた場合は各カウンタ
の値は0になり、2ポートRAMの物理アドレス0を選
択する。また最大アドレスに到達した後もカウンタは0
に戻ってループ状に変化する。
FIG. 9 shows a conventional FIF having such a configuration.
2 shows a circuit diagram of O. FIG. 1 is a two-port RAM.
Writing to 1 is controlled by a memory write signal 12 from the write control circuit 2 and a write address signal 13 from the write address counter circuit 3. Data given to the data input 10 is sequentially written by increasing the write address signal 13 in each write cycle. For reading from 1, the data is output from the data output 17 in the same order as the writing was performed by the memory read signal 14 from the read control circuit 4 and the read address signal 15 from the read address counter circuit 5. The two signals on the write side, the write enable signal XWE and the write reset signal XWRS, are fetched in synchronization with the write clock WCK. That is, the write cycle is WCK with XWE being "L".
Starts at the rising edge of the write address counter circuit 3
Is reset when WCK rises with XWRS at "L". Similarly, the read enable signal XRE and the read reset signal XRRS are taken in at the rise of the read clock RCK. When the reset is performed, the value of each counter becomes 0, and the physical address 0 of the 2-port RAM is selected. After reaching the maximum address, the counter remains at 0.
It returns to and changes in a loop.

【0004】図10は図9のFIFOの読み出し動作を
表すタイミング図である。RCKの立ち上がりからデー
タ出力までがアクセスタイムtACである。アクセスタ
イムはFIFOの動作速度を決定づける最大の要因であ
り、これを短縮するためにリードカウンタ回路のカウン
トアップは半周期遅らせたRCKの立ち下がりで行なっ
ている。つまり、RCKの立ち上がり前にアクセスすべ
きアドレスが確定しているので、直ちにメモリリード信
号を2ポートRAMに与えてアクセスを開始することが
可能になる。原理上はアクセスタイムの大部分は2ポー
トRAMのアクセスタイムtACMが占めることにな
る。しかし、リセット時に特殊なタイミングが存在し、
実質これがアクセスタイムを制約する。具体的には、図
10のサイクル0の動作であり、このサイクルではXR
RSとXREを共に”L”にしてリセットを行なうと同
時にアドレス0のデータを読み出している。このときR
CKの立ち上がり後にリードカウンタ回路のリセットが
行われてアドレスが0に変化する。2ポートRAMに非
同期型を使うのであればアドレスが変化して確定した後
に正しいデータが現れて、サイクル0のアクセスタイム
が遅れるだけで済むが、同期型を使うのであればメモリ
リード信号を与える前にアドレスを確定しておかなくて
はならない。図10ではメモリリード信号の立ち上がり
に遅延を与え、アドレスが0に変化した後のt0でメモ
リリード信号を立ち上げている。
FIG. 10 is a timing chart showing a read operation of the FIFO shown in FIG. The access time tAC is from the rise of RCK to the data output. The access time is the largest factor that determines the operation speed of the FIFO. To reduce this, the read counter circuit counts up at the falling edge of RCK delayed by a half cycle. That is, since the address to be accessed is determined before the rise of the RCK, the memory read signal can be immediately applied to the two-port RAM to start the access. In principle, most of the access time is occupied by the access time tACM of the 2-port RAM. However, there is a special timing at reset,
This in effect limits access time. Specifically, this is the operation in cycle 0 in FIG.
The data at address 0 is read at the same time as resetting by setting both RS and XRE to "L". Then R
After the rise of CK, the read counter circuit is reset, and the address changes to 0. If an asynchronous type is used for the two-port RAM, correct data appears after the address is changed and determined, and only the access time in cycle 0 needs to be delayed. However, if a synchronous type is used, before the memory read signal is given. The address must be fixed in the address. In FIG. 10, a delay is applied to the rise of the memory read signal, and the memory read signal rises at t0 after the address changes to 0.

【0005】[0005]

【発明が解決しようとする課題】上記のようにリセット
と読み出し動作が重なった場合はRCKの立ち上がり後
にリードアドレスの変化が起こり、変化後のアドレス0
のデータを読み出さなくてはならない。2ポートRAM
に同期型を使った場合、あるいは非同期型を使った場合
で対処の仕方は異なるが、いずれにせよFIFOの動作
クロックはサイクル0に合わせるしかなく、実質これが
最高動作周波数を決めていた。
When the reset and the read operation overlap as described above, the read address changes after the rise of RCK, and the address 0 after the change is read.
Data must be read. 2-port RAM
The method of handling differs depending on whether the synchronous type or the asynchronous type is used, but in any case, the operation clock of the FIFO can only be adjusted to cycle 0, and this has actually determined the maximum operation frequency.

【0006】本発明は上記問題を解決するためになされ
たものであり、その目的は高速動作が可能な大容量のF
IFOメモリを提供することにある。
SUMMARY OF THE INVENTION The present invention has been made to solve the above problem, and has as its object to provide a large capacity F which can operate at high speed.
It is to provide an IFO memory.

【0007】[0007]

【課題を解決するための手段】請求項1に係る本発明の
FIFOメモリは、複数アドレスのデータを記憶する2
ポートRAMと、単一アドレスのデータを記憶するレジ
スタ回路と、両者の出力の一方を選択して外部にデータ
を出力する出力セレクタ回路を備え、アドレス0のデー
タを前記レジスタ回路に書き込み、他のアドレスのデー
タを前記2ポートRAMに書き込む。リードリセット後
のアドレス0の読み出しを行なう場合は前記レジスタ回
路のデータを出力し、他のアドレスのデータを読み出す
場合は前記2ポートRAMのデータを出力するように前
記出力セレクタ回路を制御することを特徴とする。
According to a first aspect of the present invention, there is provided a FIFO memory for storing data of a plurality of addresses.
A port RAM, a register circuit for storing data of a single address, and an output selector circuit for selecting one of the outputs of the two and outputting the data to the outside, and writing the data at address 0 to the register circuit; The address data is written to the 2-port RAM. When reading address 0 after read reset, control the output selector circuit to output data of the register circuit, and to read data of another address, to output data of the 2-port RAM. Features.

【0008】請求項2に係る本発明のFIFOメモリ
は、複数アドレスのデータを記憶する2ポートRAM
と、単一アドレスのデータを記憶するレジスタ回路と、
両者の出力の一方を選択して外部にデータを出力する出
力セレクタ回路を備え、全てのアドレスのデータを前記
2ポートRAMに書き込み、平行してアドレス0のデー
タを前記レジスタ回路に書き込む。リードリセット動作
を伴わない読み出しの場合は前記2ポートRAMのデー
タを出力し、リードリセット動作と読み出しを同時に行
なう場合は前記レジスタ回路のデータを出力するように
前記出力セレクタ回路を制御することを特徴とする。
A FIFO memory according to a second aspect of the present invention is a two-port RAM for storing data of a plurality of addresses.
And a register circuit for storing data of a single address;
An output selector circuit for selecting one of the two outputs and outputting data to the outside is provided. Data of all addresses is written to the 2-port RAM, and data of address 0 is written to the register circuit in parallel. The output selector circuit is controlled so as to output the data of the 2-port RAM in the case of the read without the read reset operation, and to output the data of the register circuit in the case of performing the read reset operation and the read simultaneously. And

【0009】[0009]

【作用】レジスタ回路には常にアドレス0のデータが保
持されている。アドレス0以外の場合は2ポートRAM
からデータを読み出しを行なうが、リセットと同時にリ
ードを行なう場合、つまりアドレス0の場合はレジスタ
回路から読み出しを行なう。2ポートRAMに比べてレ
ジスタ回路のアクセスタイムは高速であるのでリセット
動作が加わってもデータは高速に読み出される。
The data of the address 0 is always held in the register circuit. 2-port RAM for addresses other than 0
The data is read from the register circuit when the data is read simultaneously with the reset, that is, when the address is 0. Since the access time of the register circuit is faster than that of a two-port RAM, data can be read at a high speed even when a reset operation is added.

【0010】[0010]

【発明の実施の形態】図1は本発明による第1の実施例
を示すFIFOメモリのブロック図である。書き込みデ
ータはデータ入力10からレジスタ回路6と2ポートR
AM1に与えられ、これらの出力データが出力セレクタ
回路7を通してデータ出力17から読み出される。ライ
トアドレスカウンタ回路3では書き込み動作の度にカウ
ントアップされ、ライトアドレス信号13が1に送られ
る。ライトアドレス信号13がアドレス0の場合はライ
トコントロール回路2からレジスタライト信号30が発
せられて6へ書き込みが行われる。同じく2からは書き
込みの度にメモリライト信号12が1に送られ、アドレ
ス0を含む全アドレスのデータが2ポートRAM1に書
き込まれる。一方、リード側においてもリードアドレス
カウンタ回路5からリードアドレス信号15、およびリ
ードコントロール回路4からメモリリード信号14が2
ポートRAM1に送られることによって書き込まれたの
と同じ順序でデータの読み出しが行われる。リードアド
レス信号15がアドレス0である場合は4からレジスタ
読み出し信号31が発せられて、出力セレクタ回路7が
制御される。これによってアドレス0の場合は6のデー
タが、アドレス0以外の場合は1のデータがデータ出力
17から読み出される。以上の構成をとることにより、
アドレス0のデータはレジスタ回路6、それ以外は2ポ
ートRAM1といった具合にデータの保持手段を変えて
いる。
FIG. 1 is a block diagram of a FIFO memory showing a first embodiment according to the present invention. Write data is sent from the data input 10 to the register circuit 6 and the 2-port R
AM 1, and these output data are read from the data output 17 through the output selector circuit 7. The write address counter circuit 3 counts up each time a write operation is performed, and the write address signal 13 is sent to 1. When the write address signal 13 is the address 0, the register control signal 30 is issued from the write control circuit 2 and writing to 6 is performed. Similarly, from 2 the memory write signal 12 is sent to 1 each time data is written, and data of all addresses including address 0 is written to the 2-port RAM 1. On the other hand, also on the read side, the read address signal 15 from the read address counter circuit 5 and the memory read signal 14 from the read control circuit 4 are 2
Data is read out in the same order as written by being sent to the port RAM1. When the read address signal 15 is the address 0, the register read signal 31 is issued from 4 and the output selector circuit 7 is controlled. As a result, 6 data is read from the data output 17 when the address is 0, and 1 data is read when the address is not 0. By taking the above configuration,
The data holding means is changed in such a manner that the data of the address 0 is the register circuit 6 and the others are the two-port RAM 1.

【0011】図3は本発明に係るレジスタリード信号3
1を生成する回路である。つまり図1に含まれるリード
コントロール回路4の一部を示している。リードイネー
ブル信号XREはリードクロックRCKの立ち上がりで
Dフリップフロップ401にラッチされ、XREが”
L”であった場合はRCKが”H”の期間にAND回路
402の出力は”H”になる。また、NOR回路404
はリードアドレス信号RA0からRAnがすべて”L”
の時に出力が”H”になる。従ってレジスタリード信号
31はアドレス0をリードするときだけ”H”になる。
一方、メモリリード信号15は全てのアドレスのリード
に対して”H”になって2ポートRAMをアクセスす
る。
FIG. 3 shows a register read signal 3 according to the present invention.
1 is a circuit for generating the “1”. That is, a part of the read control circuit 4 included in FIG. 1 is shown. The read enable signal XRE is latched by the D flip-flop 401 at the rise of the read clock RCK, and the signal XRE becomes "
If LCK is “H”, the output of the AND circuit 402 becomes “H” while the RCK is “H”.
Indicates that read address signals RA0 to RAn are all "L".
The output becomes "H" at the time of. Therefore, the register read signal 31 becomes "H" only when address 0 is read.
On the other hand, the memory read signal 15 becomes "H" for reading all addresses and accesses the 2-port RAM.

【0012】図6は図1および図3の回路の動作を示す
タイミング図である。サイクル0ではリードリセット信
号XRRSとリードイネーブル信号XREが共に”L”
になってリセットと読み出しを同時に行い。以後、XR
RSは”H”、XREは”L”のままにしてリードクロ
ックRCKを与えて順次読み出しを行なっていく。サイ
クル0ではRCKの立ち上がり後にリードカウンタ回路
がリセットされてリードアドレス信号が0に変化する。
するとレジスタリード信号もHに変わりデータ出力から
はレジスタ回路のデータが出力される。RCKの立ち下
がりでレジスタリード信号、メモリリード信号は”L”
になり、リードアドレスは1にカウントアップする。サ
イクル1以降はレジスタリードは”L”になり、メモリ
リードだけが”H”になって、データ出力には2ポート
RAMからの読み出しデータが出力される。従来のFI
FOを示した図10ではRCKからメモリリード信号の
立ち上がりまでに遅延を与えていたが、本発明ではリセ
ットと読み出しが同時に行われる場合はレジスタのデー
タが読み出されるのでこのような遅延を与えなくてもア
ドレス0のデータは正常に読み出すことができる。従っ
てRCKからメモリリード信号が立ち上がるまでの時間
t1またはt2は従来より大幅に短くできる。2ポート
RAMからデータを読み出す場合のFIFOのアクセス
タイムtACは、t1またはt2に2ポートRAMのア
クセスタイムtACMだけ加えた時間である。一方、サ
イクル0のアクセスタイムはRCKの立ち上がりからレ
ジスタリード信号の立ち上がるまでのt0とレジスタの
読み出し時間tACRの和である。レジスタリード信号
はリードアドレスが0であることを検出しているのでt
1、t2より大きくなるが、レジスタ回路は1つのアド
レスのデータ記憶回路しかなく、その読み出し時間tA
CRは2ポートRAMのアクセスタイムtACMに比べ
るとはるかに高速である。従ってサイクル0におけるF
IFOとしてのアクセスタイムtACは2ポートRAM
から読み出しを行なうサイクル1以降と同等以下にする
ことが可能になる。サイクル0ではレジスタリード信号
と同時にメモリリード信号が発せられて2ポートRAM
へのアクセスが行われる。2ポートRAMではメモリリ
ード信号が発せられた後にリードアドレスが0に変化す
るので同期型を使った場合は正常な読み出しができな
い。しかし、外部に出力されるのはレジスタ回路に貯え
られたアドレス0のデータであるのでFIFOとしては
正常かつ高速に読み出しを行なうことができる。
FIG. 6 is a timing chart showing the operation of the circuits of FIGS. In cycle 0, both the read reset signal XRRS and the read enable signal XRE are “L”.
And reset and read simultaneously. Hereafter, XR
RS is kept at “H” and XRE is kept at “L”, and the read clock RCK is applied to sequentially read data. In cycle 0, the read counter circuit is reset after the rise of RCK, and the read address signal changes to 0.
Then, the register read signal also changes to H, and data of the register circuit is output from the data output. At the falling edge of RCK, the register read signal and memory read signal are "L".
, And the read address is counted up to 1. After cycle 1, the register read becomes "L", only the memory read becomes "H", and the data output is the read data from the 2-port RAM. Conventional FI
In FIG. 10 showing the FO, a delay is given from RCK to the rise of the memory read signal. However, in the present invention, when reset and reading are performed simultaneously, the data in the register is read, so that such a delay is not given. The data at address 0 can be read out normally. Therefore, the time t1 or t2 from when RCK rises to the time when the memory read signal rises can be significantly reduced as compared with the conventional case. The access time tAC of the FIFO when reading data from the two-port RAM is a time obtained by adding the access time tACM of the two-port RAM to t1 or t2. On the other hand, the access time in cycle 0 is the sum of t0 from the rise of RCK to the rise of the register read signal and the register read time tACR. Since the register read signal detects that the read address is 0, t
1, t2, but the register circuit has only one address data storage circuit, and its read time tA
CR is much faster than the two-port RAM access time tACM. Therefore, F in cycle 0
Access time tAC as IFO is 2-port RAM
From the first cycle in which data is read from the first cycle. In cycle 0, a memory read signal is issued at the same time as the register read signal,
Access to is made. In a two-port RAM, the read address changes to 0 after a memory read signal is issued, so that when the synchronous type is used, normal reading cannot be performed. However, since what is output to the outside is the data of the address 0 stored in the register circuit, it is possible to perform normal and high-speed reading as a FIFO.

【0013】図5は本発明に係るレジスタライト信号3
0を生成する回路である。つまり図1に含まれるライト
コントロール回路2の一部を示している。ライトイネー
ブル信号XWEはライトクロック信号WCKの立ち上が
りでDフリップフロップ501にラッチされ、XWE
が”L”であった場合にWCKが”L”の期間にNOR
回路502の出力は”H”になる。また、NOR回路5
04はライトアドレス信号WA0からWAnがすべて”
L”の時に出力が”H”になる。従ってレジスタライト
信号30はアドレス0をライトするときだけ”H”にな
る。一方、メモリライト信号12は全てのアドレスのラ
イトに対して”H”になって2ポートRAMをアクセス
する。
FIG. 5 shows a register write signal 3 according to the present invention.
This is a circuit that generates 0. That is, a part of the write control circuit 2 included in FIG. 1 is shown. The write enable signal XWE is latched by the D flip-flop 501 at the rise of the write clock signal WCK, and XWE
Is "L", and NOR during WCK is "L"
The output of the circuit 502 becomes “H”. Also, the NOR circuit 5
04 is all write address signals WA0 to WAn "
The output becomes "H" at the time of "L", so that the register write signal 30 becomes "H" only when writing the address 0. On the other hand, the memory write signal 12 becomes "H" for writing of all addresses. And accesses the 2-port RAM.

【0014】図8は図1および図5の回路の動作を示す
タイミング図である。サイクル0ではライトリセット信
号XWRSとライトイネーブル信号XWEが共に”L”
になってリセットと書き込みを同時に行い。以後、XW
RSは”H”、XWEは”L”のままにしてライトクロ
ックWCKを与えて順次書き込みを行なっていく。各サ
イクルにおいてライトカウンタ回路はWCKの立ち上が
りに同期してカウントアップされる。またライトカウン
タ回路のリセットもWCKの立ち上がりに同期してい
る。一方、メモリライト信号はWCKの立ち下がり後
に”H”に変化し、WCKの”L”期間に書き込みが行
われる。書き込まれるデータは、書き込みが終了するメ
モリライト信号の立ち下がり時点のデータ入力の状態が
取り込まれる。この図から明らかなように、書き込み動
作に移る前にライトアドレスは確定しており、リセット
信号の有無に関わらずメモリライト信号に特別な遅延を
与える必要はない。レジスタライト信号はサイクル0の
WCKが”L”期間に発生されるが、ライトアドレスは
既に0になっているので信号生成が遅れることもない。
サイクル0ではメモリライト信号とレジスタライト信号
が発せられて、2ポートRAMとレジスタ回路に書き込
みが行われている。図6に示したように読み出しではア
ドレス0の時は常にレジスタ回路のデータが出力される
ので2ポートRAMのアドレス0への書き込みは必要な
い。本来は図1の構成において2ポートRAMのアドレ
ス0に匹敵するメモリセルそのものが必要ではないが、
回路規模が小さく、特性への影響もないのであえて削除
したり、アクセスを禁止するまでもない。
FIG. 8 is a timing chart showing the operation of the circuits of FIGS. In cycle 0, both the write reset signal XWRS and the write enable signal XWE are "L".
And reset and write simultaneously. Hereafter, XW
RS is kept at “H” and XWE is kept at “L”, and the write clock WCK is applied to sequentially perform writing. In each cycle, the write counter circuit counts up in synchronization with the rise of WCK. The reset of the write counter circuit is also synchronized with the rise of WCK. On the other hand, the memory write signal changes to “H” after the fall of WCK, and writing is performed during the “L” period of WCK. As the data to be written, the state of the data input at the time of the falling edge of the memory write signal at which the writing ends is captured. As is apparent from this figure, the write address is determined before the start of the write operation, and there is no need to give a special delay to the memory write signal regardless of the presence or absence of the reset signal. Although the register write signal is generated during the "L" period of the WCK in cycle 0, the signal generation is not delayed since the write address has already been set to "0".
In cycle 0, a memory write signal and a register write signal are issued, and writing is performed on the 2-port RAM and the register circuit. As shown in FIG. 6, in the read operation, when the address is 0, the data of the register circuit is always output. Therefore, it is not necessary to write to the address 0 of the two-port RAM. Originally, the configuration of FIG. 1 does not require the memory cell itself equivalent to the address 0 of the two-port RAM,
Since the circuit scale is small and there is no influence on the characteristics, there is no need to delete the access or prohibit the access.

【0015】図2は本発明による第2の実施例を示すF
IFOメモリのブロック図である。図1と異なるのはリ
ードコントロール回路4においてレジスタリード信号3
1を生成するのにリードアドレス0であることを判定す
るのではなくリードリセット信号XRRSを利用してい
る点である。そのためリードアドレス15を4へ入力し
ていない。
FIG. 2 shows a second embodiment of the present invention.
FIG. 3 is a block diagram of an IFO memory. The difference from FIG. 1 is that the read control circuit 4
This is that the read reset signal XRRS is used to generate 1 instead of determining that the read address is 0. Therefore, the read address 15 is not input to 4.

【0016】図4は図2にあるレジスタリード信号31
を生成する回路の具体例を表す図である。即ち図2のリ
ードコントロール回路4の一部を示している。AND回
路402の出力は、XREが”L”であった時にRCK
が”H”の期間に”H”になる。またAND回路405
の出力は、XRRSが”L”であった時にRCKが”
H”の期間に”H”になる。従ってレジスタリード信号
31はリセットと読み出しが同時に行われる場合にだけ
発せられる。図7は図2および図4の回路の動作を示す
タイミング図である。サイクル0ではXRRSとXRE
が共に”L”であるのでRCKの立ち上がり後にレジス
タリード信号が発生される。この期間t0は図5のよう
にリードアドレスが0に変化するのを待つこともないの
で、大幅に短縮され、メモリリード信号のt1、t2と
同等にすることが可能になる。この結果、サイクル0に
おけるFIFOのアクセスタイムtACはサイクル1以
降に比べてはるかに高速になる。このようにリセット信
号でレジスタを読み出す場合は、アドレス0で2ポート
RAMにもデータを書き込んでおく必要がある。この理
由は読み出しが最終アドレスに到達してリードアドレス
信号が再び0になった場合はレジスタからの読み出しは
行われず、2ポートRAMから読み出されるためであ
る。このような制約は生じるものの図7のサイクル0に
おけるtACは図6に比べてさらに高速になる。
FIG. 4 shows the register read signal 31 shown in FIG.
FIG. 3 is a diagram illustrating a specific example of a circuit that generates the data. That is, a part of the read control circuit 4 of FIG. 2 is shown. The output of the AND circuit 402 is RCK when XRE is "L".
Becomes "H" during the period of "H". Also, an AND circuit 405
Is output when RCK is "L" when XRRS is "L".
It becomes "H" during the period of "H." Therefore, the register read signal 31 is issued only when the reset and the read are performed at the same time.Figure 7 is a timing chart showing the operation of the circuits of FIGS. XRRS and XRE at 0
Are both "L", a register read signal is generated after the rise of RCK. Since the period t0 does not have to wait for the read address to change to 0 as shown in FIG. 5, it is greatly shortened, and can be made equivalent to the memory read signals t1 and t2. As a result, the access time tAC of the FIFO in cycle 0 is much faster than in cycle 1 and thereafter. When the register is read by the reset signal as described above, it is necessary to write data to the two-port RAM at the address 0. The reason is that when the read reaches the final address and the read address signal becomes 0 again, the data is not read from the register but is read from the two-port RAM. Despite such restrictions, tAC in cycle 0 in FIG. 7 is faster than in FIG.

【0017】[0017]

【発明の効果】以上説明したように本発明によれば、リ
ードリセットと読み出しを同時に行なう場合はレジスタ
回路を使うので高速にデータを読み出すことができる。
また、2ポートRAMの読み出しはリセット動作のタイ
ミングを考慮する必要がなくなり、アクセスするのに遅
延を与えなくてすむ。従ってFIFOのアクセスタイム
を高速化することが可能になると同時に動作周波数を高
めることができる。
As described above, according to the present invention, when read reset and read are simultaneously performed, data can be read at high speed because a register circuit is used.
In addition, when reading from the two-port RAM, there is no need to consider the timing of the reset operation, and there is no need to delay access. Therefore, the access time of the FIFO can be shortened and the operating frequency can be increased.

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

【図1】本発明による第1の実施例のFIFOメモリの
ブロック図である。
FIG. 1 is a block diagram of a FIFO memory according to a first embodiment of the present invention.

【図2】本発明による第2の実施例のFIFOメモリの
ブロック図である。
FIG. 2 is a block diagram of a FIFO memory according to a second embodiment of the present invention;

【図3】本発明に係る第1の実施例のレジスタリード信
号を生成する回路である。
FIG. 3 is a circuit for generating a register read signal according to the first embodiment of the present invention;

【図4】本発明に係る第2の実施例のレジスタリード信
号を生成する回路である。
FIG. 4 is a circuit for generating a register read signal according to a second embodiment of the present invention.

【図5】本発明に係るレジスタライト信号を生成する回
路である。
FIG. 5 is a circuit for generating a register write signal according to the present invention.

【図6】本発明に係る第1の実施例の読み出し動作を示
すタイミング図である。
FIG. 6 is a timing chart showing a read operation of the first embodiment according to the present invention.

【図7】本発明に係る第2の実施例の読み出し動作を示
すタイミング図である。
FIG. 7 is a timing chart showing a read operation of the second embodiment according to the present invention.

【図8】本発明に係る実施例の書き込み動作を示すタイ
ミング図である。
FIG. 8 is a timing chart showing a write operation of the embodiment according to the present invention.

【図9】従来のFIFOメモリのブロック図である。FIG. 9 is a block diagram of a conventional FIFO memory.

【図10】従来のFIFOメモリの読み出し動作を示す
タイミング図である。
FIG. 10 is a timing chart showing a read operation of a conventional FIFO memory.

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

1 2ポートRAM 2 ライトコントロール回路 3 ライトアドレスカウンタ回路 4 リードコントロール回路 5 リードアドレスカウンタ回路 6 レジスタ回路 7 出力セレクタ回路 WCK ライトクロック信号 XWE ライトイネーブル信号 XWRS ライトリセット信号 RCK リードクロック信号 XRE リードイネーブル信号 XRRS リードリセット信号 1 2-port RAM 2 write control circuit 3 write address counter circuit 4 read control circuit 5 read address counter circuit 6 register circuit 7 output selector circuit WCK write clock signal XWE write enable signal XWRS write reset signal RCK read clock signal XRE read enable signal XRRS Read reset signal

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】複数アドレスのデータを記憶する2ポート
RAMと、単一アドレスのデータを記憶するレジスタ回
路と、両者の出力の一方を選択して外部にデータを出力
する出力セレクタ回路を備え、アドレス0のデータを前
記レジスタ回路に書き込み、他のアドレスのデータを前
記2ポートRAMに書き込む。リードリセット後のアド
レス0の読み出しを行なう場合は前記レジスタ回路のデ
ータを出力し、他のアドレスを読み出す場合は前記2ポ
ートRAMのデータを出力するように前記出力セレクタ
回路を制御することを特徴とするFIFOメモリ。
1. A two-port RAM for storing data of a plurality of addresses, a register circuit for storing data of a single address, and an output selector circuit for selecting one of the outputs of the two and outputting the data to the outside, Data at address 0 is written to the register circuit, and data at another address is written to the 2-port RAM. The output selector circuit is controlled so as to output data of the register circuit when reading address 0 after read reset and to output data of the 2-port RAM when reading another address. FIFO memory.
【請求項2】複数アドレスのデータを記憶する2ポート
RAMと、単一アドレスのデータを記憶するレジスタ回
路と、両者の出力の一方を選択して外部にデータを出力
する出力セレクタ回路を備え、全てのアドレスのデータ
を前記2ポートRAMに書き込み、平行してアドレス0
のデータを前記レジスタ回路に書き込む。リードリセッ
ト動作を伴わない読み出しの場合は前記2ポートRAM
のデータを出力し、リードリセット動作と読み出しを同
時に行なう場合は前記レジスタ回路のデータを出力する
ように前記出力セレクタ回路を制御することを特徴とす
るFIFOメモリ。
2. A semiconductor device comprising a two-port RAM for storing data of a plurality of addresses, a register circuit for storing data of a single address, and an output selector circuit for selecting one of the outputs of the two and outputting the data to the outside. Data of all addresses is written to the 2-port RAM, and addresses 0
Is written into the register circuit. In the case of reading without read reset operation, the 2-port RAM
Wherein the output selector circuit is controlled to output the data of the register circuit when the read reset operation and the read operation are performed simultaneously.
JP10179280A 1998-06-25 1998-06-25 Fifo memory Withdrawn JP2000011635A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10179280A JP2000011635A (en) 1998-06-25 1998-06-25 Fifo memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10179280A JP2000011635A (en) 1998-06-25 1998-06-25 Fifo memory

Publications (1)

Publication Number Publication Date
JP2000011635A true JP2000011635A (en) 2000-01-14

Family

ID=16063088

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10179280A Withdrawn JP2000011635A (en) 1998-06-25 1998-06-25 Fifo memory

Country Status (1)

Country Link
JP (1) JP2000011635A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8904060B2 (en) 2012-03-07 2014-12-02 Samsung Electronics Co., Ltd. First-in first-out memory device and electronic apparatus having the same

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8904060B2 (en) 2012-03-07 2014-12-02 Samsung Electronics Co., Ltd. First-in first-out memory device and electronic apparatus having the same

Similar Documents

Publication Publication Date Title
US6795360B2 (en) Fifo memory devices that support all four combinations of DDR or SDR write modes with DDR or SDR read modes
KR100945968B1 (en) A semiconductor memory
CN101692346B (en) Memory data sampling device and sampling controller
JP6293322B2 (en) Time division multiplexed multiport memory.
US6337809B1 (en) Semiconductor memory device capable of improving data processing speed and efficiency of a data input and output pin and related method for controlling read and write
WO2008002742A2 (en) Dual-port sram memory using single-port memory cell
JP3334589B2 (en) Signal delay device and semiconductor memory device
US5274600A (en) First-in first-out memory
JPH0845277A (en) Semiconductor memory
US6853588B2 (en) First-in first-out memory circuit and method for executing same
JP2000011635A (en) Fifo memory
JP4019757B2 (en) Storage device
JP3559299B2 (en) Buffer memory device
JPH07182849A (en) Fifo memory
JPH06103026A (en) Memory system
JP2629450B2 (en) Memory circuit
JP2003216488A (en) Data processor, digital camera provided with data processor and recording medium
JP4061841B2 (en) Semiconductor memory device
KR100219188B1 (en) Dram control circuit
JP2580649B2 (en) Storage device control method
JP3825198B2 (en) Data access device
JP2001184854A (en) Fifo device
KR20020028413A (en) Serial address interface memory device
JP2003283311A (en) Edge detecting circuit
JPH05334184A (en) Writing buffer circuit

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060130

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060207

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20060308