JPH0589030A - Input/output controller - Google Patents

Input/output controller

Info

Publication number
JPH0589030A
JPH0589030A JP3252499A JP25249991A JPH0589030A JP H0589030 A JPH0589030 A JP H0589030A JP 3252499 A JP3252499 A JP 3252499A JP 25249991 A JP25249991 A JP 25249991A JP H0589030 A JPH0589030 A JP H0589030A
Authority
JP
Japan
Prior art keywords
data
input
transfer
dma transfer
main storage
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
JP3252499A
Other languages
Japanese (ja)
Inventor
Hitoshi Yoshihara
人志 吉原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP3252499A priority Critical patent/JPH0589030A/en
Publication of JPH0589030A publication Critical patent/JPH0589030A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To detect a defect, which can not be detected by an abnormality detection part, during DMA transfer and to improve the reliability of the device by comparing data in a main storage device and a data buffer after the DMA transfer is completed. CONSTITUTION:An input/output device 3 decodes a DMA transfer command from a CPU 1 and based on parameter information to be continuously received, data are read from the input/output device 3 only for a data length designated from a designated address, written in a data buffer 32 and transferred to a main storage address by the DMA transfer. After the data transfer is completed, the final data in the data buffer 32 and the final data in a main storage device 2 are read out and compared. When those data are coincident, the command is normally finished and when they are not coincident, abnormal end is judged. Thus, the defect not detected at the abnormality detection part can be detected during the DMA transfer and the reliability is improved.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、CPUから発せられ
るコマンドにより主記憶装置と入出力装置間のデータ転
送をDMA(ダイレクトメモリアクセス)にて行うデー
タ処理装置に用いて好適な入出力制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention is an input / output control device suitable for use in a data processing device for transferring data between a main memory device and an input / output device by DMA (direct memory access) by a command issued from a CPU. Regarding

【0002】[0002]

【従来の技術】データ処理装置における入出力データの
転送の形態に、プログラム転送とDMA転送の2つがあ
る。前者はCPUがデータ転送をコントロールし、後者
はCPUとは独立して設けられるDMA転送制御装置が
コントロールする。後者は、CPUから発せられるコマ
ンドならびにパラメータ(アドレス及びデータ転送長)
に従い、入出力装置と主記憶装置間のデータ転送をDM
A転送制御装置がCPUを介さずに直接行なう方式であ
り、プログラム転送に比べ、CPUの負荷を軽減すると
共に高速転送が可能となることから頻繁に使用される。
2. Description of the Related Art There are two types of transfer of input / output data in a data processing device: program transfer and DMA transfer. In the former case, the CPU controls data transfer, and in the latter case, the DMA transfer control device provided independently of the CPU controls. The latter is commands and parameters issued from the CPU (address and data transfer length)
DM data transfer between I / O device and main memory according to
This is a method in which the A transfer control device directly performs the operation without passing through the CPU, and is frequently used because it reduces the load on the CPU and enables high-speed transfer as compared with the program transfer.

【0003】DMA転送が終了した後はDMA制御部や
データバス制御部に設けられた異常検出部でエラー検出
を行い、ここでエラーが検出されなければ正常終了と見
なしコマンド処理を終了していた。つまり、転送された
データそのものを再度読み出して確実に転送されている
ことの確認は行なっていなかった。
After the completion of the DMA transfer, an error is detected by an abnormality detecting section provided in the DMA control section or the data bus control section. If no error is detected here, it is regarded as normal termination and the command processing is terminated. .. In other words, the transferred data itself was not read again to confirm that the data was transferred reliably.

【0004】[0004]

【発明が解決しようとする課題】上述した従来例に従え
ば、DMA転送中の異常検出部で検出できなかった不良
等により、主記憶装置と、主記憶装置と入出力装置間の
データを仲介するデータバッファの内容が異った場合、
正確なエラー検出ができない。
According to the above-described conventional example, the main storage device and the data between the main storage device and the input / output device are intervened due to a defect or the like which cannot be detected by the abnormality detection unit during the DMA transfer. If the contents of the data buffer to be
Accurate error detection is not possible.

【0005】この発明は上記事情に基づいてなされたみ
のであり、転送されたデータの少なくとも一部を再度読
み出して確実に転送されていることの確認は行なうこと
により入出力制御装置と主記憶装置間のDMA転送処理
における不正データ転送時のエラー検出率を向上させ、
一層信頼性の向上をはかった入出力制御装置を提供する
ことを目的とする。
The present invention has been made in view of the above circumstances, and at least a part of the transferred data is read again to confirm that the data has been transferred reliably. Improves the error detection rate during illegal data transfer in DMA transfer processing between
It is an object of the present invention to provide an input / output control device with further improved reliability.

【0006】[0006]

【課題を解決するための手段】本発明の入出力制御装置
は、CPUから発せられるコマンドにより主記憶装置と
入出力装置間のデータ転送をDMA(ダイレクトメモリ
アクセス)にて行うデータ処理装置において、指定され
た転送長分のデータが一時格納されるデータバッファ
と、このデータバッファに格納されたデータを直接読み
出す第1のデータ読み出し回路と、上記主記憶装置に格
納されたデータを前記データバッファを介すことなく直
接読み出す第2のデータ読み出し回路と、DMA転送終
了後、上記第1第2のデータ読み出し回路を介して前記
データバッファに残っている転送済データの少なくとも
一部と主記憶装置の対応する範囲のデータを読みだし、
これを比較する比較回路とを具備し、前記比較回路によ
る比較の結果に従い、正常もしくは異常処理を行なうこ
とを特徴とする。
An input / output control device of the present invention is a data processing device for performing data transfer between a main memory device and an input / output device by DMA (direct memory access) by a command issued from a CPU, A data buffer in which data of a designated transfer length is temporarily stored, a first data reading circuit for directly reading the data stored in this data buffer, and data stored in the main memory device is stored in the data buffer. A second data read circuit that directly reads the data without passing through, and at least a part of the transferred data remaining in the data buffer via the first and second data read circuits after the completion of the DMA transfer and the main storage device. Read the data in the corresponding range,
It is characterized by comprising a comparison circuit for comparing these, and performing normal or abnormal processing according to the result of comparison by the comparison circuit.

【0007】[0007]

【作用】本発明は、主記憶装置と入出力装置間のデータ
転送を、入出力制御装置に内蔵されるデータバッファを
介して行うDMA転送に適用されるものであって、入出
力制御装置に、更にデータバッファを直接リードするデ
ータ読み出し回路と、主記憶装置に転送されたデータを
データバッファを介すことなく直接リードするデータ読
み出し回路を付加し、このデータ読み出し回路を介し、
DMA転送終了後にデータバッファに残っている転送済
みデータの一部又は全部と、主記憶装置の対応する範囲
のデータを直接読み出し、データのコンペアチェックを
行なうことによりDMA転送の異常検出率を向上させ
る。このことにより、一層の信頼性向上がはかれる。
INDUSTRIAL APPLICABILITY The present invention is applied to DMA transfer in which data transfer between a main memory device and an input / output device is carried out via a data buffer incorporated in the input / output control device. , A data read circuit for directly reading the data buffer and a data read circuit for directly reading the data transferred to the main storage device without passing through the data buffer are added, and through this data read circuit,
A part or all of the transferred data remaining in the data buffer after the end of the DMA transfer and the data in the corresponding range of the main storage device are directly read and the data compare check is performed to improve the abnormality detection rate of the DMA transfer. .. As a result, the reliability is further improved.

【0008】[0008]

【実施例】以下、図面を使用して本発明実施例について
詳細に説明する。
Embodiments of the present invention will be described below in detail with reference to the drawings.

【0009】図1は本発明の実施例を示すブロック図で
ある。図において、符号1はCPUでありデータ処理装
置の制御中枢となるものであり、本発明と関係するとこ
ろてでは入出力制御装置3に対してコマンドを発行す
る。符号2は主記憶装置であり、プログラム乃至データ
が格納され、CPU1や入出力制御装置3によりデータ
のリード/ライトがなされる。符号3は入出力制御装置
であり、接続される大容量ディスク等入出力装置と主記
憶装置間のデータ転送制御を行なう。入出力制御装置3
は、コマンド処理回路、データ読み出し回路、比較回路
から成る入出力制御部31と、データバッファ32で構
成される。入出力制御部31は、DMA転送時、データ
バッファ32を介してデータの転送制御を行なうほか、
データバッファ32に格納されたデータの直接リード、
主記憶装置2に格納されたデータの直接リードが可能で
あり、DMA転送終了後、データバッファに残っている
転送済データの少なくとも一部と主記憶装置の対応する
範囲のデータを読みだし、これを比較する。データバッ
ファ32は、DMA転送時、入出力制御装置3と主記憶
装置2間の転送データを保持する。符号4は入出力装置
であり、入出力制御装置3により制御される。
FIG. 1 is a block diagram showing an embodiment of the present invention. In the figure, reference numeral 1 is a CPU which serves as a control center of the data processing device, and issues commands to the input / output control device 3 in relation to the present invention. Reference numeral 2 is a main storage device, which stores programs and data, and is read / written by the CPU 1 and the input / output control device 3. Reference numeral 3 is an input / output control device, which controls data transfer between an input / output device such as a large-capacity disk connected to the main storage device. Input / output control device 3
Is composed of an input / output control unit 31 including a command processing circuit, a data read circuit, and a comparison circuit, and a data buffer 32. The input / output control unit 31 controls the data transfer via the data buffer 32 during the DMA transfer.
Direct reading of data stored in the data buffer 32,
The data stored in the main memory 2 can be directly read, and after the DMA transfer is completed, at least a part of the transferred data remaining in the data buffer and the data in the corresponding range of the main memory are read out. To compare. The data buffer 32 holds transfer data between the input / output control device 3 and the main storage device 2 during DMA transfer. Reference numeral 4 denotes an input / output device, which is controlled by the input / output control device 3.

【0010】図2は本発明実施例の動作を示すフローチ
ャートである。
FIG. 2 is a flow chart showing the operation of the embodiment of the present invention.

【0011】以下、図2を参照しながらず図1に示す本
発明実施例の動作について詳細に説明する。まず、入出
力制御装置3はCPU1からDMA転送コマンドを受信
する。入出力制御装置3は、そのコマンドを解釈し、続
いて受信するパラメータ情報に基づき、指定されたアド
レスから指定されたデータ長だけ入出力装置3からデー
タを読み出し、データバッファ32へ書き込み、そのデ
ータを指定された主記憶アドレスに格納すべくDMAデ
ータ転送を実行する。DMA転送が終了したら、エラー
が検出されているか否かをチェック紙、ここでエラー検
出がなされれば従来同様、以上検出処理を行う。エラー
が検出しなければ次の処理へ進む。
The operation of the embodiment of the present invention shown in FIG. 1 will be described in detail below with reference to FIG. First, the input / output control device 3 receives a DMA transfer command from the CPU 1. The input / output control device 3 interprets the command, and based on the parameter information received subsequently, reads the data from the input / output device 3 by the specified data length from the specified address, writes the data in the data buffer 32, and writes the data. DMA data transfer is executed to store the data at the designated main memory address. When the DMA transfer is completed, it is checked whether or not an error is detected. If an error is detected here, the above detection processing is performed as in the conventional case. If no error is detected, proceed to the next process.

【0012】ここで、転送データそのものを再度読み出
し確実に転送されているか否かをチェックするルーチン
処理に入る。本発明実施例では説明の簡略化のために、
データ転送の最終データのみをコンペアチェックする例
を述べる。この例に限らず、任意アドレスデータでも、
あるいは全てをコンペアチェックする方式であっても構
わない。即ち、データ転送が終了したらデータバッファ
32内の最終データと主記憶装置2内の最終データをそ
れぞれリードし、比較する。ここで、最終データのデー
タバッファ32内アドレスおよび主記憶装置2内アドレ
スは、転送開始アドレス+データ転送長により求める。
この時、データが一致していれば正常終了としてコマン
ドを終了する。データが不一致であれば、何らかの異常
が発生したものとして、コマンドを異常終了する。
Here, the transfer data itself is read again, and a routine process for checking whether or not the data has been reliably transferred is entered. In the embodiment of the present invention, for simplification of description,
An example in which only the final data of data transfer is compare-checked will be described. Not limited to this example, even with arbitrary address data,
Alternatively, a method in which all of them are compare-checked may be used. That is, when the data transfer is completed, the final data in the data buffer 32 and the final data in the main memory 2 are read and compared. Here, the address in the data buffer 32 and the address in the main memory 2 of the final data are obtained by the transfer start address + data transfer length.
At this time, if the data match, the command is terminated normally and the command is terminated. If the data do not match, the command is abnormally terminated, assuming that some abnormality has occurred.

【0013】[0013]

【発明の効果】以上説明のように本発明によれば、DM
A転送終了後の主記憶装置及びデータバッファのデータ
比較を行なうことにより、DMA転送中、異常検出部で
発見できなかった不良を検出でき、一層信頼性の高いデ
ータ処理装置を構築できる。
As described above, according to the present invention, DM
By comparing the data in the main storage device and the data buffer after the A transfer is completed, it is possible to detect a defect that cannot be found by the abnormality detecting unit during the DMA transfer, and it is possible to construct a more reliable data processing device.

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

【図1】本発明の実施例を示すブロック図。FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】本発明実施例の動作を示すフローチャート。FIG. 2 is a flowchart showing the operation of the embodiment of the present invention.

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

1………CPU 2………主記憶装置 3………入出力制御装置 4………入出力装置 31………入出力制御部 32………データバッファ 1 ... CPU 2 ... Main storage device 3 ... I / O control device 4 ... I / O device 31 ... I / O control unit 32 ... Data buffer

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 CPUから発せられるコマンドにより主
記憶装置と入出力装置間のデータ転送をDMA(ダイレ
クトメモリアクセス)にて行うデータ処理装置におい
て、指定された転送長分のデータが一時格納されるデー
タバッファと、このデータバッファに格納されたデータ
を直接読み出す第1のデータ読み出し回路と、上記主記
憶装置に格納されたデータを前記データバッファを介す
ことなく直接読み出す第2のデータ読み出し回路と、D
MA転送終了後、上記第1第2のデータ読み出し回路を
介して前記データバッファに残っている転送済データの
少なくとも一部と主記憶装置の対応する範囲のデータを
読みだし、これを比較する比較回路とを具備し、前記比
較回路による比較の結果に従い、正常もしくは異常処理
を行なうことを特徴とする入出力制御装置。
1. A data processing device for transferring data between a main memory device and an input / output device by DMA (Direct Memory Access) by a command issued from a CPU, and temporarily stores data for a specified transfer length. A data buffer, a first data reading circuit for directly reading the data stored in the data buffer, and a second data reading circuit for directly reading the data stored in the main storage device without passing through the data buffer. , D
After the MA transfer is completed, at least a part of the transferred data remaining in the data buffer and the data in the corresponding range of the main storage device are read out through the first and second data reading circuits, and are compared. An input / output control device comprising a circuit and performing normal or abnormal processing according to the result of comparison by the comparison circuit.
JP3252499A 1991-09-30 1991-09-30 Input/output controller Withdrawn JPH0589030A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3252499A JPH0589030A (en) 1991-09-30 1991-09-30 Input/output controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3252499A JPH0589030A (en) 1991-09-30 1991-09-30 Input/output controller

Publications (1)

Publication Number Publication Date
JPH0589030A true JPH0589030A (en) 1993-04-09

Family

ID=17238226

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3252499A Withdrawn JPH0589030A (en) 1991-09-30 1991-09-30 Input/output controller

Country Status (1)

Country Link
JP (1) JPH0589030A (en)

Similar Documents

Publication Publication Date Title
US4924465A (en) Memory with function test of error detection/correction device
JPH0589030A (en) Input/output controller
JPH03211619A (en) Data processor
JPH0480860A (en) Program loading system
JPH0358217A (en) Electronic disk subsystem
JPH06103176A (en) Processing method for nonvolatile memory
JPS6238746B2 (en)
JPH0315948A (en) Address bus test system
JPH09231140A (en) Memory check device
JPH0731639B2 (en) Magnetic disk controller
JPS60220448A (en) Mutual checking method of multi-cpu system
JPS63288345A (en) Numerical controller
JPS60140958A (en) Line control system
JPS6217844A (en) Information processor
JPH01309421A (en) Error correction system
JPS6149255A (en) Initial program loading system of terminal equipment
JPH02171991A (en) Control method for ic card
JPH0782447B2 (en) DMA data transfer control device
JPH04291646A (en) Write monitoring device
JPS59226955A (en) Program debug device
JPS62114047A (en) Storage device
JPH0258766A (en) Hard disk controlling system
JPH05241900A (en) Program operation confirmation system of computer
JPS617947A (en) Control storage device
JPH05298199A (en) Input/output control 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: 19981203