JPH06222976A - Semiconductor storage device - Google Patents

Semiconductor storage device

Info

Publication number
JPH06222976A
JPH06222976A JP5028505A JP2850593A JPH06222976A JP H06222976 A JPH06222976 A JP H06222976A JP 5028505 A JP5028505 A JP 5028505A JP 2850593 A JP2850593 A JP 2850593A JP H06222976 A JPH06222976 A JP H06222976A
Authority
JP
Japan
Prior art keywords
data
port
memory cell
read
ports
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP5028505A
Other languages
Japanese (ja)
Inventor
Atsuo Koshizuka
淳生 越塚
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.)
Nippon Steel Corp
Original Assignee
Nippon Steel Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Steel Corp filed Critical Nippon Steel Corp
Priority to JP5028505A priority Critical patent/JPH06222976A/en
Publication of JPH06222976A publication Critical patent/JPH06222976A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Abstract

PURPOSE:To improve the reliability of stored data by providing a means for judging data to be used at the time of reading from each port even when the different data are simultaneously writter from the respective ports to the same address. CONSTITUTION:This device is provided with a pair of memory cell groups 1 and 2, write control parts 4 and 5 for writing data from one port preferentially to one memory cell group and writing data from the other port preferentially to the other memory cell group when the data are simultaneously written from the respective ports A and B to both of memory cell groups 1 and 2, and read data comparison parts 6 and 7 for comparing the stored contents of mutually corresponding addresses in the respective memory cell groups 1 and 2 when reading data and for selecting the data to be read when the data are different from each other. Thus, since the data to be used can be selected at the time of reading, the reliability of data is secured.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、複数のプロセッサに同
一のデータを共有させ、各々そのデータを独立してアク
セス可能な1対のポートを有する半導体記憶装置に関す
るものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a semiconductor memory device having a pair of ports that allow a plurality of processors to share the same data and access the data independently.

【0002】[0002]

【従来の技術】従来から、複数のプロセッサから同時
に、かつ独立してアクセス可能な半導体記憶装置として
所謂デュアルポートメモリが知られている。このデュア
ルポートメモリは、メモリセルアレイの各アドレスに直
接アクセス可能な一対のポートを有し、各ポートが各プ
ロセッサに対応したものである。その構造を図2に示
す。メモリセルアレイ11に対してポートA及びポート
Bから同時にアクセス可能となっており、各CPU間の
データの授受や同一データの平行処理などに用いられて
いる。
2. Description of the Related Art Conventionally, a so-called dual port memory has been known as a semiconductor memory device which can be simultaneously and independently accessed by a plurality of processors. This dual-port memory has a pair of ports that can directly access each address of the memory cell array, and each port corresponds to each processor. Its structure is shown in FIG. The memory cell array 11 can be simultaneously accessed from the port A and the port B, and is used for exchanging data between the CPUs and parallel processing of the same data.

【0003】上記したようなデュアルポートメモリにあ
っては、両ポートから同じアドレス(例えばAn)に対
して同時に書込み動作が行われた場合、そのいずれの書
込み動作が優先されるかが不明であり、場合によっては
他のアドレスとのデータの連続性などを保つことができ
ずデータエラーを発生することが考えられる。
In the above dual port memory, when the write operation is simultaneously performed from both ports to the same address (for example, An), it is unclear which write operation has priority. In some cases, data continuity with other addresses cannot be maintained and a data error may occur.

【0004】[0004]

【発明が解決しようとする課題】本発明は上記したよう
な従来技術の問題点に鑑みなされたものであり、その主
な目的は、同じアドレスに対して異なるデータの書込み
動作が各ポートから行われた場合でもそのデータの信頼
性を確保することが可能なデュアルポートの半導体記憶
装置を提供することにある。
SUMMARY OF THE INVENTION The present invention has been made in view of the problems of the prior art as described above, and its main purpose is to perform different data write operations for the same address from each port. It is an object of the present invention to provide a dual port semiconductor memory device capable of ensuring the reliability of the data even if the data is broken.

【0005】[0005]

【課題を解決するための手段】上記した目的は本発明に
よれば、1対のポートに各々独立してアクセス可能な半
導体記憶装置であって、前記ポートから同時に書込み/
読出しされる互いに対応するアドレスを有する1対の記
憶素子群と、前記各ポートから前記両記憶素子群に同時
に書込みが行われたときに一方の前記ポートからのデー
タを一方の前記記憶素子群に優先して書込み可能とし、
かつ他方の前記ポートからのデータを他方の前記記憶素
子群に優先して書込み可能とする制御手段と、前記各ポ
ートからのデータを読出すときに前記各記憶素子群の互
いに対応するアドレスの記憶内容を比較して互いに異な
るデータであればいずれのデータを読出すかを選択する
選択手段とを有することを特徴とする半導体記憶装置を
提供することにより達成される。
According to the present invention, there is provided a semiconductor memory device in which a pair of ports can be accessed independently of each other.
A pair of storage element groups having addresses corresponding to each other to be read, and data written from one of the ports to one of the storage element groups when writing is simultaneously performed from the ports to the storage element groups. Writable with priority,
And a control means for allowing the data from the other port to be written preferentially to the other storage element group, and the storage of addresses corresponding to each other of the storage element group when reading the data from the respective port. This is achieved by providing a semiconductor memory device characterized by having a selection means for comparing the contents and selecting which data is read out if the data are different from each other.

【0006】[0006]

【作用】このように、1対の同様な構造を有する記憶素
子群(メモリセルアレイ)の互いに対応するアドレスに
通常は同じデータを書込み、同時に同じアドレスに対し
て書込み動作が各ポートから行われた場合に一方の記憶
素子群には一方のポートからのデータを記憶し、他方の
記憶素子群には他方のポートからのデータを記憶し、読
出し時にいずれのデータを使用するかを選択可能とする
ことでデータの信頼性が確保される。
As described above, normally, the same data is written to the addresses corresponding to each other in the pair of storage element groups (memory cell arrays) having the same structure, and the write operation is simultaneously performed to the same address from each port. In this case, one storage element group stores the data from one port, the other storage element group stores the data from the other port, and it is possible to select which data to use when reading. This ensures the reliability of the data.

【0007】[0007]

【実施例】以下、本発明の好適実施例を添付の図面につ
いて詳しく説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT A preferred embodiment of the present invention will now be described in detail with reference to the accompanying drawings.

【0008】図1は本発明が適用された半導体記憶装置
としてのデュアルポートメモリの構成を示すブロック図
である。各々同じアドレス構成を有する1対のメモリセ
ルアレイ1、2には図に於ける上下に示すようにポート
A及びポートBから各々独立してアクセス可能となって
いる。また、ポートA及びポートBから各メモリセルア
レイ1、2への書込み線には、各ポートA、Bからの書
込みデータをいずれのメモリセルアレイへ書込むか、或
いは両メモリセルアレイ1、2へ書込むかを選択する書
込み制御部4、5が介設されている。これら書込み制御
部4、5は、各ポートA、Bから同時に書込み動作が行
われた場合に、ポートAからの書込みアドレスと、ポー
トBからの書込みアドレスとを比較する書込みアドレス
比較部3に接続されている。
FIG. 1 is a block diagram showing the configuration of a dual port memory as a semiconductor memory device to which the present invention is applied. A pair of memory cell arrays 1 and 2 each having the same address configuration can be independently accessed from a port A and a port B as shown in the upper and lower parts of the figure. Further, in the write lines from the port A and the port B to the memory cell arrays 1 and 2, the write data from the ports A and B is written to which memory cell array, or both memory cell arrays 1 and 2 are written. Write control units 4 and 5 for selecting whether or not are provided. These write control units 4 and 5 are connected to the write address comparison unit 3 that compares the write address from the port A and the write address from the port B when the write operation is performed simultaneously from the ports A and B. Has been done.

【0009】ここで、書込みアドレス比較部3にて各ポ
ートA、Bから同時に同じアドレスに書込み動作が行わ
れたと判断されると、書込み制御部4、5にこれを伝達
するようになっている。書込み制御部4、5はこれを受
けてポートAからの書込みデータをメモリセルアレイ1
に優先して書込み可能とし、ポートBからの書込みデー
タをメモリセルアレイ2に優先して書込み可能とするゲ
ートをなしている。一方、各メモリセルアレイ1、2か
ら各ポートA、Bへの読出し線には、各メモリセルアレ
イ1、2の互いに対応するアドレスに書込まれたデータ
を読出す際に読出しデータを互いに比較するための読出
しデータ比較部6、7が設けられている。ここで、読出
しデータ比較部6はポートAに、データ比較部7はポー
トBに接続され、読出しデータがメモリセルアレイ1、
2で互いに異なる場合に対応するポートにこれが伝達さ
れ、いずれのデータを読出すかを選択し得るようになっ
ている。
Here, when the write address comparing section 3 determines that the write operation is simultaneously performed from the ports A and B to the same address, the write address is transmitted to the write control sections 4 and 5. . In response to this, the write control units 4 and 5 transfer the write data from the port A to the memory cell array 1
, And the write data from the port B is given priority over the memory cell array 2 to be writable. On the other hand, the read lines from the memory cell arrays 1 and 2 to the ports A and B are used to compare the read data with each other when the data written in the addresses corresponding to each of the memory cell arrays 1 and 2 are read. Read data comparison units 6 and 7 are provided. Here, the read data comparison unit 6 is connected to the port A, and the data comparison unit 7 is connected to the port B.
When the two are different from each other, this is transmitted to the corresponding port, and it is possible to select which data is read.

【0010】以下に本実施例の作動要領について説明す
る。まず、通常は各ポートA、Bのいずれからもメモリ
セルアレイ1、2に対して並列に書込み/読出し動作可
能となっている。ここで、ポートA及びポートBから同
時に同じアドレス(例えばAn)に対してデータの書込
み動作が行われた場合、これが書込みアドレス比較部3
により各書込み制御部4、5に伝達され、メモリセルア
レイ1にはポートAからのデータが優先して書込まれ、
メモリセルアレイ2にはポートBからのデータが優先し
て書込まれる。従って、このような動作がなされた場
合、ポートAからのデータとポートBからのデータとが
互いに異なっていると、メモリセルアレイ1とメモリセ
ルアレイ2との同じアドレス(An)には互いに異なる
データが書込まれていることとなる。
The operating procedure of this embodiment will be described below. First, normally, write / read operations can be performed in parallel to the memory cell arrays 1 and 2 from each of the ports A and B. Here, when the data write operation is simultaneously performed from the port A and the port B to the same address (for example, An), this is the write address comparison unit 3
Is transmitted to each of the write control units 4 and 5, and the data from the port A is written to the memory cell array 1 with priority.
Data from the port B is preferentially written in the memory cell array 2. Therefore, when such an operation is performed, if the data from the port A and the data from the port B are different from each other, different data may be stored in the same address (An) of the memory cell array 1 and the memory cell array 2. It will be written.

【0011】次に、このようなデータを例えばポートA
側から読出す際には、実際の読出し動作が行われる前に
読出しデータ比較部6にて、各メモリセルアレイ1、2
のアドレス(An)のデータが比較され、そのデータが
異なる場合、これを表すフラグがポートAを介して図示
されない一方のプロセッサに伝達される。そして、この
プロセッサにてデータの連続性や書込み時の履歴などか
らいずれのデータを読出すかが判断され、その選択され
た一方のデータがポートAから読出されるようになる。
同様にしてポートBから読出し動作が行われた場合にも
読出しデータ比較部7にてデータの比較が行われ、ポー
トB側の図示されないプロセッサにていずれのデータを
読出すかが判断され、それに従いデータが読出されるこ
ととなる。尚、メモリセルアレイ1、2の同じアドレス
に於ける記憶内容が等しい場合にはそのままデータが読
出される。
Next, such data is transferred to port A, for example.
When reading from the side, before the actual read operation is performed, the read data comparison unit 6 sets the memory cell arrays 1, 2
Data of the address (An) are compared, and if the data are different, a flag indicating this is transmitted to one processor not shown via the port A. Then, this processor determines which data is to be read from the continuity of data and the history of writing, and one of the selected data is read from the port A.
Similarly, when a read operation is performed from the port B, the read data comparison unit 7 compares the data, and a processor (not shown) on the port B side determines which data is to be read, and according to that. The data will be read. If the memory cells 1 and 2 have the same storage content at the same address, the data is read as it is.

【0012】[0012]

【発明の効果】上記した説明により明らかなように、本
発明による半導体記憶装置によれば、各ポートから異な
るデータが同じアドレスに同時に書込まれた場合でもい
ずれのデータも保存され、各ポートからの読出し時にい
ずれのデータを用いるかを判断することができることか
ら、データが不連続になるなどのエラーを生じることが
なく記憶データの信頼性が向上する。
As is apparent from the above description, according to the semiconductor memory device of the present invention, even when different data are simultaneously written to the same address from each port, any data is saved and the data is stored from each port. Since it is possible to determine which data to use when reading, the reliability of the stored data is improved without causing an error such as data discontinuity.

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

【図1】本発明が適用されたデュアルポートメモリの構
成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a dual port memory to which the present invention is applied.

【図2】従来のデュアルポートメモリの構成を示すブロ
ック図である。
FIG. 2 is a block diagram showing a configuration of a conventional dual port memory.

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

1、2 メモリセルアレイ 3 書込みアドレス比較部 4、5 書込み制御部 6、7 読出しデータ比較部 11 メモリセルアレイ 1, 2 memory cell array 3 write address comparison section 4, 5 write control section 6, 7 read data comparison section 11 memory cell array

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 1対のポートに各々独立してアクセス
可能な半導体記憶装置であって、 前記ポートから同時に書込み/読出しされる互いに対応
するアドレスを有する1対の記憶素子群と、 前記各ポートから前記両記憶素子群に同時に書込みが行
われたときに一方の前記ポートからのデータを一方の前
記記憶素子群に優先して書込み可能とし、かつ他方の前
記ポートからのデータを他方の前記記憶素子群に優先し
て書込み可能とする制御手段と、 前記各ポートからのデータを読出すときに前記各記憶素
子群の互いに対応するアドレスの記憶内容を比較して互
いに異なるデータであればいずれのデータを読出すかを
選択する選択手段とを有することを特徴とする半導体記
憶装置。
1. A semiconductor memory device capable of independently accessing a pair of ports, wherein a pair of storage element groups having addresses corresponding to each other that are simultaneously written / read from the port, and the respective ports are provided. When data is simultaneously written to both of the storage element groups from one to the other, the data from one of the ports can be preferentially written to one of the storage element groups, and the data from the other port of the other can be stored. If the data is different from each other, the control means for giving priority to the element group to enable writing and the data stored in the respective memory element groups at the time of reading data from each port are compared with each other. A semiconductor memory device comprising: a selection unit for selecting whether to read data.
JP5028505A 1993-01-26 1993-01-26 Semiconductor storage device Withdrawn JPH06222976A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5028505A JPH06222976A (en) 1993-01-26 1993-01-26 Semiconductor storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5028505A JPH06222976A (en) 1993-01-26 1993-01-26 Semiconductor storage device

Publications (1)

Publication Number Publication Date
JPH06222976A true JPH06222976A (en) 1994-08-12

Family

ID=12250543

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5028505A Withdrawn JPH06222976A (en) 1993-01-26 1993-01-26 Semiconductor storage device

Country Status (1)

Country Link
JP (1) JPH06222976A (en)

Similar Documents

Publication Publication Date Title
EP0380855B1 (en) Memory configuration for use with means for interfacing a system control unit for a multi-processor system with the system main memory
JP2673390B2 (en) Multi-port memory
US5136500A (en) Multiple shared memory arrangement wherein multiple processors individually and concurrently access any one of plural memories
KR19990007287A (en) Semiconductor integrated circuit, computer system, data processing apparatus and data processing method
JP5599969B2 (en) Multi-port memory and computer system including the multi-port memory
US6308244B1 (en) Information processing apparatus with improved multiple memory access and control
JPS63201851A (en) Storage control system
JPH06222976A (en) Semiconductor storage device
JP2753129B2 (en) Semiconductor storage device
JPH05151769A (en) Multi port memory
JPH02207368A (en) Method and means for interfacing between system control unit of multiprocessor system and system main memory
JP2000340763A (en) Semiconductor storage device
JPS592058B2 (en) Storage device
JPS62175993A (en) Multi-port memory
US5349650A (en) Address translating apparatus for translating virtual address into real address without depending on processing by CPU
JPH0713859B2 (en) Multiport memory device
JPH04258886A (en) Memory circuit
JPH024020B2 (en)
KR900009212Y1 (en) Address control apparatus
JPS61211786A (en) Ic card
JPH0457287A (en) Multiport memory
JPS6336346A (en) Bank switching circuit
JPH04117697A (en) Multiport memory circuit
JPH0160864B2 (en)
JPH0660007A (en) Semiconductor storage device

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20000404