JPS61273648A - Memory address generating circuit - Google Patents

Memory address generating circuit

Info

Publication number
JPS61273648A
JPS61273648A JP11720585A JP11720585A JPS61273648A JP S61273648 A JPS61273648 A JP S61273648A JP 11720585 A JP11720585 A JP 11720585A JP 11720585 A JP11720585 A JP 11720585A JP S61273648 A JPS61273648 A JP S61273648A
Authority
JP
Japan
Prior art keywords
register
address
alu
memory
contents
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.)
Pending
Application number
JP11720585A
Other languages
Japanese (ja)
Inventor
Yukio Urushibata
漆畑 幸雄
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP11720585A priority Critical patent/JPS61273648A/en
Publication of JPS61273648A publication Critical patent/JPS61273648A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To produce a memory address where a base and a partial address are connected to each other at high speed by providing an ALU which is used in an OR mode with a partial address together with a shift circuit and a register for the output of the ALU. CONSTITUTION:A control part 16 reads out the contents of a register Rn and supplied them to a register 12 for latching with a specific instruction. Then the part 16 supplies the contents of a register Rn+1 to a shift circuit 14 through an ALU 13 for shifting and supplies the output data of the circuit 14 to a register 15 for latching. The part 16 switches the ALU 13 to an OR mode designating state to read out the contents of a register Rn+2 to supply them to the ALU 13. Here the ALU 13 is set to an OR mode to perform the OR operation of the contents of the register 15 and the contents of the Rn+2. The output of said OR operation is supplied to the circuit 14 and the shift result is latched by the register 15. The contents of the register Rn+3 are processed in the same way and the connected memory addresses can be produced at the high speed.

Description

【発明の詳細な説明】 [発明の技術分野] この発明は、特に画像処理装置の画像メモリをメモリア
クセスする場合に好適するメモリアドレス生成回路に関
する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a memory address generation circuit particularly suitable for accessing an image memory of an image processing apparatus.

[発明の技術的背景とその問題点1 画像メモリ内の任意の1点(任意のデータ位置)は、第
3図に示すように、論理的にはX、Y座標で示される。
[Technical Background of the Invention and Problem 1 Thereof An arbitrary point (arbitrary data position) in an image memory is logically indicated by X and Y coordinates, as shown in FIG.

一方、画像メモリのアドレスは、物理的にはCPUのア
ドレス空間上に割当てられるのが一般的であり、そのデ
ータの並びは512x512x8ビツト構成の画像メモ
リの場合であれば例えば第4図のようになる。したがっ
て、画像メモリに対する物理的なアドレスは、第5図に
示すようにX、Yアドレスを連結□した形となる。なお
第5図においてアドレスの一部を成すベースアドレスB
は、該当する画像メモリのアドレス空間内先頭位置を指
定するもので、例えば画像メモリが複数枚ある場合であ
れば画像メモリを指定するための識別情報、即ち画像メ
モリ番号とも解される。
On the other hand, the address of the image memory is generally physically allocated in the address space of the CPU, and the data is arranged as shown in Figure 4, for example, in the case of an image memory with a 512x512x8 bit configuration. Become. Therefore, the physical address for the image memory is in the form of a concatenation of X and Y addresses, as shown in FIG. In addition, in Fig. 5, the base address B that forms part of the address
is used to designate the leading position in the address space of the corresponding image memory, and for example, if there are multiple image memories, it can also be interpreted as identification information for specifying the image memory, that is, the image memory number.

さて、画像メモリを論理的に扱う場合には、X。Now, when handling image memory logically, X.

Yアドレスが分離している方が当然扱い易い。そこで、
通常は(画像メモリを論理的に扱う場合には)第6図に
示すような分離独立した形でX、Yアドレスを表現して
いる。このため、実際に画像メモリをアクセスする場合
には、第5図に示した形式のアドレスに変換して使用す
る必要がある。
Of course, it is easier to handle if the Y address is separated. Therefore,
Normally (when image memory is handled logically), X and Y addresses are expressed in separate and independent forms as shown in FIG. Therefore, when actually accessing the image memory, it is necessary to convert the address into the format shown in FIG. 5 before use.

従来、この変換(即ち画像メモリアクセス用メモリアド
レスの生成)は、ソフトウェアのサブルーチン等を用い
て行なわれていた。このため画像メモリアクセス速度の
低下を招き問題であった。
Conventionally, this conversion (that is, generation of a memory address for image memory access) has been performed using a software subroutine or the like. This caused a problem in that the image memory access speed decreased.

そこで、画像メモリアクセス用メモリアドレスが高速で
生成できるハードウェアの実現が要望されていた。
Therefore, there has been a demand for hardware that can generate memory addresses for image memory access at high speed.

[発明の目的コ この発明は上記事情に鑑みてなされたものでその目的は
、任意のメモリ内データ位置がベースアドレスおよび複
数の部分アドレスで指定されるものにおいて、ベースア
ドレスおよび複数の部分アドレスが連結されたメモリア
ドレスが高速で生成できるメモリアドレス生成回路を提
供することにある。
[Purpose of the Invention] This invention has been made in view of the above circumstances, and its purpose is to specify a data location in memory where the base address and the plurality of partial addresses are specified by a base address and a plurality of partial addresses. An object of the present invention is to provide a memory address generation circuit that can generate connected memory addresses at high speed.

[発明の概要コ この発明によれば、任意のメモリ内データ位置がベース
アドレスおよび複数の部分アドレスで指定されるものに
おいて、ベースアドレスおよび複数の部分アドレスが連
結されたメモリアドレスを生成するメモリアドレス生成
回路が提供される。
[Summary of the Invention] According to the present invention, a memory address that generates a memory address in which a base address and a plurality of partial addresses are concatenated, where an arbitrary data location in a memory is specified by a base address and a plurality of partial addresses. A generation circuit is provided.

上記メモリアドレス生成回路は、ベースアドレス、複数
の部分アドレスおよび同部分アドレスのアドレスビット
長を示すビット長情報を記憶する記憶手段と、この記憶
手段からベースアドレス、部分アドレスおよびビット長
情報を一定順序で読出す読出し手段と、上記記憶手段か
らの読出しデータがビット長情報の場合に同情報を保持
する第1レジスタと、第1および第2入力端を有するA
LUと、シフト回路と、このシフト回路の出力データを
保持する第2レジスタとを有している。
The memory address generation circuit includes a storage means for storing a base address, a plurality of partial addresses, and bit length information indicating address bit lengths of the same partial addresses, and a storage means for storing the base address, partial addresses, and bit length information in a fixed order from the storage means. A reading means for reading data from the storage means; a first register for holding bit length information when the read data from the storage means is bit length information; and a first and second input terminal.
It has an LU, a shift circuit, and a second register that holds output data of the shift circuit.

第2レジスタの出力データはALUの第1入力端に供給
される。ALUの第2入力端には記憶手段からの読出し
データが供給される。ALUは記憶手段からの読出しデ
ータがベースアドレスの場合に第2入力端側入力スルー
モードで用いられ、部分アドレスの場合にORモードで
用いられる。
The output data of the second register is provided to the first input of the ALU. A second input terminal of the ALU is supplied with read data from the storage means. The ALU is used in the second input terminal side input through mode when the data read from the storage means is a base address, and is used in the OR mode when it is a partial address.

ALUの出力データはシフト回路に供給される。The output data of the ALU is supplied to a shift circuit.

シフト回路には第1レジスタの出力データも供給される
。シフト回路は、ALUの出力データを第1レジスタに
保持されたビット長情報の示すビット数だけ一定方向に
シフトする。シフト回路の出力データは第2レジスタに
保持される。この第2レジスタの出力データは再びAL
Uの第1入力端に供給される。そして記憶手段から最後
のアドレスが読出されてALUで演算され、その演算結
果がシフト回路経由で第2レジスタに保持されることに
より、同レジスタにベースアドレスおよび複数のアドレ
スが連結されたメモリアドレスが求められる。
The output data of the first register is also supplied to the shift circuit. The shift circuit shifts the output data of the ALU in a fixed direction by the number of bits indicated by the bit length information held in the first register. The output data of the shift circuit is held in the second register. The output data of this second register is AL
is supplied to the first input of U. Then, the last address is read from the storage means and calculated by the ALU, and the result of the calculation is held in the second register via the shift circuit, so that the memory address in which the base address and a plurality of addresses are connected is stored in the second register. Desired.

[発明の実施例] 以下、この発明の一実施例を図面を参照して説明する。[Embodiments of the invention] An embodiment of the present invention will be described below with reference to the drawings.

なお、この実施例は、複数の画像メモリを有する画像処
理装置に適用され、画像メモリのメモリアドレスを生成
するメモリアドレス生成回路に実施した場合である。
Note that this embodiment is applied to an image processing apparatus having a plurality of image memories, and is applied to a memory address generation circuit that generates memory addresses of the image memories.

第1図はメモリアドレス生成回路の構成を示すもので、
11は記憶手段、例えば汎用レジスタである。汎用レジ
スタ11は、レジスタ番号がnのレジスタRnと、レジ
スタ番号がn+1のレジスタ6一 Rn+1と、レジスタ番号がn+2のレジスタRn+2
と、レジスタ番号がn+3のレジスタRn+3とを含む
。12は汎用レジスタ11からの読出しデータを信号3
1によりラッチするレジスタ、13はモード指定信号3
2に応じた演算動作を行なうALU(算術論理演算ユニ
ット)である。14はシフト指定信号33がONの場合
にALU13の出力データをレジスタ12の保持データ
の示すビット数だけ一定方向、例えば左にシフトするシ
フト回路、15はシフト回路14の出力データを信号3
4によりラッチするレジスタである。レジスタ15の保
持データはALU13のへ入力端に供給される。A L
 U 13のB入力端には汎用レジスタ11からの読出
しデータが供給される。汎用レジスタ11、レジスタ1
2、ALU13、シフト回路14およびレジスタ15は
制御部16に接続されている。制御部16は、命令を解
釈して各部を制御するもので、必要に応じて上記の信号
31〜34、更には汎用レジスタ11のレジスタ番号を
指定するレジスタ指定信号35を出力するようになって
いる。
Figure 1 shows the configuration of the memory address generation circuit.
Reference numeral 11 denotes a storage means, for example, a general-purpose register. The general-purpose register 11 includes a register Rn with a register number n, a register 6-Rn+1 with a register number n+1, and a register Rn+2 with a register number n+2.
and a register Rn+3 whose register number is n+3. 12 is the read data from the general-purpose register 11 as signal 3.
1 is the register to latch, 13 is the mode designation signal 3
This is an ALU (arithmetic logic unit) that performs arithmetic operations according to 2. 14 is a shift circuit that shifts the output data of the ALU 13 in a fixed direction, for example, to the left, by the number of bits indicated by the data held in the register 12 when the shift designation signal 33 is ON; 15 is a shift circuit that shifts the output data of the shift circuit 14 to the signal 3;
This register is latched by 4. The data held in the register 15 is supplied to the input terminal of the ALU 13. A L
Read data from the general-purpose register 11 is supplied to the B input terminal of U13. General-purpose register 11, register 1
2, the ALU 13, the shift circuit 14, and the register 15 are connected to the control section 16. The control unit 16 interprets instructions and controls each unit, and outputs the above-mentioned signals 31 to 34 as necessary, as well as a register designation signal 35 that designates the register number of the general-purpose register 11. There is.

次に第1図の構成の動作を第2図の動作説明図を参照し
て説明する。
Next, the operation of the configuration shown in FIG. 1 will be explained with reference to the operation diagram shown in FIG. 2.

この実施例において、汎用レジスタ11には第6図に示
した形式のベースアドレスB、Yアドレス(Y座標値)
並びにXアドレス(×座標値)と、X、Yアドレスのビ
ット長Wを示すビット長情報Wとの4種のデータが予め
用意される。ビット長情報Wは、画像メモリの大きさが
第3図に示すように512x512の場合には9が用い
られ例えば1024X1024構成の場合には10が用
いられる。第1図に示すように、ビット長情報Wは汎用
レジスタ11内のレジスタRnに用意され、ベースアド
レスBは次のレジスタRn+1に用意される。またYア
ドレスはレジスタRn+2に、XアドレスはレジスタR
n+3にそれぞれ用意される。なお、上記の4種のデー
タの汎用レジスタ11内並び順は、必ずしも上述の通り
である必要はない。
In this embodiment, the general-purpose register 11 has a base address B and a Y address (Y coordinate value) in the format shown in FIG.
Additionally, four types of data are prepared in advance: an X address (x coordinate value) and bit length information W indicating the bit length W of the X and Y addresses. As for the bit length information W, 9 is used when the size of the image memory is 512x512 as shown in FIG. 3, and 10 is used when the size of the image memory is 1024x1024, for example. As shown in FIG. 1, bit length information W is prepared in register Rn in general-purpose register 11, and base address B is prepared in the next register Rn+1. Also, the Y address is in register Rn+2, and the X address is in register R.
Each is prepared for n+3. Note that the order in which the four types of data described above are arranged in the general-purpose register 11 does not necessarily have to be as described above.

このような状態で、第5図に示す形式のメモリアドレス
(これを2次元アドレスと称する)、即ちX、Yアドレ
スおよびベースアドレスBが連結された2次元アドレス
を使用する特定命令が図示せぬ主メモリから読出された
ものとする。この特定命令は、最初に読出すべき汎用レ
ジスタ11内レジスタのレジスタ番号、例えばnを指定
する情報を有している。制御部16は、主メモリから命
令が読出されると、同命令を解釈する。制御部16は、
主メモリからの命令が上記特定命令の場合、次の■〜■
の手順で制御動作を行なう。
In such a state, a specific instruction that uses a memory address in the format shown in FIG. 5 (this is called a two-dimensional address), that is, a two-dimensional address in which the Assume that it has been read from main memory. This specific instruction has information specifying the register number of the register in the general-purpose register 11 to be read first, for example n. The control unit 16 interprets the instruction when the instruction is read from the main memory. The control unit 16 is
If the instruction from main memory is the above specific instruction, the following ■~■
Perform the control operation according to the following steps.

動作■ 制御部16は、主メモリからの命令が上記した特定命令
の場合、まず汎用レジスタ11のレジスタRnを指定す
るレジスタ指定信号35を出力する。
Operation (2) When the instruction from the main memory is the above-described specific instruction, the control unit 16 first outputs a register designation signal 35 that designates register Rn of the general-purpose register 11.

これによりレジスタRnの内容(ビット長情報W)が読
出される。このレジスタRnの内容(ビット長情報W)
はレジスタ12に供給される。このとき制御部16は信
号31をレジスタ12に供給する。この結果、汎用レジ
スタ11内のレジスタRnの内容(ビット長情報W)は
、信号31により第2図(a)に示すようにレジスタ1
2にラッチされる。
As a result, the contents of register Rn (bit length information W) are read out. Contents of this register Rn (bit length information W)
is supplied to register 12. At this time, the control unit 16 supplies the signal 31 to the register 12. As a result, the contents of register Rn in general-purpose register 11 (bit length information W) are changed to register 1 by signal 31 as shown in FIG. 2(a).
It is latched to 2.

動作■ 次に制御部16は、汎用レジスタ11のレジスタRn+
1を指定する信号35を出力する。これによりレジスタ
Rn+1の内容(ベースアドレスB)が読出される。こ
のレジスタRn+1の内容(ベースアドレスB)は第2
図(b)に示すようにA L U 13のB入力端に供
給される。このとき制御部16はALU13に対してN
OP (B入力スルー)モードを指定するモード指定信
号32を出力する。この結果、汎用レジスタ11内のレ
ジスタRn+1の内容(ベースアドレスB)は、第2図
(b)に示すようにA L U 13を通過してそのま
まシフト回路14に供給される。シフト回路14は、制
御部16からのシフト指定信号33によりシフト動作が
指定されており、A L Ll 13の出力データ即ち
ベースアドレスBを、レジスタ12にラッチされたビッ
ト長情報Wの示すビット数Wだけ左方向にシフトする。
Operation■ Next, the control unit 16 selects the register Rn+ of the general-purpose register 11.
A signal 35 specifying 1 is output. As a result, the contents of register Rn+1 (base address B) are read out. The contents of this register Rn+1 (base address B) are the second
The signal is supplied to the B input terminal of the ALU 13 as shown in FIG. At this time, the control unit 16 controls the ALU 13 to
A mode designation signal 32 designating the OP (B input through) mode is output. As a result, the contents of register Rn+1 (base address B) in general-purpose register 11 pass through ALU 13 and are supplied to shift circuit 14 as is, as shown in FIG. 2(b). The shift circuit 14 is designated to perform a shift operation by a shift designation signal 33 from the control unit 16, and converts the output data of the A L Ll 13, that is, the base address B, to the number of bits indicated by the bit length information W latched in the register 12. Shift to the left by W.

シフト回路14の出力データはレジスタ15に供給され
る。
Output data of shift circuit 14 is supplied to register 15.

このとき制御部16は信号34をレジスタ15に供給す
る。この結果、シフト回路14の出力データ即ちベース
アドレスBのWビット左シフト結果は、信号34により
第2図(b)に示すようにレジスタ15にラッチされる
At this time, the control unit 16 supplies the signal 34 to the register 15. As a result, the output data of the shift circuit 14, ie, the result of shifting the base address B to the left by W bits, is latched into the register 15 by the signal 34 as shown in FIG. 2(b).

動作■ 次に制御部16は、A L tJ 13に対するモード
指定信号32をNOPモード指定状態からORモード(
論理和演算モード)指定状態に切替える。そして制御部
16は、汎用レジスタ11のレジスタRn+2を指定す
る信号35を出力する。これによりレジスタRn+2の
内容(Yアドレス)が読出される。このレジスタRn+
2の内容(Yアドレス)は第2図(C)に示すようにA
 L U 13のB入力端に供給される。一方ALU1
3のへ入力端にはレジスタ15の出力データが供給され
る。このときALU13は、上記したようにORモード
に設定されている。しかしてALU13は、へ入力内容
であるレジスタ15の出力データ(この例ではベースア
ドレスBのWビット左シフト結果)とB入力内容である
汎用レジスタ11からの読出しデータ(この例ではレジ
スタRn+2の内容であるYアドレス)との論理和演算
を行なう。この結果ベースアドレスBとYアドレスとが
連結されたデータが下位詰めされた状態でA L U 
13から出力され、シフト回路14に供給される。シフ
ト回路14は、ALU13がらの出力データをレジスタ
12の指定するビット数Wだけ左シフトし、そのシフト
結果をレジスタ15に供給する。
Operation■ Next, the control unit 16 changes the mode designation signal 32 for the A L tJ 13 from the NOP mode designation state to the OR mode (
OR operation mode) Switch to the specified state. The control unit 16 then outputs a signal 35 specifying register Rn+2 of the general-purpose register 11. As a result, the contents (Y address) of register Rn+2 are read out. This register Rn+
The contents of 2 (Y address) are A as shown in Figure 2 (C).
It is supplied to the B input terminal of L U 13. On the other hand, ALU1
The output data of the register 15 is supplied to the input terminal of the register 3. At this time, the ALU 13 is set to the OR mode as described above. Therefore, the ALU 13 receives the output data of the register 15 (in this example, the W-bit left shift result of the base address B), which is the input content, and the read data from the general-purpose register 11, which is the B input content (in this example, the contents of register Rn+2). (Y address)). As a result, the data in which base address B and Y address are concatenated is lower-ordered and
13 and supplied to the shift circuit 14. The shift circuit 14 shifts the output data from the ALU 13 to the left by the number of bits W designated by the register 12, and supplies the shift result to the register 15.

このとき制御部16は信号34をレジスタ15に供給す
る。この結果、シフト回路14の出力データ即ちベース
アドレスBとYアドレスとの連結データのWビット左シ
フト結果は、信号34により第2図(C)に示すように
レジスタ15にラッチされる。
At this time, the control unit 16 supplies the signal 34 to the register 15. As a result, the output data of the shift circuit 14, that is, the W-bit left shift result of the concatenated data of the base address B and the Y address, is latched into the register 15 by the signal 34 as shown in FIG. 2(C).

動作■ 次に制御部16は、シフト回路14に対するシフト指定
信号33を0FFL、シフト回路14のシフト動作を禁
止する。そして制御部16は、汎用レジスタ11のレジ
スタR叶3を指定する信号35を出力する。
Operation (2) Next, the control unit 16 sets the shift designation signal 33 to the shift circuit 14 to 0FFL, thereby inhibiting the shift operation of the shift circuit 14. Then, the control unit 16 outputs a signal 35 specifying the register R 3 of the general-purpose register 11.

これによりレジスタR1)I−3の内容(Xアドレス)
が続出される。このレジスタRn+3の内容(Xアドレ
ス)は第2図(d)に示すようにALU13のB入力端
に供給される。一方A L U 13のへ入力端にはレ
ジスタ15の出力データが供給される。このときA L
 Ll 13は、前記したようにORモードに設定され
ている。しかしてA L U 13は、へ入力内容であ
るレジスタ15の出力データ(この例ではベースアドレ
スBとYアドレスとの連結データのWビット左シフト結
果)とB入力内容である汎用レジスタ11からの読出し
データ(この例ではレジスタRn+3の内容であるXア
ドレス)との論理和演算を行なう。この結果ベースアド
レスBとYアドレスとXアドレスとが連結されたデータ
が下位詰めされた状態でALU13から出力され、シフ
ト回路14に供給される。シフト回路14は、シフト動
作が禁止されていることから、A L U 13からの
出力データをそのままレジスタ15に供給する。このと
き制御部16は信号34をレジスタ15に供給する。こ
の結果、シフト回路14の出力データ即ちベースアドレ
スBとYアドレスとXアドレスとの連結データは、信号
34により第2図(d)に示すようにレジスタ15にラ
ッチされる。
As a result, the contents of register R1) I-3 (X address)
is being published one after another. The contents of this register Rn+3 (X address) are supplied to the B input terminal of the ALU 13 as shown in FIG. 2(d). On the other hand, the output data of the register 15 is supplied to the input terminal of the ALU 13. At this time A L
Ll 13 is set to OR mode as described above. Therefore, ALU 13 outputs the output data of register 15, which is the input content (in this example, the W-bit left shift result of the concatenated data of base address B and Y address), and the input content from general-purpose register 11, which is the input content of B. An OR operation with read data (in this example, the X address which is the contents of register Rn+3) is performed. As a result, data in which the base address B, Y address, and X address are concatenated is outputted from the ALU 13 in a lower-ordered state and supplied to the shift circuit 14. Since the shift operation is prohibited, the shift circuit 14 supplies the output data from the ALU 13 to the register 15 as is. At this time, the control unit 16 supplies the signal 34 to the register 15. As a result, the output data of the shift circuit 14, that is, the concatenated data of the base address B, Y address, and X address, is latched into the register 15 by the signal 34 as shown in FIG. 2(d).

以上の動作により、第5図の形式の2次元アドレスがレ
ジスタ15に求められる。
Through the above operations, a two-dimensional address in the format shown in FIG. 5 is obtained in the register 15.

なお、前記実施例では、X、Yアドレスが同一アドレス
ビット長である場合について説明したが、これに限るも
のではない。但し、X、Yアドレスのビット長がwl 
、w2であり、そのビット長情報がWl、W2であるも
のとすると、ベースアドレスBに対するシフト動作に先
行してビット長情報W2をレジスタ12にロードし、ベ
ースアドレスBとYアドレスとの連結データに対するシ
フト動作に先行してビット長情報W1をレジスタ12に
ロードする必要がある。また、前記実施例では、画像メ
モリのメモリアドレス(2次元アドレス)を生成する場
合について説明したが、この発明はグラフィックディス
プレイ装置のフレームメモリをアクセスするのに必要な
フレームメモリアドレスの生成や、例えばツリー構造の
データなど、単に主メモリ内のデータをN次元配列(N
は2以上の整数)として扱い主メモリアドレスがベース
アドレスおよびN種の部分アドレスの連結情報の形で表
現される場合にも応用できる。
In the above embodiment, a case has been described in which the X and Y addresses have the same address bit length, but the present invention is not limited to this. However, the bit length of the X and Y addresses is wl
, w2, and their bit length information is Wl, W2. Prior to the shift operation for base address B, bit length information W2 is loaded into the register 12, and the concatenated data of base address B and Y address is It is necessary to load the bit length information W1 into the register 12 prior to the shift operation for. Further, in the above embodiment, a case has been described in which a memory address (two-dimensional address) of an image memory is generated, but the present invention is also applicable to generation of a frame memory address necessary for accessing a frame memory of a graphic display device, for example. Simply store data in main memory, such as tree-structured data, in an N-dimensional array (N
is an integer of 2 or more).It can also be applied when the main memory address is expressed in the form of concatenated information of a base address and N types of partial addresses.

[発明の効果コ 以上詳述したようにこの発明によれば、任意のメモリ内
データ位置がベースアドレスおよび複数の部分アドレス
で指定されるものにおいて、ベースアドレスおよび複数
の部分アドレスが連結されたメモリアドレスの生成を、
ソフトウェア処理に比べて高速に行なうことができる。
[Effects of the Invention] As detailed above, according to the present invention, in a case where an arbitrary data position in a memory is specified by a base address and a plurality of partial addresses, a memory in which the base address and a plurality of partial addresses are concatenated is provided. Address generation,
It can be performed faster than software processing.

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

第1図はこの発明の一実施例に係るメモリアドレス生成
回路のブロック構成図、第2図は動作を説明するための
状態遷移図、第3図は画像メモリ内データ位置のX、Y
2次元座標による表現形態を説明する図、第4図はCP
Uのアドレス空間上への画像メモリアドレスの割当て例
を示す図、第5図は画像メモリに対する物理的なアドレ
ス表現形式を示す図、第6図は画像メモリに対する論理
的なアドレス表現形式を示す図である。 11・・・汎用レジスタ、12.15・・・レジスタ、
13・・・ALU、14・・・シフト回路、16・・・
制御部。 出願人代理人 弁理士 鈴 江 武 彦第3図 第5図 第6図 第4図
FIG. 1 is a block configuration diagram of a memory address generation circuit according to an embodiment of the present invention, FIG. 2 is a state transition diagram for explaining the operation, and FIG. 3 is a diagram of X and Y data positions in the image memory.
A diagram explaining the form of expression using two-dimensional coordinates, Figure 4 is CP
FIG. 5 is a diagram showing an example of assignment of image memory addresses to the address space of U. FIG. 5 is a diagram showing a physical address representation format for the image memory. FIG. 6 is a diagram showing a logical address representation format for the image memory. It is. 11...General-purpose register, 12.15...Register,
13...ALU, 14...Shift circuit, 16...
control section. Applicant's Representative Patent Attorney Takehiko Suzue Figure 3 Figure 5 Figure 6 Figure 4

Claims (2)

【特許請求の範囲】[Claims] (1)任意のメモリ内データ位置がベースアドレスおよ
び複数の部分アドレスで指定されるものにおいて、上記
ベースアドレス、上記複数の部分アドレスおよび同部分
アドレスのアドレスビット長を示すビット長情報を記憶
する記憶手段と、この記憶手段から上記ベースアドレス
、上記部分アドレスおよび上記ビット長情報を一定順序
で読出す読出し手段と、上記記憶手段からの読出しデー
タが上記ビット長情報の場合に同情報を保持する第1レ
ジスタと、第1入力端と上記記憶手段からの読出しデー
タが供給される第2入力端とを有し上記記憶手段からの
読出しデータが上記ベースアドレスの場合に第2入力端
側入力スルーモードで用いられ、上記記憶手段からの読
出しデータが上記部分アドレスの場合にORモードで用
いられるALUと、このALUの出力データを上記第1
レジスタの保持内容の示すビット数だけ一定方向にシフ
トするシフト回路と、このシフト回路の出力データを保
持し、その保持内容を上記ALUの第1入力端に供給す
る第2レジスタとを具備し、この第2レジスタに上記ベ
ースアドレスおよび上記複数の部分アドレスが連結され
たメモリアドレスを得るようにしたことを特徴とするメ
モリアドレス生成回路。
(1) Where an arbitrary data location in the memory is specified by a base address and multiple partial addresses, a memory that stores bit length information indicating the address bit length of the base address, the multiple partial addresses, and the same partial addresses. means for reading out the base address, the partial address, and the bit length information from the storage means in a fixed order; 1 register, and a first input terminal and a second input terminal to which read data from the storage means is supplied, and when the read data from the storage means is at the base address, the second input terminal side input through mode is set. is used in the OR mode when the data read from the storage means is the partial address, and the output data of this ALU is
A shift circuit that shifts in a fixed direction by the number of bits indicated by the contents held in the register, and a second register that holds output data of the shift circuit and supplies the held contents to a first input terminal of the ALU, A memory address generation circuit characterized in that a memory address in which the base address and the plurality of partial addresses are concatenated is obtained in the second register.
(2)上記部分アドレスが、X、Y2次元座標アドレス
のXアドレスとYアドレスであることを特徴とする特許
請求の範囲第1項記載のメモリアドレス生成回路。
(2) The memory address generation circuit according to claim 1, wherein the partial address is an X address and a Y address of an X, Y two-dimensional coordinate address.
JP11720585A 1985-05-30 1985-05-30 Memory address generating circuit Pending JPS61273648A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11720585A JPS61273648A (en) 1985-05-30 1985-05-30 Memory address generating circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11720585A JPS61273648A (en) 1985-05-30 1985-05-30 Memory address generating circuit

Publications (1)

Publication Number Publication Date
JPS61273648A true JPS61273648A (en) 1986-12-03

Family

ID=14705987

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11720585A Pending JPS61273648A (en) 1985-05-30 1985-05-30 Memory address generating circuit

Country Status (1)

Country Link
JP (1) JPS61273648A (en)

Similar Documents

Publication Publication Date Title
US4648049A (en) Rapid graphics bit mapping circuit and method
KR980004059A (en) Data processing apparatus and register address conversion method
JPH0414385B2 (en)
KR100852590B1 (en) Memory control circuit and memory control method
EP0367995A2 (en) Vector data transfer controller
WO1992000570A1 (en) Graphics rendering systems
JPH03196188A (en) Display system for information processor
US5929871A (en) Access control apparatus and image processing system
JPS61273648A (en) Memory address generating circuit
JP2812292B2 (en) Image processing device
JPH01119823A (en) First-in first-out storage device
JPS59178669A (en) Storage device provided with three-dimensional memory module
JPH0667969A (en) Graphic memory device
JPH0573303A (en) Processor
JPS62278680A (en) Image information output device
JPH01321573A (en) Picture data converting circuit
JPH03131899A (en) Pattern conversion circuit
JPH04321993A (en) Storage control device
JPS61149365A (en) Data controlling device
JPS6373325A (en) Information processor
JPH06230084A (en) Serial pattern generator
JPS63503101A (en) data storage and transfer equipment
JPH0344304B2 (en)
JPH04280331A (en) Access system to read-only list
JPH0528399B2 (en)