JPS63304356A - Check system for normalcy of dma data - Google Patents

Check system for normalcy of dma data

Info

Publication number
JPS63304356A
JPS63304356A JP62139925A JP13992587A JPS63304356A JP S63304356 A JPS63304356 A JP S63304356A JP 62139925 A JP62139925 A JP 62139925A JP 13992587 A JP13992587 A JP 13992587A JP S63304356 A JPS63304356 A JP S63304356A
Authority
JP
Japan
Prior art keywords
data
transferred
transfer
check
dma
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
JP62139925A
Other languages
Japanese (ja)
Inventor
Katsutoshi Takachiho
高知穂 勝利
Fumiaki Tahira
田平 文明
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 JP62139925A priority Critical patent/JPS63304356A/en
Publication of JPS63304356A publication Critical patent/JPS63304356A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/28Handling requests for interconnection or transfer for access to input/output bus using burst mode transfer, e.g. direct memory access DMA, cycle steal

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Bus Control (AREA)

Abstract

PURPOSE:To improve the reliability of the transferred data by adding the check data to the transferred data and collating this check data with the check data transferred previously. CONSTITUTION:A check means 70 is provided to a transferring device 7 to check the errors of a transferred data block DB and to produce the check data CD. While a memory means 60 is provided to a transferred device 6 to hold the data CD. When the block DB is transferred, the device 7 adds the data CD to the block DB and then transfers to the device 6 via a memory access. At the same time, the data CD is separately transferred and stored into the means 60, and collated with the check data CD added previously to the block DB. Thus the normalcy of the block DB is checked. In such a way, the normal transfer of the DMA data is checked and the reliability is improved for the transferred data.

Description

【発明の詳細な説明】 〔概 要〕 転送元装置で転送データブロックの誤り検査を行って検
査データを転送データブロックに付加してDMA (D
irect Memory Access:直接メモリ
アクセス)によって転送先装置に転送し、一方1上記と
は別に検査データ単独でも転送して転送先装置の記憶手
段に格納し、転送先装置ではDMA転送されてきた検査
データと記憶手段に格納された検査データとを照合して
転送データの正常性を検査する。
[Detailed Description of the Invention] [Summary] A transfer source device performs an error check on a transfer data block, adds check data to the transfer data block, and performs DMA (D
Direct Memory Access (direct memory access) is used to transfer the test data to the destination device, and 1.In addition to the above, test data alone is also transferred and stored in the storage means of the destination device, and the test data that has been transferred via DMA is transferred to the destination device. The normality of the transferred data is verified by comparing the data with the test data stored in the storage means.

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

本発明はDMAデータ転送の正常性検査方式に関する。 The present invention relates to a normality checking method for DMA data transfer.

本発明の正常性検査方式は1例えば本体側情報処理装置
と補助記憶装置間や入出力装置との間、あるいは補助記
憶装置間等でのDMAデータ転送が正常に行われたか否
かを検査するものである。
The normality check method of the present invention is to (1) check whether or not DMA data transfer between the main body side information processing device and the auxiliary storage device, between the input/output device, or between the auxiliary storage devices is performed normally. It is something.

〔従来の技術〕[Conventional technology]

従来1例えば本体側の情報処理装置と補助記憶装置との
間でデータをDMAデータ転送した場合。
Conventional 1 For example, when data is transferred by DMA between an information processing device on the main body side and an auxiliary storage device.

それぞれから送られてくる転送データが正常に転送され
たものかどうかの検査は一般には行われていない。この
ため転送されるデータブロックが転送中に崩れるなどし
た場合は異常なデータをそのまま正常なものとして取り
扱ってしまうため、信頬性に欠ける。
It is generally not checked whether the transfer data sent from each is transferred normally. Therefore, if a data block to be transferred is corrupted during transfer, the abnormal data is treated as normal, resulting in a lack of reliability.

一方、転送データに垂直パリティチェックを行い、転送
データにパリティビットを付加して転送することによっ
てデータ転送の正常性を検査する方法も提案される。
On the other hand, a method has also been proposed in which the normality of data transfer is checked by performing a vertical parity check on transfer data and adding a parity bit to the transfer data before transfer.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

データの転送は例えば1バイトのデータをデータバスを
介してパラレルに転送することによるが。
The data is transferred, for example, by transferring one byte of data in parallel via a data bus.

垂直パリティビットを付加して転送する場合、データバ
スの信号線の数をパリティビット用に1本増やさなけれ
ばならず、経済的でなく、装置を大きくするという問題
点がある。
When a vertical parity bit is added and transferred, the number of signal lines on the data bus must be increased by one for the parity bit, which is not economical and has the problem of increasing the size of the device.

したがって本発明の目的は、パリティビット用の信号線
の数を増やすことなく、DMAデータ転送が正常に行わ
れたか否かを検査できるようにして、転送データの信頼
性を高めることができるDMAデータ転送の正常性検査
方式を提供することにある。
Therefore, an object of the present invention is to improve the reliability of transferred data by making it possible to check whether DMA data transfer has been performed normally without increasing the number of signal lines for parity bits. The purpose of the present invention is to provide a method for checking the normality of transfer.

〔問題点を解決するための手段〕[Means for solving problems]

第1図は本発明にかかる原理ブロック図である。 FIG. 1 is a block diagram of the principle according to the present invention.

本発明においては、2以上の装置間でデータブロックを
直接メモリアクセスによって転送するDMAデータ転送
方式であって、転送元装置7に、転送されるデータブロ
ックDBの誤り検査を行って検査データCDを生成する
検査手段70が設けられ、転送先装置6に検査データC
Dを保持する記憶手段60が設けられ、データブロック
DBの転送に際しては転送元装置7において転送データ
ブロックDBに検査データCDが付加されて直接メモリ
アクセスによって転送先装置6にデータ転送され、一方
、検査データCDが転送データブロックDBとは別に転
送元装置7から転送先装置6の記憶手段60に転送され
て格納され、転送先装置6において、記憶手段60に格
納されたチェックデータCDと直接メモリアクセスによ
って転送データブロックDBに付加されて転送されてき
たチェックデータCDとが照合されて転送データブロッ
クの正常性の検査が行われるように 構成されたDMA
データ転送の正常性検査方式が提供される。
The present invention is a DMA data transfer method in which a data block is transferred between two or more devices by direct memory access, and the transfer source device 7 performs an error check on the data block DB to be transferred and provides check data CD. A test means 70 for generating test data C is provided, and the test data C is sent to the transfer destination device 6.
A storage means 60 for holding data D is provided, and when transferring the data block DB, the test data CD is added to the transfer data block DB in the transfer source device 7, and the data is transferred to the transfer destination device 6 by direct memory access. The inspection data CD is transferred from the transfer source device 7 to the storage means 60 of the transfer destination device 6 and stored separately from the transfer data block DB, and in the transfer destination device 6, the check data CD stored in the storage device 60 and the direct memory are stored. A DMA configured so that the normality of the transferred data block is checked by comparing it with the check data CD that is added to the transferred data block DB and transferred upon access.
A data transfer health checking scheme is provided.

〔作 用〕[For production]

転送元装置7で転送データブロックに対して誤り検査を
おこなって検査データCDを作成し、この検査データC
Dを転送先装置6の記憶手段60に転送して格納する。
The transfer source device 7 performs an error check on the transferred data block to create a test data CD, and this test data C
D is transferred to the storage means 60 of the destination device 6 and stored therein.

また転送データブロックDBに検査データCDを付加し
て転送元装置7から転送先装置6にDMAデータ転送す
る。転送先装置6ではDMAデータ転送されてきたデー
タブロックDBに付加されている検査データCDと記憶
手段60に格納されている検査データCDとを照合し、
それらが一致していれば転送されたデータブロックDB
は正常と判断し、不一致であれば異常と判断する。
Further, the test data CD is added to the transfer data block DB, and the DMA data is transferred from the transfer source device 7 to the transfer destination device 6. The transfer destination device 6 compares the inspection data CD added to the data block DB to which the DMA data has been transferred with the inspection data CD stored in the storage means 60,
If they match, the transferred data block DB
is judged to be normal, and if it does not match, it is judged to be abnormal.

〔実施例〕〔Example〕

以下1図面を参照して本発明の詳細な説明する。 The present invention will be described in detail below with reference to one drawing.

第2図は本発明の一実施例としてのDMAデータ転送の
正常性検査方式を行う情報処理システムを示すブロック
図である。図中、lは本体側情報処理装置、2はファイ
ルメモリコントローラ、3はフロッピィディスク装置、
4はハードディスク装置、5はバスである。ファイルメ
モリコントローラ2は補助記憶装置としてのフロッピィ
ディスク装置3およびハードディスク装置4と情報処理
装置1との間のデータ転送を制御するための装置であり
、バス5を介して情報処理装置1と接続されている。
FIG. 2 is a block diagram showing an information processing system that performs a DMA data transfer normality check method as an embodiment of the present invention. In the figure, l is the main body side information processing device, 2 is the file memory controller, 3 is the floppy disk device,
4 is a hard disk device, and 5 is a bus. The file memory controller 2 is a device for controlling data transfer between the floppy disk device 3 and hard disk device 4 as auxiliary storage devices and the information processing device 1, and is connected to the information processing device 1 via a bus 5. ing.

情報処理装置1は中央処理装置10.主記憶装置11、
サムチェックレジスタ12.DMAコントローラ13等
を含み構成される。ファイルメモリコントローラ2はマ
イクロプロセッサ20.  ROM21.ノ\ノファメ
モリ22.サムチェックレジスタ23.ステータスレジ
スタ24および25.コマンドレジスタ26゜フロッピ
ィディスクコントローラ27.ノ飄−ドディスクコント
ローラ28を含み構成される。ここでコマンドレジスタ
26は情報処理装置1からファイルメモリコントローラ
2に対してコマンドをセントするためのレジスタであり
、ステータスレジスタ24はファイルメモリコントロー
ラ2のコマンド終結および動作状態を示すレジスタであ
り、ステータスレジスタ25はファイルメモリコントロ
ーラ2の終了ステータスすなわち処理が正常に終了した
か否かを表示するレジスタである。
The information processing device 1 includes a central processing device 10. main storage device 11;
Sum check register 12. It is configured to include a DMA controller 13 and the like. The file memory controller 2 includes a microprocessor 20. ROM21. No\Nofa Memory 22. Sum check register 23. Status registers 24 and 25. Command register 26° floppy disk controller 27. It is configured to include a hard disk controller 28. Here, the command register 26 is a register for sending a command from the information processing device 1 to the file memory controller 2, and the status register 24 is a register that indicates the completion of a command and the operating state of the file memory controller 2. Reference numeral 25 is a register that displays the completion status of the file memory controller 2, that is, whether or not the processing has ended normally.

実施例システムの動作を以下に説明する。いまフロッピ
ィディスク装置3のデータをファイルメモリコントロー
ラ2を介して情報処理装置1にDMAデータ転送するも
のとする。情報処理装置1はバス5を介してファイルメ
モリコントローラ2のコマンドレジスタ26にリードデ
ータコマンドを送って設定する。コマンドレジスタ26
にコマンドが送られてくると、マイクロプロセッサ20
に割込みがかけられ、マイクロプロセッサ20はコマン
ドレジスタ26の内容を読み取り、実行する。この際、
ステータスレジスタ24にはビジー表示が設定されて他
の割込みが生じないようにする。
The operation of the embodiment system will be explained below. It is now assumed that the data in the floppy disk device 3 is to be transferred via DMA data to the information processing device 1 via the file memory controller 2. The information processing device 1 sends a read data command to the command register 26 of the file memory controller 2 via the bus 5 to set it. Command register 26
When a command is sent to the microprocessor 20
is interrupted and microprocessor 20 reads and executes the contents of command register 26. On this occasion,
A busy indication is set in the status register 24 to prevent other interrupts from occurring.

次いでROM21に格納されたプログラムに従って、マ
イクロプロセッサ20はフロッピィディスクコントロー
ラ27を介してフロッピィディスク装置3に保持されて
いる転送データをバッファメモリ22に一時的に蓄える
。256バイトのデータがバッファメモリ22に蓄積さ
れると情報処理装置lの主記憶装置11にDMA転送さ
れるものであるが、このDMA転送の前に、第3図に示
されるように。
Next, according to the program stored in the ROM 21, the microprocessor 20 temporarily stores the transfer data held in the floppy disk device 3 in the buffer memory 22 via the floppy disk controller 27. When 256 bytes of data is stored in the buffer memory 22, it is transferred to the main storage device 11 of the information processing device 1 by DMA transfer, but before this DMA transfer, as shown in FIG.

256バイトのデータを16ビツト×128ワードのブ
ロックにしてサムチェックを行い、チェックワードCW
を作成する。このサムチェックは1ワードのデータの各
ビットをワード方向に加算して、加算結果の最下位桁の
補数をとってチェックワードCWを作ることによる。
A sum check is performed on the 256-byte data as a 16-bit x 128-word block, and the check word CW is
Create. This sum check is performed by adding each bit of one word of data in the word direction and taking the complement of the least significant digit of the addition result to create a check word CW.

このようにして作成されたチェックワードCWはデータ
ブロックのDMA転送前に5通常のデータ転送によって
ファイルメモリコントローラ2から情報処理装置1のサ
ムチェックレジスタ12に転送されて格納される。次い
で1作成したチェックワードCWを転送データブロック
の最後に付加して、DMAコントローラ13に制御下に
バッファメモリ22から主記憶装置11にDMAデータ
転送する。
The check word CW created in this way is transferred from the file memory controller 2 to the sum check register 12 of the information processing device 1 by five normal data transfers and stored therein before the DMA transfer of the data block. Next, the created check word CW is added to the end of the transfer data block, and the DMA data is transferred from the buffer memory 22 to the main storage device 11 under the control of the DMA controller 13.

情報処理装置lにおいては、転送データが主記憶装置1
1に格納されたら、中央処理装置10が転送データの最
後に付加されているチェックワードCWを読み出し、こ
れとサムチェックレジスタ12に格納されているチェッ
クワードCWとを照合する。両者が一致していればDM
A転送が正常に行われたと判断することができ、−敗し
なければデータブロックの崩れ等の異常が発生したと判
断することができる。
In the information processing device 1, the transferred data is stored in the main storage device 1.
1, the central processing unit 10 reads the check word CW added to the end of the transfer data and compares this with the check word CW stored in the sum check register 12. If both match, DM
It can be determined that the A transfer was performed normally, and if there is no failure, it can be determined that an abnormality such as data block corruption has occurred.

なお、情報処理装置l側からファイルメモリコントロー
ラ2にDMAデータ転送する場合も同様の処理が行われ
、情報処理装置1で作成されたチェックワードCWはフ
ァイルメモリコントローラ2のサムチェックレジスタ2
3に格納されてマイクロプロセッサ20によってDMA
データ転送後に転送の正常性検査のために照合される。
Note that similar processing is performed when DMA data is transferred from the information processing device l side to the file memory controller 2, and the check word CW created in the information processing device 1 is transferred to the sum check register 2 of the file memory controller 2.
3 and is stored in the DMA by the microprocessor 20.
Verified after data transfer to check the normality of the transfer.

本発明の実施にあたっては種々の変更態様が可能である
。例えば上述の実施例ではDMAデータ転送前にチェッ
クワードCWを転送先装置に転送したが、勿論、DMA
データ転送後にチェックワードCWを転送するものであ
ってもよい。また上述の実施例では情報処理装置と記憶
装置間のDMAデータ転送について説明したが、これに
限らず。
Various modifications are possible in carrying out the invention. For example, in the above embodiment, the check word CW was transferred to the transfer destination device before DMA data transfer, but of course, the DMA
The check word CW may be transferred after data transfer. Furthermore, although the above embodiment describes DMA data transfer between the information processing device and the storage device, the present invention is not limited thereto.

記憶装置間のDMAデータ転送、情報処理装置と入出力
装置間のDMAデータ転送などの場合にも本発明は適用
可能である。
The present invention is also applicable to DMA data transfer between storage devices, DMA data transfer between an information processing device and an input/output device, and the like.

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

本発明によれば、データが正常にDMAデータ転送され
たか否かを検査することができ、転送データの信頼性が
向上される。またその検査においてデータバスの垂直パ
リティチェック用の信号線を増やす必要もないので経済
的であり、装置が大型化しない。
According to the present invention, it is possible to check whether data has been transferred normally by DMA data, and the reliability of transferred data is improved. In addition, since there is no need to increase the number of signal lines for vertical parity check of the data bus in the test, it is economical and the device does not become large.

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

第1図は本発明にかかる原理ブロック図、第2図は本発
明の一実施例としてのDMAデータ転送の正常性検査方
式を行う情報処理システムのブロック図、第3図は第2
図システムでDMAデータ転送されるデータブロックの
構成例を示す図である。 1−一情報処理装置 2−ファイルメモリコントローラ 3−フロッピィディスク’AW 4−ハードディスク装置 5・・−バス 10−・中央処理装置 11−・−主記憶装置 12−サムチェックレジスタ 13−−DMAコントローラ 20−マイクロプロセッサ 21−・−ROM 22−バッファメモリ 23−サムチェックレジスタ 24− ステータスレジスタ 25−・−ステータスレジスタ 26・−・コマンドレジスタ
FIG. 1 is a block diagram of the principle according to the present invention, FIG. 2 is a block diagram of an information processing system that performs a normality check method for DMA data transfer as an embodiment of the present invention, and FIG.
FIG. 2 is a diagram showing an example of a configuration of a data block to which DMA data is transferred in the system. 1-1 Information processing device 2-File memory controller 3-Floppy disk 'AW 4-Hard disk device 5...-Bus 10-Central processing unit 11--Main storage device 12-Sum check register 13--DMA controller 20 -Microprocessor 21--ROM 22-Buffer memory 23-Sum check register 24-Status register 25--Status register 26--Command register

Claims (1)

【特許請求の範囲】 2以上の装置間でデータブロックを直接メモリアクセス
によって転送するDMAデータ転送方式であって、 転送元装置(7)に、転送されるデータブロック(DB
)の誤り検査を行って検査データ(CD)を生成する検
査手段(70)が設けられ、 転送先装置(6)に検査データ(CD)を保持する記憶
手段(60)が設けられ、 データブロック(DB)の転送に際しては転送元装置(
7)において転送データブロック(DB)に検査データ
(CD)が付加されて直接メモリアクセスによって転送
先装置(6)にデータ転送され、 一方、検査データ(CD)が転送データブロック(DB
)とは別に転送元装置(7)から転送先装置(6)の記
憶手段(60)に転送されて格納され、転送先装置(6
)において、記憶手段(60)に格納されたチェックデ
ータ(CD)と直接メモリアクセスによって転送データ
ブロック(DB)に付加されて転送されてきたチェック
データ(CD)とが照合されて転送データブロックの正
常性の検査が行われるように構成されたDMAデータ転
送の正常性検査方式。
[Claims] A DMA data transfer method for transferring data blocks between two or more devices by direct memory access, the data block to be transferred (DB
) is provided with a checking means (70) for generating test data (CD) by performing an error check, and a storage means (60) for holding the test data (CD) is provided in the destination device (6), When transferring (DB), transfer source device (
In step 7), the test data (CD) is added to the transfer data block (DB), and the data is transferred to the transfer destination device (6) by direct memory access.
) is transferred from the transfer source device (7) to the storage means (60) of the transfer destination device (6), and is stored separately from the transfer destination device (6).
), the check data (CD) stored in the storage means (60) is compared with the check data (CD) added to the transfer data block (DB) and transferred by direct memory access, and the transfer data block is processed. A normality check method for DMA data transfer configured to perform a normality check.
JP62139925A 1987-06-05 1987-06-05 Check system for normalcy of dma data Pending JPS63304356A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62139925A JPS63304356A (en) 1987-06-05 1987-06-05 Check system for normalcy of dma data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62139925A JPS63304356A (en) 1987-06-05 1987-06-05 Check system for normalcy of dma data

Publications (1)

Publication Number Publication Date
JPS63304356A true JPS63304356A (en) 1988-12-12

Family

ID=15256856

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62139925A Pending JPS63304356A (en) 1987-06-05 1987-06-05 Check system for normalcy of dma data

Country Status (1)

Country Link
JP (1) JPS63304356A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017027347A (en) * 2015-07-22 2017-02-02 株式会社デンソー Electronic controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017027347A (en) * 2015-07-22 2017-02-02 株式会社デンソー Electronic controller

Similar Documents

Publication Publication Date Title
FI92262C (en) Flexible bus system
JP4451837B2 (en) Data transfer apparatus and data transfer method
JPS5918800B2 (en) Partial writing method
US5838892A (en) Method and apparatus for calculating an error detecting code block in a disk drive controller
US4761783A (en) Apparatus and method for reporting occurrences of errors in signals stored in a data processor
JPS63304356A (en) Check system for normalcy of dma data
JPS623361A (en) Status report system
JPS6238953A (en) Main storage device for compression of partial write access
JPS63278162A (en) Error correction device in information processor
JP2704062B2 (en) Information processing device
JPH0315217B2 (en)
JPH01158554A (en) Data processing system providing dma device
JPS59211149A (en) Comparison stopping system
JPS6159565A (en) Interrupt input device of multicomputer system
JPH0814794B2 (en) Interrupt handling method
JPS59117618A (en) Data bus controller
JPH03246659A (en) Multi-cpu system
JPH01222358A (en) Machine number error detection system for input/output device
JPH0324601A (en) Control method
JPH01197860A (en) Memory fault detecting circuit
JPS63155346A (en) Ram check system
JPS61139836A (en) Instruction control system of pipeline computer
JPS63228339A (en) Testing system for instruction process device
JPS6240533A (en) Program loading system
JPS61139856A (en) Data processor