JPH04263198A - Memory device - Google Patents

Memory device

Info

Publication number
JPH04263198A
JPH04263198A JP3045777A JP4577791A JPH04263198A JP H04263198 A JPH04263198 A JP H04263198A JP 3045777 A JP3045777 A JP 3045777A JP 4577791 A JP4577791 A JP 4577791A JP H04263198 A JPH04263198 A JP H04263198A
Authority
JP
Japan
Prior art keywords
data
memory
chip
cpu
writes
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
JP3045777A
Other languages
Japanese (ja)
Inventor
Tsutomu Hoshino
勉 星野
Kazumi Sato
一美 佐藤
Shigeo Amamiya
雨宮 成雄
Mitsuhiro Azuma
充宏 東
Koji Tezuka
宏治 手塚
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP3045777A priority Critical patent/JPH04263198A/en
Publication of JPH04263198A publication Critical patent/JPH04263198A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Read Only Memory (AREA)
  • For Increasing The Reliability Of Semiconductor Memories (AREA)

Abstract

PURPOSE:To realize a memory device which is constituted of a nonvolatile memory and a volatile memory, which can examine whether a data has been written accurately or not in the nonvolatile memory by reading out the data and which can leave the data in the nonvolatile memory as soon as the data is generated while the data is being examined regarding the memory device which stores a hysteresis data. CONSTITUTION:A master CPU 1 and a slave CPU 2 are used. The master CPU 1 stores data generated instantaneously in large quantities and at high speed in a volatile memory 3 once and, after that, is used only for a write operation 'so as to be copied at each chip in a nonvolatile memory 4. The slave CPU 2 reads out the data at each chip of the nonvolatile memory 4, confirms the write life of each memory chip and rewrites them in another region in the memory chip when the life has expired. Hysteresis data which are generated instantaneously in large quantities and at high speed can be stored immediately without omission and, even when a power supply is dropped, the hysteresis at the point of time can be left.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、メモリ装置に関し、特
に履歴データを保存するためのメモリ装置に関するもの
である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a memory device, and more particularly to a memory device for storing historical data.

【0002】多重伝送装置等は装置内の通常動作状態を
始めとして故障などの警報データをも履歴しておく必要
があり、これらの履歴デ−タは瞬間的に大量且つ高速に
発生するため漏れなく保存しなければならず、また、こ
れらのデ−タは装置の電源が切れている状態でも保存す
る必要がある。
[0002] Multiplex transmission equipment and the like need to keep a history of alarm data such as failures as well as normal operating conditions within the equipment, and since this history data is generated instantaneously in large quantities and at high speed, it is difficult for data to be leaked. In addition, these data must be stored even when the device is powered off.

【0003】0003

【従来の技術】電源断時等においてもデータを保存する
ためのメモリ素子としては一般的にEEPROM(El
ectrically Erasable and P
rogramable Read Only Memo
ry)が用いられるが、バイトデ−タを1ペ−ジとして
書き込む場合、1ペ−ジ分書き込んだ後にそのデ−タが
EEPROMへ定着するまでに最大約10msの時間が
必要になる。このため、瞬間的に大量且つ高速に発生す
るデ−タをEEPROMに保持をさせる場合は、デ−タ
のページ数×約10msの時間だけ書込時間を必要とし
た。
2. Description of the Related Art EEPROM (El
electrically Erasable and P
rogrammable Read Only Memo
ry) is used, but when writing byte data as one page, a maximum of about 10 ms is required for the data to be fixed in the EEPROM after writing one page. Therefore, when a large amount of data that is instantaneously generated at a high speed is to be stored in the EEPROM, a writing time of approximately 10 ms (number of pages of data) is required.

【0004】また、一般にEEPROMは電気的書換の
回数に比例して劣化が起こる。これは、EEPROMを
構成する二酸化シリコンの絶縁層の中に欠陥が存在し、
“0”から“1”、“1”から“0”とデ−タの書換が
行われる回数に比例して二酸化シリコンの絶縁層に電子
の注入が進行し、書換回数が1万回程度になるとキャリ
アの移動度が低下して最終的には常時電流が流れる状態
になり、デ−タ的には常に“0”になってしまうからで
ある。
Furthermore, EEPROMs generally deteriorate in proportion to the number of electrical rewrites. This is because there are defects in the silicon dioxide insulating layer that makes up the EEPROM.
Electrons are injected into the silicon dioxide insulating layer in proportion to the number of times data is rewritten from "0" to "1" and from "1" to "0", and the number of rewrites reaches approximately 10,000 times. This is because the mobility of carriers decreases and eventually a state is reached in which current flows all the time, and the data always becomes "0".

【0005】一方、このようなEEPROM以外の素子
としてSRAM(Static Random Acc
ess Memory) などの揮発性メモリを、電源
断時等にバックアップ用バッテリーによりデ−タ保持電
流を供給することで不揮発性メモリと同等の機能を持た
せる技術が知られているが、この場合にはバッテリーに
よるデ−タ保持電流にも限りがあり永久的な保持とはな
らず、またバッテリー出力電圧も常時監視しておく必要
が生じる。更に、完全を期すためにはバッテリー充電用
の回路を別途付加しなければならない。
On the other hand, as an element other than such EEPROM, SRAM (Static Random Acc
There is a known technology that allows volatile memory, such as ess Memory, to have the same functionality as non-volatile memory by supplying data retention current from a backup battery when the power is turned off, etc. In this case, the data retention current by the battery is limited and cannot be retained permanently, and the battery output voltage also needs to be constantly monitored. Furthermore, for completeness, a separate battery charging circuit must be added.

【0006】そこで、EEPROMとSRAMの両者を
用い、電源オン時にはEEPROMのデータをSRAM
へ移し、電源オフに先立ってSRAMのデータをEEP
ROMにセーブするメモリ制御方式が用いられるように
なり、特に特開昭63−66797号公報では、電源オ
ン時にSRAMのデータが書き換えられたか否かを記憶
しておき、書換が有ったときに電源がオフになった場合
だけSRAM内のペ−ジデ−タをEEPROMに移して
EEPROMの書換回数を減少させており、更に特開平
1−245496号公報においては、SRAMからEE
PROMへの書換回数をEEPROMに書込みながらカ
ウントを行ってEEPROMの書換回数の寿命を知らせ
るようにしている。
[0006] Therefore, both EEPROM and SRAM are used, and when the power is turned on, the data in the EEPROM is transferred to the SRAM.
and EEP the SRAM data before turning off the power.
A memory control method that saves data in ROM has come to be used, and in particular, in Japanese Patent Application Laid-Open No. 63-66797, it is possible to record whether or not the data in SRAM has been rewritten when the power is turned on. The page data in the SRAM is transferred to the EEPROM only when the power is turned off to reduce the number of times the EEPROM is rewritten.
The number of times the PROM has been rewritten is counted while being written to the EEPROM, and the lifespan of the number of times the EEPROM has been rewritten is notified.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、正確な
EEPROMの書換寿命は、周囲温度等の使用状況や素
子固有の寿命に左右されるので、単に書換回数をカウン
トしただけでは判明しない。そして、正確な書換寿命を
判断するには、やはりEEPROMにデ−タが正確に書
き込まれたか否かを読み出して調べなければならない。
However, the accurate rewrite life of an EEPROM depends on usage conditions such as ambient temperature and the inherent life of the element, and cannot be determined simply by counting the number of rewrites. In order to accurately determine the rewriting lifespan, it is necessary to read and check whether data has been accurately written to the EEPROM.

【0008】しかしながら、瞬間的に大量且つ高速に発
生するデ−タを漏れなく保存するためには、書き込んだ
デ−タが正確に書き込まれたか否かを読みだして調べる
という動作は即時に発生するデ−タの履歴を確実に遅ら
せ、仮に電源がオフになった場合にその時点での履歴が
残らないという危険性がある。
[0008] However, in order to save data that is instantaneously generated in large quantities and at high speed without omission, the operation of reading and checking whether written data has been written accurately must occur immediately. There is a risk that the history of the data to be stored will be delayed, and even if the power is turned off, the history at that point will not remain.

【0009】従って、本発明は、不揮発性メモリと揮発
性メモリとで構成され、不揮発性メモリにデ−タが正確
に書き込まれたか否かを読み出して調べると共にその調
べの最中であってもデ−タが発生した瞬間に不揮発性メ
モリにデ−タを残すことができるメモリ装置を実現する
ことを目的とする。
Therefore, the present invention is constructed of a non-volatile memory and a volatile memory, and it is possible to read and check whether data has been accurately written to the non-volatile memory, and even during the checking. The object of the present invention is to realize a memory device that can leave data in a nonvolatile memory at the moment the data is generated.

【0010】0010

【課題を解決するための手段】上記の目的を達成するた
め、本発明に係るメモリ装置は、図1に原理的に示すよ
うに、マスタCPU1と、該マスタCPU1により割込
起動されるスレーブCPU2と、各CPU1,2のデー
タバス20,22及びアドレスバス21,23に接続さ
れたデュアルポートを有し、該マスタCPU1の制御の
下に入力データを保管する揮発性メモリ3と、該揮発性
メモリ3の領域と少なくとも同じ大きさを有し、複数の
メモリチップ41 〜4n で構成された不揮発性メモ
リアレイ4と、該マスタCPU1のデータバス20及び
アドレスバス21に接続されて特定メモリ領域単位に該
メモリチップを選択して該揮発性メモリ3のデータを書
き写すと共にその書込回数を書き込む書込選択回路5と
、該メモリアレイ4中のどのメモリチップのデ−タが書
込終了し読出可能の状態になったかを該データバス22
を介して該スレーブCPU2に知らせるチップレディ検
出回路6と、該スレーブCPU2のデータバス22及び
アドレスバス23に接続されて該特定メモリ領域単位に
該チップレディ検出回路6で検出された該メモリチップ
を選択してそのデータを読み出す読出・書込選択回路7
とを備え、該スレーブCPU2が該読出可能なメモリチ
ップからデータを読み出すと共に該データ中の書込回数
が最低保証書込回数に達しているときに該揮発性メモリ
中の同じデータと比較し、異なっているときには該デー
タを該読出・書込選択回路7を介して該読み出したメモ
リチップ内の未使用領域に新たに書き直すように構成し
ている。
[Means for Solving the Problems] In order to achieve the above object, the memory device according to the present invention, as shown in principle in FIG. , a volatile memory 3 having dual ports connected to data buses 20, 22 and address buses 21, 23 of each CPU 1, 2 and storing input data under the control of the master CPU 1; A non-volatile memory array 4 having at least the same size as the area of the memory 3 and composed of a plurality of memory chips 41 to 4n, and connected to the data bus 20 and address bus 21 of the master CPU 1 to form a specific memory area unit. A write selection circuit 5 selects the memory chip and writes the data in the volatile memory 3 and writes the number of times of writing, and a write selection circuit 5 selects the memory chip to write the data in the volatile memory 3 and writes the number of times of writing, and determines which memory chip in the memory array 4 the data has been written to and read out. The corresponding data bus 22
A chip ready detection circuit 6 notifies the slave CPU 2 via a chip ready detection circuit 6, which is connected to the data bus 22 and address bus 23 of the slave CPU 2, and detects the memory chips detected by the chip ready detection circuit 6 in units of the specific memory area. Read/write selection circuit 7 that selects and reads the data
When the slave CPU 2 reads data from the readable memory chip and the number of writes in the data reaches the minimum guaranteed number of writes, the slave CPU 2 compares the data with the same data in the volatile memory and determines whether the data is different. When the data is read out, the data is newly rewritten via the read/write selection circuit 7 into an unused area in the memory chip from which it was read.

【0011】[0011]

【作用】図1に示した本発明に係るメモリ装置の動作を
図2に示したフローチャートを参照して以下に説明する
[Operation] The operation of the memory device according to the present invention shown in FIG. 1 will be explained below with reference to the flowchart shown in FIG.

【0012】デ−タが瞬時に大量に発生した場合に(図
2のステップS1)、マスタCPU1は入力デ−タを一
度に不揮発性メモリアレイ4に書き込むことが不可能な
ため、始め揮発性メモリ3に保管する(同S2)。その
後、マスタCPU1はデータバス20及びアドレスバス
21を介して書込選択回路5によりメモリアレイ4を構
成するメモリチップ41 〜4n に一度に書き込める
程度のバイト数(通常、1〜8バイト)を1ペ−ジの形
式にして各メモリチップに順々にアドレスを更新しなが
ら書き写して行く(同S3)。従って、メモリチップ数
nと等しいnペ−ジ分は待ち時間無しで一度に不揮発性
メモリアレイ4に書き込むことができる。そして、マス
タCPU1は自分の動作が終了したのでスレーブCPU
2を制御して起動を掛ける(同S4)。
When a large amount of data is generated instantaneously (step S1 in FIG. 2), the master CPU 1 cannot write the input data to the non-volatile memory array 4 at once, so it is initially volatile. The data is stored in the memory 3 (S2). Thereafter, the master CPU 1 selects a number of bytes (usually 1 to 8 bytes) that can be written at once to the memory chips 41 to 4n constituting the memory array 4 using the write selection circuit 5 via the data bus 20 and address bus 21. The data is written in the form of a page and is copied to each memory chip in turn while updating the address (S3). Therefore, n pages equal to the number n of memory chips can be written to the nonvolatile memory array 4 at one time without waiting time. Then, since the master CPU1 has finished its own operation, the slave CPU
2 and activates it (S4).

【0013】起動が掛けられたことを知った(同S5)
スレーブCPU2では、チップレディ検出回路6からデ
ータバス22を介してどのメモリチップがその書込サイ
クルが終了状態にあるかを読み出し(同S6)、書込み
が終了したばかりのメモリチップに書き込まれたデ−タ
を読出・書込選択回路7により読み出す(同S7)。
[0013] I learned that activation was applied (S5)
The slave CPU 2 reads which memory chip has completed its write cycle from the chip ready detection circuit 6 via the data bus 22 (S6), and reads the data written to the memory chip that has just finished writing. - is read out by the read/write selection circuit 7 (S7).

【0014】各メモリチップには書込データとしてマス
タCPU1から書込回数も同時に書き込まれるようにな
っており、スレーブCPU2では、読み出したメモリチ
ップのデータ中の書込回数が最低保証書込回数を超えて
いるか否かを判定し(同S8)、越えていた場合に限り
、揮発性メモリ3に保管してある同じ領域のデ−タと比
較する(同S9)。そして、両者が異なる場合は、スレ
ーブCPU2は読出・書込選択回路7により今のデータ
を読み出したメモリチップの未使用領域に書込領域を変
更して揮発性メモリ3のデータを新たに書き直す(同S
10)。
[0014] The number of writes is simultaneously written to each memory chip from the master CPU 1 as write data, and in the slave CPU 2, if the number of writes in the read data of the memory chip exceeds the minimum guaranteed number of writes. It is determined whether the data exceeds the limit (S8), and only if it exceeds the same, the data is compared with data in the same area stored in the volatile memory 3 (S9). If the two are different, the slave CPU 2 uses the read/write selection circuit 7 to change the write area to an unused area of the memory chip from which the current data was read, and rewrites the data in the volatile memory 3 ( Same S
10).

【0015】このように、スレーブCPU2が以上の動
作を行っていても、マスタCPU1の不揮発性メモリア
レイ4へのデータ書込みとは独立しているため、デ−タ
が瞬時に大量に発生した場合であっても、即座に不揮発
性メモリアレイ4のデータを履歴させることが可能とな
る。
In this way, even if the slave CPU 2 performs the above operations, it is independent of the data writing to the nonvolatile memory array 4 by the master CPU 1, so if a large amount of data is generated instantaneously, Even if the data is stored in the nonvolatile memory array 4, it is possible to immediately record the data in the nonvolatile memory array 4.

【0016】[0016]

【実施例】図3は、本発明に係るメモリ装置の実施例を
示したもので、この実施例では、図1に示したデュアル
ポートの揮発性メモリ3としてSRAMを用い、不揮発
性メモリ4としてEEPROMを用いており、不揮発性
メモリ4は更にn=3個のメモリチップ41 〜43 
で構成されている。また、書込選択回路5は、マスタC
PU1からアドレスバス21を介して与えられるアドレ
ス信号ADDRに基づいて各メモリチップ41 〜43
 を書込選択するためのチップセレクト信号CSを発生
するアドレスデコーダ50を各メモリチップ41 〜4
3 に共通に有し、更に個々のメモリチップ41 〜4
3 にそれぞれ、マスタCPU1からのライトイネーブ
ル信号WEとアドレスデコーダ50からのチップセレク
ト信号CSとを入力するANDゲート51a,51b,
51cと、このANDゲート51a,51b,51cの
出力信号により各メモリチップ41 〜43 へのデー
タバス20、チップセレクト信号CS、アドレス信号A
DDR、及びライトイネーブル信号WEに対するゲート
を開くアービタ52a,52b,52cとを設けている
。更に、読出・書込選択回路7は、スレーブCPU2か
らアドレスバス23を介して与えられるアドレス信号A
DDRに基づいて各メモリチップ41 〜43 を読出
選択するためのチップセレクト信号CSを発生するアド
レスデコーダ70を各メモリチップ41 〜43 に共
通に有し、更に個々のメモリチップ41 〜43にそれ
ぞれ、ANDゲート51a,51b,51cの出力信号
を反転するインバータ71a,71b,71cと、この
インバータ71a,71b,71cの出力信号により各
メモリチップ41 〜43 へのデータバス22、チッ
プセレクト信号CS、アドレス信号ADDR、及びリー
ドイネーブル信号REに対するゲートを開くアービタ7
2a,72b,72cとを設けており、更にアドレスデ
コーダ70からのタイミング信号とアドレス信号とスレ
ーブCPU2からデータバス22を介して受ける再書込
データを書き込むための未使用領域を指定するためのハ
ードレジスタ73を各メモリチップ41 〜43 に共
通に有している。また、チップレディ検出回路6は各メ
モリチップ41 〜43 のトグル出力(I/O)、ア
ドレスデコーダ70からのタイミング信号及びアドレス
信号を受けてデータバス22を介して書込終了したメモ
リチップをスレーブCPU2に知らせるためのハードレ
ジスタで構成されている。
[Embodiment] FIG. 3 shows an embodiment of the memory device according to the present invention. In this embodiment, an SRAM is used as the dual-port volatile memory 3 shown in FIG. EEPROM is used, and the nonvolatile memory 4 further includes n=3 memory chips 41 to 43.
It consists of Further, the write selection circuit 5 selects the master C
Each of the memory chips 41 to 43 is configured based on the address signal ADDR given from the PU1 via the address bus 21.
An address decoder 50 that generates a chip select signal CS for writing selection is connected to each memory chip 41 to 4.
3 in common, and further includes individual memory chips 41 to 4.
AND gates 51a, 51b, and 3 input the write enable signal WE from the master CPU 1 and the chip select signal CS from the address decoder 50, respectively.
51c and the output signals of the AND gates 51a, 51b, 51c, the data bus 20, chip select signal CS, and address signal A to each memory chip 41 to 43.
Arbiters 52a, 52b, and 52c that open gates for DDR and write enable signal WE are provided. Further, the read/write selection circuit 7 receives an address signal A applied from the slave CPU 2 via the address bus 23.
Each of the memory chips 41 to 43 has an address decoder 70 in common that generates a chip select signal CS for reading and selecting each memory chip 41 to 43 based on the DDR, and each of the memory chips 41 to 43 has Inverters 71a, 71b, 71c invert the output signals of AND gates 51a, 51b, 51c, and data buses 22, chip select signals CS, and addresses to each memory chip 41 to 43 by the output signals of these inverters 71a, 71b, 71c. Arbiter 7 that opens gates for signal ADDR and read enable signal RE
2a, 72b, and 72c, and further includes hardware for specifying an unused area for writing timing signals and address signals from the address decoder 70, and rewrite data received from the slave CPU 2 via the data bus 22. Each of the memory chips 41 to 43 has a register 73 in common. In addition, the chip ready detection circuit 6 receives toggle outputs (I/O) from each of the memory chips 41 to 43, timing signals and address signals from the address decoder 70, and slave the memory chips for which writing has been completed via the data bus 22. It consists of a hard register for notifying the CPU 2.

【0017】次にこのような実施例の動作を説明すると
、EEPROMアレイ4に多ペ−ジデ−タを書き込む場
合に、まずマスタCPU1からの命令(アドレスADD
R及びチップセレクトCS)により数バイトを1ペ−ジ
としたページデータを一度バッファ代わりのSRAM3
に移す。その後、アドレスデコーダ50からのチップセ
レクト信号CSとライトイネーブル信号WEとをAND
ゲート51a〜51cを介して受けたアービタ52a〜
52cがゲートを開く。EEPROMアレイ4の内、ま
ず1番目のEEPROMメモリチップ41 にSRAM
3内の1ペ−ジ分のペ−ジデ−タを書き込む。次に2番
目のメモリチップ42 にSRAM3内の次の1ページ
分のページデータを書き込む。
Next, to explain the operation of such an embodiment, when writing multi-page data to the EEPROM array 4, first a command (address ADD) from the master CPU 1 is sent.
R and chip select CS), the page data made up of several bytes as one page is once stored in the SRAM3 as a buffer.
Move to. After that, the chip select signal CS from the address decoder 50 and the write enable signal WE are ANDed.
Arbiter 52a~ received via gates 51a~51c
52c opens the gate. The first EEPROM memory chip 41 in the EEPROM array 4 is equipped with SRAM.
Write page data for one page in 3. Next, page data for the next page in the SRAM 3 is written into the second memory chip 42.

【0018】この部分の詳細図が図4に示されており、
1ペ−ジデ−タを例えば32バイトと仮定し、1番目の
EEPROMチップ41 にデ−タを書き込む。1ペ−
ジ内のアドレス管理は16ビットのアドレスバス21(
アドレスバス23も同様)のビットA0〜A4で行い、
チップセレクトを行うために使用されるメモリチップの
アドレス管理はビットA6〜A15で行う。その後、こ
のEEPROMチップ41 は約10msの間、読出も
書込も不可能な状態になるので、SRAM3内の2ペ−
ジ目の32バイトのペ−ジデ−タは、 2番目のEEP
ROMチップ42 の(1番目のEEPROMチップ4
1 に書き込んだチップ内のメモリ領域と)同一の領域
に書き込む。 この場合の書込時間はチップ固有のアクセスタイムだけ
となる。また、チップセレクト信号CSはアドレスデコ
−ダ50で32バイト毎に出力する。アービタ52a〜
52cと72a〜72cは、 3ステートバッファを用
いている。仮にマスタCPU1により1番目のEEPR
OMチップ41 が、書込みチップとして選択されたと
する。アービタ52aは開き72aは閉じる。他のマス
タCPU1によりチップセレクトされないメモリチップ
のアービタは、52b,52cとも閉じ、72b,72
cは開く。これよりマスタCPU1はチップセレクトを
行ったEEPROMチップ41 のみアクセスが出来る
。このとき、スレーブCPU2より見ると、逆にマスタ
CPU1によりチップセレクトが行われた1番目のEE
PROMチップ41 のアービタ72aのみ閉じており
、他のマスタCPU1によりチップセレクトされないメ
モリチップのアービタ72b,72cはスレーブCPU
2に対しては開いている。以上により、スレーブCPU
2はマスタCPU1によって選択さないメモリチップに
対しての内部のデータを何時でも読みだすことが出来る
A detailed diagram of this part is shown in FIG.
Assuming that one page of data is, for example, 32 bytes, the data is written into the first EEPROM chip 41. 1 page
Address management within the 16-bit address bus 21 (
This is done using bits A0 to A4 of the address bus 23 (same).
Address management of memory chips used for chip selection is performed using bits A6 to A15. Thereafter, this EEPROM chip 41 is in a state where neither reading nor writing is possible for about 10 ms, so the two pages in the SRAM 3 are
The 32-byte page data of the second EEP
ROM chip 42 (first EEPROM chip 4
Write to the same area in the chip (as the memory area in the chip written to). In this case, the write time is only the chip-specific access time. Further, the chip select signal CS is output by the address decoder 50 every 32 bytes. Arbiter 52a~
52c and 72a to 72c use 3-state buffers. If the first EEPR is set by master CPU1,
Assume that OM chip 41 is selected as the write chip. Arbiter 52a opens and 72a closes. Arbiters 52b and 52c of memory chips that are not chip-selected by other master CPUs 1 are closed, and 72b and 72
c opens. From this, the master CPU 1 can access only the EEPROM chip 41 that has undergone chip selection. At this time, from the perspective of slave CPU2, the first EE for which chip selection was performed by master CPU1
Only the arbiter 72a of the PROM chip 41 is closed, and the arbiters 72b and 72c of memory chips that are not chip-selected by the other master CPUs are slave CPUs.
Open for 2. As a result of the above, the slave CPU
2 can read out internal data from memory chips not selected by the master CPU 1 at any time.

【0019】このようにしてマスタCPU1はEEPR
OMアレイ4の各メモリチップ41〜43 に32バイ
トのペ−ジデ−タを書き込んで行く。EEPROMアレ
イ4の数が仮に20であるとすれば、20ペ−ジデ−タ
、言い換えれば640バイトのデ−タを待ち時間無しで
書き込んでしまうことが可能となる。
In this way, the master CPU 1
32 bytes of page data are written to each memory chip 41 to 43 of the OM array 4. Assuming that the number of EEPROM arrays 4 is 20, it is possible to write 20 page data, or in other words, 640 bytes of data without waiting time.

【0020】尚、EEPROMアレイ4の最後であるE
EPROMチップ43 に到達し、1ペ−ジデ−タを書
き込んだ後、更に1ペ−ジ書き込む場合には、1ペ−ジ
デ−タを書き込んだ1番目のEEPROMチップ41 
を再び選択し、2ペ−ジ目の区画10に次の1ペ−ジ分
のデ−タを書き込む。その後、1ペ−ジ目の区画に書い
た方法と同様に3番目のEEPROMチップ43 まで
繰り返す。
[0020] Note that the last EEPROM array 4
After reaching the EPROM chip 43 and writing one page of data, if one more page is to be written, the first EEPROM chip 41 to which one page of data has been written is
is selected again and data for the next page is written in section 10 of the second page. Thereafter, the same method as described in the section of the first page is repeated up to the third EEPROM chip 43.

【0021】マスタCPU1により、瞬時に大量発生し
てくるデ−タをEEPROMアレイ4の各メモリチップ
へ書込みを行った直後に、スレーブCPU2は、今、マ
スタCPU1により書き込んだEEPROMアレイ4の
メモリチップが書込寿命に達しているか否かをメモリチ
ップ内のデ−タを読み出し、SRAM3内の同一領域の
デ−タとを比較する。但し、EEPROMメモリチップ
の書込回数が最低保証書換回数である例えば10000
 回になるまでは、そのデ−タ比較操作は行わない。
Immediately after the master CPU 1 writes a large amount of data instantaneously into each memory chip of the EEPROM array 4, the slave CPU 2 writes the data to the memory chip of the EEPROM array 4 that has just been written by the master CPU 1. The data in the memory chip is read out and compared with the data in the same area in the SRAM 3 to determine whether or not it has reached its write life. However, if the number of times the EEPROM memory chip is written is the minimum guaranteed number of rewrites, for example 10,000.
The data comparison operation is not performed until the end of the data comparison period.

【0022】このため、書込回数はマスタCPU1が各
EEPROMメモリチップ内の1ペ−ジデ−タ、32バ
イトの内の2バイトに書いておき、スレーブCPU2か
らの各メモリチップ毎に読み出されたデータ中に示され
た書込回数が最低保証書換回数である10000 回を
超えていた場合に限り、SRAM3に保管したデ−タと
比較する。尚、この書込回数についてはマスタCPU1
が知っているが、電源オフになったときには電源オン時
にマスタCPU1がそのメモリチップ内に書き込んであ
る書込回数を読みに行くことにより知ることが出来る。
For this reason, the number of writes is written by the master CPU 1 to 2 bytes of 32 bytes of 1 page data in each EEPROM memory chip, and read out from the slave CPU 2 for each memory chip. Only when the number of writes shown in the data exceeds the minimum guaranteed number of rewrites of 10,000, the data is compared with the data stored in the SRAM3. The number of writes is determined by the master CPU1.
However, when the power is turned off, it can be known by reading the number of writes written in the memory chip by the master CPU 1 when the power is turned on.

【0023】スレーブCPU2による各メモリチップか
らのデータ読出は、アドレス信号ADDRとリードイネ
ーブル信号REとがアドレスデコーダ70に与えられて
発生されるチップセレクト信号CSが各メモリチップ4
1 〜43 を選択することにより1ページデータ毎に
行われるが、各メモリチップにおいて書込と読出が衝突
しないようにするため、メモリチップの内部書込サイク
ルが終了状態にあるかは、各EEPROMチップのトグ
ル出力(I/O)がビジ−であるか否かをハードレジス
タ6により検出する。そして、スレーブCPU2はこの
ハードレジスタ6に対してポ−リングを行い、ハードレ
ジスタにより得たコードにより書込が終了した直後のE
EPROMチップの判別をし、内部書込サイクルが終了
したEEPROMチップに対してスレーブCPU2は1
ペ−ジデ−タを読みに行く。
When data is read from each memory chip by the slave CPU 2, an address signal ADDR and a read enable signal RE are applied to an address decoder 70, and a chip select signal CS generated is sent to each memory chip 4.
This is done for each page of data by selecting 1 to 43, but in order to prevent writing and reading from colliding in each memory chip, whether the internal write cycle of the memory chip is completed or not is determined by each EEPROM. The hard register 6 detects whether the toggle output (I/O) of the chip is busy. Then, the slave CPU 2 polls this hard register 6, and uses the code obtained from the hard register to write the E
The slave CPU 2 identifies the EPROM chip and writes 1 to the EEPROM chip for which the internal write cycle has been completed.
Go read the page data.

【0024】そして、スレーブCPU2が読み出した書
込終了直後のメモリチップのデータにおける書込回数が
上記の10000 回を越えていることが分かったとき
には、そのメモリチップから読み出したデータとSRA
M3に保管した同一領域のデータとを比較し、両者が異
なる場合は再度、書き込みを行う。それでも、それらの
データが異なる場合は、書込寿命に達してデータが壊れ
た可能性が在ると判断しEEPROMメモリチップ内の
未使用領域に書込領域を変更しスレーブCPU2側で新
たに書き直す。この場合の未使用領域とは今まで書き込
んだ領域9(図4参照)の次の32バイトの領域10を
示し、この領域変更はスレーブCPU2側で、未書込み
領域を指定するためのハードレジスタ73によって各メ
モリチップにおけるアドレスビットA5を“0”→“1
”に変えることによって行われる。尚、ハードレジスタ
73を用いなくても、スレーブCPU2がそのアドレス
信号A0〜A5を指定することによりデータ書込領域を
変更することができる。
[0024] When it is found that the number of writes in the data read out by the slave CPU 2 from the memory chip immediately after the end of writing exceeds the above-mentioned 10,000 times, the data read from the memory chip and the SRA
The data in the same area stored in M3 is compared, and if the two are different, the data is written again. If the data still differs, it is determined that the writing life has been reached and the data may have been corrupted, and the writing area is changed to an unused area in the EEPROM memory chip and rewritten on the slave CPU 2 side. . In this case, the unused area refers to the 32-byte area 10 next to the area 9 written so far (see FIG. 4), and this area is changed on the slave CPU 2 side by the hard register 73 for specifying the unwritten area. The address bit A5 in each memory chip is changed from “0” to “1” by
Note that even without using the hard register 73, the slave CPU 2 can change the data write area by specifying its address signals A0 to A5.

【0025】[0025]

【発明の効果】以上のように、本発明に係るメモリ装置
によれば、マスタCPUとスレーブCPUを用い、マス
タCPUは瞬間的に大量且つ高速に発生するデータを一
旦揮発性メモリに保管した後、不揮発性メモリのチップ
毎に書き写しさせる書込み専用として用い、スレーブC
PUは不揮発性メモリの各チップ毎にデータを読み出し
て各メモリチップの書込寿命確認を行い、寿命のときに
はそのメモリチップの別の領域に再書込みするものとし
て用いる事により、瞬間的に大量且つ高速に発生する履
歴デ−タを漏れなく即座に保存し、仮に電源が落ちた場
合でもその時点の履歴を残すことができる。
As described above, according to the memory device according to the present invention, a master CPU and a slave CPU are used, and the master CPU temporarily stores a large amount of data generated at high speed in a volatile memory, and , used exclusively for writing to copy each chip of non-volatile memory, slave C
The PU reads data from each chip of non-volatile memory, checks the write life of each memory chip, and when the life reaches the end of its life, it rewrites data to another area of the memory chip. History data that is generated at high speed can be instantly saved without omission, and even if the power goes out, the history at that point can be preserved.

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

【図1】本発明に係るメモリ装置の原理構成を示すブロ
ック図である。
FIG. 1 is a block diagram showing the principle configuration of a memory device according to the present invention.

【図2】本発明に係るメモリ装置におけるマスタCPU
とスレーブCPUの動作を示したフロ−チャ−ト図であ
る。
[Fig. 2] Master CPU in the memory device according to the present invention
FIG. 2 is a flowchart showing the operation of a slave CPU.

【図3】本発明に係るメモリ装置の一実施例を示すブロ
ック図である。
FIG. 3 is a block diagram showing an embodiment of a memory device according to the present invention.

【図4】本発明に係るメモリ装置のEEPROMアレイ
部分の詳細図である。
FIG. 4 is a detailed diagram of an EEPROM array portion of a memory device according to the present invention.

【符号の説明】 1  マスタCPU 2  スレーブCPU 3  デュアルポートのSRAM(揮発性メモリ)4 
 EEPROMアレイ(不揮発性メモリ)41 〜4n
 EEPROMチップ 6  チップレディ検出回路 7  読出選択回路 20,22  データバス 21,23  アドレスバス 図中、同一符号は同一又は相当部分を示す。
[Explanation of symbols] 1 Master CPU 2 Slave CPU 3 Dual port SRAM (volatile memory) 4
EEPROM array (nonvolatile memory) 41 to 4n
EEPROM chip 6 Chip ready detection circuit 7 Read selection circuit 20, 22 Data bus 21, 23 Address bus In the diagram, the same reference numerals indicate the same or corresponding parts.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  マスタCPU(1) と、該マスタC
PU(1)により割込起動されるスレーブCPU(2)
 と、各CPU(1,2) のデータバス(20,22
) 及びアドレスバス(21,23)に接続されたデュ
アルポートを有し、該マスタCPU(1) の制御の下
に入力データを保管する揮発性メモリ(3) と、該揮
発性メモリ(3) の領域と少なくとも同じ大きさを有
し、複数のメモリチップ(41 〜 4n ) で構成
された不揮発性メモリアレイ(4) と、該マスタCP
U(1) のデータバス(20)及びアドレスバス(2
1)に接続されて特定メモリ領域単位に該メモリチップ
を選択して該揮発性メモリ(3) のデータを書き写す
と共にその書込回数を書き込む書込選択回路(5) と
、該メモリアレイ(4) 中のどのメモリチップのデ−
タが書込終了し読出可能の状態になったかを該データバ
ス(22)を介して該スレーブCPU(2) に知らせ
るチップレディ検出回路(6) と、該スレーブCPU
(2) のデータバス(22)及びアドレスバス(23
)に接続されて該特定メモリ領域単位に該チップレディ
検出回路(6) で検出された該メモリチップを選択し
てそのデータを読み出す読出・書込選択回路(7) と
、を備え、該スレーブCPU(2) が該読出可能なメ
モリチップからデータを読み出すと共に該データ中の書
込回数が最低保証書込回数に達しているときに該揮発性
メモリ中の同じデータと比較し、異なっているときには
該データを該読出・書込選択回路(7) を介して該読
み出したメモリチップ内の未使用領域に新たに書き直す
ことを特徴としたメモリ装置。
Claim 1: A master CPU (1) and the master C
Slave CPU (2) that is interrupt activated by PU (1)
and the data bus (20, 22) of each CPU (1, 2).
) and an address bus (21, 23) for storing input data under the control of the master CPU (1); a nonvolatile memory array (4) having at least the same size as the area of
U(1)'s data bus (20) and address bus (2
a write selection circuit (5) that is connected to the memory array (1) and selects the memory chip in units of a specific memory area, writes data in the volatile memory (3), and writes the number of times of writing; ) What memory chip data is inside?
a chip ready detection circuit (6) that notifies the slave CPU (2) via the data bus (22) whether the data has been written and is ready for reading;
(2) Data bus (22) and address bus (23)
) for selecting the memory chip detected by the chip ready detection circuit (6) in units of the specific memory area and reading data therefrom; When the CPU (2) reads data from the readable memory chip and the number of writes in the data has reached the minimum guaranteed number of writes, it compares it with the same data in the volatile memory, and if they are different, A memory device characterized in that the data is newly rewritten into an unused area in the read memory chip via the read/write selection circuit (7).
JP3045777A 1991-02-18 1991-02-18 Memory device Withdrawn JPH04263198A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3045777A JPH04263198A (en) 1991-02-18 1991-02-18 Memory device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3045777A JPH04263198A (en) 1991-02-18 1991-02-18 Memory device

Publications (1)

Publication Number Publication Date
JPH04263198A true JPH04263198A (en) 1992-09-18

Family

ID=12728726

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3045777A Withdrawn JPH04263198A (en) 1991-02-18 1991-02-18 Memory device

Country Status (1)

Country Link
JP (1) JPH04263198A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07219720A (en) * 1993-10-01 1995-08-18 Hitachi Maxell Ltd Semiconductor memory device and its control method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07219720A (en) * 1993-10-01 1995-08-18 Hitachi Maxell Ltd Semiconductor memory device and its control method

Similar Documents

Publication Publication Date Title
US4667330A (en) Semiconductor memory device
US5898615A (en) Semiconductor memory device having non-volatile memory cells connected in series
US20100054069A1 (en) Memory system
US20040236910A1 (en) Memory card having a buffer memory for storing testing instruction
JPH04233825A (en) Programmable logic device, circuit block used in this device, method for determining whether input to aforesaid device is used in logic function and method for making input buffer of aforesaid device unusable
JPH07114497A (en) Semiconductor integrated circuit device
JPS61267846A (en) Integrated circuit device with memory
JP3578175B2 (en) Memory word management circuit
US6532529B1 (en) Microcomputer including flash memory overwritable during operation and operating method thereof
JP2002015584A (en) Read/protect circuit for non-volatile memory
US20170161216A1 (en) Memory devices and methods having instruction acknowledgement
US6654311B2 (en) Synchronous flash memory command sequence
US6535442B2 (en) Semiconductor memory capable of debugging an incorrect write to or an incorrect erase from the same
JP3482543B2 (en) Semiconductor memory
JP3140695B2 (en) Associative memory device
JPH04263198A (en) Memory device
JPH0822422A (en) Memory device
US5598569A (en) Data processor having operating modes selected by at least one mask option bit and method therefor
JPH01295349A (en) Semiconductor nonvolatile memory device
JPH09198880A (en) Nonvolatile semiconductor memory
KR0180117B1 (en) Non-volatile semiconductor memory
EP0714060B1 (en) One chip microcomputer with built-in non-volatile memory
JPH0588964A (en) Data storage system having intrinsic burst detection
JP3135770B2 (en) Nonvolatile semiconductor memory and storage device using the nonvolatile semiconductor memory
JPH02187843A (en) Data holding type memory device

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19980514