JPS6380354A - Data chain system - Google Patents

Data chain system

Info

Publication number
JPS6380354A
JPS6380354A JP22566986A JP22566986A JPS6380354A JP S6380354 A JPS6380354 A JP S6380354A JP 22566986 A JP22566986 A JP 22566986A JP 22566986 A JP22566986 A JP 22566986A JP S6380354 A JPS6380354 A JP S6380354A
Authority
JP
Japan
Prior art keywords
data transfer
register
counter
data
memory address
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
JP22566986A
Other languages
Japanese (ja)
Inventor
Naotatsu Hatsutori
服部 尚立
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP22566986A priority Critical patent/JPS6380354A/en
Publication of JPS6380354A publication Critical patent/JPS6380354A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To reduce the time required for transfer processing by storing a memory address and the number of data transfers into a counter from a register and re-executing data transfer to apply data transfer between plural areas of the memory and data retransfer at the time of generating malfunction by one input/output operation it an error takes place during data transfer. CONSTITUTION:When a data transfer request signal 101 is detected, a data transfer control circuit 10 outputs a LOAD signal 103 to store a memory address from a FIFO register 1 in a counter 3 and to store a data transfer number from a FIFO register 5 in a counter 7. A memory address is given to a memory 9 from a counter 3 to start data transfer. In case of the output of a TC signal 105, the data transfer continues till no EXT signal 102 is detected. On the other hand, if an error takes place during data transfer, the memory address and the transfer number at that time are stored in the registers 4, 8, stored in the counters 3, 7 via selectors 2, 6 to re-execute data transfer.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、メモリの複数領域間でデータ転送を行なう場
合のデータチェーン方式に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a data chain system for transferring data between multiple areas of memory.

(従来の技術) 従来、メモリの複数領域間でデータ転送を行なう場合、
領域が異なるごとにデータ転送を−旦終了させ、所定の
割込み信号によシ転送終了が報告されると、あらためて
メそリアドレスおよびデータ転送回数を指定して次の領
域に対してデータ転送を行なう方法が一般的であった。
(Conventional technology) Conventionally, when transferring data between multiple areas of memory,
The data transfer is completed once for each different area, and when the completion of the transfer is reported by a predetermined interrupt signal, the data transfer is started for the next area by specifying the mesori address and the number of data transfers again. This method was common.

また、データ転送中に誤動作が発生した場合も、前述し
たと同様に一旦データ転送を打ち切って所定の割込み処
理を行ない、あらためて誤動作発生時のメモリアドレス
からデータ転送を再実行していた。
Further, even if a malfunction occurs during data transfer, the data transfer is once terminated, predetermined interrupt processing is performed, and data transfer is re-executed from the memory address at which the malfunction occurred, as described above.

(発明が解決しようとする問題点) 前述した従来のデータチェーン方式では、メモリ領域が
異なるとと、あるいはデータ転送中に誤動作が発生する
ごとに、転送終了の割込み処理を行ない、あらためてメ
モリアドレスおよび転送回数を指定してデータ転送命令
を発行する必要があつ九ので、そのための処理時間を要
し、データ転送に迅速性が欠けるという問題点を有して
いた。
(Problem to be Solved by the Invention) In the conventional data chain method described above, whenever a memory area is different or a malfunction occurs during data transfer, an interrupt process is performed to end the transfer, and the memory address and Since it is necessary to issue a data transfer command specifying the number of transfers, processing time is required for this purpose, resulting in a problem that data transfer lacks speed.

本発明はこのような問題点を解決するためKなされたも
ので、−回の入出力動作でメそすの複数領域間でデータ
転送が行ない得、かつ、データ転送中に誤動作が発生し
た場合にも自動的にデータ転送を再実行でき、データ転
送の処理時間が大幅に短縮できるデータチェーン方式の
提供を目的とする。
The present invention has been developed to solve these problems, and is capable of transferring data between multiple areas of the system with -1 input/output operations. The purpose of the present invention is to provide a data chain method that can automatically re-execute data transfer even when data is transferred, and can significantly shorten data transfer processing time.

(問題点を解決するための手段) 前記目的を達成するため、本発明は、メモリアドレスの
初期値を保持する第一FIFOレジスタと、メモリアド
レスをカウントする第一カウンタと、データ転送中に誤
動作が発生した場合、その誤動作発生時のメモリアドレ
スを保持する第一レジスタと、前記第一カウンタに格納
するメモリアドレスとして前記第一FIFOレジスタの
出力または前記第一レジスタの出力のうちいずれか一方
を選択する第一選択器と、データ転送回数の初期値を保
持する第二FIFOレジスタと、データ転送回数をカウ
ントする第二カウンタと、データ転送中に誤動作が発生
した場合、その誤動作発生時のデータ転送回数を保持す
る第二レジスタと、前記第二カウンタに格納するデータ
転送回数として前記第二FIFOレジスタの出力または
前記第二レジスタの出力のうちいずれか一方を選択する
第二選択器とを備え、前記第二カウンタのカウント値が
格納した転送回数に達し死場合は、前記第一FIFOレ
ジスタから前記第一カウンタに次のメモリアドレスの初
期値を格納すると同時に、前記第二FIFOレジスタか
ら前記第二カウンタに次のデータ転送回数の初期値を格
納することによりデータ転送を続行し、一方、データ転
送中に誤動作が発生した場合は、前記第一レジスタから
前記第一選択器を介して前記第一カウンタに誤動作発生
時のメモリアドレスを格納すると同時に、前記第二レジ
スタから前記第二選択器を介して前記第二カウンタに誤
動作発生時のデータ転送回数を格納してデータ転送を再
実行する構成としである。
(Means for Solving the Problems) In order to achieve the above object, the present invention provides a first FIFO register that holds an initial value of a memory address, a first counter that counts memory addresses, and a first FIFO register that holds an initial value of a memory address. If a malfunction occurs, a first register holds the memory address at the time of the malfunction, and either the output of the first FIFO register or the output of the first register is used as the memory address to be stored in the first counter. A first selector for selection, a second FIFO register that holds the initial value of the number of data transfers, a second counter that counts the number of data transfers, and, if a malfunction occurs during data transfer, the data at the time of the malfunction. A second register that holds the number of data transfers; and a second selector that selects either the output of the second FIFO register or the output of the second register as the number of data transfers to be stored in the second counter. If the count value of the second counter reaches the stored number of transfers and the count value reaches the stored number of transfers, the initial value of the next memory address is stored from the first FIFO register to the first counter, and at the same time, the initial value of the next memory address is stored from the second FIFO register to the second The data transfer is continued by storing the initial value of the next data transfer count in the second counter. On the other hand, if a malfunction occurs during the data transfer, the data transfer is performed from the first register via the first selector. A configuration in which the memory address at the time of the malfunction is stored in one counter, and at the same time, the number of data transfers at the time of the malfunction is stored in the second counter from the second register via the second selector, and the data transfer is re-executed. It's Toshide.

(実施例) 以下、本発明の一実施例について図面を参照して説明す
る。
(Example) Hereinafter, an example of the present invention will be described with reference to the drawings.

第1図は本実施例に係るデータチェーン方式を用いたデ
ータ転送装置を示すブロック図である。
FIG. 1 is a block diagram showing a data transfer device using a data chain method according to this embodiment.

図面において、1はメモリアドレスの初期値を保持する
第一F I F O(First in First 
out)レジスタ、3はメモリアドレスをカウントする
第一カウンタ、4はデータ転送中に誤シを検出するとそ
の誤シが発生したメモリアドレスを保持する第一レジス
タ、2は第一選択器で、前記メモリアドレスをカウント
する第一カウンタ3に格納するメモリアドレスとして、
第一FIFOレジスタ1の出力または第一レジスタ4の
出力のうちいずれか一方を選択して切シ換え出力するも
のである。
In the drawing, 1 indicates a first FIFO (First in First) that holds the initial value of the memory address.
out) register, 3 is a first counter that counts memory addresses, 4 is a first register that holds the memory address where the error occurs when an error is detected during data transfer, 2 is a first selector; As a memory address to be stored in the first counter 3 that counts memory addresses,
Either the output of the first FIFO register 1 or the output of the first register 4 is selected and output.

また、5はデータ転送回数の初期値を保持する第二FI
FOレジスタ、Tはデータ転送回数をカウントする第二
カウンタ、8はデータ転送中に誤シを検出するとそのm
bが発生した時のデータ転送回数を保持する第二レジス
タ、6は第二選択器で、前記データ転送回数をカウント
する第二カウンタ7に格納するデータ転送回数として、
第二FIFOレジスタ5の出力または第二レジスタ8の
出力のうちいずれか一方を選択して出力するものである
。さらに、9はメモリ、10はデータ転送制御回路であ
る。
In addition, 5 is a second FI that holds the initial value of the number of data transfers.
FO register, T is the second counter that counts the number of data transfers, 8 is the m
The second register 6 is a second selector that holds the number of data transfers when b occurs, and the number of data transfers stored in the second counter 7 that counts the number of data transfers is as follows:
Either the output of the second FIFO register 5 or the output of the second register 8 is selected and output. Furthermore, 9 is a memory, and 10 is a data transfer control circuit.

第二FIFOレジスタ5からは、データ転送回数の初期
値を保持している間、データ転送制御回路10へとEX
T信号102が出力される。データ転送制御回路10か
らは、LOAD信号103、CNT信号104、SEL
信号108が所定のブロックへ出力される。LOAD信
号103は、第一カウンタ3に第一FIFOレジスタ1
からのメモリアドレスの初期値または第一レジスタ4か
らの誤り発生時のメモリアドレスを格納するとともに、
第二カウンタTに第二FIFOレジスタ5からのデータ
転送回数の初期値または第二レジスタ8からの誤シ発生
時のデータ転送回数を格納するための制御信号である。
From the second FIFO register 5, while holding the initial value of the number of data transfers, the EX
A T signal 102 is output. From the data transfer control circuit 10, a LOAD signal 103, a CNT signal 104, a SEL
A signal 108 is output to a predetermined block. The LOAD signal 103 is transmitted to the first counter 3 from the first FIFO register 1.
In addition to storing the initial value of the memory address from the first register 4 or the memory address at the time of error occurrence from the first register 4,
This is a control signal for storing in the second counter T the initial value of the number of data transfers from the second FIFO register 5 or the number of data transfers from the second register 8 when an error occurs.

CNT信号104は、第一カウンタ3および第二カウン
タ7がメモリアドレスおよびデータ転送回数をカウント
するための制御信号である。
The CNT signal 104 is a control signal for the first counter 3 and the second counter 7 to count the memory address and the number of data transfers.

そして、データ転送回数をカウントする第二カウンタ7
のカウント数が格納されたデータ転送回数に達した時、
第二カウンタTからデータ転送制御回路10へとTC信
号105が出力される。
A second counter 7 counts the number of data transfers.
When the count number reaches the stored number of data transfers,
A TC signal 105 is output from the second counter T to the data transfer control circuit 10.

一方、第一選択器2および第二選択器6は、通常は第一
FIFOレジスタ1および第二FIFOレジスタ5に保
持されているメモリアドレスの初期値を選択するが、デ
ータ転送制御回路10がデータ転送中の誤シをメモリ9
からの信号106から検出すると、SEL信号108を
入力して第一レジスタ4の出力および第二レジスタ8の
出力を選択して出力するように制御されている。なお、
第一レジスタ4および第二レジスタ8は、メモリ9から
の信号106からデータ転送中の誤りを検出した時、メ
モリアドレスおよびデータ転送回数を保持する。
On the other hand, the first selector 2 and the second selector 6 normally select the initial values of the memory addresses held in the first FIFO register 1 and the second FIFO register 5, but the data transfer control circuit 10 Save errors during transfer to memory 9.
When detected from the signal 106 from the register 106, the SEL signal 108 is input, and the output of the first register 4 and the output of the second register 8 are controlled to be selected and output. In addition,
The first register 4 and the second register 8 hold the memory address and the number of data transfers when an error during data transfer is detected from the signal 106 from the memory 9.

いま、メモリアドレスAからデータ転送回数り回、メモ
リアドレスBからデータ転送回数F回、メモリアドレス
Cからデータ転送回数F回のデータ転送を行なう場合、
はじめに第一FIFOレジスタ1にメモリアドレスの初
期値A、B、Cが、また、第二FIFOレジスタ5にデ
ータ転送回数の初期値り、E、Fがそれぞれプログラム
にもとづき格納される。データ転送制御回路10は、デ
ータ転送要求信号101を検出すると、LOAD信号1
03を出力し、第一FIFOレジスタ1からメモリアド
レスAを第一カウンタ3に格納し、同時に第二FIFO
レジスタ5からデータ転送回数りを第二カウンタTに格
納するよう制御する。
Now, if data is transferred from memory address A a number of times, from memory address B a number of times F, and from memory address C a number of times F,
First, initial values A, B, and C of memory addresses are stored in the first FIFO register 1, and initial values E and F of the number of data transfers are stored in the second FIFO register 5, respectively, based on a program. When the data transfer control circuit 10 detects the data transfer request signal 101, it outputs a LOAD signal 1.
03, stores the memory address A from the first FIFO register 1 into the first counter 3, and at the same time stores the memory address A from the first FIFO register 1 into the first counter 3.
Control is performed so that the number of data transfers is stored in the second counter T from the register 5.

すると、メモリ9に対して第一カウンタ3からメモリア
ドレスAが与えられてデータ転送が開始する。そして、
第二カウンタ7のカウント数が、格納されたデータ転送
回数りに達するまで(すなわち、TC信号105が出力
されるまで)、−回のデータ転送毎にCNT信号104
が出力され、メモリアドレスおよびデータ転送回数のカ
ウントが続けられる。
Then, the memory address A is given from the first counter 3 to the memory 9, and data transfer starts. and,
Until the count number of the second counter 7 reaches the stored number of data transfers (that is, until the TC signal 105 is output), the CNT signal 104 is sent every - times of data transfer.
is output, and the memory address and the number of data transfers continue to be counted.

その後、TC信号105が出力されると、データ転送制
御回路10がEXT信号102を検出して、第一FIF
Oレジスタ1から次のメモリアドレスBが第一カウンタ
3に格納され、同時に第二FIFOレジスタ5から次の
データ転送回数Eが第二カウンタ7に格納され、引き続
きデータ転送が実行される。
After that, when the TC signal 105 is output, the data transfer control circuit 10 detects the EXT signal 102, and the first FIF
The next memory address B from the O register 1 is stored in the first counter 3, and at the same time, the next data transfer count E from the second FIFO register 5 is stored in the second counter 7, and data transfer is continued.

同様にして、TC信号105が出力された時にEXT信
号102を検出しなくなるまで、すなわち、メモリアド
レスCからF回のデータ転送を終了するまで、連続して
データ転送が実行され、全てのデータ転送が終了したと
き、データ転送制御回路10からINT信号107を出
力され、データ転送の終了が報告される。
Similarly, data transfer is performed continuously until the EXT signal 102 is no longer detected when the TC signal 105 is output, that is, until F data transfers from memory address C are completed. When the data transfer is completed, the data transfer control circuit 10 outputs the INT signal 107 to report the completion of the data transfer.

また、データ転送中に誤りが発生すると、その時のメモ
リアドレスおよびデータ転送回数を第一レジスタ4およ
び第二レジスタ8で保持し、選択器2および選択器6を
経由して第一カウンタ3および第二カウンタ7に誤シが
発生した時のメモリアドレスおよびデータ転送回数が格
納され、データ転送を再実行する。再実行の結果、正常
にデータ転送ができた場合は引き続きデータ転送を実行
するが、再実行の結果、再び同一メモリアドレスで誤シ
が検出されると、その時点でデータ転送を終了し、工N
T信号107によシデータ転送の終了が報告される。
In addition, if an error occurs during data transfer, the memory address and the number of data transfers at that time are held in the first register 4 and second register 8, and the memory address and the number of data transfers are held in the first register 4 and the second register 8, The memory address and the number of data transfers at the time when the error occurred are stored in the second counter 7, and the data transfer is re-executed. If the data transfer is successful as a result of the re-execution, the data transfer will continue, but if an error is detected at the same memory address again as a result of the re-execution, the data transfer will be terminated at that point and the process will be restarted. N
The T signal 107 reports the end of the data transfer.

このように、本実施例では、従来技術のごとく、メモリ
領域が異なる場合およびデータ転送中に誤シが発生した
場合にも、転送終了の割込み処理とメモリアドレスおよ
びデータ転送回数の指定、データ転送命令等の処理を行
なうことなく、−回の入出力動作で自動的にデータ転送
を引き続き実行することができる。
As described above, in this embodiment, as in the conventional technology, even if the memory areas are different or an error occurs during data transfer, the interrupt processing for the end of transfer, the specification of the memory address and the number of data transfers, and the data transfer It is possible to automatically continue data transfer with − times of input/output operations without processing commands or the like.

(発明の効果) 以上説明しなように、本発明は、−回の入出力動作でメ
モリの複数領域間でデータ転送を行ない、かつ、データ
転送中に誤シが発生した場合にも自動的に誤シが発生し
たメモリアドレスからデータ転送を再実行するため、デ
ータ転送の処理時間が大幅に短縮できる効果がある。
(Effects of the Invention) As explained above, the present invention allows data to be transferred between multiple areas of memory in - times of input/output operations, and to automatically transfer data even if an error occurs during data transfer. Since the data transfer is re-executed from the memory address where the error occurred, the processing time for data transfer can be significantly reduced.

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

第1図は本発明の一実施例に係るデータチェーン方式を
用いたデータ転送装置を示すブロック図である。 1・・・第一FIFOレジスタ 2・・・第一選択器 3・・・第一カウンタ 4・・・第一レジスタ 5・・・第二FIFOレジスタ 6・・・第二選択器 T・・・第二カウンタ 8・・・第二レジスタ 9・・・メモリ 10・・・データ転送制御回路
FIG. 1 is a block diagram showing a data transfer device using a data chain method according to an embodiment of the present invention. 1... First FIFO register 2... First selector 3... First counter 4... First register 5... Second FIFO register 6... Second selector T... Second counter 8...Second register 9...Memory 10...Data transfer control circuit

Claims (1)

【特許請求の範囲】[Claims] メモリアドレスの初期値を保持する第一FIFOレジス
タと、メモリアドレスをカウントする第一カウンタと、
データ転送中に誤動作が発生した場合、その誤動作発生
時のメモリアドレスを保持する第一レジスタと、前記第
一カウンタに格納するメモリアドレスとして前記第一F
IFOレジスタの出力または前記第一レジスタの出力の
うちいずれか一方を選択する第一選択器と、データ転送
回数の初期値を保持する第二FIFOレジスタと、デー
タ転送回数をカウントする第二カウンタと、データ転送
中に誤動作が発生した場合、その誤動作発生時のデータ
転送回数を保持する第二レジスタと、前記第二カウンタ
に格納するデータ転送回数として前記第二FIFOレジ
スタの出力または前記第二レジスタの出力のうちいずれ
か一方を選択する第二選択器とを備え、前記第二カウン
タのカウント値が格納した転送回数に達した場合は、前
記第一FIFOレジスタから前記第一カウンタに次のメ
モリアドレスの初期値を格納すると同時に、前記第二F
IFOレジスタから前記第二カウンタに次のデータ転送
回数の初期値を格納することによりデータ転送を続行し
、一方、データ転送中に誤動作が発生した場合は、前記
第一レジスタから前記第一選択器を介して前記第一カウ
ンタに誤動作発生時のメモリアドレスを格納すると同時
に、前記第二レジスタから前記第二選択器を介して前記
第二カウンタに誤動作発生時のデータ転送回数を格納し
てデータ転送を再実行することを特徴とするデータチェ
ーン方式。
a first FIFO register that holds initial values of memory addresses; a first counter that counts memory addresses;
When a malfunction occurs during data transfer, the first register holds the memory address at the time of the malfunction, and the first register stores the memory address stored in the first counter.
a first selector that selects either the output of the IFO register or the output of the first register; a second FIFO register that holds an initial value of the number of data transfers; and a second counter that counts the number of data transfers. , when a malfunction occurs during data transfer, a second register that holds the number of data transfers at the time of the malfunction, and an output of the second FIFO register or the second register as the number of data transfers to be stored in the second counter; a second selector for selecting one of the outputs of the second counter, and when the count value of the second counter reaches the stored number of transfers, the next memory is transferred from the first FIFO register to the first counter. At the same time as storing the initial value of the address, the second F
The data transfer is continued by storing the initial value of the next data transfer count from the IFO register to the second counter. On the other hand, if a malfunction occurs during data transfer, the data transfer is performed from the first register to the first selector. At the same time, the memory address at the time of the malfunction occurrence is stored in the first counter via the second register, and the number of data transfers at the time of the malfunction occurrence is stored in the second counter from the second register via the second selector, and the data is transferred. A data chain method that is characterized by re-executing.
JP22566986A 1986-09-24 1986-09-24 Data chain system Pending JPS6380354A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22566986A JPS6380354A (en) 1986-09-24 1986-09-24 Data chain system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22566986A JPS6380354A (en) 1986-09-24 1986-09-24 Data chain system

Publications (1)

Publication Number Publication Date
JPS6380354A true JPS6380354A (en) 1988-04-11

Family

ID=16832927

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22566986A Pending JPS6380354A (en) 1986-09-24 1986-09-24 Data chain system

Country Status (1)

Country Link
JP (1) JPS6380354A (en)

Similar Documents

Publication Publication Date Title
CA2339783A1 (en) Fault tolerant computer system
US4145755A (en) Information transferring apparatus
US5928348A (en) Method of processing interrupt requests and information processing apparatus using the method
JPS6380354A (en) Data chain system
JPH01303529A (en) Invalidation system for retrial point
JP2961542B2 (en) Data processing system
JPS6240736B2 (en)
JPS60193044A (en) Data buffer device
JPH05241986A (en) Input/output instruction retrying system
JPH01159740A (en) Duplex computer system
JPS61288232A (en) Output instruction control system
JP2002297209A (en) Sequence program storing method in sequence controller
JPS60196847A (en) Microprogram control system
JPS5851293B2 (en) Data exchange control method
JPS63153635A (en) Specification system for data transfer speed
JPS63191252A (en) Pipeline synchronizing system
JPH0460258B2 (en)
JPH01147758A (en) Channel device
JPS62168246A (en) Memory writing control system
JPS61131154A (en) Data transfer control system
JPH01234957A (en) Method and device for controlling dma
JPH04326144A (en) Memory bus error detection system
JPH0460848A (en) Data processor
JPH0417530B2 (en)
JPH08212085A (en) Information processor and communication processor