JPH03233742A - Data check system - Google Patents

Data check system

Info

Publication number
JPH03233742A
JPH03233742A JP2030366A JP3036690A JPH03233742A JP H03233742 A JPH03233742 A JP H03233742A JP 2030366 A JP2030366 A JP 2030366A JP 3036690 A JP3036690 A JP 3036690A JP H03233742 A JPH03233742 A JP H03233742A
Authority
JP
Japan
Prior art keywords
data
check
address
error
bus
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
JP2030366A
Other languages
Japanese (ja)
Inventor
Yumiko Furuta
古田 祐美子
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 JP2030366A priority Critical patent/JPH03233742A/en
Publication of JPH03233742A publication Critical patent/JPH03233742A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To check the errors at a high speed by reading the data out of a storage part for check of errors via the transfer of an address and the data carried out with the DMA control and at the same time performing the addition of all data via an error check circuit. CONSTITUTION:An internal direct memory access DMA control part 12 of a main control part 1 generates the address of a data storage part 2 and sends the address to the part 2 via a data bus 3. Then the part 12 reads the storage data on a designated address to the bus 3 from the part 2. These read data are all added together via an error check circuit 4, and a CPU 11 of the part 1 fetches the result of this addition to a comparator 13. The comparator 13 compares the received result of addition with the added value of data calculated previously and stored in a check code part of the part 2. Thus the presence or absence of an error is automatically checked for the data set to the part 2 this time. Thus the error of the real data on the part 2 can be checked at a high speed despite the increase of data to be treated.

Description

【発明の詳細な説明】 〔概要〕 プロセッサCPUが処理するためデータ記憶部に設定さ
れたデータの正当性をチェックするデータエラーチェッ
ク方式に関し、 CPUが処理するデータ量が増大しても該データを記憶
する記憶部の実データのエラーを高速でチェックできる
データチェック方式を目的とし、プロセッサCPUを介
さず、バスを介してアクセス先の記憶部との間で直接に
アドレスを発生しデータを転送するDM^制御部と、該
DMA111g部によりアドレスを発生し該バス上に記
憶部からデータを読み込んだデータを加算するチェック
回路を設け、前記プロセッサCPUが該チェック回路の
今回の加算値を読み込み、前回の加算値との比較により
記憶部への設定データのエラーの有無のチェックを行う
ように構成する。
[Detailed Description of the Invention] [Summary] Regarding a data error check method for checking the validity of data set in a data storage unit for processing by a processor CPU, the data error check method is capable of checking the validity of data set in a data storage unit for processing by a processor CPU. The purpose is a data check method that can check errors in the actual data stored in the storage section at high speed, and directly generates addresses and transfers data to and from the accessed storage section via the bus, without going through the processor CPU. A DM^ control unit and a check circuit that generates an address by the DMA111g unit and adds data read from the storage unit onto the bus are provided, and the processor CPU reads the current addition value of the check circuit, and adds the data read from the storage unit to the bus. The configuration is configured to check whether or not there is an error in the setting data stored in the storage unit by comparing the added value with the added value.

〔産業上の利用分野〕[Industrial application field]

本発明はプロセッサCPUが記憶部のデータを処理する
際に該データの正当性をチエ・ツクするデータチェック
方式に関する。
The present invention relates to a data check method for checking the validity of data stored in a storage section when a processor CPU processes the data.

近年、ディジタル信号の搬送装置に組み込まれる専用プ
ロセッサは、その装置の実装システムの増加や負荷とな
る回路の監視機能の要求等で、取り扱うデータの量及び
機能が多くなり、処理の高速化と共に、処理データの信
頼性が要求されている。このため、取り扱うデータのエ
ラーのチエ・ツク処理を高速で且つ正確に実行する必要
がある。
In recent years, dedicated processors built into digital signal transport devices have been handling increased amounts of data and functions due to an increase in the number of systems installed in the devices and demands for a monitoring function for the circuits that serve as a load. Reliability of processed data is required. Therefore, it is necessary to quickly and accurately check the data being handled for errors.

〔従来の技術〕[Conventional technology]

従来のデータチェック方式は、第4図に示す如く、IA
ノ主マイコン制御部MPUのCPU IIAが、2Aの
記憶部のアドレス01〜FOの実データを処理する際の
該実データのエラーのチェックのために、チェックブ、
ログラムを起動し、CPU IIAが、記憶部2Aの実
データ、即ちアドレス01〜FOのデータを順次読込み
、そのデータの全てを加算し、その結果を、記憶部2A
のアドレス00に既に書込まれているチェックデータ、
即ち以前にアドレス0l−FOのデータを全て加算した
結果と比較器13Aで比較し、等しいか否かで、その時
の実データの正当性をチェックするという方式であった
The conventional data check method is IA as shown in Figure 4.
When the CPU IIA of the main microcomputer control unit MPU processes the actual data at addresses 01 to FO of the storage section 2A, a check block is executed to check for errors in the actual data.
The CPU IIA starts the program and sequentially reads the actual data in the storage section 2A, that is, the data at addresses 01 to FO, adds all of the data, and stores the result in the storage section 2A.
Check data already written to address 00 of
In other words, the comparator 13A compares the result of adding up all the data at addresses 0l-FO, and checks the validity of the actual data at that time based on whether they are equal or not.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

このため、CPU IIAが取り扱うデータ量が増大し
記憶部2Aの規模が増大した場合は、該データの量に比
例して、CPIJ IIAが実データのエラーのチェッ
クのために、記憶部2Aのデータを読出して加算しアド
レス00に書き込むチェックコードの算出処理に要する
時間が増大してしまうという問題があった。本発明の課
題は、主マイコン制御部MPU1のCPU 11が取り
扱うデータ量が増大しても、処理データを記憶する記憶
部2の実データのエラーを高速でチェックできるデータ
チェック方式の提供にある。
Therefore, if the amount of data handled by CPU IIA increases and the size of storage unit 2A increases, CPIJ IIA will reduce the amount of data in storage unit 2A in proportion to the amount of data in order to check for errors in the actual data. There is a problem in that the time required to calculate the check code, which is read out, added, and written to address 00, increases. An object of the present invention is to provide a data check method that can check errors in actual data in a storage unit 2 that stores processed data at high speed even when the amount of data handled by the CPU 11 of the main microcomputer control unit MPU1 increases.

〔課題を解決するための手段〕[Means to solve the problem]

この課題は、第1図の原理図の如く、主制御部MP[I
 iのなかのプロセッサCPU 11を介さずに。
This problem is solved by the main control unit MP[I
without going through the processor CPU 11 in i.

バス3を介しアクセス先のデータ記憶部2との間で直接
にアドレスを発生しデータを転送するDMA制御部12
と、該DMA8111部にて発生したアドレスにより該
バス3上に記憶部2からデータを読出し比較器13で該
データの加算値を比較器13にて比較し該データのエラ
ーをチェックするため、該記憶部2から読み込んだデー
タを加算するエラーチェック回路4を設けるようにした
本発明によって解決される。 本発明のデータチェック
方式の基本構成を示す第1図の原理図において、 lは、主ms部であって、その内部のプロセッサCPU
 11により外部の記憶部2のデータを処理するため、
別のDMAllil部12によりアクセス先の記憶部2
のアドレスを発生し、相互にデータを送受信するバス3
上に該記憶部2からデータを読み出させ該記憶部2から
読み出したデータをエラーチェック回路4へ送出する。
DMA control unit 12 that directly generates an address and transfers data to and from the data storage unit 2 to be accessed via the bus 3
Then, data is read from the storage section 2 onto the bus 3 according to the address generated by the DMA 8111 section, and the comparator 13 compares the added value of the data to check for errors in the data. This problem is solved by the present invention, which includes an error check circuit 4 that adds data read from the storage section 2. In the principle diagram of FIG. 1 showing the basic configuration of the data check method of the present invention, l is the main ms section, and the internal processor CPU
11 to process data in the external storage unit 2,
The storage unit 2 to be accessed by another DMAllil unit 12
A bus 3 that generates addresses and sends and receives data to and from each other.
Then, data is read from the storage section 2 and the data read from the storage section 2 is sent to the error check circuit 4.

2は、主制御部1の内部のDMA1l@部12にて発生
したアクセス先のアドレスにより、相互にデータを送受
信するバス3上に読み出され、プロセッサCPU 11
により処理されるデータを記憶する外部の記憶部である
2 is read out onto the bus 3 for mutually transmitting and receiving data according to the access destination address generated in the DMA1l@ section 12 inside the main control section 1, and the processor CPU 11
This is an external storage unit that stores data processed by the computer.

3は、主制御部lの内部のDIIAII!1部I2と外
部の記憶部2との間で相互にアドレスとデータを送受信
するバスである。
3 is DIIAII! inside the main control unit l. This is a bus for mutually transmitting and receiving addresses and data between the first section I2 and the external storage section 2.

4は、主制御部1の内部のoMallll1部12によ
り、アクセス先の記憶部2のアドレスを発生しバス3上
に記憶部2からデータを読み出した時に、該データのエ
ラーをチェックするため該記憶部2から読出されたデー
タを加算し一時保持するエラーチェック回路である。
4 generates the address of the storage section 2 to be accessed by the oMall1 section 12 inside the main control section 1, and when the data is read from the storage section 2 onto the bus 3, the address is checked for errors in the data. This is an error check circuit that adds the data read from the section 2 and temporarily holds it.

〔作用〕[Effect]

本発明では、主制御部1の内部のDMA41711部1
2が、アクセス先のデータ記憶部2のアドレスを発生し
てバス3を介し該記憶部2へ送り、該記憶部からバス3
へ指定アドレスの記憶データを読み出す。この読み出さ
れたデータは、エラーチェック回路4にて、全部が加算
される。そして其の加算結果を主制御部lのCPU 1
1が、その比較器13へ取り込み、記憶部2のチェック
コード部に既に前回計算して格納しであるデータの加算
値と比較し、今回、記憶部2に設定したデータのエラー
の有無を自動的にチェックする。
In the present invention, the DMA41711 section 1 inside the main control section 1
2 generates an address of the data storage unit 2 to be accessed, sends it to the storage unit 2 via the bus 3, and from the storage unit to the bus 3
Reads the stored data at the specified address. The read data is all added up in the error check circuit 4. Then, the addition result is sent to the CPU 1 of the main control unit l.
1 is loaded into the comparator 13 and compared with the added value of the data that has already been calculated and stored in the check code section of the storage section 2, and automatically determines whether or not there is an error in the data set in the storage section 2 this time. Check.

従って、本発明のDMA制御部12とバス3により記憶
部2の記憶データの読出しが可能となり、又エラーチェ
ック回路4により、前記記憶部2がら続出したデータの
加算を行い、主制御部1のCPU11が、記憶部2に今
回設定したデータの加算値を前回の加算値と比較して該
データのエラーの有無を自動的にチェックするので、高
速のエラーチェックを実現できるし、又、プロセッサC
P[J 11は設定データのエラーチェックを行わない
ので、其の時間だけ記憶部2から読出したデータの別の
処理を実行できるので問題は解決される。
Therefore, the DMA control section 12 and the bus 3 of the present invention make it possible to read the data stored in the storage section 2, and the error check circuit 4 adds the data consecutively received from the storage section 2. Since the CPU 11 automatically checks whether there are any errors in the data by comparing the added value of the data currently set in the storage unit 2 with the previous added value, high-speed error checking can be realized.
Since P[J 11 does not perform error checking on the setting data, other processing of the data read from the storage unit 2 can be executed during that time, so the problem is solved.

〔実施例〕〔Example〕

第2図は本発明の実施例のデータチェック方式の構成を
示すブロック図であり、第3図はその動作を説明するた
めのフローチャートである。
FIG. 2 is a block diagram showing the configuration of a data check system according to an embodiment of the present invention, and FIG. 3 is a flowchart for explaining its operation.

第2図において、主制御部1は、その内部にプロセッサ
cpu tiとDMA制御部12とシステムメモリ10
と比較器13を有し、CPU 11が外部の記憶部2の
RAMのデータを読み出すデータREADの際は、第3
図のフローチャートの如く、先ず、DMA @in部1
2をセントして、該RA Mの転送元の先頭アドレス1
1を発生し、転送するデータの総量(バイト数)システ
ムメモリ10の転送先のアドレスを指定し、DMAによ
る転送をスタートさせる。そしてバス3を介し該RAl
’lへ上記データを転送し、又1RAl’lのデータを
バス3上に出力させ、該出力データをエラーチェック回
路4のS[ll’l CHECK回路へ入力させる。エ
ラーチェック回路4のStlM CHECK回路は、そ
の内部に加算器4工とレジスタ42を有し、加算器41
が、記憶部2のRAMのアドレス11からアドレスFF
までの全データを加算し所謂SUM CHECK C0
DEを計算し、その計算結果をレジスタ42にセントす
る。
In FIG. 2, the main control unit 1 includes a processor CPU ti, a DMA control unit 12, and a system memory 10.
and a comparator 13, and when the CPU 11 reads data from the RAM of the external storage unit 2, the third
As shown in the flowchart in the figure, first, DMA @in section 1
2 cents, and the transfer source start address of the RAM is 1.
1, specifies the total amount of data to be transferred (number of bytes) and the transfer destination address in the system memory 10, and starts transfer by DMA. and the RAl via bus 3.
The above data is transferred to 'l', the data of 1RA1'l is output onto the bus 3, and the output data is input to the S[ll'l CHECK circuit of the error check circuit 4. The StlM CHECK circuit of the error check circuit 4 has an adder 4 and a register 42 therein.
is from address 11 of RAM of storage unit 2 to address FF
Add all the data up to the so-called SUM CHECK C0
DE is calculated and the calculation result is stored in register 42.

そしてプロセッサCP[J 11は、エラーチェック回
路4が上記の5UII CHECK C0DHの計算を
行っている間は、他の処理を行うことが出来る。そして
プロセッサCPLI 11は、エラーチェック回路4の
計算処理の終了後に、記憶部2のRAMのチェックコー
ド部C0DHのアドレス10のデータ、即ち前回にデー
タをRAMのアドレス11以降FFまでにセットした際
に計算し格納しである古いSUM CHECK C0D
Eと、チェック回路4のレジスタ42に今回セットした
新しいSOM CHECK C0DEとを比較すること
により、実データが記憶部2のRAMに記憶された状態
で、正常か否かを自動的に判定し確認することが出来る
The processor CP[J 11 can perform other processing while the error check circuit 4 is calculating the above-mentioned 5UII CHECK C0DH. After the calculation process of the error check circuit 4 is completed, the processor CPLI 11 stores the data at address 10 in the check code section C0DH of the RAM of the storage section 2, that is, when the data was previously set from address 11 to FF in the RAM. The old SUM CHECK C0D that calculates and stores
By comparing SOM CHECK C0DE and the new SOM CHECK C0DE set in the register 42 of the check circuit 4, it is automatically determined and confirmed whether the actual data is normal or not while the actual data is stored in the RAM of the storage unit 2. You can.

〔発明の効果〕〔Effect of the invention〕

以上説明した如く、本発明によれば、エラーチェックの
ための記憶部からのデータの読出しを、DMA制御によ
るアドレスとデータの転送を用いて行い、且つエラーチ
ェックのための全データの加算の計算をハードウェア回
路によって行うので、エラーチェックの処理時間を短縮
できる効果と、プロセッサCPUによるエラーチェック
コードの計算処理を不要とするので、その時間をプロセ
ッサCPUが他の処理に費やすことが出来る効果が得ら
れる。
As described above, according to the present invention, data is read from a storage unit for error checking using address and data transfer under DMA control, and calculation of addition of all data for error checking is performed. Since this is performed by a hardware circuit, the processing time for error checking can be shortened, and since there is no need for the processor CPU to calculate the error check code, the processor CPU can spend that time on other processing. can get.

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

第1図は本発明のデータチェック方式の基本構成を示す
原理図、 第2図は本発明の実施例のデータチェック方式の構成を
示すブロック図、 第3図は本発明の実施例の動作を説明するためのフロー
チャート、 第4図は従来、のデータチェック方式のブロック図であ
る。 図において、1は主制御部MP[I 、11はプロセッ
サCPIJ 、12はDMA8116部、13は比較器
、2はデータの記憶部、3はバス、4はエラーチェック
回路、41は加算器、42はレジスタである。 木范明/)昇夕%・t77;火の茎木オ先戎1示す瀝理
図寥 図 未16日月の実方ヒ杯Jの寸−タ寸j・/7方表の構成
り示オブ0ツク図島 図
FIG. 1 is a principle diagram showing the basic configuration of the data check method of the present invention, FIG. 2 is a block diagram showing the configuration of the data check method of the embodiment of the present invention, and FIG. 3 is a diagram showing the operation of the embodiment of the present invention. Flowchart for Explanation: FIG. 4 is a block diagram of a conventional data check method. In the figure, 1 is the main control unit MP[I, 11 is the processor CPIJ, 12 is the DMA8116 unit, 13 is the comparator, 2 is the data storage unit, 3 is the bus, 4 is the error check circuit, 41 is the adder, 42 is a register.木范明/)Rising Sun %・t77; Fire stem wood O Saki 1 showing 瀀ri zu 寥 16th moon's actual cup J size j ・/7-sided table composition Ob0tsuku island map

Claims (1)

【特許請求の範囲】 プロセッサCPU(11)が処理するためデータ記憶部
(2)に設定されたデータの正当性をチェックする方式
において、 該プロセッサCPUを介さず、バス(3)を介してアク
セス先の記憶部(2)との間で直接にアドレスを発生し
データを転送するDMA制御部(12)と、該DMA制
御部により発生したアドレスにより該バス上に該記憶部
からのデータを読込んで加算するチェック回路(4)を
設け、 前記プロセッサCPUが該チェック回路の今回の加算値
を読み込み前回の加算値との比較により記憶部への設定
データのエラーの有無のチェックを行うことを特徴とし
たデータチェック方式。
[Claims] In a method for checking the validity of data set in a data storage unit (2) for processing by a processor CPU (11), access is provided not through the processor CPU but through a bus (3). A DMA control unit (12) directly generates an address and transfers data to and from the previous storage unit (2), and reads data from the storage unit onto the bus using the address generated by the DMA control unit. A check circuit (4) is provided, and the processor CPU reads the current addition value of the check circuit and compares it with the previous addition value to check whether there is an error in the setting data in the storage unit. Data check method.
JP2030366A 1990-02-09 1990-02-09 Data check system Pending JPH03233742A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2030366A JPH03233742A (en) 1990-02-09 1990-02-09 Data check system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2030366A JPH03233742A (en) 1990-02-09 1990-02-09 Data check system

Publications (1)

Publication Number Publication Date
JPH03233742A true JPH03233742A (en) 1991-10-17

Family

ID=12301867

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2030366A Pending JPH03233742A (en) 1990-02-09 1990-02-09 Data check system

Country Status (1)

Country Link
JP (1) JPH03233742A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05173815A (en) * 1991-12-04 1993-07-13 Hitachi Ltd Data storage device and information processing system
US6105160A (en) * 1996-12-24 2000-08-15 Nec Corporation Packet error detecting device in a DMA transfer

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05173815A (en) * 1991-12-04 1993-07-13 Hitachi Ltd Data storage device and information processing system
US6105160A (en) * 1996-12-24 2000-08-15 Nec Corporation Packet error detecting device in a DMA transfer

Similar Documents

Publication Publication Date Title
US5784712A (en) Method and apparatus for locally generating addressing information for a memory access
JPH03233742A (en) Data check system
US6874117B2 (en) Memory control device and method
JPS61125650A (en) Control system
JPH0566936A (en) Data processor
JP2588903B2 (en) Data processing system
JP2612469B2 (en) Semiconductor test equipment
JPH0782475B2 (en) Memory interlock control circuit
JPS60214043A (en) Pipeline control circuit
JP2565590B2 (en) Data processing device
JPS62128636A (en) Detecting system for frame fault
JPH02105945A (en) Microcomputer with trigger output
JPH0981465A (en) Main storage controller
JPS60238933A (en) Error processing system of control storage device
JPS59211149A (en) Comparison stopping system
JPH04117528A (en) Data collation processor
JPS58101397A (en) Test system
JPS6219937A (en) Checking system for propriety of argument
JPS63124157A (en) Data fetching system into processor
JPS61228534A (en) Action control system for parity check circuit
JPS63155346A (en) Ram check system
JPH0635750A (en) Semiconductor integrated circuit device
JPS6411975B2 (en)
JP2000207274A (en) Unit and method for readout control over common memory
JPH02110741A (en) Microprogram controller