[go: up one dir, main page]

JPH0950398A - Memory device - Google Patents

Memory device

Info

Publication number
JPH0950398A
JPH0950398A JP20446095A JP20446095A JPH0950398A JP H0950398 A JPH0950398 A JP H0950398A JP 20446095 A JP20446095 A JP 20446095A JP 20446095 A JP20446095 A JP 20446095A JP H0950398 A JPH0950398 A JP H0950398A
Authority
JP
Japan
Prior art keywords
signal
read
write
address
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP20446095A
Other languages
Japanese (ja)
Inventor
Tetsuo Kawada
哲郎 河田
Norihiko Kuroishi
範彦 黒石
Kenichi Kawachi
賢一 河内
Nobuaki Miyagawa
宣明 宮川
Reiji Aihara
玲二 相原
Mitsumasa Koyanagi
光正 小柳
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP20446095A priority Critical patent/JPH0950398A/en
Publication of JPH0950398A publication Critical patent/JPH0950398A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a memory device on which plural pieces of data are written in parallel independently of locations and by which the consistency of data with time, when readout is performed, is maintained. SOLUTION: Write to memory circuits 3, 4 is performed by using write address signals 7, 8, write data signals 10, 11 and write signals 16, 17 in parallel. At this time, information in the memory circuit on which the final write is performed is stored in a control circuit 5. When the readout is performed, a readout address signal 9 and a readout signal 15 are inputted to both memory circuits 3, 4, and readout data signals 12, 13 are outputted, respectively. The information stored in the control circuit 5 corresponding to an address represented by the readout address signal 9 is outputted as a selection signal 18, and a selection circuit 6 selects and outputs data written finally out of two pieces of readout data according to the signal 18.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、複数の書き込みポ
ートを持つ記憶装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a storage device having a plurality of write ports.

【0002】[0002]

【従来の技術】通常、LSIメモリ等の記憶装置には、
1組の入出力兼用のデータ線、あるいは入力専用及び出
力専用の2組のデータ線が用意されている。そして、あ
る1つの周期を要するサイクルでは、書き込みあるいは
読み出しのうち、1つの動作しかできないような構成に
なっている。このような記憶装置を用いた場合、2つの
異なるロケーション、またはアドレス空間に対して、同
時に書き込みを行なうことは不可能である。もし、2つ
のデータを異なるロケーションに同時に書き込みたい場
合には、複数サイクルに分けて時分割で処理を行なわな
ければならないという大きな制約がある。そのため、処
理性能が悪くなるという問題が発生していた。
2. Description of the Related Art Generally, a storage device such as an LSI memory is
One set of input / output data lines or two sets of input-only and output-only data lines are prepared. Then, in a cycle that requires a certain period, only one operation of writing or reading can be performed. With such a storage device, it is not possible to write to two different locations or address spaces at the same time. If two pieces of data are to be simultaneously written in different locations, there is a large restriction that the processing must be divided into a plurality of cycles and performed in time division. Therefore, there has been a problem that the processing performance is deteriorated.

【0003】このようなメモリに対する書き込みの処理
性能を改善するために、例えば、インターリーブ法やメ
モリを複数のバンク構成にするなどの手法が用いられて
きた。しかし、これらはメモリのロケーションごとにそ
の使用法が予め決められているという制約があるので、
根本的な解決策にはならない。例えば、特公昭61−3
5625号公報には、複数のメモリブロックを備え、同
時にランダムにアクセスできる多重動作メモリ方式につ
いての記述が見られる。
In order to improve the processing performance of writing to such a memory, for example, an interleave method or a method of forming the memory into a plurality of banks has been used. However, these have the constraint that their usage is predetermined for each memory location, so
It is not a fundamental solution. For example, Japanese Patent Publication 61-3
In Japanese Patent No. 5625, there is a description of a multiple operation memory system which has a plurality of memory blocks and can be accessed randomly at the same time.

【0004】図6は、従来の記憶装置の一例を示すブロ
ック図である。図中、91−1〜91−Nはメモリブロ
ック、92−1〜92−Nは制御ブロック、93−1〜
93−Nは選択回路である。複数のメモリブロック91
−1〜91−Nは、複数の制御ブロック92−1〜92
−Nで制御され、それぞれのメモリブロックの出力が選
択回路93−1〜93−Nで選択され、出力される。そ
のため、並列動作が可能である。しかし、各メモリブロ
ック91−1はそれぞれ別のロケーションを有してお
り、与えるアドレスのうちの上位アドレスによってアク
セスされるメモリブロックを切り替えている。そのた
め、同一のメモリブロックに対してのアクセスを行なえ
ないという制約があり、完全な並行動作はできなかっ
た。
FIG. 6 is a block diagram showing an example of a conventional storage device. In the figure, 91-1 to 91-N are memory blocks, 92-1 to 92-N are control blocks, 93-1 to
93-N is a selection circuit. Multiple memory blocks 91
-1 to 91-N include a plurality of control blocks 92-1 to 92-
Controlled by -N, the output of each memory block is selected by the selection circuits 93-1 to 93-N and output. Therefore, parallel operation is possible. However, each memory block 91-1 has a different location, and switches the memory block to be accessed by the upper address of the given addresses. Therefore, there is a restriction that access to the same memory block cannot be performed, and perfect parallel operation cannot be performed.

【0005】[0005]

【発明が解決しようとする課題】本発明は、上述した事
情に鑑みてなされたもので、ロケーションとは独立して
複数の書き込みデータを完全に並列に書き込むことがで
き、しかも読み出し時において、最後に書き込まれたデ
ータが読み出されるというデータの経時的な統一性が保
たれた記憶装置を提供することを目的とするものであ
る。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned circumstances, and it is possible to write a plurality of write data completely in parallel independently of the location, and at the time of reading, the last It is an object of the present invention to provide a storage device in which the uniformity of data over time, that is, the data written in is read out, is maintained.

【0006】[0006]

【課題を解決するための手段】請求項1に記載の発明
は、書き込みポートを複数個有した記憶装置において、
同一のアドレス構造を有する複数の従記憶手段と、該複
数の従記憶手段の記憶単位ごとに最後に書き込まれたデ
ータがどの従記憶手段に存在するかを特定する情報を記
憶する制御手段と、前記複数の従記憶手段から与えられ
たアドレスに対応して読み出された情報を前記制御手段
に記憶されている情報に基づいて選択する選択手段を備
えていることを特徴とするものである。
According to a first aspect of the present invention, in a storage device having a plurality of write ports,
A plurality of slave storage means having the same address structure, and a control means for storing information specifying in which slave storage means the data last written for each storage unit of the plurality of slave storage means is stored, The present invention is characterized by comprising selection means for selecting information read out corresponding to an address given from the plurality of secondary storage means based on the information stored in the control means.

【0007】請求項2に記載の発明は、請求項1に記載
の記憶装置において、前記従記憶手段は、1つの書き込
み回路とn(n≧1)個の読み出し回路を有し、書き込
みポートの個数だけの前記従記憶手段、および、n個の
選択手段を備えていることを特徴とするものである。
According to a second aspect of the invention, in the memory device according to the first aspect, the slave memory means has one write circuit and n (n ≧ 1) read circuits, It is characterized in that it is provided with only the above-mentioned number of secondary storage means and n selection means.

【0008】請求項3に記載の発明は、記憶装置におい
て、請求項2に記載の記憶装置を複数備え、各記憶装置
の対応する各書き込みポートを共通に接続したことを特
徴とするものである。
According to a third aspect of the present invention, in a storage device, a plurality of storage devices according to the second aspect are provided, and corresponding write ports of the storage devices are commonly connected. .

【0009】[0009]

【作用】請求項1に記載の発明によれば、複数の従記憶
手段は同一のアドレス構造を有しているので、ロケーシ
ョンに関係なく、複数の書き込みポートからそれぞれ独
立に並列して書き込みを行なうことができる。このと
き、書き込みの行なわれた記憶単位については、複数の
従記憶手段のうち、実際にデータが書き込まれた従記憶
手段のみが、正当なデータを保持していることになる。
他の従記憶手段では、書き込みによって消滅しなかった
過去のデータが残っているだけである。そのため、読み
出しの場合には、正当なデータを保持している従記憶手
段から読み出しを行なう必要がある。制御手段は、複数
の従記憶手段の記憶単位ごとに、最後に書き込まれたデ
ータがどの従記憶手段に存在するかを特定する情報を記
憶している。そして、記憶している情報に基づいて選択
手段を制御し、その記憶単位に最後に実際にデータの書
き込みが行なわれた従記憶手段から読み出されたデータ
を選択して出力する。これによって、読み出されたデー
タの経時的な統一性も保つことができる。
According to the first aspect of the present invention, since the plurality of slave storage means have the same address structure, writing is independently performed in parallel from the plurality of write ports regardless of location. be able to. At this time, with respect to the storage unit in which the writing is performed, only the sub-storage unit in which the data is actually written holds the valid data among the plurality of sub-storage units.
In the other secondary storage means, only past data that has not been erased by writing remains. Therefore, in the case of reading, it is necessary to read from the secondary storage unit that holds valid data. The control unit stores, for each storage unit of the plurality of secondary storage units, information that identifies in which secondary storage unit the last written data exists. Then, the selection means is controlled based on the stored information, and the data read out from the slave storage means in which the data is finally written in the storage unit is selected and output. This makes it possible to maintain the uniformity of the read data over time.

【0010】また、請求項2に記載の発明のように、従
記憶手段として1つの書き込み回路とn(n≧1)個の
読み出し回路を有するものを、書き込みポートの個数だ
け用い、n個の選択手段を設けることによって、従記憶
手段の個数だけの書き込みポートとn個の読み出しポー
トを有する記憶装置を構成することができる。
According to a second aspect of the present invention, a sub memory unit having one write circuit and n (n ≧ 1) read circuits is used by the number of write ports. By providing the selecting means, it is possible to configure a memory device having as many write ports and n read ports as the slave memory means.

【0011】さらに、請求項3に記載の発明のように、
請求項2に記載の記憶装置を複数備え、各記憶装置の対
応する各書き込みポートを共通に接続することにより、
全体として読み出しポートの数を増加させることが可能
である。
Further, as in the invention described in claim 3,
A plurality of storage devices according to claim 2 are provided, and the respective corresponding write ports of the storage devices are commonly connected,
It is possible to increase the number of read ports as a whole.

【0012】[0012]

【発明の実施の形態】図1は、本発明の記憶装置の第1
の実施の形態を示すブロック図である。図中、1は第1
の選択回路、2は第2の選択回路、3は第1のメモリ回
路、4は第2のメモリ回路、5は制御回路、6は第3の
選択回路、7は第1の書き込みアドレス信号、8は第2
の書き込みアドレス信号、9は読み出しアドレス信号、
10は第1の書き込みデータ信号、11は第2の書き込
みデータ信号、12は第1の読み出しデータ信号、13
は第2の読み出しデータ信号、14は出力信号、15は
読み出し信号、16は第1の書き込み信号、17は第2
の書き込み信号、18は選択信号である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 shows a first storage device according to the present invention.
It is a block diagram showing an embodiment. In the figure, 1 is the first
Selection circuit, 2 is a second selection circuit, 3 is a first memory circuit, 4 is a second memory circuit, 5 is a control circuit, 6 is a third selection circuit, 7 is a first write address signal, 8 is the second
Write address signal, 9 is a read address signal,
10 is a first write data signal, 11 is a second write data signal, 12 is a first read data signal, 13
Is a second read data signal, 14 is an output signal, 15 is a read signal, 16 is a first write signal, and 17 is a second
Is a write signal, and 18 is a selection signal.

【0013】第1の選択回路1には、第1の書き込みア
ドレス信号7および読み出しアドレス信号9が入力され
ており、読み出し信号15によってどちらかを選択して
第1のメモリ回路3のアドレスとして出力する。すなわ
ち、読み出し信号15が入力されているときには、読み
出しアドレス信号9を選択して第1のメモリ回路3のア
ドレスとして出力する。また、読み出し信号15が入力
されていないときには、第1の書き込みアドレス信号7
を選択して第1のメモリ回路3のアドレスとして出力す
る。
A first write address signal 7 and a read address signal 9 are input to the first selection circuit 1, and either one is selected by a read signal 15 and output as an address of the first memory circuit 3. To do. That is, when the read signal 15 is input, the read address signal 9 is selected and output as the address of the first memory circuit 3. When the read signal 15 is not input, the first write address signal 7
Is output as the address of the first memory circuit 3.

【0014】第2の選択回路2には、第2の書き込みア
ドレス信号8および読み出しアドレス信号9が入力され
ており、読み出し信号15によってどちらかを選択して
第2のメモリ回路4のアドレスとして出力する。すなわ
ち、読み出し信号15が入力されているときには、読み
出しアドレス信号9を選択して第2のメモリ回路4のア
ドレスとして出力する。また、読み出し信号15が入力
されていないときには、第2の書き込みアドレス信号8
を選択して第2のメモリ回路4のアドレスとして出力す
る。
A second write address signal 8 and a read address signal 9 are input to the second selection circuit 2, and either one is selected by a read signal 15 and output as an address of the second memory circuit 4. To do. That is, when the read signal 15 is input, the read address signal 9 is selected and output as the address of the second memory circuit 4. When the read signal 15 is not input, the second write address signal 8
Is output as the address of the second memory circuit 4.

【0015】メモリ回路3およびメモリ回路4は、同じ
アドレス構造を有する同一の記憶装置である。メモリ回
路3は、第1の書き込み信号16が入力されると、第1
の選択回路1から受け取ったアドレスに第1の書き込み
データ信号10のデータを書き込む。また、読み出し信
号15が入力されると、第1の選択回路1から受け取っ
たアドレスに書き込まれているデータを読み出して、第
1の読み出しデータ信号12として出力する。メモリ回
路4は、第2の書き込み信号17が入力されると、第2
の選択回路2から受け取ったアドレスに第2の書き込み
データ信号11のデータを書き込む。また、読み出し信
号15が入力されると、第2の選択回路2から受け取っ
たアドレスに書き込まれているデータを読み出して、第
2の読み出しデータ信号13として出力する。
The memory circuit 3 and the memory circuit 4 are the same memory device having the same address structure. The memory circuit 3 receives the first write signal 16 and receives the first write signal 16.
The data of the first write data signal 10 is written to the address received from the selection circuit 1 of FIG. When the read signal 15 is input, the data written at the address received from the first selection circuit 1 is read and output as the first read data signal 12. When the second write signal 17 is input, the memory circuit 4 receives the second write signal 17.
The data of the second write data signal 11 is written to the address received from the selection circuit 2 of FIG. When the read signal 15 is input, the data written at the address received from the second selection circuit 2 is read and output as the second read data signal 13.

【0016】制御回路5は、アドレスごとに最後に書き
込みの行なわれたメモリ回路を記憶している。第1の書
き込み信号16が入力されているとき、第1の書き込み
アドレス信号7が示すアドレスのデータは、第1のメモ
リ回路に保持されている旨を記憶する。また、第2の書
き込み信号17が入力されているとき、第2の書き込み
アドレス信号8が示すアドレスのデータは、第2のメモ
リ回路に保持されている旨を記憶する。そして、読み出
しアドレス信号9が入力されると、記憶している情報に
従って、そのアドレスのデータがどちらのアドレス回路
に保持されているかを示す選択信号18を第3の選択回
路6に出力する。
The control circuit 5 stores the last-written memory circuit for each address. When the first write signal 16 is input, it is stored that the data of the address indicated by the first write address signal 7 is held in the first memory circuit. Further, when the second write signal 17 is input, it is stored that the data of the address indicated by the second write address signal 8 is held in the second memory circuit. Then, when the read address signal 9 is input, a selection signal 18 indicating which address circuit holds the data of the address is output to the third selection circuit 6 according to the stored information.

【0017】第3の選択回路6は、制御回路5からの選
択信号18に応じて、第1のメモリ回路3から出力され
る第1の読み出しデータ信号12と、第2のメモリ回路
4から出力される第2の読み出しデータ信号13のいず
れかを選択し、出力信号14として出力する。
The third selection circuit 6 outputs the first read data signal 12 output from the first memory circuit 3 and the second memory circuit 4 in response to the selection signal 18 from the control circuit 5. The selected second read data signal 13 is selected and output as the output signal 14.

【0018】次に、本発明の記憶装置の第1の実施の形
態における動作の一例を説明する。まず、第1のメモリ
回路3に対する書き込みは、第1の書き込みアドレス信
号7、第1の書き込みデータ信号10、第1の書き込み
信号16を与えることによって行なうことができる。こ
の際、第1の選択回路1に対する選択信号となる読み出
し信号15は、インアクティブであるので、第1の書き
込みアドレス信号7が選択される。
Next, an example of operation in the first embodiment of the storage device of the present invention will be described. First, writing to the first memory circuit 3 can be performed by applying the first write address signal 7, the first write data signal 10, and the first write signal 16. At this time, since the read signal 15 which is a selection signal for the first selection circuit 1 is inactive, the first write address signal 7 is selected.

【0019】同様に、第2のメモリ回路4に対する書き
込みは、第2の書き込みアドレス信号8、第2の書き込
みデータ信号11、第2の書き込み信号17を与えるこ
とによって行なうことができる。この際、第2の選択回
路2に対する選択信号となる読み出し信号15は、イン
アクティブであるので、それぞれ第1の書き込みアドレ
ス信号7及び第2の書き込みアドレス信号8が選択され
る。
Similarly, writing to the second memory circuit 4 can be performed by applying the second write address signal 8, the second write data signal 11, and the second write signal 17. At this time, since the read signal 15 which is a selection signal for the second selection circuit 2 is inactive, the first write address signal 7 and the second write address signal 8 are respectively selected.

【0020】このように、データの書き込み時には、第
1のメモリ回路3および第2のメモリ回路4にそれぞれ
独立してアドレス、データ、書き込み信号を与えること
ができるので、書き込み動作を並列に行なうことができ
る。
As described above, when writing data, the first memory circuit 3 and the second memory circuit 4 can be independently supplied with an address, data, and a write signal. Therefore, the write operation is performed in parallel. You can

【0021】第1のメモリ回路3と第2のメモリ回路4
とは、同じアドレス構造を有している。そのため、上述
のような並列の書き込みを行なうと、同じアドレスであ
っても、第1のメモリ回路3と第2のメモリ回路4の内
容は相違してしまう。しかし、一般的には、同じアドレ
スには唯一のデータが保持されていることが前提であ
り、そのようにソフトウェアも組まれている。このよう
なデータの統一性を保つためには、あるアドレスについ
て書き込みが行なわれた場合、その書き込みによって更
新されたデータがそのアドレスのデータとなっている必
要がある。本発明では、アドレスごとに、最後に書き込
みの行なわれたメモリ回路を保持しておくことによっ
て、各アドレスのデータがどのメモリ回路に記憶されて
いるかを識別することを可能としている。
First memory circuit 3 and second memory circuit 4
And have the same address structure. Therefore, when the parallel writing as described above is performed, the contents of the first memory circuit 3 and the second memory circuit 4 are different even at the same address. However, it is generally assumed that only the same data is held at the same address, and the software is built in such a way. In order to maintain such data uniformity, when writing is performed for a certain address, the data updated by the writing needs to be the data of that address. According to the present invention, by holding the last written memory circuit for each address, it is possible to identify in which memory circuit the data of each address is stored.

【0022】このようなメモリ回路の識別に用いる情報
は、制御回路5に記憶される。制御回路5には、第1の
書き込みアドレス信号7、第2の書き込みアドレス信号
8、第1の書き込み信号16、第2の書き込み信号17
が制御回路5にも入力されている。そして、第1のメモ
リ回路3への書き込み時には、第1の書き込みアドレス
信号7が示すアドレスについては第1のメモリ回路3に
データが格納されたことを、また、第2のメモリ回路4
への書き込み時には、第2の書き込みアドレス信号8が
示すアドレスについては第2のメモリ回路4にデータが
格納されたことを示す情報が、制御回路5内に保持され
る。
Information used for identifying such a memory circuit is stored in the control circuit 5. The control circuit 5 includes a first write address signal 7, a second write address signal 8, a first write signal 16 and a second write signal 17.
Is also input to the control circuit 5. Then, at the time of writing to the first memory circuit 3, the fact that the data is stored in the first memory circuit 3 at the address indicated by the first write address signal 7
At the time of writing to, the control circuit 5 holds information indicating that data has been stored in the second memory circuit 4 for the address indicated by the second write address signal 8.

【0023】また、読み出し時には以下のような動作が
行なわれる。読み出しアドレス信号9、読み出し信号1
5が第1のメモリ回路3及び第2のメモリ回路4の双方
に入力され、それぞれ第1の読み出しデータ信号12及
び第2の読み出しデータ信号13としてデータが読み出
される。この際、第1の選択回路1及び第2の選択回路
2に対する選択信号となる読み出し信号15は、アクテ
ィブであるので、それぞれ読み出しアドレス信号9が選
択される。第1の読み出しデータ信号12及び第2の読
み出しデータ信号13は、選択回路6に入力される。一
方、読み出しアドレス信号9は制御回路5にも入力され
る。上述のように、制御回路5には、アドレスごとに、
データがどのメモリ回路に記憶されているかを示す情報
が記憶されている。制御回路5は読み出しアドレス信号
9が示すアドレスに対応して記憶している情報に従い、
選択信号18を選択回路6に送出する。選択回路6は、
選択信号18により、第1の読み出しデータ信号12ま
たは第2の読み出しデータ信号13のいずれか一方を選
択して出力信号14として出力する。このようにして、
複数のメモリ回路から同時に読み出されたデータのう
ち、最後に書き込まれたデータが読み出され、データの
経時的な統一性が保たれる。
Further, at the time of reading, the following operation is performed. Read address signal 9 and read signal 1
5 is input to both the first memory circuit 3 and the second memory circuit 4, and data is read as the first read data signal 12 and the second read data signal 13, respectively. At this time, since the read signal 15 which is a selection signal for the first selection circuit 1 and the second selection circuit 2 is active, the read address signal 9 is selected. The first read data signal 12 and the second read data signal 13 are input to the selection circuit 6. On the other hand, the read address signal 9 is also input to the control circuit 5. As described above, the control circuit 5 has
Information indicating in which memory circuit data is stored is stored. The control circuit 5 follows the information stored corresponding to the address indicated by the read address signal 9,
The selection signal 18 is sent to the selection circuit 6. The selection circuit 6 is
The selection signal 18 selects either the first read data signal 12 or the second read data signal 13 and outputs it as the output signal 14. In this way,
Of the data read simultaneously from the plurality of memory circuits, the last written data is read, and the temporal uniformity of the data is maintained.

【0024】図2は、本発明の第1の実施の形態におけ
る制御回路5の一例を示す回路構成図である。図中、2
1は第1のアドレスデコーダ、22は第2のアドレスデ
コーダ、23−1〜23−NはOR回路、24−1〜2
4−Nはラッチ回路、25は選択回路である。
FIG. 2 is a circuit configuration diagram showing an example of the control circuit 5 according to the first embodiment of the present invention. 2 in the figure
Reference numeral 1 is a first address decoder, 22 is a second address decoder, 23-1 to 23-N are OR circuits, and 24-1 and 2-2.
4-N is a latch circuit, and 25 is a selection circuit.

【0025】第1のアドレスデコーダ21および第2の
アドレスデコーダ22は、それぞれ第1の書き込み信号
16、第2の書き込み信号17が入力されたとき、nビ
ットの第1の書き込みアドレス信号7、第2の書き込み
アドレス信号8で入力されたアドレスをデコードして、
信号線のうちのいずれかをアクティブにする。信号線
は、メモリのアドレス空間に対応して、N=2m 本設け
られている。
The first address decoder 21 and the second address decoder 22 receive an n-bit first write address signal 7 and a second write signal 17 when the first write signal 16 and the second write signal 17 are input, respectively. The address inputted by the write address signal 8 of 2 is decoded,
Activate one of the signal lines. N = 2 m signal lines are provided corresponding to the address space of the memory.

【0026】OR回路23−1〜23−Nは、第1のア
ドレスデコーダ21および第2のアドレスデコーダ22
から出力されるN本の信号線のそれぞれに対応して、N
個設けられている。そして、第1のアドレスデコーダ2
1および第2のアドレスデコーダ22から出力される信
号線のうち、どちらかがアクティブになると、イネーブ
ル信号を対応するラッチ回路24−1〜24−Nに出力
する。
The OR circuits 23-1 to 23-N include a first address decoder 21 and a second address decoder 22.
Corresponding to each of the N signal lines output from
It is provided individually. Then, the first address decoder 2
When one of the signal lines output from the first and second address decoders 22 becomes active, the enable signal is output to the corresponding latch circuit 24-1 to 24-N.

【0027】ラッチ回路24−1〜24−Nは、第1の
アドレスデコーダ21および第2のアドレスデコーダ2
2から出力されるN本の信号線のそれぞれに対応して、
N個設けられており、第1のアドレスデコーダ21から
の信号線がデータ入力として接続され、OR回路23−
1〜23−Nの出力がイネーブル入力として接続されて
いる。OR回路23−1〜23−Nからイネーブル信号
が入力されたとき、第1のアドレスデコーダ21からの
データをラッチする。
The latch circuits 24-1 to 24-N include a first address decoder 21 and a second address decoder 2 respectively.
Corresponding to each of the N signal lines output from 2,
N pieces of signal lines are provided, the signal line from the first address decoder 21 is connected as a data input, and the OR circuit 23-
The outputs of 1-23-N are connected as enable inputs. When the enable signals are input from the OR circuits 23-1 to 23-N, the data from the first address decoder 21 is latched.

【0028】選択回路25は、ラッチ回路24−1〜2
4−Nからそれぞれ出力される信号が入力されており、
読み出しアドレス信号9に従っていずれかを選択して選
択信号18として出力する。
The selection circuit 25 includes latch circuits 24-1 and 24-2.
The signals respectively output from 4-N are input,
One of them is selected according to the read address signal 9 and output as a selection signal 18.

【0029】上述の制御回路5の動作について説明す
る。書き込み時の動作は以下のようになる。第1のアド
レスデコーダ21及び第2のアドレスデコーダ22は、
それぞれ第1の書き込みアドレス信号7及び第2の書き
込みアドレス信号8を入力してデコードし、N本の出力
線のうちいずれか1本の出力信号をアクティブにする。
ただし、これらの出力信号は、イネーブル入力である第
1の書き込み信号16及び第2の書き込み信号17がそ
れぞれアクティブであるときのみ、出力信号をアクティ
ブにする。
The operation of the above control circuit 5 will be described. The operation during writing is as follows. The first address decoder 21 and the second address decoder 22 are
The first write address signal 7 and the second write address signal 8 are input and decoded, respectively, and any one output signal of the N output lines is activated.
However, these output signals activate the output signals only when the first write signal 16 and the second write signal 17, which are enable inputs, are active.

【0030】それぞれのOR回路23−1〜23−N
は、対応する第1のアドレスデコーダ21及び第2のア
ドレスデコーダ22の出力信号の論理和を演算し、それ
ぞれ対応するラッチ回路24−1〜24−Nに対して入
力イネーブル信号を送出する。すなわち、第1のアドレ
スデコーダ21または第2のアドレスデコーダ22のど
ちらかからアクティブの出力信号が出力されれば、対応
するラッチ回路にイネーブル信号が入力される。
Each of the OR circuits 23-1 to 23-N
Calculates the logical sum of the output signals of the corresponding first address decoder 21 and the corresponding second address decoder 22, and outputs the input enable signal to the corresponding latch circuits 24-1 to 24-N. That is, when an active output signal is output from either the first address decoder 21 or the second address decoder 22, the enable signal is input to the corresponding latch circuit.

【0031】ラッチ回路24−1〜24−Nには、それ
ぞれ対応する第1のアドレスデコーダ21の出力信号が
入力される。そして、OR回路23−1〜23−Nから
イネーブル信号が入力されると、そのときの第1のアド
レスデコーダ21からの出力信号がラッチされる。すな
わち、第1のアドレスデコーダ21からの出力信号によ
ってラッチ回路がイネーブルとなった場合には、第1の
アドレスデコーダ21からの出力信号である“1”がラ
ッチされ、第2のアドレスデコーダ22からの出力信号
によってラッチ回路がイネーブルとなった場合には、通
常、第1のアドレスデコーダ21からの出力信号はない
ので、“0”がラッチされる。従って、ある時刻におけ
るラッチ回路24−1〜24−Nには、メモリのアドレ
ス空間ごとに、最後に第1のメモリ回路3に書き込まれ
た場合には値“1”、最後に第2のメモリ回路4に書き
込まれた場合には値“0”が保持されている。
The output signals of the corresponding first address decoder 21 are input to the latch circuits 24-1 to 24-N. When the enable signals are input from the OR circuits 23-1 to 23-N, the output signal from the first address decoder 21 at that time is latched. That is, when the latch circuit is enabled by the output signal from the first address decoder 21, the output signal “1” from the first address decoder 21 is latched and the second address decoder 22 outputs the latched signal. When the latch circuit is enabled by the output signal of, the output signal from the first address decoder 21 is normally not present, so that "0" is latched. Therefore, the latch circuits 24-1 to 24-N at a certain time have a value “1” for each address space of the memory when the data is written in the first memory circuit 3 last, and the second memory lastly. When written in the circuit 4, the value “0” is held.

【0032】読み出し時には、読み出しアドレス信号9
が選択回路25にラッチ回路24−1〜24−Nの選択
信号として入力される。そして、ラッチ回路24−1〜
24−Nの出力信号のうち、ただ1つの信号が選択回路
25で選択されて、第3の選択回路6の選択信号18と
して出力される。
At the time of reading, the read address signal 9
Is input to the selection circuit 25 as a selection signal for the latch circuits 24-1 to 24-N. Then, the latch circuits 24-1 to 24-1
Of the output signals of 24-N, only one signal is selected by the selection circuit 25 and output as the selection signal 18 of the third selection circuit 6.

【0033】なお、上述の第1の実施の形態において、
メモリ回路3及び4は、DRAMやSRAM等の半導体
メモリのほか、磁気ディスク装置、光ディスク装置、レ
ジスタファイル、FIFOメモリ等の記憶装置により構
成してもよい。
Incidentally, in the above-mentioned first embodiment,
The memory circuits 3 and 4 may be composed of a semiconductor memory such as DRAM or SRAM, or a storage device such as a magnetic disk device, an optical disk device, a register file, or a FIFO memory.

【0034】上述の第1の実施の形態では、書き込みポ
ートが2つの場合を示したが、これに限らず、3つ以上
とすることもできる。この場合、メモリ回路を書き込み
ポートの数だけ配置し、それぞれに独立した書き込みポ
ートを設ける。また、アドレスの選択回路も各メモリ回
路に対応して設ける。このとき、読み出しアドレスは共
通としておけばよい。そして、各メモリ回路の読み出し
データ信号線を共通の選択回路6に入力し、制御回路5
からの選択信号18によっていずれかを選択するように
構成するればよい。また、制御回路5を例えば上述の図
2に示すような構成と同様に構成する場合、アドレスデ
コーダをメモリ回路の数だけ設け、OR回路23−1〜
23−Nおよびラッチ回路24−1〜24−Nの部分
を、各アドレスデコーダのうち、いずれのアドレスデコ
ーダの出力信号がアクティブになったかを記憶する記憶
素子に置き換えて構成すればよい。
In the above-described first embodiment, the case where the number of write ports is two is shown, but the number of write ports is not limited to this, and the number of write ports may be three or more. In this case, memory circuits are arranged by the number of write ports, and independent write ports are provided for each. An address selection circuit is also provided corresponding to each memory circuit. At this time, the read address may be common. Then, the read data signal line of each memory circuit is input to the common selection circuit 6, and the control circuit 5
Either of them may be selected by the selection signal 18 from. When the control circuit 5 is configured in the same manner as the configuration shown in FIG. 2, for example, the address decoders are provided by the number of memory circuits, and the OR circuits 23-1 to 23-1.
23-N and the latch circuits 24-1 to 24-N may be configured by replacing them with storage elements that store which of the address decoders has an active output signal.

【0035】図3は、本発明の記憶装置の第2の実施の
形態を示すブロック図である。図中、31,32は記憶
装置、33は第1の書き込みアドレス信号、34は第2
の書き込みアドレス信号、35は第1の書き込み信号、
36は第2の書き込み信号、37は第1の書き込みデー
タ信号、38は第2の書き込みデータ信号、39は第1
の読み出しアドレス信号、40は第1の読み出し信号、
41は第2の読み出しアドレス信号、42は第2の読み
出し信号、43は第1の出力信号、44は第2の出力信
号である。
FIG. 3 is a block diagram showing a second embodiment of the storage device of the present invention. In the figure, 31 and 32 are storage devices, 33 is a first write address signal, and 34 is a second
Write address signal, 35 is a first write signal,
36 is a second write signal, 37 is a first write data signal, 38 is a second write data signal, 39 is a first
Read address signal, 40 is the first read signal,
41 is a second read address signal, 42 is a second read signal, 43 is a first output signal, and 44 is a second output signal.

【0036】上述の第1の実施の形態においては、書き
込みポートのみ並列化を図り、読み出しポートは1つし
かなかった。この第2の実施の形態では、読み出しポー
トの並列化も図った例を示している。
In the above-described first embodiment, only the write port is parallelized and there is only one read port. The second embodiment shows an example in which the read ports are also parallelized.

【0037】記憶装置31,32は、図1に示した第1
の実施の形態の記憶装置と同様の構成の記憶装置であ
る。第1の書き込みアドレス信号33、第2の書き込み
アドレス信号34、第1の書き込み信号35、第2の書
き込み信号36、第1の書き込みデータ信号37、第2
の書き込みデータ信号38は、記憶装置31,32に共
通に入力されている。これにより、例えば、記憶装置3
1の第1のメモリ回路と、記憶装置32の第1のメモリ
回路は同一の内容となり、また、記憶装置31の第2の
メモリ回路と、記憶装置32の第2のメモリ回路は同一
の内容となる。さらに、書き込みによって記憶装置3
1,32の制御回路内に記憶される情報も同一となる。
The storage devices 31 and 32 are the first storage device shown in FIG.
The storage device has the same configuration as the storage device according to the embodiment. First write address signal 33, second write address signal 34, first write signal 35, second write signal 36, first write data signal 37, second
The write data signal 38 of 1 is commonly input to the storage devices 31 and 32. Thereby, for example, the storage device 3
The first memory circuit of No. 1 and the first memory circuit of the storage device 32 have the same content, and the second memory circuit of the storage device 31 and the second memory circuit of the storage device 32 have the same content. Becomes Further, by writing, the storage device 3
The information stored in the control circuits 1 and 32 is also the same.

【0038】読み出し時には、記憶装置31に第1の読
み出しアドレス信号39と第1の読み出し信号40を与
えることによって、記憶装置31からデータが読み出さ
れて、第1の出力信号43として出力される。また、記
憶装置32に第2の読み出しアドレス信号41と第2の
読み出し信号42を与えることによって、記憶装置32
からデータが読み出されて、第2の出力信号44として
出力される。この読み出し動作は、それぞれの記憶装置
31,32において独立して行なわれるので、並列的に
行なうことが可能である。
At the time of reading, by supplying the first read address signal 39 and the first read signal 40 to the memory device 31, the data is read from the memory device 31 and output as the first output signal 43. . In addition, by giving the second read address signal 41 and the second read signal 42 to the storage device 32, the storage device 32
Data is read out and output as the second output signal 44. Since this read operation is performed independently in each storage device 31, 32, it can be performed in parallel.

【0039】上述のように、各記憶装置31,32の制
御回路に記憶される読み出しデータの選択のための情報
は、同一である。そのため、各記憶装置31,32に個
別に選択信号を出力できる構成とすれば、制御回路の共
通化も可能である。
As described above, the information for selecting the read data stored in the control circuits of the storage devices 31 and 32 is the same. Therefore, if the configuration is such that the selection signal can be output individually to each of the storage devices 31 and 32, the control circuit can be shared.

【0040】図3に示した例では、出力ポートを2つと
したが、3つ以上であっても同様に構成することができ
る。この場合には、図1に示した記憶装置を出力ポート
の数だけ配置し、書き込みのための信号を共通化すれば
よい。もちろん、書き込みポートを3つ以上とすること
もでき、その場合には、上述のように各記憶装置内のメ
モリ回路を書き込みポートの数だけ配置して各部を構成
すればよい。
In the example shown in FIG. 3, the number of output ports is two, but the number of output ports may be three or more and the same configuration can be achieved. In this case, the storage devices shown in FIG. 1 may be arranged by the number of output ports and signals for writing may be shared. Of course, the number of write ports may be three or more, and in that case, each unit may be configured by arranging the memory circuits in each storage device by the number of write ports as described above.

【0041】図4は、本発明の記憶装置の第3の実施の
形態を示すブロック図である。図中、図1と同様の部分
には同じ符号を付してある。51は第1のメモリ回路、
52は第2のメモリ回路、53,54は選択回路、55
は第1の読み出しアドレス信号、56は第2の読み出し
アドレス信号、57は第1の読み出し信号、58は第2
の読み出し信号、59は第1の読み出しデータ信号、6
0は第2の読み出しデータ信号、61は第3の読み出し
データ信号、62は第4の読み出しデータ信号、63は
第1の選択信号、64は第2の選択信号、65は第1の
出力信号、66は第2の出力信号である。この第3の実
施の形態は、メモリ回路として複数の読み出し機構を有
するものを用いて、出力ポートの数を増加させる構成例
を示している。
FIG. 4 is a block diagram showing a third embodiment of the storage device of the present invention. In the figure, the same parts as those in FIG. 1 are designated by the same reference numerals. 51 is the first memory circuit,
52 is a second memory circuit, 53 and 54 are selection circuits, 55
Is a first read address signal, 56 is a second read address signal, 57 is a first read signal, and 58 is a second read address signal.
Read signal, 59 is the first read data signal, 6
0 is the second read data signal, 61 is the third read data signal, 62 is the fourth read data signal, 63 is the first selection signal, 64 is the second selection signal, and 65 is the first output signal. , 66 are second output signals. The third embodiment shows a configuration example in which a memory circuit having a plurality of reading mechanisms is used to increase the number of output ports.

【0042】第1のメモリ回路51及び第2のメモリ回
路52は、1つの書き込み機構と2つの書き込み機構を
有しており、同一のアドレス構成を有する。第1のメモ
リ回路51には、第1の書き込みアドレス信号7、第1
の書き込みデータ信号10、第1の書き込み信号16が
入力されて書き込みが行なわれる。また、第1の読み出
しアドレス信号55、第1の読み出し信号57が入力さ
れて、データが読み出されて第1の読み出しデータ信号
59として出力され、第2の読み出しアドレス信号5
6、第2の読み出し信号58が入力されて、データが読
み出されて第2の読み出しデータ信号60として出力さ
れる。第2のメモリ回路52には、第2の書き込みアド
レス信号8、第2の書き込みデータ信号11、第2の書
き込み信号17が入力されて書き込みが行なわれる。ま
た、第1の読み出しアドレス信号55、第1の読み出し
信号57が入力されて、データが読み出されて第3の読
み出しデータ信号61として出力され、第2の読み出し
アドレス信号56、第2の読み出し信号58が入力され
て、データが読み出されて第4の読み出しデータ信号6
2として出力される。なお、図4では、図1に示した第
1の選択回路1、第2の選択回路2に相当するアドレス
の選択回路は、第1のメモリ回路51及び第2のメモリ
回路52内に内蔵されているものとし、図示を省略して
いる。
The first memory circuit 51 and the second memory circuit 52 have one write mechanism and two write mechanisms, and have the same address configuration. In the first memory circuit 51, the first write address signal 7
The write data signal 10 and the first write signal 16 are input and writing is performed. In addition, the first read address signal 55 and the first read signal 57 are input, the data is read and output as the first read data signal 59, and the second read address signal 5
6. The second read signal 58 is input, the data is read and output as the second read data signal 60. The second write address signal 8, the second write data signal 11, and the second write signal 17 are input to the second memory circuit 52 and writing is performed. In addition, the first read address signal 55 and the first read signal 57 are input, the data is read and output as the third read data signal 61, and the second read address signal 56 and the second read signal are output. The signal 58 is input, the data is read, and the fourth read data signal 6
It is output as 2. Note that in FIG. 4, address selection circuits corresponding to the first selection circuit 1 and the second selection circuit 2 shown in FIG. 1 are incorporated in the first memory circuit 51 and the second memory circuit 52. However, the illustration is omitted.

【0043】制御回路5は、アドレスごとに最後に書き
込みの行なわれたメモリ回路を記憶している。第1の読
み出しアドレス信号55が入力されると、記憶している
情報に従って、そのアドレスのデータがどちらのアドレ
ス回路に保持されているかを示す第1の選択信号63を
選択回路53に出力する。また、第2の読み出しアドレ
ス信号56が入力されると、記憶している情報に従っ
て、第2の選択信号64を選択回路54に出力する。
The control circuit 5 stores the last-written memory circuit for each address. When the first read address signal 55 is input, a first selection signal 63 indicating which address circuit holds the data of the address is output to the selection circuit 53 according to the stored information. When the second read address signal 56 is input, the second selection signal 64 is output to the selection circuit 54 according to the stored information.

【0044】選択回路53は、制御回路5からの選択信
号63に応じて、第1のメモリ回路51から出力される
第1の読み出しデータ信号59と、第2のメモリ回路5
2から出力される第3の読み出しデータ信号61のいず
れかを選択し、第1の出力信号65として出力する。同
様に、選択回路54は、制御回路5からの選択信号64
に応じて、第1のメモリ回路51から出力される第2の
読み出しデータ信号60と、第2のメモリ回路52から
出力される第4の読み出しデータ信号62のいずれかを
選択し、第2の出力信号66として出力する。
The selection circuit 53 is responsive to the selection signal 63 from the control circuit 5 to output the first read data signal 59 output from the first memory circuit 51 and the second memory circuit 5.
Any one of the third read data signals 61 output from 2 is selected and output as the first output signal 65. Similarly, the selection circuit 54 uses the selection signal 64 from the control circuit 5.
According to the above, either the second read data signal 60 output from the first memory circuit 51 or the fourth read data signal 62 output from the second memory circuit 52 is selected, and the second read data signal 62 is selected. The output signal 66 is output.

【0045】この第3の実施の形態の動作について説明
する。書き込み時の動作は、上述の第1の実施の形態と
同一である。読み出し時の動作は、第1の読み出しアド
レス信号55、第1の読み出し信号57によるデータの
読み出し動作、第2の読み出しアドレス信号56、第2
の読み出し信号58によるデータの読み出し動作のそれ
ぞれが、第1の実施の形態と同様の動作で行なわれる。
ただし、これらの2系統の読み出し動作は独立して並列
的に行なわれる。
The operation of the third embodiment will be described. The operation at the time of writing is the same as that of the first embodiment described above. The read operation includes the first read address signal 55, the data read operation by the first read signal 57, the second read address signal 56, and the second read address signal 56.
Each of the data read operations by the read signal 58 is performed in the same manner as in the first embodiment.
However, these two read operations are independently performed in parallel.

【0046】このような記憶装置によれば、独立した第
1の読み出しアドレス信号55と第2の読み出しアドレ
ス信号56によって並列的に読み出しを行なうことがで
き、記憶装置全体として、2つの書き込みポートと2つ
の読み出しポートを有する記憶装置を実現することがで
きる。
According to such a memory device, it is possible to read data in parallel by the first read address signal 55 and the second read address signal 56 which are independent of each other, and the memory device as a whole has two write ports. A storage device having two read ports can be realized.

【0047】この第3の実施の形態では、メモリ回路と
して2つの書き込み機構を有するものを用いたが、3つ
以上の書き込み機構を有するものを用いることによっ
て、書き込み機構の数まで、読み出しポートを増加させ
ることができる。
In the third embodiment, a memory circuit having two write mechanisms is used, but by using a memory circuit having three or more write mechanisms, the number of read ports can be increased to the number of write mechanisms. Can be increased.

【0048】さらに、上述の第2の実施の形態において
第1の実施の形態で示した記憶装置を複数用いて読み出
しポートの数を増加させたのと同様にして、この第3の
実施の形態の記憶装置を複数用いてさらに読み出しポー
トを増加させることも可能である。この場合、メモリ回
路の読み出し機構の数をpとし、配置する記憶装置の個
数をqとすれば、p×q個の読み出しポートを有する記
憶装置を構成することができる。また、第1の実施の形
態で示した記憶装置と、この第3の実施の形態で示した
記憶装置を用いることによって、任意の読み出しポート
数を有する記憶装置を構成することが可能である。な
お、書き込みポートの数は、複数の記憶装置のそれぞれ
に配置されるメモリ回路の数によって決定される。
Furthermore, in the same way as the number of read ports is increased by using the plurality of storage devices shown in the first embodiment in the above-described second embodiment, this third embodiment is also performed. It is possible to increase the number of read ports by using a plurality of storage devices. In this case, if the number of read mechanisms of the memory circuit is p and the number of storage devices to be arranged is q, a storage device having p × q read ports can be configured. Further, by using the storage device shown in the first embodiment and the storage device shown in the third embodiment, it is possible to configure a storage device having an arbitrary number of read ports. Note that the number of write ports is determined by the number of memory circuits arranged in each of the plurality of storage devices.

【0049】図5は、本発明の記憶装置の第4の実施の
形態を示すブロック図である。図中、71,72は記憶
装置、73は乗算器、74は加算器、75〜78はレジ
スタファイル、79〜82は選択回路である。この第4
の実施の形態では、上述の第3の実施の形態に示した記
憶装置を複数配置して構成した記憶装置を用い、演算器
とともに構成した具体例を示したものである。図5で
は、データ信号のみを示し、アドレス信号や書き込み信
号は省略している。
FIG. 5 is a block diagram showing a fourth embodiment of the storage device of the present invention. In the figure, 71 and 72 are storage devices, 73 is a multiplier, 74 is an adder, 75 to 78 are register files, and 79 to 82 are selection circuits. This fourth
In the embodiment, a specific example is shown in which a storage device configured by arranging a plurality of the storage devices described in the above-described third embodiment is used and configured together with an arithmetic unit. In FIG. 5, only data signals are shown, and address signals and write signals are omitted.

【0050】記憶装置71,72は、図4と同様の構成
であり、メモリ装置としてレジスタファイルを75,7
6および77,78を用いている。このレジスタファイ
ル75〜78は、1つの書き込み機構と2つの読み出し
機構を有している。記憶装置71はレジスタファイル7
5,76と選択回路79,80により、また、記憶装置
72はレジスタファイル77,78と選択回路81,8
2によって、2つの書き込みポートと2つの読み出しポ
ートを有する構成となっている。そして、この2つの記
憶装置71,72により、全体として2つの書き込みポ
ートと4つの読み出しポートを有する記憶装置を構成し
ている。
The storage devices 71 and 72 have the same structure as in FIG. 4, and register files 75 and 7 are used as memory devices.
6 and 77,78 are used. The register files 75 to 78 have one writing mechanism and two reading mechanisms. The storage device 71 is the register file 7
5, 76 and the selection circuits 79 and 80, and the storage device 72 includes the register files 77 and 78 and the selection circuits 81 and 8.
2 has two write ports and two read ports. The two storage devices 71 and 72 constitute a storage device having two write ports and four read ports as a whole.

【0051】乗算器73は、2つの値が入力され、その
乗算結果を出力する。また、加算器74は、2つの値が
入力され、その加算結果を出力する。ここでは、乗算器
73の出力を記憶装置71,72のそれぞれの第1の書
き込みポートに共通に接続し、加算器74の出力をそれ
ぞれの第2の書き込みポートに共通に接続している。ま
た、4つの読み出しポートのうち、記憶装置71の2つ
の読み出しポートの出力を乗算器73の入力に接続し、
記憶装置72の2つの読み出しポートの出力を加算器7
4の入力に接続している。
The multiplier 73 receives the two values and outputs the multiplication result. Further, the adder 74 receives two values and outputs the addition result. Here, the output of the multiplier 73 is commonly connected to the respective first write ports of the storage devices 71 and 72, and the output of the adder 74 is commonly connected to the respective second write ports. Also, of the four read ports, the outputs of the two read ports of the storage device 71 are connected to the inputs of the multiplier 73,
The outputs of the two read ports of the storage device 72 are added to the adder 7
4 inputs.

【0052】上述の第4の実施の形態における具体的な
動作の一例を説明する。図5のレジスタファイル75〜
78は、それぞれ、少なくともアドレスとしてR1〜R
6を有しているものとする。
An example of a specific operation in the above-described fourth embodiment will be described. Register file 75 of FIG.
78 are at least R1 to R as addresses, respectively.
It is assumed to have 6.

【0053】いま、具体的に次のような演算を行なう場
合を考える。 (R1×R2)×(R4+R5)→R6 この演算を図5に示した乗算器73及び加算器74を用
いて行なう場合、例えば、次のような2項演算を行なえ
ばよい。 (1) R1×R2→R3 (2) R4+R5→R6 (3) R3×R6→R6
Now, let us consider a case in which the following calculation is carried out. (R1 × R2) × (R4 + R5) → R6 When this operation is performed using the multiplier 73 and the adder 74 shown in FIG. 5, for example, the following binomial operation may be performed. (1) R1 × R2 → R3 (2) R4 + R5 → R6 (3) R3 × R6 → R6

【0054】シーケンシャルな処理しか行なえないマイ
クロプロセッサなどでは、この順で演算を行なうことに
なるが、図5に示した構成では、乗算器73と加算器7
4は並列動作が可能である。(1)と(2)は独立した
演算であるので、並列的に演算を行なわせることによっ
て、処理速度を向上させることができる。なお、(3)
は、(1)と(2)の結果が得られないと処理できない
ので、(1)又は(2)との並列的な演算を行なうこと
はできない。
In a microprocessor or the like which can perform only sequential processing, the operations are performed in this order, but in the configuration shown in FIG. 5, the multiplier 73 and the adder 7 are used.
4 can operate in parallel. Since (1) and (2) are independent calculations, the processing speed can be improved by performing the calculations in parallel. (3)
Cannot be processed unless the results of (1) and (2) are obtained, so that it is not possible to perform parallel operation with (1) or (2).

【0055】レジスタファイル75および77、あるい
は、76および78のいずれかに、R1,R2,R4,
R5が記憶されているものとする。記憶装置71では、
R1およびR2の読み出しが行なわれ、記憶装置72で
は、R4及びR5の読み出しが行なわれる。これら4つ
の読み出しは並列的に行なわれる。読み出されたR1,
R2のデータは乗算器73に入力されて(1)の演算が
行なわれ、演算結果が記憶装置71のレジスタファイル
75及び記憶装置72のレジスタファイル77のR3に
書き込まれる。このとき、R3のデータは、レジスタフ
ァイル75およびレジスタファイル77に書き込まれて
いることが制御回路に記憶される。
Either R1, R2, R4, or R4 is added to either of the register files 75 and 77 or 76 and 78.
It is assumed that R5 is stored. In the storage device 71,
R1 and R2 are read, and in the storage device 72, R4 and R5 are read. These four readings are performed in parallel. Read R1,
The data of R2 is input to the multiplier 73, the operation (1) is performed, and the operation result is written to the register file 75 of the storage device 71 and the register file 77 of the storage device 72. At this time, it is stored in the control circuit that the data of R3 is written in the register file 75 and the register file 77.

【0056】これと並行して、読み出されたR4,R5
のデータは加算器74に入力されて(2)の演算が行な
われ、演算結果が記憶装置71のレジスタファイル76
および記憶装置72のレジスタファイル78のR6に書
き込まれる。このとき、R6のデータは、レジスタファ
イル76およびレジスタファイル78に書き込まれてい
ることが制御回路に記憶される。
In parallel with this, read R4 and R5
Is input to the adder 74, the operation (2) is performed, and the operation result is stored in the register file 76 of the storage device 71.
And R6 of the register file 78 of the storage device 72. At this time, it is stored in the control circuit that the data of R6 is written in the register file 76 and the register file 78.

【0057】このようにして(1)と(2)の演算が並
行して行なわれた後、(3)の演算が行なわれる。記憶
装置71において、R3とR6のデータが読み出され
る。このとき、R3については、レジスタファイル75
に書き込まれたことが制御回路に記憶されているので、
レジスタファイル75,76から読み出されたデータの
うち、レジスタファイル75から読み出されたデータが
選択されて乗算器73の一方に入力される。このとき、
もしレジスタファイル76から読み出されたデータを用
いたとすれば、(1)の演算結果が反映されておらず、
演算結果に誤りが生じることになる。アドレスごとに最
後に書き込まれたレジスタファイルを制御回路に記憶す
ることによって、このような不具合を回避し、データの
経時的な統一性を保っている。R6についても同様に、
レジスタファイル76に書き込まれたことが制御回路に
記憶されているので、レジスタファイル75,76から
読み出されたデータのうち、レジスタファイル76から
読み出されたデータが選択されて乗算器73の他方に入
力される。
In this way, after the operations (1) and (2) are carried out in parallel, the operation (3) is carried out. In the storage device 71, the data of R3 and R6 are read. At this time, for R3, register file 75
Since it is stored in the control circuit that was written in
Of the data read from the register files 75 and 76, the data read from the register file 75 is selected and input to one of the multipliers 73. At this time,
If the data read from the register file 76 is used, the calculation result of (1) is not reflected,
An error will occur in the calculation result. By storing the register file written last for each address in the control circuit, such a problem is avoided and the temporal uniformity of data is maintained. Similarly for R6,
Since the data written in the register file 76 is stored in the control circuit, the data read from the register file 76 is selected from the data read from the register files 75 and 76, and the other of the multipliers 73 is selected. Entered in.

【0058】乗算器73では、2つの値を乗算し、結果
を出力する。演算結果は、記憶装置71のレジスタファ
イル75および記憶装置72のレジスタファイル77の
R6に書き込まれる。このとき、R6のデータは、今度
はレジスタファイル75およびレジスタファイル77に
書き込まれていることが制御回路に記憶される。次にR
6が読み出された場合には、レジスタファイル75また
はレジスタファイル77から読み出されたデータが選択
されることになる。そのため、(2)の演算結果ではな
く、(3)の演算結果が正しく選択されることになる。
The multiplier 73 multiplies the two values and outputs the result. The calculation result is written in the register file 75 of the storage device 71 and the register file 77 of the storage device 72 in R6. At this time, it is stored in the control circuit that the data of R6 is now written in the register file 75 and the register file 77. Then R
When 6 is read, the data read from the register file 75 or the register file 77 is selected. Therefore, the calculation result of (3) is correctly selected instead of the calculation result of (2).

【0059】このように、この第4の実施の形態では、
2つの書き込みポート及び4つの読み出しポートを有す
る記憶装置を用いることによって、演算に必要な4つの
値を並列的に読み出し、並列的に演算を行ない、2つの
演算結果を並列的に書き込むという、完全な並列処理に
よる高速処理を可能にしている。もちろん、図5に示し
た構成は一つの応用例であり、このような利用方法に限
定されるものでないことは言うまでもない。
As described above, in the fourth embodiment,
By using a storage device having two write ports and four read ports, four values required for operation are read in parallel, operation is performed in parallel, and two operation results are written in parallel. It enables high-speed processing by parallel processing. Of course, it goes without saying that the configuration shown in FIG. 5 is one application example and is not limited to such a usage method.

【0060】[0060]

【発明の効果】以上の説明から明らかなように、本発明
によれば、記憶装置に対して書き込みを行なう際に、2
つの異なるロケーション、またはアドレス空間に対し
て、同時に書き込みを行なうことが可能となり、時分割
で処理を行なわなくてもよいので、処理速度を向上する
ことができる。このとき、データの経時的な統一性が保
たれているので、各アドレスについて最後に書き込まれ
たデータが読み出されることが保証されている。
As is apparent from the above description, according to the present invention, when writing to the storage device, the
Since writing can be performed simultaneously in three different locations or address spaces, and processing does not have to be performed in time division, the processing speed can be improved. At this time, since the uniformity of data over time is maintained, it is guaranteed that the last written data for each address will be read.

【0061】また、従来のインターリーブ法やメモリを
複数のバンク構成にするなどの手法のように、メモリの
ロケーションごとにその使用法が予め決められていると
いう制約はなく、すべて同一のアドレス構成を有してい
るので、メモリを柔軟に使用することができる。
Further, unlike the conventional interleave method and the method of forming the memory into a plurality of banks, there is no restriction that the usage is predetermined for each memory location, and the same address configuration is used for all. Since it has, the memory can be used flexibly.

【0062】さらに、書き込みの並列化と同時に、読み
出しの並列化も図った場合には、読み出し処理も高速化
されるというという効果がある。
Further, when the parallelization of the writing and the parallelization of the reading are attempted at the same time as the parallelization of the writing, there is an effect that the reading processing is speeded up.

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

【図1】 本発明の記憶装置の第1の実施の形態を示す
ブロック図である。
FIG. 1 is a block diagram showing a first embodiment of a storage device of the present invention.

【図2】 本発明の第1の実施の形態における制御回路
5の一例を示す回路構成図である。
FIG. 2 is a circuit configuration diagram showing an example of a control circuit 5 according to the first embodiment of the present invention.

【図3】 本発明の記憶装置の第2の実施の形態を示す
ブロック図である。
FIG. 3 is a block diagram showing a second embodiment of a storage device of the present invention.

【図4】 本発明の記憶装置の第3の実施の形態を示す
ブロック図である。
FIG. 4 is a block diagram showing a third embodiment of a storage device of the present invention.

【図5】 本発明の記憶装置の第4の実施の形態を示す
ブロック図である。
FIG. 5 is a block diagram showing a fourth embodiment of a storage device of the present invention.

【図6】 従来の記憶装置の一例を示すブロック図であ
る。
FIG. 6 is a block diagram showing an example of a conventional storage device.

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

1…第1の選択回路、2…第2の選択回路、3…第1の
メモリ回路、4…第2のメモリ回路、5…制御回路、6
…第3の選択回路、7…第1の書き込みアドレス信号、
8…第2の書き込みアドレス信号、9…読み出しアドレ
ス信号、10…第1の書き込みデータ信号、11…第2
の書き込みデータ信号、12…第1の読み出しデータ信
号、13…第2の読み出しデータ信号、14…出力信
号、15…読み出し信号、16…第1の書き込み信号、
17…第2の書き込み信号、18…選択信号、21…第
1のアドレスデコーダ、22…第2のアドレスデコー
ダ、23−1〜23−N…OR回路、24−1〜24−
N…ラッチ回路、25…選択回路、31,32…記憶装
置、33…第1の書き込みアドレス信号、34…第2の
書き込みアドレス信号、35…第1の書き込み信号、3
6…第2の書き込み信号、37…第1の書き込みデータ
信号、38…第2の書き込みデータ信号、39…第1の
読み出しアドレス信号、40…第1の読み出し信号、4
1…第2の読み出しアドレス信号、42…第2の読み出
し信号、43…第1の出力信号、44…第2の出力信
号、51…第1のメモリ回路、52…第2のメモリ回
路、53,54…選択回路、55…第1の読み出しアド
レス信号、56…第2の読み出しアドレス信号、57…
第1の読み出し信号、58…第2の読み出し信号、59
…第1の読み出しデータ信号、60…第2の読み出しデ
ータ信号、61…第3の読み出しデータ信号、62…第
4の読み出しデータ信号、63…第1の選択信号、64
…第2の選択信号、65…第1の出力信号、66…第2
の出力信号、71,72…記憶装置、73…乗算器、7
4…加算器、75〜78…レジスタファイル、79〜8
2…選択回路。
1 ... 1st selection circuit, 2 ... 2nd selection circuit, 3 ... 1st memory circuit, 4 ... 2nd memory circuit, 5 ... Control circuit, 6
... third selection circuit, 7 ... first write address signal,
8 ... Second write address signal, 9 ... Read address signal, 10 ... First write data signal, 11 ... Second
Write data signal, 12 ... first read data signal, 13 ... second read data signal, 14 ... output signal, 15 ... read signal, 16 ... first write signal,
17 ... Second write signal, 18 ... Selection signal, 21 ... First address decoder, 22 ... Second address decoder, 23-1 to 23-N ... OR circuit, 24-1 to 24-
N ... Latch circuit, 25 ... Selection circuit, 31, 32 ... Storage device, 33 ... First write address signal, 34 ... Second write address signal, 35 ... First write signal, 3
6 ... 2nd write signal, 37 ... 1st write data signal, 38 ... 2nd write data signal, 39 ... 1st read address signal, 40 ... 1st read signal, 4
1 ... 2nd read address signal, 42 ... 2nd read signal, 43 ... 1st output signal, 44 ... 2nd output signal, 51 ... 1st memory circuit, 52 ... 2nd memory circuit, 53 , 54 ... Selection circuit, 55 ... First read address signal, 56 ... Second read address signal, 57 ...
First read signal, 58 ... Second read signal, 59
... first read data signal, 60 ... second read data signal, 61 ... third read data signal, 62 ... fourth read data signal, 63 ... first selection signal, 64
... second selection signal, 65 ... first output signal, 66 ... second
Output signal, 71, 72 ... storage device, 73 ... multiplier, 7
4 ... Adder, 75-78 ... Register file, 79-8
2 ... Selection circuit.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 宮川 宣明 神奈川県海老名市本郷2274番地 富士ゼロ ックス株式会社内 (72)発明者 相原 玲二 広島県東広島市鏡山1−4−2 広島大学 内 (72)発明者 小柳 光正 宮城県仙台市青葉区荒巻字青葉(番地な し) 東北大学内 ─────────────────────────────────────────────────── ─── Continuation of front page (72) Nobuaki Miyagawa 2274 Hongo, Ebina City, Kanagawa Prefecture Fuji Xerox Co., Ltd. (72) Reiji Aihara 1-4-2, Kagamiyama, Higashi Hiroshima City, Hiroshima Prefecture 72 ) Inventor Mitsumasa Koyanagi Aoba, Aoba-ku, Sendai City, Miyagi Prefecture, Aoba (No house number), Tohoku University

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 書き込みポートを複数個有した記憶装置
において、同一のアドレス構造を有する複数の従記憶手
段と、該複数の従記憶手段の記憶単位ごとに最後に書き
込まれたデータがどの従記憶手段に存在するかを特定す
る情報を記憶する制御手段と、前記複数の従記憶手段か
ら与えられたアドレスに対応して読み出された情報を前
記制御手段に記憶されている情報に基づいて選択する選
択手段を備えていることを特徴とする記憶装置。
1. In a storage device having a plurality of write ports, a plurality of slave storage means having the same address structure and which slave storage device is the last written data for each storage unit of the plurality of slave storage means. Control means for storing information specifying whether or not it exists in the means, and information read out corresponding to the address given from the plurality of secondary storage means is selected based on the information stored in the control means. A storage device, comprising: a selecting unit for performing the operation.
【請求項2】 前記従記憶手段は、1つの書き込み回路
とn(n≧1)個の読み出し回路を有し、書き込みポー
トの個数だけの前記従記憶手段、および、n個の選択手
段を備えていることを特徴とする請求項1に記載の記憶
装置。
2. The slave storage means has one write circuit and n (n ≧ 1) read circuits, and the slave storage means is provided by the number of write ports and n selection means. The storage device according to claim 1, wherein:
【請求項3】 請求項2に記載の記憶装置を複数備え、
各記憶装置の対応する各書き込みポートを共通に接続し
たことを特徴とする記憶装置。
3. A plurality of storage devices according to claim 2,
A storage device characterized in that the corresponding write ports of each storage device are connected in common.
JP20446095A 1995-08-10 1995-08-10 Memory device Pending JPH0950398A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20446095A JPH0950398A (en) 1995-08-10 1995-08-10 Memory device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20446095A JPH0950398A (en) 1995-08-10 1995-08-10 Memory device

Publications (1)

Publication Number Publication Date
JPH0950398A true JPH0950398A (en) 1997-02-18

Family

ID=16490908

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20446095A Pending JPH0950398A (en) 1995-08-10 1995-08-10 Memory device

Country Status (1)

Country Link
JP (1) JPH0950398A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014507724A (en) * 2011-02-02 2014-03-27 マイクロン テクノロジー, インク. At least semi-autonomous modules and methods in a memory system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014507724A (en) * 2011-02-02 2014-03-27 マイクロン テクノロジー, インク. At least semi-autonomous modules and methods in a memory system

Similar Documents

Publication Publication Date Title
US5832290A (en) Apparatus, systems and method for improving memory bandwidth utilization in vector processing systems
KR100290325B1 (en) A processor with long instruction words
US4435765A (en) Bank interleaved vector processor having a fixed relationship between start timing signals
US5794067A (en) Digital signal processing device
US4507728A (en) Data processing system for parallel processing of different instructions
US4980817A (en) Vector register system for executing plural read/write commands concurrently and independently routing data to plural read/write ports
US5168573A (en) Memory device for storing vector registers
CA2324219A1 (en) A digital signal processor reducing access contention
US5420997A (en) Memory having concurrent read and writing from different addresses
US12399722B2 (en) Memory device and method including processor-in-memory with circular instruction memory queue
JPH06162227A (en) Vector parallel computer
JPH05135583A (en) Memory access system
US7284113B2 (en) Synchronous periodical orthogonal data converter
JPH0950398A (en) Memory device
CA1183275A (en) Byte addressable memory for variable length instructions and data
JP3872922B2 (en) Semiconductor memory device and memory embedded logic LSI
JP3265226B2 (en) Bank access control method
EP0661648A2 (en) Digital signal processing circuit
JP3696625B2 (en) Data-driven information processing device
EP0500383A2 (en) Data processing system
Goode et al. A simple circuit for adding complex numbers
US5134694A (en) Method and device for the processing of address words
JP3057728B2 (en) Semiconductor storage device
JPH03105452A (en) Weight holding system for network constitution data processor
JPH0719221B2 (en) Memory control method