JPH0574865B2 - - Google Patents

Info

Publication number
JPH0574865B2
JPH0574865B2 JP11445985A JP11445985A JPH0574865B2 JP H0574865 B2 JPH0574865 B2 JP H0574865B2 JP 11445985 A JP11445985 A JP 11445985A JP 11445985 A JP11445985 A JP 11445985A JP H0574865 B2 JPH0574865 B2 JP H0574865B2
Authority
JP
Japan
Prior art keywords
terminal device
data
computer
circuit
signal
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
JP11445985A
Other languages
Japanese (ja)
Other versions
JPS61271557A (en
Inventor
Kazuo Nakai
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.)
CHIKYU KAGAKU SOGO KENKYUSHO K
CHIKYU KAGAKU SOGO KENKYUSHO KK
Original Assignee
CHIKYU KAGAKU SOGO KENKYUSHO K
CHIKYU KAGAKU SOGO KENKYUSHO KK
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 CHIKYU KAGAKU SOGO KENKYUSHO K, CHIKYU KAGAKU SOGO KENKYUSHO KK filed Critical CHIKYU KAGAKU SOGO KENKYUSHO K
Priority to JP11445985A priority Critical patent/JPS61271557A/en
Publication of JPS61271557A publication Critical patent/JPS61271557A/en
Publication of JPH0574865B2 publication Critical patent/JPH0574865B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明はコンピユータと端末装置とを接続する
インタフエース補助装置に関し、詳しくはダイレ
クトメモリアクセス機能をインタフエース上に持
たないコンピユータとダイレクトメモリアクセス
機能を持つ端末装置とを接続するインタフエース
補助装置に関する。
[Detailed Description of the Invention] [Field of Application of the Invention] The present invention relates to an interface auxiliary device that connects a computer and a terminal device. The present invention relates to an interface auxiliary device for connecting a terminal device with a terminal device.

〔発明の背景〕[Background of the invention]

コンピユータにはダイレクトメモリアクセス
(DMA)機能をインタフエース上に持つものと
持たないものがあり、これに応じて端末装置にも
DMA機能を持つものと持たないものがある。
DMA機能とは、コンピユータのメモリと端末装
置との間でデータ転送を行う場合にコンピユータ
の中央処理装置(CPU)が入出力装置に転送開
始アドレス、転送データ数等の転送に必要なデー
タを設定してデータ転送を開始させ、その後全デ
ータの転送が終了する迄データ転送は入出力装置
を介してメモリと端末装置との間で行われ、転送
終了後CPUに割込をかけ転送後の処理を行わせ
るものをいう。コンピユータ、端末装置がDMA
機能を持つ場合にはデータ転送は高速に行われる
が、コンピユータと端末装置との間でデータ転送
に関する多くの制御信号を必要とし、制御信号に
は入出力データと同時に存在するものがある。コ
ンピユータ、端末装置がDMA機能を持たない場
合には1単位データ転送の度にCPUに割込みが
かかりCPUの制御の下にデータ転送が行われ、
この場合にデータ転送速度はDMA機能を持つ場
合に較べて遅いが、コンピユータと端末装置との
間のデータ転送に関する制御信号は少ない。
Some computers have a direct memory access (DMA) function on the interface, while others do not, and the terminal device also has a direct memory access (DMA) function.
Some have DMA functionality and others do not.
The DMA function is a function in which the computer's central processing unit (CPU) sets the data necessary for the transfer, such as the transfer start address and the number of data to be transferred, to the input/output device when transferring data between the computer's memory and the terminal device. The data transfer is then performed between the memory and the terminal device via the input/output device until all data transfer is completed, and after the transfer is completed, an interrupt is placed on the CPU to perform post-transfer processing. means something that causes someone to do something. Computers and terminal devices are DMA
If the computer has this function, data transfer is performed at high speed, but many control signals related to data transfer are required between the computer and the terminal device, and some control signals exist simultaneously with input and output data. If the computer or terminal device does not have a DMA function, the CPU will be interrupted every time one unit of data is transferred, and the data transfer will be performed under the control of the CPU.
In this case, the data transfer speed is slower than when the device has a DMA function, but there are fewer control signals regarding data transfer between the computer and the terminal device.

DMA機能を持つコンピユータ、端末装置はそ
の高速性の故に現在広く用いられているが、
DMA機能をインタフエース上に持たないコンピ
ユータとDMA機能を持つ端末装置とを接続した
い要望がしばしば生ずる。この場合にコンピユー
タと端末装置との間に両者間の整合をとるインタ
フエースの補助装置が必要とされ、ここでデータ
転送速度の低下を防止しながらDMA機能に係る
制御信号等を作る必要がある。
Computers and terminal devices with DMA functionality are currently widely used due to their high speed.
There often arises a desire to connect a computer that does not have a DMA function on its interface to a terminal device that does have a DMA function. In this case, an auxiliary interface device is required between the computer and the terminal device to ensure consistency between the two, and it is necessary to create control signals related to the DMA function while preventing data transfer speed from decreasing. .

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

本発明の目的は上記の課題を解決し、DMA機
能をインタフエース上に持たないコンピユータと
DMA機能を持つ端末装置とを接続するインタフ
エース補助装置を提供することである。
The purpose of the present invention is to solve the above-mentioned problems and to solve the problems described above, and to
An object of the present invention is to provide an auxiliary interface device for connecting a terminal device with a DMA function.

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

本発明に係るインタフエース補助装置は、コン
ピユータ出力データを入力として受け、その出力
が端末装置入力データ端に接続される入力レジス
タと、端末装置からの状態情報及び転送データを
入力として受け、その出力がコンピユータデータ
入力端に接続される出力レジスタと、入力レジス
タの出力に接続されてコンピユータからの制御デ
ータを蓄積し、かつコンピユータ及び端末装置の
夫々からデータ読み書きに関する入力制御信号を
受け、コンピユータ及び端末装置の夫々に送るデ
ータ読み書きに関する出力制御信号を発生する制
御信号発生回路とを有し、制御信号発生回路によ
りインタフエース補助装置からコンピユータ及び
端末装置の夫々に送る所定の制御信号を発生し、
コンピユータとインタフエース補助装置との間、
及びインタフエース補助装置と端末装置との間の
夫々のデータ送受を制御している。
The interface auxiliary device according to the present invention includes an input register that receives computer output data as input and whose output is connected to a terminal device input data terminal, receives state information and transfer data from the terminal device as input, and outputs the input register. is connected to the output register connected to the computer data input terminal, and the output of the input register to store control data from the computer, and receives input control signals related to reading and writing data from the computer and terminal device, respectively. a control signal generation circuit that generates an output control signal related to reading and writing data to be sent to each of the devices; the control signal generation circuit generates a predetermined control signal that is sent from the interface auxiliary device to each of the computer and the terminal device;
between the computer and the interface auxiliary equipment;
and controls data transmission and reception between the interface auxiliary device and the terminal device.

DMA機能を持つ端末装置にはデータブロツク
の読み出し又は書込み開始又は終了命令のように
DMA機能を持たないコンピユータのインタフエ
ースにはない制御信号があり、これはコンピユー
タからのデータで制御情報をインタフエース補助
装置に送り、インタフエース補助装置でこの制御
データを端末装置とのインタフエース制御信号に
変換して端末装置に送つている。端末装置がデー
タ転送中に要求するデータ転送可能表示のよう
に、端末装置との高速なデータ転送処理を行う上
で転送終了後直ちにリセツトが必要とされるイン
タフエース制御信号については、転送開始時には
コンピユータからの制御データにより送出を開始
し、転送終了後直ちに送出を停止し得るようにイ
ンタフエース補助装置を介し、コンピユータと端
末装置間の各データ転送毎に送受される制御信号
を用いて制御している。
For terminal devices with DMA function, commands such as data block read or write start or end commands are required.
There is a control signal that is not present in the interface of a computer that does not have a DMA function, and this is data from the computer that sends control information to the interface auxiliary device, and the interface auxiliary device uses this control data to control the interface with the terminal device. It converts it into a signal and sends it to the terminal device. For interface control signals that require a reset immediately after the transfer is completed in order to perform high-speed data transfer processing with the terminal device, such as the data transfer possible display requested by the terminal device during data transfer, the interface control signal is Sending is started by control data from the computer, and controlled using control signals sent and received each time data is transferred between the computer and the terminal device via an interface auxiliary device so that sending can be stopped immediately after the transfer is completed. ing.

〔発明の実施例〕 第1図を参照して本発明の一実施例を説明す
る。第1図において、1は本発明に係るインタフ
エース補助装置の一実施例であり、インタフエー
ス補助装置1は、DMA機能をインタフエース上
に持たないコンピユータ2とDMA機能を持つ端
末装置3との間に置かれこれらの装置を接続す
る。
[Embodiment of the Invention] An embodiment of the present invention will be described with reference to FIG. In FIG. 1, reference numeral 1 is an embodiment of an interface auxiliary device according to the present invention, and the interface auxiliary device 1 connects a computer 2 that does not have a DMA function on the interface and a terminal device 3 that has a DMA function. placed between them to connect these devices.

インタフエース補助装置1とコンピユータ2と
の間にはコンピユータ2からの16ビツトの出力デ
ータ、コンピユータ2への16ビツトの入力デー
タ、及び制御信号として、コンピユータからの読
み・書き要求割込信号D.C.、コンピユータへの読
み・書き終了割込み信号D.F.が送受される。イン
タフエース補助装置1と端末装置3との間の送受
情報として、端末装置3への16ビツト出力デー
タ、端末装置からの16ビツト入力データ、及び制
御信号として、インタフエース補助装置1から端
末装置3へ読み・書き命令信号FNCT1〜3、読
み・書き可能状態表示信号レデイ、データブロツ
ク転送開始信号ゴー、入出力のデータレジスタ操
作中を表示する信号ビジー、単位データ毎の読み
書き終了表示信号エンドサイクルがあり、端末装
置3からインタフエース補助装置1への制御情報
として、端末装置3が読み書き可能な状態にある
ことを表示する信号ATTN、データブロツク転
送の終了時又は障害時に端末装置3から出力する
状態信号DSTATA〜C、データ転送方向(読
み・書き)表示信号CLコントロール、単位デー
タ転送毎に端末装置が出力する読み書き要求信号
サイクルリクエストがある。
Between the interface auxiliary device 1 and the computer 2, there are 16-bit output data from the computer 2, 16-bit input data to the computer 2, and a read/write request interrupt signal DC from the computer as a control signal. A read/write completion interrupt signal DF is sent and received to the computer. Information sent and received between the interface auxiliary device 1 and the terminal device 3 includes 16-bit output data to the terminal device 3, 16-bit input data from the terminal device, and control signals from the interface auxiliary device 1 to the terminal device 3. read/write command signals FNCT1 to 3, read/write status display signal ready, data block transfer start signal go, signal busy indicating input/output data register operation in progress, read/write end display signal for each unit data end cycle. Yes, as control information from the terminal device 3 to the interface auxiliary device 1, a signal ATTN indicating that the terminal device 3 is in a read/write state, and a status output from the terminal device 3 at the end of data block transfer or at the time of a failure. There are signals DSTATA to C, a data transfer direction (read/write) display signal CL control, and a read/write request signal cycle request output by the terminal device for each unit data transfer.

コンピユータ2と端末装置3との間でデータ転
送を行うに当り、先ずその準備動作が行われる。
最初にコンピユータ2から読出し又は書込みの命
令情報を含む16ビツトデータが送出され、制御信
号D.C.のレベルが高から低となる。このD.C.のレ
ベル変化に応じてインタフエース補助装置1では
D.C.を切替回路4を介してモノマルチ5で遅延さ
せた信号を排他的OR回路6を介して入力レジス
タ7に制御信号として与えコンピユータ2からの
16ビツトデータを入力レジスタ7に読取る。切替
回路4は、レデイフリツプフロツプ8から端末装
置3に送る制御信号レデイをモノマルチ9、フリ
ツプフロツプ10により遅延した信号が高の場合
はD.C.をモノマルチ5に与え該信号が低の場合は
D.C.をAND回路11に与えるように切替を行う
回路である。レデイに相当するフリツプフロツプ
10からの信号はコンピユータ2とインタフエー
ス補助装置1との送受データが制御データか、又
はコンピユータ2のメモリとの間の転送データで
あるかの識別に用いられる。レデイをモノマルチ
9、フリツプフロツプ10により遅延させるの
は、インタフエース補助装置1とコンピユータ2
との間のデータ送受においてインタフエース補助
装置1からコンピユータ2へのD.F.のレベル変化
に対するコンピユータ2制御のD.C.のレベル変化
の応答の遅れがあつても誤動作が生じないように
するためである。猶、図示しないがモリマルチ5
の出力を更に遅延回路を介してインタフエース補
助装置1内の判定回路12、レジスタ13等への
データ転送のための制御信号を発生している。入
力レジスタ7に設定されたデータは判定回路12
に設定される。判定回路12はコンピユータ2か
らの制御データの種別を判定する回路で、制御デ
ータをその最上位ビツト(MSB)が1の場合は
転送データ数の情報、0であれば転送データ数以
外の情報と判定する。読み・書き命令情報の制御
データの場合はそのMSBが0であり、判定回路
12の判定結果に従つて入力レジスタ7からレジ
スタ13に設定され、レジスタ13から読出し又
は書込みの命令信号FNCT1〜3が端末装置3に
送出される。
Before transferring data between the computer 2 and the terminal device 3, preparatory operations are first performed.
First, 16-bit data including read or write command information is sent from the computer 2, and the level of the control signal DC changes from high to low. In response to this DC level change, the interface auxiliary device 1
A signal obtained by delaying the DC signal by the monomulti 5 via the switching circuit 4 is applied as a control signal to the input register 7 via the exclusive OR circuit 6, and the signal is output from the computer 2.
Read 16-bit data into input register 7. The switching circuit 4 transfers the control signal ready sent from the ready flip-flop 8 to the terminal device 3 to the mono multi 9, and when the signal delayed by the flip flop 10 is high, it applies DC to the mono multi 5, and when the signal is low, it applies DC to the mono multi 5.
This is a circuit that performs switching so that DC is applied to the AND circuit 11. The signal from the flip-flop 10 corresponding to the ready signal is used to identify whether the data sent and received between the computer 2 and the interface auxiliary device 1 is control data or data transferred to and from the memory of the computer 2. The interface auxiliary device 1 and the computer 2 delay the ready by the monomulti 9 and flip-flop 10.
This is to prevent malfunctions from occurring even if there is a delay in response to a DC level change controlled by the computer 2 in response to a DF level change from the interface auxiliary device 1 to the computer 2 during data transmission and reception between the interface auxiliary device 1 and the computer 2. Although not shown, Mori Multi 5
A control signal for data transfer to the judgment circuit 12, register 13, etc. in the interface auxiliary device 1 is generated from the output of the control circuit 1 through a delay circuit. The data set in the input register 7 is sent to the judgment circuit 12.
is set to The determination circuit 12 is a circuit that determines the type of control data from the computer 2. If the most significant bit (MSB) of the control data is 1, it is information about the number of data to be transferred, and if it is 0, it is information other than the number of data to be transferred. judge. In the case of control data for read/write instruction information, its MSB is 0, and it is set from the input register 7 to the register 13 according to the judgment result of the judgment circuit 12, and the read or write instruction signals FNCT1 to 3 are output from the register 13. It is sent to the terminal device 3.

インタフエース補助装置1はD.C.の高から低へ
の変化を識別した後排他的OR回路14、遅延回
路15を介してコンピユータ2への読み・書き終
了割込み信号D.F.を高から低にし、これに応じて
コンピユータ2は転送データ数の2の補数を表わ
す情報を含む制御データを送出し、インタフエー
ス補助装置1はD.C.の高から低への変化に応じて
このデータを入力レジスタ7に受け、判定回路1
2で転送データ数情報であることを識別してワー
ドカウンタ16に設定する。これでデータ転送準
備が完了する。
After identifying the change in DC from high to low, the interface auxiliary device 1 changes the read/write completion interrupt signal DF from high to low to the computer 2 via the exclusive OR circuit 14 and the delay circuit 15, and responds to this. Then, the computer 2 sends out control data including information representing the two's complement of the number of transferred data, and the interface auxiliary device 1 receives this data in the input register 7 in response to the change of DC from high to low, and sends this data to the judgment circuit. 1
2, the information is identified as transfer data number information and set in the word counter 16. The preparation for data transfer is now complete.

端末装置3はFNCT1〜3により読出し又は書
込み命令を受けると、端末装置3が読出し又は書
込みが可能を示すATTNをデータ転送方向を示
すCIコントロールと共にインタフエース補助装
置1に送り、インタフエース補助装置1はこれら
の情報をレジスタ17、切替回路18を介して出
力レジスタ19に設定する。切替装置18はフリ
ツプフロツプ10からの信号が高の場合は端末装
置3からのATTN等の制御データを出力レジス
タ19にゲートし、レデイが低の場合は端末装置
3からの16ビツトの転送データを出力レジスタ1
9にゲートする。データ転送開始前はレデイは高
であり、端末装置3からの制御データが出力レジ
スタ19に設定される。出力レジスタ19の内容
は端末装置3からの制御データにより常に更新さ
れ、コンピユータ2は出力レジスタ19の内容を
繰返し読出し、ATTNが高から低となりこれに
応じた制御データ中のATTN相当ビツトの1か
ら0への変化があつたか否かをみる。
When the terminal device 3 receives a read or write command from FNCTs 1 to 3, the terminal device 3 sends an ATTN indicating that reading or writing is possible to the interface auxiliary device 1 along with a CI control indicating the data transfer direction. sets these information to the output register 19 via the register 17 and the switching circuit 18. The switching device 18 gates control data such as ATTN from the terminal device 3 to the output register 19 when the signal from the flip-flop 10 is high, and outputs 16-bit transfer data from the terminal device 3 when the ready signal is low. register 1
Gate to 9. Before the start of data transfer, ready is high, and control data from the terminal device 3 is set in the output register 19. The contents of the output register 19 are constantly updated by the control data from the terminal device 3, and the computer 2 repeatedly reads the contents of the output register 19, and the ATTN changes from high to low, changing from 1 to 1 of the ATTN equivalent bit in the control data. Check whether there is a change to 0.

ATTNが高から低に変化したことを検出する
とコンピユータ2はデータ転送開始の制御データ
を送出し、インタフエース補助装置1はこれを
D.C.のレベル変化に応じて入力レジスタ7に設定
し、次いでレジスタ13に設定して、レジスタ1
3からモノマルチ回路20を介して200nsのデー
タ転送開始信号ゴーが端末装置3に送られる。
又、当初リセツトされているレデイフリツプフロ
ツプ8がゴーによりセツトされ、端末装置3への
レデイが高から低となり端末装置3に読み・書き
可能を表示する。又フリツプフロツプ10もゴー
によりセツトされる。
When detecting that ATTN changes from high to low, computer 2 sends control data to start data transfer, and interface auxiliary device 1 receives this control data.
Set it in input register 7 according to the DC level change, then set it in register 13, and then set it in register 1.
A data transfer start signal Go of 200 ns is sent from the terminal device 3 to the terminal device 3 via the monomulti circuit 20.
Further, the ready flip-flop 8, which was initially reset, is set by Go, and the ready signal to the terminal device 3 changes from high to low, indicating that reading and writing are possible on the terminal device 3. Flip-flop 10 is also set by GO.

コンピユータ2から端末装置3にデータを転送
する場合には、コンピユータ2はデータ転送開始
情報を送つた後に最初のデータを送出する。イン
タフエース補助装置1は端末装置3からサイクル
リクエストを受けるとビジーフリツプフロツプ2
1をセツトして端末装置3へのビジーを高とし、
又サイクルリクエストでワードカウンタ16を1
つ加算する。フリツプフロツプ10がセツトされ
て切替回路4に低の信号が与えられ、コンピユー
タ2からのD.C.は反転されてAND回路11に与
えられる。コンピユータ2からはデータ送出と共
にD.C.を低にするので、このD.C.が低でかつビジ
ーが低であることでAND回路11は出力を供給
し、モノマルチ22により100nsのパルス信号を
発生する。この信号は排他的OR回路6を介して
入力レジスタ7に制御信号として送られコンピユ
ータ2からのデータを入力レジスタ7に設定し、
又ビジーフリツプフロツプ21をリセツトすると
共に端末装置3にエンドサイクルを送出する。端
末装置3はエンドサイクルを受け、かつビジーが
高から低になつたことでデータがインタフエース
補助装置1から送られてきていること識別してデ
ータを読み込む。インタフエース補助装置1はエ
ンドサイクルを端末装置3に送ると共にAND回
路11の出力により排他的OR回路14、遅延回
路15を介してコンピユータ2へのD.F.を高から
低にする。これに応じてコンピユータ2は次のデ
ータを送出しD.C.を高から低にする。
When transferring data from the computer 2 to the terminal device 3, the computer 2 sends the first data after sending data transfer start information. When the interface auxiliary device 1 receives a cycle request from the terminal device 3, it switches to the busy flip-flop 2.
1 to set the busy level to terminal device 3 to high,
Also, word counter 16 is set to 1 by cycle request.
Add one. The flip-flop 10 is set and a low signal is applied to the switching circuit 4, and the DC from the computer 2 is inverted and applied to the AND circuit 11. Since the computer 2 makes the DC low at the same time as sending data, the AND circuit 11 supplies an output because the DC is low and the busy signal is low, and the monomulti 22 generates a 100 ns pulse signal. This signal is sent as a control signal to the input register 7 via the exclusive OR circuit 6, and sets the data from the computer 2 to the input register 7.
It also resets the busy flip-flop 21 and sends an end cycle to the terminal device 3. When the terminal device 3 receives the end cycle and the busy level changes from high to low, it recognizes that the data is being sent from the interface auxiliary device 1 and reads the data. The interface auxiliary device 1 sends the end cycle to the terminal device 3 and changes the DF to the computer 2 from high to low by the output of the AND circuit 11 via the exclusive OR circuit 14 and the delay circuit 15. In response, the computer 2 sends out the next data and changes DC from high to low.

コンピユータ2からの2番目以降のデータは同
様にしてインタフエース補助装置1を介して端末
装置3に送られる。最後のデータを転送するとき
に、端末装置3からのサイクルリクエストにより
ワードカウンタ16が加算されるとワードカウン
タ16はその内容は0となつて出力を発生し、こ
れによりAND回路23はリセツト信号を排他的
OR回路24を介してレデイフリツプフロツプ8
に送つてこれをリセツトする。レデイフリツプフ
ロツプ8のリセツトにより端末装置3へのレデイ
は低から高となる。端末装置3はインタフエース
補助装置1からデータを読込んだ後、レデイが高
であることからデータ転送は終了したものと識別
しサイクルリクエスト送出は行わない。コンピユ
ータ2はデータ転送が終ると終了表示を制御デー
タとして送出し、インタフエース補助装置1はこ
の制御情報を入力レジスタ7で受けレジスタ13
に設定してFNCT1−3で端末装置3に終了表示
を送る。端末装置3は終了表示に応じて状態表示
をDSTAT A〜Cでインタフエース補助装置1
に送り、インタフエース補助装置1はこれをレジ
スタ17、切替装置18を介して出力レジスタ1
9に設定してコンピユータ2に送る。コンピユー
タ2は端末装置3の状態表示により端末装置3が
データを正常に受取つたことを確認するとデータ
転送処理を終了する。
The second and subsequent data from the computer 2 are similarly sent to the terminal device 3 via the interface auxiliary device 1. When transferring the last data, when the word counter 16 is incremented by a cycle request from the terminal device 3, the word counter 16 becomes 0 and generates an output, which causes the AND circuit 23 to issue a reset signal. Exclusive
Ready flip-flop 8 via OR circuit 24
to reset this. By resetting the ready flip-flop 8, the ready signal to the terminal device 3 changes from low to high. After reading the data from the interface auxiliary device 1, the terminal device 3 identifies that the data transfer has ended since the ready signal is high, and does not send a cycle request. When the data transfer is completed, the computer 2 sends out a completion indication as control data, and the interface auxiliary device 1 receives this control information in the input register 7 and register 13
, and send a completion indication to the terminal device 3 using FNCT1-3. The terminal device 3 displays the status in DSTAT A to C according to the completion display to the interface auxiliary device 1.
The interface auxiliary device 1 sends this to the output register 1 via the register 17 and the switching device 18.
9 and send it to computer 2. When the computer 2 confirms that the terminal device 3 has received the data normally based on the status display of the terminal device 3, the computer 2 ends the data transfer process.

端末装置3からのデータをコンピユータ2に読
込む場合には、データ転送準備段階では、コンピ
ユータ2から制御データで読出し命令及び読出し
ワード数をインタフエース補助装置1に送り、イ
ンタフエース補助装置1ではデータ書込み準備の
場合と同様の動作により、読出し命令をFNCT1
−3で端末装置3に送り、読出しワード数をワー
ドカウンタ16に設定する。次いでコンピユータ
2からの転送開始の制御データに応じて端末装置
3にゴーを送り、レデイフリツプフロツプ8をセ
ツトして端末装置3へのレデイを高から低にす
る。コンピユータ2はD.C.を高から低にしてイン
タフエース補助装置1に読取り要求を行う。端末
装置3はデータを送出すると共にサイクルリクエ
ストのパルスをインタフエース補助装置1に与え
る。インタフエース補助装置1ではデータ書込み
の場合と同様にサイクルリクエストでビジーフリ
ツプフロツプ21をセツトして端末装置3へのビ
ジーを高としワードカウンタ16を1つ加算す
る。インタフエース補助装置1はビジーが高でか
つコンピユータ2からのD.C.が低であることで
AND回路11の出力によりモノマルチ22、排
他的OR回路25を介して出力レジスタ19に制
御信号を送り、端末装置3からのデータを出力レ
ジスタ19に設定し、コンピユータ2へのD.F.を
高から低にして読取り要求を送る。又、端末装置
3にエンドサイクルパルスを送り、ビジーフリツ
プフロツプ21をリセツトして端末装置3へのビ
ジーを高から低にする。端末装置3はエンドサイ
クルを受けビジーが低であることで次のデータを
送出する。以降同様にして端末装置3からコンピ
ユータ2へのデータ転送が順次行われる。端末装
置3からインタフエース補助装置1に最後のデー
タを送るときのサイクルリクエストによりワード
カウンタ16が加算されることでワードカウンタ
16の内容が0となり、レデイフリツプフロツプ
8がリセツトされて端末装置3へのレデイが低か
ら高となる。これにより端末装置3はデータ転送
の終りを識別し、サイクルリクエストを以降イン
タフエース補助装置1に送ることを止める。コン
ピユータ2からの終了表示制御データの送出及び
端末装置3からの状態表示送出がデータ書込みの
場合と同様に行われ、データ読出し処理が終了す
る。
When reading data from the terminal device 3 into the computer 2, in the data transfer preparation stage, the computer 2 sends a read command and the number of read words as control data to the interface auxiliary device 1, and the interface auxiliary device 1 reads the data. The read command is sent to FNCT1 by the same operation as for write preparation.
-3 is sent to the terminal device 3, and the number of read words is set in the word counter 16. Next, in response to control data for starting transfer from the computer 2, a go signal is sent to the terminal device 3, and the ready flip-flop 8 is set to change the ready signal to the terminal device 3 from high to low. The computer 2 makes a read request to the interface auxiliary device 1 by changing DC from high to low. The terminal device 3 sends data and also provides cycle request pulses to the interface auxiliary device 1. In the interface auxiliary device 1, the busy flip-flop 21 is set by a cycle request as in the case of data writing, the busy level to the terminal device 3 is set high, and the word counter 16 is incremented by one. Interface auxiliary device 1 is busy because the DC from computer 2 is low.
The output of the AND circuit 11 sends a control signal to the output register 19 via the monomulti 22 and the exclusive OR circuit 25, sets the data from the terminal device 3 in the output register 19, and changes the DF to the computer 2 from high to low. and send a read request. It also sends an end cycle pulse to the terminal device 3, resets the busy flip-flop 21, and changes the busy state of the terminal device 3 from high to low. The terminal device 3 receives the end cycle and transmits the next data because the busy level is low. Thereafter, data is sequentially transferred from the terminal device 3 to the computer 2 in the same manner. The word counter 16 is incremented by the cycle request when sending the last data from the terminal device 3 to the interface auxiliary device 1, so that the content of the word counter 16 becomes 0, the ready flip-flop 8 is reset, and the terminal device Ready to 3 goes from low to high. The terminal device 3 thereby identifies the end of the data transfer and stops sending further cycle requests to the interface auxiliary device 1. Sending of the end display control data from the computer 2 and sending of the status display from the terminal device 3 are performed in the same manner as in the case of data writing, and the data reading process is completed.

データ転送実行中の転送エラー発生等でデータ
転送が停止した場合は端末装置1からサイクルリ
クエスト信号が出力されなくなりワードカウンタ
16が動作しなくなる。従つてワードカウンタ1
6はリセツトされず端末装置3へのレデイは低に
固定され、データ転送は終了せず以降のデータ授
受が不能となる。これを防ぐためにインタフエー
ス補助装置1では、かかる場合に端末装置3から
DSTAT A〜Cに出力されるキヤンセル情報を
レジスタ17内のデコーダ回路で識別してレデイ
フリツプフロツプ8をリセツトしレデイを高にし
ている。
If data transfer is stopped due to a transfer error occurring during data transfer, the terminal device 1 will not output a cycle request signal, and the word counter 16 will no longer operate. Therefore word counter 1
6 is not reset and the ready signal to the terminal device 3 is fixed at low, the data transfer is not completed and subsequent data exchange is disabled. In order to prevent this, the interface auxiliary device 1 allows the terminal device 3 to
The cancel information outputted to DSTAT A to C is identified by a decoder circuit in the register 17, and the ready flip-flop 8 is reset to make the ready signal high.

DMA機能を持つ端末装置にはデータ転送中は
読み書き可能表示であるレデイを送り続け、デー
タ転送終了でレデイを止める必要がある。データ
転送が終了してもレデイが送り続けられると端末
装置はデータ転送が継続されるものと判断してデ
ータ転送要求のサイクルリクエストを送出し、デ
ータ転送がない場合は障害があつたと判断してし
まう。この問題を解決するために、本実施例で
は、データ転送開始時にコンピユータから転送ワ
ード数を示す情報をインタフエース補助装置に送
つて同装置内のワードカウンタに設定し、コンピ
ユータから転送開始情報をインタフエース補助装
置に送つて端末装置へのレデイ送出を開始し、単
位データの転送毎にワードカウンタをカウントし
て当初ワードカウンタに設定された転送ワード数
に等しい数がカウントされるとレデイ送出を止め
ている。障害等により当初設定した数のデータが
転送されない場合があるが、かかる場合は端末装
置からのキヤンセル情報でレデイ送出を止めてい
る。
It is necessary for a terminal device with a DMA function to continue sending a ready signal, which indicates read/write capability, while data is being transferred, and to stop the ready signal when the data transfer is complete. If the ready continues to be sent even after the data transfer is completed, the terminal device determines that the data transfer is to be continued and sends a cycle request for data transfer request, and if no data transfer occurs, it determines that there is a failure. Put it away. In order to solve this problem, in this embodiment, at the start of data transfer, the computer sends information indicating the number of transferred words to the interface auxiliary device and sets it in the word counter in the device, and the computer sends the transfer start information to the interface auxiliary device. The data is sent to the ACE auxiliary device and starts ready sending to the terminal device, counts the word counter every time unit data is transferred, and stops ready sending when the number equal to the number of transferred words set in the word counter is counted. ing. There may be cases where the originally set number of data is not transferred due to a failure or the like, but in such cases, ready transmission is stopped using cancel information from the terminal device.

データ転送の際に端末装置は各データ毎に、デ
ータ転送要求であるサイクルリクエストを送出
し、転送終了表示であるエンドサイクルを受けて
次のデータ転送処理を始める。インタフエース補
助装置では端末装置からデータ転送要求を受けた
場合にコンピユータのデータ転送準備がされてい
ることを確認して転送処理を行う必要があるの
で、本実施例では端末装置からサイクルリクエス
トを受けると直ちに端末装置にインタフエース補
助装置の入出力レジスタが操作中であることを示
すビジーを送り、コンピユータとの間の転送処理
を行つてから端末装置にエンドサイクルを送つて
いる。
During data transfer, the terminal device sends out a cycle request, which is a data transfer request, for each piece of data, and upon receiving an end cycle, which indicates the end of the transfer, starts the next data transfer process. When the interface auxiliary device receives a data transfer request from a terminal device, it is necessary to confirm that the computer is ready for data transfer and then perform the transfer process, so in this embodiment, it receives a cycle request from the terminal device. Immediately, it sends a busy signal to the terminal device indicating that the input/output register of the interface auxiliary device is being operated, performs transfer processing with the computer, and then sends an end cycle to the terminal device.

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

本発明によれば極めて簡易な構成によりDMA
機能をインタフエース上に持たないコンピユータ
とDMA機能を持つ端末装置とを接続ことができ
特にコンピユータのインタフエース上になく端末
装置との接続に必要な制御信号を適切に作り、コ
ンピユータと端末装置との間のデータ転送を円滑
に行うことができる。
According to the present invention, DMA can be achieved with an extremely simple configuration.
It is possible to connect a computer that does not have a function on the interface with a terminal device that has a DMA function. In particular, it is possible to properly create control signals necessary for connection with a terminal device that is not on the computer interface, and to connect the computer and the terminal device. Data transfer between the two can be performed smoothly.

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

第1図は本発明に係るインタフエース補助装置
の一実施例の構成を示すブロツク図である。 1……インタフエース補助装置、2……コンピ
ユータ、3……端末装置、5,9,20,22…
…モノマルチ、8,10,21……フリツプフロ
ツプ、7……入力レジスタ、15……遅延回路、
16……ワードカウンタ、18……出力レジス
タ。
FIG. 1 is a block diagram showing the structure of an embodiment of an interface auxiliary device according to the present invention. 1... Interface auxiliary device, 2... Computer, 3... Terminal device, 5, 9, 20, 22...
...Monomulti, 8, 10, 21...Flip-flop, 7...Input register, 15...Delay circuit,
16...word counter, 18...output register.

Claims (1)

【特許請求の範囲】 1 高速データ伝送方式のダイレクトメモリアク
セス機能をインターフエース上に持たないコンピ
ユータとダイレクトメモリアクセス機能を持つ端
末装置とを接続し、ダイレクトメモリアクセス機
能を用い、コンピユータからのデータを端末装置
に書き込み、また端末装置からのデータをコンピ
ユータに読み出すインターフエース補助装置であ
つて、 前記のコンピユータと端末装置を接続し、ダイ
レクトメモリアクセス機能を用いての高速データ
伝送を可能にするため、 コンピユータ出力を入力として受け、その出力
が端末装置入力データ端に接続される入力レジス
タと、端末装置からの状態情報、及び伝送データ
を入力として受け、その出力がコンピユータデー
タ入力端に接続される出力レジスタと、 コンピユータから制御データとして与えられ
る、一回に転送するデータブロツク長を示す転送
ワード数の情報が2の補数値で設定されるワード
カウンタ、端末装置から単位データ転送毎に与え
られる読み書き要求信号に応答して、前記ワード
カウンタを加算させる回路、前記ワードカウンタ
の値が設定された転送ワード数に等しい数になつ
た時、端末装置へデータブロツクの転送終了を知
らせるため、読み・書き可能状態を示す制御信号
の出力を止める回路、データ転送実行中に、障害
発生でデータ転送が停止した場合、データ転送は
終了せず以後のデータ授受が不能となることを防
ぐため、端末装置が出力する状態情報を常時監視
し、その情報から、端末装置への読み・書き可能
状態を示す制御信号の出力を止める回路、コンピ
ユータ出力が制御データか、転送データかを識別
する回路と、コンピユータからの読み・書き要求
割り込み信号D.C.に対応し、コンピユータへの読
み・書き終了割り込み信号D.F.を出力する回路、
次のデータブロツク転送が端末装置からの読みだ
しなのか、または端末装置への書き込みなのかを
端末装置へ伝える命令信号を出力する回路、デー
タブロツク転送開始信号を端末装置へ出力する回
路、端末装置から単位データ毎に与えられる読
み・書き要求信号に応答して、コンピユータが入
出力のデータレジスタ操作中であることを示す信
号を端末装置へ出力する回路と、コンピユータか
らの読み・書き要求割り込み信号に応答して、前
記コンピユータが入出力のデータレジスタ操作中
であることを端末装置へ示す信号の出力を止め、
単位データ毎の読み・書き終了を示す信号を端末
装置へ出力する回路、及び端末装置から入力され
る、端末装置が読み・書き可能な状態にあること
を示す信号をコンピユータへ出力する回路、デー
タブロツク転送の終了時、また障害時に端末装置
の出力する状態信号をコンピユータへ出力する回
路、前記データブロツク転送が端末装置からの読
みだしなのか、または端末装置への書き込みなの
かを伝える命令信号に対する端末装置の応答信号
をコンピユータへ出力する回路、で構成されるイ
ンターフエース補助装置。
[Claims] 1. A computer that does not have a high-speed data transmission direct memory access function on its interface and a terminal device that has a direct memory access function, and uses the direct memory access function to transfer data from the computer. An interface auxiliary device for writing to a terminal device and reading data from the terminal device to a computer, which connects the computer and the terminal device and enables high-speed data transmission using a direct memory access function. An input register that receives computer output as input and whose output is connected to the terminal device input data terminal, and an output that receives status information and transmission data from the terminal device as input and whose output is connected to the computer data input terminal. A register, a word counter in which information about the number of transfer words indicating the length of a data block to be transferred at one time is set as a two's complement value, which is given as control data from the computer, and a read/write request given from the terminal device for each unit data transfer. A circuit that increments the word counter in response to a signal, and when the value of the word counter reaches a number equal to the set number of transfer words, it informs the terminal device that the transfer of the data block has ended, and is readable and writable. A circuit that stops the output of control signals that indicate the status. If data transfer is stopped due to a failure during data transfer, the terminal device outputs the A circuit that constantly monitors status information and uses that information to stop outputting a control signal indicating read/write status to a terminal device, a circuit that identifies whether computer output is control data or transfer data, and a circuit that identifies whether computer output is control data or transfer data. A circuit that responds to the read/write request interrupt signal DC and outputs a read/write completion interrupt signal DF to the computer.
A circuit that outputs a command signal that tells the terminal device whether the next data block transfer is a read from the terminal device or a write to the terminal device, a circuit that outputs a data block transfer start signal to the terminal device, a terminal device A circuit that outputs a signal indicating that the computer is operating an input/output data register to a terminal device in response to a read/write request signal given for each unit of data from the computer, and a read/write request interrupt signal from the computer. In response to this, the computer stops outputting a signal to the terminal device indicating that the input/output data register is being manipulated;
A circuit that outputs a signal indicating the end of reading/writing for each unit of data to a terminal device, and a circuit that outputs a signal input from the terminal device to the computer indicating that the terminal device is in a readable/writable state, and data A circuit that outputs a status signal output from a terminal device to a computer at the end of a block transfer or at the time of a failure, and a command signal that tells whether the data block transfer is a read from the terminal device or a write to the terminal device. An interface auxiliary device consisting of a circuit that outputs a response signal from a terminal device to a computer.
JP11445985A 1985-05-28 1985-05-28 Interface auxiliary device Granted JPS61271557A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11445985A JPS61271557A (en) 1985-05-28 1985-05-28 Interface auxiliary device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11445985A JPS61271557A (en) 1985-05-28 1985-05-28 Interface auxiliary device

Publications (2)

Publication Number Publication Date
JPS61271557A JPS61271557A (en) 1986-12-01
JPH0574865B2 true JPH0574865B2 (en) 1993-10-19

Family

ID=14638262

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11445985A Granted JPS61271557A (en) 1985-05-28 1985-05-28 Interface auxiliary device

Country Status (1)

Country Link
JP (1) JPS61271557A (en)

Also Published As

Publication number Publication date
JPS61271557A (en) 1986-12-01

Similar Documents

Publication Publication Date Title
US4716525A (en) Peripheral controller for coupling data buses having different protocol and transfer rates
EP0303751A1 (en) Interface mechanism for controlling the exchange of information between two devices
US5068785A (en) Bus control for small computer system interface with transfer indication preceding final word transfer and buffer empty indication preceding receipt acknowledgement
JPS61156358A (en) Bus converter
JPS60186956A (en) Buffer unit for input/output section of digital data processing system
US4622630A (en) Data processing system having unique bus control protocol
US4729090A (en) DMA system employing plural bus request and grant signals for improving bus data transfer speed
JPH0429102B2 (en)
JP2962787B2 (en) Communication control method
US4539656A (en) Memory access selection circuit
JPH0574865B2 (en)
US5603057A (en) System for initiating data transfer between input/output devices having separate address spaces in accordance with initializing information in two address packages
JP2574821B2 (en) Direct memory access controller
JP3261665B2 (en) Data transfer method and data processing system
JPS61123244A (en) Data communication processor
KR950009576B1 (en) Bus interface device
JPH067379B2 (en) Direct memory access control circuit
RU2018944C1 (en) Device for interfacing computer with external objects
JP2803270B2 (en) SCSI host adapter circuit
JP2563807B2 (en) Direct memory access control circuit
JP2924232B2 (en) Command check device
JPS6012668B2 (en) Direct memory access device interface circuit
JPS58213336A (en) Communication controller
JPH0154730B2 (en)
JPS59170933A (en) Input data control device of printer

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term