JPH0458061B2 - - Google Patents

Info

Publication number
JPH0458061B2
JPH0458061B2 JP58071175A JP7117583A JPH0458061B2 JP H0458061 B2 JPH0458061 B2 JP H0458061B2 JP 58071175 A JP58071175 A JP 58071175A JP 7117583 A JP7117583 A JP 7117583A JP H0458061 B2 JPH0458061 B2 JP H0458061B2
Authority
JP
Japan
Prior art keywords
line
control unit
bus
bus error
data
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 - Lifetime
Application number
JP58071175A
Other languages
Japanese (ja)
Other versions
JPS59195736A (en
Inventor
Yoshiharu Tobe
Zenichi Yashiro
Shuichi Tonami
Hideo Abe
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
Nippon Telegraph and Telephone Corp
Original Assignee
Fujitsu Ltd
Nippon Telegraph and Telephone 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 Fujitsu Ltd, Nippon Telegraph and Telephone Corp filed Critical Fujitsu Ltd
Priority to JP58071175A priority Critical patent/JPS59195736A/en
Publication of JPS59195736A publication Critical patent/JPS59195736A/en
Publication of JPH0458061B2 publication Critical patent/JPH0458061B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は、回線対応に設けられた回線制御部と
主記憶部との間のデータ転送をダイレクトメモリ
アクセス(DMA)により行う通信制御装置に係
り、詳しくは、回線制御部によるデータのDMA
転送中にバスエラーが発生した場合の制御に関す
るものである。
[Detailed Description of the Invention] [Field of Application of the Invention] The present invention relates to a communication control device that transfers data between a line control section provided for a line and a main storage section using direct memory access (DMA). For details, see DMA of data by line control unit.
This relates to control when a bus error occurs during transfer.

〔従来技術〕[Prior art]

第1図示従来の通信制御装置の構成例であり、
1は通信制御装置全体の主な制御を司どる中央制
御部、2はプログラム及び送受信データが格納さ
れる主記憶部、3−i(i=1,……n)は
DMA機能を内蔵した回線制御部、4はアドレス
バスとデータバスから成る装置バス、5は装置バ
ス競合回路、6−0と6−i(i=1,……n)
は装置バス要求信号、7−0と7−i(i=1,
……n)は装置バス使用権割当で信号を示す。本
例では、回線制御部3−iはCCITT勧告X25レ
ベル2伝送制御手順処理に従い、回線からの受信
データおよび回線への送信データはHDLC手順で
採用されているフレーム形式で送、受信するもの
とする。
The first diagram shows an example of the configuration of a conventional communication control device,
1 is a central control unit that manages the main control of the entire communication control device, 2 is a main storage unit in which programs and transmitted/received data are stored, and 3-i (i=1,...n) is a
A line control unit with a built-in DMA function, 4 a device bus consisting of an address bus and a data bus, 5 a device bus competition circuit, 6-0 and 6-i (i=1,...n)
are device bus request signals, 7-0 and 7-i (i=1,
. . . n) indicates a signal for device bus usage right assignment. In this example, the line control unit 3-i follows the CCITT Recommendation do.

第1図において、回線からデータを受信する場
合、回線制御部3−iは直列受信データをバイト
単位に組立て、回線から1バイト受信する都度、
装置バス要求信号6−iを出力し、装置バス競合
回路5に対して装置バス要求を行う。装置バス競
合回路5は、回線制御部3−iから装置バス要求
があると、中央制御部1に装置バス要求信号6−
0により装置バス要求を行い、中央制御部1から
装置バス使用権割当て信号7−0により装置バス
使用権を得ると、更に装置バスの使用を要求して
いた回線制御部3−iに装置バス使用権割当て信
号7−iを返す。装置バス競合回路5から装置バ
ス使用権を得た該回線制御部3−iは、回線から
受信した1バイトのデータを主記憶部2へDMA
転送する。このようにして、回線制御部3−i
は、回線から1バイト受信する毎に主記憶部2へ
受信データをDMA転送し、回線から1フレーム
の受信を終了すると、回線に対しフレーム正常受
信を通知するフレームを送信するとともに中央制
御部1に対しても割込み等により、フレーム正常
受信を通知する。一方、回転へデータを送信する
場合、回線制御部3−iは送信フレーム先頭に付
ける開始フラグ、アドレス部、コントロール部を
順次送信した後、内部に発生する送信データ要求
を契機として、受信の場合と同様の方法により装
置バス使用権を獲得し、主記憶部2からの送信デ
ータを1バイト単位でDMA転送により受取る。
続いて、回線制御部3−iは主記憶部2から受け
とつた送信データを直列データに変換して回線へ
送出する。このようにして回線制御部3−iは送
信データを次々と回線に送出し、送信データの最
終バイトを送出すると、フレームチエツクシーケ
ンス部(FCS)、終結フラグを順次送信し、フレ
ーム送信を完了する。
In FIG. 1, when receiving data from the line, the line control unit 3-i assembles the serially received data into bytes, and each time it receives one byte from the line,
It outputs a device bus request signal 6-i to issue a device bus request to the device bus contention circuit 5. When there is a device bus request from the line controller 3-i, the device bus contention circuit 5 sends a device bus request signal 6-i to the central controller 1.
When the device bus request is made by 0 and the device bus usage right is obtained from the central control unit 1 by the device bus usage right assignment signal 7-0, the device bus is sent to the line control unit 3-i that had requested the usage of the device bus. A usage right assignment signal 7-i is returned. The line control unit 3-i, which has obtained the right to use the device bus from the device bus contention circuit 5, transfers the 1-byte data received from the line to the main storage unit 2 via DMA.
Forward. In this way, the line control unit 3-i
Each time it receives one byte from the line, it DMA transfers the received data to the main memory unit 2, and when it finishes receiving one frame from the line, it sends a frame to the line notifying that the frame has been successfully received, and the central control unit 1 The normal reception of the frame is also notified by an interrupt or the like. On the other hand, when transmitting data to the rotation, the line control unit 3-i sequentially transmits the start flag attached to the beginning of the transmission frame, the address field, and the control field, and then, triggered by an internally generated transmission data request, It acquires the right to use the device bus in the same manner as above, and receives the transmission data from the main memory section 2 in units of 1 byte by DMA transfer.
Subsequently, the line control unit 3-i converts the transmission data received from the main storage unit 2 into serial data and sends it to the line. In this way, the line control unit 3-i sends the transmission data to the line one after another, and when the last byte of the transmission data is sent, the frame check sequence unit (FCS) and the termination flag are sequentially transmitted to complete the frame transmission. .

従来の通信制御装置は、以上のような構成とな
つているため、回線制御部と主記憶部との間で
DMA転送をしている時、メモリ読出しエラーや
バスパリテイエラー等のバスエラーが発生する
と、誤まつたデータが回線に送出されたり、回線
から受信したデータが誤まつたまま中央制御部に
より処理されるという欠点があつた。このため、
DMA転送中の上記バスエラーを検出し、バスエ
ラー対策を施す必要がある。
Conventional communication control equipment has the above configuration, so there is no communication between the line control section and the main memory section.
If a bus error such as a memory read error or bus parity error occurs during DMA transfer, erroneous data may be sent to the line, or data received from the line may remain erroneous and be processed by the central control unit. It had the disadvantage of being rejected. For this reason,
It is necessary to detect the above bus error during DMA transfer and take measures against the bus error.

従来、この種のバスエラー対策には、バスエラ
ーの検出手段と検出されたバスエラーを中央制御
部に通知する手段とを設け、バスエラー発生時、
バスエラー通知を受けた中央制御部が装置バスを
介して、コマンド制御により回線制御部を制御
(例えば動作を停止させる等の制御)する方式が
ある。しかし、この方式では、回線へデータを送
信する場合、送信フレームの最終データ1バイト
を主記憶部から回線制御部へDMA転送している
時にバスエラーが発生すると、バスエラー通知を
受けた中央制御部が該当回線制御部をコマンド制
御するまでの間に、該回線制御部において誤デー
タを含んだフレーム送信が完了する可能性がある
ため、誤データ送信を防止できないという欠点が
あつた。また、回線からデータを受信する場合、
受信フレームの最終データ1バイトを回線制御部
から主記憶部へDMA転送しいてる時にバスエラ
ーが発生すると、バスエラー通知を受けた中央制
御部が該回線制御部をコマンド制御するまでの間
に、該回線制御部においてフレーム正常受信を通
知するフレームを回線に送出している可能性があ
るため、回線への誤通知を防止できないという欠
点があつた。
Conventionally, this type of bus error countermeasure has been provided with a means for detecting a bus error and a means for notifying the central control unit of the detected bus error.
There is a method in which a central control unit that receives a bus error notification controls a line control unit (for example, controls to stop operation) by command control via a device bus. However, with this method, when transmitting data to the line, if a bus error occurs while DMA transfers the last 1 byte of data of the transmission frame from the main memory to the line control unit, the central control unit that received the bus error notification Since there is a possibility that frame transmission including erroneous data may be completed in the line controller until the unit command-controls the line controller, there is a drawback that erroneous data transmission cannot be prevented. Also, when receiving data from the line,
If a bus error occurs during DMA transfer of the last byte of data of a received frame from the line control unit to the main memory unit, the central control unit that received the bus error notification will control the line control unit with commands. Since there is a possibility that the line control unit sends a frame to the line to notify of normal frame reception, there is a drawback that erroneous notification to the line cannot be prevented.

〔発明の目的〕[Purpose of the invention]

本発明の目的は、上記DMA転送中にバスエラ
ーが発生した場合、回線制御部において誤データ
を含んだフレーム送信が行われたり、あるいはフ
レーム正常受信を通知するフレーム送信が行われ
たりするのを防止することにある。
An object of the present invention is to prevent the line control unit from transmitting a frame containing erroneous data or transmitting a frame notifying normal frame reception when a bus error occurs during the above-mentioned DMA transfer. The purpose is to prevent it.

〔発明の概要〕[Summary of the invention]

本発明は、上記の目的を達成するため、回線制
御部と主記憶部との間にバスエラー検出手段を設
け、バスエラー検出時にバスエラーを中央制御部
に通知すると同時にDMA転送中の回線制御部を
リセツトするようにしたものである。
In order to achieve the above object, the present invention provides a bus error detection means between a line control unit and a main storage unit, and when a bus error is detected, notifies the central control unit of the bus error and simultaneously controls the line during DMA transfer. It is designed to reset the section.

〔発明の実施例〕[Embodiments of the invention]

第2図は本発明の一実施例であつて、第1図と
同一符号は第1図と同一部分を示す。8−1と8
−2はそれぞれ装置バス4の主記憶部側と回線制
御部側に設けたバスエラー検出回路、9はバスエ
ラー検出回路8−1および8−2により検出され
たバスラエー信号、10はバスエラーを中央制御
部1に通知するバスエラー通知信号、11−i
(i=1、……、n)は回線制御部3−iの動作
を停止させ、回線との通信を切断するための回線
制御リセツト信号、12−1と12−2はオアゲ
ート、13−i(i=1、……、n)はアンドゲ
ートを示す。第2図において、回線制御部3−i
と主記憶部2との間のDMA転送中にバスエラー
が発生しない場合の動作は第1図の場合と同じで
あるので、その説明は省略する。以下、バスエラ
ーが発生した場合について説明する。
FIG. 2 shows an embodiment of the present invention, in which the same reference numerals as in FIG. 1 indicate the same parts. 8-1 and 8
-2 is a bus error detection circuit provided on the main storage side and line control side of the device bus 4, respectively; 9 is a bus error signal detected by the bus error detection circuits 8-1 and 8-2; and 10 is a bus error detection circuit. Bus error notification signal to notify central control unit 1, 11-i
(i=1, ..., n) is a line control reset signal for stopping the operation of the line control unit 3-i and disconnecting communication with the line, 12-1 and 12-2 are OR gates, 13-i (i=1, . . . , n) indicates an AND gate. In FIG. 2, line control unit 3-i
The operation when a bus error does not occur during DMA transfer between the main storage unit 2 and the main storage unit 2 is the same as that shown in FIG. 1, so a description thereof will be omitted. The case where a bus error occurs will be explained below.

回線からデータを受信する場合、回線制御部3
−iから装置バス4を通して主記憶部2に受信デ
ータを1バイト単位でDMA転送する。この時、
回線対応部側のバスエラー検出回路8−2におい
てパリテイビツトの生成を行い、1バイトの受信
データに付加して装置バス4上を転送せしめるこ
とにより主記憶部側のバスエラー検出回路8−1
においてバリテイエラーを検出する。該装置バス
4を転送中にエラーが発生し、バスエラー検出回
路8−1においてバリテイエラーが検出される
と、バスエラー信号9が出力され、これと同時に
回線制御部3−iに対して、バスエラー信号9と
装置バス使用権割当て信号7−iとのAND論理
をとつた回線制御部リセツト信号11−iが与え
られることにより、DMA転送中の回線制御部3
−iだけがリセツトされる。また、中央制御部1
に対しては、バスエラー通知信号10によりバス
エラーが通知される。これにより中央制御部1
は、例えば主記憶部2より障害処理プログラムを
読出し、診断処理を開始する。このように、
DMA転送中にバスエラーがあると、DMA転送
が終結する前に該回線制御部3−iがフレームの
正常受信を回線に通知するために送信する確認用
フレームの誤送信を防止できる。
When receiving data from the line, line control unit 3
The received data is DMA-transferred from -i to the main storage unit 2 in 1-byte units via the device bus 4. At this time,
The bus error detection circuit 8-2 on the line corresponding section side generates a parity bit, adds it to 1 byte of received data, and transfers it on the device bus 4.
Detects a validity error. When an error occurs during transfer of the device bus 4 and a validity error is detected in the bus error detection circuit 8-1, a bus error signal 9 is output, and at the same time, a signal is sent to the line control unit 3-i. , the line control unit reset signal 11-i, which is an AND logic of the bus error signal 9 and the device bus usage right assignment signal 7-i, is applied to the line control unit 3 during DMA transfer.
-i only is reset. In addition, the central control unit 1
is notified of the bus error by the bus error notification signal 10. As a result, the central control unit 1
For example, the failure processing program is read out from the main storage unit 2 and the diagnostic processing is started. in this way,
If a bus error occurs during DMA transfer, it is possible to prevent erroneous transmission of a confirmation frame that is sent by the line control unit 3-i to notify the line of normal frame reception before the DMA transfer is completed.

次に、回線へデータを受信する場合、回線制御
部3−iは主記憶部2から送信データを1バイト
単位でDMA転送する。この時、主記憶部側のバ
スエラー検出回路8−1において、主記憶部2か
らのデータ(送信データ)に対してECC等によ
るメモリ読出しエラーを検出し、該エラーがなけ
れば、あらたにバリテイビツトを生成して装置バ
ス4により回線制御部側へ送る。この装置バス4
上の送信データに対し、回線対応部側のバスエラ
ー検出回路8−2においてパリテイエラーを検出
する。前記バスエラー検出回路8−1においてメ
モリ読出しエラーが検出されるか、またはバスエ
ラー検出回路8−2においてパリテイエラーが検
出されると、回線からのデータ受信の場合と同様
にして、DMA転送中の回線制御部3−iだけが
リセツトされるとともに、中央制御部1にバスエ
ラーが通知される。バスエラーの通知を受けた中
央制御部1のその後の処理はデータ受信の場合と
同様である。このように、送信データを主記憶部
2から回線制御部3−iへDMA転送しいてる時
にバスエラーが発生すると、回線制御部3−iが
送信データを受け取る前にリセツトされるため、
誤データを回線に送出するのが防止できる。
Next, when receiving data on the line, the line control section 3-i performs DMA transfer of the transmission data from the main storage section 2 in units of bytes. At this time, the bus error detection circuit 8-1 on the main memory side detects a memory read error due to ECC, etc. for the data (transmission data) from the main memory 2, and if there is no error, a new validation bit is detected. is generated and sent to the line control unit side via the device bus 4. This device bus 4
A parity error is detected for the above transmission data in the bus error detection circuit 8-2 on the line corresponding section side. When a memory read error is detected in the bus error detection circuit 8-1 or a parity error is detected in the bus error detection circuit 8-2, DMA transfer is performed in the same manner as when receiving data from a line. Only the line control section 3-i inside is reset, and the central control section 1 is notified of the bus error. The subsequent processing by the central control unit 1 that receives the notification of the bus error is the same as in the case of data reception. In this way, if a bus error occurs during DMA transfer of transmission data from the main storage section 2 to the line control section 3-i, the line control section 3-i is reset before receiving the transmission data.
This can prevent incorrect data from being sent to the line.

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

以上説明したように、本発明によれば、回線制
御部と主記憶部との間におけるDMA転送中のバ
スエラーが発生すると、バスエラー発生と同時に
中央制御部にバスエラー発生を通知するともに該
当回線制御部をリセツトするため、回線からのデ
ータ受信の場合には、バスエラー発生時回線への
フレーム受信確認用のフレームの誤送信を防止で
きる利点があり、回線へのデータ送信の場合に
は、バスエーラ発生時誤データ送信を防止できる
利点がある。
As explained above, according to the present invention, when a bus error occurs during DMA transfer between the line control unit and the main storage unit, the central control unit is notified of the bus error occurrence at the same time as the bus error occurs, and the corresponding Since the line control unit is reset, when receiving data from the line, it has the advantage of preventing the erroneous transmission of a frame for confirming frame reception to the line when a bus error occurs, and when transmitting data to the line, This has the advantage of preventing erroneous data transmission when a bus error occurs.

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

第1図は従来の通信制御装置の構成例を示す
図、第2図は本発明の一実施例を示す図である。 1……中央制御部、2……主記憶部、3−i…
…回線制御部、4……装置バス、5……装置バス
競合回路、8−1,8−2……バスエラー検出回
路、9……バスエラー信号、10……バスエラー
通知信号、11−i……回線制御部リセツト信
号。
FIG. 1 is a diagram showing an example of the configuration of a conventional communication control device, and FIG. 2 is a diagram showing an embodiment of the present invention. 1...Central control unit, 2...Main storage unit, 3-i...
...Line control unit, 4...Device bus, 5...Device bus contention circuit, 8-1, 8-2...Bus error detection circuit, 9...Bus error signal, 10...Bus error notification signal, 11- i... Line control unit reset signal.

Claims (1)

【特許請求の範囲】 1 中央制御部と主記憶部と回線対応に設けられ
た回線制御部とを具備し、前記回線制御部と主記
憶部間のデータ転送をバスを介してダイレクトメ
モリアクセス(DMA)により行う通信制御装置
において、前記回線制御部と主記憶部との間に
DMA転送中のバスエラーを検出する第1手段を
設け、且つ、前記手段によりバスエラーを検出す
ると、前記中央制御部にバスエラー発生を通知す
ると共に該当回線制御部をリセツトする第2手段
を設けたことを特徴とする通信制御装置。 2 前記第1手段は、主記憶部から回線への送信
データ読出し時、メモリ読出しエラーを検出する
機能を有し、前記第2手段は、該メモリ読出しエ
ラー検出時にも前記中央制御部にエラー発生を通
知すると共に該当回線制御部をリセツトすること
を特徴とする特許請求の範囲第1項記載の通信制
御装置。
[Scope of Claims] 1. A central control unit, a main memory unit, and a line control unit provided corresponding to a line, and data transfer between the line control unit and the main memory unit is performed by direct memory access ( In a communication control device using DMA), there is a
A first means for detecting a bus error during DMA transfer is provided, and a second means is provided for notifying the central control section of the occurrence of a bus error and resetting the corresponding line control section when a bus error is detected by the means. A communication control device characterized by: 2. The first means has a function of detecting a memory read error when reading transmission data from the main storage unit to the line, and the second means has a function of detecting an error in the central control unit when the memory read error is detected. 2. The communication control device according to claim 1, wherein the communication control device notifies the user and resets the corresponding line control section.
JP58071175A 1983-04-22 1983-04-22 Communication controller Granted JPS59195736A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58071175A JPS59195736A (en) 1983-04-22 1983-04-22 Communication controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58071175A JPS59195736A (en) 1983-04-22 1983-04-22 Communication controller

Publications (2)

Publication Number Publication Date
JPS59195736A JPS59195736A (en) 1984-11-06
JPH0458061B2 true JPH0458061B2 (en) 1992-09-16

Family

ID=13453059

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58071175A Granted JPS59195736A (en) 1983-04-22 1983-04-22 Communication controller

Country Status (1)

Country Link
JP (1) JPS59195736A (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2965074B2 (en) * 1987-08-25 1999-10-18 株式会社日立製作所 Microcomputer
JP2504512B2 (en) * 1988-03-09 1996-06-05 富士通株式会社 DMA controller
JP2599971B2 (en) * 1988-08-02 1997-04-16 富士通株式会社 Bus error detection processing method of communication processor

Also Published As

Publication number Publication date
JPS59195736A (en) 1984-11-06

Similar Documents

Publication Publication Date Title
US5644700A (en) Method for operating redundant master I/O controllers
JPH0458061B2 (en)
JPH05307488A (en) Abnormality detecting device for data transfer
JPS6135739B2 (en)
US4327409A (en) Control system for input/output apparatus
JP2888654B2 (en) Data input control method
JPS5949619B2 (en) Fault diagnosis method for redundant central processing system
CN117573586A (en) Single-wire communication method, device and system
JPS5911927B2 (en) Address failure handling method
JPS6314542B2 (en)
JPH0324601A (en) Control method
JPH01125627A (en) Module abnormality checking system
JP2856573B2 (en) Data transfer device
JPH03238551A (en) Data transfer system between cpu
JPH04278742A (en) Method of detecting error in reception data
JPS62281044A (en) Data transfer processor
SU1487058A1 (en) Computer interface unit
JP2768449B2 (en) Optical parallel data transfer method
JPS634210B2 (en)
JPH0750454B2 (en) Channel device
JPS581235A (en) Transfer system for communication bus data
JPH0475546B2 (en)
JPS628826B2 (en)
JPS585046A (en) Image transmitting method by optical communication
JPS59212948A (en) Abnormality detector for microcomputer