JPH0782460B2 - How to check the recording medium - Google Patents
How to check the recording mediumInfo
- Publication number
- JPH0782460B2 JPH0782460B2 JP62281153A JP28115387A JPH0782460B2 JP H0782460 B2 JPH0782460 B2 JP H0782460B2 JP 62281153 A JP62281153 A JP 62281153A JP 28115387 A JP28115387 A JP 28115387A JP H0782460 B2 JPH0782460 B2 JP H0782460B2
- Authority
- JP
- Japan
- Prior art keywords
- recording medium
- rom
- stored
- determined
- abnormal
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 claims description 31
- 230000002159 abnormal effect Effects 0.000 claims description 20
- 230000005856 abnormality Effects 0.000 claims description 20
- 238000004364 calculation method Methods 0.000 claims description 6
- 238000012545 processing Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 6
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000007781 pre-processing Methods 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 239000000758 substrate Substances 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
- Detection And Correction Of Errors (AREA)
Description
【発明の詳細な説明】 [産業上の利用分野] 本発明は、単一の装置または基板に搭載された複数の記
録媒体が正常か否かをチェックする記録媒体のチェック
方法に関する。The present invention relates to a recording medium check method for checking whether or not a plurality of recording media mounted on a single device or substrate are normal.
[従来の技術] 従来、例えば、各種装置に搭載されたROM(read only m
emory)チップが適切か否かを判断するチェック方法と
して、予めROMチップの作成時に、そのROM内の各データ
をバイト単位で加算演算し、または排他的論理和等の演
算をした値が特定の値(以下、ハッシュ値と呼ぶ)にな
るようにしておき、装置の電源投入時等のタイミングで
ROMチップについてデータを所定演算し、その演算値が
予め格納されているハッシュ値に一致するか否かに基づ
いてROMが正常か否か等を判断するようにしていた。[Prior Art] Conventionally, for example, a ROM (read only m) installed in various devices.
emory) As a check method to determine whether the chip is appropriate, when the ROM chip is created in advance, each data in the ROM is added and calculated in byte units, or the value obtained by the operation such as exclusive OR is specified. The value (hereinafter referred to as the hash value) is set so that it can be used when the device is turned on.
A predetermined operation is performed on the data for the ROM chip, and whether the ROM is normal or not is determined based on whether the operation value matches the prestored hash value.
ところで、集積技術の発達に伴い、多くの制御動作をソ
フトウェア的に実行することが多く、そのためプログラ
ムROMに格納するプログラムやデータ容量のステップ数
は多大となり、そのため、複数のROMに分けてプログラ
ム等を格納するようになってきている。By the way, with the development of the integration technology, many control operations are often executed by software, so that the number of steps of the program and the data capacity stored in the program ROM becomes large. Is starting to store.
このような複数のROMにプログラム等を分けて搭載する
場合、各ROMについてのハッシュ値を同一とする方法
と、各ROMのハッシュ値を異なるようにする方法とがあ
った。When the programs and the like are separately installed in a plurality of ROMs, there are a method of making the hash values of the ROMs the same and a method of making the hash values of the ROMs different.
[発明が解決しようとする問題点] ところで、実際上、ROMに格納されるプログラム等の内
容は異なるが使用される各ROMチップの外観形状は同一
のことが多く、そのため誤って異なる位置に搭載される
ことも生じる。[Problems to be Solved by the Invention] In practice, although the contents of programs and the like stored in the ROM are different, the external shapes of the ROM chips used are often the same, and therefore, they are erroneously mounted at different positions. Occasionally it will be done.
このような場合、第1の従来方法では、ハッシュ値が同
一であるので、チェック時点では発見できず、プログラ
ムを起動して初めて異常を検出することになる。In such a case, in the first conventional method, since the hash values are the same, they cannot be found at the time of checking, and the abnormality is detected only after starting the program.
また、第2の方法によれば、チェック時点で搭載異常、
ROM異常等の異常を検出でき、この場合には、新たなROM
と取り替えることによって措置することになる。しかし
ながら、単に異常を検出できるだけであり、ROM自体の
異常と搭載位置異常との区別ができず、異常と判断され
たROMを新たなROMと入れ替えることで全てが正常になる
ようにしており、ROM自体は正常ではあるが搭載位置が
誤ったために異常と表示されたROMを廃棄して無駄にす
ることも生じていた。Further, according to the second method, the mounting abnormality at the time of checking,
An abnormality such as a ROM abnormality can be detected. In this case, a new ROM
It will be taken by replacing with. However, it is only possible to detect an abnormality, and it is not possible to distinguish between an abnormality in the ROM itself and an abnormality in the mounting position. By replacing the ROM that has been determined to be abnormal with a new ROM, everything is normal. Although it was normal itself, the mounting position was wrong, and the ROM displayed as abnormal was discarded and wasted.
本発明は、以上の点を考慮してなされたもので、記録媒
体自体の異常と、搭載位置異常とを区別して検出できる
記録媒体のチェック方法を提供しようとするものであ
る。The present invention has been made in view of the above points, and an object of the present invention is to provide a method of checking a recording medium that can detect an abnormality of the recording medium itself and an abnormal mounting position.
[問題点を解決するための手段] かかる問題点を解決するため、本発明においては以下の
ようにした。すなわち、複数の記録媒体が存在し、前記
記録媒体に対して正常か異常かをチェックする記録媒体
のチェック方法において、各前記記録媒体について各々
異なる値でありかつ前記記録媒体に格納されているデー
タに対して所定の演算を実行した結果である基準値を、
各前記記録媒体の搭載位置情報と対応させて予め所定の
記憶装置に格納しておき、前記記録媒体に対して正常か
異常かのチェックを行う際、前記記録媒体に格納されて
いるデータに対して前記所定の演算を実行し、前記実行
の結果である演算値が、前記記憶装置に予め格納されて
いる当該前記記録媒体に対応する前記基準値と一致する
場合には当該前記記録媒体は正常であると判定し、前記
実行の結果である演算値が、前記記憶装置に予め格納さ
れている当該前記記録媒体に対応する前記基準値と一致
しない場合には、さらに当該前記記録媒体とは異なる他
の前記記録媒体の搭載位置情報と対応させて予め前記記
憶装置に格納されている前記基準値のいずれかと一致す
るか否かを判別し、いずれかに一致すると判別したとき
には、当該前記記録媒体が搭載されている位置は異常で
あると判定し、いずれにも一致しないと判別したときに
は、当該前記記録媒体は異常であると判定するようにし
た。[Means for Solving the Problems] In order to solve the problems, the present invention is as follows. That is, in a method of checking a recording medium in which a plurality of recording media exist and whether the recording medium is normal or abnormal, data having different values for each recording medium and stored in the recording medium are stored. The reference value, which is the result of performing the predetermined calculation for
The data stored in the recording medium is stored in advance in a predetermined storage device in association with the mounting position information of each recording medium, and the data stored in the recording medium is checked when checking whether the recording medium is normal or abnormal. If the calculated value that is the result of the execution matches the reference value corresponding to the recording medium stored in advance in the storage device, the recording medium is normal. If the calculated value resulting from the execution does not match the reference value corresponding to the recording medium stored in advance in the storage device, it is further different from the recording medium. It is determined whether or not it matches any one of the reference values stored in advance in the storage device in association with the mounting position information of the other recording medium. Position in which the medium is mounted is determined to be abnormal, when it is determined that matches none were to be determined that the said recording medium is abnormal.
[作用] 複数の記録媒体が存在し、前記記録媒体に対して正常か
異常かをチェックする記録媒体のチェック方法におい
て、予め、各前記記録媒体について各々異なる値であり
かつ前記記録媒体に格納されているデータに対して所定
の演算を実行した結果である基準値を、各前記記録媒体
の搭載位置情報と対応させて予め所定の記憶装置に格納
しておく。その後、前記記録媒体に対して正常か異常か
のチェックを行う際、まず前記記録媒体に格納されてい
るデータに対して前記所定の演算を実行する。この実行
の結果である演算値が、前記記憶装置に予め格納されて
いる当該前記記録媒体に対応する前記基準値と一致する
場合には当該前記記録媒体は正常であると判定する。一
方、実行の結果である演算値が、前記記憶装置に予め格
納されている当該前記記録媒体に対応する前記基準値と
一致しない場合には、さらに以下の判別を行う。すなわ
ち、当該前記記録媒体とは異なる他の前記記録媒体の搭
載位置情報と対応させて予め前記記憶装置に格納されて
いる前記基準値のいずれかと一致するか否かを判別す
る。いずれかに一致すると判別したときには、当該前記
記録媒体が搭載されている位置は異常であると判定す
る。一方、いずれにも一致しないと判別したときには、
当該前記記録媒体は異常であると判定する。[Operation] In a method for checking a recording medium in which a plurality of recording media exist and whether the recording medium is normal or abnormal, a different value is stored in advance for each recording medium and the value is stored in the recording medium. A reference value, which is the result of performing a predetermined calculation on the stored data, is stored in advance in a predetermined storage device in association with the mounting position information of each recording medium. After that, when checking whether the recording medium is normal or abnormal, first, the predetermined calculation is performed on the data stored in the recording medium. When the calculated value that is the result of this execution matches the reference value corresponding to the recording medium stored in advance in the storage device, it is determined that the recording medium is normal. On the other hand, when the calculated value as the execution result does not match the reference value corresponding to the recording medium stored in advance in the storage device, the following determination is further performed. That is, it is determined whether or not it matches with any of the reference values stored in advance in the storage device in association with mounting position information of another recording medium different from the recording medium. When it is determined that either of them matches, it is determined that the position where the recording medium is mounted is abnormal. On the other hand, when it is determined that none of them match,
It is determined that the recording medium is abnormal.
[実施例] 以下、本発明の一実施例を図面を参照しながら詳述す
る。Embodiment An embodiment of the present invention will be described in detail below with reference to the drawings.
第1図は本発明の一実施例におけるチェック方法を示す
フローチャート、第2図はチェックされる装置構成を示
すブロック図、第3図はチェック動作に先立ち比較基準
となるハッシュ値を格納する前処理手順を示すフローチ
ャート、第4図はチェック動作の説明に供する説明図、
第5図はチェック結果の表示態様を示す略線図である。FIG. 1 is a flow chart showing a check method in an embodiment of the present invention, FIG. 2 is a block diagram showing a device configuration to be checked, and FIG. 3 is a pre-processing for storing a hash value as a comparison reference prior to the check operation. FIG. 4 is a flowchart showing the procedure, and FIG. 4 is an explanatory diagram for explaining the check operation.
FIG. 5 is a schematic diagram showing a display form of check results.
この実施例によるチェック方法が適用される情報処理装
置は、第2図に示すように処理動作を実行するプロセッ
サ(CPU)1と、イニシャル・プログラム・ローダ(IP
L)等が格納されているN個のROM21〜2Nを備えたプラグ
ラムROM部2と、処理時のデータを書き替え可能に記憶
するワーキングRAM3と、外部記憶装置としても利用され
るフロッピーディスクドライブ装置4と、処理結果等を
表示するディスプレイ装置5とを備える。The information processing apparatus to which the checking method according to this embodiment is applied includes a processor (CPU) 1 that executes a processing operation and an initial program loader (IP) as shown in FIG.
L) etc. are stored in the program ROM section 2 having N ROMs 21 to 2N, a working RAM 3 for rewritably storing data during processing, and a floppy disk drive device also used as an external storage device. 4 and a display device 5 for displaying processing results and the like.
この実施例によるチェック動作に先立ち、フロッピーデ
ィスクドライブ装置4に装填されるフロッピーディスク
4aには、図示しない例えば外部のハッシュ値格納装置に
よって搭載位置P1〜PN(第4図参照)に搭載されるべき
各ROM21〜2Nの正規のハッシュ値A1〜ANが格納される。A floppy disk loaded in the floppy disk drive device 4 prior to the checking operation according to this embodiment.
The regular hash values A1 to AN of the ROMs 21 to 2N to be mounted at the mounting positions P1 to PN (see FIG. 4) by an external hash value storage device (not shown) are stored in 4a.
ハッシュ値格納装置は、プロセッサ(CPU)と、プログ
ラムROMと、ワーキングRAMとを備え、第3図の処理手順
によって各ROM21〜2Nの正規のハッシュ値A1〜ANをフロ
ッピーディスク4a上の所定エリアE1〜EN(第4図参照)
に格納する。The hash value storage device includes a processor (CPU), a program ROM, and a working RAM, and the regular hash values A1 to AN of the ROMs 21 to 2N are stored in a predetermined area E1 on the floppy disk 4a according to the processing procedure of FIG. ~ EN (See Fig. 4)
To store.
すなわち、ハッシュ値格納装置は当該プログラムを開始
すると、ステップ100においてROM位置Piに対応した変数
iを初期値1にセットし、ステップ101においてハッシ
ュ値Dを初期値0にセットすると共に、アドレスADDを
第1番目のアドレスである初期値xとする。次いで、ス
テップ102に進んでROM位置Piに搭載されているROM2iの
所定アドレスのデータ(例えば1バイトでなる)をその
時点のハッシュ値Dと加算してその加算後のハッシュ値
Dを格納し直す。この加算後、ステップ103において全
データの加算を終了したか否かを判断し、終了していな
い場合には、ステップ104においてアドレスADDをインク
リメントしてステップ102の加算処理に戻る。That is, when the hash value storage device starts the program, the variable i corresponding to the ROM position Pi is set to the initial value 1 in step 100, the hash value D is set to the initial value 0 in step 101, and the address ADD is set. The initial value x, which is the first address, is set. Next, in step 102, data (for example, 1 byte) at a predetermined address of the ROM 2i mounted in the ROM position Pi is added to the hash value D at that time, and the hash value D after the addition is stored again. . After this addition, it is determined in step 103 whether or not the addition of all data has been completed. If not completed, the address ADD is incremented in step 104 and the process returns to the addition processing in step 102.
これに対して、全データの加算が終了すると、ステップ
105に進んでそのときのハッシュ値DをROM位置Piに搭載
されているROM2iの比較基準用のハッシュ値Aiとしてフ
ロッピーディスク4a上のそのROM位置Piの対応したメモ
リエリアEiに格納する。On the other hand, when the addition of all data is completed, the step
In step 105, the hash value D at that time is stored in the corresponding memory area Ei of the ROM position Pi on the floppy disk 4a as the comparison reference hash value Ai of the ROM 2i mounted in the ROM position Pi.
なお、加算処理としては、例えばオーバーフローした分
を無視する28を法とした加算処理を適用する。Note that as the addition processing, for example, addition processing that modifies 2 8 that ignores the overflowed portion is applied.
このようにしてROM位置Piに搭載されるべきROMのハッシ
ュ値Aiの格納が終了すると、ステップ106において最終
のROM位置PNに搭載されるべきROM2Nについてハッシュ値
ANの格納が終了したか否かを判断し、肯定結果が得られ
たときには当該プログラムを終了し、否定結果が得られ
たときには、ステッツ107においてROM位置Piに対応した
変数iをインクリメントしてステップ101に戻る。When the storage of the hash value Ai of the ROM to be installed in the ROM position Pi is completed in this way, the hash value for the ROM 2N to be installed in the final ROM position PN is calculated in step 106.
It is determined whether or not AN storage is completed. When a positive result is obtained, the program is terminated. When a negative result is obtained, in step 107, the variable i corresponding to the ROM position Pi is incremented and the step is performed. Return to 101.
かくして、フロッピーディスク4aの所定領域E1〜ENに
は、第4図に示すように各ROM21〜2Nの比較基準となる
ハッシュ値A1〜ANが格納される。Thus, in the predetermined areas E1 to EN of the floppy disk 4a, as shown in FIG. 4, the hash values A1 to AN serving as the comparison reference of the ROMs 21 to 2N are stored.
なお、各ROM21〜2Nはハッシュ値A1〜ANがそれぞれ異な
るようになされて搭載されるものである。例えば、同一
のハッシュ値のものがあった場合には、空きメモリエリ
アに補正データを書き込んで予め異なるようになされて
いる。The ROMs 21 to 2N are mounted so that the hash values A1 to AN are different from each other. For example, when there is the same hash value, the correction data is written in the empty memory area so as to be different in advance.
このようにして格納された比較基準用のハッシュ値A1〜
ANを用いたチェックは、例えば、電源投入直後のROM部
2に格納されているイニシャルプログラムローディング
処理においてなされる。すなわち、このタイミングにお
いて、チェックされる装置のCPU1は当該プログラムを開
始すると、ステップ200においてROM位置Piに対応した変
数iを初期値1にセットし、ステップ201においてハッ
シュ値Dを初期値0にセットすると共に、アドレスADD
を第1番目のアドレス(初期値x)とする。次いで、ス
テップ202に進んでROM位置Piに搭載されているROM2iの
所定アドレスのデータをその時点のハッシュ値Dと加算
してその加算後のハッシュ値Dを格納し直す。この加算
後、ステップ203において全データの加算を終了したか
否かを判断し、終了していない場合には、ステップ204
でアドレスADDをインクリメントしてステップ202の加算
処理に戻る。The hash value A1 for the comparison reference stored in this way
The check using the AN is performed, for example, in the initial program loading process stored in the ROM section 2 immediately after the power is turned on. That is, at this timing, when the CPU 1 of the checked device starts the program, the variable i corresponding to the ROM position Pi is set to the initial value 1 in step 200, and the hash value D is set to the initial value 0 in step 201. Address ADD
Is the first address (initial value x). Next, the routine proceeds to step 202, where the data at the predetermined address of the ROM 2i mounted at the ROM position Pi is added to the hash value D at that time, and the hash value D after the addition is stored again. After this addition, it is determined in step 203 whether or not the addition of all data has been completed. If not completed, step 204
The address ADD is incremented by and the process returns to the addition process of step 202.
これに対して、全データの加算が終了すると、ステップ
205に進んで演算によって得られたハッシュ値Dがフロ
ッピーディスク4aに格納されているそのROM位置Piの比
較基準用ハッシュ値Aiに一致しているか否かを判断す
る。その結果一致していると、ステップ206において正
常としてディスプレイ装置5上に表示させた後、ステッ
プ207に進んでROM位置Piに対応した変数iをインクリメ
ントした後、ステップ214にて変数iがN+1と一致し
ているか否か(即ち、全ROM21〜2Nの判定を終了したか
否か)を判断し、一致していれば本処理を終了し、一致
していなければステップ202に戻る。On the other hand, when the addition of all data is completed, the step
In step 205, it is determined whether or not the hash value D obtained by the calculation matches the comparison reference hash value Ai of the ROM position Pi stored in the floppy disk 4a. If they match, the result is displayed as normal on the display device 5 in step 206, the process proceeds to step 207, the variable i corresponding to the ROM position Pi is incremented, and then the variable i is set to N + 1 in step 214. It is determined whether or not they match (that is, whether or not the determination of all the ROMs 21 to 2N has been completed). If they match, this process ends, and if they do not match, the process returns to step 202.
これに対して、一致していない場合には、異常の種類判
別のステップ208以下の処理に進む。ステップ208におい
ては、ROM位置Pjに対応した変数jを初期値1にセット
する。その後、CPU1はステップ209において演算された
ハッシュ値DがROM位置Pjの比較基準用ハッシュ値Ajと
一致しているか否かを判断する。その結果、肯定結果を
得ると、ステップ210において本来ROM位置Pjに搭載され
るべきROMがROM位置Piに搭載されているとして搭載位置
異常の表示をディスプレイ装置5上にした後、ステップ
207に進んでROM位置Piを対応した変数iをインクリメン
トしてステップ214に移る。On the other hand, if they do not match, the process proceeds to step 208 and subsequent steps for determining the type of abnormality. In step 208, the variable j corresponding to the ROM position Pj is set to the initial value 1. After that, the CPU 1 determines whether or not the hash value D calculated in step 209 matches the comparison reference hash value Aj of the ROM position Pj. As a result, if an affirmative result is obtained, it is determined in step 210 that the ROM, which should originally be mounted in the ROM position Pj, is mounted in the ROM position Pi, and then a display indicating that the mounting position is abnormal is displayed on the display device 5.
In step 207, the variable i corresponding to the ROM position Pi is incremented and the process proceeds to step 214.
上述したステップ209において否定結果を得ると、CPU1
は、ステップ211において変数jが最終のROM位置PNに対
応したものとになっているか否かを判断する。ここで、
否定結果を得ると、ステップ212において変数jをイン
クリメントして上述のステップ209に戻る。これに対し
てステップ211において肯定結果を得ると、演算された
ハッシュ値Dが正規のいずれのハッシュ値A1〜ANとも一
致していないので、ステップ213に進んでROM異常の表示
をディスプレイ装置5上にした後、ステップ207に進ん
でROM位置Piに対応した変数iをインクリメントしてス
テップ214に移る。If a negative result is obtained in step 209 described above, the CPU1
Determines whether the variable j corresponds to the final ROM position PN in step 211. here,
If a negative result is obtained, the variable j is incremented in step 212 and the process returns to step 209. On the other hand, if an affirmative result is obtained in step 211, the calculated hash value D does not match any of the normal hash values A1 to AN. Therefore, the process proceeds to step 213 and the display of the ROM abnormality is displayed on the display device 5. After that, the process proceeds to step 207, the variable i corresponding to the ROM position Pi is incremented, and the process proceeds to step 214.
例えば、ハッシュ値が1〜5のROM21〜25がそれぞれ搭
載位置P1〜P5に搭載される装置の具体的な処理を説明す
る。この場合、第3図の処理が実行されることにより、
フロッピーディスク4aの各エリアE1〜E5には、それぞれ
比較基準用ハッシュ値A1〜A5として1〜5が格納され
る。For example, a specific process of the device in which the ROMs 21 to 25 having hash values 1 to 5 are mounted at the mounting positions P1 to P5 will be described. In this case, by executing the processing of FIG. 3,
Areas E1 to E5 of the floppy disk 4a store 1 to 5 as comparison reference hash values A1 to A5, respectively.
所定のROMが搭載位置も間違わられずに搭載されている
場合には、チェック動作時に全てのROMについてステッ
プ205において肯定結果が得られ、第5図(A)に示す
ようにROM正常表示項目及び搭載位置異常表示項目とも
に「OK」の表示がなされる。なお、この場合には、すべ
てのROMが正常である旨の表示は行なわず直ちに次の処
理(例えばIPLの場合には本来の処理であるプログラム
ローディング処理)に移行しても良い。When the predetermined ROMs are mounted without mistaken mounting positions, a positive result is obtained in step 205 for all the ROMs during the check operation, and as shown in FIG. "OK" is displayed for both the items indicating the mounting position error. In this case, it may be possible to immediately shift to the next process (for example, the program loading process which is the original process in the case of IPL) without displaying that all the ROMs are normal.
これに対して、例えば、搭載位置P2のROMに演算ハッシ
ュ値が8である異常なROMが搭載された場合には、搭載
位置P1、P3〜P5のROMについては、ステップ205で肯定結
果が得られてステップ206で正常表示がなされるが、搭
載位置P2のROMについてはステップ211で肯定結果が得ら
れてステップ212でROM自体の異常表示がなされる。従っ
て、第5図(B)に示すようにROM21、23〜25について
はROM正常表示項目及び搭載位置異常表示項目ともに「O
K」の表示がなされ、ROM22については、ROM正常表示項
目が「NG」として表示される。On the other hand, for example, when an abnormal ROM having a calculated hash value of 8 is mounted on the ROM at the mounting position P2, a positive result is obtained at step 205 for the ROMs at the mounting positions P1 and P3 to P5. Then, a normal display is made in step 206, but a positive result is obtained in step 211 for the ROM at the mounting position P2, and an abnormal display of the ROM itself is made in step 212. Therefore, as shown in FIG. 5 (B), regarding the ROMs 21 and 23 to 25, both the ROM normal display item and the mounting position abnormal display item are "O
"K" is displayed, and for the ROM 22, the ROM normal display item is displayed as "NG".
また、搭載位置P1に搭載されるべきROMと、搭載位置P2
に搭載されるべきROMとが逆に搭載された場合には、搭
載位置P1、P2のROMについては、ステップ209で肯定結果
が得られてステップ210で搭載位置異常の表示がなさ
れ、搭載位置P3〜P5のROMについては、ステップ205で肯
定結果が得られてステップ206で正常表示がなされる。
従って、第5図(C)に示すようにROM23〜25について
はROM正常表示項目及び搭載位置異常表示項目ともに「O
K」の表示がなされ、ROM21、22についてはROM正常表示
項目は「OK」の表示がなされるが搭載位置異常表示項目
は「NG」の表示がなされる。In addition, the ROM that should be mounted in the mounting position P1 and the mounting position P2
If the ROM to be mounted on the ROM is mounted in the opposite direction, a positive result is obtained at step 209 for the ROMs at the mounting positions P1 and P2, and a mounting position abnormality is displayed at step 210, and the mounting position P3 is displayed. For the ROMs of P5 to P5, a positive result is obtained in step 205 and a normal display is made in step 206.
Therefore, as shown in FIG. 5 (C), regarding the ROMs 23 to 25, both the ROM normal display item and the mounting position abnormal display item are "O".
"K" is displayed, and for ROM21 and 22, "OK" is displayed for the ROM normal display item, but "NG" is displayed for the mounting position error display item.
従って、上述の実施例によれば、ROM自体の異常と、搭
載位置異常とを区別して検出して表示するようにしたの
で、ROM自体の異常表示がなされずに搭載位置異常の表
示だけがなされたROMを破棄せずに有効に利用できるよ
うにし得てROMの歩留まりを向上させることができる。Therefore, according to the above-described embodiment, since the abnormality of the ROM itself and the abnormality of the mounting position are separately detected and displayed, the abnormality of the ROM itself is not displayed and only the abnormality of the mounting position is displayed. The ROM yield can be improved by enabling effective use without discarding the ROM.
なお、ROM自体の異常表示及び搭載位置異常の表示態様
は上述の実施例のものだけに限らず、種々の表示態様を
適用することができる。It should be noted that the abnormal display of the ROM itself and the display mode of the mounting position abnormality are not limited to those in the above-described embodiment, and various display modes can be applied.
また、比較基準用のハッシュ値は、チェックされるROM
自体に格納しておくようにしても良く、またハッシュ値
についてはディップスイッチ等で設定するようにしても
良い。Also, the hash value for comparison criteria is the ROM to be checked.
The hash value may be stored in itself, or the hash value may be set by a dip switch or the like.
さらに、チェック用のプログラムはROM自体に格納され
ていなくてもよく、チェックのタイミングは電源投入時
に限られず、メインのプログラム処理時に行なう等任意
の時点で行なっても良い。Further, the check program does not have to be stored in the ROM itself, and the check timing is not limited to the power-on timing, but may be performed at any time such as during the main program processing.
さらにまた、チェックの対象となる記録媒体はROMに限
定されることはなく、フロッピーディスク等であっても
良い。Furthermore, the recording medium to be checked is not limited to the ROM, and may be a floppy disk or the like.
[発明の効果] 以上、詳細に説明したように本発明によれば、記録媒体
の異常のみでなく、記録媒体の搭載位置異常をも併せて
判定するようにしたので、記録媒体自体は正常であるが
搭載位置が誤っている記録媒体を、記録媒体自体の異常
と判定してしまい当該記録媒体を捨ててしまう等の無駄
の発生を避けることができ歩留りを向上させることがで
きる。EFFECTS OF THE INVENTION As described above in detail, according to the present invention, not only the abnormality of the recording medium but also the abnormality of the mounting position of the recording medium is determined. Therefore, the recording medium itself is normal. However, it is possible to avoid a waste such as discarding the recording medium which is determined as an abnormality of the recording medium itself because the recording medium in which the mounting position is erroneous, and the yield can be improved.
第1図は本発明の一実施例におけるチェック方法を示す
フローチャート、第2図はチェックされる装置構成を示
すブロック図、第3図はチェック動作に先立ち比較基準
となるハッシュ値を格納する前処理手順を示すフローチ
ャート、第4図はチェック動作の説明に供する説明図、
第5図はチェック結果の表示態様を示す略線図である。 1……CPU、21〜2N……ROM、3……RAM、4……フロッ
ピーディスクドライブ装置、5……ディスプレイ装置。FIG. 1 is a flow chart showing a check method in an embodiment of the present invention, FIG. 2 is a block diagram showing a device configuration to be checked, and FIG. 3 is a pre-processing for storing a hash value as a comparison reference prior to the check operation. FIG. 4 is a flowchart showing the procedure, and FIG. 4 is an explanatory diagram for explaining the check operation.
FIG. 5 is a schematic diagram showing a display form of check results. 1 ... CPU, 21-2N ... ROM, 3 ... RAM, 4 ... Floppy disk drive device, 5 ... Display device.
Claims (1)
対して正常か異常かをチェックする記録媒体のチェック
方法において、 各前記記録媒体について各々異なる値でありかつ前記記
録媒体に格納されているデータに対して所定の演算を実
行した結果である基準値を、名前記記録媒体の搭載位置
情報と対応させて予め所定の記憶装置に格納しておき、 前記記録媒体に対して正常か異常かのチェックを行う
際、 前記記録媒体に格納されているデータに対して前記所定
の演算を実行し、 前記実行の結果である演算値が、前記記憶装置に予め格
納されている当該前記記録媒体に対応する前記基準値と
一致する場合には当該前記記録媒体は正常であると判定
し、 前記実行の結果である演算値が、前記記憶装置に予め格
納されている当該前記記録媒体に対応する前記基準値と
一致しない場合には、 さらに当該前記記録媒体とは異なる他の前記記録媒体の
搭載位置情報と対応させて予め前記記憶装置に格納され
ている前記基準値のいずれかと一致するか否かを判別
し、 いずれかに一致すると判別したときには、当該前記記録
媒体が搭載されている位置は異常であると判定し、 いずれにも一致しないと判別したときには、当該前記記
録媒体は異常であると判定すること を特徴とする記録媒体のチェック方法。1. A method for checking a recording medium in which a plurality of recording media exist and whether the recording medium is normal or abnormal, wherein the recording medium has different values and is stored in the recording medium. The reference value, which is the result of performing a predetermined calculation on the stored data, is stored in advance in a predetermined storage device in association with the mounting position information of the recording medium. When checking whether there is an abnormality, the predetermined calculation is performed on the data stored in the recording medium, and the calculated value that is the result of the execution is stored in the storage device in advance. When the recording medium matches the reference value corresponding to the medium, it is determined that the recording medium is normal, and the calculated value that is the result of the execution is the recording medium that is stored in advance in the storage device. If it does not match the reference value corresponding to the above, it further matches any one of the reference values stored in advance in the storage device in association with mounting position information of another recording medium different from the recording medium. When it is determined that the recording medium is mounted, it is determined that the position where the recording medium is mounted is abnormal, and when it is determined that the recording medium is not aligned, the recording medium is A method for checking a recording medium, which is characterized by determining that it is abnormal.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62281153A JPH0782460B2 (en) | 1987-11-09 | 1987-11-09 | How to check the recording medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62281153A JPH0782460B2 (en) | 1987-11-09 | 1987-11-09 | How to check the recording medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH01123344A JPH01123344A (en) | 1989-05-16 |
| JPH0782460B2 true JPH0782460B2 (en) | 1995-09-06 |
Family
ID=17635097
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP62281153A Expired - Fee Related JPH0782460B2 (en) | 1987-11-09 | 1987-11-09 | How to check the recording medium |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0782460B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3044665B2 (en) * | 1989-07-31 | 2000-05-22 | 京セラミタ株式会社 | Control device |
| US6838316B2 (en) | 2002-03-06 | 2005-01-04 | Kabushiki Kaisha Toshiba | Semiconductor device manufacturing method using ultrasonic flip chip bonding technique |
-
1987
- 1987-11-09 JP JP62281153A patent/JPH0782460B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH01123344A (en) | 1989-05-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4852092A (en) | Error recovery system of a multiprocessor system for recovering an error in a processor by making the processor into a checking condition after completion of microprogram restart from a checkpoint | |
| JPH0782460B2 (en) | How to check the recording medium | |
| JPS60159951A (en) | Tracing system in information processing device | |
| JP2001256044A (en) | Data processing device | |
| EP0113982A2 (en) | A data processing system | |
| EP0655686B1 (en) | Retry control method and device for control processor | |
| JPH04266141A (en) | Stack overflow detection system | |
| JPH0821009B2 (en) | CHANNEL CONTROLLER INITIALIZATION METHOD AND SYSTEM FOR THE INITIALIZATION | |
| JP2954666B2 (en) | Memory check method | |
| JP2557102B2 (en) | Method for checking large capacity RAM and its peripheral circuits | |
| JPS60134351A (en) | System for registration of queue and detection of malfunction | |
| JP3024719B2 (en) | Arithmetic processing method of programmable controller | |
| JPS63278162A (en) | Error correction device in information processor | |
| JP2000057000A (en) | Microcomputer with built-in flash memory | |
| JP2768371B2 (en) | Inspection method of random access memory | |
| JPH064356A (en) | Abnormal operation detection method for software | |
| JPH01162300A (en) | Rom checking circuit testing system | |
| JPS6270947A (en) | Control system for debug interruption | |
| JPS58158747A (en) | Programable controller | |
| JPH1139159A (en) | Computer system | |
| JPH01286028A (en) | Microprogram patching system | |
| JPH03166689A (en) | Program checking method | |
| JPS6012656B2 (en) | Retry control method | |
| JPH05334118A (en) | Preceding detection system for program step to be cause of program interruption | |
| JPH08123734A (en) | Data storage area data destruction occurrence check method, program runaway check method, data storage area data corruption occurrence cause search method, and program runaway cause search method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |