JPH0443447A - Rom diagnosis device - Google Patents

Rom diagnosis device

Info

Publication number
JPH0443447A
JPH0443447A JP2150456A JP15045690A JPH0443447A JP H0443447 A JPH0443447 A JP H0443447A JP 2150456 A JP2150456 A JP 2150456A JP 15045690 A JP15045690 A JP 15045690A JP H0443447 A JPH0443447 A JP H0443447A
Authority
JP
Japan
Prior art keywords
rom
ram
check code
check
circuit
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
JP2150456A
Other languages
Japanese (ja)
Inventor
Shinya Kono
慎哉 河野
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 JP2150456A priority Critical patent/JPH0443447A/en
Publication of JPH0443447A publication Critical patent/JPH0443447A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PURPOSE:To miniaturize a device and to reduce cost by storing a check code through the use of RAM whose bit constitution is less than ROM. CONSTITUTION:At the time of initializing a computer system, a check code generation circuit 21 generates the check codes which respectively correspond to the storage content of ROM 12 and a RAM write circuit 24 writes the generated check code in RAM 13. Whenever ROM 12 is accessed, the check code is read from the corresponding address of RAM 13. When there is an error in the storage content which the check circuit 22 accesses, an interruption generation circuit 23 gives an interruption signal to CPU 11. Thus, not only the number of chips but also cost is reduced by using RAM instead of ROM.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分5F ) 本発明は、ROMを用いたコンピュータシステムに利用
されるROM診断装置に係わり、特にROMの記憶内容
の誤りを検出するためのROM診断装置の改良に関する
[Detailed Description of the Invention] [Object of the Invention] (Industrial Application 5F) The present invention relates to a ROM diagnostic device used in a computer system using a ROM, and particularly to a ROM diagnostic device for detecting errors in stored contents of a ROM. The present invention relates to an improvement of a ROM diagnostic device for the purpose of the present invention.

(従来の技術) 従来からROM素子、EFROM (Erasable  ProgrammableRO
M)素子が広く利用されているが、近年ではEEPRO
M (E l ec t r ica I IyEra
sable  ProgrammableROM)素子
も用いられるようになってきた。これら素子は8ビツト
ないし16ビツト単位で1つの素子として構成されてい
る。以下、これらROM素子、EFROM素子オヨびE
EPROM素子等をROMと総称する。
(Prior art) ROM elements, EFROM (Erasable Programmable RO
M) elements are widely used, but in recent years EEPRO
M (Electrica IyEra
Sable programmable ROM) devices have also come into use. These elements are constructed as one element in units of 8 bits to 16 bits. Below, these ROM elements, EFROM elements, etc.
EPROM elements and the like are collectively called ROM.

ところで、この種のROMの自己診断方法は、ROMの
記憶内容を最初から最後まで足し算して得られたチェッ
ク・サムと予めROMに書き込んだチェック・サムコー
ドとを比較することにより自己診断する方法である。一
般に、チェック・サムによる自己診断はシステムのイニ
シャライズ時に1回のみ行われ、システムの稼働中には
パリティチェック等のエラーデテクティング・コード(
以下、チェックコードと呼ぶ)による方法がとられてい
る。
By the way, this type of ROM self-diagnosis method is a method of self-diagnosis by comparing the checksum obtained by adding up the memory contents of the ROM from the beginning to the end with the checksum code written in the ROM in advance. be. In general, self-diagnosis using check sums is performed only once when the system is initialized, and error detection codes such as parity checks (
Hereinafter referred to as a check code) method is used.

第6図はかかる自己診断方法を具体化した従来のROM
診断装置のブロック図である。同図において1はCPU
、2はROM、3はパリティチェック回路、4はROM
2のチェックコードとして全素子に対応するパリティビ
ットを記憶するパリティ用ROMであり、ROM2と同
一のアドレスを有する記憶容量をもって構成されている
。また、fはデータバス、gはチェックコード信号、h
はアドレスバスである。
Figure 6 shows a conventional ROM that embodies such a self-diagnosis method.
FIG. 2 is a block diagram of a diagnostic device. In the same figure, 1 is the CPU
, 2 is ROM, 3 is parity check circuit, 4 is ROM
This is a parity ROM that stores parity bits corresponding to all elements as a check code of ROM2, and is configured with a storage capacity having the same address as ROM2. Also, f is a data bus, g is a check code signal, and h
is the address bus.

(発明が解決しようとする課題) しかし、チェック・サムによる自己診断は、コンピュー
タシステムのイニシャライズ時にのみ実施するものであ
り、稼働中に発生した記憶内容の消滅や読み出しエラー
などを検出することができない。一方、チェックコード
を使用する方法では付加するチェックコードを記憶する
ためのROMを追加する必要がある。しかし、ROMチ
ップのビット構成は8ビツトまたは16ビツトであるの
で、チェックコードが1ビツトまたは2ビツトで済むよ
うな場合にはROMチップの使用されないビットの方が
多くなり、不経済であるばかりでなく、余計な場所を占
有し小形化の障害となっている。
(Problem to be solved by the invention) However, self-diagnosis using check sums is only performed when the computer system is initialized, and cannot detect loss of memory contents or read errors that occur during operation. . On the other hand, in the method using a check code, it is necessary to add a ROM for storing the added check code. However, since the bit configuration of a ROM chip is 8 bits or 16 bits, if the check code only requires 1 or 2 bits, the ROM chip will have more unused bits, which is uneconomical. This occupies unnecessary space and becomes an obstacle to downsizing.

本発明は以上のような問題点を解決するためになされた
もので、ROMの代わりにRAMを使用することにより
、チップ数のみならず、コストの低減化を図りうるRO
M診断装置を提供することを目的とする。
The present invention was made to solve the above problems, and by using RAM instead of ROM, it is possible to reduce not only the number of chips but also the cost.
The purpose of the present invention is to provide an M diagnostic device.

[発明の構成] (3題を解決するための手段) 本発明に係わるRAM診断装置は上記課題を解決するた
めに、少なくともCPU、ROMを用いたコンピュータ
システムにおいて、エラーチェックコードを記憶するた
めのRAMと、前記コンピュータシステムのイニシャラ
イズ時に前記ROMの記憶内容に基づいてエラーチェッ
クコードを生成するチェックコード生成回路と、この生
成されたエラーチェックコードを前記RAMに書き込む
RAM書き込み回路と、イニシャライズ終了後に前記R
OMの記憶内容を読み出すごとに対応する前記RAMか
らエラーチェックコードを読み出して前記ROMの記憶
内容について誤りの有無を調べ、誤り有りの場合にCP
Uに割り込み信号を送出するチェック回路とを備えた構
成である。
[Structure of the Invention] (Means for Solving the Three Problems) In order to solve the above problems, the RAM diagnostic device according to the present invention has a method for storing error check codes in a computer system using at least a CPU and a ROM. a RAM; a check code generation circuit that generates an error check code based on the storage contents of the ROM when the computer system is initialized; a RAM write circuit that writes the generated error check code to the RAM; R
Every time the memory contents of the OM are read, an error check code is read from the corresponding RAM to check whether there are any errors in the memory contents of the ROM, and if there is an error, the CP
This configuration includes a check circuit that sends an interrupt signal to U.

(作用) 従って、本発明はこのような手段を講じたことにより、
コンピュータシステムのイニシャライズ時に、チェック
コード生成回路でROMの記憶内容にそれぞれ対応する
チェックコードを生成した後、この生成されたチェック
コードをRAM書き込み回路によってRAMに書き込ん
でおく。そして、ROMをアクセスする度に対応するR
AMのアドレスからチェックコードを読み出し、チェッ
ク回路によってアクセスした記憶内容に誤りがあればC
PUに割り込み信号を与えるようにしたものである。
(Function) Therefore, by taking such measures, the present invention has the following advantages:
When a computer system is initialized, a check code generation circuit generates check codes corresponding to the contents stored in the ROM, and then the generated check codes are written into the RAM by a RAM writing circuit. Then, each time the ROM is accessed, the corresponding R
Read the check code from the AM address, and if there is an error in the memory contents accessed by the check circuit, C
It is designed to give an interrupt signal to the PU.

(実施例) 以下、本発明の実施例について第1図および第2図を参
照して説明する。第1図は本発明装置の一実施例を示す
ブロック図、第2図は第1図のROM診断回路の具体的
な構成を示す図である。
(Example) Hereinafter, an example of the present invention will be described with reference to FIGS. 1 and 2. FIG. 1 is a block diagram showing one embodiment of the device of the present invention, and FIG. 2 is a diagram showing a specific configuration of the ROM diagnostic circuit of FIG. 1.

第1図において11はCPU、12は予めプログラムデ
ータや固定データを格納するROM、1Bはチェックコ
ードを記憶するためのRAMであって、ROM12と同
一のアドレスをもって構成されている。14はROM1
2の記憶内容に対応するチェックコードを生成してRA
M13に書き込み、またROM12へのアクセス時にR
AM6に書き込んだチェックコードを読み出してアクセ
スした記憶内容の誤りを検出し、CPU4に割り込み1
6号を与えるROM診断回路である。15はI10ポー
トである。
In FIG. 1, 11 is a CPU, 12 is a ROM for storing program data and fixed data in advance, and 1B is a RAM for storing a check code, which has the same address as the ROM 12. 14 is ROM1
Generate a check code corresponding to the memory contents of 2 and execute RA.
When writing to M13 and accessing ROM12, R
It reads the check code written in AM6, detects an error in the accessed memory contents, and sends an interrupt 1 to CPU4.
This is a ROM diagnostic circuit that gives No. 6. 15 is an I10 port.

次に、第2図は第1図のROM診断回路14の構成を示
す図であって、具体的にはデータバスfから入力される
データに付加するチェックコード信号gを発生するチェ
ックコード生成回路21、データバスfから入力される
データとチェックコード信号gとからデータの誤りを検
出するチェック回路22、このチェック回路12のチェ
ックによって誤りを検出したときにCPUIIに割り込
み信号kを送出する割り込み発生回路23、RAM13
に書き込みタイミング信号を送出するRAM書き込み回
路24ミRAM13へのRAMリード信号信号用力する
ナントゲート25、RAM6へのRAMライト信号qを
出力するナントゲート26等によって構成されている。
Next, FIG. 2 is a diagram showing the configuration of the ROM diagnostic circuit 14 of FIG. 1, and specifically, a check code generation circuit that generates a check code signal g to be added to data input from the data bus f. 21. A check circuit 22 that detects data errors from the data input from the data bus f and the check code signal g; an interrupt generation unit that sends an interrupt signal k to the CPU II when an error is detected by checking the check circuit 12; Circuit 23, RAM 13
A RAM write circuit 24 sends a write timing signal to the RAM 13, a Nant gate 25 sends a RAM read signal to the RAM 13, a Nant gate 26 outputs a RAM write signal q to the RAM 6, and the like.

0はROMリード信号、iはチェックコード生成回路2
1とチェック回路22とを切り換える切り換え信号であ
る。
0 is ROM read signal, i is check code generation circuit 2
This is a switching signal for switching between the check circuit 1 and the check circuit 22.

次に、コンピュータシステムのイニシャライズ時の動作
について第3図を参照して説明する。
Next, the operation during initialization of the computer system will be explained with reference to FIG.

CPUIIの動作が開始すると、イニシャライズ処理と
してROMチェック開始ルーチンが起動され(ステップ
Sl) 、CPUIIのメモリアドレスレジスタが先頭
番地を示すように初期化した後(ステップS2)、「0
」の切り換え信号lに基づいてチェックコード生成モー
ドに設定する(ステップS3)。しかる後、メモリアド
レスレジスタが指すROM12の番地から記憶゛内容を
読み出しくステップS4)、チェック・サムの演算を実
行する(ステップS5)。同時に、データバスf上の読
み出した記憶内容に対し、予め定めである規則に従って
チェックコード生成回路11でチェックコードを生成し
くステップS6)、前記メモリアドレスレジスタが指す
RAM13の番地にRAMライト信号qを与えてチェッ
クコードを書き込む(ステップS7)。もし、最終番地
でなければ(ステップS8)、メモリアドレスレジスタ
を1つ進めた後(ステップS9)、前記ステップ4に戻
って同様の処理を繰り返す。もし、最終番地に到達した
ならば(ステップS8)、予めROMI 2の特定の番
地に記憶しであるチェック・サムコードを読み出しくス
テップ510)チェック・サム演算の結果と比較しくス
テップ511) 一致しなければステップS12のRO
M異常処理ルーチンに移行し、一致している場合には切
り換え信号iを「1」に設定してチェックコード生成モ
ードを終了し、RAM13に書き込んだチェックコード
に基づいてデータバスf上のデータの誤りを検出するチ
ェック回路22、割り込み発生回路23を生かし、RA
Mリード信号信号用力する通常のチェックモードに設定
する(ステップ813)。以後、ROM12をアクセス
する度にROM12と同一の番地のRAM13からチェ
ックコード信号gを読み出し、チェック回路22によっ
てROM12から読み出したデータの誤りの有無を調べ
、誤りが有れば割り込み発生回路23からCPUIIに
割り込み信号kを送出する。
When the CPU II starts operating, a ROM check start routine is activated as an initialization process (step S1), and after initializing the CPU II memory address register to indicate the first address (step S2), the ROM check start routine is started as an initialization process.
The check code generation mode is set based on the switching signal l of "" (step S3). Thereafter, the contents of the memory are read out from the address of the ROM 12 pointed to by the memory address register (step S4), and a checksum calculation is executed (step S5). At the same time, the check code generation circuit 11 generates a check code for the read memory content on the data bus f according to a predetermined rule (step S6), and sends a RAM write signal q to the address of the RAM 13 pointed to by the memory address register. and write the check code (step S7). If it is not the final address (step S8), the memory address register is incremented by one (step S9), and then the process returns to step 4 and the same process is repeated. If the final address has been reached (step S8), read out the checksum code previously stored at a specific address in ROMI 2. Compare it with the checksum calculation result (step 510) and it must match (step 511). For example, RO in step S12
The process moves to the M error processing routine, and if they match, the switching signal i is set to "1", the check code generation mode is ended, and the data on the data bus f is generated based on the check code written in the RAM 13. By making use of the check circuit 22 that detects errors and the interrupt generation circuit 23, the RA
A normal check mode is set in which the M read signal is used (step 813). Thereafter, each time the ROM 12 is accessed, the check code signal g is read from the RAM 13 at the same address as the ROM 12, and the check circuit 22 checks whether there is an error in the data read from the ROM 12. If there is an error, the interrupt generation circuit 23 sends a signal to the CPU II. The interrupt signal k is sent to

次に、第4図にてイニシャライズ時におけるチェックコ
ード生成タイミングについて説明する。
Next, the check code generation timing at the time of initialization will be explained with reference to FIG.

ROMリード信号0が「0」レベルのとき、アドレスバ
スh上のアドレスAnによって指定されたROM12の
アドレスからROM12の記憶内容Dnを読み出した後
、チェックコード生成回路21にてROM12の記憶内
容Dnからチェックコードgnを生成し、RAMライト
信号qのタイミングでアドレスAnに指定されたRAM
13に書き込むようになっている。
When the ROM read signal 0 is at the "0" level, after reading the storage content Dn of the ROM 12 from the address of the ROM 12 specified by the address An on the address bus h, the check code generation circuit 21 reads the storage content Dn of the ROM 12 from the storage content Dn of the ROM 12. Generate check code gn and write the RAM specified by address An at the timing of RAM write signal q.
13.

第5図はイニシャライズ終了後の通常のラン状態におけ
るROMアクセス時のタイミングチャートを示す。RO
Mリード信号0が「0」レベルのとき、アドレスバスh
上のアドレスAnに指定されたROM12のアドレスか
らROM12の記憶内容Dnを読み出し、同時に同じア
ドレスAnに指定されたRAM13のチェックコードg
nをRAMリード信号信号用イミングで読み出すように
なっている。これによって、前述したよう同一アドレス
のROM12の記憶内容DnとRAM13のチェックコ
ードgnとを比較することができる。
FIG. 5 shows a timing chart for accessing the ROM in a normal running state after initialization. R.O.
When M read signal 0 is at “0” level, address bus h
Reads the storage content Dn of the ROM 12 from the address of the ROM 12 specified by the above address An, and at the same time reads the check code g of the RAM 13 specified by the same address An.
n is read out at the timing for the RAM read signal. This makes it possible to compare the storage contents Dn of the ROM 12 and the check code gn of the RAM 13 at the same address as described above.

従って、以上のような実施例の構成によれば、ビット構
成が8ビツト以下のRAM13を使用してチェックコー
ドを記゛憶できるので、ROMを使用する場合に比べて
少ない素子数でROMの診断を実行できる。
Therefore, according to the configuration of the embodiment as described above, since the check code can be stored using the RAM 13 with a bit configuration of 8 bits or less, ROM diagnosis can be performed with a smaller number of elements than when using a ROM. can be executed.

なお、上記実施例ではチェックコード生成回路21とチ
ェック回路22とを分離して構成しているが、両回路は
多くの共通部分を含んでいるので容易に一体化できる。
In the above embodiment, the check code generation circuit 21 and the check circuit 22 are configured separately, but since both circuits include many common parts, they can be easily integrated.

また、チェックコードはパリティコード等のエラーデテ
クティング・コードに限定されることなく、ハミングコ
ードのようなエラーコレクティング・コードを用いてチ
ェック回路22にて誤りを自動訂正することが可能であ
る。
Further, the check code is not limited to an error detecting code such as a parity code, but it is also possible to automatically correct errors in the check circuit 22 using an error correcting code such as a Hamming code. .

さらに、ROMの代わりに、EPROM。Furthermore, instead of ROM, EPROM.

EEPROMを使用する場合も同様に同一の構成を用い
て容易に実現できる。
When using EEPROM, it can be easily realized using the same configuration.

[発明の効果] 以上説明したように本発明によれば、ROMよりもビッ
ト構成の少ないRAMを用いてチェックコードを格納す
るので、装置の小形化およびコストダウンに大きく貢献
する。また、予めチェックコードを記憶するROMを作
成する必要がないので、経済的であり、かつ、ROM交
換の手間を減らすことができる。
[Effects of the Invention] As described above, according to the present invention, since the check code is stored using the RAM, which has a smaller bit configuration than the ROM, it greatly contributes to miniaturization and cost reduction of the device. Furthermore, since there is no need to create a ROM for storing the check code in advance, it is economical and the time and effort required to replace the ROM can be reduced.

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

第1図ないし第5図は本発明に係わるROM診断装置の
一実施例を説明するために示したもので、第1図はRO
M診断装置の全体構成を示すブロック図、第2図は第1
図のROM診断回路の内部構成を示す図、第3図は本発
明装置のイニシャライズ動作を説明するフローチャート
、第4図および第5図はROMアクセス時のタイミング
チャート、第6図は従来装置の構成を示すブロック図で
ある。 11・・・CPU、12・・・ROM、13・・・RA
M。 14・・・ROM診断回路、15・・・I10ポート、
21・・・チェックコード生成回路、22・・・チェッ
ク回路、23・・・割り込み発生回路、24・・・RA
M書き込み回路、25.26・・・ナントゲート。 出願人代理人 弁理士 鈴江武彦 第1図 第2図 第3図 ROMアドレスh RAMシH曙 RAM リード信号ρ n An+4 An+2 第 図
1 to 5 are shown to explain an embodiment of the ROM diagnosis device according to the present invention, and FIG.
A block diagram showing the overall configuration of the M diagnostic device, FIG.
3 is a flowchart explaining the initialization operation of the device of the present invention, FIGS. 4 and 5 are timing charts when accessing the ROM, and FIG. 6 is the configuration of the conventional device. FIG. 11...CPU, 12...ROM, 13...RA
M. 14...ROM diagnostic circuit, 15...I10 port,
21...Check code generation circuit, 22...Check circuit, 23...Interrupt generation circuit, 24...RA
M writing circuit, 25.26... Nantes gate. Applicant's agent Patent attorney Takehiko Suzue Figure 1 Figure 2 Figure 3 ROM address h RAM Akebono RAM Read signal ρ n An+4 An+2 Figure

Claims (1)

【特許請求の範囲】[Claims] 少なくともCPU、ROMを用いたコンピュータシステ
ムにおいて、エラーチェックコードを記憶するためのR
AMと、前記コンピュータシステムのイニシャライズ時
に前記ROMの記憶内容に基づいてエラーチェックコー
ドを生成するチェックコード生成回路と、この生成され
たエラーチェックコードを前記RAMに書き込むRAM
書き込み回路と、イニシャライズ終了後に前記ROMの
記憶内容を読み出すごとに対応する前記RAMからエラ
ーチェックコードを読み出して前記ROMの記憶内容に
ついて誤りの有無を調べ、誤り有りの場合にCPUに割
り込み信号を送出するチェック回路とを備えたことを特
徴とするROM診断装置。
In a computer system using at least a CPU and a ROM, R is used to store error check codes.
AM, a check code generation circuit that generates an error check code based on the storage contents of the ROM when the computer system is initialized, and a RAM that writes the generated error check code into the RAM.
A write circuit reads out an error check code from the corresponding RAM every time the contents of the ROM are read after initialization, checks whether there are any errors in the contents of the ROM, and sends an interrupt signal to the CPU if there is an error. A ROM diagnostic device characterized by comprising a check circuit.
JP2150456A 1990-06-08 1990-06-08 Rom diagnosis device Pending JPH0443447A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2150456A JPH0443447A (en) 1990-06-08 1990-06-08 Rom diagnosis device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2150456A JPH0443447A (en) 1990-06-08 1990-06-08 Rom diagnosis device

Publications (1)

Publication Number Publication Date
JPH0443447A true JPH0443447A (en) 1992-02-13

Family

ID=15497326

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2150456A Pending JPH0443447A (en) 1990-06-08 1990-06-08 Rom diagnosis device

Country Status (1)

Country Link
JP (1) JPH0443447A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5793774A (en) * 1994-11-04 1998-08-11 Fujitsu Limited Flash memory controlling system
US9815110B2 (en) 2015-12-21 2017-11-14 Posco Edge dam of twin roll type strip caster

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5793774A (en) * 1994-11-04 1998-08-11 Fujitsu Limited Flash memory controlling system
US9815110B2 (en) 2015-12-21 2017-11-14 Posco Edge dam of twin roll type strip caster

Similar Documents

Publication Publication Date Title
US4903194A (en) Storage addressing error detection circuitry
JP2606862B2 (en) Single error detection and correction method
JPH0443447A (en) Rom diagnosis device
US8151176B2 (en) CPU instruction RAM parity error procedure
JPH04162300A (en) Semiconductor memory
JPS6129024B2 (en)
US4514847A (en) Key storage error processing system
JPH0816483A (en) Control system for memory device
JPH0316655B2 (en)
JPH10143448A (en) Memory system
JP2993099B2 (en) Redundant memory device
JP2875435B2 (en) Memory module and computer using the same
JP3110222B2 (en) Microcomputer
JPH03266154A (en) Information processor
JPH05158810A (en) Error detection circuit
JPS6043541B2 (en) data processing equipment
JPH06139152A (en) Input/output circuit for storage device
JPH02143352A (en) Memory error detection and correction system
JPH0822419A (en) Miswriting prevention system
JPH02235159A (en) Storage device
JPS6142304B2 (en)
JPS59110098A (en) Error correcting device of data storage device
JPH11194975A (en) Memory system
JPH04233052A (en) Duplex memory device
JPH08166891A (en) Fault tolerant computer system