JP2000020351A - Device and method for processing information - Google Patents

Device and method for processing information

Info

Publication number
JP2000020351A
JP2000020351A JP10180475A JP18047598A JP2000020351A JP 2000020351 A JP2000020351 A JP 2000020351A JP 10180475 A JP10180475 A JP 10180475A JP 18047598 A JP18047598 A JP 18047598A JP 2000020351 A JP2000020351 A JP 2000020351A
Authority
JP
Japan
Prior art keywords
data
memory
range
stored
information processing
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
JP10180475A
Other languages
Japanese (ja)
Inventor
Masatoshi Nawatani
昌利 縄谷
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.)
Nippon Signal Co Ltd
Original Assignee
Nippon Signal Co 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 Nippon Signal Co Ltd filed Critical Nippon Signal Co Ltd
Priority to JP10180475A priority Critical patent/JP2000020351A/en
Publication of JP2000020351A publication Critical patent/JP2000020351A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a device and a method for processing information with which the preparation of a program is facilitated and information processing can be speedily performed without requiring any software processing for checking data out of range. SOLUTION: When data requiring a range check are inputted, a CPU 1 inside the information processor stores these data in the prescribed area of a memory 3 corresponding to the kind. A comparator circuit 2 compares data in the memory 3 with the minimum and maximum values of data within an allowable range inside memories 4 and 5 and when data out of the range are detected, it is reported by imposing an interruption on the CPU 1. The CPU 1 receives the notice and abandons these data.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、信号保安装置のよ
うに高い信頼度の要求される情報処理装置に関し、特に
その情報処理のための、データの範囲チェックに関する
ものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an information processing apparatus requiring high reliability such as a signal security apparatus, and more particularly to a data range check for the information processing.

【0002】[0002]

【従来の技術】この種の情報処理装置において、“デー
タの範囲”とは装置が正常に動作を続けるために、装置
が扱う値の許容範囲である。この許容範囲を超えたデー
タを“範囲外データ”という。情報処理装置は範囲外デ
ータを得たときではなく、それを利用するときに正常動
作ができなくなる。
2. Description of the Related Art In this type of information processing apparatus, the "data range" is an allowable range of values handled by the apparatus in order for the apparatus to continue operating normally. Data exceeding the allowable range is referred to as “out-of-range data”. The information processing device cannot operate normally when using the out-of-range data, not when it is obtained.

【0003】これを防護する手法として、データを利用
する以前に、ソフトウェアでデータの範囲をチェック
し、範囲外データである場合、それに対応した処理を行
うものがある。
As a method of protecting the data, there is a method in which a data range is checked by software before using the data, and if the data is out of the range, a process corresponding to the data is performed.

【0004】図2により、この従来の手法を説明する。
図2(a)に示すように、範囲チェックを必要とするデ
ータの許容範囲値(最小値,最大値)をあらかじめメモ
リ22にセットしておく。すなわち、22−1はxデー
タ最小値を格納するメモリ領域、22−2はxデータ最
大値を格納するメモリ領域、……である。情報処理装置
が範囲チェックを必要とするデータを得たとき、そのデ
ータを図2(b)に示すように、CPU21の比較命令
等を使用し、前記許容範囲値と比較する。
Referring to FIG. 2, this conventional method will be described.
As shown in FIG. 2A, an allowable range value (minimum value, maximum value) of the data that requires a range check is set in the memory 22 in advance. That is, 22-1 is a memory area for storing the x data minimum value, 22-2 is a memory area for storing the x data maximum value, and so on. When the information processing apparatus obtains the data that requires the range check, the data is compared with the allowable range value using a comparison instruction of the CPU 21 as shown in FIG. 2B.

【0005】比較の結果、データが範囲外データであっ
た場合、CPU21のJUMP命令等を使用し、これに
対応した処理へ実行を移す。すなわち、CPU21は、
範囲チェックを要するデータが入力とする、図2(b)
のルーチンを呼び出す。ステップ11(以下S11のよ
うに記す)で入力したxデータの最小値をメモリ領域2
2−1から読み出し、S12で入力したxデータをxデ
ータ最小値と比較する。比較の結果、xデータ>xデー
タ最小値のときは(S13)、S14でxデータの最大
値をメモリ領域22−2から読み出し、S15でxデー
タと比較する。比較の結果、xデータ<xデータ最大値
であればxデータは許容範囲内のものであり、メモリの
所要の個所に格納する。
If the result of the comparison indicates that the data is out of range, the CPU 21 uses a JUMP instruction or the like, and shifts the execution to processing corresponding to this. That is, the CPU 21
FIG. 2 (b), where data requiring a range check is input.
Call the routine. The minimum value of the x data input in step 11 (hereinafter referred to as S11) is stored in the memory area 2
The data read from 2-1 and the x data input in S12 are compared with the x data minimum value. As a result of the comparison, if x data> x data minimum value (S13), the maximum value of the x data is read from the memory area 22-2 in S14 and compared with the x data in S15. As a result of the comparison, if x data <x data maximum value, the x data is within the allowable range and is stored at a required location in the memory.

【0006】S13でxデータ<xデータ最小値のと
き、およびS16でxデータ>xデータ最大値のとき
は、S18へジャンプし範囲外データとして所要の処理
を行う。
If x data <x data minimum value in S13, and if x data> x data maximum value in S16, the process jumps to S18 and performs necessary processing as out-of-range data.

【0007】[0007]

【発明が解決しようとする課題】前述の従来の手法によ
れば、範囲外データを除去をできるので、範囲外データ
利用による情報処理装置の動作の不安定は排除できる
が、範囲チェックの必要なデータが入力する毎に、図2
(b)に示すようなプログラムを実行する必要があり、
情報処理に時間がかかるといった問題がある。
According to the above-mentioned conventional method, out-of-range data can be removed, so that instability of the operation of the information processing apparatus due to use of out-of-range data can be eliminated. Each time data is entered,
It is necessary to execute a program as shown in (b),
There is a problem that information processing takes time.

【0008】本発明は、このような状況のもとでなされ
たもので、範囲外データのチェックにソフトウエア処理
を必要とせず、プログラムの作成が容易で、速やかに情
報処理を行うことができる、情報処理装置および情報処
理方法を提供することを目的とするものである。
The present invention has been made under such circumstances, and does not require software processing to check out-of-range data, making it easy to create a program and performing information processing promptly. It is an object to provide an information processing apparatus and an information processing method.

【0009】[0009]

【課題を解決するための手段】前記目的を達成するた
め、本発明では、情報処理装置を次の(1),(2)の
とおりに、また情報処理方法を次の(3)のとおりに構
成する。
In order to achieve the above object, according to the present invention, an information processing apparatus is set as described in (1) and (2) below, and an information processing method is set as set forth in (3) below. Constitute.

【0010】(1)許容範囲内の値のデータにもとづい
て所要の演算処理を行う情報処理装置であって、外部か
ら入力した範囲チェックを要するデータを、そのデータ
の種類に応じて予め設定した領域に格納する第1のメモ
リと、各種類のデータの許容範囲内の最小値を、前記第
1のメモリにおける各種類のデータの格納領域に対応す
る領域に予め格納した第2のメモリと、各種類データの
許容範囲内の最大値を、前記第1のメモリにおける各種
類のデータの格納領域に対応する領域に予め格納した第
3のメモリと、外部から範囲チェックを要するデータが
入力した場合に、そのデータを前記第1のメモリへ格納
する格納手段と、前記第1のメモリに格納したデータを
前記第2のメモリに格納した最小値および前記第3のメ
モリに格納した最大値と比較する比較回路と、前記第1
のメモリのデータとこのデータの格納領域に対応する前
記第2のメモリの格納領域に格納された最小値と同じく
このデータの格納領域に対応する前記第3のメモリの格
納領域に格納された最大値とを前記比較回路へ供給する
データ供給手段と、前記比較回路において範囲外データ
を検出したときその旨の通知を所定個所へ通知する通知
手段とを備えた情報処理装置。
(1) An information processing apparatus for performing required arithmetic processing based on data of a value within an allowable range, wherein data which needs a range check input from outside is preset according to the type of the data. A first memory to be stored in an area, a second memory in which a minimum value within an allowable range of each type of data is stored in an area corresponding to a storage area of each type of data in the first memory, When the maximum value within the allowable range of each type of data is previously stored in an area corresponding to the storage area of each type of data in the first memory, and data requiring a range check is input from outside. Storing means for storing the data in the first memory; storing the data stored in the first memory in the minimum value stored in the second memory; and storing the data in the third memory. A comparator for comparing a value, the first
And the minimum value stored in the storage area of the second memory corresponding to the storage area of the data, and the maximum value stored in the storage area of the third memory corresponding to the storage area of the data. An information processing apparatus comprising: a data supply unit that supplies a value to the comparison circuit; and a notification unit that notifies a predetermined location of a detection of out-of-range data when the comparison circuit detects out-of-range data.

【0011】(2)前記(1)記載の情報処理装置にお
いて、前記通知手段が範囲外データの通知をしたとき、
その通知にかかるデータを廃棄する廃棄手段を備えた情
報処理装置。
(2) In the information processing apparatus according to (1), when the notifying unit notifies the out-of-range data,
An information processing apparatus including a discarding unit that discards the data according to the notification.

【0012】(3)許容範囲内の値のデータにもとづい
て所要の演算処理を行う情報処理装置における情報処理
方法であって、外部から範囲チェックを要するデータを
入力する第1のステップと、比較回路によって前記第1
のステップで入力したデータとそのデータの許容範囲内
の最小値および最大値とを比較する第2のステップと、
この第2のステップで範囲外データを検出したときその
データを廃棄する第3のステップとを備えた情報処理方
法。
(3) An information processing method in an information processing apparatus for performing required arithmetic processing based on data of a value within an allowable range, wherein a first step of externally inputting data that requires a range check is compared with a first step. The first
A second step of comparing the data input in the step with the minimum value and the maximum value within the allowable range of the data;
A third step of discarding out-of-range data when the second step detects out-of-range data.

【0013】[0013]

【発明の実施の形態】以下本発明の実施の形態を情報処
理装置の実施例により詳しく説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the present invention will be described below in detail with reference to embodiments of an information processing apparatus.

【0014】なお、本発明は、情報処理装置の形に限ら
ず、情報処理方法の形で同様に実施することができる。
The present invention is not limited to the information processing apparatus, but can be similarly implemented in the form of an information processing method.

【0015】[0015]

【実施例】図1は、実施例である“情報処理装置”の要
部構成を示す。図1において、1は所要の情報処理を行
うCPUである。2は、所要のデータをその許容範囲内
の最小値および最大値と比較し、そのデータが範囲外デ
ータの場合に、CPU1へ割込みをかけて通知する比較
回路である。3はCPU1より所要のx,yデータ等が
書き込まれるメモリAであり、4は所要のx,yデータ
等の許容範囲内の最小値が予め格納されているメモリB
であり、5は所要のx,yデータ等の許容範囲内の最大
値が予め格納されているメモリCである。そして、メモ
リAは、各x,yデータ等の格納領域すなわちアドレス
が、3−1に示すように予め定められている。メモリ
B,Cでは、メモリAのxデータのアドレスに対応する
アドレスに、xデータ最小値,xデータ最大値が格納さ
れ、同様に、メモリAのyデータのアドレスに対応する
アドレスに、yデータ最小値,データ最大値が格納され
ている。他のデータについても、メモリAのアドレスに
対応するメモリB,Cのアドレスに、他のデータの最小
値,最大値が格納されている。
FIG. 1 shows a main configuration of an "information processing apparatus" according to an embodiment. In FIG. 1, reference numeral 1 denotes a CPU for performing required information processing. Reference numeral 2 denotes a comparison circuit that compares required data with the minimum value and the maximum value within the allowable range, and notifies the CPU 1 by interrupting the data when the data is out of range. Reference numeral 3 denotes a memory A in which required x, y data and the like are written from the CPU 1, and reference numeral 4 denotes a memory B in which minimum values within an allowable range of the required x, y data and the like are stored in advance.
Numeral 5 is a memory C in which a maximum value within an allowable range of required x, y data and the like is stored in advance. In the memory A, the storage area of each x, y data and the like, that is, the address is predetermined as shown in 3-1. In the memories B and C, the minimum value of x data and the maximum value of x data are stored in the address corresponding to the address of x data in the memory A, and similarly, the y data is stored in the address corresponding to the address of y data in the memory A. The minimum value and the maximum data value are stored. Regarding other data, the minimum value and the maximum value of the other data are stored in the addresses of the memories B and C corresponding to the addresses of the memory A.

【0016】次に動作を説明する。メモリA,メモリ
B,メモリCは常時はリードイネーブルとなっている。
CPU1は、外部から範囲チェックを要するデータが入
力した場合に、そのデータの種類に応じて予め定めたア
ドレスをアドレスバスに供給すると共に、メモリA,メ
モリB,メモリCをセレクトし、メモリAをライトイネ
ーブルとした後リードイネーブルに戻す。これにより、
そのデータと、そのデータの最小値,最大値が比較回路
へ供給される。
Next, the operation will be described. The memories A, B, and C are always read enabled.
When data requiring a range check is input from outside, the CPU 1 supplies an address predetermined according to the type of the data to the address bus, selects the memories A, B, and C, and stores the memory A in the memory A. After write enable, return to read enable. This allows
The data and the minimum and maximum values of the data are supplied to a comparison circuit.

【0017】比較回路2でデータの比較が行われ、xデ
ータ<xデータ最小値、またはxデータ>xデータ最大
値の場合は、比較回路2からCPU1に割込みがかけら
れ、範囲外データの通知がされる。CPU1はこの通知
を受けて、そのxデータを廃棄する等の適宜の処理を行
う。
The comparison circuit 2 compares the data. If x data <minimum value of x data or x data> maximum value of x data, the comparison circuit 2 interrupts the CPU 1 to notify the out-of-range data. Is done. Upon receiving this notification, the CPU 1 performs appropriate processing such as discarding the x data.

【0018】このようにして、CPU1からメモリAへ
のデータの書き込みの都度、そのデータが許容範囲内に
あるかどうかが比較回路2においてチェックされ、範囲
外データの場合は廃棄され、許容範囲内のデータのみを
用いて所要の情報処理が行われるので、動作が不安定に
なることがなく速やかに所要の情報処理を行うことがで
きる。
In this manner, each time data is written from the CPU 1 to the memory A, the comparator 2 checks whether the data is within the allowable range. Since the required information processing is performed using only the data of (i), the required information processing can be performed promptly without instability of the operation.

【0019】なお、比較回路には適宜のものを用いるこ
とができる。
It should be noted that an appropriate circuit can be used for the comparison circuit.

【0020】[0020]

【発明の効果】以上説明したように、本発明によれば、
範囲外データのチェックはハードウエアのみで行われる
ので、情報処理のためのプログラムの作成が容易とな
り、また速やかに所要の情報処理を行うことができる。
As described above, according to the present invention,
Since the out-of-range data is checked only by hardware, it is easy to create a program for information processing, and required information processing can be performed quickly.

【0021】また、範囲外データをハードウエアにより
チェックできるので、情報処理のプログラムの作成が容
易になる。
Further, since out-of-range data can be checked by hardware, it is easy to create an information processing program.

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

【図1】 実施例の要部構成を示す図FIG. 1 is a diagram showing a configuration of a main part of an embodiment.

【図2】 従来例の説明図FIG. 2 is an explanatory view of a conventional example.

【符号の説明】[Explanation of symbols]

1 CPU 2 比較回路 3,4,5 メモリ 1 CPU 2 comparison circuit 3, 4, 5 memory

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 許容範囲内の値のデータにもとづいて所
要の演算処理を行う情報処理装置であって、外部から入
力した範囲チェックを要するデータを、そのデータの種
類に応じて予め設定した領域に格納する第1のメモリ
と、各種類のデータの許容範囲内の最小値を、前記第1
のメモリにおける各種類のデータの格納領域に対応する
領域に予め格納した第2のメモリと、各種類データの許
容範囲内の最大値を、前記第1のメモリにおける各種類
のデータの格納領域に対応する領域に予め格納した第3
のメモリと、外部から範囲チェックを要するデータが入
力した場合に、そのデータを前記第1のメモリへ格納す
る格納手段と、前記第1のメモリに格納したデータを前
記第2のメモリに格納した最小値および前記第3のメモ
リに格納した最大値と比較する比較回路と、前記第1の
メモリのデータとこのデータの格納領域に対応する前記
第2のメモリの格納領域に格納された最小値と同じくこ
のデータの格納領域に対応する前記第3のメモリの格納
領域に格納された最大値とを前記比較回路へ供給するデ
ータ供給手段と、前記比較回路において範囲外データを
検出したときその旨の通知を所定個所へ通知する通知手
段とを備えたことを特徴とする情報処理装置。
1. An information processing apparatus for performing a required arithmetic process based on data of a value within an allowable range, wherein an externally input data requiring a range check is stored in an area set in advance according to the type of the data. And a minimum value within an allowable range of each type of data is stored in the first memory.
The second memory pre-stored in the area corresponding to the storage area of each type of data in the memory and the maximum value within the allowable range of each type of data are stored in the storage area of each type of data in the first memory. A third pre-stored in the corresponding area
And a storage means for storing, when data requiring a range check is input from the outside, in the first memory, and storing the data stored in the first memory in the second memory. A comparison circuit for comparing the minimum value with the maximum value stored in the third memory; the data stored in the first memory and the minimum value stored in the storage area of the second memory corresponding to the storage area of the data; Data supply means for supplying the maximum value stored in the storage area of the third memory corresponding to the storage area of the data to the comparison circuit, and when the out-of-range data is detected in the comparison circuit, And a notifying means for notifying a predetermined location of the notification.
【請求項2】 請求項1記載の情報処理装置において、
前記通知手段が範囲外データの通知をしたとき、その通
知にかかるデータを廃棄する廃棄手段を備えたことを特
徴とする情報処理装置。
2. The information processing apparatus according to claim 1, wherein
An information processing apparatus, comprising: a discarding unit that, when the notifying unit notifies of out-of-range data, discards the data according to the notification.
【請求項3】 許容範囲内の値のデータにもとづいて所
要の演算処理を行う情報処理装置における情報処理方法
であって、外部から範囲チェックを要するデータを入力
する第1のステップと、比較回路によって前記第1のス
テップで入力したデータとそのデータの許容範囲内の最
小値および最大値とを比較する第2のステップと、この
第2のステップで範囲外データを検出したときそのデー
タを廃棄する第3のステップとを備えたことを特徴とす
る情報処理方法。
3. An information processing method in an information processing apparatus for performing required arithmetic processing based on data of a value within an allowable range, comprising: a first step of externally inputting data requiring a range check; A second step of comparing the data input in the first step with the minimum value and the maximum value within the allowable range of the data, and discarding the data when the out-of-range data is detected in the second step An information processing method, comprising:
JP10180475A 1998-06-26 1998-06-26 Device and method for processing information Withdrawn JP2000020351A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10180475A JP2000020351A (en) 1998-06-26 1998-06-26 Device and method for processing information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10180475A JP2000020351A (en) 1998-06-26 1998-06-26 Device and method for processing information

Publications (1)

Publication Number Publication Date
JP2000020351A true JP2000020351A (en) 2000-01-21

Family

ID=16083879

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10180475A Withdrawn JP2000020351A (en) 1998-06-26 1998-06-26 Device and method for processing information

Country Status (1)

Country Link
JP (1) JP2000020351A (en)

Similar Documents

Publication Publication Date Title
JP2001166950A (en) Device and method for managing interruption
JP2000020351A (en) Device and method for processing information
US20080005389A1 (en) Direct memory access controller
JPH09198258A (en) Task stack overflow detecting circuit
JPH05100847A (en) Memory protection system for information processor
JPS63250753A (en) Memory access checking system
JPH0844629A (en) Memory access abnormality monitoring device
JPH06309236A (en) Illegal write detecting circuit for memory
JP2003271463A (en) Doubling memory device
JP2002073375A (en) Software operation monitoring method in system that contains microcomputer
JPH02245937A (en) Information processor
JP3169879B2 (en) Microprocessor runaway detection method
JPH05274223A (en) Cache memory
JPH06175888A (en) Abnormal access detection circuit
JP2613986B2 (en) Information processing device
JPH02100743A (en) Electronic equipment
JPH07219813A (en) Monitoring device for microprocessor
JPH06259288A (en) Runaway monitor circuit for cpu
JPS62177632A (en) Trouble processing system for data processor
JPH01180656A (en) Memory protecting device
JPH04106627A (en) Information processor
JPH0784786A (en) Program execution control method
JP2000148658A (en) Dma transfer system
JPH04137150A (en) Buffer storage device
JPH03260745A (en) Duplex electronic disk device

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20050906