JPH0652064A - Data rewrite system and its circuit in memory circuit - Google Patents
Data rewrite system and its circuit in memory circuitInfo
- Publication number
- JPH0652064A JPH0652064A JP4202333A JP20233392A JPH0652064A JP H0652064 A JPH0652064 A JP H0652064A JP 4202333 A JP4202333 A JP 4202333A JP 20233392 A JP20233392 A JP 20233392A JP H0652064 A JPH0652064 A JP H0652064A
- Authority
- JP
- Japan
- Prior art keywords
- memory
- eeprom
- data
- rom
- parity 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
Links
- 238000000034 method Methods 0.000 claims description 19
- 238000013500 data storage Methods 0.000 abstract description 7
- 238000010586 diagram Methods 0.000 description 11
- 230000004308 accommodation Effects 0.000 description 8
- 230000002093 peripheral effect Effects 0.000 description 3
- 101001106432 Homo sapiens Rod outer segment membrane protein 1 Proteins 0.000 description 1
- 102100021424 Rod outer segment membrane protein 1 Human genes 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、メモリパリティつきメ
モリ回路に関し、特にEEPROMとROMとを用い、
EEPROMとROMとのパリティデータを同一のパリ
ティデータ収容用EEPROMに収容するマイクロプロ
セッサ周辺回路用のメモリ回路及びデータ書き換え方式
に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a memory circuit with memory parity, and in particular, using an EEPROM and a ROM,
The present invention relates to a memory circuit for a microprocessor peripheral circuit that stores parity data of an EEPROM and a ROM in the same EEPROM for storing parity data, and a data rewriting method.
【0002】[0002]
【従来の技術】従来、マイクロプロセッサ周辺回路用の
メモリ回路において、メモリ素子としてEEPROM
(電気的再書き込み可能な読み出し専用メモリ)および
ROM(読み出し専用メモリ)を有し、同一方式のメモ
リパリティチェックを行う場合においては、EEPRO
Mの記憶内容変更時には、この変更に伴って、パリティ
データの変更も必要となる。このときパリティデータ収
容用EEPROMの書き換えは、つぎの二通りの方法に
よって行われていた。2. Description of the Related Art Conventionally, in a memory circuit for a microprocessor peripheral circuit, an EEPROM is used as a memory element.
(Electrically Rewritable Read-Only Memory) and ROM (Read-Only Memory)
When the storage content of M is changed, the parity data must be changed accordingly. At this time, rewriting of the EEPROM for accommodating parity data has been performed by the following two methods.
【0003】すなわち第一には、マイクロプロセッサの
メモリ空間に余裕がある場合であるが、メモリ空間上に
パリティデータ収容用EEPROMを割り付ける方法で
ある。この方法によると、パリティデータ収容用EEP
ROMに割当てられたメモリ空間に対し新たなパリティ
データを書き込むことによって、パリティデータ収容用
EEPROMの書き換えが可能となった。First, although there is a margin in the memory space of the microprocessor, a method of allocating an EEPROM for accommodating parity data in the memory space is the first. According to this method, an EEP for accommodating parity data
By writing new parity data in the memory space assigned to the ROM, the EEPROM for storing the parity data can be rewritten.
【0004】第二には、前記第一の方法と違いメモリ空
間上に余裕がない場合であるが、バンク切り換えによっ
て複数のメモリ空間面を構成させ、通常はマイクロプロ
セッサに接続されていないパリティデータ収容用EEP
ROMを、パリティデータの書き換え時のみバンク切り
換えによってマイクロプロセッサに接続し、パリティデ
ータを書き換える方法である。この方法によると、パリ
ティデータ収容用EEPROMに割当てられた面および
メモリ空間に対しマイクロプロセッサから新たなパリテ
ィデータを書き込むことによって、パリティデータ収容
用EEPROMの書き換えが可能となった。Second, unlike the first method, there is no space in the memory space, but a plurality of memory space planes are formed by switching banks, and parity data that is not normally connected to a microprocessor is used. EEP for accommodation
This is a method in which the ROM is connected to the microprocessor by bank switching only when the parity data is rewritten and the parity data is rewritten. According to this method, the microprocessor can rewrite the parity data accommodating EEPROM by writing new parity data to the plane and the memory space allocated to the parity data accommodating EEPROM.
【0005】[0005]
【発明が解決しようとする課題】これら従来のメモリパ
リティつきメモリ回路では、パリティデータ収容用EE
PROMのデータ書き換え時に、前項第一の方法のよう
にメモリ空間上にパリティデータ収容用EEPROMを
割り付けることが可能である場合には書き換え可能であ
るが、メモリ空間上に余裕がない場合には書き換えが不
可能となる。In these conventional memory circuits with memory parity, the EE for accommodating parity data is used.
When rewriting the PROM data, it is possible to rewrite when the EEPROM for storing parity data can be allocated in the memory space as in the method of the first paragraph above, but rewriting when there is no room in the memory space. Is impossible.
【0006】また、前項第二の方法のようにパリティデ
ータ収容用EEPROMをバンク切り換えによって別の
面に割り付ける場合には、パリティデータ書き換えの事
前及び事後のそれぞれの場合において、バンク切り換え
の操作を伴わなければならず、バンク切り換え面数に余
裕がない場合には、前項第二の方法によるパリティデー
タ収容用EEPROMのメモリ空間割り付けも不可能と
なる。Further, when the EEPROM for accommodating the parity data is allocated to another surface by the bank switching as in the second method in the preceding paragraph, the bank switching operation is required before and after the parity data rewriting. If there is no margin in the number of banks to be switched, it is impossible to allocate the memory space of the EEPROM for accommodating the parity data by the second method described in the preceding paragraph.
【0007】本発明の目的は、メモリ空間の使用を節約
するメモリ回路におけるデータ書き換え方式及びその回
路を提供することにある。SUMMARY OF THE INVENTION It is an object of the present invention to provide a data rewriting method in a memory circuit that saves the use of memory space, and a circuit therefor.
【0008】[0008]
【課題を解決するための手段】前記目的を達成するた
め、本発明に係るメモリ回路におけるデータ書き換え方
式は、それぞれ等しいメモリ容量をもつEEPROM
(電気的再書き込み可能な読み出し専用メモリ)とRO
M(読み出し専用メモリ)とを有し、これらEEPRO
MとROMに対して同一のメモリパリティチェック方式
を用い、これらのパリティデータ記憶に別途同一のパリ
ティデータ収容用EEPROMを有し、マイクロプロセ
ッサのプログラムによりパリティデータの書き換えを行
うメモリ回路におけるデータ書き換え方式であって、パ
リティデータ収容用EEPROMを、ROMと同一アド
レスのメモリ空間の書き込み面に割り付けることによ
り、同メモリ空間を読み出し時はROM,書き込み時は
パリティデータ収容用EEPROMとしてそれぞれ切り
換え、通常は読み出しのみにしか用いないROM空間に
対しデータ書き込みを行うことによって、パリティデー
タ収容用EEPROMの記憶内容書き換えを行うもので
ある。In order to achieve the above object, a data rewriting method in a memory circuit according to the present invention is an EEPROM having an equal memory capacity.
(Electrically rewritable read-only memory) and RO
M (read-only memory) and these EEPRO
A data rewriting method in a memory circuit in which the same memory parity check method is used for M and ROM, and the same EEPROM for accommodating parity data is separately provided for storing these parity data, and the parity data is rewritten by a program of a microprocessor. By allocating the EEPROM for storing parity data to the writing surface of the memory space having the same address as the ROM, the memory space is switched to ROM for reading and EEPROM for storing parity data for writing, and is normally read. By writing data in the ROM space which is used only only, the storage contents of the parity data accommodation EEPROM are rewritten.
【0009】また、本発明に係るデータ書き換え方式を
実施するメモリ回路は、メモリ素子と、制御部とを有す
るメモリ回路であって、メモリ素子は、ROM(読み出
し専用メモリ)と、EEPROM(電気的再書き込み可
能な読み出し専用メモリ)と、ROMとEEPROMと
のパリティデータを収容するパリティデータ収容用EE
PROMとからなり、制御部は、EEPROM選択信号
およびROM選択信号、並びにマイクロプロセッサから
のメモリ読み出し信号およびメモリ書き込み信号を入力
とし、メモリ素子の読み出しおよび書き込みを制御する
ものである。A memory circuit for implementing the data rewriting method according to the present invention is a memory circuit having a memory element and a control section, and the memory element includes a ROM (read only memory) and an EEPROM (electrical). Rewritable read-only memory) and parity data accommodation EE for accommodating parity data of ROM and EEPROM
The control unit is composed of a PROM, and receives the EEPROM selection signal and the ROM selection signal, and the memory read signal and the memory write signal from the microprocessor, and controls the reading and writing of the memory element.
【0010】[0010]
【作用】パリティデータ収容用EEPROMに割り付け
られるメモリ空間を、ROMに割り付けられるメモリ空
間の書き込み面に配置する。The memory space allocated to the EEPROM for storing parity data is arranged on the writing surface of the memory space allocated to the ROM.
【0011】これにより、EEPROMのデータ書き換
えに伴うパリティデータ変更時には、マイクロプロセッ
サからROMのアドレスに対しパリティデータを書き込
めば、パリティデータ収容用EEPROMの書き換えが
可能となる。このため、パリティデータ収容用EEPR
OMに供するメモリ空間の節約を図れることとなる。Thus, when the parity data is changed by rewriting the data in the EEPROM, the parity data can be rewritten in the EEPROM by writing the parity data into the address of the ROM from the microprocessor. Therefore, EEPR for accommodating parity data
The memory space provided for the OM can be saved.
【0012】[0012]
【実施例】次に、本発明について図面を参照して説明す
る。図1(A)は、本発明の一実施例のメモリ空間図で
ある。メモリ空間1はRAM(ランダム・アクセス・メ
モリ)などに割り付けられる汎用のメモリ空間である。
このメモリ空間1の割り付けについては本発明には直接
関係しない。メモリ空間2はEEPROMに割り付けら
れる。用途としては、マイクロプロセッサ回路への外部
からのダウンロードによって再書き込みを行うであろう
プログラムの収容や、あるいは電源を落としても記録デ
ータが残る不揮発性を利用した障害履歴データの保存な
どに用いる。DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings. FIG. 1A is a memory space diagram of an embodiment of the present invention. The memory space 1 is a general-purpose memory space allocated to RAM (random access memory) or the like.
The allocation of the memory space 1 is not directly related to the present invention. The memory space 2 is allocated to the EEPROM. It is used for accommodating a program that will be rewritten by downloading to the microprocessor circuit from the outside, or for storing failure history data using non-volatility that allows recorded data to remain even when the power is turned off.
【0013】メモリ空間3はROMに割り付けられる。
このメモリ空間3はメモリ空間2と同一の大きさであ
る。また、このメモリ空間3のROMからマイクロプロ
セッサへデータが接続されるのは、マイクロプロセッサ
によるメモリ読み出し時のみである。用途としては、将
来に亘って書き換えが生じないであろうプログラムある
いはデータの収容に用いる。The memory space 3 is allocated to the ROM.
The memory space 3 has the same size as the memory space 2. Further, data is connected from the ROM of the memory space 3 to the microprocessor only when the microprocessor reads the memory. It is used for accommodating programs or data that will not be rewritten in the future.
【0014】メモリ空間4は、メモリ空間2のEEPR
OMおよびメモリ空間3のROMのパリティデータを収
容するための、パリティデータ収容用EEPROMに割
り付けられる。このメモリ空間4はメモリ空間3と同一
の大きさである。またこのメモリ空間4のパリティデー
タ収容用EEPROMにマイクロプロセッサからのデー
タが接続されるのは、マイクロプロセッサによるメモリ
書き込み時、すなわちパリティデータの書き換え時のみ
である。図1(A)のメモリ空間割り付けを実現するの
が図1(B)のメモリ回路である。The memory space 4 is the EEPR of the memory space 2.
It is allocated to the parity data accommodation EEPROM for accommodating the parity data of the ROM of the OM and the memory space 3. The memory space 4 has the same size as the memory space 3. The data from the microprocessor is connected to the EEPROM for storing parity data in the memory space 4 only when the microprocessor writes the memory, that is, when the parity data is rewritten. It is the memory circuit of FIG. 1B that realizes the memory space allocation of FIG.
【0015】図1(B)の回路の構成は下記の通りであ
る。図において、11は、データ記憶に用いるEEPR
OMであり、マイクロプロセッサのメモリ空間上では図
1(A)のメモリ空間2に該当するメモリ素子となる。
12は、読み出しのみのデータ記憶に用いるROMであ
り、マイクロプロセッサのメモリ空間上では図1(A)
のメモリ空間3に該当するメモリ素子となる。13は、
パリティデータ収容用EEPROMであり、マイクロプ
ロセッサのメモリ空間上では図1(A)のメモリ空間4
に該当するメモリ素子となる。パリティデータ収容用E
EPROM13はEEPROM11およびROM12の
パリティデータを収容する。14はオアゲート素子であ
る。15はアンドゲート素子である。16は、マイクロ
プロセッサが出力するメモリ読み出し信号線で、負論理
であり、ロウレベル時にメモリ読み出し動作を表す。1
7は、マイクロプロセッサが出力するメモリ書き込み信
号線で、負論理であり、ロウレベル時にメモリ書き込み
動作を表す。The structure of the circuit shown in FIG. 1B is as follows. In the figure, 11 is an EEPR used for data storage.
OM, which is a memory element corresponding to the memory space 2 in FIG. 1A in the memory space of the microprocessor.
Reference numeral 12 is a ROM used for storing only read data, and is shown in FIG. 1 (A) in the memory space of the microprocessor.
The memory element corresponds to the memory space 3 of FIG. 13 is
This is an EEPROM for accommodating parity data, and in the memory space of the microprocessor, the memory space 4 of FIG.
It corresponds to the memory element. E for storing parity data
The EPROM 13 stores the parity data of the EEPROM 11 and the ROM 12. Reference numeral 14 is an OR gate element. Reference numeral 15 is an AND gate element. Reference numeral 16 denotes a memory read signal line output from the microprocessor, which has a negative logic and represents a memory read operation at the low level. 1
Reference numeral 7 denotes a memory write signal line output by the microprocessor, which has a negative logic and represents a memory write operation at a low level.
【0016】18は、マイクロプロセッサからのアドレ
ス線に接続されたデコーダが出力するEEPROMのチ
ップセレクト信号で、負論理であり、ロウレベルで図1
(A)中のメモリ空間2のEEPROMのマイクロプロ
セッサにデータ接続された動作を表す。19は、前記と
同様のデコーダが出力するROMのチップセレクト信号
で、負論理であり、ロウレベルで図1(A)中のメモリ
空間3のROMまたは図1(A)中のメモリ空間4のE
EPROMがマイクロプロセッサにデータ接続された動
作を表す。ここでEEPROM11,ROM12および
EEPROM13においてCE,OEおよびWENの三
記号は、これらメモリ素子の次に示す機能端子を示して
いる。CEは、該メモリ素子をアクティブにするチップ
・イネーブル端子であり、負論理である。OEは、該メ
モリ素子のデータ信号のゲートを開くアウトプット・イ
ネーブル端子であり、負論理である。WENは、該メモ
リ素子へのアドレス入力およびデータ入力を記憶する時
の保持タイミングを与えるライト・イネーブル端子であ
り、負論理である。Reference numeral 18 denotes an EEPROM chip select signal output from a decoder connected to an address line from the microprocessor, which has a negative logic and is at a low level.
The operation of data-connected to the microprocessor of the EEPROM of the memory space 2 in (A) is shown. Reference numeral 19 denotes a ROM chip select signal output from the same decoder as that described above, which is a negative logic, and at a low level, ROM of the memory space 3 in FIG. 1 (A) or E of the memory space 4 in FIG. 1 (A).
EPROM represents the operation of data connection to the microprocessor. Here, in the EEPROM 11, the ROM 12 and the EEPROM 13, the three symbols CE, OE and WEN indicate the functional terminals of these memory elements shown below. CE is a chip enable terminal that activates the memory element and has a negative logic. OE is an output enable terminal that opens the gate of the data signal of the memory element, and has a negative logic. WEN is a write enable terminal that gives a holding timing when storing an address input and a data input to the memory element, and has a negative logic.
【0017】図2は、図1(B)中のパリティデータ収
容用EEPROM13について詳述した図である。ここ
では一例として、パリティデータ収容用EEPROM1
3として、メモリ容量1メガビットで、メモリ構成13
1キロ×8ビットのEEPROM素子を用いている。図
中a1 〜a17はマイクロプロセッサからのアドレス線、
d0 〜d7 はマイクロプロセッサからのデータ線であ
る。FIG. 2 is a detailed diagram of the EEPROM 13 for accommodating the parity data shown in FIG. 1 (B). Here, as an example, the EEPROM 1 for storing parity data
3, the memory capacity is 1 megabit, and the memory configuration 13
An EEPROM element of 1 kilo × 8 bits is used. In the figure, a1 to a17 are address lines from the microprocessor,
d0 to d7 are data lines from the microprocessor.
【0018】パリティデータ収容用EEPROM13の
書き換え時の動作は次の通りである。マイクロプロセッ
サによるパリティデータ収容用EEPROM13の書き
換え時には、アドレス線a1 〜a17により指定されるパ
リティデータ収容用EEPROM内のメモリ番地に対
し、マイクロプロセッサからのデータd0 〜d7 が記憶
される。ただし、データd0 〜d7 については、バスド
ライバ21および22を経由し、データd01〜d71とな
ってEEPROM13に加えられる。The operation of rewriting the EEPROM 13 for accommodating the parity data is as follows. When the parity data storage EEPROM 13 is rewritten by the microprocessor, the data d0 to d7 from the microprocessor are stored in the memory addresses in the parity data storage EEPROM designated by the address lines a1 to a17. However, the data d0 to d7 are added to the EEPROM 13 as data d01 to d71 via the bus drivers 21 and 22.
【0019】この書き込み時においては、バスドライバ
21および22のゲート端子に接続される信号14a
は、図1(B)中のオアゲート14の出力であるので、
ロウレベルとなっている。バスドライバ21及び22は
ゲートが開いて信号通過状態となっている。ナンドゲー
ト素子31及び32は、バスドライバ21及び22のゲ
ート制御を行う際に、信号14aに比べ必要な遅延時間
を得るために挿入されているものである。At the time of writing, the signal 14a connected to the gate terminals of the bus drivers 21 and 22.
Is the output of the OR gate 14 in FIG.
It is at a low level. The gates of the bus drivers 21 and 22 are open and in a signal passing state. The NAND gate elements 31 and 32 are inserted in order to obtain a delay time required as compared with the signal 14a when performing gate control of the bus drivers 21 and 22.
【0020】マイクロプロセッサによるEEPROM及
びROMの読み出し時の動作は次の通りである。マイク
ロプロセッサによるEEPROM及びROMの読み出し
時には、パリティデータ収容用EEPROM13からパ
リティデータが出力される。マイクロプロセッサにより
読み出されるEEPROM及びROMのアドレスに対応
したEEPROM13のアドレスからパリティデータが
出力される。The operation of reading the EEPROM and ROM by the microprocessor is as follows. When the microprocessor reads the EEPROM and the ROM, the parity data storing EEPROM 13 outputs the parity data. Parity data is output from the EEPROM and the address of the EEPROM 13 corresponding to the addresses of the ROM read by the microprocessor.
【0021】本例のEEPROM13では、容量的には
アドレスごとに8ビットのデータが記憶できるが、その
うちの第0ビット(端子D0 )をROM用のパリティデ
ータ収容に、第1ビット(端子D1 )をEEPROM用
のパリティデータ収容にそれぞれ用い、8ビット中の計
2ビットのみを使用している。これらのデータビットの
出力がROM用のパリティデータROMPTYおよびE
EPROM用のパリティデータEEPPTYとして当回
路からパリティチェック回路へと出力される。In the EEPROM 13 of the present embodiment, 8-bit data can be stored for each address in terms of capacity, but the 0th bit (terminal D0) of the stored data is used for accommodating the parity data for ROM, and the 1st bit (terminal D1). Are used for accommodating parity data for the EEPROM, and only 2 bits in total out of 8 bits are used. The output of these data bits is the parity data ROM PTY and E for ROM.
The parity data EPEPTY for EPROM is output from this circuit to the parity check circuit.
【0022】バスドライバ21及び22は、マイクロプ
ロセッサによるEEPROM及びROMの読み出し時に
は、端子Gがハイレベルであり、ゲートを閉じているの
で、入出力関係にあるデータ線d0 とd01、及びd1 と
d11は隔離されており、マイクロプロセッサからのデー
タがパリティデータROMPTYおよびEEPPTYと
して出力されることはない。また、パリティデータ収容
用EEPROMへのデータ線の接続が、出力2ビットに
もかかわらずd01〜d71の8ビット分8本が接続されて
いるのは、マイクロプロセッサがEEPROM素子に対
して、記憶内容消去、消去停止、およびリセットなどの
命令をデータ線8ビットデータとして行うためである。In the bus drivers 21 and 22, the terminal G is at a high level and the gate is closed when reading the EEPROM and ROM by the microprocessor, so that the data lines d0 and d01 and d1 and d11 which are in the input / output relation. Are isolated and data from the microprocessor is never output as parity data ROMPTY and EEPPTY. Further, the connection of the data line to the EEPROM for accommodating the parity data is connected to 8 bits for 8 bits of d01 to d71 despite the fact that the output is 2 bits. This is because instructions such as erasing, erasing stop, and reset are performed as data line 8-bit data.
【0023】図3は、図2の例の場合の各メモリ素子内
のビット割り付けについて記すものである。例として、
マイクロプロセッサのもつメモリ空間のうち、8000
0HからBFFFFH までをEEPROM11に、C0
000H からFFFFFH までの読み出し面をROM1
2に、C0000H からFFFFFH までの書き込み面
をパリティデータ収容用EEPROM13に、それぞれ
割り付ける。このとき、パリティデータの収容法は次の
通りである。FIG. 3 shows bit allocation in each memory element in the case of the example of FIG. As an example,
8000 of the memory space of the microprocessor
0 from the H to BFFFF H to EEPROM11, C0
Read-out surface from 000 H to FFFFF H is ROM1
2. The writing surfaces from C0000 H to FFFFF H are allocated to the parity data accommodation EEPROM 13 respectively. At this time, the method of accommodating the parity data is as follows.
【0024】EEPROM11のパリティデータについ
ては、パリティデータ収容用EEPROM13の第1ビ
ットに記憶させる。The parity data of the EEPROM 11 is stored in the first bit of the parity data storing EEPROM 13.
【0025】図3に示すとおり、EEPROM11のア
ドレス80000H の8ビットデータX0 に対するパリ
ティデータX0Pは、パリティデータ収容用EEPROM
13のアドレスC0000H の第1ビットに記憶させら
れる。同様にアドレス80001H の8ビットデータX
1 に対するパリティデータX1Pは、パリティデータ収容
用EEPROM13のアドレスC0001H の第1ビッ
トに記憶させられる。以下同様にアドレスBFFFFH
の8ビットデータXL に対するパリティデータXLPは、
パリティデータ収容用EEPROM13のアドレスFF
FFFH の第1ビットに記憶させられる。As shown in FIG. 3, the parity data X 0P corresponding to the 8-bit data X 0 at the address 80000 H of the EEPROM 11 is the parity data accommodation EEPROM.
It is stored in the first bit of the address C0000 H of 13. Similarly, 8-bit data X at address 80001 H
The parity data X 1P for 1 is stored in the first bit of the address C0001 H of the EEPROM 13 for storing parity data. Similarly, the address BFFFF H
Parity data X LP for 8-bit data X L of
Address FF of EEPROM 13 for storing parity data
It is stored in the first bit of FFF H.
【0026】ROM12のパリティデータについては、
パリティデータ収容用EEPROM13の第0ビットに
記憶させる。図3に示すとおり、ROM12のアドレス
C0000H の8ビットデータY0 に対するパリティデ
ータY0Pは、パリティデータ収容用EEPROM13の
アドレスC0000H の第0ビットに記憶させられる。
同様にアドレスC0001H の8ビットデータY1 に対
するパリティデータY1Pは、パリティデータ収容用EE
PROM13のアドレスC0001H の第0ビットに記
憶させられる。Regarding the parity data of the ROM 12,
It is stored in the 0th bit of the EEPROM 13 for storing parity data. As shown in FIG. 3, the parity data Y 0P for the 8-bit data Y 0 at the address C0000 H of the ROM 12 is stored in the 0th bit of the address C0000 H of the EEPROM 13 for storing parity data.
Similarly, the parity data Y 1P for the 8-bit data Y 1 of the address C0001 H is the EE for accommodating the parity data.
It is stored in the 0th bit of the address C0001 H of the PROM 13.
【0027】以下同様にアドレスFFFFFH の8ビッ
トデータYL に対するパリティデータYLPは、パリティ
データ収容用EEPROM13のアドレスFFFFFH
の第1ビットに記憶させられる。The parity data Y LP for 8-bit data Y L follows similarly address FFFFF H, the address of the parity data containment EEPROM 13 FFFFF H
Stored in the first bit of.
【0028】本メモリ回路の使用例を図4および図5の
機能ブロック図に示す。図4は、本メモリ回路の一使用
例で、マイクロプロセッサによるEEPROMのデータ
書き換え時のデータの流れを示している。An example of using this memory circuit is shown in the functional block diagrams of FIGS. 4 and 5. FIG. 4 shows an example of use of the present memory circuit and shows a data flow when the microprocessor rewrites data in the EEPROM.
【0029】EEPROMのデータ書き換え時には、ま
ず図4(A)に示すとおり、マイクロプロセッサ41か
らのデータ41aをEEPROM11へ入力し、EEP
ROM11内のデータを変更する。つぎにこのEEPR
OM11内データ書き換えに伴うパリティデータの変更
が必要となるので、図2(B)に示すとおり、マイクロ
プロセッサ1からパリティデータ収容用EEPROM1
3へデータ41aを入力することにより本書き換えに伴
うパリティデータの変更を実施する。When rewriting the data in the EEPROM, first, as shown in FIG. 4A, the data 41a from the microprocessor 41 is input to the EEPROM 11 to
The data in the ROM 11 is changed. Next, this EEPR
Since it is necessary to change the parity data when the data in the OM 11 is rewritten, as shown in FIG.
By inputting the data 41a to 3, the change of the parity data due to the main rewriting is executed.
【0030】この書き換えの対象となるメモリ空間は図
1(A)に示す通り、ROMと同一のアドレス空間であ
るが、自動的にROMではなくパリティデータ収容用E
EPROM13へとデータが入力され、パリティデータ
の書き換えを実現する。このときのパリティデータの生
成は、マイクロプロセッサによる演算あるいはマイクロ
プロセッサ41の外部に接続されるパリティデータ生成
装置などにより提供される。なお、ROM12について
は、記憶データの出力のみ可能なメモリ素子であるの
で、ROM12内のデータ書き換えを行うことは実施で
きず、EEPROM11の書き換え時のようなパリティ
データの書き換えの必要は生じない。The memory space to be rewritten is the same address space as the ROM as shown in FIG. 1A, but it is not automatically the ROM but the parity data storage E.
Data is input to the EPROM 13 to realize rewriting of parity data. The generation of the parity data at this time is provided by a calculation by a microprocessor or a parity data generation device connected to the outside of the microprocessor 41. Since the ROM 12 is a memory element that can only output stored data, the data in the ROM 12 cannot be rewritten, and the parity data need not be rewritten as in the case of rewriting the EEPROM 11.
【0031】図5は、本メモリ回路の一使用例で、マイ
クロプロセッサによるEEPROMおよびROMからの
データ読み出し時のデータの流れを示している。EEP
ROMのデータ読み出し時には、図5(A)に示すとお
り、EEPROM11からの読み出しデータ11aの出
力は、マイクロプロセッサ51に加えられる。さらにこ
の読み出しデータ11aに対応するパリティデータ13
aがパリティデータ収容用EEPROM13から同時に
出力され、パリティチェック回路52に加えられる。FIG. 5 shows an example of use of this memory circuit and shows a data flow when data is read from the EEPROM and the ROM by the microprocessor. EEP
At the time of reading data from the ROM, the output of the read data 11a from the EEPROM 11 is added to the microprocessor 51, as shown in FIG. Further, the parity data 13 corresponding to the read data 11a
a is simultaneously output from the EEPROM 13 for accommodating the parity data and added to the parity check circuit 52.
【0032】パリティチェック回路52では、読み出し
データ11aを演算しパリティデータ13aと比較し
て、メモリパリティエラーの発生の有無を確認する。メ
モリパリティエラーが発生したことを検出した場合に
は、一般にマイクロプロセッサ51に対し割り込み通知
線8を用いて通知する。In the parity check circuit 52, the read data 11a is calculated and compared with the parity data 13a to check whether or not a memory parity error has occurred. When it is detected that a memory parity error has occurred, the microprocessor 51 is generally notified using the interrupt notification line 8.
【0033】ROMのデータ読み出し時には、図5
(B)に示すとおり、ROM12からの読み出しデータ
12aの出力は、マイクロプロセッサ51に加えられ
る。さらにこの読み出しデータ12aに対応するパリテ
ィデータ13aがパリティデータ収容用EEPROM1
3から同時に出力され、パリティチェック回路52およ
びマイクロプロセッサ51に加えられる。When reading the data from the ROM, FIG.
As shown in (B), the output of the read data 12a from the ROM 12 is added to the microprocessor 51. Further, the parity data 13a corresponding to the read data 12a is the EEPROM 1 for accommodating the parity data.
3 are simultaneously output and added to the parity check circuit 52 and the microprocessor 51.
【0034】パリティチェック回路52では、読み出し
データ12aを演算しパリティデータ13aと比較し
て、メモリパリティエラーの発生の有無を確認する。メ
モリパリティエラーが発生したことを検出した場合に
は、一般にマイクロプロセッサ51に対し割り込み通知
線8を用いて通知する。In the parity check circuit 52, the read data 12a is calculated and compared with the parity data 13a to check whether or not a memory parity error has occurred. When it is detected that a memory parity error has occurred, the microprocessor 51 is generally notified using the interrupt notification line 8.
【0035】[0035]
【発明の効果】以上説明したように本発明は、パリティ
データ収容用EEPROMのメモリ空間上への割り付け
が面およびメモリ空間の不足に係わりなく可能であり、
かつパリティデータ書き換えの事前及び事後のそれぞれ
の場合において、バンク切り換えの操作は不要となる。As described above, according to the present invention, an EEPROM for storing parity data can be allocated in the memory space regardless of the lack of the surface and the memory space.
In addition, the bank switching operation is not necessary before and after the parity data rewriting.
【図1】(A)は、本発明の一実施例におけるメモリ空
間図、(B)は、(A)に示すメモリ空間割り付けを実
現する回路図である。FIG. 1A is a memory space diagram in one embodiment of the present invention, and FIG. 1B is a circuit diagram for realizing the memory space allocation shown in FIG.
【図2】パリティ用EEPROM周辺回路の詳細図であ
る。FIG. 2 is a detailed diagram of an EEPROM peripheral circuit for parity.
【図3】各メモリ素子内のビット割り付け例を示す図で
ある。FIG. 3 is a diagram showing an example of bit allocation in each memory element.
【図4】本発明による場合のメモリ書き換えの実施例で
あり、(A)は、第一工程であるEEPROMデータ書
き換え時の接続を表すブロック図、(B)は、第二工程
であるパリティデータ書き換え時の接続を表すブロック
図である。FIG. 4 is an embodiment of memory rewriting in the case of the present invention, (A) is a block diagram showing a connection when rewriting EEPROM data which is a first step, and (B) is parity data which is a second step. It is a block diagram showing the connection at the time of rewriting.
【図5】本発明による場合のメモリ読み出しの実施例で
あり、(A)は、EEPROMデータ読み出し時の接続
を表すブロック図、(B)は、ROMデータ読み出し時
の接続を表すブロック図である。5A and 5B are embodiments of memory reading according to the present invention, FIG. 5A is a block diagram showing a connection at the time of reading EEPROM data, and FIG. 5B is a block diagram showing a connection at the time of reading ROM data. .
1 汎用メモリ空間 2 EEPROMのメモリ空間 3 ROMのメモリ空間 4 パリティデータ収容用EEPROMのメモリ空間 11 EEPROM 12 ROM 13 パリティデータ収容用EEPROM 14 オアゲート素子 15 アンドゲート素子 16,17 メモリ読み出し信号 18,19 チップセレクト信号 21,22 バスドライバ 31,32 ナンドゲート素子 41,51 マイクロプロセッサ 52 パリティチェック回路 DESCRIPTION OF SYMBOLS 1 General-purpose memory space 2 EEPROM memory space 3 ROM memory space 4 Parity data accommodation EEPROM memory space 11 EEPROM 12 ROM 13 Parity data accommodation EEPROM 14 OR gate element 15 AND gate element 16, 17 Memory read signal 18, 19 chips Select signal 21,22 Bus driver 31,32 NAND gate element 41,51 Microprocessor 52 Parity check circuit
Claims (2)
ROM(電気的再書き込み可能な読み出し専用メモリ)
とROM(読み出し専用メモリ)とを有し、これらEE
PROMとROMに対して同一のメモリパリティチェッ
ク方式を用い、これらのパリティデータ記憶に別途同一
のパリティデータ収容用EEPROMを有し、マイクロ
プロセッサのプログラムによりパリティデータの書き換
えを行うメモリ回路におけるデータ書き換え方式であっ
て、 パリティデータ収容用EEPROMを、ROMと同一ア
ドレスのメモリ空間の書き込み面に割り付けることによ
り、同メモリ空間を読み出し時はROM,書き込み時は
パリティデータ収容用EEPROMとしてそれぞれ切り
換え、通常は読み出しのみにしか用いないROM空間に
対しデータ書き込みを行うことによって、パリティデー
タ収容用EEPROMの記憶内容書き換えを行うことを
特徴とするメモリ回路におけるデータ書き換え方式。1. An EEP having an equal memory capacity.
ROM (electrically rewritable read-only memory)
And a ROM (read-only memory)
A data rewriting method in a memory circuit in which the same memory parity check method is used for PROM and ROM, and the same parity data accommodating EEPROM is separately provided for storing these parity data, and the parity data is rewritten by a program of a microprocessor. By allocating the EEPROM for storing the parity data to the writing surface of the memory space having the same address as the ROM, the memory space is switched to the ROM for reading and the EEPROM for storing the parity data during writing, and is normally read. A data rewriting method in a memory circuit, characterized in that the data stored in the EEPROM for storing parity data is rewritten by writing data in a ROM space that is used only for this purpose.
回路であって、 メモリ素子は、ROM(読み出し専用メモリ)と、EE
PROM(電気的再書き込み可能な読み出し専用メモ
リ)と、ROMとEEPROMとのパリティデータを収
容するパリティデータ収容用EEPROMとからなり、 制御部は、EEPROM選択信号およびROM選択信
号、並びにマイクロプロセッサからのメモリ読み出し信
号およびメモリ書き込み信号を入力とし、メモリ素子の
読み出しおよび書き込みを制御するものであることを特
徴とするメモリ回路。2. A memory circuit having a memory element and a controller, wherein the memory element is a ROM (read only memory) and an EE.
A PROM (electrically rewritable read-only memory) and an EEPROM for storing parity data of ROM and EEPROM are provided. The control unit has an EEPROM selection signal and a ROM selection signal, and a microprocessor A memory circuit, which receives a memory read signal and a memory write signal and controls reading and writing of a memory element.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4202333A JPH0652064A (en) | 1992-07-29 | 1992-07-29 | Data rewrite system and its circuit in memory circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4202333A JPH0652064A (en) | 1992-07-29 | 1992-07-29 | Data rewrite system and its circuit in memory circuit |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0652064A true JPH0652064A (en) | 1994-02-25 |
Family
ID=16455817
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP4202333A Pending JPH0652064A (en) | 1992-07-29 | 1992-07-29 | Data rewrite system and its circuit in memory circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0652064A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6266319B1 (en) | 1995-06-20 | 2001-07-24 | Tdk Corporation | Disc cartridge integrally formed of transparent and non-transparent resin, and molding die therefor |
| US7089447B2 (en) * | 2003-08-13 | 2006-08-08 | Texas Instruments Incorporated | Apparatus and method for compression based error correction procedure in a data processing system |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6371884A (en) * | 1986-09-16 | 1988-04-01 | 株式会社日立製作所 | Memory control system |
| JPH03184146A (en) * | 1989-12-13 | 1991-08-12 | Fujitsu General Ltd | Parity check method |
| JPH0481954A (en) * | 1990-04-13 | 1992-03-16 | Toshiba Corp | Memory device |
-
1992
- 1992-07-29 JP JP4202333A patent/JPH0652064A/en active Pending
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6371884A (en) * | 1986-09-16 | 1988-04-01 | 株式会社日立製作所 | Memory control system |
| JPH03184146A (en) * | 1989-12-13 | 1991-08-12 | Fujitsu General Ltd | Parity check method |
| JPH0481954A (en) * | 1990-04-13 | 1992-03-16 | Toshiba Corp | Memory device |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6266319B1 (en) | 1995-06-20 | 2001-07-24 | Tdk Corporation | Disc cartridge integrally formed of transparent and non-transparent resin, and molding die therefor |
| US7089447B2 (en) * | 2003-08-13 | 2006-08-08 | Texas Instruments Incorporated | Apparatus and method for compression based error correction procedure in a data processing system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5469390A (en) | Semiconductor memory system with the function of the replacement to the other chips | |
| US20040210729A1 (en) | Nonvolatile memory | |
| JPH1027128A (en) | Memory board and method and device for accessing memory | |
| CN1682199A (en) | Nonvolatile RAM and memory circuit thereof | |
| JPH11120075A (en) | Semiconductor storage device and semiconductor storage system | |
| CN101111900B (en) | Semi-conductor device, address assignment method | |
| US6850436B2 (en) | Non-volatile semiconductor device having a means to relieve a deficient erasure address | |
| US6754115B2 (en) | Nonvolatile semiconductor memory device with backup memory block | |
| US5265048A (en) | Semiconductor storage device and method of accessing the same | |
| US8914602B2 (en) | Display controller having an embedded non-volatile memory divided into a program code block and a data block and method for updating parameters of the same | |
| JPH0652064A (en) | Data rewrite system and its circuit in memory circuit | |
| JP2003122638A (en) | Semiconductor integrated circuit device | |
| US5226015A (en) | Semiconductor memory system | |
| KR100737919B1 (en) | Program method of NAND flash memory and program method of memory system | |
| JP3635996B2 (en) | Information processing system | |
| CN117573155B (en) | Product information processing method and chip | |
| KR900005315A (en) | Development Method of Data Processing System and Semiconductor Integrated Circuits for Data Processing | |
| KR20000020105A (en) | Electronic device equipped with flash memory | |
| KR940006075B1 (en) | Semiconductor integrated circuit | |
| JP3840510B2 (en) | Micro computer | |
| JP2002251889A (en) | Semiconductor storage device | |
| JPH05128016A (en) | Nonvolatile semiconductor memory device | |
| JP2007122796A (en) | Non-volatile memory | |
| JP3711691B2 (en) | Microcontroller | |
| JP3135770B2 (en) | Nonvolatile semiconductor memory and storage device using the nonvolatile semiconductor memory |