JP2818418B2 - Semiconductor storage device - Google Patents

Semiconductor storage device

Info

Publication number
JP2818418B2
JP2818418B2 JP63224931A JP22493188A JP2818418B2 JP 2818418 B2 JP2818418 B2 JP 2818418B2 JP 63224931 A JP63224931 A JP 63224931A JP 22493188 A JP22493188 A JP 22493188A JP 2818418 B2 JP2818418 B2 JP 2818418B2
Authority
JP
Japan
Prior art keywords
address counter
address
read
data
write
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.)
Expired - Fee Related
Application number
JP63224931A
Other languages
Japanese (ja)
Other versions
JPH0273591A (en
Inventor
俊夫 大河内
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP63224931A priority Critical patent/JP2818418B2/en
Priority to KR1019890012110A priority patent/KR0168832B1/en
Publication of JPH0273591A publication Critical patent/JPH0273591A/en
Priority to US07/794,824 priority patent/US5255238A/en
Priority to US08/115,876 priority patent/US5426612A/en
Priority to KR1019940020631A priority patent/KR0182778B1/en
Application granted granted Critical
Publication of JP2818418B2 publication Critical patent/JP2818418B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は内部にアドレスカウンタを持つ半導体記憶装
置さらにはそのような半導体記憶装置に対するアクセス
動作の操作性を向上させる技術に関し、例えばデータを
先入れ先出し形式で入出力させるFiFo(ファイフォ)メ
モリに適用して有効な技術に関するものである。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a semiconductor memory device having an internal address counter and a technique for improving the operability of an access operation to such a semiconductor memory device. The present invention relates to technology that is effective when applied to a FiFo memory that inputs and outputs in a format.

〔従来技術〕(Prior art)

データの処理速度や転送速度が相違する複数の装置や
機能ブロック間でデータの受け渡しを行う場合にそのよ
うな能力や速度の相違を吸収するため、FiFoメモリなど
をバッファメモリとして利用することができる。
When transferring data between multiple devices or functional blocks with different data processing speeds and transfer speeds, FiFo memory etc. can be used as buffer memory to absorb such differences in capabilities and speeds .

FiFoメモリは、例えば複数個のメモリセルをマトリク
ス配置したメモリセルアレイと、メモリセルアレイに含
まれるメモリセルをアドレシングするためのアドレスデ
コーダと、アドレシングされたメモリセルに対して書き
込み/読み出し動作を行う書き込み読み出し回路とを備
え、更に、アクセスアドレスを内部で生成するためのリ
ードアドレスカウンタ及びライトアドレスカウンタを含
む。リードアドレスカウンタはデータ読み出し動作毎に
順次読み出しアドレスをインクリメントしてアドレスデ
コーダに供給し、またライトアドレスカウンタはデータ
書き込み動作毎に順次書き込みアドレスをインクリメン
トしてアドレスデコーダに供給する。夫々のアドレスカ
ウンタはメモリセルアレイの記憶容量に応ずるビット数
のリングカウンタなどによって構成される。データが空
の状態においてリードアドレスカウンタとライトアドレ
スカウンタの値は一致され、書き込みが行われる度に書
き込みアドレスカウンタの値がインクリメントされ、ま
た、読み出しが行われる毎にリードアドレスカウンタの
値がインクリメントされる。リードアドレスカウンタと
ライトアドレスカウンタの値は常に内部で監視され、書
き込み動作に際して両者の値が一致する場合には新たな
書き込みを受け付けることができない状態になり、この
状態をフル信号によってデータ書き込み元の装置や機能
モジュールに知らせる。読み出し動作に際して両者の値
が一致する場合には読み出すべきデータが最早存在しな
い状態になり、この状態をエンプティ信号によってデー
タ読み出し元の装置や機能モジュールに知らせる。
The FiFo memory includes, for example, a memory cell array in which a plurality of memory cells are arranged in a matrix, an address decoder for addressing the memory cells included in the memory cell array, and a write / read operation for performing a write / read operation on the addressed memory cells. And a read address counter and a write address counter for internally generating an access address. The read address counter sequentially increments the read address for each data read operation and supplies it to the address decoder, and the write address counter sequentially increments the write address for each data write operation and supplies it to the address decoder. Each address counter is constituted by a ring counter having a bit number corresponding to the storage capacity of the memory cell array. When data is empty, the values of the read address counter and the write address counter match, the value of the write address counter is incremented each time writing is performed, and the value of the read address counter is incremented each time reading is performed. You. The values of the read address counter and the write address counter are always monitored internally, and if the values match during a write operation, a new write cannot be accepted. Inform equipment and functional modules. If the two values match during the read operation, the data to be read no longer exists, and this state is notified to the device or function module from which the data is read by an empty signal.

尚、FiFoメモリについて記載された文献の例としては
日経マグロウヒル社発行の「日経エレクトロニクス」No
423号(1987年6月15日発行)がある。
Examples of documents describing FiFo memory include “Nikkei Electronics” No. published by Nikkei McGraw-Hill.
No. 423 (issued June 15, 1987).

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

しかしながら、従来のFiFoメモリは既述のようにデー
タの読み出しや書き込みの順番が内蔵アドレスカウンタ
によって一義的に決定されているため、メモリセルに対
するランダムアクセスの要求には一切答えることができ
ない。例えば、システム動作上FiFoメモリの途中に格納
されているデータをチェックする必要が生じた場合に
は、その必要なデータが順番に出力されるまで待たなけ
ればならない。さらに、システム動作上のエラーなどに
よって途中に不要なデータが生じた場合これをクリアす
るには当該不要データを全て順番に読み出してリードア
ドレスカウンタの値を更新してやらなければならず、そ
のための操作には時間がかかり、データのリアルタイム
処理を妨げることにもなるということが本発明者によっ
て明らかにされた。
However, in the conventional FiFo memory, since the order of reading and writing data is uniquely determined by the built-in address counter as described above, it cannot respond to a random access request to a memory cell at all. For example, when it is necessary to check data stored in the middle of the FiFo memory due to system operation, it is necessary to wait until the necessary data is output in order. Furthermore, if unnecessary data is generated in the middle due to an error in the system operation, etc., it is necessary to read all the unnecessary data in order and update the value of the read address counter in order to clear the unnecessary data. Has been found by the inventor to be time consuming and hinder real-time processing of data.

本発明の目的は、データの読み出し又は/及び書き込
みの順番が内蔵アドレスカウンタによって規定されてい
てもランダムアクセスが可能な半導体記憶装置を提供す
ることにある。本発明の別の目的は、データの読み出し
又は/及び書き込みの順番が内蔵アドレスカウンタの値
にによって規定されていてもデータの実質的なクリアを
簡単に行うことができる半導体記憶装置を提供すること
にある。
An object of the present invention is to provide a semiconductor memory device that can perform random access even when the order of reading and / or writing data is specified by a built-in address counter. Another object of the present invention is to provide a semiconductor memory device that can easily perform substantial clearing of data even when the order of data reading and / or writing is defined by the value of a built-in address counter. It is in.

本発明の前記並びにそのほかの目的と新規な特徴は本
明細書の記述及び添付図面から明らかになるであろう。
The above and other objects and novel features of the present invention will become apparent from the description of the present specification and the accompanying drawings.

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

本願において開示される発明のうち代表的なものの概
要を簡単に説明すれば、下記の通りである。
The outline of a typical invention disclosed in the present application will be briefly described as follows.

すなわち、データの読みだし又は/及び書き込みの順
序が内蔵アドレスカウンタによって規定される半導体記
憶装置において、アドレスカウンタの出力アドレス信号
と外部から供給されるアドレス信号とを選択する選択手
段を設け、この選択手段により外部アドレス信号をアク
セスアドレス信号として採用するとき、上記アドレスカ
ウンタの更新動作を抑止制御可能にするものである。こ
のように構成された半導体記憶装置において、アドレス
カウンタが指すアドレス以外の任意アドレスを外部アド
レス信号に基づいてアクセスするに際して、この半導体
記憶装置の物理的アドレス空間やアクセス対象とする所
要アドレスの基準となるアドレス情報が外部で必要にな
る場合を考慮すると、アドレスカウンタの保持情報を外
部データ入出力端子を介して外部に読み出し可能にして
おくことが望ましい。
That is, in a semiconductor memory device in which the order of data reading and / or writing is defined by a built-in address counter, a selecting means for selecting an output address signal of the address counter and an address signal supplied from the outside is provided. When the external address signal is adopted as the access address signal by the means, the updating operation of the address counter can be suppressed and controlled. In the semiconductor memory device configured as described above, when an arbitrary address other than the address indicated by the address counter is accessed based on the external address signal, the physical address space of the semiconductor memory device and the reference of a required address to be accessed are determined. Considering the case where certain address information is required externally, it is desirable that the information held in the address counter be readable to the outside via the external data input / output terminal.

また、データの読み出し又は/及び書き込みの順序が
内蔵アドレスカウンタによって規定される半導体記憶装
置において、外部データ入出力端子を介して上記アドレ
スカウンタの値を外部から書き換え可能に構成するもの
である。このように構成された半導体記憶装置におい
て、アドレスカウンタの値を書き換える場合に、そのア
ドレスカウンタの状態を外部で知る必要がある場合を考
慮すると、外部データ入出力端子を介してアドレスカウ
ンタの値を外部に読み出し可能にしておくことが望まし
い。
Also, in a semiconductor memory device in which the order of data reading and / or writing is defined by a built-in address counter, the value of the address counter can be externally rewritten via an external data input / output terminal. In the semiconductor memory device configured as described above, when the value of the address counter is rewritten, the value of the address counter is determined via the external data input / output terminal, considering that the state of the address counter needs to be known from outside. It is desirable to be able to read externally.

〔作 用〕(Operation)

上記した手段によれば、選択手段に外部アドレス信号
を選択させることにより、アドレスカウンタが指すアド
レスをそのまま維持しながらそのアドレス以外の任意ア
ドレスから所要データを得ることができ、これによっ
て、データの読み出し又は/及び書き込みの順番が内蔵
アドレスカウンタによって規定された半導体記憶装置で
あってもランダムアクセスが可能になる。
According to the above-described means, by causing the selecting means to select an external address signal, required data can be obtained from an arbitrary address other than the address while maintaining the address indicated by the address counter. And / or random access is possible even in a semiconductor memory device in which the order of writing is defined by a built-in address counter.

また、格納データの途中に不要なデータが生じたよう
な場合に、アドレスカウンタを外部から強制的に書き換
えることにより、データの実質的なクリア処理を簡単に
行うことを達成するものである。
Further, when unnecessary data is generated in the middle of the stored data, the address counter is forcibly rewritten from the outside, thereby achieving a simple clearing process of the data.

〔実施例1〕 第1図には本発明の一実施例であるFiFoメモリのブロ
ック図が示される。第1図に示されるFiFoメモリ1は、
特に制限されないが、第2図に示されるマイクロコンピ
ュータもしくはプロセッサ2に含まれる1つの機能モジ
ュールとされる。第2図に示されるプロセッサ2は、特
に制限されないが、公知の半導体集積回路製造技術によ
ってシリコン基板のような1個の半導体基板に形成され
る。
Embodiment 1 FIG. 1 is a block diagram of a FiFo memory according to an embodiment of the present invention. The FiFo memory 1 shown in FIG.
Although not particularly limited, it is one functional module included in the microcomputer or processor 2 shown in FIG. Although not particularly limited, the processor 2 shown in FIG. 2 is formed on one semiconductor substrate such as a silicon substrate by a known semiconductor integrated circuit manufacturing technique.

第2図にはFiFoメモリ1のほかに中央処理装置3とシ
リアル入力回路4が代表的に示されている。シリアル入
力回路4はビットシリアルに供給される受信データRxD
を同期化もしくは復元して取り込み、取り込んだデータ
を並列変換して出力する。FiFoメモリ1は、シリアル入
力回路4から供給されるデータを蓄えるバッファメモリ
として利用される。このFiFoメモリ1はシリアル入力回
路4側インタフェース部と、中央処理装置3側インタフ
ェース部とを備える。
FIG. 2 representatively shows a central processing unit 3 and a serial input circuit 4 in addition to the FiFo memory 1. The serial input circuit 4 receives the received data RxD
Synchronizes or restores the captured data, converts the captured data into parallel data, and outputs the data. The FiFo memory 1 is used as a buffer memory for storing data supplied from the serial input circuit 4. The FiFo memory 1 includes an interface unit on the serial input circuit 4 side and an interface unit on the central processing unit 3 side.

シリアル入力回路4側インタフェース部には、シリア
ル入力回路4から並列変換された受信データDrxが供給
されると供に、この受信データDrxの書き込みをFiFoメ
モリ1に指示するプッシュ信号PUSHが供給される。シリ
アル入力回路4側インタフェース部からシリアル入力回
路4へはFiFoメモリ1に空きメモリセルがない状態を知
らせるためのフル信号FSが供給される。
The serial input circuit 4 side interface unit is supplied with the parallel-converted received data Drx from the serial input circuit 4 and also supplied with a push signal PUSH instructing the FiFo memory 1 to write the received data Drx. . A full signal FS for notifying that there is no empty memory cell in the FiFo memory 1 is supplied from the interface unit on the serial input circuit 4 side to the serial input circuit 4.

中央処理装置3側インタフェース部は、アドレスバス
ABUS及びデータバスDBUSを介して中央処理装置3などと
の間でデータDiの受け渡しやアドレス信号Aiの供給を受
けると供に、アドレス信号Aiの所定ビットをデコーダ5
でデコードして生成された制御信号AA,CAを受け、さら
にリード・ライト信号R/Wを受ける。中央処理装置3側
インタフェース部から中央処理装置3へはFiFoメモリ1
に最早読み出すべきデータが存在しない状態を知らせる
ためのエンプティ信号ES、並びに中央処理装置3による
FiFoメモリ1のアクセス動作を禁止指示するためのアク
セス禁止ステータス信号INHが供給される。
The interface unit on the central processing unit 3 side includes an address bus.
When the data Di is exchanged with the central processing unit 3 and the supply of the address signal Ai via the ABUS and the data bus DBUS, a predetermined bit of the address signal Ai is supplied to the decoder 5.
Receive the control signals AA and CA generated by decoding in step (1), and further receive the read / write signal R / W. FiFo memory 1 from the central processing unit 3 side interface unit to the central processing unit 3
Signal for notifying that there is no data to be read any longer, and the central processing unit 3
An access inhibition status signal INH for instructing the access operation of the FiFo memory 1 to be inhibited is supplied.

中央処理装置3は、特に制限されないが、プロセッサ
全体の制御を司ると供に、受信データRxDに対するプロ
トコル処理をも行うようになっている。
Although not particularly limited, the central processing unit 3 controls the entire processor and also performs a protocol process on the received data RxD.

次に第1図に基づいてFiFoメモリ1の詳細を説明す
る。このFiFoメモリ1は、基本的に先入れ先出し形式で
データの入出力を行うが、さらには中央処理装置3によ
るランダムアクセス並びに不要データのクリア処理が可
能に構成されている。
Next, the details of the FiFo memory 1 will be described with reference to FIG. The FiFo memory 1 basically performs input / output of data in a first-in first-out format, and is further configured so that the central processing unit 3 can perform random access and clear processing of unnecessary data.

第1図において10は書き換え可能な複数個のメモリセ
ルがマトリクス配置されたメモリセルアレイである。メ
モリセルアレイ10に含まれる所要メモリセルのアドレシ
ングはアドレスデコーダ11が行う。このアドレスデコー
ダ11によってアドレシングされたメモリセルに対するデ
ータの読み出し書き込みは読み出し書き込み回路12が行
うようになっている。
In FIG. 1, reference numeral 10 denotes a memory cell array in which a plurality of rewritable memory cells are arranged in a matrix. Addressing of required memory cells included in the memory cell array 10 is performed by the address decoder 11. A read / write circuit 12 reads / writes data from / to the memory cell addressed by the address decoder 11.

中央処理装置3によるランダムアクセスのためのアド
レス信号Aiはアドレス入力バッファ15に供給される。ま
た、先入れ先出し形式でFiFoメモリ1にデータを入出力
させるためのアクセスアドレスを内部で生成するため、
メモリセルアドレス10の記憶容量に応ずるビット数のリ
ングカウンタなどによって構成されたリードアドレスカ
ウンタ13及びライトアドレスカウンタ14を備える。ライ
トアドレスカウンタ14は先入れ形式によるデータ書き込
み動作毎に順次書き込みアドレスAwをインクリメントし
て出力する。このライトアドレスカウンタ14のインクリ
メント動作はコントローラ17から出力される制御信号φ
wiがアサートされることによって指示される。リードア
ドレスカウンタ13は先出し形式によるデータ読み出し動
作毎に順次読み出しアドレスArをインクリメントして出
力する。このリードアドレスカウンタ13のインクリメン
ト動作はコントローラ17から出力される制御信号φriが
アサートされることによって指示される。
An address signal Ai for random access by the central processing unit 3 is supplied to an address input buffer 15. Also, to internally generate an access address for inputting / outputting data to / from the FiFo memory 1 in a first-in first-out format,
The memory includes a read address counter 13 and a write address counter 14 which are configured by a ring counter having a bit number corresponding to the storage capacity of the memory cell address 10. The write address counter 14 sequentially increments and outputs the write address Aw for each data write operation in the first-in first-out format. The increment operation of the write address counter 14 is controlled by a control signal φ output from the controller 17.
Indicated by wi being asserted. The read address counter 13 sequentially increments and outputs the read address Ar for each data read operation in the advance format. The increment operation of read address counter 13 is instructed by assertion of control signal φri output from controller 17.

上記アドレス入力バッファ15から出力されるアドレス
信号Ai、上記リードアドレスカウンタ13から出力される
アドレス信号Ar、及びライトアドレスカウンタ14から出
力されるアドレス信号Awは、セレクタ16により選択され
てアドレスデコーダ11に供給される。セレクタ16の選択
制御はコントローラ17から出力される複数ビットの制御
信号φsに従って行われる。
The address signal Ai output from the address input buffer 15, the address signal Ar output from the read address counter 13, and the address signal Aw output from the write address counter 14 are selected by the selector 16 and sent to the address decoder 11. Supplied. The selection control of the selector 16 is performed according to a control signal φs of a plurality of bits output from the controller 17.

上記リードアドレスカウンタ13とライトアドレスカウ
ンタ14の値は初期状態において一致されるようになって
おり、リードアドレスカウンタ13から出力されるアドレ
ス信号Arとラントアドレスカウンタ14から出力されるア
ドレス信号Awは常時比較判定回路18に供給されてその一
致不一致が常時監視される。比較判定回路18は、先入れ
形式の書き込み動作に際して両者の値Ar,Awが一致する
場合には新たな書き込みを受け付けることができない状
態をシリアル入力回路4に知らせるためにフル信号FSを
ハイレベルにアサートし、また、先出し形式の読み出し
動作に際して両者の値Ar,Awが一致する場合には読み出
すべきデータが最早存在しない状態を中央処理装置3に
知らせるためにエンプティ信号ESをハイレベルにアサー
トする。尚、比較判定回路18は、特に制限されないが、
制御信号φwiによるライトアドレスカウンタ14のインク
リメント指示に基づいて先入れ形式の書き込み動作を検
出し、また、制御信号φriによるリードアドレスカウン
タ13のインクリメント指示に基づいて先出し形式の読み
出し動作を検出する。
The values of the read address counter 13 and the write address counter 14 are matched in the initial state, and the address signal Ar output from the read address counter 13 and the address signal Aw output from the runt address counter 14 are always The data is supplied to a comparison / judgment circuit 18 and the coincidence / mismatch is constantly monitored. The comparison determination circuit 18 sets the full signal FS to a high level in order to notify the serial input circuit 4 of a state in which new writing cannot be accepted if the values Ar and Aw match during the first-in-time writing operation. If the values Ar and Aw match in the read operation of the first-out format, the empty signal ES is asserted to a high level in order to notify the central processing unit 3 that there is no longer data to be read. Although the comparison judgment circuit 18 is not particularly limited,
A first-in write operation is detected based on an increment instruction of the write address counter 14 by the control signal φwi, and a first-read operation is detected based on an increment instruction of the read address counter 13 by the control signal φri.

上記読み出し書き込み回路12は、中央処理装置3によ
る先出し形式のメモリリードアクセスとランダムアクセ
スに利用されるデータ入出力バッファ20を介してデータ
バスDBUSにインタフェースされ、さらにシリアル入力回
路4による先入れ形式のメモリライトアクセスに利用さ
れるデータ入力バッファ21を介してシリアル入力回路4
にインタフェースされる。データ入出力バッファ20に対
するデータの入出力制御はリード・ライト信号R/Wのレ
ベルに応じてコントローラ17から出力される制御信号φ
i,φoによって行われる。また、データ入力バッファ21
によるデータの入力制御はコントローラ17から出力され
る制御信号φpによって行われる。特に制限されない
が、中央処理装置3による先出し形式のメモリリードア
クセスとランダムアクセスに際して読み出し書き込み回
路12のリード/ライト制御はリード・ライト信号R/Wの
レベルに応じてコントローラ17から出力される制御信号
φr,φwによって指示され、シリアル入力回路4による
先入れ形式のメモリライトアクセスに際して読み出し書
き込み回路12のライト制御は上記制御信号φpによって
指示される。
The read / write circuit 12 is interfaced to a data bus DBUS via a data input / output buffer 20 used for a memory read access and a random access of a first-in-first-out type by the central processing unit 3. Serial input circuit 4 via data input buffer 21 used for memory write access
Interfaced to Data input / output control for the data input / output buffer 20 is performed by a control signal φ output from the controller 17 according to the level of the read / write signal R / W.
i, φo. Also, the data input buffer 21
Is controlled by a control signal φp output from the controller 17. Although not particularly limited, the read / write control of the read / write circuit 12 is performed by the central processing unit 3 at the time of the advance type memory read access and random access by the control signal output from the controller 17 according to the level of the read / write signal R / W. The write control of the read / write circuit 12 is specified by the control signal φp when the serial input circuit 4 accesses the memory write in the first-in-first-out format.

上記リードアドレスカウンタ13及びライトアドレスカ
ウンタ14はデータ入出力バッファ20に結合され、それが
保持するアドレス信号Ar,Awを中央処理装置3が読み出
したり、また、その値を中央処理装置3が強制的に書き
換えたりすることができるようになっている。データ入
出力バッファ20に結合されるリードアドレスカウンタ13
の入出力ゲートはコントローラ17から出力される制御信
号φacにより開閉制御される。同様に、データ入出力バ
ッファ20に結合されるライトアドレスカウンタ14の入出
力ゲートはコントローラ17から出力される制御信号φwa
cにより開閉制御される。
The read address counter 13 and the write address counter 14 are coupled to a data input / output buffer 20, and the central processing unit 3 reads the address signals Ar and Aw held by the data input / output buffer 20, and the central processing unit 3 forcibly reads the values. And can be rewritten. Read address counter 13 coupled to data input / output buffer 20
Are controlled by a control signal φac output from the controller 17. Similarly, the input / output gate of the write address counter 14 coupled to the data input / output buffer 20 controls the control signal φwa output from the controller 17.
Opening / closing is controlled by c.

ここで、上記デコーダ5から出力される制御信号AA
は、そのハイレベルによりFiFoメモリ1をアドレス信号
Aiによってランダムアクセスすることを指示する信号と
みなされる。コントローラ17は、制御信号AAがハイレベ
ルにアサートされると、制御信号φsによりセレクタ16
にアドレス信号Aiを選択出力させる。このランダムアク
セスにおけるリード・ライト動作はリード・ライト信号
R/Wによって指示される。これによってメモリリード動
作が指示される場合には制御信号φr,φoがアサートさ
れ、且つ制御信号φw,φiがネゲートされる。メモリラ
イト動作が指示される場合には制御信号φr,φoがネゲ
ートされ、且つ制御信号φw,φiがアサートされる。
Here, the control signal AA output from the decoder 5
Indicates the address signal of the FiFo memory 1 by its high level.
It is regarded as a signal indicating random access by Ai. When the control signal AA is asserted to a high level, the controller 17
Select and output the address signal Ai. The read / write operation in this random access is a read / write signal
Indicated by R / W. Accordingly, when a memory read operation is instructed, control signals φr and φo are asserted, and control signals φw and φi are negated. When a memory write operation is instructed, control signals φr and φo are negated, and control signals φw and φi are asserted.

デコーダ5から出力される上記2ビットの制御信号CA
は、リードアドレスカウンタ13やライトアドレスカウン
タ14のアクセスを指示するための制御信号とされる。制
御信号CAに含まれる所定1ビットはそのハイレベルによ
りリードアドレスカウンタ13に対するアクセスを指示す
るビットとみなされ、他の1ビットはそのハイレベルに
よりライトアドレスカウンタ14に対するアクセスを指示
するビットとみなされる。制御信号CAによりリードアド
レスカウンタ13に対するアクセスが指示されると、コン
トローラ17は制御信号φacをアサートしてリードアドレ
スカウンタ13の図示しない入出力ゲートを開ける。制御
信号CAによりライトアドレスカウンタ14に対するアクセ
スが指示されると、コントローラ17は制御信号φwacを
アサートしてライトアドレスカウンタ14の図示しない入
出力ゲートを開ける。このときのリード・ライト動作は
リード・ライト信号R/Wによって指示され、これに従っ
て制御信号φi,φoの何れか一方がアサートされること
により、データ入出力バッファ20におけるデータの入出
力方向が制御される。尚、リードアドレスカウンタ13や
ライトアドレスカウンタ14のアクセスに際しては制御信
号φr,φwは双方ともネゲートされる。
The 2-bit control signal CA output from the decoder 5
Is a control signal for instructing access of the read address counter 13 and the write address counter 14. One predetermined bit included in the control signal CA is regarded as a bit instructing access to the read address counter 13 by its high level, and the other one bit is regarded as a bit instructing access to the write address counter 14 by its high level. . When the access to the read address counter 13 is instructed by the control signal CA, the controller 17 asserts the control signal φac to open an input / output gate (not shown) of the read address counter 13. When the access to the write address counter 14 is instructed by the control signal CA, the controller 17 asserts the control signal φwac to open an input / output gate (not shown) of the write address counter 14. The read / write operation at this time is instructed by the read / write signal R / W, and according to this, one of the control signals φi and φo is asserted, thereby controlling the data input / output direction in the data input / output buffer 20. Is done. When the read address counter 13 and the write address counter 14 are accessed, both the control signals φr and φw are negated.

上記制御信号AAがローレベルにネゲートされていると
き、リード・ライト信号R/Wによって読み出し動作が指
示されると、FiFoメモリ1はリードアドレスカウンタ13
の出力アドレス信号Arに従った先出し形式によるリード
動作モードとされる。これにより、制御信号φriがアサ
ートされることによってリードアドレスカウンタ13がイ
ンクリメントされ、インクリメントされたリードアドレ
スカウンタ13から出力されるアドレス信号Arがセレクタ
16を介してアドレスデコーダ11に供給される。
When the read operation is instructed by the read / write signal R / W while the control signal AA is negated to low level, the FiFo memory 1 reads the read address counter 13.
Is set to the read operation mode in the first-out format in accordance with the output address signal Ar of the above. As a result, when the control signal φri is asserted, the read address counter 13 is incremented, and the address signal Ar output from the incremented read address counter 13 is selected by the selector.
The data is supplied to the address decoder 11 via 16.

シリアル入力回路4から供給されるプッシュ信号PUSH
はそのハイレベルによりライトアドレスカウンタ14の出
力アドレス信号Awに従った先入れ形式によるライト動作
モードを指示する信号とみなされる。コントローラ17
は、そのプッシュ信号PUSHがハイレベルにアサートされ
ると、制御信号φwiをアサートし、これによっててライ
トアドレスカウンタ14がインクリメントされ、このよう
にして得られたアドレス信号Awがセレクタ16を介してア
ドレスデコーダ11に供給される。
Push signal PUSH supplied from serial input circuit 4
Is regarded as a signal indicating a write operation mode in a first-in first-out format in accordance with the output address signal Aw of the write address counter 14 at its high level. Controller 17
Asserts the control signal φwi when the push signal PUSH is asserted to a high level, whereby the write address counter 14 is incremented, and the address signal Aw thus obtained is supplied to the address The data is supplied to the decoder 11.

本実施例のFiFoメモリ1は中央処理装置3及びシリア
ルに入力回路4の双方からアクセス可能であるから、双
方からのアクセスの競合を回避させるため、特に制限さ
れないが、コントローラ17は中央処理装置3によるFiFo
メモリ1のアクセスを禁止指示するためのアクセス禁止
ステータス信号INHを与える。この競合回避の論理は、
特に制限されないが、シリアル入出力回路4からのアク
セス要求を優先させるようになっており、アクセス禁止
ステータス信号INHは例えばプッシュ信号PUSHのアサー
ト期間に呼応してアサートされる。
Since the FiFo memory 1 of this embodiment can be accessed from both the central processing unit 3 and the input circuit 4 serially, there is no particular limitation to avoid contention for access from both. By FiFo
An access prohibition status signal INH for prohibiting access to the memory 1 is provided. The logic of this conflict avoidance is
Although not particularly limited, the access request from the serial input / output circuit 4 is prioritized, and the access inhibition status signal INH is asserted, for example, in response to the assertion period of the push signal PUSH.

次に上記実施例の動作を説明する。 Next, the operation of the above embodiment will be described.

シリアル入力回路4は、フル信号FSがネゲートされて
いることを条件にプッシュ信号PUSHをアサートして受信
データDrxをFiFoメモリ1に供給する。これによりFiFo
メモリ1はライトアドレスカウンタ14をインクリメント
しながらその受信データDrxを順番にメモリセルアレイ1
0に格納していく。
The serial input circuit 4 asserts the push signal PUSH on condition that the full signal FS is negated, and supplies the received data Drx to the FiFo memory 1. This allows FiFo
The memory 1 sequentially increments the write address counter 14 and sequentially stores the received data Drx in the memory cell array 1.
Stored in 0.

中央処理装置3は、エンプティ信号ES及びアクセス禁
止ステータス信号INHがネゲートされていることを条件
にFiFoメモリ1に対して先出し形式によるリード動作を
指示する。これによりFiFoメモリ1はリードアドレスカ
ウンタ13をインクリメントしながら、メモリセルアレイ
10に格納されている受信データを順番に読み出してい
く。
The central processing unit 3 instructs the FiFo memory 1 to perform a read operation in a first-out format on the condition that the empty signal ES and the access prohibition status signal INH are negated. As a result, the FiFo memory 1 increments the read address counter 13 while increasing the memory cell array.
The received data stored in 10 is read out in order.

ここで、システム動作上のエラーなどにより、メモリ
セルアレイ10に格納された受信データの途中に不要なデ
ータが生じた場合にこれをクリアする動作を説明する。
例えば第5図(A)に示されるようにリードアドレスカ
ウンタ13とライトアドレスカウンタ14がある値Ar,Awを
指しているとき、メモリセルアレイ10のアドレス空間に
おける領域ED1,ED2のデータが不要になった場合に、中
央処理装置3は、第5図(B)に示されるようにリード
アドレスカウンタ13の値をAr′に書き換え、また、ライ
トアドレスカウンタ14の値をAw′に書き換えてやればよ
い。このようにしてリードアドレスカウンタ13及びライ
トアドレスカウンタ14の値が書き換えられると、その後
シリアル入力回路4から与えられる受信データDrxは、
ライトアドレスカウンタ14によって示される値Aw′のア
ドレスから順次書き込まれ、領域ED2に残っている不要
データは無視される。また、その後、メモリセルアレイ
10に格納されている受信データを中央処理装置3が先出
し形式で読み込む場合には、リードアドレスカウンタ13
によって示される値Ar′のアドレスから順次読み出さ
れ、領域ED1に残っているデータは無視される。したが
って、不要データを全て順番に読み出してリードアドレ
スカウンタ13の値を更新してやらなくても、中央処理装
置3がリードアドレスカウンタ13やライトアドレスカウ
ンタ14の値を強制的に書き換える操作だけで不要データ
に対する実質的なクリア処理を簡単に行うことができ
る。
Here, a description will be given of an operation of clearing unnecessary data generated in the middle of the received data stored in the memory cell array 10 due to an error in the system operation or the like.
For example, as shown in FIG. 5A, when the read address counter 13 and the write address counter 14 point to certain values Ar and Aw, data in the areas ED1 and ED2 in the address space of the memory cell array 10 becomes unnecessary. In this case, the central processing unit 3 may rewrite the value of the read address counter 13 to Ar 'and rewrite the value of the write address counter 14 to Aw', as shown in FIG. 5 (B). . When the values of the read address counter 13 and the write address counter 14 are rewritten in this manner, the received data Drx subsequently given from the serial input circuit 4 becomes
The unnecessary data remaining in the area ED2 is sequentially written from the address of the value Aw 'indicated by the write address counter 14, and is ignored. After that, the memory cell array
When the central processing unit 3 reads the received data stored in the storage device 10 in advance, the read address counter 13
Are read out sequentially from the address of the value Ar ′ indicated by, and the data remaining in the area ED1 is ignored. Therefore, even if it is not necessary to read out all unnecessary data in order and update the value of the read address counter 13, the central processing unit 3 merely performs an operation of forcibly rewriting the values of the read address counter 13 and the write address counter 14 to the unnecessary data. Substantial clear processing can be easily performed.

このクリア処理においてリードアドレスカウンタ13及
びライトアドレスカウンタ14の値を書き換えるとき、そ
のアドレスカウンタ13,14の状態を中央処理装置3が知
る必要がある場合には、中央処理装置3はリードアドレ
スカウンタ13及びライトアドレスカウンタ14の値をリー
ドアクセスし、読み込んだ値Ar,Awに基づいて書き換え
るべき値Ar′,Aw′を算出する。このようなアドレスカ
ウンタ13,14のリードアクセスが必要な場合としては、
例えば中央処理装置3が不要データのパケット番号やバ
イト数もしくはワード数しか認識していないとき、メモ
リセルアレイ10の物理的アドレス空間や算出すべき値A
r′,Aw′の基準となるべき値Ar,Awを得なければならな
いような場合が想定される。
When rewriting the values of the read address counter 13 and the write address counter 14 in this clearing process, if the central processing unit 3 needs to know the states of the address counters 13 and 14, the central processing unit 3 sets the read address counter 13 Read access is made to the value of the write address counter 14, and the values Ar 'and Aw' to be rewritten are calculated based on the read values Ar and Aw. When read access of the address counters 13 and 14 is required,
For example, when the central processing unit 3 recognizes only the packet number, the byte number, or the word number of the unnecessary data, the physical address space of the memory cell array 10 and the value A to be calculated are determined.
It is assumed that it is necessary to obtain values Ar and Aw to be the references of r 'and Aw'.

次に、システム動作上FiFoメモリ1の途中に格納され
ているデータをチェックする必要が生じた場合には、中
央処理装置3はアドレス信号AiによってFiFoメモリ1を
ランダムアクセスして所要のデータを読み込む。このと
きのリード動作では制御信号φriはアサートされず、こ
れによって、リードアドレスカウンタ13の値はそのまま
維持される。このランダムアクセスに際して、中央処理
装置3がFiFoメモリ1の物理的アドレス空間やアクセス
対象とする所要アドレスの基準となるアドレス情報を必
要とする場合、当該中央処理装置3はリードアドレスカ
ウンタ13やライトアドレスカウンタ14をリードアクセス
してその値を読み込むことができる。
Next, when it is necessary to check data stored in the middle of the FiFo memory 1 due to the system operation, the central processing unit 3 randomly accesses the FiFo memory 1 by the address signal Ai and reads required data. . In the read operation at this time, the control signal φri is not asserted, whereby the value of the read address counter 13 is maintained as it is. When the central processing unit 3 needs the physical address space of the FiFo memory 1 and address information serving as a reference of a required address to be accessed at the time of the random access, the central processing unit 3 reads the read address counter 13 and the write address. The value of the counter 14 can be read by read access.

上記実施例によれば以下の作用効果を得るものであ
る。
According to the above embodiment, the following effects can be obtained.

(1)セレクタ16に外部アドレス信号Aiを選択させるこ
とにより、中央処理装置3は、リードアドレスカウンタ
13及びライトアドレスカウンタ14が指すアドレスをその
ままにした状態でそれらが指すアドレス以外の任意アド
レスから所要のデータを得ることができ、これによっ
て、データの読み出し書き込みの順番が内蔵アドレスカ
ウンタ13,14の値によって規定されるFiFoメモリ1にお
いてもランダムアクセスが可能になる。
(1) By causing the selector 16 to select the external address signal Ai, the central processing unit 3
13 and the address indicated by the write address counter 14 can be obtained, and the required data can be obtained from any address other than the address indicated by the address. Random access is also possible in the FiFo memory 1 specified by the value.

(2)メモリセルアレイ10に格納されたデータの途中に
不要なデータが生じたような場合に、リードアドレスカ
ウンタ13又は/及びライトアドレスカウンタ14の値を中
央処理装置3の制御で強制的に書き換えることにより、
FiFoメモリ1におけるデータの実質的なクリア処理を簡
単に行うことができる。
(2) When unnecessary data occurs in the middle of the data stored in the memory cell array 10, the value of the read address counter 13 and / or the write address counter 14 is forcibly rewritten under the control of the central processing unit 3. By doing
Substantial clearing of data in the FiFo memory 1 can be easily performed.

(3)上記作用効果より、中央処理装置3によるランダ
ムアクセスと不要データの任意クリア処理が可能なFiFo
メモリ1をシリアル入力回路4のバッファメモリとして
利用する場合に、中央処理装置3が受信データに対する
プロトコル処理を行おうとするときには、中央処理処理
装置3はFiFoメモリ1をランダムアクセスして受信デー
タに含まれるコントロールフィールドなどの情報を任意
に得てプロトコル処理を行うことができ、その結果不要
とされるような受信データや受信データに含まれる送信
元識別データのような不要データをバッファメモリとし
てのFiFoメモリ1上で簡単にクリア処理することが可能
になる。したがって、FiFoメモリ1に受信したデータを
一旦全てローカルメモリなどに転送してからプロトコル
処理を行う必要はなく、これによってプロトコル処理の
効率化さらにはそのためのシステムの簡素化を図ること
ができる。
(3) Due to the above operation and effect, the FiFo capable of random access and arbitrary clearing of unnecessary data by the central processing unit 3 is possible.
When the memory 1 is used as a buffer memory of the serial input circuit 4 and the central processing unit 3 intends to perform protocol processing on the received data, the central processing unit 3 randomly accesses the FiFo memory 1 and includes it in the received data. The protocol processing can be performed by arbitrarily obtaining information such as the control field to be processed, and as a result, unnecessary data such as received data and transmission source identification data included in the received data that is unnecessary is used as a buffer memory. Clear processing can be easily performed on the memory 1. Therefore, it is not necessary to transfer all the data received in the FiFo memory 1 to a local memory or the like and then perform the protocol processing. This makes it possible to increase the efficiency of the protocol processing and to simplify the system therefor.

〔実施例2〕 第3図には本発明の他の実施例であるFiFoメモリのブ
ロック図が示される。第3図に示されるFiFoメモリ31
は、特に制限されないが、第4図に示されるマイクロコ
ピュータシステムに含まれる1つの周辺装置とされ、公
知の半導体集積回路製造技術によってシリコン基板のよ
うな1の半導体基板に形成される。
Embodiment 2 FIG. 3 is a block diagram of a FiFo memory according to another embodiment of the present invention. FiFo memory 31 shown in FIG.
Although not particularly limited, it is one peripheral device included in the microcomputer system shown in FIG. 4, and is formed on one semiconductor substrate such as a silicon substrate by a known semiconductor integrated circuit manufacturing technique.

第4図にはFiFoメモリ31のほかに、バスマスタモジュ
ールとしてのプロセッサ33及びシリアル入力回路34、さ
らにバス権調停を行うためのバスアービタ32が代表的に
示され、それらはデータバスDBUS、アドレスバスABUS、
及びコントロールバスCBUSに結合されている。プロセッ
サ33,シリアル入力回路34はバス権を要求する信号とし
てバスリクエスト信号BREQ1,BREQ2を出力し、これらバ
スリクエスト信号BREQ1,BREQ2を受けるバスアービタ32
はプロセッサ33,シリアル入力回路34に対して排他的に
バス権を認めるためのバスアクノレッジ信号BACK1,BACK
2を出力する。
FIG. 4 representatively shows, in addition to the FiFo memory 31, a processor 33 and a serial input circuit 34 as a bus master module, and a bus arbiter 32 for arbitrating bus rights, which are a data bus DBUS and an address bus ABUS. ,
And the control bus CBUS. The processor 33 and the serial input circuit 34 output bus request signals BREQ 1 and BREQ 2 as signals requesting a bus right, and receive a bus request signal BREQ 1 and BREQ 2 for the bus arbiter 32.
Are the bus acknowledge signals BACK 1 and BACK for exclusively recognizing the bus right to the processor 33 and the serial input circuit 34.
Outputs 2 .

シリアル入力回路34はビットシリアルに供給される受
信データRxDを同期化もしくは復元して取り込み、取り
込んだデータを並列変換して出力する。FiFoメモリ31
は、シリアル入力回路34から供給されるデータを蓄える
バッファメモリとして利用される。プロセッサ33は、特
に制限されないが、FiFoメモリ31に格納された受信デー
タに対するプロトコル処理などのデータ処理をも行うよ
うになっている。FiFoメモリ31は単一チップもしくは単
一ペレットにより構成され、汎用的に利用される単一の
インタフェース部を備える。このインタフェース部は、
上記データバスDBUS、アドレスバスABUS、及びコントロ
ールバスCBUSに結合されている。FiFoメモリ31はプロセ
ッサ33やシリアル入力回路34から出力されるリード・ラ
イト信号R/WをコントロールバスCBUSを介して受けると
供に、FiFoメモリ31に空きメモリセルがない状態を外部
特にシリアル入力回路34に知らせるためのフル信号FSを
コントロールバスCBUSに出力し、また、FiFoメモリ31に
最早読み出すべきデータが存在しない状態を外部特にプ
ロセッサ33に知らせるためのエンプティ信号ESをコント
ロールバスCBUSに出力する。そしてFiFoメモリ31は、プ
ロセッサ33やシリアル入力回路34から出力されるアドレ
ス信号Aiの所定ビットをデコーダ35でデコードして生成
された制御信号AA,CAを受ける。
The serial input circuit 34 synchronizes or restores the received data RxD supplied in a bit serial manner, captures the data, converts the captured data into parallel, and outputs the converted data. FiFo memory 31
Is used as a buffer memory for storing data supplied from the serial input circuit. Although not particularly limited, the processor 33 also performs data processing such as protocol processing on received data stored in the FiFo memory 31. The FiFo memory 31 is constituted by a single chip or a single pellet, and has a single interface unit used for general purposes. This interface section
The data bus DBUS, the address bus ABUS, and the control bus CBUS are coupled. The FiFo memory 31 receives the read / write signal R / W output from the processor 33 and the serial input circuit 34 via the control bus CBUS, and also checks whether there is no empty memory cell in the FiFo memory 31 externally, especially the serial input circuit. A full signal FS for informing the control bus CBUS is output to the control bus CBUS, and an empty signal ES for notifying the processor 33 in particular that there is no more data to be read out in the FiFo memory 31 is output to the control bus CBUS. The FiFo memory 31 receives control signals AA and CA generated by decoding predetermined bits of the address signal Ai output from the processor 33 and the serial input circuit 34 by the decoder 35.

次に第3図に基づいてFiFoメモリ31の詳細を説明す
る。このFiFoメモリ31は、基本的に先入れ先出し形式で
データの入出力を行うが、さらにはプロセッサ33による
ランダムアクセス並びに不要データのクリア処理が可能
に構成されている。
Next, the details of the FiFo memory 31 will be described with reference to FIG. The FiFo memory 31 basically performs input / output of data in a first-in first-out format, and is further configured so that the processor 33 can perform random access and clear processing of unnecessary data.

第3図において40は書き換え可能な複数個のメモリセ
ルがマトリクス配置されたメモリセルアレイである。メ
モリセルアレイ40に含まれる所要メモリセルのアドレシ
ングはアドレスデコーダ41が行う。このアドレスデコー
ダ41によってアドレシングされたメモリセルに対するデ
ータの読み出し書き込みは読み出し書き込み回路42が行
うようになっている。
In FIG. 3, reference numeral 40 denotes a memory cell array in which a plurality of rewritable memory cells are arranged in a matrix. Addressing of required memory cells included in the memory cell array 40 is performed by an address decoder 41. The read / write circuit 42 reads / writes data from / to the memory cells addressed by the address decoder 41.

プロセッサ33によるランダムアクセスのためのアドレ
ス信号Aiはアドレス入力バッファ45に供給される。ま
た、先入れ先出し形式でFiFoメモリ31にデータ入出力さ
せるためのアクセスアドレスを内部で生成するため、メ
モリセルアレイ40の記憶容量に応ずるビット数のリング
カウンタなどによって構成されたリードアドレスカウン
タ43及びライトアドレスカウンタ44を備える。ライトア
ドレスカウンタ44は先入れ形式によるデータ書き込み動
作毎に順次書き込みアドレスAwをインクリメントして出
力する。このライトアドレスカウンタ44のインクリメン
ト動作はコントローラ47から出力される制御信号φwiが
アサートされることによって指示される。リードアドレ
スカウンタ43は先入れ形式によるデータ読み出し動作毎
に順次読み出しアドレスArをインクリメントして出力す
る。このリードアドレスカウンタ43によるインクリメン
ト動作はコントローラ47から出力される制御信号φriが
アサートされることによって指示される。
An address signal Ai for random access by the processor 33 is supplied to an address input buffer 45. Further, in order to internally generate an access address for inputting / outputting data to / from the FiFo memory 31 in a first-in first-out format, a read address counter 43 and a write address counter 43 each including a ring counter having a bit number corresponding to the storage capacity of the memory cell array 40 are provided. It has 44. The write address counter 44 sequentially increments and outputs the write address Aw for each data write operation in the first-in first-out format. The increment operation of the write address counter 44 is instructed by asserting the control signal φwi output from the controller 47. The read address counter 43 sequentially increments and outputs the read address Ar for each data read operation in the first-in first-out format. The increment operation by the read address counter 43 is instructed by the assertion of the control signal φri output from the controller 47.

上記アドレス入力バッファ45から内部に取り込まれる
アドレス信号Ai、上記リードアドレスカウンタ43から出
力されるアドレス信号Ar、及びライトアドレスカウンタ
44から出力されるアドレス信号Awは、セレクタ46により
選択されて上記アドレスデコーダ41に供給される。セレ
クタ46の選択制御はコントローラ47から出力される複数
ビットの制御信号φsに従って行われる。
An address signal Ai internally taken from the address input buffer 45, an address signal Ar output from the read address counter 43, and a write address counter.
The address signal Aw output from 44 is selected by the selector 46 and supplied to the address decoder 41. The selection control of the selector 46 is performed according to a control signal φs of a plurality of bits output from the controller 47.

上記リードアドレスカウンタ43とライトアドレスカウ
ンタ44の値は初期状態において一致されるようになって
おり、リードアドレスカウンタ43から出力されるアドレ
ス信号Arとライトアドレスカウンタ14から出力されるア
ドレス信号Awは常時比較判定回路48に供給されてその一
致不一致が常時監視される。比較判定回路48は、先入れ
形式の書き込み動作に際して両者の値Ar,Awが一致する
場合には新たな書き込みを受け付けることができない状
態をシリアル入力回路34に知らせるためのフル信号FSを
ハイレベルにアサートし、また、先出し形式の読み出し
動作に際して両者の値Ar,Awが一致する場合には読み出
すべきデータが最早存在しない状態をプロセッサ33に知
らせるためのエンプティ信号ESをハイレベルにアサート
する。尚、比較判定回路48は、特に制限されないが、制
御信号φwiによるライトアドレスカウンタ44のインクリ
メント指示に基づいて先入れ形式の書き込み動作を検出
し、また、制御信号φriによるリードアドレスカウンタ
43のインクリメント指示に基づいて先出し形式の読み出
し動作を検出する。
The values of the read address counter 43 and the write address counter 44 match in the initial state, and the address signal Ar output from the read address counter 43 and the address signal Aw output from the write address counter 14 are always It is supplied to a comparison / judgment circuit 48 and the coincidence / mismatch is constantly monitored. The comparison determination circuit 48 sets the full signal FS to a high level to notify the serial input circuit 34 of a state in which new writing cannot be accepted if the values Ar and Aw match during a first-in-time write operation. If the values Ar and Aw match during the read operation of the first-out format, an empty signal ES for notifying the processor 33 of a state in which data to be read no longer exists is asserted to a high level. Note that, although not particularly limited, the comparison determination circuit 48 detects a write operation of a first-in first-out format based on an increment instruction of the write address counter 44 by the control signal φwi, and reads a read address counter by the control signal φri.
Based on the increment instruction of 43, the read operation of the advance format is detected.

上記読み出し書き込み回路42は、データ入出力バッフ
ァ50を介してデータバスDBUSにインタフェースされる。
このデータ入出力バッファ50に対するデータの入出力制
御はリードライト信号R/Wのレベルに応じてコントロー
ラ47から出力される制御信号φi,φoによって行われ
る。また、読み出し書き込み回路42のリード/ライト制
御はリードライト信号R/Wのレベルに応じてコントロー
ラ47から出力される制御信号φr,φwによって指示され
る。
The read / write circuit 42 is interfaced to a data bus DBUS via a data input / output buffer 50.
Data input / output control for the data input / output buffer 50 is performed by control signals φi and φo output from the controller 47 in accordance with the level of the read / write signal R / W. The read / write control of the read / write circuit 42 is instructed by control signals φr, φw output from the controller 47 according to the level of the read / write signal R / W.

上記リードアドレスカウンタ43及びライトアドレスカ
ウンタ44はデータ入出力バッファ50に結合され、それが
保持するアドレス信号Ar,Awをプロセッサ33が読み出し
たり、また、その値をプロセッサ33が強制的に書き換え
たりすることができるようになっている。データ入出力
バッファ50に結合されるリードアドレスカウンタ43の入
出力ゲートはコントローラ47から出力される制御信号φ
acにより開閉制御される。同様に、データ入出力バッフ
ァ50に結合されるライトアドレスカウンタ44の入出力ゲ
ートはコントローラ47から出力される制御信号φwacに
より開閉制御される。
The read address counter 43 and the write address counter 44 are coupled to the data input / output buffer 50, and the processor 33 reads the address signals Ar and Aw held by the data input / output buffer 50, and the processor 33 forcibly rewrites the values. You can do it. The input / output gate of the read address counter 43 coupled to the data input / output buffer 50 controls the control signal φ output from the controller 47.
Opening / closing is controlled by ac. Similarly, the input / output gate of the write address counter 44 coupled to the data input / output buffer 50 is controlled to open and close by a control signal φwac output from the controller 47.

ここで、上記デコーダ35から出力される制御信号AA
は、そのハイレベルによりFiFoメモリ31をアドレス信号
Aiによってランダムアクセスすることを指示する信号と
みなされる。コントローラ47は、制御信号AAがハイレベ
ルにアサートされると、制御信号φsによりセレクタ46
にアドレス信号Aiを選択出力させる。このランダムアク
セスにおけるリード・ライト動作はプロセッサ33から出
力されるリード・ライト信号R/Wによって指示される。
これによってメモリリード動作が指示される場合には制
御信号φr,φoがアサートされ、且つ制御信号φw,φi
がネゲートされる。メモリライト動作が指示される場合
には制御信号φr,φoがネゲートされ、且つ制御信号φ
w,φiがアサートされる。
Here, the control signal AA output from the decoder 35
Signals the FiFo memory 31 by its high level.
It is regarded as a signal indicating random access by Ai. When the control signal AA is asserted to a high level, the controller 47
Select and output the address signal Ai. The read / write operation in this random access is specified by a read / write signal R / W output from the processor 33.
Accordingly, when a memory read operation is instructed, control signals φr and φo are asserted and control signals φw and φi are asserted.
Is negated. When a memory write operation is instructed, control signals φr and φo are negated and control signal φ
w and φi are asserted.

デコーダ35から出力される上記2ビットの制御信号CA
は、リードアドレスカウンタ43やライトアドレスカウン
タ44のアクセスを指示するための制御信号とされる。制
御信号CAに含まれる所定1ビットはそのハイレベルによ
りリードアドレスカウンタ43に対するアクセスを指示す
るビットとみなされ、他の1ビットはそのハイレベルに
よりライトアドレスカウンタ44に対するアクセスを指示
するビットとみなされる。制御信号CAによりリードアド
レスカウンタ43に対するアクセスが指示されると、コン
トローラ47は制御信号φacをアサートしてリードアドレ
スカウンタ43の図示しない入出力ゲートを開ける。制御
信号CAによりライトアドレスカウンタ44に対するアクセ
スが指示されると、コントローラ47は制御信号φwacを
アサートしてライトアドレスカウンタ44の図示しない入
出力ゲートを開ける。このときのリード・ライト動作は
リード・ライト信号R/Wによって指示され、これに従っ
て制御信号φi,φoの何れか一方がアサートされること
により、データ入出力バッファ50におけるデータの入出
力方向が制御される。尚、リードアドレスカウンタ43や
ライトアドレスカウンタ44のアクセスに際しては制御信
号φr,φwは双方ともネゲートされる。
The 2-bit control signal CA output from the decoder 35
Is a control signal for instructing access of the read address counter 43 and the write address counter 44. One predetermined bit included in the control signal CA is regarded as a bit instructing access to the read address counter 43 by its high level, and the other one bit is regarded as a bit instructing access to the write address counter 44 by its high level. . When access to the read address counter 43 is instructed by the control signal CA, the controller 47 asserts the control signal φac to open an input / output gate (not shown) of the read address counter 43. When the access to the write address counter 44 is instructed by the control signal CA, the controller 47 asserts the control signal φwac to open an input / output gate (not shown) of the write address counter 44. The read / write operation at this time is instructed by the read / write signal R / W, and according to this, one of the control signals φi and φo is asserted to control the data input / output direction in the data input / output buffer 50. Is done. When the read address counter 43 and the write address counter 44 are accessed, both the control signals φr and φw are negated.

上記制御信号AAがローレベルにネゲートされていると
き、リード・ライト信号R/Wによって読み出し動作が指
示されると、FiFoメモリ31はリードアドレスカウンタ43
の出力アドレス信号Arに従って先出し形式によるリード
動作モードとされる。これにより、制御信号φriがアサ
ートされることによってリードアドレスカウンタ43がイ
ンクリメントされ、インクリメントされたリードアドレ
スカウンタ43から出力されるアドレス信号Arがセレクタ
46を介してアドレスデコーダ41に供給される。
When the read operation is instructed by the read / write signal R / W while the control signal AA is negated to the low level, the FiFo memory 31 reads the read address counter 43.
Is set to the read operation mode based on the first-out format in accordance with the output address signal Ar. As a result, when the control signal φri is asserted, the read address counter 43 is incremented, and the address signal Ar output from the incremented read address counter 43 is selected by the selector.
The data is supplied to the address decoder 41 via 46.

上記制御信号AAがローレベルにネゲートされていると
き、リード・ライト信号R/Wによって書き込み動作が指
示されると、FiFoメモリ31はライトアドレスカウンタ44
の出力アドレス信号Awに従って先入れ形式によるライト
動作モーとされる。これにより、制御信号φwiがアサー
トされることによってライトアドレスカウンタ44がイン
クリメントされ、インクリメントされたライトアドレス
カウンタ44から出力されるアドレス信号Awがセレクタ46
を介してアドレスデコーダ41に供給される。
When the write operation is instructed by the read / write signal R / W while the control signal AA is negated to the low level, the FiFo memory 31 stores the write address counter 44.
In accordance with the output address signal Aw. As a result, when the control signal φwi is asserted, the write address counter 44 is incremented, and the address signal Aw output from the incremented write address counter 44 is changed to the selector 46.
Is supplied to the address decoder 41 via the.

本実施例のFiFoメモリ31はプロセッサ33及びシリアル
に入力回路34の双方から共通のインタフェース部を介し
てアクセス可能にされるが、プロセッサ33とシリアル入
力回路34のバス権はバスアービタ32により排他的に認め
られるため、FiFoメモリ31に対するプロセッサ33及びシ
リアル入力回路34双方からのアクセス競合は、そのバス
アービタ32によりバス権調停で回避されるようになって
いる。
The FiFo memory 31 of this embodiment is made accessible to both the processor 33 and the input circuit 34 serially through a common interface unit, but the bus right of the processor 33 and the serial input circuit 34 is exclusively controlled by the bus arbiter 32. As a result, the contention for access to the FiFo memory 31 from both the processor 33 and the serial input circuit 34 is avoided by the bus arbiter 32 in bus arbitration.

次に上記実施例の動作を説明する。 Next, the operation of the above embodiment will be described.

シリアル入力回路34は、フル信号FSがアサートされて
いないときにバスリクエスト信号BREQ2をアサートし、
この要求に対してバス権が認められると、制御信号AAを
ローレベルにし得るアドレス信号Aiを出力すると供に、
リード・ライト信号R/WをローレベルにしてFiFoメモリ3
1に先入れ形式による書き込み動作を指示し、その後受
信データDrxをデータバスDBUSに出力する。これによりF
iFoメモリ31はライトアドレスカウンタ44をインクリメ
ントしながらその受信データDrxを順番にメモリセルア
レイ40に格納していく。
The serial input circuit 34 asserts the bus request signal BREQ 2 when the full signal FS is not asserted,
When the bus right is granted in response to this request, the address signal Ai that can set the control signal AA to low level is output, and
Set the read / write signal R / W to low level to set the FiFo memory 3
Instruct 1 to perform a write operation in a first-in first-out format, and thereafter output the received data Drx to the data bus DBUS. This gives F
The iFo memory 31 sequentially stores the received data Drx in the memory cell array 40 while incrementing the write address counter 44.

プロセッサ33は、エンプティ信号ESがアサートされて
いないときにバスリクエスト信号BREQ1をアサートし、
この要求に対してバス権が認められると、制御信号AAを
ローレベルにし得るアドレス信号Aiを出力すると供に、
リード・ライト信号R/WをハイレベルにしてFiFoメモリ3
1に先出し形式によるど動作を指示する。これによりFiF
oメモリ31はリードアドレスカウンタ43をインクリメン
トしながら、メモセルアレイ40に格納されている受信デ
ータを順番に読み出していく。
The processor 33 asserts the bus request signal BREQ 1 when the empty signal ES is not asserted,
When the bus right is granted in response to this request, the address signal Ai that can set the control signal AA to low level is output, and
Set the read / write signal R / W to high level to set the FiFo memory 3
Instruct 1 to perform the operation based on the advance format. This allows the FiF
o The memory 31 sequentially reads the received data stored in the memo cell array 40 while incrementing the read address counter 43.

ここで、システム動作上のエラーなどにより、メモリ
セルアレイ40に格納された受信データの途中に不要なデ
ータが生じた場合にこれをクリアする動作は上記実施例
と同様であり、例えば第5図(A)に示されるようにリ
ードアドレスカウンタ43とライトアドレスカウンタ44が
ある値Ar,Awを指しているとき、メモリセルアレイ40の
アドレス空間における領域ED1,ED2のデータが不要にな
った場合に、プロセッサ33は、第5図(B)に示される
ようにリードアドレスカウンタ43の値をAr′に書き換
え、また、ライトアドレスカウンタ44の値をAw′に書き
換えてやる。このようにしてリードアドレスカウンタ43
及びライトアドレスカウンタ44の値が書き換えられる
と、その後シリアル入力回路34から与えられる受信デー
タDrxは、ライトアドレスカウンタ44によって示される
値Aw′のアドレスから順次書き込まれ、領域ED2に残っ
ている不要データは無視される。また、その後、メモリ
セルアレイ40に格納されている受信データをプロセッサ
33が先出し形式で読み込む場合には、リードアドレスカ
ウンタ43によって示される値Ar′のアドレスから順次読
み出され、領域ED1に残っているデータは無視される。
したがって、不要データを全て順番に読み出してリード
アドレスカウンタ43の値を更新してやらなくても、リー
ドアドレスカウンタ43やライトアドレスカウンタ44の値
をプロセッサ33が強制的に書き換える操作だけで不要デ
ータに対する実質的なクリア処理を簡単に行うことがで
きる。
Here, when unnecessary data is generated in the middle of the received data stored in the memory cell array 40 due to an error in the system operation or the like, the operation of clearing the unnecessary data is the same as that in the above-described embodiment. For example, FIG. As shown in A), when the read address counter 43 and the write address counter 44 point to certain values Ar and Aw, when the data in the areas ED1 and ED2 in the address space of the memory cell array 40 becomes unnecessary, the processor 33 rewrites the value of the read address counter 43 to Ar 'and rewrites the value of the write address counter 44 to Aw', as shown in FIG. 5 (B). Thus, the read address counter 43
When the value of the write address counter 44 is rewritten, the received data Drx subsequently given from the serial input circuit 34 is sequentially written from the address of the value Aw 'indicated by the write address counter 44, and unnecessary data remaining in the area ED2 is written. Is ignored. Thereafter, the received data stored in the memory cell array 40 is processed by the processor.
When the data 33 is read in advance, the data is sequentially read from the address of the value Ar 'indicated by the read address counter 43, and the data remaining in the area ED1 is ignored.
Therefore, even if it is not necessary to read all unnecessary data in order and update the value of the read address counter 43, only the operation of forcibly rewriting the values of the read address counter 43 and the write address counter 44 by the processor 33 can substantially reduce unnecessary data. Clear processing can be easily performed.

このクリア処理において、リードアドレスカウンタ43
及びライトアドレスカウンタ44の値を書き換えるとき、
そのアドレスカウンタ43,44の状態をプロセッサ33が知
る必要がある場合には、このプロセッサ33はリードアド
レスカウンタ43及びライトアドレスカウンタ44の値をリ
ードアクセスし、読み込んだ値Ar,Awに基づいて書き換
えるべき値Ar′,Aw′を算出する。
In this clear processing, the read address counter 43
And when rewriting the value of the write address counter 44,
When the processor 33 needs to know the states of the address counters 43 and 44, the processor 33 performs read access to the values of the read address counter 43 and the write address counter 44 and rewrites them based on the read values Ar and Aw. The power values Ar 'and Aw' are calculated.

次に、システム動作上FiFoメモリ31の途中に格納され
ているデータをチェックする必要が生じた場合には、プ
ロセッサ33はアドレス信号AiによってFiFoメモリ31をラ
ンダムアクセスして所要のデータを読み込む。このとき
のリード動作では制御信号φriはアサートされず、これ
によって、リードアドレスカウンタ43の値はそのまま維
持される。このランダムアクセスに際して、プロセッサ
33がFiFoメモリ31の物理的アドレス空間やアクセス対象
とする所要アドレスの基準となるアドレス情報を必要と
する場合、当該プロセツサ33はリードアドレスカウンタ
43やライトアドレスカウンタ44をリードアクセスしてそ
の値を読み込むことができる。
Next, when it is necessary to check data stored in the middle of the FiFo memory 31 due to system operation, the processor 33 randomly accesses the FiFo memory 31 by the address signal Ai and reads required data. In the read operation at this time, the control signal φri is not asserted, whereby the value of the read address counter 43 is maintained. At the time of this random access, the processor
If the 33 requires the physical address space of the FiFo memory 31 and the address information which is a reference of the required address to be accessed, the processor 33 is used as a read address counter.
It is possible to read-access the value 43 or the write address counter 44 and read the value.

本実施例のようにFiFoメモリ31を単独のメモリチップ
もしくはペレットとして構成する場合にも、実施例1で
説明したと同様に、データの読み出し書き込みの順番が
内蔵アドレスカウンタ43,44の値によって規定されてい
てもランダムアクセスが可能になると供に、FiFoメモリ
31におけるデータの実質的なクリア処理を簡単に行うこ
とができるようになり、そして、これらのことにより、
受信データに対するプロトコル処理をプロセッサ33が行
おうとするときには、FiFoメモリ31に受信したデータを
一旦全てローカルメモリなどに転送してからプロトコル
処理を行う必要はなく、これによってプロトコル処理の
効率化を図ることができる。
Even when the FiFo memory 31 is configured as a single memory chip or a pellet as in this embodiment, the order of reading and writing data is defined by the values of the built-in address counters 43 and 44, as described in the first embodiment. Even if it is possible, random access becomes possible, and FiFo memory
It becomes possible to easily perform the substantial clearing process of the data at 31, and by these things,
When the processor 33 attempts to perform protocol processing on received data, it is not necessary to transfer all the data received in the FiFo memory 31 to a local memory or the like and then perform the protocol processing, thereby improving the efficiency of the protocol processing. Can be.

以上本発明者によってなされた発明を実施例に基づい
て具体的に説明したが、本発明はそれに限定されるもの
ではなく、その要旨を逸脱しない範囲において種々変更
することができる。
Although the invention made by the present inventors has been specifically described based on the embodiments, the present invention is not limited thereto, and can be variously modified without departing from the gist thereof.

上記実施れではFiFoメモリをアクセスする機能モジュ
ールを、中央処理装置、プロセッサ、シリアル入力回路
として説明したが、本発明はそれに限定されず、ダイレ
クトメモリアクセスコントローラやパラレル入力回路な
どを含めるようにしてもよい。また、FiFoメモリの動作
モードを決定するための制御信号は上記実施例で説明し
た制御信号AA,CAに限定されず、適宜変更することもで
きるし、その生成の仕方も各種変更することができる。
また、FiFoメモリにおけるクリア処理も第5図に基づい
て説明した内容に限定されず、例えば第5図(A)の領
域ED1だけに不要データがある場合にはリードアドレス
カウンタの値だけを書き換えてやればよい。同様に第5
図(A)の領域ED2だけに不要データがある場合にはラ
イトアドレスカウンタの値だけを書き換えてやればよ
い。
In the above embodiment, the functional module for accessing the FiFo memory has been described as a central processing unit, a processor, and a serial input circuit, but the present invention is not limited thereto, and may include a direct memory access controller, a parallel input circuit, and the like. Good. In addition, the control signal for determining the operation mode of the FiFo memory is not limited to the control signals AA and CA described in the above embodiment, and can be appropriately changed, and the generation method thereof can be variously changed. .
Further, the clearing process in the FiFo memory is not limited to the content described with reference to FIG. 5; for example, when there is unnecessary data only in the area ED1 in FIG. 5A, only the value of the read address counter is rewritten. You can do it. Similarly the fifth
If there is unnecessary data only in the area ED2 in FIG. 7A, only the value of the write address counter needs to be rewritten.

以上の説明では主として本発明者によってなされた発
明をその背景となった利用分野である受信データのバッ
ファメモリとされるFiFoメモリに適用した場合について
説明したが、本発明はそれに限定されず、送信データの
バッファメモリや、各種入出力回路とホスト側もしくは
システム側とのインタフェース回路、さらにはFiLoメモ
リなどにも広く適用することができる。本発明は、少な
くともデータの読み出し書き込みの順番を規定するアド
レスカウンタを内蔵する条件のものに適用することがで
きる。
In the above description, mainly the case where the invention made by the present inventor is applied to a FiFo memory which is a buffer memory for received data, which is a field of application as the background, but the present invention is not limited thereto, and the present invention is not limited thereto. The present invention can be widely applied to a buffer memory for data, an interface circuit between various input / output circuits and a host side or a system side, and a FiLo memory. The present invention can be applied to at least a condition that incorporates an address counter that defines the order of reading and writing data.

〔発明の効果〕〔The invention's effect〕

本願において開示される発明のうち代表的なものによ
って得られる効果を簡単に説明すれば下記の通りであ
る。
The effects obtained by the representative inventions among the inventions disclosed in the present application will be briefly described as follows.

すなわち、アドレスカウンタの出力アドレス信号と外
部から供給されるアドレス信号とを選択可能にし、外部
アドレス信号をアクセスアドレス信号として採用すると
きアドレスカウンタの更新動作を抑止させるから、デー
タの読み出し又は/及び書き込みの順番が内蔵アドレス
カウンタによって規定されていても、内蔵アドレスカウ
ンタが指すアドレスをそのまま維持しながらそのアドレ
ス以外の任意アドレスをランダムアクセスすることがで
きるという効果がある。
That is, the output address signal of the address counter and the address signal supplied from the outside can be selected, and the update operation of the address counter is suppressed when the external address signal is used as the access address signal. Even if the order is specified by the built-in address counter, it is possible to randomly access any address other than the address indicated by the built-in address counter while maintaining the address indicated by the built-in address counter.

また、データの読み出し又は/及び書き込みの順番を
規定する内蔵アドレスカウンタの値を外部から書き換え
可能とすることにより、格納データの途中に不要なデー
タが生じたような場合に、アドレスカウンタを外部から
強制的に書き換えることにより、データの実質的なクリ
アを簡単に行うことができるという効果がある。
In addition, by making the value of the built-in address counter that defines the order of reading and / or writing of data externally rewritable, when unnecessary data is generated in the middle of stored data, the address counter can be externally written. Forcibly rewriting has an effect that data can be substantially cleared easily.

アドレスカウンタの値が外部から読み出し可能とされ
ることにより、ランダムアクセスや不要データのクリア
処理に際して半導体記憶装置の物理的アドレス空間やア
クセス対象とする所要アドレスの基準となるアドレス情
報などが外部で必要とされる場合に、アドレスカウンタ
の値を読み出すことによってそのような要請に容易に答
えることができる。
Since the value of the address counter can be read from the outside, the physical address space of the semiconductor memory device and the address information serving as the reference of the required address to be accessed are required externally when random access or unnecessary data is cleared. In such a case, such a request can be easily answered by reading the value of the address counter.

データの読み出し又は/及び書き込みの順番が内蔵ア
ドレスカウンタの値によって規定される半導体記憶装置
にランダムアクセス機能とクリア機能が付加されること
により、そのような半導体記憶装置を単なるデータバッ
ファだけでなくプロトコル処理などのデータ処理のため
のデータの一時記憶領域としても利用可能になり、これ
によって、データバッファから一時記憶領域へデータを
転送する動作が省略可能になると供に、専用のデータ一
時記憶領域が不要になり、データ処理システムの簡素化
さらにはデータ処理の高速化に寄与することができると
いう効果がある。
A random access function and a clear function are added to a semiconductor memory device in which the order of data reading and / or writing is defined by the value of a built-in address counter, so that such a semiconductor memory device can be used not only as a data buffer but also as a protocol. It can also be used as a temporary storage area of data for data processing such as processing, so that the operation of transferring data from the data buffer to the temporary storage area can be omitted, and a dedicated data temporary storage area can be used. This eliminates the necessity, and contributes to simplifying the data processing system and speeding up data processing.

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

第1図は本発明の一実施例であるFiFoメモリのブロック
図、 第2図は第1図に示されるFiFoメモリを同一半導体基板
に形成して成るプロセッサの要部を示すブロック図、 第3図は本発明の他の実施例である単独チップで成るFi
Foメモリのブロック図、第4図は第3図に示されるFiFo
メモリを含むボード上のシステム構成例を示すブロック
図、 第5図(A),(B)はFiFoメモリにおけるクリア処理
の一例を示す説明図である。 1……FiFoメモリ、2……プロセッサ、3……中央処理
装置、4……シリアル入力回路、5……デコーダ、10…
…メモリセルアレイ、11……アドレスデコーダ、12……
読み出し書き込み回路、13……リードアドレスカウン
タ、14……ライトアドレスカウンタ、15……アドレス入
力バッファ、16……セレクタ、17……コントローラ、18
……比較判定回路、20……データ入出力バッファ、21…
…データ入力バッファ、31……FiFoメモリ、32……バス
アービタ、33……プロセッサ、34……シリアル入力回
路、35……デコーダ、40……メモリセルアレイ、41……
アドレスデコーダ、42……読み出し書き込み回路、43…
…リードアドレスカウンタ、44……ライトアドレスカウ
ンタ、45……アドレス入力バッファ、46……セレクタ、
47……コントローラ、48……比較判定回路、50……デー
タ入出力バッファ。
FIG. 1 is a block diagram of a FiFo memory according to one embodiment of the present invention, FIG. 2 is a block diagram showing a main part of a processor formed by forming the FiFo memory shown in FIG. 1 on the same semiconductor substrate, The figure shows a single chip Fi which is another embodiment of the present invention.
Block diagram of Fo memory, Fig. 4 is FiFo shown in Fig. 3.
FIGS. 5A and 5B are block diagrams showing an example of a system configuration on a board including a memory, and FIGS. 5A and 5B are diagrams showing an example of a clearing process in a FiFo memory. 1 ... FiFo memory, 2 ... processor, 3 ... central processing unit, 4 ... serial input circuit, 5 ... decoder, 10 ...
... Memory cell array, 11 ... Address decoder, 12 ...
Read / write circuit, 13: Read address counter, 14: Write address counter, 15: Address input buffer, 16: Selector, 17: Controller, 18
…… Comparison circuit, 20… Data input / output buffer, 21…
... Data input buffer, 31 ... FiFo memory, 32 ... Bus arbiter, 33 ... Processor, 34 ... Serial input circuit, 35 ... Decoder, 40 ... Memory cell array, 41 ...
Address decoder, 42 ... Read / write circuit, 43 ...
... Read address counter, 44 ... Write address counter, 45 ... Address input buffer, 46 ... Selector,
47: Controller, 48: Comparison judgment circuit, 50: Data input / output buffer.

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.6,DB名) G11C 7/00 G11C 11/34 G11C 8/00 G11C 29/00──────────────────────────────────────────────────続 き Continued on the front page (58) Fields surveyed (Int. Cl. 6 , DB name) G11C 7/00 G11C 11/34 G11C 8/00 G11C 29/00

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】FiFo形式でアクセスアドレスを更新するア
ドレスカウンタと、アドレスカウンタの出力アドレス信
号と外部から供給されるアドレス信号とを選択する選択
手段と、選択手段で選択されたアドレス信号に基づいて
アドレシングされる複数個のメモリセルがマトリクス配
置されたメモリセルアレイと、アドレシングされたメモ
リセルに対して読み出し動作及び書込み動作を行なう読
み出し書き込み回路と、制御手段とを備え、上記制御手
段は、上記アドレスカウンタの出力アドレス信号を用い
てメモリセルをアクセスするFiFoアクセス動作の外部か
らの指示に応答して上記選択手段に上記アドレスカウン
タから供給されるアドレス信号を選択させてメモリセル
アレイを動作可能にすると共にFiFo形式によるアドレス
カウンタの更新を許容し、外部から供給されるアドレス
信号を用いてメモリセルをアクセスするランダムアクセ
ス動作の外部からの指示に応答して上記選択手段に上記
外部から供給されるアドレス信号を選択させてメモリセ
ルアレイをアクセス可能にすると共に前記アドレスカウ
ンタの更新を抑止し、更に、上記ランダムアクセス動作
の次にFiFoアクセス動作が指示されたときは上記更新が
抑止されたアドレスカウンタの値から継続してメモリセ
ルアレイをアクセス可能にするものである半導体記憶装
置。
An address counter for updating an access address in a FiFo format, selection means for selecting an output address signal of an address counter and an address signal supplied from outside, and an address counter based on the address signal selected by the selection means. A memory cell array in which a plurality of addressed memory cells are arranged in a matrix; a read / write circuit for performing a read operation and a write operation on the addressed memory cells; and control means; In response to an external instruction of a FiFo access operation for accessing a memory cell using the output address signal of the counter, the selecting means selects the address signal supplied from the address counter to enable the memory cell array and Allows updating of address counter in FiFo format Responding to an external instruction of a random access operation for accessing a memory cell using an externally supplied address signal, causing the selecting means to select the externally supplied address signal to enable access to the memory cell array. In addition, the updating of the address counter is suppressed, and further, when the FiFo access operation is instructed after the random access operation, the memory cell array can be continuously accessed from the value of the address counter in which the updating is suppressed. Semiconductor memory device.
【請求項2】上記アドレスカウンタは、外部データ入出
力端子を介してその計数値が読み出し可能にされ、上記
制御手段は更に、上記アドレスカウンタに対する読み出
し動作と上記メモリセルに対する読み出し動作とを切換
え制御するものである請求項1記載の半導体記憶装置。
2. The address counter according to claim 1, wherein a count value of the address counter is made readable via an external data input / output terminal. The control means further controls switching between a read operation on the address counter and a read operation on the memory cell. 2. The semiconductor memory device according to claim 1, wherein
【請求項3】上記アドレスカウンタは、外部データ入出
力端子を介して書き込み可能にされ、上記制御手段は更
に、上記アドレスカウンタに対する書き込み動作と上記
メモリセルに対する読み出し動作とを切換え制御するも
のである請求項1又は2記載の半導体記憶装置。
3. The address counter is made writable via an external data input / output terminal, and the control means further controls switching between a write operation on the address counter and a read operation on the memory cell. The semiconductor memory device according to claim 1.
【請求項4】上記アドレスカウンタは、データ読み出し
動作のためのアドレスを計数動作によって更新するリー
ドアドレスカウンタと、データ書き込み動作のためのア
ドレスを計数動作によって更新するライトアドレスカウ
ンタとを含む請求項1乃至3の何れか1項記載の半導体
記憶装置。
4. The address counter according to claim 1, further comprising: a read address counter for updating an address for a data read operation by a count operation; and a write address counter for updating an address for a data write operation by a count operation. 4. The semiconductor memory device according to claim 3, wherein:
JP63224931A 1988-09-08 1988-09-08 Semiconductor storage device Expired - Fee Related JP2818418B2 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP63224931A JP2818418B2 (en) 1988-09-08 1988-09-08 Semiconductor storage device
KR1019890012110A KR0168832B1 (en) 1988-09-08 1989-08-25 Semiconductor memory device
US07/794,824 US5255238A (en) 1988-09-08 1991-11-18 First-in first-out semiconductor memory device
US08/115,876 US5426612A (en) 1988-09-08 1993-09-01 First-in first-out semiconductor memory device
KR1019940020631A KR0182778B1 (en) 1988-09-08 1994-08-22 First-in first-out semiconductor memory device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63224931A JP2818418B2 (en) 1988-09-08 1988-09-08 Semiconductor storage device

Publications (2)

Publication Number Publication Date
JPH0273591A JPH0273591A (en) 1990-03-13
JP2818418B2 true JP2818418B2 (en) 1998-10-30

Family

ID=16821422

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63224931A Expired - Fee Related JP2818418B2 (en) 1988-09-08 1988-09-08 Semiconductor storage device

Country Status (1)

Country Link
JP (1) JP2818418B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0474380A (en) * 1990-07-13 1992-03-09 Nec Ic Microcomput Syst Ltd Semiconductor integrated circuit
JP3028932B2 (en) * 1996-09-27 2000-04-04 日本電気株式会社 I / O buffer memory circuit
US11183228B2 (en) 2017-09-15 2021-11-23 Tohoku University Memory circuit device including a selection circuit unit shared by a write circuit unit and a read circut unit

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5698792A (en) * 1980-01-09 1981-08-08 Nec Corp Serial memory device
JPS6182588A (en) * 1984-09-29 1986-04-26 Toshiba Corp Semiconductor memory device
JPS61208692A (en) * 1985-03-13 1986-09-17 Yokogawa Electric Corp First write first read memory device
JPS63191078A (en) * 1987-02-03 1988-08-08 Hitachi Ltd Lsi testing apparatus

Also Published As

Publication number Publication date
JPH0273591A (en) 1990-03-13

Similar Documents

Publication Publication Date Title
US7171526B2 (en) Memory controller useable in a data processing system
US6341318B1 (en) DMA data streaming
US6047339A (en) Buffering data that flows between buses operating at different frequencies
US6044416A (en) Configurable first-in first-out memory interface
US6678814B2 (en) Method and apparatus for allocating data usages within an embedded dynamic random access memory device
US6272583B1 (en) Microprocessor having built-in DRAM and internal data transfer paths wider and faster than independent external transfer paths
JP2000047974A (en) Bus arbitrating method of bus controller, bus controller, and system of electronic equipment
EP1313019A1 (en) Arbitration apparatus
JP2818418B2 (en) Semiconductor storage device
US6898659B2 (en) Interface device having variable data transfer mode and operation method thereof
US7386645B2 (en) System on a chip with an arbitration unit to grant right of access to a common resource in response to conflicting requests for access from initiator modules, and storage key incorporating the arbitration unit
US5895496A (en) System for an method of efficiently controlling memory accesses in a multiprocessor computer system
US7206904B2 (en) Method and system for buffering multiple requests from multiple devices to a memory
US5717931A (en) Method and apparatus for communicating between master and slave electronic devices where the slave device may be hazardous
JP3629056B2 (en) Memory chip expansion control method and apparatus for random access memory
USRE38514E1 (en) System for and method of efficiently controlling memory accesses in a multiprocessor computer system
JP3618249B2 (en) Data transfer device
US20040034748A1 (en) Memory device containing arbiter performing arbitration for bus access right
US20230111351A1 (en) Topology of accelerators
JP2710580B2 (en) Cache memory device
JP2000347929A (en) Memory ic
JP3096382B2 (en) DMA circuit
KR0168832B1 (en) Semiconductor memory device
JPH0713910A (en) Adaptor for transfer of data block of variable size to other adapetors via system bus
JP2570271B2 (en) Semiconductor memory controller

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees