JPH0122941B2 - - Google Patents

Info

Publication number
JPH0122941B2
JPH0122941B2 JP16016281A JP16016281A JPH0122941B2 JP H0122941 B2 JPH0122941 B2 JP H0122941B2 JP 16016281 A JP16016281 A JP 16016281A JP 16016281 A JP16016281 A JP 16016281A JP H0122941 B2 JPH0122941 B2 JP H0122941B2
Authority
JP
Japan
Prior art keywords
data
byte
word
input
order
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
Application number
JP16016281A
Other languages
Japanese (ja)
Other versions
JPS5862723A (en
Inventor
Isamu Yasui
Etsuo Masuda
Tomiji Hara
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.)
Hitachi Ltd
NTT Inc
Original Assignee
Hitachi Ltd
Nippon Telegraph and Telephone Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd, Nippon Telegraph and Telephone Corp filed Critical Hitachi Ltd
Priority to JP16016281A priority Critical patent/JPS5862723A/en
Publication of JPS5862723A publication Critical patent/JPS5862723A/en
Publication of JPH0122941B2 publication Critical patent/JPH0122941B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/12Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor
    • G06F13/122Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor where hardware performs an I/O function other than control of data transfer

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)

Description

【発明の詳細な説明】 本発明は、入出力装置と主記憶装置との間に介
在し、入出力装置との間ではバイト単位で、主記
憶装置との間ではワード単位でデータの転送授受
を行なうデータ転送制御装置(データチヤネル装
置)に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention is an intermediary between an input/output device and a main memory, and transfers data between the input/output device in bytes and between the main memory and the main memory in units of words. The present invention relates to a data transfer control device (data channel device) that performs.

データチヤネル装置は入出力装置と主記憶装置
との間に介在し、それら装置間でのデータ転送授
受を制御すべく機能するが、それら装置各々で取
り扱うデータの単位が異なる場合には何等かの規
約が必要である。即ち、入出力装置で取り扱うデ
ータがバイト単位である一方、主記憶装置でのそ
れがワード単位である場合にはバイト単位データ
の主記憶装置への記憶順序方向および主記憶装置
からのワードデータの入出力装置へのバイト単位
送出順序方向は適当に予め定められていなければ
ならないということである。通常主記憶装置から
読出したワードデータは、上位バイト位置から下
位バイト位置に向かつてバイトデータが順次入出
力装置に送出される一方、ワードデータの記憶に
おいても同様に入出力装置から上位バイト位置か
ら下位バイト位置に向かつてバイトデータが順次
送られて来てワードデータを構成し記憶されるよ
うになつている。勿論これとは逆に下位バイト位
置から上位バイト位置に向かつてバイトデータを
読み出したり、記憶せしめるようにすることも可
能である。
A data channel device is interposed between an input/output device and a main storage device, and functions to control data transfer between these devices. Regulations are necessary. In other words, if the data handled by the input/output device is in bytes, but the data in the main memory is in words, the direction in which the byte-based data is stored in the main memory and the word data from the main memory are different. This means that the byte-by-byte sending order direction to the input/output device must be appropriately predetermined. Normally, word data read from main memory is sequentially sent from the upper byte position to the lower byte position, and the byte data is sequentially sent to the input/output device.However, when storing word data, the input/output device similarly starts from the upper byte position. Byte data is sequentially sent toward the lower byte position to form word data and to be stored. Of course, on the contrary, it is also possible to read and store byte data from the lower byte position to the upper byte position.

第1図はデータチヤネル装置(DCH)を含む
データ処理システムのシステム構成を示したもの
である。これによるとデータチヤネル装置3は中
央制御装置(CC)2からのスタート入出力命令
により制御動作を開始し、自ら主記憶装置
(MM)1におけるチヤネル装置番号対応の固定
メモリアドレスよりコマンドアドレスワード
(CAW)を読み出すようにされる。コマンドアド
レスワードの内容はチヤネル制御語(CCW)の
主記憶装置1上における格納メモリアドレスとさ
れ、このメモリアドレスにもとづき間接的にチヤ
ネル制御語が読み出されるようになつている。第
2図は主記憶装置1上におけるコマンドアドレス
ワードとチヤネル制御語(本例では2ワード構
成)の格納メモリアドレス関係を示している。第
3図aに示す如くメモリアドレスAにおける格納
内容はチヤネル制御語の先頭メモリアドレスBと
されていることから、メモリアドレスB、B+1
よりチヤネル制御語CCW0,CCW1が読み出さ
れるものである。第3図b,cはそれらチヤネル
制御語CCW0,CCW1のデータフオーマツトを
示したもので、読出、書込等を指定するコマンド
識別(CMC)部分、DCH動作のバリエーシヨン
を指定するフラグ(FLG)部分、データ転送量
(WC)部分、主記憶装置上のデータ転送開始ア
ドレス(DA)部分、主記憶装置上のデータ転送
開始バイト位置指定(SBC)部分などの制御情
報よりなる。データチヤネル装置はこれら制御情
報にもとづき入出力装置(IO)4と主記憶装置
1との間のデータ転送授受を制御しているわけで
ある。
FIG. 1 shows the system configuration of a data processing system including a data channel device (DCH). According to this, the data channel device 3 starts the control operation in response to a start input/output command from the central controller (CC) 2, and then automatically starts the command address word ( CAW). The contents of the command address word are the storage memory address of the channel control word (CCW) on the main memory device 1, and the channel control word is read out indirectly based on this memory address. FIG. 2 shows the storage memory address relationship between the command address word and the channel control word (in this example, two words) on the main memory device 1. As shown in FIG. 3a, since the content stored at memory address A is the first memory address B of the channel control word, memory addresses B, B+1
Channel control words CCW0 and CCW1 are read out. Figures 3b and 3c show the data formats of these channel control words CCW0 and CCW1, including a command identification (CMC) part that specifies reading, writing, etc., and a flag (FLG) part that specifies a variation of DCH operation. ) part, data transfer amount (WC) part, data transfer start address (DA) part on the main memory, and data transfer start byte position designation (SBC) part on the main memory. The data channel device controls data transfer between the input/output device (IO) 4 and the main storage device 1 based on this control information.

第4図は1ワードが4バイトよりなる場合での
バイト位置とそれら各バイト位置に割付される
SBCとの関係を示している。図示の如く31〜24
ビツト位置(最上位バイト位置)、23〜16ビツト
位置、15〜8ビツト位置、7〜0ビツト位置(最
下位バイト位置)にはそれぞれ0,3,2,1の
SBCが割付されているものである。SBCが指定
された場合での主記憶装置1上におけるバイト単
位データの読出時の順序方向および記憶時の順序
方向は例えば以下のようである。
Figure 4 shows the byte positions and the allocation to each byte position when one word consists of 4 bytes.
Indicates the relationship with SBC. 31-24 as shown
The bit positions (most significant byte positions), 23 to 16 bit positions, 15 to 8 bit positions, and 7 to 0 bit positions (lowest byte positions) are 0, 3, 2, and 1, respectively.
This is the one to which an SBC has been assigned. When SBC is specified, the order direction when reading and storing data in units of bytes on the main memory device 1 is as follows, for example.

即ち、第5図aはSBCの値が0である場合で
の読出時および記憶時の順序方向を示したもので
ある。本例の場合には予め上位バイト位置から下
位バイト位置に向かつてバイト単位にデータが読
出され、また、記憶されるようになつている。し
たがつて、CMCが書込モードである場合にはデ
ータチヤネル装置は先ずメモリアドレスDAにお
けるデータ1ワードを読み出しバツフアに蓄え次
にバツフアレジスタの最上位バイト位置よりバイ
トデータを取り出し入出力装置へ転送し、以降下
位バイト位置に向かつて順次バイトデータを転送
するようになつている。メモリアドレスDAでの
1ワードデータの転送が終了すれば、メモリアド
レスをWCによつて指定された分だけ順次更新す
る度に同様な主記憶装置からの読出および入出力
装置への転送が行なわれるわけである。また、
CMCが読出モードである場合は入出力装置から
のバイトデータは先ずデータチヤネル装置内バツ
フアレジスタの最上位バイト位置に蓄えた後、以
降下位バイト位置に向かつて順次蓄え、1ワード
を構成すると主記憶装置へ記憶させる。メモリア
ドレスでのデータ記憶が終了すれば、メモリアド
レスをWCによつて指定された分だけ順次更新し
つつ同様な記憶制御が行なわれるものである。第
5図bはSBCの値が3の場合での読出および記
憶の順序方向を示したものであるが、これについ
ては第5図aに示す場合より明らかであるので特
に説明は要しない。なお、第5図a,bにおいて
○中の数字はバイト単位データの読出および記憶
の順序を示す。
That is, FIG. 5a shows the order direction at the time of reading and storing when the value of SBC is 0. In this example, data is read out and stored in byte units in advance from the upper byte position to the lower byte position. Therefore, when the CMC is in write mode, the data channel device first reads one word of data at memory address DA and stores it in the buffer, then extracts the byte data from the most significant byte position of the buffer register and sends it to the input/output device. After that, byte data is transferred sequentially toward the lower byte position. Once the transfer of one word of data at memory address DA is completed, similar reading from the main memory and transfer to the input/output device are performed every time the memory address is sequentially updated by the amount specified by WC. That's why. Also,
When the CMC is in read mode, the byte data from the input/output device is first stored in the most significant byte position of the buffer register in the data channel device, and then stored sequentially toward the lower byte position to form one word. Store it in the storage device. When data storage at a memory address is completed, similar storage control is performed while sequentially updating the memory address by the amount specified by the WC. FIG. 5b shows the order of reading and storing when the value of SBC is 3, but this is clearer than the case shown in FIG. 5a, so no special explanation is required. In addition, in FIGS. 5a and 5b, the numbers in circles indicate the order of reading and storing data in units of bytes.

以上のように従来にあつては主記憶装置の1ワ
ード上におけるバイト単位データの読出および記
憶の順序方向は上位バイト位置から下位バイト位
置方向か、またはその逆の方向に固定されている
わけであるが、順序方向が固定的である場合には
互換性の点で問題があるというものである。とい
うのは、読出および記憶の順序方向が相互に逆で
あるデータ処理システムを想定すれば、一方のデ
ータ処理システムの入出力装置で記録された記録
媒体を他方のデータ処理システムで読み出す際は
データの順序方向が全く逆となりデータとしての
用を全くなさなくなるからである。入出力装置が
通信制御装置であるような場合には他のデータ処
理システムとはそのままでは接続し得ないもので
ある。
As described above, conventionally, the order direction of reading and storing byte unit data on one word of the main memory device is fixed from the upper byte position to the lower byte position, or vice versa. However, if the order direction is fixed, there is a problem in terms of compatibility. This is because, assuming a data processing system in which the reading and storing order directions are mutually opposite, when a recording medium recorded by the input/output device of one data processing system is read by the other data processing system, the data This is because the order direction of the data will be completely reversed and it will be of no use as data. If the input/output device is a communication control device, it cannot be directly connected to other data processing systems.

本発明の目的は、記憶装置の1ワード上におけ
るバイト単位データの読出および記憶の順序を任
意の方向に設定可とするデータ転送制御装置を供
するにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a data transfer control device that allows the reading and storing order of byte unit data on one word of a storage device to be set in any direction.

この目的のため本発明は、チヤネル制御語中に
新たにデータ編集順序制御フラグを設け、このフ
ラグの状態によつて記憶装置の1ワード上におけ
るバイト単位データの読出および記憶の順序方向
を制御するようにしたものである。
For this purpose, the present invention newly provides a data editing order control flag in the channel control word, and the state of this flag controls the order direction of reading and storing byte unit data on one word of the storage device. This is how it was done.

以下、本発明を第6図から第9図により説明す
る。
The present invention will be explained below with reference to FIGS. 6 to 9.

先ず第6図a,bは本発明に係るチヤネル制御
語CCW0,CCW1のデータフオーマツトの一例
を示したものである。第3図b,cに示すものと
実質的に異なるところはチヤネル制御語CCW0
に新たに1ビツトデータとしてデータ編集順序制
御フラグ(BPF)が設けられていることである。
このフラグがセツト状態にあるかリセツト状態に
あるかによつて順序方向が制御されるが、ここで
仮にリセツト状態にある場合の順序方向が上位バ
イト位置から下位バイト位置に向かう方向とすれ
ば、セツト状態にある場合での順序方向は下位バ
イト位置から上位バイト位置に向かう方向として
規定されることになる。第7図は順序方向が下位
バイト位置から上位バイト位置方向とされた場合
でのバイト位置とSBCとの関係を示しているが、
SBCの値が0、2であれば読出および記憶の順
序はそれぞれ第8図a,bに示す如くになること
はこれまでの説明より推して明らかである。ま
た、順序方向が上位バイト位置から下位バイト位
置に向かう方向の場合は第4図、第5図a,bで
説明した通りである。ここで注意すべきことは順
序方向が逆となれば、バイト位置に割付される
SBCの値も第4図、第7図より明らかなように
変化するということである。したがつて、順序方
向を制御する場合にはこのことも考慮されなけれ
ばならない。
First, FIGS. 6a and 6b show an example of the data format of channel control words CCW0 and CCW1 according to the present invention. What is substantially different from what is shown in Figures 3b and 3c is the channel control word CCW0.
A data editing order control flag (BPF) is newly provided as 1-bit data.
The order direction is controlled depending on whether this flag is in the set state or the reset state, but if we assume that the order direction when the flag is in the reset state is from the upper byte position to the lower byte position, then The order direction in the set state is defined as the direction from the lower byte position to the upper byte position. Figure 7 shows the relationship between the byte position and SBC when the order direction is from the lower byte position to the upper byte position.
It is clear from the above explanation that if the value of SBC is 0 or 2, the order of reading and storing will be as shown in FIGS. 8a and 8b, respectively. Further, when the order direction is from the upper byte position to the lower byte position, it is as explained in FIGS. 4 and 5 a and b. What should be noted here is that if the order direction is reversed, the allocation will be made to the byte position.
As is clear from Figures 4 and 7, the SBC value also changes. Therefore, this must also be taken into consideration when controlling the order direction.

第9図は本発明に係るデータチヤネル装置の要
部を一例として抽出図示したものである。2ワー
ドのチヤネル制御語のうち本発明に直接関係する
のはCCW0だけであるから、これに含まれる制
御情報にもとづきデータの転送制御を行なわんと
するものである。この制御において最も重要なこ
とはバイト位置選択信号を如何にして発生せしめ
るかである。
FIG. 9 is an extracted diagram showing the essential parts of the data channel device according to the present invention as an example. Since only CCW0 is directly related to the present invention among the two-word channel control word, data transfer control is performed based on the control information contained therein. The most important thing in this control is how to generate the byte position selection signal.

バイト位置選択信号BP0〜BP3はSBCの2ビ
ツトデータとBPFの1ビツトデータより容易に
発生し得る。即ち、CCW0に含まれるSBCの2
ビツトデータはそれぞれ4進ダウンカウンタを構
成するフリツプフロツプ5,6にプリセツトさ
れ、フリツプフロツプ5,6の出力はアンドゲー
ト(2入力否定、1入力否定をも含む)9〜12
でデコードされるようになつている。アンドゲー
ト9〜12はそれぞれフリツプフロツプ5,6の
出力が0、1、2、3である場合のみその旨のデ
コード出力を出力するようになつているものであ
る。ここでBPFの1ビツトデータがセツトされ
ているフリツプフロツプ7の出力をゲート制御信
号としてアンドゲート(1入力否定をも含む)1
3〜16、17〜20に図示の如くに入力せしめ
る一方、第4図および第7図に示すバイト位置と
SBCとの関係を考慮しアンドゲート9〜12の
出力をアンドゲート13〜20に所定の関係で入
力せしめるようにすれば、目的とするバイト位置
選択信号BP0〜BP3がそれぞれオアゲート21
〜24より得られることになる。この場合バイト
位置選択信号BP0〜BP3はそれぞれ主記憶装置
の1ワード上における31〜24ビツト位置、7〜0
ビツト位置、15〜8ビツト位置、23〜16ビツト位
置を選択するゲート制御信号として使用される。
Byte position selection signals BP0 to BP3 can be easily generated from 2-bit data of SBC and 1-bit data of BPF. That is, 2 of SBC included in CCW0
The bit data is preset to flip-flops 5 and 6, which constitute a quaternary down counter, respectively, and the outputs of the flip-flops 5 and 6 are input to AND gates (including 2-input negation and 1-input negation) 9 to 12.
It is now decoded by AND gates 9 to 12 are designed to output decoded outputs only when the outputs of flip-flops 5 and 6 are 0, 1, 2, and 3, respectively. Here, the output of the flip-flop 7 to which the 1-bit data of the BPF is set is used as the gate control signal for the AND gate (including 1-input negation) 1.
3 to 16 and 17 to 20 as shown in the figure, and the byte positions shown in Figures 4 and 7.
By inputting the outputs of AND gates 9 to 12 to AND gates 13 to 20 in a predetermined relationship in consideration of the relationship with SBC, the target byte position selection signals BP0 to BP3 can be input to the OR gates 21 and 20, respectively.
~24. In this case, the byte position selection signals BP0 to BP3 correspond to the 31st to 24th bit positions and the 7th to 0th bit positions on one word of the main memory, respectively.
It is used as a gate control signal to select the bit position, 15th to 8th bit position, and 23rd to 16th bit position.

ところで一般にデータチヤネル装置においては
主記憶装置との間でのデータ転送は1ワード容量
のバツフアレジスタ34を介して、また、入出力
装置との間でのデータ転送は1バイト容量のバツ
フアレジスタ35を介して行なわれるようになつ
ている。したがつて、これらバツフアレジスタ3
4,35間でバイト単位データの読出および記憶
の順序方向が制御されるようになつている。
CMCが書込モードである場合主記憶装置よりワ
ード単位で読み出されたデータは一旦バツフアレ
ジスタ34に記憶された後バイト単位でバツフア
レジスタ35を介して入出力装置に転送される
が、この場合での転送方向制御はCMCのモード
状態によつている。書込モードである場合にはフ
リツプフロツプ8はセツト状態にあることから、
アンドゲート29〜32およびオアゲート33を
介し入出力装置方向にデータが転送可となつてい
るものである。しかしながら、バツフアレジスタ
34における4バイトデータのうち、何れの順序
で転送されるかはバイト位置選択信号BP0〜BP
3によつているわけである。例えばSBCの値が
3であつて、BPFのデータ状態が“0”、即ちフ
リツプフロツプ7がリセツト状態にある場合は先
ずBP3,BP2,BP1の順でバイト位置選択信
号が順次出力され、これによりアンドゲート30
〜32が順次開かれることによつてメモリアドレ
スDA対応の3バイトデータが所定順に転送され
るものである。この後バツフアレジスタ34には
メモリアドレスDA+1対応の4バイトデータが
転送記憶されるが、これに対してはBP0,BP
3,BP2,BP1の順でバイト位置選択信号を順
次発生せしめることによつて所定順に4バイトデ
ータを転送し得る。以下最終メモリアドレスに至
るまでメモリアドレスを更新する度にメモリアド
レスDA+1の場合と同様な制御を行なえばよい
ものである。
By the way, in general, in a data channel device, data is transferred to and from the main memory via a 1-word buffer register 34, and data is transferred to and from an input/output device via a 1-byte buffer register. 35. Therefore, these buffer registers 3
The order direction of reading and storing byte unit data is controlled between 4 and 35.
When the CMC is in write mode, data read from the main memory in word units is temporarily stored in the buffer register 34 and then transferred in byte units to the input/output device via the buffer register 35. Transfer direction control in this case depends on the mode state of CMC. Since the flip-flop 8 is in the set state in the write mode,
Data can be transferred to the input/output device via AND gates 29 to 32 and OR gate 33. However, the order in which the 4-byte data in the buffer register 34 is transferred is determined by the byte position selection signals BP0 to BP.
It depends on 3. For example, when the value of SBC is 3 and the data state of BPF is "0", that is, the flip-flop 7 is in the reset state, the byte position selection signals are first output in the order of BP3, BP2, and BP1. gate 30
32 are sequentially opened, thereby transferring 3-byte data corresponding to memory address DA in a predetermined order. After this, 4-byte data corresponding to memory address DA+1 is transferred and stored in the buffer register 34, but for this, BP0, BP
By sequentially generating byte position selection signals in the order of 3, BP2, and BP1, 4-byte data can be transferred in a predetermined order. Thereafter, the same control as in the case of memory address DA+1 may be performed every time the memory address is updated until the final memory address is reached.

また、SBCの値が3であつて、フリツプフロ
ツプ7がセツト状態には先ずBP2,BP3,BP
0、したがつてアンドゲート31,30,29が
順次開かれてメモリアドレスDA対応の3バイト
データが所定順に転送されることになる。この後
はWCによつて指定された分の最終メモリアドレ
スに至るまでメモリアドレスを更新する度にBP
1,BP2,BP3,BP0のバイト位置選択信号
を順次発生せしめるようにするものである。1バ
イトのデータが転送終了する度に既述のダウンカ
ウンタを1カウントダウンすれば、所望通りのバ
イト位置選択信号が順次発生されるわけである。
Also, when the value of SBC is 3 and flip-flop 7 is in the set state, first BP2, BP3, BP
0, therefore, the AND gates 31, 30, and 29 are sequentially opened, and the 3-byte data corresponding to the memory address DA is transferred in a predetermined order. After this, BP is used every time the memory address is updated until the final memory address specified by WC is reached.
Byte position selection signals 1, BP2, BP3, and BP0 are sequentially generated. By counting down the aforementioned down counter by 1 each time one byte of data is transferred, desired byte position selection signals are sequentially generated.

CMCが書込モードである場合は以上のようで
あるが、読出モードである場合には入出力装置か
らのバイトの単位のデータはバツフアレジスタ3
5を介してバツフアレジスタ34に一旦記憶され
た後ワード単位で主記憶装置に記憶される。即
ち、この場合にはフリツプフロツプ8がリセツト
状態にあることから、入出力装置からのバイト単
位データはバツフアレジスタ35、アンドゲート
(1入力否定)25〜28、バツフアレジスタ3
4を介し主記憶装置に記憶されるようになつてい
るものである。この場合にも4バイト容量のバツ
フアレジスタ34の何れのバイト位置に入出力装
置より時系列に転送されてくるバイト単位データ
が一時的に如何なる態様で記憶せしめられるかは
バイト位置選択信号によつている。例えばSBC
の値が3であつて、フリツプフロツプ7がセツト
状態にある場合を想定すると、メモリアドレス
DAに対して書込のアクセスが実行される直前に
おいては、BP2,BP3,BP0のバイト位置選
択信号が順次発生され、したがつてアンドゲート
27,26,25が順次開かれて3バイトデータ
が所定順にバツフアレジスタ34に記憶されるも
のである。メモリアドレスDAに対してそれら3
バイトデータが記憶せしめられた後はWCによつ
て指定された分の最終メモリアドレスに至るまで
メモリアドレスを更新する度にBP1,BP2,
BP3,BP0のバイト位置選択信号を順次発生せ
しめればよいものである。
When the CMC is in the write mode, the above is the case, but when the CMC is in the read mode, the data in bytes from the input/output device is stored in the buffer register 3.
5, the data is once stored in the buffer register 34, and then stored in the main memory unit in word units. That is, in this case, since the flip-flop 8 is in the reset state, byte unit data from the input/output device is sent to the buffer register 35, the AND gates (1 input negation) 25 to 28, and the buffer register 3.
The data is stored in the main storage device via 4. In this case as well, the byte position selection signal determines in which byte position of the 4-byte capacity buffer register 34 the byte unit data transferred in time series from the input/output device is temporarily stored. It's on. For example SBC
Assuming that the value of is 3 and flip-flop 7 is in the set state, the memory address
Immediately before a write access is executed to DA, byte position selection signals BP2, BP3, and BP0 are generated in sequence, and therefore, AND gates 27, 26, and 25 are opened in sequence to read 3-byte data. The data are stored in the buffer register 34 in a predetermined order. Those 3 for memory address DA
After the byte data is stored, BP1, BP2,
It is sufficient to sequentially generate the byte position selection signals BP3 and BP0.

以上説明したように本発明は、チヤネル制御語
中にデータ編集順序制御フラグを設け、このフラ
グの状態如何によつて主記憶装置より読み出され
たワードデータのバイト単位による入出力装置方
向への転送順序と入出力装置から主記憶装置へ転
送されるバイトデータのワードデータ上における
記憶位置順序とを制御するようにしたものであ
る。本発明によれば、バイト単位のデータはデー
タ編集順序制御フラグにより全く逆の順序で入出
力装置方向へ転送され、また、ワードデータを構
成する際は全く逆の位置順序で記憶されることも
可能とされるから、従来見受けられていた欠点は
解消されるという効果がある。
As explained above, the present invention provides a data editing order control flag in the channel control word, and depending on the state of this flag, the word data read from the main memory is processed in byte units toward the input/output device. The transfer order and the storage position order on word data of byte data transferred from the input/output device to the main storage device are controlled. According to the present invention, byte unit data is transferred to the input/output device in a completely reverse order using the data editing order control flag, and when forming word data, it may be stored in a completely reverse position order. Since it is possible to do so, it has the effect of eliminating the drawbacks that have been seen in the past.

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

第1図は、データチヤネル装置を含むデータ処
理システムのシステム構成を示す図、第2図は、
データチヤネル装置が主記憶装置より読み出すチ
ヤネルコマンドワードとチヤネル制御語の格納メ
モリアドレス関係を示す図、第3図a,b,cは
それぞれコマンドアドレスワード(CAW)、チヤ
ネル制御語CCW0,CCW1のデータフオーマツ
トを示す図、第4図は、1ワードが4バイトより
なる場合に各バイト位置に対して割付されるデー
タ転送開始バイト位置指定制御情報(SBC)と
そのバイト位置との関係を示す図、第5図a,
b,は、SBCの値がそれぞれ0、3とされた場
合での主記憶装置上におけるバイト単位データの
読出順序と記憶順序を示す図、第6図a,bは、
それぞれ本発明に係るチヤネル制御語CCW0,
CCW1のデータフオーマツトを示す図、第7図
は、バイト単位データの読出および記憶の順序が
逆とされる場合に各バイト位置に対して割付され
るSBCとそのバイト位置との関係を示す図、第
8図a,bは、バイト単位データの読出および記
憶の順序が逆とされる場合においてSBCの値が
それぞれ0、2とされたときの主記憶装置上にお
けるバイト単位データの読出順序と記憶順序を示
す図、第9図は本発明に係るデータチヤネル装置
の要部を一例として抽出して示す図である。 5〜8…フリツプフロツプ、9〜20,25〜
32…アンドゲート、21〜24,33…オアゲ
ート、34,35…バツフアレジスタ。
FIG. 1 is a diagram showing the system configuration of a data processing system including a data channel device, and FIG.
A diagram showing the storage memory address relationship of the channel command word and channel control word that the data channel device reads from the main memory. Figure 3a, b, and c are data of the command address word (CAW) and channel control words CCW0 and CCW1, respectively. Figure 4, which shows the format, is a diagram showing the relationship between the data transfer start byte position designation control information (SBC) assigned to each byte position and that byte position when one word consists of 4 bytes. , Figure 5a,
Figures 6a and 6b are diagrams showing the reading order and storage order of byte unit data on the main memory when the SBC values are 0 and 3, respectively.
Channel control word CCW0, respectively according to the present invention.
Figure 7, which shows the data format of CCW1, is a diagram showing the relationship between the SBC allocated to each byte position and the byte position when the order of reading and storing byte unit data is reversed. , Figures 8a and 8b show the reading order of byte unit data on the main memory when the SBC values are 0 and 2, respectively, when the order of reading and storing byte unit data is reversed. FIG. 9, a diagram showing the storage order, is a diagram showing an example of the essential parts of the data channel device according to the present invention. 5~8...Flip Flop, 9~20, 25~
32...AND gate, 21-24, 33...OR gate, 34,35...Buffer register.

Claims (1)

【特許請求の範囲】[Claims] 1 入出力装置と主記憶装置との間に介在し、該
主記憶装置より読み出されたチヤネル制御語に示
される制御内容に従い上記入出力装置との間では
バイト単位で、上記主記憶装置との間ではワード
単位でデータの転送授受を行なうデータ転送制御
装置において、チヤネル制御語内にデータ編集順
序制御フラグを設け、該フラグの設定有無によつ
て主記憶装置より読み出されたワードデータのバ
イト単位による入出力装置方向への転送順序と、
入出力装置から主記憶装置へ転送されるバイトデ
ータのワードデータ上での記憶位置順序とを制御
する手段を設けたことを特徴とするデータ転送制
御装置。
1 Interposed between the input/output device and the main storage device, and according to the control content indicated in the channel control word read from the main storage device, data is transmitted between the input/output device and the main storage device in byte units. In a data transfer control device that transfers data in units of words, a data editing order control flag is provided in the channel control word, and the word data read from the main memory is controlled depending on whether the flag is set or not. The order of transfer in the direction of the input/output device in units of bytes,
1. A data transfer control device comprising means for controlling the storage position order of byte data on word data transferred from an input/output device to a main storage device.
JP16016281A 1981-10-09 1981-10-09 Data transfer controlling device Granted JPS5862723A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16016281A JPS5862723A (en) 1981-10-09 1981-10-09 Data transfer controlling device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16016281A JPS5862723A (en) 1981-10-09 1981-10-09 Data transfer controlling device

Publications (2)

Publication Number Publication Date
JPS5862723A JPS5862723A (en) 1983-04-14
JPH0122941B2 true JPH0122941B2 (en) 1989-04-28

Family

ID=15709198

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16016281A Granted JPS5862723A (en) 1981-10-09 1981-10-09 Data transfer controlling device

Country Status (1)

Country Link
JP (1) JPS5862723A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6210756A (en) * 1985-07-09 1987-01-19 Fujitsu Ltd Communication system between plural processors

Also Published As

Publication number Publication date
JPS5862723A (en) 1983-04-14

Similar Documents

Publication Publication Date Title
EP0217479A2 (en) Information processing unit
JPH0122941B2 (en)
JPS6127780B2 (en)
JPS57153334A (en) File readout and write-in control system
JP2944193B2 (en) Data receiving device
JPS5847729B2 (en) Data transfer method
JPS6124737B2 (en)
JPS639254B2 (en)
JPS6019820B2 (en) data transfer control device
JPS6047626B2 (en) Data buffer control method
JPS6019810B2 (en) Buffer memory control method
JPH01296362A (en) System for protecting secrecy of recording medium
JPH0348353A (en) Input/output controller
JPH01188966A (en) Magnetic disk controller containing cache
JPH04242846A (en) Data storage device
JPS5819965A (en) Recording device
JPS6173295A (en) Magnetic bubble memory device
JPS61107593A (en) Magnetic bubble memory device
JPH04188350A (en) Memory circuit and decentralized processing system
JPH0212346A (en) Data assurance system
JP2000242553A (en) Method for transferring data
JPS6336462A (en) Serial data receiving circuit
JPH01173149A (en) Memory module
JPS5920135B2 (en) Data transfer method
JPH06162283A (en) IC card data transfer device