JPS61128331A - Data transfer control system - Google Patents
Data transfer control systemInfo
- Publication number
- JPS61128331A JPS61128331A JP25091884A JP25091884A JPS61128331A JP S61128331 A JPS61128331 A JP S61128331A JP 25091884 A JP25091884 A JP 25091884A JP 25091884 A JP25091884 A JP 25091884A JP S61128331 A JPS61128331 A JP S61128331A
- Authority
- JP
- Japan
- Prior art keywords
- data
- buffer
- length
- address
- register
- 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
Links
Landscapes
- Information Transfer Systems (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は情報処理システムの装置間等のデータ転送を制
御するための方縁に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method for controlling data transfer between devices of an information processing system.
2装置間等のデータ転送において、両者のデータ転送速
度が完全に一致しない場合等に、両者間にいわゆるバッ
ファを設け、バッフ・アを介してデータを授受する方式
がしばしば使用される。In data transfer between two devices, etc., when the data transfer speeds of the two devices do not completely match, a method is often used in which a so-called buffer is provided between the two devices and data is sent and received via the buffer.
特にデータ転送速度が比較的高速の場合に、このような
方式のデータ転送回路は、通常いわゆるハードウェア回
路のみで構成されるので、比較的高イーな回路°になる
。Particularly when the data transfer speed is relatively high, a data transfer circuit of this type is usually constructed only of so-called hardware circuits, resulting in a relatively high efficiency circuit.
〔従来の技術と発明が解決しようとする問題点〕第2図
はバッファを介してデータを転送する、データ転送回路
の一構成″例を示すブロック図である。[Prior Art and Problems to be Solved by the Invention] FIG. 2 is a block diagram showing an example of the configuration of a data transfer circuit that transfers data via a buffer.
データは、例えば一方の装置からデータ線1を経てバッ
ファ2に入力し、バッファ2のデータはデータ線3に読
み出されて他方の装置へ転送される。Data is input from one device to a buffer 2 via a data line 1, for example, and the data in the buffer 2 is read out to a data line 3 and transferred to the other device.
アドレスレジスタ4は、例えばバッファ2のバイトアド
レスをアドレス値として保持し、アドレス値は+1回路
5によって歩進され、例えばバッファ長に等しい最大計
数値の次は0に復帰するように構成されている。The address register 4 is configured to hold, for example, the byte address of the buffer 2 as an address value, and the address value is incremented by a +1 circuit 5, and returns to 0 after a maximum count value equal to, for example, the buffer length. .
このアドレス値はアドレス線6でバッファ2に送られ、
バッファ2のデータ書き込みアドレスを制御する。This address value is sent to buffer 2 on address line 6,
Controls the data write address of buffer 2.
アドレスレジスタ4は、制御線7にデータ線1のデータ
に同期してデータ送信元装置から送られる信号によって
+1回路5を有効化されることにより1回づつ更新され
る。The address register 4 is updated once by enabling the +1 circuit 5 by a signal sent from the data source device to the control line 7 in synchronization with the data on the data line 1.
この信号は差検出カウンタ8にも供給され、該カウンタ
を+1する。This signal is also supplied to the difference detection counter 8 and increments the counter by one.
アドレスレジスタ9は、データ転送先装置へ転送するデ
ータのバッファ2の記憶アドレスを指示するものとし、
データ転送先装置からの制御線10の要求信号によって
、例えば1バイトをバッファ2から読み出して転送し、
アドレスレジスタ9は次の記憶アドレスを指すように更
新される。The address register 9 indicates the storage address of the buffer 2 for data to be transferred to the data transfer destination device,
For example, one byte is read from the buffer 2 and transferred according to a request signal on the control line 10 from the data transfer destination device.
Address register 9 is updated to point to the next storage address.
但し、上記のデータ転送及びアドレスレジスタ9の更新
動作は、差検出カウンタ8の内容が0でないことを条件
として実行されるように、0検出回路11によって制御
され、且つアドレスレジスタ9が更新されると、同時に
差検出カウンタ8は1減少される。However, the above data transfer and address register 9 updating operations are controlled by the 0 detection circuit 11 and the address register 9 is updated so that they are executed on the condition that the content of the difference detection counter 8 is not 0. At the same time, the difference detection counter 8 is decremented by 1.
以上の動作と並行して、バイトカウンタ12により、デ
ータ転送の終了が監視される。In parallel with the above operations, the byte counter 12 monitors the completion of data transfer.
そのために、バイトカウンタ12にはデータ転送に先立
って転送データのデータ長(例えばバイドパ数)が設定
され、1データ受信ごとに−1され、0検出回路13に
よって、バイトカウンタ12が0になったことを検出す
ると、制御線7の信号は阻止される。 。For this purpose, the data length of the transfer data (for example, the number of bytes) is set in the byte counter 12 prior to data transfer, and is decremented by 1 every time one data is received, and the byte counter 12 becomes 0 by the 0 detection circuit 13. When this is detected, the signal on control line 7 is blocked. .
又、差検出カウンタ8も0になるごとにより、 。Also, each time the difference detection counter 8 also becomes 0.
データ転送の終了が検出される。End of data transfer is detected.
以上の構成によれば、データ転送の終了検出のために、
データ受信ごとにバイトカウンタ12の更新と0検出を
必要とするので、特に比較的高速のデータ転送を考慮し
た場合には、該終了検出機能を専用のハードウェア回路
として設ける必要があり、マイクロプロセッサ制御によ
り経済化することができないという問題がある。According to the above configuration, in order to detect the end of data transfer,
Since it is necessary to update the byte counter 12 and detect 0 each time data is received, especially when considering relatively high-speed data transfer, it is necessary to provide the end detection function as a dedicated hardware circuit, and the microprocessor There is a problem in that it cannot be made economical through control.
(問題点を解決するための手段)
前記の問題点は、データを固定長のバッファに受信し、
該バッファを介して転送する装置において、該受信デー
タのデータ長を該バッファ長の倍数値と、該バッファ長
に満たない端数データ長値に分けて保持するレジスタ手
段、及び該受信データを書き込むべき該バッファ内のア
ドレスを保持し、該書き込みごとに該アドレスを更新す
るアドレスレジスタを有し、該アドレス値及び上記倍数
値及び端数データ長値によって、上記データの受信終了
を検出するように構成された本発明のデータ転送制御方
式によって解決される。(Means for solving the problem) The problem described above is that the data is received in a fixed length buffer,
In the device for transferring via the buffer, a register means for holding the data length of the received data divided into a multiple value of the buffer length and a fractional data length value less than the buffer length, and a register means to write the received data. It has an address register that holds an address in the buffer and updates the address for each write, and is configured to detect the end of reception of the data based on the address value, the multiple value, and the fractional data length value. This problem is solved by the data transfer control method of the present invention.
即ち、転送データ長をバッファ長の倍数と、バッファ長
に満たない端数データ長(例えばバイト数)として保持
するので、受信データ長の監視処理の大部分は、バッフ
ァ製分のデータの受信ごとに1回の上記倍数の更新とな
り、転送データの最後の端数分についてのみ、例えば1
バイトごとの比較を必要とする。In other words, since the transfer data length is held as a multiple of the buffer length and as a fractional data length (for example, number of bytes) that is less than the buffer length, most of the process of monitoring the received data length is performed every time data for the buffer is received. The above multiple is updated once, and only the last fraction of the transferred data is updated, for example, by 1.
Requires a byte-by-byte comparison.
従って、この部分の負荷は従来より減少して、少なくと
も上記倍数値の更新は、マイクロプロセッサによって制
御可能になる。Therefore, the load on this part is reduced compared to the conventional system, and at least the updating of the multiple value can be controlled by the microprocessor.
又、バイトごとの監視のために、上記端数を保持するた
めのレジスタは高々バッファ長までのバイト数値を保持
できればよいので、転送データの全長のバイト数値を保
持する従来のバイトカウンタより一般に短いレジスタで
よい。In addition, in order to monitor each byte, the register for holding the above-mentioned fraction need only be able to hold the byte value up to the buffer length, so it is generally a shorter register than a conventional byte counter that holds the byte value of the total length of the transferred data. That's fine.
第1図は本発明の一実施例構成を示すブロック図である
0図において、第2図と同じ部分には同一の符号を付し
て示す。FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. In FIG. 0, the same parts as in FIG. 2 are denoted by the same reference numerals.
アドレスレジスタ4、差検出カウンタ8及びアドレスレ
ジスタ9等によるデータ転送制御は従来と同様に行われ
る。Data transfer control by the address register 4, difference detection counter 8, address register 9, etc. is performed in the same manner as before.
データ転送終了検出のために、例えばバイト数で示され
る転送データ長を、バッファ2のバイト数で整数除算し
た商をバッファ倍数、剰余を端数データ長とする。In order to detect the end of data transfer, the transfer data length, which is indicated by the number of bytes, is divided by an integer by the number of bytes in the buffer 2, and the quotient is the buffer multiple, and the remainder is the fractional data length.
端数データ長はレジスタ20に予め設定し、又バッファ
倍数はマイクロプロセッサ21のメモリに予めロードし
ておく。The fractional data length is preset in the register 20, and the buffer multiple is preloaded into the memory of the microprocessor 21.
レジスタ20の内容はアドレスレジスタ4の内容と常時
比較されているが、ラッチ23がオンになるまで、比較
回路22の出力は有効化されない。Although the contents of register 20 are constantly compared with the contents of address register 4, the output of comparison circuit 22 is not enabled until latch 23 is turned on.
アドレスレジスタ4が最大値まで歩進されて、0に復帰
するときの桁上げ信号24がマイクロプロセッサ21に
割り込み信号として接続されており、従ってバッファ2
のデータ長に等しいデータを受信するごとにマイクロプ
ロセッサ21に割り込みがかかる。A carry signal 24 when the address register 4 is incremented to the maximum value and returned to 0 is connected to the microprocessor 21 as an interrupt signal, and therefore the buffer 2
An interrupt is generated to the microprocessor 21 every time data equal to the data length is received.
マイクロプロセッサ21はこの割り込みによって、メモ
リに保持するバッファ倍数値を−1し、更新値がOか検
査し、もし0でなければ更新値をメモリに格納して1回
の処理を終わる。In response to this interrupt, the microprocessor 21 decrements the buffer multiple value held in the memory by 1, checks whether the updated value is O, and if it is not 0, stores the updated value in the memory and completes one process.
もしバッファ倍数値を−lして、Oになった場合には、
ラッチ23をオンに設定し、比較回路22の一致出力を
有効にする。If the buffer multiple value is -l and becomes O, then
The latch 23 is set on, and the match output of the comparison circuit 22 is enabled.
その後の転送≠−タ受信でアドレスレジスタ4が歩進さ
れ、レジスタ20の端数データ長と一致すると、比較回
路22の一致出力により、制御線7の信号は阻止される
。又、差検出カウンタ8がOになることにより、転送終
了が検出される。When the address register 4 is incremented by subsequent transfer≠-data reception and matches the fractional data length of the register 20, the signal on the control line 7 is blocked by the match output of the comparison circuit 22. Further, when the difference detection counter 8 becomes O, the end of the transfer is detected.
以上においては、1個のバッファを使用する方式を例と
して説明したが、2個のバッファによるいわゆる交代バ
ッファ方式についても、前記説明から当業者が容易に本
発明を適用することができることは明らかである。In the above, a method using one buffer has been described as an example, but it is clear from the above description that a person skilled in the art can easily apply the present invention to a so-called alternating buffer method using two buffers. be.
以上の説明から明らかなように本発明によれば、データ
転送回路の経済性を改善するという著しい工業的効果が
ある。As is clear from the above description, the present invention has a significant industrial effect of improving the economic efficiency of data transfer circuits.
第1図は本発明一実施例の構成ブロック図、第2図は従
来の一構成例ブロック図である。
図において、
2はバッファ 4はアドレスレジスタ、8は
差検出カウンタ、 9はアドレスレジスタ、11.13
は0検出回路、 12はバイトカウンタ、20はレジス
タ、 21はマイクロプロセッサ、阜 1 口
茅 2 口FIG. 1 is a block diagram of an embodiment of the present invention, and FIG. 2 is a block diagram of an example of a conventional configuration. In the figure, 2 is a buffer, 4 is an address register, 8 is a difference detection counter, 9 is an address register, 11.13
is a 0 detection circuit, 12 is a byte counter, 20 is a register, 21 is a microprocessor,
Claims (1)
て転送する装置において、該受信データのデータ長を該
バッファ長の倍数値と、該バッファ長に満たない端数デ
ータ長値に分けて保持するレジスタ手段、及び該受信デ
ータを書き込むべき該バッファ内のアドレスを保持し、
該書き込みごとに該アドレスを更新するアドレスレジス
タを有し、該アドレス値及び上記倍数値及び端数データ
長値によって、上記データの受信終了を検出するように
構成されてなることを特徴とするデータ転送制御方式。In a device that receives data into a fixed-length buffer and transfers it via the buffer, the data length of the received data is divided into a multiple value of the buffer length and a fractional data length value less than the buffer length and held. register means and holding an address within the buffer to which the received data is to be written;
The data transfer is characterized in that it has an address register that updates the address each time the write is performed, and is configured to detect the end of reception of the data based on the address value, the multiple value, and the fractional data length value. control method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP25091884A JPS61128331A (en) | 1984-11-28 | 1984-11-28 | Data transfer control system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP25091884A JPS61128331A (en) | 1984-11-28 | 1984-11-28 | Data transfer control system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPS61128331A true JPS61128331A (en) | 1986-06-16 |
Family
ID=17214954
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP25091884A Pending JPS61128331A (en) | 1984-11-28 | 1984-11-28 | Data transfer control system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS61128331A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2005182505A (en) * | 2003-12-19 | 2005-07-07 | Kyocera Mita Corp | Data transfer controller and image forming apparatus |
-
1984
- 1984-11-28 JP JP25091884A patent/JPS61128331A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2005182505A (en) * | 2003-12-19 | 2005-07-07 | Kyocera Mita Corp | Data transfer controller and image forming apparatus |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0051870A1 (en) | Information transferring apparatus | |
| US4145755A (en) | Information transferring apparatus | |
| JPH01237864A (en) | Dma transfer controller | |
| US5481756A (en) | DMA controller mailing auto-initialize halting unit | |
| JPS61128331A (en) | Data transfer control system | |
| JPS6220041A (en) | Asynchronous data transfer circuit for data processor | |
| JP2604051B2 (en) | Data transfer method | |
| JPH0766356B2 (en) | Channel device | |
| JPH10133997A (en) | Dma controller | |
| JPS63198143A (en) | Data transfer controller | |
| JPH02181248A (en) | Direct memory access system | |
| JPH04123160A (en) | Receiving data processing system | |
| JPH10105488A (en) | Communication controller | |
| JPH05233522A (en) | Dma transfer device | |
| JPH02287661A (en) | Data access system | |
| JPH06348644A (en) | DMA circuit | |
| JPS6240842A (en) | Pipeline transfer suprevisory equipment | |
| JPH05265925A (en) | Data transfer controller | |
| JPS6076840A (en) | Transmission system of state change information | |
| JPS61245268A (en) | Channel controller | |
| JPS63187943A (en) | Communication control equipment | |
| JPH0322071A (en) | Data transfer processing circuit | |
| JPS60134951A (en) | Data transfer controller | |
| JPS6398757A (en) | Data chaining control system for dma circuit | |
| JPH06348645A (en) | DMA circuit |