JPS5946012B2 - Data transfer control method - Google Patents

Data transfer control method

Info

Publication number
JPS5946012B2
JPS5946012B2 JP2953577A JP2953577A JPS5946012B2 JP S5946012 B2 JPS5946012 B2 JP S5946012B2 JP 2953577 A JP2953577 A JP 2953577A JP 2953577 A JP2953577 A JP 2953577A JP S5946012 B2 JPS5946012 B2 JP S5946012B2
Authority
JP
Japan
Prior art keywords
data
address
byte
word
data transfer
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
JP2953577A
Other languages
Japanese (ja)
Other versions
JPS53114620A (en
Inventor
和男 炭谷
龍志 広谷
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 JP2953577A priority Critical patent/JPS5946012B2/en
Publication of JPS53114620A publication Critical patent/JPS53114620A/en
Publication of JPS5946012B2 publication Critical patent/JPS5946012B2/en
Expired legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)

Description

【発明の詳細な説明】 本発明は、1語nバイト(n=2に、に■正整数)の語
構成をもつワード・アドレス体系の記憶装置と独立のバ
イト・アドレス体系をもつ入出力装置との間のデータ転
送制御方式、特に記憶装置の使用効率を向上させるため
の転送制御に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention provides a memory device with a word addressing system in which one word consists of n bytes (n = 2, positive integer) and an input/output device with an independent byte addressing system. The present invention relates to a data transfer control method between the computer and the computer, and in particular to a transfer control method for improving the efficiency of storage device usage.

入出力装置側より指定してくるバイト・アドレスをその
まま記憶装置のワード・アドレスとして転送すると、記
憶装置の転送エリアに空白部が生じ、記憶容量の有効利
用が計れない欠点がある。
If a byte address specified by an input/output device is directly transferred as a word address to a storage device, a blank space will be created in the transfer area of the storage device, which has the disadvantage that the storage capacity cannot be used effectively.

すなわち、従来、バイ ト・アドレスにより1バイ ト
または2バイトのデータ転送を行う入出力装置10と、
1語2バイト(16ビット)で構成される記憶装置MM
との間の転送は、第1図および第2図に示すような形態
で行われている。第1図は入出力装置(以下10と記す
)が記憶装置(以下MMと記す)に対して1回に1バイ
ト単位で転送する場合を示し、第2図は10がMMに対
して1回に2バイト単位で転送する場合を示している。
That is, conventionally, an input/output device 10 that transfers 1 byte or 2 bytes of data using a byte address,
Memory device MM consisting of 2 bytes (16 bits) per word
Transfer between the two is performed in the form shown in FIGS. 1 and 2. Figure 1 shows the case where the input/output device (hereinafter referred to as 10) transfers one byte at a time to the storage device (hereinafter referred to as MM), and Figure 2 shows the case where 10 transfers one byte to the MM. This shows the case where data is transferred in units of 2 bytes.

第1図において(太aに示すように、10側のバイト・
アドレスをアドレス線で、またデータをデータ線で転送
することにより、を())MM側ではバイト・アドレス
をそのままワード・アドレスとして、データをMMに格
納しているため、MMの奇数アドレスに対しては上位バ
イトが、また偶数アドレスに対しては下位バイトが゛0
0゛と空白になり、MMの使用効率が半減している。
In Figure 1 (as shown in thick a), the byte on the 10th side
By transferring the address using the address line and the data using the data line, the MM side uses the byte address as a word address and stores the data in the MM. For even addresses, the upper byte is '0', and for even addresses, the lower byte is '0'.
It becomes blank at 0゛, and the MM usage efficiency is halved.

MMの使用効率を上げるためには、AB、CD、EF、
・・・のバイト・データをワード・データにプログラム
的に構成し、MMの再度格納する必要がある。次に、第
2図においては、aに示すように10側のデータを2バ
イトずつデータ線で送り、また偶数アドレスをバイト・
アドレス線で転送することにより、をのMMではバイト
・アドレスをそのままワード・アドレスとしてデータを
MMに格納するため、第1図の場合と同じように、MM
の使用効率が半減している。本発明の目的は、上記の欠
点を解消するため、ワード・アドレス体系のメモリ・ア
ドレスと異なるバイト・アドレス体系の入出力装置とメ
モリとの間でデータ転送する際、入出力装置のバイト・
アドレスをメモリ・アドレスに変換し、データを編集す
ることにより、メモリの使用効率を向上し、プログラム
によるメモリ内容の再配置を不要にすることにある。
In order to increase the usage efficiency of MM, AB, CD, EF,
It is necessary to programmatically configure the byte data of . . . into word data and store it again in the MM. Next, in Fig. 2, as shown in a, data on the 10 side is sent by two bytes each byte, and even addresses are sent by byte.
By transferring data through the address line, the byte address is stored in the MM as a word address, so the MM
The usage efficiency has been halved. SUMMARY OF THE INVENTION An object of the present invention is to eliminate the above-mentioned drawbacks when data is transferred between an input/output device and memory using a byte addressing system different from memory addresses using a word addressing system.
By converting addresses into memory addresses and editing data, the purpose is to improve memory usage efficiency and eliminate the need for programs to rearrange memory contents.

上記の目的は、ワード・アドレス体系のメモリ・アドレ
スとは独立のバイト・アドレス体系を有する入出力装置
と1ワードnバイトで構成される記憶装置との間のデー
タ転送において、該入出力装置と記憶装置の間にデータ
転送制御装置を設け、該データ転送制御装置により入出
力装置側のバイト・アドレスを記憶装置のワード・アド
レスに変換することによつて達成される。
The above purpose is to transfer data between an input/output device having a byte addressing system that is independent of the memory address of the word addressing system and a storage device consisting of 1 word and n bytes. This is achieved by providing a data transfer control device between the storage devices and converting byte addresses on the input/output device side into word addresses in the storage device by the data transfer control device.

以下、本発明の実施例を図面により説明する。Embodiments of the present invention will be described below with reference to the drawings.

第3図は、データ転送制御が行われるシステムのプロツ
ク図である。10とMMの間には、メモリ制御装置MC
Uおよびデータ転送制御装置DTGUが接続され、これ
らの装置は中央処理装置CPUにより転送起動がかけら
れる。
FIG. 3 is a block diagram of a system in which data transfer control is performed. Between 10 and MM is a memory control device MC.
U and a data transfer control unit DTGU are connected, and these devices are activated for transfer by the central processing unit CPU.

データ転送制御装置DTCUからA,B,C,D,の種
類を有するバスが延長さへこのバスに磁気テープ装置M
T、プリンタ装置PTR等の10が接続される。バスA
は、16ビツト分(2バイト)転送用のデータ線、バス
BはバスAを1バイトまたは2バイト(1語)で使用す
ることを指定する制御線、バスCはデータ線Aのデータ
を格納する。バイト・アドレスを指定するアドレス線、
バスDはデータの転送方向を示すデータ方向指定線であ
る。データ転遜推u御装置DTCUは、10が1回に1
バイト単位でデータをMMに転送する際C丸バイト・ア
ドレスの値を1/2に変換し、かつ2バイトのデータを
MMの1語に編集する機能を有し、一方10が1回に2
バイト単位でデータをMMに転送する際は、バイト・ア
ドレスの値を1/2に変換して、MMに格納する機能を
有する。
A bus having types A, B, C, and D is extended from the data transfer control unit DTCU to the magnetic tape device M.
10 such as T and printer device PTR are connected. Bus A
is a data line for transferring 16 bits (2 bytes), bus B is a control line that specifies using bus A for 1 byte or 2 bytes (1 word), and bus C stores data on data line A. do. address lines specifying byte addresses;
Bus D is a data direction designation line indicating the data transfer direction. The data conversion control unit DTCU is 10 at a time.
When transferring data to MM in bytes, it has the function of converting the value of the C circle byte address to 1/2 and editing 2 bytes of data into one word of MM, while 10 is transferred 2 at a time.
When transferring data to the MM in units of bytes, it has a function of converting the value of the byte address to 1/2 and storing it in the MM.

第4図は、データ転送制御装置のプロツク図、第5図、
第6図は第4図におけるシフト・レジスタの動作説明図
、第7図はデータ転送および格納状態説明図である。
FIG. 4 is a block diagram of the data transfer control device, FIG.
FIG. 6 is an explanatory diagram of the operation of the shift register in FIG. 4, and FIG. 7 is an explanatory diagram of data transfer and storage states.

先ず、Oから1回に、1バイト単位でデータをMMに転
送する場合、第4図の0の1000番地のアドレスAD
がバイト・アドレス線Cを介して送られ、バイト・ワー
ド指定線Bにはバイト指定が、方向指定線}には10か
らMMに向う方向がそれぞれ指定される。
First, when transferring data from O to MM in 1 byte units at a time, address AD at address 1000 of 0 in Figure 4.
is sent via the byte/address line C, the byte/word designation line B designates a byte, and the direction designation line } designates the direction from 10 to MM.

8ビツト・データ0A゛がデータ線Aを介して転送され
る。
8-bit data 0A' is transferred via data line A.

バイト・アドレス線Cのアドレスは、16ビツトを4ビ
ツトずつの2進化16進法で表わされるので、1000
番地は第5図aに示すような符号になる。
The address on the byte address line C is expressed in binary coded hexadecimal notation with 16 bits each consisting of 4 bits, so it is 1000.
The address will have a code as shown in Figure 5a.

アドレス線C上の1000番地は、制御装置DTCUの
シフトレジスタSRで第6図A,bに示すように1ビツ
ト右方向にシフトされ、第5図bに示すように800番
地に変換されてメモリ・アドレス・レジスタMARにセ
ツトされる。第4図においてMMは記憶装置を示すもの
で、その内容はOからのデータ転送後のものである。な
お、MMは上記記憶装置MMの上記データ転送前の内容
を示すもので、MMと重複して示してあるがMMなる記
臆装置が実在するわけではない。ここでメモリ・アドレ
ス・レジスタMARの800番地でMMにアクセスして
、MMに示すデータ転送前のMMの800番地の内容8
XX″を読出す。この時10からのバイトアドレスの最
下位ビツトが60″でかつバイト・ワード指定線Bがバ
イト指定なのでデータ・アセンブル・レジスタDARの
上位側UPにはデータ線Aの上位側に乗つているデータ
6A″が、下位側LWにはMMの800番地から読出し
たデータの下位側データ1X″がセツトされる。その後
再びメモリ・アドレス・レジスタMARの800番地で
MMがアクセスされ、データ・アセンブル●レジスタD
ARの上位にセツトされているデータ1A,X″がMM
の800番地上位に格納される。次に、第4図の10の
1001番地のアドレスADが送られてきてシフト・レ
ジスタSRにより1ビツト右方向にシフトされて800
番地に変換された後、メモリ・アドレス・レジスタMA
Rにセツトされる。
The address 1000 on the address line C is shifted one bit to the right by the shift register SR of the control unit DTCU as shown in FIGS. 6A and b, and converted to address 800 as shown in FIG. - Set in address register MAR. In FIG. 4, MM indicates a storage device, the contents of which are after data transfer from O. Note that MM indicates the contents of the storage device MM before the data transfer, and although it is shown overlapping with MM, there is no actual storage device called MM. Here, MM is accessed at address 800 of the memory address register MAR, and the contents of address 800 of MM before data transfer shown in MM8
XX'' is read. At this time, the least significant bit of the byte address from 10 is 60'' and the byte/word designation line B is byte designation, so the upper side UP of the data assemble register DAR has the upper side of the data line A. The lower-order data 1X'' of the data read from address 800 of MM is set in the lower-order LW. After that, MM is accessed again at address 800 of memory address register MAR, and data assembly ● register D
Data 1A,X'' set above AR is MM
It is stored at address 800 above. Next, the address AD at address 1001 of 10 in FIG.
After being converted to an address, the memory address register MA
Set to R.

メモリ・アドレス・レジスタMARの800番地でMM
をアクセスし、データ6A,X″を読出す。この時10
からのバイト・アドレスの最下位ビツトが61゛でかつ
バイト・ワード指定線Bがバイト指定なのでDARの上
位側UPにはMMの800番地から読出したデータの上
位側データ“A″が、下位側LWにはデータ線Aの下位
側に乗つているデータ6B1がセツトされる。その後、
再びMMの800番地がアクセスされて、データ・アセ
ンブル・レジスタDARで編集された6A,B1がMM
に格納される。このようにして、10の1002番地、
1003番地のデータ3,4は、第7図aに示すように
、上位8ビツト、下位8ビツトとちどり形に交互に転送
され、データ転送匍脚装置DTCUのデータ・アセンブ
ルレジスタDARの上位部分UP,下位部分LWに交互
にセツトされ、ここで編集された後、バイト・アドレス
をワード・アドレスに変換したメモリ・アドレス801
番地上位、801番地下位のエリアに順次格納される。
逆に、MMのデータを10側に転送する場合にも10か
らのバイト・アドレスをシフト・レジスタSRにより1
ビツト右方向にシフトしたメモリ・アドレスでMMをア
クセスし読出したデータを10に転送する。
MM at address 800 of memory address register MAR
and reads data 6A,X''. At this time, 10
Since the least significant bit of the byte address from MM is 61, and the byte/word designation line B is byte designation, the upper side UP of the DAR contains the upper data "A" of the data read from address 800 of the MM, and the lower side Data 6B1 on the lower side of data line A is set to LW. after that,
Address 800 of MM is accessed again, and 6A and B1 edited by data assemble register DAR are stored in MM.
is stored in In this way, address 1002 of 10,
Data 3 and 4 at address 1003 are transferred alternately, with the upper 8 bits and lower 8 bits, as shown in FIG. , the memory address 801 which is set alternately in the lower part LW and is edited here, and the byte address is converted into a word address.
The data is sequentially stored in the upper address area and the lower address area of 801.
Conversely, when transferring MM data to the 10 side, the byte address from 10 is transferred to 1 by shift register SR.
Access MM with the memory address shifted to the right by bits and transfer the read data to 10.

次に、10から1回に2バイト(1語)単位でデータを
MMに転送する場合、第4図10の1000番地のアド
レスADがバイ,ト・アドレス線Cを介して転送され、
バイト・ワード指定線Bにはワード指定が、方向指定線
Dには10からMM方向がそれぞれ指定される。
Next, when data is transferred from 10 to MM in units of 2 bytes (1 word) at a time, the address AD at address 1000 in FIG. 4 is transferred via the byte address line C,
A word designation is designated on the byte/word designation line B, and a direction from 10 to MM is designated on the direction designation line D, respectively.

16ビツト・データDTの“A,B″がデータ線Aを介
して転送され、制御装置DTCUのデータ・アセンブル
・レジスタDARにセツトされる。
"A, B" of 16-bit data DT is transferred via data line A and set in data assemble register DAR of control unit DTCU.

アドレス線C上の1000番地がシフト・レジスタSR
で800番地に変換さべ メモリ・アドレス・レジスタ
MARにセツトされた後、MMの800番地がアクセス
されてデータ●アセンブル●レジスタDARの内容がそ
のまま格納される。同様にして第7図のbにおいて10
が1002番地のバイト・アドレス指定で送信してきた
データ31は、シフトレジスタSRによりMMのワード
●アドレス801番地に変換されて、MMに格納される
Address 1000 on address line C is shift register SR
After being set in the memory address register MAR, address 800 of MM is accessed and the contents of the data assembly register DAR are stored as is. Similarly, in b of Fig. 7, 10
The data 31 sent by byte address 1002 is converted by the shift register SR to the word address 801 of the MM, and is stored in the MM.

第7図bに示すように、バイト・アドレス1004,1
006番地・・・に対して、データ線A上にはデータ5
6,78がワード単位で連続的に転送されるので、デー
タの編集はされることなく、アドレ入変換のみでMMに
順次格納される。
As shown in Figure 7b, byte address 1004,1
Data 5 is on data line A for address 006...
Since data 6 and 78 are transferred continuously in word units, the data is not edited and is sequentially stored in the MM only by address input conversion.

以上は、バイトアドレスを有する10と、1ワード2バ
イトで構成されるMMとのデータ転送制御の説明である
が、本発明によればMMとは独立のアドレス体系を有す
る10と1ワードnバイト(n=2K,K=正整数)で
構成されるMM間でのデータ転送制御方式にも適用可能
であり、データ転送制御装置DTCUのアドレス変換及
びデータ編集によりMMのエリアに空白部を生じること
もなく、又その為にプログラムによるデータ編集もする
ことなくメモリの使用効率を低下させることなく、有効
に使用できる。
The above is an explanation of data transfer control between 10, which has a byte address, and MM, which is composed of 1 word and 2 bytes, but according to the present invention, 10, which has an address system independent of MM, and 1 word, n bytes. (n = 2K, K = positive integer) It is also applicable to a data transfer control method between MMs consisting of MMs, which prevents blank spaces from occurring in the MM area due to address conversion and data editing by the data transfer control unit DTCU. Therefore, the memory can be used effectively without deteriorating the memory usage efficiency without having to edit the data by a program.

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

第1図、第2図は従来における10側からMM側に対す
る1バイト転送および2バイト転送の説明図、第3図は
本発明の一実施例を示すシステムのプロツク図、第4図
は第3図におけるデータ転送制御装置のプロツク図、第
5図、第6図は第4図におけるシフト・レジスタの動作
説明図、第7図はデータ転送および格納状態説明図であ
る。 10:入出力装置、MM:主記憶装置、MCU:メモリ
制御装置、CPU:中央処理装置、DTCU:データ転
送制御装置、MT:磁気テープ装置、PTR:紙テープ
読取装置、A:データ線、B:バイト・ワード指定線、
C:バイト・アドレス線、D:データ転送方向指定線、
DAR:データ・アセンブル・レジスタ、SR:シフト
・レジスタ、MAR:メモリ・アドレス・レジスタ、A
D:アドレス、DT:データ。
1 and 2 are explanatory diagrams of conventional 1-byte transfer and 2-byte transfer from the 10 side to the MM side, FIG. 3 is a block diagram of a system showing an embodiment of the present invention, and FIG. 5 and 6 are diagrams for explaining the operation of the shift register in FIG. 4, and FIG. 7 is a diagram for explaining data transfer and storage states. 10: input/output device, MM: main memory, MCU: memory control unit, CPU: central processing unit, DTCU: data transfer control unit, MT: magnetic tape device, PTR: paper tape reader, A: data line, B: Byte/word designation line,
C: Byte address line, D: Data transfer direction designation line,
DAR: Data assembly register, SR: Shift register, MAR: Memory address register, A
D: Address, DT: Data.

Claims (1)

【特許請求の範囲】[Claims] 1 記憶装置のメモリ・アドレスとほ独立のバイト単位
にメモリアドレスが付与されるバイト・アドレス体系を
有する入出力装置と1ワードnバイトで構成されワード
単位にメモリアドレスが付与されるワード・アドレス体
系の記憶装置との間のデータ転送において、該入出力装
置と記憶装置の間にデータ転送制御装置を設け、該デー
タ転送制御装置により入出力装置がデータ転送時に指定
するバイト・アドレスを記憶装置のワード・アドレスに
変換して記憶装置と入出力装置の間でデータ転送するこ
とを特徴とするデータ転送制御方式。
1. An input/output device with a byte addressing system in which a memory address is assigned in byte units that is almost independent of the memory address of the storage device, and a word addressing system in which one word consists of n bytes and a memory address is assigned in word units. When transferring data to and from a storage device, a data transfer control device is provided between the input/output device and the storage device, and the data transfer control device controls the byte address specified by the input/output device at the time of data transfer to the storage device. A data transfer control method characterized by converting data into word addresses and transferring data between a storage device and an input/output device.
JP2953577A 1977-03-17 1977-03-17 Data transfer control method Expired JPS5946012B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2953577A JPS5946012B2 (en) 1977-03-17 1977-03-17 Data transfer control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2953577A JPS5946012B2 (en) 1977-03-17 1977-03-17 Data transfer control method

Publications (2)

Publication Number Publication Date
JPS53114620A JPS53114620A (en) 1978-10-06
JPS5946012B2 true JPS5946012B2 (en) 1984-11-09

Family

ID=12278796

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2953577A Expired JPS5946012B2 (en) 1977-03-17 1977-03-17 Data transfer control method

Country Status (1)

Country Link
JP (1) JPS5946012B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5949639A (en) * 1982-09-16 1984-03-22 Hitachi Ltd Word length varying circuit of storage circuit
JPS61226881A (en) * 1985-03-30 1986-10-08 Toshiba Corp Image data processor

Also Published As

Publication number Publication date
JPS53114620A (en) 1978-10-06

Similar Documents

Publication Publication Date Title
US4631671A (en) Data processing system capable of transferring single-byte and double-byte data under DMA control
JPS62297952A (en) Storage system for variable length data
CA1242803A (en) Microprocessor with option area facilitating interfacing with peripheral devices
JPH0122940B2 (en)
EP0240606B1 (en) Pipe-line processing system and microprocessor using the system
JPS5946012B2 (en) Data transfer control method
EP0214870B1 (en) System for controlling a data transfer instruction with an extension storage device
JPH05197619A (en) Memory control circuit for multi-cpu
JPH0225958A (en) High-speed data transfer system
JPH0376503B2 (en)
JPS60186964A (en) Vector processor
JPH0246967B2 (en)
JPS6278641A (en) Cache memory
JPS6112582B2 (en)
JP2672497B2 (en) Data processing device
JPH0344748A (en) Read control system for memory data
JPS6180447A (en) Store control system of memory
JPH11184797A (en) Dma controller and method therefor and recording medium for recording control program
JPH0571979B2 (en)
JPS55112661A (en) Memory control unit
JP2589006B2 (en) Information processing device
JPH01310463A (en) Buffer storage
JPS63191224A (en) Bit order inverting circuit
JPH05276550A (en) Station data backup system
JPS6127780B2 (en)