JPH0474746B2 - - Google Patents
Info
- Publication number
- JPH0474746B2 JPH0474746B2 JP58189184A JP18918483A JPH0474746B2 JP H0474746 B2 JPH0474746 B2 JP H0474746B2 JP 58189184 A JP58189184 A JP 58189184A JP 18918483 A JP18918483 A JP 18918483A JP H0474746 B2 JPH0474746 B2 JP H0474746B2
- Authority
- JP
- Japan
- Prior art keywords
- address
- register
- data
- storage
- information
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/0207—Addressing or allocation; Relocation with multidimensional access, e.g. row/column, matrix
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Mathematical Physics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Image Processing (AREA)
- Memory System (AREA)
Description
【発明の詳細な説明】
[産業上の利用分野]
本発明は記憶手段内の特定記憶領域を他の記憶
領域に転送するデータ転送方式に関するものであ
る。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data transfer method for transferring a specific storage area within a storage means to another storage area.
[従来技術]
従来、情報処理装置等において、例えば第1図
に示す様な記憶装置1内の記憶領域内のSADDよ
りの矩形領域2を、DADDよりの矩形領域3へ
転送する場合には、以下に示す転送制御を行つて
いた。[Prior Art] Conventionally, in an information processing device or the like, when transferring a rectangular area 2 from SADD in a storage area in a storage device 1 as shown in FIG. 1 to a rectangular area 3 from DADD, for example, The transfer control shown below was performed.
第2図はデータ転送機能を有する情報処理装置
のブロツク図であり、1は記憶装置、10はデー
タ転送時の記憶装置1とのアドレス及び読み出
し/書き込みデータの制御を行う転送制御部、1
1は転送制御部内のデータの制御を行うデータ制
御部、12は同じく転送制御部10内のアドレス
の制御を行うアドレス制御部である。13は中央
処理装置、14は入出力装置である。 FIG. 2 is a block diagram of an information processing device having a data transfer function, in which 1 is a storage device, 10 is a transfer control unit that controls addresses and read/write data with the storage device 1 during data transfer;
1 is a data control unit that controls data within the transfer control unit, and 12 is an address control unit that also controls addresses within the transfer control unit 10. 13 is a central processing unit, and 14 is an input/output device.
データ制御部11の詳細を第3図に示す。 Details of the data control section 11 are shown in FIG.
図中20は矩形領域2よりの読み出しデータを
格納するSレジスタ、25はSレジスタ20の内
容をSHレジスタ26の値に従いシフトするシフ
ト部、26はSレジスタ20の値を転送先の矩形
領域3のビツト位置に合わせるためのシフト部2
6でのシフト数を格納するSHレジスタ、27は
フアンクシヨン部30での論理演算(論理積、論
理和、排他的論理和等)命令の格納されるフアン
クシヨンレジスタ、28はマスクレジスタ、29
は矩形領域3よりの読み出しデータを格納するD
レジスタ、30はSレジスタ20とDレジスタ2
9よりの値を前述のフアンクシヨンレジスタで示
される命令に従い論理演算するフアンクシヨン
部、31はフアンクシヨン部30よりの出力デー
タとDレジスタ29よりの出力データとをマスク
レジスタ28によるマスク情報によつてマスキン
グして出力し、矩形領域3への書き込みデータと
するセレクタである。これはデータ転送をビツト
単位で行うために、記憶装置1よりバイト単位
(又はワード単位)で読み出されたデータのうち
の不必要なビツトをマスクをかけて削除し、また
書き替え前のデータを有効とするためである。 In the figure, 20 is an S register that stores read data from the rectangular area 2, 25 is a shift unit that shifts the contents of the S register 20 according to the value of the SH register 26, and 26 is a rectangular area 3 to which the value of the S register 20 is transferred. Shift part 2 for adjusting to the bit position of
27 is a function register in which logical operations (AND, OR, exclusive OR, etc.) instructions are stored in the function unit 30; 28 is a mask register; 29
D stores read data from rectangular area 3
Register, 30 is S register 20 and D register 2
A function section 31 performs a logical operation on the value from 9 in accordance with the instruction indicated by the above-mentioned function register; This is a selector that masks and outputs the data to be written into the rectangular area 3. In order to perform data transfer in bit units, unnecessary bits of the data read in bytes (or words) from storage device 1 are masked and deleted, and the data before rewriting is This is to make it valid.
次にアドレス制御部12の詳細ブロツク図を第
4図に示す。 Next, a detailed block diagram of the address control section 12 is shown in FIG.
図中、40はSセレクタ、41は矩形領域2の
1行毎の読み出し開始アドレスを示すSアドレス
レジスタ、42はSアドレスレジスタ41の値を
基に記憶装置1の矩形領域2のメモリアクセス番
地を示すSアドレスカウンタ、43は加算器、4
4は矩形領域の横レングスXを示すXレジスタ、
45は横レングスX分のデータの転送終了を検知
するXカウンタ、46は矩形領域の縦レングスY
を示すYレジスタ、47は縦レングスY分のデー
タ転送終了つまり全てのデータ転送終了を検知す
るYカウンタ、48は記憶装置1の読み出しタイ
ミング制御を行うタイミング回路、49,54は
記憶装置1の1行分のレングスを示すSPレジス
タ及びDPレジスタ、50はDセレクタ、51は
矩形領域3の行毎の読み出し開始アドレスを示す
Dアドレスレジスタ、52は矩形領域3のメモリ
アクセス番地を示すDアドレスカウンタ、53は
D加算器である。 In the figure, 40 is an S selector, 41 is an S address register indicating the read start address for each row of the rectangular area 2, and 42 is a memory access address of the rectangular area 2 of the storage device 1 based on the value of the S address register 41. S address counter shown, 43 is an adder, 4
4 is an X register indicating the horizontal length X of the rectangular area;
45 is an X counter that detects the end of data transfer of horizontal length X, and 46 is vertical length Y of the rectangular area.
47 is a Y counter that detects the end of vertical length Y data transfer, that is, the end of all data transfer; 48 is a timing circuit that controls the read timing of the storage device 1; 49 and 54 are 1 of the storage device 1; SP register and DP register indicating the length of a line; 50 a D selector; 51 a D address register indicating the read start address for each line of the rectangular area 3; 52 a D address counter indicating the memory access address of the rectangular area 3; 53 is a D adder.
以上の構成で第1図に示すメモリ空間内の
SADD番地より横Xビツト、縦Yビツトの矩形領
域2をDADD番地より横Xビツト、縦Yビツト
の矩形領域3へ移動させる場合に、中央処理装置
13等より[SADD]をSセレクタ40を介して
Sアドレスレジスタ41にセツトすると共に、X
レジスタ44にビツト数Xを、Yレジスタ46に
ビツト数Yを、[DADD]をDセレクタ50を介
してDアドレスレジスタ51へ格納し、またSP
レジスタ及びDPレジスタに記憶装置1の1行分
のレングスPを格納し、データのシフトが必要な
場合にはそのシフト数をSHレジスタに格納し、
データ転送を指示する。 With the above configuration, the memory space shown in Figure 1 is
When moving rectangular area 2 of X bits horizontally and Y bits vertically from address SADD to rectangular area 3 of X bits horizontally and Y bits vertically from address DADD, [SADD] is moved from the central processing unit 13 or the like via the S selector 40. and set it in the S address register 41, and
Store the number of bits
Store the length P of one row of the storage device 1 in the register and DP register, and if data needs to be shifted, store the number of shifts in the SH register,
Instruct data transfer.
これにより転送制御部10はSアドレスレジス
タ41の値をSアドレスカウンタ42へ、Xレジ
スタ44の値をXカウンタ45へ、Yレジスタ4
6の値をYカウンタ47へ、Dアドレスレジスタ
51の値をDアドレスカウンタ52へ、それぞれ
セツトする。 As a result, the transfer control unit 10 transfers the value of the S address register 41 to the S address counter 42, the value of the X register 44 to the X counter 45, and the value of the Y register 4
The value of 6 is set to the Y counter 47, and the value of the D address register 51 is set to the D address counter 52.
そしてまずSアドレスカウンタ42の示すアド
レス番地で示される矩形領域2内のデータ(以下
S−DATAと称す)を読み出し、Sレジスタ2
0に格納する。また矩形領域3内のDアドレスカ
ウンタ52で示される番地の内容(以下D−
DATAを称す)をDレジスタに格納する。 First, the data in the rectangular area 2 indicated by the address indicated by the S address counter 42 (hereinafter referred to as S-DATA) is read out, and the data in the S register 2 is read out.
Store at 0. Also, the contents of the address indicated by the D address counter 52 in the rectangular area 3 (hereinafter D-
DATA) is stored in the D register.
データ制御部11ではSレジスタ20に格納さ
れたS−DATAを必要に応じてSHレジスタ26
にて指定された分だけシフト部25でシフトし、
このシフトした値とDレジスタに格納されたD−
DATAとをフアンクシヨンレジスタ27の指定
によりフアンクシヨン部にて論理演算し、マスク
レジスタ28によりこの論理演算されたデータ
(SD−DATA)とD−DATAとを選択し、セレ
クタ31より矩形領域3への書き込みデータとし
て出力され、Dアドレスカウンタ52で指定され
た番地に書き込まれる。マスクレジスタ28によ
マスク、及び、シフト部25によるシフトは矩形
領域3の各行の先頭と最終のビツト位置が矩形領
域2よりの転送データのスタートビツト位置のバ
イト又はワード境界と一致しない場合に、読み出
したD−DATAの一部をそのまま有効とするた
めである。この場合の概念図を第5図に示す。こ
のようにS−DATAとD−DATAのビツト位置
の差を修正する。 The data control unit 11 transfers S-DATA stored in the S register 20 to the SH register 26 as necessary.
The shift unit 25 shifts by the amount specified in ,
This shifted value and D− stored in the D register
DATA is logically operated in the function section according to the specification of the function register 27, and the logically operated data (SD-DATA) and D-DATA are selected by the mask register 28, and sent to the rectangular area 3 by the selector 31. The data is output as write data and written to the address specified by the D address counter 52. Masking by the mask register 28 and shifting by the shift unit 25 are performed when the first and last bit positions of each row in the rectangular area 3 do not match the byte or word boundary of the start bit position of the data transferred from the rectangular area 2. This is to make a part of the read D-DATA valid as is. A conceptual diagram in this case is shown in FIG. In this way, the difference in bit position between S-DATA and D-DATA is corrected.
以上でSアドレスカウンタ42で示される番地
の内容がDアドレスカウンタ52で示される番地
へ論理演算され、ビツト位置合わせを行い、転送
されたことになる。このためタイミング回路48
によりSアドレスカウンタ42がカウントアツプ
され、Xカウンタも所定数カウントダウンされ
る。同時にタイミング回路48によりDアドレス
カウンタ52がカウントアツプされる。そして次
にSアドレスカウンタ42及びDアドレスカウン
タ52で示される番地の内容の転送を行う。 As described above, the contents of the address indicated by the S address counter 42 are logically operated to the address indicated by the D address counter 52, bit alignment is performed, and the data is transferred. Therefore, the timing circuit 48
As a result, the S address counter 42 is counted up, and the X counter is also counted down by a predetermined number. At the same time, the timing circuit 48 counts up the D address counter 52. Then, the contents of the addresses indicated by the S address counter 42 and the D address counter 52 are transferred.
順次データの転送が行われ横1行分の転送が終
了するとXカウンタ45が0となる。この[Xカ
ウンタ]=0によりSアドレスレジスタ41の値
にSPレジスタ49の値をS加算器で加算した値
をSセレクタ40を介してSアドレスレジスタ4
1に格納すると共にYカウンタ47を1つカウン
トダウンする。この処理によりSアドレスレジス
タ41には次の行の矩形領域2の先頭アドレスが
セツトされる。そしてこのSアドレスレジスタ4
1の値をSアドレスカウンタ42にセツトし、X
カウンタ45に再びXレジスタ44の値をセツト
する。また同様にDアドレスレジスタ51とDP
レジスタ54の値をD加算器53により加算して
Dセレクタ50を介してDアドレスレジスタ51
へ格納し、Dアドレスレジスタ51の値をDアド
レスカウンタ52へセツトする。 Data is transferred sequentially, and when the transfer of one horizontal line is completed, the X counter 45 becomes 0. With this [X counter] = 0, the value obtained by adding the value of the SP register 49 to the value of the S address register 41 by the S adder is added to the S address register 4 via the S selector 40.
At the same time, the Y counter 47 is counted down by one. Through this process, the start address of the rectangular area 2 of the next row is set in the S address register 41. And this S address register 4
Set the value of 1 in the S address counter 42, and
The value of the X register 44 is set in the counter 45 again. Similarly, D address register 51 and DP
The value of the register 54 is added by the D adder 53 and sent to the D address register 51 via the D selector 50.
and sets the value of the D address register 51 to the D address counter 52.
こうして次の行のデータ転送を開始する。 In this way, data transfer for the next row is started.
以上の処理を繰り返し、Yカウンタ47の値が
“0”となつた時に矩形領域の転送が終了したこ
とになる。 The above process is repeated, and when the value of the Y counter 47 becomes "0", the transfer of the rectangular area is completed.
[発明が解決しようとしている課題]
従来は以上に述べた如くのデータ転送を行うの
みであり、矩形領域2の内容はそのまま残されて
いた。このため例えば記憶装置1が表示装置等の
表示メモリの場合などでは、矩形領域2に対応す
る表示を矩形領域3へ移す場合などではデータ転
送したのち改めて矩形領域2のデータを消去しな
くてはならず、処理も複雑であり、また処理時間
も多くかかつてしまう。[Problems to be Solved by the Invention] Conventionally, only the data transfer as described above was performed, and the contents of the rectangular area 2 were left as they were. For this reason, for example, if the storage device 1 is a display memory such as a display device, when moving the display corresponding to rectangular area 2 to rectangular area 3, the data in rectangular area 2 must be erased again after data transfer. However, the processing is complicated and the processing time is long.
[課題を解決するための手段]
本発明は上述従来例の欠点に鑑みなされたもの
で、記憶手段の特定の記憶領域の記憶情報を他の
記憶領域に転送すると共に、転送元の特定の記憶
領域を任意のデータで書き替え可能とし、データ
の転送と共にデータ転送元の記憶領域の書き替え
をも一度に可能としたデータ転送方式を提案する
ことを目的とする。[Means for Solving the Problems] The present invention has been made in view of the drawbacks of the above-mentioned conventional examples, and it transfers storage information in a specific storage area of a storage means to another storage area, and also transfers storage information in a specific storage area of a storage means. The purpose of the present invention is to propose a data transfer method that allows an area to be rewritten with arbitrary data, and that allows data transfer and rewriting of the data transfer source storage area at the same time.
本発明は上述の課題を解決する一手段として以
下の構成を備える。 The present invention includes the following configuration as one means for solving the above-mentioned problems.
即ち、情報を記憶するための複数の記憶位置を
有し、それぞれの記憶位置に複数ビツトの情報を
記憶する記憶手段と、記憶手段の複数の記憶位置
を指定するアドレス情報を発生する第1のアドレ
ス手段と、記憶手段の前記複数の記憶位置を指定
するアドレス情報を発生する第2のアドレス手段
と、第1のアドレス手段のアドレスに基づいて読
み出された前記記憶手段の複数の記憶位置の1つ
に書き込むべき任意の情報を記憶する他の記憶手
段と、第1のアドレス手段のアドレス情報に基づ
き記憶手段の1つの記憶位置より情報を読出す第
1の制御手段と、第1のアドレス手段のアドレス
情報に基づき他の記憶手段の前記任意の情報をマ
スクして書き込む場合、第1のアドレス手段のア
ドレス情報に基づき記憶手段の1つの記憶位置に
他の記憶手段の記憶情報の一部のビツトをマスク
して書き込む第2の制御手段と、第1の制御手段
により読み出された情報を第2のアドレス手段の
アドレスに基づき記憶手段に書き込む第3の制御
手段とを備える。 That is, a storage means having a plurality of storage locations for storing information and storing a plurality of bits of information in each storage location, and a first storage means that generates address information specifying the plurality of storage locations of the storage means. addressing means; second addressing means for generating address information specifying the plurality of storage locations of the storage means; and address means for generating address information specifying the plurality of storage locations of the storage means; another storage means for storing arbitrary information to be written into one; a first control means for reading information from one storage location of the storage means based on address information of the first address means; and a first address. When masking and writing the arbitrary information in another storage means based on the address information of the first address means, part of the storage information of the other storage means is written in one storage location of the storage means based on the address information of the first address means. and a third control means for writing the information read by the first control means into the storage means based on the address of the second address means.
[作用]
以上の構成において、図形等を記憶装置上で移
動させる時に、別途記憶した任意の情報を適時マ
スキングして書き込むことが可能となる。このた
め、あらゆる情報の転送が行なわれても、転送元
領域を、その背景に合せた最適情報で埋めること
ができる。[Operation] In the above configuration, when moving a figure or the like on the storage device, it becomes possible to mask and write any separately stored arbitrary information at an appropriate time. Therefore, even if any information is transferred, the transfer source area can be filled with optimal information that matches the background.
[実施例]
以下本発明の1実施例について図面を参照して
説明する。[Example] An example of the present invention will be described below with reference to the drawings.
第6図は本発明の1実施例に係る第2図に示す
転送制御部10のデータ制御部11の詳細を示す
図であり、第3図と同様部分には同一番号を付し
ている。 FIG. 6 is a diagram showing details of the data control section 11 of the transfer control section 10 shown in FIG. 2 according to an embodiment of the present invention, and the same parts as in FIG. 3 are given the same numbers.
本実施例では第3図に示す各レジスタに加えて
21に示すCレジスタを追加し、このCレジスタ
21には任意のデータがセツトされる。そしてシ
フト部25とフアンクシヨン部30との間にシフ
ト部25よりの出力データと前述のCレジスタ2
1よりの出力データをSEL信号32により切り替
えて出力するセレクタであるSEL1を追加し、ま
たフアンクシヨンレジスタ27とフアンクシヨン
部30に、SEL信号32により制御され、フアン
クシヨンレジスタ27よりのフアンクシヨン部3
0の論理演算指示命令と、論理演算禁止命令とを
選択して出力するFセレクタ23が追加されてい
る。 In this embodiment, in addition to the registers shown in FIG. 3, a C register 21 is added, and arbitrary data is set in this C register 21. Then, between the shift section 25 and the function section 30, the output data from the shift section 25 and the above-mentioned C register 2 are connected.
SEL1, which is a selector that switches and outputs the output data from function register 27 using SEL signal 32, is added to function register 27 and function section 30. 3
An F selector 23 is added that selects and outputs a logic operation instruction instruction of 0 and a logic operation inhibition instruction.
これは矩形領域2の[Sアドレスカウンタ]番
地の内容を読み出し、それをシフト論理演算後マ
スク処理して矩形領域3の[Dアドレスカウン
タ]番地にストアした後SEL信号をオフしてCレ
ジスタ21の内容をマスク処理のみで[Sアドレ
スカウンタ]番地へストアすることにより矩形領
域2にはデータ転送後Cレジスタ21のデータを
書き込まれている様に制御するためである。 This reads the contents of the [S address counter] address in rectangular area 2, performs a shift logical operation on it, performs mask processing, stores it in the [D address counter] address in rectangular area 3, turns off the SEL signal, and stores it in the C register 21. This is to control the rectangular area 2 so that the data of the C register 21 is written after data transfer by storing the contents of the C register 21 to the address [S address counter] only by masking.
アドレス制御部12の構成は第4図と同一構成
である。 The configuration of the address control section 12 is the same as that in FIG. 4.
以下本実施例装置のデータ転送処理を第7図の
フローチヤートを参照して詳説する。 The data transfer process of the apparatus of this embodiment will be explained in detail below with reference to the flowchart of FIG.
まずステツプ101で各レジスタに所定の設定
値をセツトする。これはSセレクタ40を介して
Sアドレスレジスタ41に“SADD”を、Dセレ
クタ50を介してDアドレスレジスタ51に
“DADD”を、Xレジスタ44に転送する矩形領
域の横レングス“X”を、Yレジスタ46に転送
する矩形領域の縦レングス“Y”を、SHレジス
タ26にシフト部25でのシスト数を、フアンク
シヨンレジスタ27にフアンクシヨン部30での
論理演算の指定命令を、マスクレジスタ28にセ
レクタ31でのマスクデータを、SPレジスタ4
9及びDPレジスタ54に記憶装置1の記憶領域
の横レングス相当数をセツトし、さらにCレジス
タ21にテータの転送後に矩形領域2に書き込む
べきデータをセツトする。 First, in step 101, predetermined setting values are set in each register. This transfers "SADD" to the S address register 41 via the S selector 40, "DADD" to the D address register 51 via the D selector 50, and the horizontal length "X" of the rectangular area to be transferred to the X register 44. The vertical length "Y" of the rectangular area to be transferred to the Y register 46, the number of cysts in the shift section 25 to the SH register 26, the instruction specifying the logical operation in the function section 30 to the function register 27, and the mask register 28 The mask data in selector 31 is transferred to SP register 4.
9 and the DP register 54 are set to a number equivalent to the horizontal length of the storage area of the storage device 1, and furthermore, the C register 21 is set to the data to be written to the rectangular area 2 after data transfer.
続いてステツプ102でYレジスタ46の値をY
カウンタ47へセツトし、ステツプ103で残りの
Sアドレスレジスタ41の値をSアドレスカウン
タ42へ、Dアドレスレジスタ51の値をDアド
レスカウンタ52へ、Xレジスタ44の値をXカ
ウンタ45へセツトする。そしてステツプ104で
記憶装置1の矩形領域2の(Sアドレスカウン
タ)番地の内容を読み出しSレジスタ20にセツ
トする。また同時にフアンクシヨン部30へは
SEL1(22)を介してシフト部25よりのデータ
が出力される様にSEL信号32をオンとする。 Next, in step 102, the value of the Y register 46 is changed to Y.
The remaining S address register 41 is set to the S address counter 42, the D address register 51 is set to the D address counter 52, and the X register 44 is set to the X counter 45 at step 103. Then, in step 104, the contents of the address (S address counter) in the rectangular area 2 of the storage device 1 are read out and set in the S register 20. At the same time, to the function section 30
The SEL signal 32 is turned on so that the data from the shift section 25 is outputted via SEL1 (22).
そのステツプ105でSレジスタ20よりのデー
タをシフト部25にてSHレジスタ26での指定
数シフトする。このシフト済のシフト部25より
の出力データはSEL1(22)に入力されるが、
SEL信号32がオンなのでSEL1(22)よりはこ
のシフト部25よりのデータが選択出力される。
またSEL信号32はFセレクタ23にも入力され
ておりフアンクシヨン部30へはフアンクシヨン
レジスタ27よりの論理演算指令が入力されてい
る。続いてステツプ106で(Dアドレスカウンタ)
番地で指定される記憶装置1の矩形領域3の内容
をDレジスタ29に読み出してくる。そしてステ
ツプ107でSEL1(22)を介してフアンクシヨン
部30に送られてくるシフト部25よりのデータ
と、Dレジスタ29の読し出しデータをフアンク
シヨン部30においてFセレクタ23を介して送
られてくるフアンクシヨンレジスタ27の指定に
従い論理演算する。そしてこの演算結果及びDレ
ジスタ29の値がセレクタ31に入力される。ま
たセレクタ31へはマスクレジスタ28にセツト
されたマスクデータも同時に入力されており、ス
テツプ108においてセレクタ31への入力データ
をこのマスクデータに従いマスキングしてマスキ
ングしたデータをデータバス16に出力する。こ
のマスキングデータは矩形領域3へ転送されるべ
きデータ形態となつており、この値をステツプ
109でDアドレスカウンタ52で示される番地に
書き込む。そしてステツプ110でSEL信号32を
オフとする。 At step 105, the data from the S register 20 is shifted by the shift section 25 by the number specified by the SH register 26. This shifted output data from the shift unit 25 is input to SEL1 (22),
Since the SEL signal 32 is on, data from this shift section 25 is selectively outputted from SEL1 (22).
The SEL signal 32 is also input to the F selector 23, and the logic operation command from the function register 27 is input to the function section 30. Next, in step 106 (D address counter)
The contents of the rectangular area 3 of the storage device 1 specified by the address are read into the D register 29. Then, in step 107, the data from the shift section 25 sent to the function section 30 via SEL1 (22) and the data read from the D register 29 are sent to the function section 30 via the F selector 23. A logical operation is performed according to the specification of the function register 27. This calculation result and the value of the D register 29 are input to the selector 31. The mask data set in the mask register 28 is also input to the selector 31 at the same time, and in step 108, the input data to the selector 31 is masked according to this mask data, and the masked data is output to the data bus 16. This masking data is in a data format that should be transferred to rectangular area 3, and this value is
109, the data is written to the address indicated by the D address counter 52. Then, in step 110, the SEL signal 32 is turned off.
これによりSEL1(22)よりはCレジスタ21
の値が選択出力され、Fセレクタ23よりはフア
クシヨンレジスタ27より論理演算禁止命令が選
択出力されることになる。このためステツプ111
に示す如くCレジスタ21の値がSEL1(22)を
介してフアンクシヨン部30に入力され、フアン
クシヨン部30では論理演算されずにそのまま出
力され、セレクタ31にはCレジスタの値がその
まま入力されることになる。 As a result, C register 21 is more important than SEL1 (22).
The value of is selected and outputted, and the logical operation prohibition instruction is selected and outputted from the F selector 23 and the function register 27. For this step 111
As shown in the figure, the value of the C register 21 is input to the function unit 30 via SEL1 (22), and the function unit 30 outputs it as is without performing any logical operation, and the value of the C register is input as is to the selector 31. become.
そしてステツプ112においてステツプ108と同様
マスクレジスタ28のマスクデータに従いマスキ
ングしてデータバス16に出力する。このデータ
をステツプ113でSアドレスカウンタ42で示さ
れる番地に書き込む。そしてステツプ114でXカ
ウンタ45の値を転送終了ビツト数n分だけカウ
ントダウンする。 Then, in step 112, as in step 108, masking is performed according to the mask data in the mask register 28 and output to the data bus 16. This data is written to the address indicated by the S address counter 42 in step 113. Then, in step 114, the value of the X counter 45 is counted down by the number n of transfer end bits.
以上の処理が終了すると矩形領域3へのnビツ
ト分のデータ転送が終了し、かつ矩形領域2へは
Cレジスタの値が書き込まれたことになりステツ
プ115で1行分のデータ転送が終了し、Xカウン
タ45が“0”になつたか否か調べる。Xカウン
タ45が“0”であれば後述するステツプ118
に進み、“0”でなければステツプ116でSアドレ
スカウンタ42を1つカウントアツプし、続いて
ステツプ117でDアドレスカウンタ52を1つカ
ウントアツプしてステツプ104に戻る。 When the above processing is completed, the data transfer for n bits to rectangular area 3 is completed, and the value of the C register is written to rectangular area 2, and the data transfer for one line is completed in step 115. , check whether the X counter 45 has reached "0". If the X counter 45 is “0”, step 118 will be described later.
If it is not "0", the S address counter 42 is incremented by one in step 116, and then the D address counter 52 is incremented by one in step 117, and the process returns to step 104.
ステツプ115でXカウンタ45の値が“0”と
判定され、横レングスX分のデータの転送が終了
するとステツプ118に進み、Yカウンタ47を1
つカウントダウンさせる。そしてステツプ119で
Yカウンタ47が“0”か否か調べる。Yカウン
タ47が“0”の場合には全てのデータ転送が終
了したことになりデータ転送処理を終了する。 When the value of the X counter 45 is determined to be "0" in step 115 and the transfer of data for the horizontal length X is completed, the process proceeds to step 118, where the Y counter 47 is set to 1.
countdown. Then, in step 119, it is checked whether the Y counter 47 is "0" or not. If the Y counter 47 is "0", it means that all data transfer has been completed, and the data transfer process is ended.
データ転送の終了していない場合にはYカウン
タ47は正の値であり、ステツプ120に進み、D
アドレスレジスタ51とDPレジスタ54の値を
D加算器53で加算し、再びアドレスレジスタ5
1にセツトする。これによりDアドレスレジスタ
51には矩形領域3の次の行の先頭アドレスがセ
ツトされる。次にステツプ121に進み、ステツプ
120と同様にSPレジスタ49とSアドレスレジス
タ41の値をS加算器43で加算しSアドレスレ
ジスタ41に矩形領域2の先頭アドレスをセツト
する。そしてステツプ103に戻りデータ転送を続
ける。 If the data transfer has not been completed, the Y counter 47 is a positive value, and the process proceeds to step 120, where the data transfer is completed.
The values of the address register 51 and DP register 54 are added by the D adder 53, and the values of the address register 51 and DP register 54 are added again.
Set to 1. As a result, the start address of the next row of the rectangular area 3 is set in the D address register 51. Then go to step 121 and
Similarly to 120, the values of the SP register 49 and the S address register 41 are added by the S adder 43, and the start address of the rectangular area 2 is set in the S address register 41. Then, the process returns to step 103 to continue data transfer.
以上説明した様に本実施例ではCレジスタ21
に任意のデータをセツトすることにより転送元の
記憶領域にこのCレジスタ21のデータを格納す
ると同時にデータ転送も行なえるため、例えば表
示装置の表示メモリに使用する場合にはCレジス
タ21に“ブランク”コードを、数字データ格納
メモリに使用する場合には“0”コードをセツト
するのみで、データ転送及び転送元のメモリ領域
のクリアが行なえる。 As explained above, in this embodiment, the C register 21
By setting arbitrary data in the C register 21, it is possible to store the data in the C register 21 in the transfer source storage area and to transfer the data at the same time. When using the ``0'' code in a numeric data storage memory, data transfer and clearing of the transfer source memory area can be performed simply by setting the ``0'' code.
またCレジスタ21を複数のデータを格納可能
なバツフア構造とすることにより矩形領域2の領
域全般にわたる特定パターンを指定、格納するこ
とができる。 Further, by making the C register 21 have a buffer structure capable of storing a plurality of pieces of data, a specific pattern over the entire rectangular area 2 can be specified and stored.
[効果]
以上説明した様に本発明によれば、記憶手段の
特定領域の記憶情報を他の記憶領域に転送すると
共に転送元の特定領域を任意の情報で書き替える
データ転送方式が提供でき、従来の様に2つに分
かれて個別に実行されていた処理が1つの動作で
しかも1つのアドレスを共用しながら実行するこ
とが可能となり処理時間の短縮と共に、制御の簡
素化が図れる。[Effects] As explained above, according to the present invention, it is possible to provide a data transfer method that transfers storage information in a specific area of a storage means to another storage area and rewrites the specific area of the transfer source with arbitrary information. Processes that were conventionally divided into two and executed individually can now be executed as one operation while sharing one address, reducing processing time and simplifying control.
更に、図形等を記憶装置上で移動させる時に
も、任意の情報を適時マスキングして書き込むこ
とが可能であり、あらゆる情報の転送が行なわれ
ても、転送元領域を、その背景に合せた最適情報
で埋めることができる。 Furthermore, when moving figures etc. on a storage device, it is possible to mask and write arbitrary information at the appropriate time, and even if all kinds of information are transferred, the transfer source area can be optimally adjusted to match the background. It can be filled with information.
第1図は記憶装置のデータの転送領域を模式的
に表した図、第2図はデータ転送可能な情報処理
装置のブロツク図、第3図は従来のデータ転送制
御におけるデータ制御部のブロツク図、第4図は
データ転送制御部におけるアドレス制御部のブロ
ツク図、第5図はデータ転送のビツト位置の差の
修正例を示す図、第6図は本発明の1実施例装置
のデータ転送制御におけるデータ制御部のブロツ
ク図、第7図は本実施例装置のデータ転送制御フ
ローチヤートである。
図中、1…記憶装置、10…転送制御部、11
…データ制御部、12…アドレス制御部、13…
中央処理装置、14…入出力装置、20…Sレジ
スタ、21…Cレジスタ、22…SEL1、23…
Fセレクタ、25…シフト部、26…SHレジス
タ、27…フアンクシヨンレジスタ、28…マス
クレジスタ、29…Dレジスタ、30…フアンク
シヨン部、31…セレクタ、40…Sセレクタ、
41…Sアドレスレジスタ、42…Sアドレスカ
ウンタ、43…S加算器、44…Xレジスタ、4
5…Xカウンタ、46…Yレジスタ、47…Yカ
ウンタ、48…タイミング回路、49…SPレジ
スタ、50…Dセレクタ、51…Dアドレスレジ
スタ、52…Dアドレスカウンタ、53…D加算
器、54…DPレジスタ、60…SEL、62…保
持レジスタである。
Fig. 1 is a diagram schematically representing the data transfer area of a storage device, Fig. 2 is a block diagram of an information processing device capable of data transfer, and Fig. 3 is a block diagram of a data control unit in conventional data transfer control. , FIG. 4 is a block diagram of the address control section in the data transfer control section, FIG. 5 is a diagram showing an example of correcting the difference in bit position in data transfer, and FIG. 6 is a diagram showing data transfer control of an apparatus according to one embodiment of the present invention. FIG. 7 is a block diagram of the data control unit in FIG. In the figure, 1...storage device, 10...transfer control unit, 11
...Data control section, 12...Address control section, 13...
Central processing unit, 14...I/O device, 20...S register, 21...C register, 22...SEL1, 23...
F selector, 25... Shift section, 26... SH register, 27... Function register, 28... Mask register, 29... D register, 30... Function section, 31... Selector, 40... S selector,
41...S address register, 42...S address counter, 43...S adder, 44...X register, 4
5...X counter, 46...Y register, 47...Y counter, 48...timing circuit, 49...SP register, 50...D selector, 51...D address register, 52...D address counter, 53...D adder, 54... DP register, 60...SEL, 62...holding register.
Claims (1)
し、それぞれの記憶位置に複数ビツトの情報を記
憶する記憶手段と、 前記記憶手段の前記複数の記憶位置を指定する
転送元アドレス情報を発生する第1のアドレス手
段と、 前記記憶手段の前記複数の記憶位置を指定する
転送先アドレス情報を発生する第2のアドレス手
段と、 前記第1のアドレス手段のアドレスに基づいて
読み出された前記記憶手段の複数の記憶位置の1
つに書き込むべき任意の情報を記憶する他の記憶
手段と、 前記第1のアドレス手段のアドレス情報に基づ
き前記記憶手段の1つの記憶位置より情報を読出
す第1の制御手段と、 前記第1のアドレス手段のアドレス情報に基づ
き前記記憶手段の1つの記憶位置に前記他の記憶
手段の記憶情報の一部のビツトをマスクして書き
込む第2の制御手段と、 前記第1の制御手段により読み出された情報を
前記第2のアドレス手段のアドレスに基づき前記
記憶手段に書き込む第3の制御手段とを有するこ
とを特徴とするデータ転送方式。[Scope of Claims] 1. Storage means having a plurality of storage locations for storing information and storing a plurality of bits of information in each storage location, and a transfer for specifying the plurality of storage locations of the storage means. a first address means for generating source address information; a second address means for generating forwarding address information specifying the plurality of storage locations of the storage means; based on the address of the first address means; one of the plurality of storage locations of the storage means read out;
another storage means for storing arbitrary information to be written in the first address means; a first control means for reading information from one storage location of the storage means based on address information of the first address means; a second control means for masking and writing some bits of the storage information of the other storage means into one storage location of the storage means based on the address information of the address means of the first control means; and third control means for writing the issued information into the storage means based on the address of the second address means.
Priority Applications (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58189184A JPS6081660A (en) | 1983-10-12 | 1983-10-12 | Data transfer method |
| DE3437528A DE3437528C2 (en) | 1983-10-12 | 1984-10-12 | Data transfer system |
| US08/076,929 US6101572A (en) | 1983-10-12 | 1993-06-16 | Data transfer system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58189184A JPS6081660A (en) | 1983-10-12 | 1983-10-12 | Data transfer method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6081660A JPS6081660A (en) | 1985-05-09 |
| JPH0474746B2 true JPH0474746B2 (en) | 1992-11-27 |
Family
ID=16236907
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP58189184A Granted JPS6081660A (en) | 1983-10-12 | 1983-10-12 | Data transfer method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6081660A (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6242274A (en) * | 1985-08-19 | 1987-02-24 | Fanuc Ltd | Image processor |
| JP5291285B2 (en) | 2006-07-11 | 2013-09-18 | サンデン株式会社 | Sealed terminal device for electric compressor |
| US11455264B2 (en) * | 2020-08-10 | 2022-09-27 | International Business Machines Corporation | Minimizing delay while migrating direct memory access (DMA) mapped pages |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5954091A (en) * | 1982-09-20 | 1984-03-28 | Toshiba Corp | Electronic computer |
-
1983
- 1983-10-12 JP JP58189184A patent/JPS6081660A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6081660A (en) | 1985-05-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0425582B2 (en) | ||
| US5095422A (en) | Information transferring method and apparatus for transferring information from one memory area to another memory area | |
| US4779232A (en) | Partial write control apparatus | |
| JPH0474746B2 (en) | ||
| JPS6081659A (en) | Data transfer system | |
| US4860109A (en) | Image processing apparatus | |
| US6101572A (en) | Data transfer system | |
| JP2617252B2 (en) | Printer | |
| JP2568443B2 (en) | Data sizing circuit | |
| JP2854301B2 (en) | Memory access circuit | |
| JP2552366B2 (en) | Bit block transfer controller | |
| JPH0120514B2 (en) | ||
| JPH10222460A (en) | Data transfer controller | |
| JPH04225453A (en) | data processing equipment | |
| JPH0195063A (en) | Output data rotating method | |
| JPS6058493B2 (en) | information processing equipment | |
| JPS6360491A (en) | memory access circuit | |
| JPS60134334A (en) | Print control method | |
| JPS6158920B2 (en) | ||
| JP2003187583A (en) | Semiconductor storage device and control device | |
| JPH01114952A (en) | Inter-memory transfer system for information processor | |
| JPH0969043A (en) | Microcomputer embedded controller | |
| JPS6265077A (en) | Pattern conversion method | |
| JPS62209639A (en) | Memory modifier light circuit | |
| JPH0554665A (en) | Memory device and semiconductor device with built-in memory device |