JPH01291355A - Data transfer control circuit - Google Patents

Data transfer control circuit

Info

Publication number
JPH01291355A
JPH01291355A JP63120861A JP12086188A JPH01291355A JP H01291355 A JPH01291355 A JP H01291355A JP 63120861 A JP63120861 A JP 63120861A JP 12086188 A JP12086188 A JP 12086188A JP H01291355 A JPH01291355 A JP H01291355A
Authority
JP
Japan
Prior art keywords
address
buffer memory
data
sent
storage area
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.)
Granted
Application number
JP63120861A
Other languages
Japanese (ja)
Other versions
JPH0833872B2 (en
Inventor
Katsuji Fujimori
藤森 勝二
Hiroshi Ishizawa
石澤 浩
Katsuichi Hirowatari
広渡 勝一
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
Original Assignee
Fujitsu Ltd
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 filed Critical Fujitsu Ltd
Priority to JP63120861A priority Critical patent/JPH0833872B2/en
Publication of JPH01291355A publication Critical patent/JPH01291355A/en
Publication of JPH0833872B2 publication Critical patent/JPH0833872B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 〔目次〕 概要 産業上の利用分野 従来の技術 発明が解決しようとする課題 課題を解決するための手段 作用 実施例 発明の効果 〔概要〕 複数の上位装置が共通にアクセスする下位装置のアダプ
タにおいて、上位装置と下位装置との間のデータ転送を
経済的なハードウェア構成で制御するデータ転送制御回
路に関し、 制御を容易として経済的なデータ転送制御回路を提供す
ることを目的とし、 上位装置と下位装置間で転送するデータブロックを蓄積
するバッファメモリを備えたデータ転送制御回路であっ
て、バッファメモリ上の第1と第2の記憶領域を指定す
るアドレスを交互に切替えて送出するアドレス送出手段
を設け、上位装置が送出する下位装置の先頭アドレスに
基づき下位装置に対して所定の量のデータブロックの書
込め/読出しを行わせるアドレスを作成し、作成したア
ドレスを第1又は第2の記憶領域を順次交互に選択して
記憶させると共に、先頭アドレスから順次、次の所定の
量のデータブロックの書込み/読出しを行わせるアドレ
スを、第1又は第2の記憶領域から読出して下位装置に
送出し、上位装置がバッファメモリに蓄積したデータブ
ロックを下位装置に転送するか、下位装置が蓄積したデ
ータブロックを上位装置に転送する動作を繰り返し、下
位装置でエラーが発生した時は、第1又は第2の記憶領
域に残されたエラーの発生したアドレスを再度送出して
、リカバリする構成とする。
[Detailed Description of the Invention] [Table of Contents] Overview Industrial Application Fields Conventional Technology Problems to be Solved by the Invention Means for Solving the Problems Actions Examples Effects of the Invention [Summary] Commonly accessed by multiple host devices The present invention relates to a data transfer control circuit that controls data transfer between a higher-level device and a lower-level device using an economical hardware configuration in an adapter for a lower-level device. A data transfer control circuit equipped with a buffer memory that stores data blocks to be transferred between a higher-level device and a lower-level device, and which alternately switches addresses specifying first and second storage areas on the buffer memory. An address sending unit is provided, which creates an address that causes the lower device to write/read a predetermined amount of data blocks based on the first address of the lower device sent by the higher device, and sends the created address to the first address. The first or second storage area is sequentially and alternately selected and stored, and the address at which the next predetermined amount of data block is written/read from the first or second storage area is sequentially selected from the first or second storage area. An error occurs in the lower-level device by repeating the operation of reading and sending it to the lower-level device, and then the upper-level device transfers the data block accumulated in the buffer memory to the lower-level device, or transfers the data block accumulated by the lower-level device to the higher-level device. In this case, the address in which the error occurred, remaining in the first or second storage area, is transmitted again to recover.

〔産業上の利用分野〕[Industrial application field]

本発明は複数の上位装置が共通にアクセスする下位装置
のアダプタに係り、特に上位装置と下位装置との間のデ
ータ転送を経済的なハードウェア構成で制御するデータ
転送制御回路に関する。
The present invention relates to an adapter for a lower-level device that is commonly accessed by a plurality of higher-level devices, and particularly to a data transfer control circuit that controls data transfer between a higher-level device and a lower-level device using an economical hardware configuration.

近年、情報処理装置の構成が複雑化するに伴い、複数の
中央処理装置が共通に使用するデータを格納しておく共
通メモリが使用されるようになって来た。
In recent years, as the configurations of information processing devices have become more complex, common memories have come into use that store data commonly used by a plurality of central processing units.

このような共通メモリは、中央処理装置との間にデータ
転送を制御するデータ転送制御回路を備えた共通メモリ
アダプタを設けており、この共通メモリアダプタにより
データの転送が制御されている。
Such a common memory is provided with a common memory adapter provided with a data transfer control circuit for controlling data transfer between the common memory and the central processing unit, and data transfer is controlled by this common memory adapter.

ところで、このデータ転送制御回路は経済的であること
が必要である。
By the way, this data transfer control circuit needs to be economical.

〔従来の技術〕[Conventional technology]

第3図は従来の技術を説明するブロック図である。 FIG. 3 is a block diagram illustrating the conventional technology.

第3図(a)はシステム構成を説明する図であり、■は
中央処理装置、2は共通メモリアダプタ、3は共通メモ
リである。中央処理装置1はアドレスバス4を経て共通
メモリ3のアドレスを共通メモリアダプタ2に送出し、
データバス5を経て共通メモリアダプタ2にデータを送
出する。
FIG. 3(a) is a diagram illustrating the system configuration, in which ``■'' is a central processing unit, 2 is a common memory adapter, and 3 is a common memory. The central processing unit 1 sends the address of the common memory 3 to the common memory adapter 2 via the address bus 4,
Data is sent to the common memory adapter 2 via the data bus 5.

共通メモリアダプタ2は内部に備えたデータ転送制御回
路により、中央処理装置1が送出したアドレスに基づき
作成したアドレスと、バッファメモリに蓄積したデータ
を共通メモリ3にハス6を経て転送し、共通メモリ3に
書込む。
The common memory adapter 2 uses an internal data transfer control circuit to transfer the address created based on the address sent by the central processing unit 1 and the data accumulated in the buffer memory to the common memory 3 via the lotus 6. Write in 3.

又、中央処理装置1がアドレスバス4を経て送出するア
ドレスに基づき、共通メモリアダプタ2のデータ転送制
御回路が送出するアドレスにより、共通メモリ3から読
出されたデータは、ハス6を経て共通メモリアダプタ2
に送出され、バッファメモリに蓄積された後データ転送
制御回路により制御されて、ハス4を介し中央処理装置
1に転送される。
Furthermore, based on the address sent by the central processing unit 1 via the address bus 4, the data read from the common memory 3 by the address sent by the data transfer control circuit of the common memory adapter 2 is transferred to the common memory adapter via the lotus 6. 2
After being stored in the buffer memory, the data is controlled by the data transfer control circuit and transferred to the central processing unit 1 via the lotus 4.

第3図(b)はデータ転送制御回路の一例を示す。FIG. 3(b) shows an example of a data transfer control circuit.

アドレスバス4を経て、例えば、中央処理装置1が送出
する3ハイドのアドレスがマルチプレクサ7に人力する
。このアドレスは共通メモリ3の先頭アドレスであり、
マルチプレクサ7を経てレジスタ8に格納される。
For example, a 3-hide address sent by the central processing unit 1 is input to the multiplexer 7 via the address bus 4 . This address is the starting address of common memory 3,
The signal is stored in register 8 via multiplexer 7.

又1.データバス5を経て、例えば、4バイトのデータ
が入力する。この時マルチプレクサ13を経て予め定ま
るへソファメモリ11の先頭アドレスAがレジスタ14
に格納され、マルチプレクサ 。
Also 1. For example, 4-byte data is input via the data bus 5. At this time, the start address A of the sofa memory 11 is predetermined via the multiplexer 13 in the register 14.
stored in the multiplexer.

16を経てバッファメモリ11の書込みアドレス端子W
に入力する。従って、4バイトのデータがバッファメモ
リ11に書込まれる。
16 to the write address terminal W of the buffer memory 11
Enter. Therefore, 4 bytes of data are written into the buffer memory 11.

レジスタ14のアドレスは加算回路15によりパ1°゛
が加算され、マルチプレクサ13を経てレジスタ14の
アドレスを更新する。このインクリメントされたアドレ
スはマルチプレクサ16を経てバッファメモリ11の書
込みアドレス端子Wに入力する。従って、次の4ハイド
のデータがバッファメモリ11に書込まれる。
The adder circuit 15 adds 1° to the address of the register 14, and the address of the register 14 is updated via the multiplexer 13. This incremented address is input to the write address terminal W of the buffer memory 11 via the multiplexer 16. Therefore, the next 4 hides of data are written into the buffer memory 11.

このようにして、例えば、32ハイドのデータブロック
がバッファメモリ11に書込まれる。
In this way, for example, a data block of 32 hides is written into the buffer memory 11.

バッファメモリ11に32ハイドのデータブロックが書
込まれると、マルチプレクサ12ばレジスタ8のアドレ
スをハス6に送出し、同時に共通メモリ3に対するデー
タの送り方向や転送するデータ量等を示すコマンドCも
送出する。
When a data block of 32 hides is written to the buffer memory 11, the multiplexer 12 sends the address of the register 8 to the lotus 6, and at the same time sends a command C indicating the data sending direction to the common memory 3, the amount of data to be transferred, etc. do.

このアドレス送出が済むと、マルチプレクサ16はバッ
ファメモリ11のデータを読出ずアドレスを、バッファ
メモリ11の読出しアドレス端子Rに送出する。即ち、
前記同様にしてバッファメモリ11の先頭アドレスAが
セットされたレジスタ14のアドレスを送出する。
After this address has been sent, the multiplexer 16 does not read the data in the buffer memory 11 but sends the address to the read address terminal R of the buffer memory 11. That is,
In the same manner as described above, the address of the register 14 to which the starting address A of the buffer memory 11 has been set is sent.

バッファメモリ11はこの7ドレスで4バイトのデータ
を読出し、続いて、マルチプレクサ16が送出するアド
レスがインクリメントされる度に、4ハイドずつデータ
を読出してマルチプレクサ12に送出し、マルチプレク
サ12はバッファメモリ11から読出される4バイト毎
のデータをハス6に順次送出する。
The buffer memory 11 reads 4 bytes of data using these 7 addresses, and then, each time the address sent out by the multiplexer 16 is incremented, it reads out 4 bytes of data and sends it to the multiplexer 12. The data of every 4 bytes read from is sent to the lotus 6 sequentially.

レジスタ8に格納されたアドレスはレジスタ9に送出さ
れて記41されると共に、加算回路10において、次の
データブロック(32バイト)を共通メモリ3に書込む
アドレスとなる値Pが加算され、マルチプレクサ7を経
てレジスタ8に書込まれる。
The address stored in the register 8 is sent to the register 9 and recorded 41, and the adder circuit 10 adds a value P, which is the address for writing the next data block (32 bytes) to the common memory 3, and the multiplexer 7 and is written to register 8.

バッファメモリ11のデータが総てバス6に送出される
と、マルチプレクサ16からバッファメモリ11の先頭
アドレスAを示すアドレスがバッファメモリ11の書込
みアドレス端子Wに入力し、前記同様にデータバス5に
送出されるデータがへソファメモリ11に書込まれる。
When all the data in the buffer memory 11 is sent to the bus 6, the address indicating the start address A of the buffer memory 11 is input from the multiplexer 16 to the write address terminal W of the buffer memory 11, and is sent to the data bus 5 in the same manner as described above. data is written to the sofa memory 11.

マルチプレクサ12はバッファメモリ11から32バイ
1−のデータブロックが、前記の如く総てハス6に送出
されると、レジスタ8の値Pを加算されて更新されたア
ドレスとコマンドCをバス6に送出し、続いて、へソフ
ァメモリ11に32ハイドの次のデータブロックが書込
まれると、この次のデータブロックを、前記と同様に4
ハイド毎にハス6に送出する。
When the data blocks of 32 by 1- are all sent from the buffer memory 11 to the bus 6 as described above, the multiplexer 12 adds the value P of the register 8 and sends the updated address and command C to the bus 6. Then, when the next data block of 32 hides is written to the sofa memory 11, this next data block is written to 4 blocks in the same way as above.
Send each Hyde to Hass 6.

このようにして、データバス5に送出される転送データ
ブロックが無くなるまで、上記動作が繰り返される。
In this way, the above operation is repeated until there are no more transfer data blocks to be sent to the data bus 5.

若し、共通メモリ3でエラーが発生ずると、マルチプレ
クサ7はレジスタ9に格納されているアドレスをレジス
タ8に転送し、値Pが加算されて更新される前のアドレ
スに戻すため、マルチプレクサ12はエラーの発生した
データブロックのアドレスをハス6に送出する。そして
、バッファメモリ11のデータブロックを再送すること
でリカバリを行う。
If an error occurs in the common memory 3, the multiplexer 7 transfers the address stored in the register 9 to the register 8, and returns it to the address before it was updated by adding the value P. Therefore, the multiplexer 12 The address of the data block where the error occurred is sent to the lotus 6. Then, recovery is performed by retransmitting the data block in the buffer memory 11.

共通メモリ3からデータを読出す場合、アドレスバス4
に中央処理装置1から送出されたアドレスを、前記同様
にしてレジスタ8に格納し、このアドレスをマルチプレ
クサ12がハス6に送出する。そして、このアドレスで
読出された4バイトのデータは、前記同様にしてレジス
タ14に格納されたアドレスが、バッファメモリ11の
書込みアドレス端子Wに入力することにより、マルチプ
レクサ12を経てバッファメモリ11に書込まれる。
When reading data from common memory 3, address bus 4
The address sent from the central processing unit 1 is stored in the register 8 in the same manner as described above, and the multiplexer 12 sends this address to the lotus 6. Then, the 4-byte data read at this address is written to the buffer memory 11 via the multiplexer 12 by inputting the address stored in the register 14 in the same manner as described above to the write address terminal W of the buffer memory 11. be included.

そして、32バイトのデータが蓄積されると、レジスタ
14が送出するアドレスがバッファメモリ11の読出し
アドレス端子Rに入力することにより、4バイト毎にデ
ータバス5に送出され、中央処理装置1に転送される。
When 32 bytes of data are accumulated, the address sent by the register 14 is input to the read address terminal R of the buffer memory 11, so that every 4 bytes are sent to the data bus 5 and transferred to the central processing unit 1. be done.

尚、マルチプレクサ1.12,13.16の切替信号や
レジスタ8.9.14及びバッファメモリ11の書込み
/読出しのタイミング信号等は、図示省略した共通メモ
リアダプタ2の制御部から供給される。
Note that switching signals for the multiplexers 1.12 and 13.16, write/read timing signals for the registers 8.9.14 and the buffer memory 11, and the like are supplied from a control section of the common memory adapter 2, which is not shown.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

第3図(blに示す回路では、レジスタ8と9が必要で
あり、アドレス幅が24ピントであるとすると、夫々2
4個のフリップフロップを必要とする。
In the circuit shown in FIG. 3 (bl), registers 8 and 9 are required, and if the address width is 24 pintos, each
Requires 4 flip-flops.

そして、アドレス幅が大きくなれば、更にその分のフリ
ップフロップを必要とする。又、データとアドレスを切
り分けるためのマルチプレクサ12を備えるため、非常
に大きなハードウェア量を必要とすると共に、レジスタ
8と9の制御も複雑となり経済的で無いという問題があ
る。
As the address width increases, more flip-flops are required. Further, since the multiplexer 12 is provided to separate data and addresses, a very large amount of hardware is required, and control of the registers 8 and 9 is also complicated, making it uneconomical.

本発明はこのような問題点に鑑み、バッファメモリ11
にレジスタ8と9の代わりをする記憶領域を設定し、レ
ジスタ8と9及びデータとアドレスを切り分けるマルチ
プレクサ12を節減し、制御を容易として経済的なデー
タ転送制御回路を提供することを目的としている。
In view of such problems, the present invention provides a buffer memory 11.
The purpose of this invention is to provide a data transfer control circuit that is easy to control and economical by setting up a storage area to replace registers 8 and 9 and saving the need for registers 8 and 9 and the multiplexer 12 that separates data and addresses. .

〔課題を解決するだめの手段〕[Failure to solve the problem]

第1図は本発明の原理ブロック図である。 FIG. 1 is a block diagram of the principle of the present invention.

第3図と同一符号は同一機能のものを示す。アドレス送
出手段28はマルチプレクサ24を経て、バッファメモ
リ11の書込みアドレス端子Wに記憶領域26のアドレ
スを送出する。上位装置からアドレスバス4に、下位装
置の先頭アドレスを指示するアドレスが入力する。マル
チプレクサ17は、このアドレスバス4の先頭アドレス
をバッファメモリ11に送出するため、この下位装置の
先頭アドレスは、記憶領域26に格納される。
The same reference numerals as in FIG. 3 indicate the same functions. The address sending means 28 sends the address of the storage area 26 to the write address terminal W of the buffer memory 11 via the multiplexer 24. An address indicating the start address of a lower-order device is input from the higher-order device to the address bus 4. Since the multiplexer 17 sends the start address of the address bus 4 to the buffer memory 11, the start address of this lower device is stored in the storage area 26.

続いて、上位装置からデータバス5にデータブロックが
入力する。この時第3図(b)で説明した如く、レジス
タ14にはバッファメモリ11の先頭アドレスAが設定
され、マルチプレクサ16と24を経てバッファメモリ
11の書込みアドレス端子Wに入力する。従って、バッ
ファメモリ11には4バイト毎に、前記同様にインクリ
メントされてレジスタ14に設定されるアドレスが、書
込みアドレス端子Wに入力するため、32ハイドのデー
タブロックが格納される。
Subsequently, a data block is input to the data bus 5 from the host device. At this time, as explained with reference to FIG. 3(b), the start address A of the buffer memory 11 is set in the register 14, and inputted to the write address terminal W of the buffer memory 11 via the multiplexers 16 and 24. Therefore, the address which is incremented every 4 bytes and set in the register 14 in the same manner as described above is input to the write address terminal W, so that a data block of 32 hides is stored in the buffer memory 11.

バッファメモリ11に32ハイドのデータブロックが格
納されると、マルチプレクサ23を経てアドレス送出手
段28が送出するバッファメモリ11の記憶領域26の
アドレスが、読出しアドレス端子Rに入力する。従って
、バッファメモリ11からバス6に下位装置のアドレス
が送出され、同時にこのアドレスは加算回路10に入力
し、第3図(blで説明した値Pが加算され、マルチプ
レクサ17を経てバッファメモリ11に送出される。
When a 32-hide data block is stored in the buffer memory 11, the address of the storage area 26 of the buffer memory 11 sent by the address sending means 28 via the multiplexer 23 is input to the read address terminal R. Therefore, the address of the lower device is sent from the buffer memory 11 to the bus 6, and at the same time this address is input to the adder circuit 10, where the value P explained in FIG. Sent out.

この時、アドレス送出手段28はマルチプレクサ24を
経て、バッファメモリ11の書込みアドレス端子Wに記
i! 領域27のアドレスを送出しており、値Pが加算
されたアドレスは記憶領域27に格納される。又、マル
チプレクサ25はコマンドCをバス6に送出する。
At this time, the address sending means 28 writes i! to the write address terminal W of the buffer memory 11 via the multiplexer 24. The address of the area 27 is sent, and the address to which the value P is added is stored in the storage area 27. Multiplexer 25 also sends command C to bus 6.

ここで、レジスタ14にセットされたへソファメモリ1
1の先頭アドレスAがマルチプレクサ16と23を経て
、バッファメモリ11の読出しアドレス端子Rに入力し
、バッファメモリ11から4バイト毎にデータブロック
が読出され、バス6に送出される。
Here, the sofa memory 1 set in the register 14 is
The first address A of 1 is input to the read address terminal R of the buffer memory 11 via multiplexers 16 and 23, and a data block is read every 4 bytes from the buffer memory 11 and sent to the bus 6.

若し、下位装置でエラーが発生した場合は、アドレス送
出手段手段28がバッファメモリ11の記ta領域26
のアドレスを再度送出するため、値Pが加算される前の
アドレスが下位装置に送出され、リカバリすることが出
来る。
If an error occurs in the lower-level device, the address sending means 28 sends the address to the recording area 26 of the buffer memory 11.
In order to send out the address again, the address before the value P is added is sent to the lower device and can be recovered.

へソファメモリ11に格納されたデータブロックが総て
転送されると、マルチプレクサ17を経て、次のデータ
ブロックがバッファメモリ11に前記同様にして書込ま
れる。そして、このデータブロックを下位装置に転送す
る時は、アドレス送出手段28がマルチプレクサ24を
経てバッファメモリ11の記憶領域27のアドレスを送
出するため、値Pの加算された下位装置のアドレスがバ
ス6に送出される。
When all the data blocks stored in the sofa memory 11 have been transferred, the next data block is written to the buffer memory 11 via the multiplexer 17 in the same manner as described above. When this data block is transferred to a lower device, the address sending means 28 sends out the address of the storage area 27 of the buffer memory 11 via the multiplexer 24, so that the address of the lower device to which the value P has been added is transferred to the bus 6. sent to.

従って、次に転送されるデータブロックは、値Pの加算
されたアドレスで、下位装置に書込まれる。
Therefore, the next data block to be transferred is written to the lower device at the address to which the value P is added.

〔作用〕[Effect]

上記の如く構成することにより、アドレス送出手段28
はバッファメモリ11の記憶領域26と27のアドレス
を交互に切替え、上位装置が送出したアドレスにデータ
ブロックを転送する度に値−14= Pが加算された下位装置に送出するためのアドレスと、
該値Pが加算される一つ前のリカバリ用のアドレスとを
交互に記憶領域26と27に記憶させるため、第3図(
b)に示すレジスタ8と9を省略することが可能となる
と共に、下位装置でエラーがあった場合には、リカバリ
用のアドレスを送出することで、該エラーのリカバリを
行うことが可能となる。
By configuring as described above, the address sending means 28
alternately switches the addresses of the storage areas 26 and 27 of the buffer memory 11, and each time a data block is transferred to the address sent by the higher-order device, the address for sending to the lower-order device is added with the value -14=P;
In order to alternately store the recovery address immediately before the value P is added in the storage areas 26 and 27, the address shown in FIG.
It becomes possible to omit registers 8 and 9 shown in b), and if there is an error in the lower device, it becomes possible to recover from the error by sending a recovery address. .

そして、バッファメモリ11に、この下位装置に送出す
るアドレスを記憶させているため、バス6にアドレスを
送出した後、バス6を使用して、データブロックの転送
を実行することが可能となり、第3図(blに示すマル
チプレクサ12によるハス6の切替えを行う必要が無く
、簡易な制御により、ハードウェア量を節減することが
出来る。
Since the address to be sent to the lower device is stored in the buffer memory 11, it is possible to transfer the data block using the bus 6 after sending the address to the bus 6. There is no need to switch the lotus 6 by the multiplexer 12 shown in FIG. 3 (bl), and the amount of hardware can be reduced by simple control.

〔実施例〕〔Example〕

第2図は本発明の一実施例を示す回路のブロック図であ
る。
FIG. 2 is a block diagram of a circuit showing one embodiment of the present invention.

第3図と同一符号は同一機能のものを示す。フリップフ
ロップ18は、図示省略した共通メモリアダプタ2の制
御部の制御により、初期時“1”をマルチプレクサ21
とNOT回路19と20に送出しており、NOT回路2
0は0”をマルチプレクサ22に送出する。マルチプレ
クサ22には予め固定値として、例えば、上位ビットの
“100”が与えられており、マルチプレクサ24を経
てバッファメモリ11の書込みアドレス端子Wにアドレ
スとして、例えば、“1000”を送出する。
The same reference numerals as in FIG. 3 indicate the same functions. The flip-flop 18 initially sets "1" to the multiplexer 21 under the control of the control unit of the common memory adapter 2 (not shown).
and is sent to NOT circuits 19 and 20, and NOT circuit 2
"0" is sent to the multiplexer 22.The multiplexer 22 is given a fixed value in advance, for example, the upper bit "100", and is sent to the write address terminal W of the buffer memory 11 as an address via the multiplexer 24. For example, "1000" is sent.

バッファメモリ11のアドレス“1000”は、記憶領
域26のアドレスであり、アドレスバス4を経て入力す
る第3図(alの中央処理装置1が送出する共通メモリ
3の先頭アドレスは、マルチプレクサ17を経て記憶領
域26に格納される。
The address "1000" of the buffer memory 11 is the address of the storage area 26, and the starting address of the common memory 3 sent by the central processing unit 1 of FIG. It is stored in the storage area 26.

そして、フリップフロップ18の送出した“1”はNO
T回路19を経てaO”となり、フリップフロップ18
に入力するため、フリップフロップ18は“0”をマル
チプレクサ21とNOT回路19と20に送出する。
Then, the “1” sent out by the flip-flop 18 is NO.
After passing through the T circuit 19, it becomes aO'', and the flip-flop 18
, the flip-flop 18 sends "0" to the multiplexer 21 and the NOT circuits 19 and 20.

マルチプレクサ21は予め固定値として、例えば、上位
ビットの“100″が与えられているため、フリップフ
ロップ18が“0”を送出すると、マルチプレクサ23
に“1000”を送出する。
The multiplexer 21 is given a fixed value in advance, for example, the upper bit "100", so when the flip-flop 18 sends out "0", the multiplexer 23
Send “1000” to

中央処理装置1がデータバス5に送出するデータブロッ
クは、マルチプレクサ17を経てバッファメモリ11に
入力する。そして、第3図(b)で説明した如く、レジ
スタ14に設定されたバッファメモリ11の先頭アドレ
スAは、マルチプレクサ16と24を経てバッファメモ
リ11の書込みアドレス端子Wに人力する。そして、第
3図で説明した如く、加算回路15で加算されインクリ
メントされたアドレスが順次式ソファメモリ11の書込
みアドレス端子Wに入力するため、データバス5から入
力するデータブロックは、4バイト毎に順次バッファメ
モリ11に書込まれる。
A data block sent by central processing unit 1 to data bus 5 is input to buffer memory 11 via multiplexer 17 . As explained in FIG. 3(b), the start address A of the buffer memory 11 set in the register 14 is inputted to the write address terminal W of the buffer memory 11 via the multiplexers 16 and 24. As explained in FIG. 3, since the address added and incremented by the adder circuit 15 is input to the write address terminal W of the sequential sofa memory 11, the data block input from the data bus 5 is input every 4 bytes. The data are sequentially written into the buffer memory 11.

バッファメモリ11に32バイトのデータブロックが書
込まれると、前記の如く、マルチプレクサ23に送出さ
れたアドレス“1000”が、ハ゛ソファメモリ11の
読出しアドレス端子Rに入力し、バッファメモリ11の
記憶領域26に格納されている第3図(alに示す共通
メモリ3の先頭アドレスがバス6に送出される。
When a 32-byte data block is written to the buffer memory 11, the address “1000” sent to the multiplexer 23 is input to the read address terminal R of the high sofa memory 11 as described above, and the storage area of the buffer memory 11 is The starting address of the common memory 3 shown in FIG. 3 (al) stored in 26 is sent to the bus 6.

そして、この共通メモリ3の先頭アドレスは加算回路1
0において、第3図(blで説明した値Pが加算され、
マルチプレクサ17を経てバッファメモリ11に送出さ
れる。
The starting address of this common memory 3 is the adder circuit 1.
0, the value P explained in FIG. 3 (bl) is added,
The signal is sent to the buffer memory 11 via the multiplexer 17.

この時、前記の如く、フリップフロン118は0″を送
出しているため、NOT回路20はa1″を送出し、マ
ルチプレクサ22からはアドレス“1001″がマルチ
プレクサ24を経て、バッファメモIJ11の書込みア
ドレス端子Wに入力する。アドレス“1001”はバッ
ファメモリ11の記憶ti域27のアドレスであり、加
算回路10で値Pが加算されたアドレスが書込まれる。
At this time, as mentioned above, since the flip-flop 118 is sending out 0'', the NOT circuit 20 sends out a1'', and the address "1001" is sent from the multiplexer 22 via the multiplexer 24 to the write address of the buffer memory IJ11. Input to terminal W. The address "1001" is the address of the storage ti area 27 of the buffer memory 11, and the address to which the value P has been added by the adder circuit 10 is written.

バッファメモリ11に格納された32バイトのデータブ
ロックは、第3図(b)で説明した如く、レジスタ4に
設定されるアドレスが、マルチプレクサ16と23を経
てバッファメモリ11の読出しアドレス端子Rに送出さ
れ、4ハイド毎に読出されてバス6に送出され、先にハ
ソファメモリ11−18= の記憶領域26より読出されて送出されたアドレスに基
づき、第3図(alに示す共通メモリ3に書込まれる。
The 32-byte data block stored in the buffer memory 11 is transmitted from the address set in the register 4 to the read address terminal R of the buffer memory 11 via the multiplexers 16 and 23, as explained in FIG. 3(b). is read out every four hides and sent out to the bus 6, and based on the address that was first read out and sent out from the storage area 26 of the hash sofa memory 11-18=, the data is stored in the common memory 3 shown in FIG. 3 (al). written.

へソファメモリ11に格納された32バイトのデータブ
ロックが総て転送される左、前記同様に、レジスタ14
に格納されるバッファメモリ11の先頭アドレスAがマ
ルチプレクサ16と24を経てバッファメモリ11の書
込アドレス端子Wに入力し、データバス5からマルチプ
レクサ17を経て入力するデータブロックが、4ハイド
毎にバッファメモリ11に書込まれる。
To the left, where all 32-byte data blocks stored in the sofa memory 11 are transferred, as above, the register 14
The starting address A of the buffer memory 11 stored in the buffer memory 11 is input to the write address terminal W of the buffer memory 11 via the multiplexers 16 and 24, and the data block input from the data bus 5 via the multiplexer 17 is transferred to the buffer every 4 hides. Written into memory 11.

そして、フリップフロップ18はNOT回路19が“1
”を送出しているため、1”を再びNOT回路19と2
0及びマルチプレクサ21に送出する。
Then, the flip-flop 18 has a NOT circuit 19 of “1”.
”, 1” is sent again to NOT circuits 19 and 2.
0 and multiplexer 21.

従って、前記同様にマルチプレクサ21と23を経て、
アドレス゛’1001”がバッファメモリ11の読出し
アドレス端子Rに入力し、バッファメモリ11の記4.
! eM域27に記↑aされている共通メモリ3の次の
アドレス、即ち、共通メモリ3の先頭アドレスに値Pが
加算されたアドレスが読出され、ハス6に送出される。
Therefore, as before, via multiplexers 21 and 23,
The address "1001" is input to the read address terminal R of the buffer memory 11, and the address 4.
! The next address of the common memory 3 written in the eM area 27 ↑a, that is, the address obtained by adding the value P to the top address of the common memory 3, is read out and sent to the lotus 6.

そして、加算回路10で更に値Pが加算され、マルチプ
レクサ17を経てバッファメモリ11に送出される。
Then, the value P is further added in the adding circuit 10 and sent to the buffer memory 11 via the multiplexer 17.

この時、マルチプレクサ22と24を経てバッファメモ
リ11の書込みアドレス端子Wにはアドレス゛1000
”が入力しているため、ハ・7フアメモリ11の記憶領
域26に、この更に値Pを加算されたアドレスが格納さ
れる。
At this time, the write address terminal W of the buffer memory 11 receives the address '1000' via the multiplexers 22 and 24.
” has been input, the address to which the value P is further added is stored in the storage area 26 of the H7F memory 11.

ここで、マルチプレクサ16と23を経て、バッファメ
モリ11にレジスタ14がら4バイト毎にデータブロッ
クを読出すアドレスが、バッファメモリ11の読出アド
レス端子Rに入力し、4ハイド毎のデータブロックがハ
ス6に送出され、先にバッファメモリ11の記憶領域2
7がら送出された値Pの加算されたアドレスにより、共
通メモリ3に書込まれる。
Here, the address for reading the data block every 4 bytes from the register 14 into the buffer memory 11 is inputted to the read address terminal R of the buffer memory 11 via the multiplexers 16 and 23, and the data block every 4 bytes is is sent to storage area 2 of buffer memory 11 first.
The address to which the value P sent from 7 is added is written into the common memory 3.

若し、共通メモリ3でエラーが発生すると、共通メモリ
アダプタ2の図示省略した制御部は、フリップフロップ
18を反転させ、バッファメモリ11の記憶領域26と
27のアドレスを一つ前の状態に戻す。
If an error occurs in the common memory 3, a control unit (not shown) of the common memory adapter 2 inverts the flip-flop 18 and returns the addresses of the storage areas 26 and 27 of the buffer memory 11 to the previous state. .

従って、値Pが一つ加算される前の共通メモリ3のアド
レスが読出されるため、リカバリを行うことが出来る。
Therefore, since the address of the common memory 3 before the value P is added by one is read out, recovery can be performed.

又、共通メモリ3からデータブロックを中央処理装置1
に転送する場合は、前記同様にしてバッファメモリ11
の記憶領域26に格納されたアドレスをハス6に送出す
ると共に、加算回路10で値Pを加算されたアドレスを
記憶領域27に記憶させる。そして、共通メモリ3から
読出されたデータブロックを4ハイド毎にレジスタ14
から送出されるアドレスでバッファメモリ11に書込み
、32バイト蓄積されると、レジスタ14から送出され
るアドレスで4ハイド毎にバッファメモリ11から読出
してマルチプレクサ17を介し、データバス5に送出す
る。
Also, data blocks are transferred from the common memory 3 to the central processing unit 1.
When transferring to the buffer memory 11, do the same as above.
The address stored in the storage area 26 of is sent to the lotus 6, and the address to which the value P is added by the adder circuit 10 is stored in the storage area 27. Then, the data blocks read from the common memory 3 are stored in the register 14 every 4 hides.
When 32 bytes have been accumulated, the address sent from the register 14 is read from the buffer memory 11 every four hides and sent to the data bus 5 via the multiplexer 17.

そして、バッファメモリ11から32ハイドのデータプ
ロ・7りを転送すると、記憶領域27がら値Pを加算し
たアドレスを読出して、パス6に送出し、記憶領域26
には更に値Pを加算したアドレスを格納すると共に、次
のデータブロックをバッファメモリ11に蓄積する動作
を繰り返す。
Then, when 32 hides of data pro-7 are transferred from the buffer memory 11, the address to which the value P is added is read out from the storage area 27 and sent to the path 6, and the address added to the storage area 27 is
The address to which the value P is further added is stored in , and the operation of storing the next data block in the buffer memory 11 is repeated.

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

以上説明した如く、本発明は簡易な制御により、ハード
ウェア量を少なくしたデータ転送制御回路を提供するこ
とが出来る。
As described above, the present invention can provide a data transfer control circuit with a reduced amount of hardware through simple control.

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

第1図は本発明の原理ブロック図、 第2図は本発明の一実施例を示す回路のブロック図、 第3図は従来の技術を説明するブロック図である。 図において、 1は中央処理装置、  2ば共通メモリアダプタ、3は
共通メモリ、   4はアドレスバス、5はデータバス
、   6はハス、 7、12.13.16.17.21〜25はマルチプレ
クサ、−22= 8、9.14はレジス外 10.15は加算回路、11
はハソファメモリ、18はフリップフロップ、19.2
0はNOT回路、26.27は記憶領域、28ばアトル
ス送出手段である。
FIG. 1 is a block diagram of the principle of the present invention, FIG. 2 is a block diagram of a circuit showing an embodiment of the present invention, and FIG. 3 is a block diagram illustrating a conventional technique. In the figure, 1 is a central processing unit, 2 is a common memory adapter, 3 is a common memory, 4 is an address bus, 5 is a data bus, 6 is a hash, 7, 12.13.16.17.21 to 25 are multiplexers, -22=8, 9.14 is outside the register 10.15 is the adder circuit, 11
is a sofa memory, 18 is a flip-flop, 19.2
0 is a NOT circuit, 26.27 is a storage area, and 28 is an atlus sending means.

Claims (1)

【特許請求の範囲】 上位装置と下位装置間で転送するデータブロックを一旦
蓄積するバッファメモリ(11)を備えたデータ転送制
御回路であって、 該バッファメモリ(11)上の第1の記憶領域(26)
と第2の記憶領域(27)を指定するアドレスを交互に
切替えて送出するアドレス送出手段(28)を設け、上
位装置が送出する下位装置の先頭アドレスに基づき下位
装置に対して所定の量のデータブロックの書込み/読出
しを行わせるアドレスを作成し、該作成したアドレスを
該バッファメモリ(11)上の第1又は第2の記憶領域
(26)(27)を順次交互に選択して記憶させると共
に、該先頭アドレスから順次、次の所定の量のデータブ
ロックの書込み/読出しを行わせるアドレスを、該第1
又は第2の記憶領域(26)(27)から読出して下位
装置に送出し、上位装置が該バッファメモリ(11)に
蓄積したデータブロックを下位装置に転送するか、下位
装置が該バッファメモリ(11)に蓄積したデータブロ
ックを上位装置に転送する動作を繰り返し、下位装置で
エラーが発生した時は、該第1又は第2の記憶領域(2
6)(27)に残された該エラーの発生したアドレスを
再度送出して、リカバリすることを特徴とするデータ転
送制御回路。
[Scope of Claims] A data transfer control circuit comprising a buffer memory (11) that temporarily stores data blocks to be transferred between a higher-level device and a lower-level device, comprising: a first storage area on the buffer memory (11); (26)
and address sending means (28) that alternately switches and sends an address specifying the second storage area (27), and a predetermined amount of data is sent to the lower device based on the start address of the lower device sent by the higher device. An address for writing/reading a data block is created, and the created address is sequentially and alternately selected and stored in the first or second storage area (26) (27) on the buffer memory (11). At the same time, the first address is used to sequentially write/read the next predetermined amount of data block from the first address.
Alternatively, the data block is read from the second storage area (26) (27) and sent to the lower device, and the upper device transfers the data block accumulated in the buffer memory (11) to the lower device, or the lower device transfers the data block stored in the buffer memory (11) to the lower device. 11) is repeated to transfer the data blocks accumulated in the first or second storage area (2) to the higher-level device, and when an error occurs in the lower-level device,
6) A data transfer control circuit characterized in that the address in which the error occurred left in (27) is transmitted again to recover.
JP63120861A 1988-05-18 1988-05-18 Data transfer control circuit Expired - Fee Related JPH0833872B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63120861A JPH0833872B2 (en) 1988-05-18 1988-05-18 Data transfer control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63120861A JPH0833872B2 (en) 1988-05-18 1988-05-18 Data transfer control circuit

Publications (2)

Publication Number Publication Date
JPH01291355A true JPH01291355A (en) 1989-11-22
JPH0833872B2 JPH0833872B2 (en) 1996-03-29

Family

ID=14796767

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63120861A Expired - Fee Related JPH0833872B2 (en) 1988-05-18 1988-05-18 Data transfer control circuit

Country Status (1)

Country Link
JP (1) JPH0833872B2 (en)

Also Published As

Publication number Publication date
JPH0833872B2 (en) 1996-03-29

Similar Documents

Publication Publication Date Title
JPH0433029A (en) Memory devices and their driving methods
JPS63239546A (en) Semiconductor memory circuit
JPH0833872B2 (en) Data transfer control circuit
JPH0656604B2 (en) Information processing equipment
JPH0423119A (en) Method and device for restoration of data on array disk
JPH01181137A (en) Storage unit
JP2888062B2 (en) Information processing device
JPS63206855A (en) Data transmission equipment
JPH08179894A (en) Memory system and memory system applied to disk recording / reproducing apparatus
JPS63245745A (en) buffer storage control device
JPS60117353A (en) Substitute memory control method of memory
JPS61193230A (en) Magnetic disk controller
JPS5985560A (en) File management device
JPH0421021A (en) Data backup system for semiconductor disk device
JPH04130917A (en) Electronic disk device
JPS59128621A (en) Controlling device of dma
JPS61147358A (en) Initial program loading circuit
JPS61246848A (en) Operation hysteresis storage circuit
JPS6158920B2 (en)
JPS5854421B2 (en) information processing equipment
JPS63216157A (en) External storage controller
JPH0561814A (en) Data transfer device with rearrangement function
JPS58101358A (en) Memory controlling system
JPS6398722A (en) Magnetic disk controller
JPS60140589A (en) Memory device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees