JPH0481954A - Memory device - Google Patents

Memory device

Info

Publication number
JPH0481954A
JPH0481954A JP2096301A JP9630190A JPH0481954A JP H0481954 A JPH0481954 A JP H0481954A JP 2096301 A JP2096301 A JP 2096301A JP 9630190 A JP9630190 A JP 9630190A JP H0481954 A JPH0481954 A JP H0481954A
Authority
JP
Japan
Prior art keywords
memory
data
parity
address
bit
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
JP2096301A
Other languages
Japanese (ja)
Inventor
Keiichi Toyoshima
豊嶋 敬一
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP2096301A priority Critical patent/JPH0481954A/en
Publication of JPH0481954A publication Critical patent/JPH0481954A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明はパリティチェック機能の改良を図ったメモリ装
置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Field of Industrial Application) The present invention relates to a memory device with an improved parity check function.

(従来の技術) MPU(マイクロプロセッサ)を使用したシステムでは
、主メモリを持ち、この主メモリには、MPUに実行さ
せるプログラムやデータを記憶する。
(Prior Art) A system using an MPU (microprocessor) has a main memory that stores programs and data to be executed by the MPU.

そして、この主メモリには、一般に半導体メモリを使用
する。
A semiconductor memory is generally used as this main memory.

そして、一般にメモリ内の記憶情報に誤りが無いか否か
をチエツクできるようにパリティビットを付加してパリ
ティチェックを行うようにする。
Generally, a parity check is performed by adding a parity bit so that it can be checked whether there are any errors in the information stored in the memory.

そのため、パリティビット用のメモリを設ける。Therefore, a memory for parity bits is provided.

パリティビットは通常、1ビツト使用し、アドレス単位
で、そのアドレスの記憶データにおける全ビット内容と
パリティビットの値とを加算した値が、偶数または奇数
になるようにデータ内容に応じて、パリティビットの値
を決め、データのロードやセーブ時において、アドレス
単位でそのデータビットの値をパリティビットも含めて
加算し、その結果が偶数または奇数になるかにより、デ
ータに誤りがあるか否かをチエツクするようにする。
Normally, one bit is used for the parity bit, and the parity bit is set for each address so that the sum of the contents of all bits in the data stored at that address and the value of the parity bit is an even or odd number. When loading or saving data, add the data bit values including the parity bit for each address, and determine whether there is an error in the data by determining whether the result is an even or odd number. Make sure to check.

このようなパリティチェックを行うのが、パリティチェ
ック回路であり、プログラムやデータ等を読み出し専用
メモリ(ROM)に記憶させるようにしたメモリ回路に
おいても、同様に、このメモリのパリティビットのデー
タを記憶するためのパリティ用メモリを、ROMにより
構成することになる。
A parity check circuit performs such a parity check, and a memory circuit that stores programs, data, etc. in a read-only memory (ROM) also stores the parity bit data of this memory. The parity memory for this purpose will be constituted by ROM.

ところがROMはバイト単位など、アドレスあたり複数
ビットで構成されるものであるから、ROMにより構成
されたパリティ用メモリは、アドレス毎に僅か1ビツト
しか使用されない点を考えると、アドレスあたりの利用
効率が悪く、極めて不経済である。
However, since ROM is composed of multiple bits per address, such as in bytes, parity memory composed of ROM uses only one bit per address, so the usage efficiency per address is low. It's bad and extremely uneconomical.

(発明が解決しようとする:s題> パリティビットを含んで構成されるROMによるメモリ
回路においては、プログラムやデータ記憶用のROMと
、パリティビット記憶用のROMとを使用する。しかし
、ROMはバイト単位など、アドレスあたり複数ビット
で構成されるものであるから、ROMにより構成された
パリティ用メモリは、アドレス毎に僅か1ビツトしか使
用されない点を考えると、アドレスあたりの利用効率が
悪く、極めて不経済である。
(Problem to be solved by the invention: s problem> In a memory circuit using a ROM that includes a parity bit, a ROM for storing programs and data and a ROM for storing the parity bit are used. However, the ROM Since each address is made up of multiple bits, such as byte units, parity memory made up of ROM has poor utilization efficiency per address, considering that only one bit is used for each address. It is uneconomical.

このように、パリティ用ROMはアドレスあたり複数ビ
ット構成であるが、複数ビットのうち、1ビツトしか使
用していないため、ROMの使用効率が低くなるばかり
か、利用効率の低い状態のパリティ用ROMを実装しな
ければならないことから、基板の実装上の面から考えて
も効率が悪く、コスト的に高くつくことになる。
In this way, the parity ROM has a configuration of multiple bits per address, but since only one bit of the multiple bits is used, not only does the ROM usage efficiency become low, but the parity ROM has a low usage efficiency. must be mounted, which is inefficient from the standpoint of board mounting and increases costs.

そこで、この発明の目的とするところは、パリティ用R
OMを使用したメモリ装置において、パリティ用ROM
の使用効率を高め、以て基鈑上の実装効率を向上させて
、コストダウンを図ることができるようにしたメモリ装
置を提供することにある。
Therefore, the purpose of this invention is to
In a memory device using OM, parity ROM
It is an object of the present invention to provide a memory device which is capable of increasing usage efficiency of memory devices, thereby improving mounting efficiency on a board, and reducing costs.

[発明の構成] (課題を解決するための手段) 上記目的を達成するため、本発明は次のように構成する
。すなわち、第1には、アドレス当り複数ビットで構成
されたメモリをパリテイビット用メモリとして用い、プ
ログラムやデータ等を記憶するデータ用メモリと併用し
てこのデータ用メモリのアクセスの際に、当該アクセス
したメモリアドレスの格納情報内容のパリティチェック
を行うことができるようにしたメモリ装置において、前
記パリテイビット用メモリには前記アクセスされるメモ
リアドレスに応じて定めたビット位置に当該アクセスす
るメモリアドレスの格納情報内容に対するパリティ情報
を格納する構成とし、また、前記データ用メモリをアク
セスするためのアドレス情報に応じて定められるビット
位置のデータを前記パリティビット用メモリより選択出
力する選択手段とを設けると共に、この選択手段の出力
データと前記データ用メモリの読出しデータとからパリ
ティチェックを行うようにする。
[Configuration of the Invention] (Means for Solving the Problems) In order to achieve the above object, the present invention is configured as follows. That is, first, a memory composed of multiple bits per address is used as a memory for parity bits, and is used in conjunction with a data memory for storing programs, data, etc., when accessing the data memory. In a memory device capable of performing a parity check on the stored information contents of an accessed memory address, the parity bit memory includes a bit position determined according to the accessed memory address in the memory address to be accessed. and a selection means for selectively outputting data at a bit position determined according to address information for accessing the data memory from the parity bit memory. At the same time, a parity check is performed from the output data of this selection means and the read data of the data memory.

また、第2には、アドレス当り複数ビットで構成された
メモリをパリテイビット用メモリとして用い、プログラ
ムやデータ等を記憶するデータ用メモリと併用してこの
データ用メモリのアクセスの際に、当該アクセスしたメ
モリアドレスの格納情報内容のパリティチェックを行う
ことができるようにしたメモリ装置において、前記デー
タ用メモリの読出しデータよりパリティビットを生成す
るパリティ生成手段と、前記データ用メモリをアクセス
するためのアドレス情報に応じて定められるビット位置
のデータを前記パリテイビット用メモリより選択出力す
る選択手段と、この選択手段の出力データと前記パリテ
ィ生成手段の生成データを比較して一致/不一致を判定
し、パリティチェック判定結果を出力する判定手段とを
有し、前記パリテイビット用メモリには前記アクセスさ
れるメモリアドレスに応じて定めたビット位置に当該ア
クセスするメモリアドレスの格納情報内容に対するパリ
ティ情報を格納することを特徴とする。
Second, a memory composed of multiple bits per address is used as a parity bit memory, and is used in conjunction with a data memory for storing programs, data, etc. when accessing this data memory. A memory device capable of performing a parity check on stored information contents of an accessed memory address, comprising: a parity generating means for generating a parity bit from read data of the data memory; a selection means for selectively outputting data at a bit position determined according to address information from the parity bit memory; and a selection means for comparing the output data of the selection means with the data generated by the parity generation means to determine coincidence/mismatch. and determining means for outputting a parity check determination result, and the parity bit memory stores parity information for the storage information content of the accessed memory address at a bit position determined according to the accessed memory address. It is characterized by being stored.

(作 用) このような構成の本装置は、第1の構成の場合、アドレ
ス当り複数ビットで構成されたメモリをパリテイビット
用メモリとして用いており、プログラムやデータ等を記
憶するデータ用メモリと併用してこのデータ用メモリの
アクセスの際に、当該アクセスしたメモリアドレスの格
納情報内容のパリティチェックを行うが、前記パリテイ
ビット用メモリには前記アクセスされるメモリアドレス
に応じて定めたビット位置に当該アクセスするメモリア
ドレスの格納情報内容に対するパリティ情報を格納して
あり、また、前記選択手段は前記データ用メモリをアク
セスするためのアドレス情報に応じて定められるビット
位置のデータを前記パリテイビット用メモリより選択出
力する。そして、この選択手段の出力データと前記デー
タ用メモリの読出しデータとからパリティチェックを行
うようにする。
(Function) In the first configuration, this device with such a configuration uses a memory composed of multiple bits per address as a parity bit memory, and a data memory for storing programs, data, etc. When this data memory is accessed, a parity check is performed on the stored information content of the accessed memory address, and the parity bit memory contains a bit determined according to the accessed memory address. parity information for the storage information content of the memory address to be accessed is stored in the position, and the selection means selects the data at the bit position determined according to the address information for accessing the data memory to the parity. Select and output from bit memory. Then, a parity check is performed from the output data of this selection means and the read data of the data memory.

従って、パリティ用メモリがアドレスにつき複数のビッ
トで構成されるものを用いる場合に、パリティ用メモリ
のアドレス空間以上のデータ用メモリに対してのパリテ
ィビットをパリティ用メモリのビットアサインによりア
ドレスを割り当ててパリティ用メモリの数量を削減する
、すなわち、1アドレスを複数ビットで構成するメモリ
をパリティ用メモリとして用いた場合に、そのメモリの
データビット毎に異なるアドレスを割り当て、選択手段
でアクセスアドレスに対応したビット位置のデータを選
択抽出し、該当アドレスのパリティビットを得て、パリ
ティチェックする方式とすることができ、一つのアドレ
スの異なる各ビットを、異なるデータ用メモリのパリテ
ィビットの格納に利用することで、パリテイビット用メ
モリの利用効率を向上させることができると共に、パリ
テイビット用メモリの利用効率を高めたことで、パリテ
イビット用メモリはデータ用メモリの占めるアドレス空
間より遥かに少ない容量のメモリで済み、従って、パリ
テイビット用メモリは基板実装上も、占有スペースを少
なくすることができるから、コストダウンを図ることが
できる。
Therefore, when using a parity memory that consists of multiple bits per address, the parity bit for the data memory that is larger than the address space of the parity memory must be assigned to the address using the bit assignment of the parity memory. To reduce the amount of parity memory, that is, when a memory in which one address consists of multiple bits is used as parity memory, a different address is assigned to each data bit of that memory, and a selection means is used to correspond to the access address. It is possible to select and extract data at a bit position, obtain the parity bit of the corresponding address, and perform a parity check, and each different bit of one address can be used to store the parity bit of a memory for different data. In addition to improving the usage efficiency of parity bit memory, the memory for parity bits has a much smaller capacity than the address space occupied by data memory. Therefore, since the parity bit memory can occupy less space when mounted on a board, costs can be reduced.

また、第2の構成においては、アドレス当り複数ビット
で構成されたメモリをパリテイビット用メモリとして用
いており、このパリテイビット用メモリの記憶情報は、
プログラムやデータ等を記憶するデータ用メモリと併用
してこのデータ用メモリのアクセスの際に、当該アクセ
スしたメモリアドレスの格納情報内容のパリティチェッ
クを行うために使用するが、本システムではメモリアク
セスを行うと、パリティ生成手段により、前記データ用
メモリの読出しデータよりパリティビットを生成する。
Furthermore, in the second configuration, a memory composed of multiple bits per address is used as a memory for parity bits, and the information stored in this memory for parity bits is as follows:
When this data memory is accessed in conjunction with a data memory that stores programs, data, etc., it is used to check the parity of the information stored at the accessed memory address.In this system, memory access is When this is done, the parity generating means generates a parity bit from the read data of the data memory.

また、同時に、前記選択手段は前記データ用メモリをア
クセスするためのアドレス情報に応じて定められるビッ
ト位置のデータを前記バリティビット用メモリより選択
出力し、この選択手段の出力データと前記パリティ生成
手段の生成データは判定手段に入力されてここで両者は
比較され、一致/不一致が判定される。そして、判定手
段はその結果に応じたパリティチェック判定結果を出力
する。
At the same time, the selection means selects and outputs data at a bit position determined according to the address information for accessing the data memory from the parity bit memory, and combines the output data of the selection means with the parity generation. The data generated by the means is input to the determining means, where the two are compared and a match/mismatch is determined. Then, the determining means outputs a parity check determination result according to the result.

前記選択手段は前記データ用メモリをアクセスするため
のアドレス情報に応じて定められるビット位置のデータ
を前記パリティビット用メモリより選択して出力する機
能を有するから、前記パリテイビット用メモリには、前
記アクセスされるメモリアドレスに応じて定めたビット
位置に当該アクセスするメモリアドレスの格納情報内容
に対するパリティ情報を格納すると、異なるメモリアド
レスに対して、そのアドレスでの選択ビット位置を異な
らせることができるので、データ用メモリのアドレス空
間より小さいアドレス空間のメモリで、パリテイビット
用メモリを賄うことができる。
Since the selection means has a function of selecting and outputting data at a bit position determined according to address information for accessing the data memory from the parity bit memory, the parity bit memory includes: By storing parity information for the storage information content of the memory address to be accessed in a bit position determined according to the memory address to be accessed, the selection bit position at that address can be made different for different memory addresses. Therefore, the parity bit memory can be filled with a memory whose address space is smaller than the address space of the data memory.

例えば、8ビツト構成のメモリであれば、8倍のアドレ
ス空間を持つデータ用メモリのパリティデータを扱うこ
とができ、4ビツト構成のメモリであれば、4倍のアド
レス空間を持つデータ用メモリのパリティデータを扱う
ことができる。従って、データ用メモリより大幅に少な
いアドレス空間を持つパリテイビット用メモリがあれば
良く、基板上の実装空間を少なくできると共に1、パリ
テイビット用メモリはメモリの利用効率を高くできて無
駄が無くなり、特に大容量化したメモリ装置において、
大幅なコストダウンを図ることができる。
For example, an 8-bit memory can handle the parity data of a data memory that has eight times the address space, and a 4-bit memory can handle the parity data of a data memory that has four times the address space. Can handle parity data. Therefore, it is only necessary to have a memory for parity bits that has a much smaller address space than memory for data, which reduces the mounting space on the board. Especially in memory devices that have increased in capacity,
Significant cost reductions can be achieved.

(実施例) 以下、本発明の一実施例について、図面を参照して説明
する。
(Example) Hereinafter, an example of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例である。図において、12.
13はtiAl及び第2のデータ用ROMであり、前者
はアドレス0〜(s−1)までのアドレス空間を持ち、
プログラムやデータが記憶され、後者はアドレス層〜(
n−1)までのアドレス空間を持ち、プログラムやデー
タが記憶される。ここで、話を分かり易くするため、0
〜(s−1)のアドレス空間の大きさと、−〜(n−1
)のアドレス空間の大きさとは、その大きさの絶対値が
等しいものであるとする。例えば、双方とも18進数で
FFFFの如きである。
FIG. 1 shows an embodiment of the present invention. In the figure, 12.
13 is tiAl and a second data ROM, the former having an address space from address 0 to (s-1),
Programs and data are stored, and the latter is the address layer ~ (
It has an address space up to n-1), and programs and data are stored therein. Here, to make the story easier to understand, 0
The address space size of ~(s-1) and -~(n-1
) are assumed to have the same absolute value. For example, both are hexadecimal numbers such as FFFF.

21はパリティビット用ROM (PB−ROM)であ
り、話を分かり易くするため、これもアドレス空間が前
記第1及び第2のデータ用ROM12. lBと少なく
とも同一の大きさを確保できるだけのものを使用する。
21 is a parity bit ROM (PB-ROM), and for the sake of clarity, this also has an address space similar to that of the first and second data ROMs 12. Use one that can ensure at least the same size as 1B.

従って、前記第1及び第2のデータ用ROM12. 1
3のアドレス空間がFPFPであるとすれば、パリティ
ビット用ROM21も同様に、FFFFのアドレス空間
を確保できるものを使用する。
Therefore, the first and second data ROMs 12. 1
If the address space of No. 3 is FPFP, then the parity bit ROM 21 should similarly be one that can secure the address space of FFFF.

126 、217はそれぞれ前記第1及び第2のデータ
用ROM12,13に対応するパリティビットで、1個
のパリティビット用ROM21の中に記憶するものであ
る。ここでは図に示したように、データ用ROM12の
パリティビットを、パリティビット用ROM21の第7
ビツト目に、そして、データ用ROM13のパリティビ
ットを、データ用ROM12のパリティビットを、パリ
ティビット用ROM21の第6ビツト目に置くようにし
て、一つのアドレスの構成ビットのうち異なるビットを
使用してパリティビットを置くようにし、未使用ビット
をできるだけ無くすようにして有効利用を図るようにし
ている。
Parity bits 126 and 217 correspond to the first and second data ROMs 12 and 13, respectively, and are stored in one parity bit ROM 21. Here, as shown in the figure, the parity bit of the data ROM 12 is set to the seventh bit of the parity bit ROM 21.
The parity bit of the data ROM 13 is placed at the 6th bit of the parity bit ROM 21, and the parity bit of the data ROM 12 is placed at the 6th bit of the parity bit ROM 21, thereby using different bits among the constituent bits of one address. In order to make effective use of the data, a parity bit is placed in the memory, and unused bits are eliminated as much as possible.

そして、そのパリティビットを利用するにはデータ用R
OM12がセレクトされるアドレス領域のときは、パリ
ティビット用ROM21の第7ビツト目のパリティビッ
ト126を選択して使用し、データ用ROM13がセレ
クトされるアドレス領域のときは、パリティビット用R
OM21の第6ビツト目のパリティビット127を選択
して使用する。
Then, to use the parity bit, R for data
When OM12 is the selected address area, the 7th bit parity bit 126 of parity bit ROM 21 is selected and used, and when data ROM 13 is the selected address area, the parity bit R is selected and used.
The sixth parity bit 127 of OM21 is selected and used.

従来はアドレス空間が異なるデータ用ROM12、13
のパリティビットを、第1図に示したパリティビット1
26 、217のように、1個のパリティビット用RO
M21の中に記憶することはできなかったが、本発明で
は一つのアドレスの異なる各ビットを、異なるデータ用
ROMのパリティビットの格納に利用することで、パリ
ティビット用ROM21の利用効率を向上させる。
Conventionally, data ROMs 12 and 13 have different address spaces.
parity bit 1 shown in Figure 1.
26, 217, one parity bit RO
Although it was not possible to store the parity bits in the M21, the present invention improves the usage efficiency of the parity bit ROM 21 by using different bits of one address to store parity bits of different data ROMs. .

以上が、本発明の原理であるが、実際にハードウェアと
して使用するに当たり、その回路の具体例を次に説明す
る。
The principle of the present invention has been described above, and a specific example of the circuit when actually used as hardware will be described next.

ここでは、第1及び第2のデータ用ROM 12゜13
及びパリティビット用ROM21を8とブト/アドレス
で同容量のものを例として説明する。
Here, the first and second data ROMs 12°13
An example will be explained in which the parity bit ROM 21 has the same capacity as 8 buttes/addresses.

第2図は本発明を実現する一実施例であり、図中31は
パリティ生成部であり、データ用ROM12、13から
読み出されたデータよりパリティビットを生成するもの
である。32はパリティビット用セレクタであり、アド
レスバス41により供給されるアドレス情報のうち、上
位アドレス情報により、セレクタ32は参照すべきビッ
トを選択し、パリテイビット用ROM21の出力データ
のうち、その選択したビットの情報を抽出して出力する
FIG. 2 shows an embodiment of the present invention, in which reference numeral 31 is a parity generation section, which generates parity bits from data read from the data ROMs 12 and 13. 32 is a selector for parity bits, and the selector 32 selects the bit to be referenced based on the upper address information from among the address information supplied by the address bus 41, and selects the selected bit from among the output data of the ROM 21 for parity bits. Extract and output the information of the bits.

33はコンパレータで、パリティ生成部31の出力する
生成パリティデータ45とセレクタ32の出力する選択
抽出されたパリティビットのデータ44とを比較して一
致すれば誤り無しの、そして、不一致ならば誤りのパリ
ティチェック果4Bを出力するものである。
33 is a comparator which compares the generated parity data 45 outputted by the parity generation unit 31 and the selected extracted parity bit data 44 outputted by the selector 32, and if they match, there is no error, and if they do not match, there is no error. It outputs the parity check result 4B.

前記アドレスバス41は、アドレス情報を入力するもの
で、アドレス情報は図示しないCPUにより供給される
。42はデータバス、43はパリテイビット用ROM2
1から読み出されたパリティビット群のデータ、44は
セレクタ32により選択抽出されたパリティビットのデ
ータ、45はパリティ生成部31により生成された生成
パリティビットのデータ、46はコンパレータ33によ
るパリティチェック結果のデータを示す。
The address bus 41 is used to input address information, and the address information is supplied by a CPU (not shown). 42 is a data bus, 43 is ROM2 for parity bit
1, 44 is the parity bit data selected and extracted by the selector 32, 45 is the generated parity bit data generated by the parity generator 31, and 46 is the parity check result by the comparator 33. The following data is shown.

このような構成において、データ用ROM 12゜13
に対応するパリティビットを第1図に示したように、パ
リテイビット用ROM21に書き込み、実装する。
In such a configuration, data ROM 12°13
As shown in FIG. 1, the parity bit corresponding to the parity bit is written and mounted in the parity bit ROM 21.

アドレスバス41により供給されるアドレス情報は、デ
ータ用ROM12.18並びにパリテイビット用ROM
21とセレクタ32とに入力され、これらは当該アドレ
ス情報に対応したアドレスに割り付けであるものが選択
されて、その割付られたアドレス内のデータが読み出さ
れる。
The address information supplied by the address bus 41 is sent to data ROMs 12 and 18 and parity bit ROMs 12 and 18.
21 and selector 32, the one assigned to the address corresponding to the address information is selected, and the data in the assigned address is read out.

ここで、アドレスバス41により供給されるアドレス情
報のうち、上位アドレス情報により、セレクタ32は参
照すべきビットを選択し、パリテイビット用ROM21
の出力データのうち、その選択したビットの情報を抽出
して出力する。
Here, of the address information supplied by the address bus 41, the selector 32 selects the bit to be referenced based on the upper address information, and selects the bit to be referenced from the parity bit ROM 21.
Out of the output data, the information of the selected bit is extracted and output.

例えば、上位アドレス情報がデータ用ROM12の割付
アドレスに対応するものであれば、当該データ用ROM
12のパリテイビットが記憶されている第7ビツト目の
データをセレクトしてコンパレータ33へ出力し、また
、上位アドレス情報がデータ用ROM13の割付アドレ
スに対応するものであれば、当該データ用ROM13の
パリテイビットが記憶されている第6ビツト目のデータ
をセレクトしてコンパレータ33へ出力すると云った具
合である。
For example, if the upper address information corresponds to the allocated address of the data ROM 12, the data ROM 12
The 7th bit data in which 12 parity bits are stored is selected and output to the comparator 33, and if the upper address information corresponds to the allocated address of the data ROM 13, the data ROM 13 is selected and outputted to the comparator 33. The data of the sixth bit in which the parity bit of is stored is selected and outputted to the comparator 33.

そのため、パリテイビット用ROM21の出力はデータ
用ROM12.13の共通アドレスである下位アドレス
対応のものとなっていても、このセレクタ32により、
今、実際に指定されているアドレス対応のパリテイビッ
トが選択されてコンパレータ33に入力されることにな
る。
Therefore, even if the output of the parity bit ROM 21 corresponds to the lower address, which is the common address of the data ROMs 12 and 13, the selector 32
Now, the parity bit corresponding to the address actually designated is selected and input to the comparator 33.

一方、アドレスバス41の供給するアドレス情報で指定
されるデータ用ROM12または工3がデータバス42
上に出力するデータを元に、パリティ生成部31はパリ
ティビットを生成し、これを生成パリティデータ45と
してコンパレータ33に送る。コンパレータ33はこの
生成パリティデータ45と21がらのパリティビットデ
ータ44とを比較し、一致すれば誤り無しの、そして、
不一致ならば誤りのバリティチェク結果46を出力する
On the other hand, the data ROM 12 or device 3 specified by the address information supplied by the address bus 41 is connected to the data bus 41.
Based on the data output above, the parity generation unit 31 generates a parity bit, and sends this to the comparator 33 as generated parity data 45. The comparator 33 compares this generated parity data 45 with the parity bit data 44 of 21, and if they match, there is no error, and
If they do not match, an erroneous parity check result 46 is output.

これにより、ROMパリティのチエツクを行える。This allows the ROM parity to be checked.

このように本装置は、アドレス当り複数ビットで構成さ
れたメモリをパリティビット用メモリとして用い、プロ
グラムやデータ等を記憶するデータ用メモリと併用して
このデータ用メモリのアクセスの際に、当該アクセスし
たメモリアドレスの格納情報内容のパリティチェックを
行うことができるようにしたメモリ装置において、前記
データ用メモリの読出しデータよりパリティチェックを
生成するパリティ生成手段と、前記データ用メモリをア
クセスするためのアドレス情報に応じて定められるビッ
ト位置のデータを前記パリテイビット用メモリより選択
出力する選択手段と、この選択手段の出力データと前記
パリティ生成手段の生成データを比較して一致/不一致
を判定し、パリティチェック判定結果を出力する判定手
段とを有し、前記パリティビット用メモリには前記アク
セスされるメモリアドレスに応じて定めたビット位置に
当該アクセスするメモリアドレスの格納情報内容に対す
るパリティ情報を格納するようにしたものである。
In this way, this device uses a memory composed of multiple bits per address as a memory for parity bits, and uses it in conjunction with a data memory for storing programs, data, etc. when accessing this data memory. A memory device capable of performing a parity check on information stored in a memory address stored in the data memory, comprising: a parity generating means for generating a parity check from read data of the data memory; and an address for accessing the data memory. a selection means for selectively outputting data at a bit position determined according to the information from the parity bit memory; and comparing the output data of the selection means and the data generated by the parity generation means to determine whether they match or do not match; and determining means for outputting a parity check determination result, and the parity bit memory stores parity information corresponding to the storage information content of the accessed memory address at a bit position determined according to the accessed memory address. This is how it was done.

そして、このような構成の本装置は、アドレス当り複数
ビットで構成されたメモリをパリテイビット用メモリと
して用いており、このパリテイビット用メモリの記憶情
報は、プログラムやデータ等を記憶するデータ用メモリ
と併用してこのデータ用メモリのアクセスの際に、当該
アクセスしたメモリアドレスの格納情報内容のパリティ
チェックを行うために使用するが、本システムではメモ
リアクセスを行うと、パリティ生成手段により、前記デ
ータ用メモリの読出しデータよりパリティビットを生成
すると共に、また、前記選択手段は前記データ用メモリ
をアクセスするためのアドレス情報に応じて定められる
ビット位置のデータを前記パリテイビット用メモリより
選択出力し、この選択手段の出力データと前記パリティ
生成手段の生成データは判定手段に入力されて両者が比
較され、一致/不一致が判定されることにより、パリテ
ィチェックを行うようにしたものである。
This device with such a configuration uses a memory composed of multiple bits per address as a memory for parity bits, and the storage information of this memory for parity bits is data that stores programs, data, etc. When this data memory is accessed, it is used in conjunction with the data memory to check the parity of the information stored at the accessed memory address.In this system, when the memory is accessed, the parity generation means A parity bit is generated from read data of the data memory, and the selection means selects data at a bit position determined according to address information for accessing the data memory from the parity bit memory. The output data of the selection means and the data generated by the parity generation means are input to a determination means and compared, and a parity check is performed by determining whether they match or do not match.

このように、前記選択手段は前記データ用メモリをアク
セスするためのアドレス情報に応じて定められるビット
位置のデータを前記パリテイビット用メモリより選択し
て出力する機能を有するから、前記パリテイビット用メ
モリには、前記アクセスされるメモリアドレスに応じて
定めたビット位置に当該アクセスするメモリアドレスの
格納情報内容に対するパリティ情報を格納すると、異な
るメモリアドレスに対して、そのアドレスでの選択ビッ
ト位置を異ならせることができるので、データ用メモリ
のアドレス空間より小さいアドレス空間のメモリで、パ
リテイビット用メモリを賄うことができる。例えば、8
ビツト構成のメモリであれば、8倍のアドレス空間を持
つデータ用メモリのパリティデータを扱うことができ、
4ビツト構成のメモリであれば、4倍のアドレス空間を
持つデータ用メモリのパリティデータを扱うことができ
る。
In this way, the selection means has a function of selecting and outputting data at a bit position determined according to address information for accessing the data memory from the parity bit memory. When parity information for the storage information content of the memory address to be accessed is stored in a bit position determined according to the memory address to be accessed, the selected bit position at that address is stored in the memory for a different memory address. Since the parity bit memory can be made different, a memory with an address space smaller than that of the data memory can serve as the parity bit memory. For example, 8
If it is a bit-structured memory, it can handle parity data of a data memory that has eight times the address space.
A memory with a 4-bit configuration can handle parity data in a data memory that has four times the address space.

従って、本方式によれば、データ用メモリより大幅に少
ないアドレス空間を持つパリテイビット用メモリがあれ
ば良く、基板上の実装空間を少なくできると共に、パリ
テイビット用メモリはメモリの利用効率を高くできて無
駄が無くなり、特に大容量化したメモリ装置において、
大幅なコストダウンを図ることができる。
Therefore, according to this method, it is only necessary to have a memory for parity bits that has a much smaller address space than memory for data, which can reduce the mounting space on the board, and the memory for parity bits can improve memory usage efficiency. It can be made more expensive and there is no waste, especially in memory devices with increased capacity.
Significant cost reductions can be achieved.

尚、本発明は上記し、且つ、図面に示す実施例に限定す
ることなく、その要旨を変更しない範囲内で適宜変形し
て実施し得るものであり、例えば、上記実施例ではデー
タ用メモリの読出しデータよりパリティを生成するパリ
ティ生成手段を設けたが、パリティ生成手段を設けずと
も、データ用メモリの読出しデータと選択手段(セレク
タ)からの抽出出力とを加算してパリティを得、これを
もとにパリティチェックする方式とすることもできる。
It should be noted that the present invention is not limited to the embodiments described above and shown in the drawings, but can be implemented with appropriate modifications within the scope of the gist thereof.For example, in the above embodiments, the data memory Although a parity generation means for generating parity from read data is provided, it is also possible to obtain parity by adding the read data of the data memory and the extracted output from the selection means (selector) without providing the parity generation means. It is also possible to use a method that performs a parity check.

また、ROMを例に説明したが、SRAM(スタティッ
クRAM)やDRAM等であっても、複数ビット構成の
メモリ素子しか使用できない場合には本発明の考え方は
そのまま適用できる。
Further, although the explanation has been given using a ROM as an example, the concept of the present invention can be applied as is to SRAM (static RAM), DRAM, etc., if only a memory element having a plurality of bits can be used.

[発明の効果] 以上詳述したように本発明によれば、複数ビット構成の
パリテイビット用メモリを用いる場合に、一つのアドレ
スの異なる各ビットを、それぞれ異なるデータ用メモリ
素子のパリティビットの格納に利用するQとで、パリテ
ィビット用メモリ素子の利用効率を向上させることがで
きると共に、パリティビット用メモリ素子の利用効率を
高めたことでデータ用メモリ素子の占めるアドレス空間
より遥かに少ない容量のメモリ素子で済み、従って、パ
リティビット用メモリ素子は基板実装上も、占有スペー
スを少なくすることができるから、コストダウンを図る
ことができる等、優れた特徴を有するメモリ装置を提供
することができる。
[Effects of the Invention] As described in detail above, according to the present invention, when using a parity bit memory having a plurality of bits, each different bit of one address is connected to the parity bit of each different data memory element. Q used for storage can improve the usage efficiency of the parity bit memory element, and by increasing the usage efficiency of the parity bit memory element, the capacity is much smaller than the address space occupied by the data memory element. Therefore, the parity bit memory element can occupy less space when mounted on a board, so it is possible to provide a memory device with excellent features such as cost reduction. can.

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

第1図は本発明の詳細な説明するための図、第2図は本
発明の一実施例を示すブロック構成図である。 12.13・・・データ用ROM。 21・・・パリテイビット用ROM。 31・・・パリティ生成部、32・・・セレクタ、33
・・・コンパレータ。 出願人代理人 弁理士 鈴江武彦
FIG. 1 is a diagram for explaining the present invention in detail, and FIG. 2 is a block diagram showing an embodiment of the present invention. 12.13... ROM for data. 21...ROM for parity bit. 31... Parity generation unit, 32... Selector, 33
···comparator. Applicant's agent Patent attorney Takehiko Suzue

Claims (2)

【特許請求の範囲】[Claims] (1)アドレス当り複数ビットで構成されたメモリをパ
リテイビット用メモリとして用い、プログラムやデータ
等を記憶するデータ用メモリと併用してこのデータ用メ
モリのアクセスの際に、当該アクセスしたメモリアドレ
スの格納情報内容のパリテイチェックを行うことができ
るようにしたメモリ装置において、 前記パリテイビット用メモリには前記アクセスされるメ
モリアドレスに応じて定めたビット位置に当該アクセス
するメモリアドレスの格納情報内容に対するパリテイ情
報を格納する構成とし、また、 前記データ用メモリをアクセスするためのアドレス情報
に応じて定められるビット位置のデータを前記パリテイ
ビット用メモリより選択出力する選択手段とを設けると
共に、この選択手段の出力データと前記データ用メモリ
の読出しデータとからパリテイチェックを行うようにす
ることを特徴とするメモリ装置。
(1) A memory composed of multiple bits per address is used as a memory for parity bits, and when this data memory is accessed in conjunction with a data memory that stores programs, data, etc., the accessed memory address In a memory device capable of performing a parity check of the stored information contents, the parity bit memory stores the stored information of the memory address to be accessed at a bit position determined according to the memory address to be accessed. It is configured to store parity information for the content, and further includes a selection means for selectively outputting data at a bit position determined according to address information for accessing the data memory from the parity bit memory, A memory device characterized in that a parity check is performed from the output data of the selection means and the read data of the data memory.
(2)アドレス当り複数ビットで構成されたメモリをパ
リテイビット用メモリとして用い、プログラムやデータ
等を記憶するデータ用メモリと併用してこのデータ用メ
モリのアクセスの際に、当該アクセスしたメモリアドレ
スの格納情報内容のパリテイチェックを行うことができ
るようにしたメモリ装置において、 前記データ用メモリの読出しデータよりパリテイビット
を生成するパリテイ生成手段と、 前記データ用メモリをアクセスするためのアドレス情報
に応じて定められるビット位置のデータを前記パリテイ
ビット用メモリより選択出力する選択手段と、 この選択手段の出力データと前記パリテイ生成手段の生
成データを比較して一致/不一致を判定し、パリテイチ
ェック判定結果を出力する判定手段とを有し、 前記パリテイビット用メモリには前記アクセスされるメ
モリアドレスに応じて定めたビット位置に当該アクセス
するメモリアドレスの格納情報内容に対するパリテイ情
報を格納することを特徴とするメモリ装置。
(2) A memory composed of multiple bits per address is used as a memory for parity bits, and when this data memory is accessed, the accessed memory address is used in conjunction with a data memory that stores programs, data, etc. A memory device capable of performing a parity check on stored information contents, comprising: parity generation means for generating a parity bit from read data of the data memory; and address information for accessing the data memory. a selection means for selectively outputting data at a bit position determined according to the parity bit memory from the parity bit memory; and determining means for outputting a check check result, and the parity bit memory stores parity information for the storage information content of the accessed memory address at a bit position determined according to the accessed memory address. A memory device characterized by:
JP2096301A 1990-04-13 1990-04-13 Memory device Pending JPH0481954A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2096301A JPH0481954A (en) 1990-04-13 1990-04-13 Memory device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2096301A JPH0481954A (en) 1990-04-13 1990-04-13 Memory device

Publications (1)

Publication Number Publication Date
JPH0481954A true JPH0481954A (en) 1992-03-16

Family

ID=14161211

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2096301A Pending JPH0481954A (en) 1990-04-13 1990-04-13 Memory device

Country Status (1)

Country Link
JP (1) JPH0481954A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0652064A (en) * 1992-07-29 1994-02-25 Nec Corp Data rewrite system and its circuit in memory circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0652064A (en) * 1992-07-29 1994-02-25 Nec Corp Data rewrite system and its circuit in memory circuit

Similar Documents

Publication Publication Date Title
US6381668B1 (en) Address mapping for system memory
US4926314A (en) Method and apparatus for determining available memory size
US5341486A (en) Automatically variable memory interleaving system
EP0507577B1 (en) Flexible N-way memory interleaving
US7577819B2 (en) Vector indexed memory unit and method
US4254463A (en) Data processing system with address translation
US4500962A (en) Computer system having an extended directly addressable memory space
US6131146A (en) Interleave memory control apparatus and method
EP0862761A2 (en) Data error detection and correction for a shared sram
JP2768503B2 (en) Virtual memory address space access control method
CA2012318C (en) Microprocessor system having an extended address space
JPH0481954A (en) Memory device
AU616653B2 (en) Method and apparatus for determining available memory size
US6742077B1 (en) System for accessing a memory comprising interleaved memory modules having different capacities
US8762683B2 (en) Device and method for memory addressing
JP2634488B2 (en) Computer equipment
JPH07334420A (en) Extended memory control circuit
KR100207335B1 (en) Microcomputer and address generation method
JP3665349B2 (en) Integrated circuit
JPH03185536A (en) Memory addressing system for microcomputer
JPH07168756A (en) Memory access controller
JPH03137744A (en) Memory control system
JPH09237218A (en) Interleaving system between different capacity banks in bus connected computer
JPH06309223A (en) Storage device with memory interleaving function
JPS61147352A (en) Computer device