JPS61233851A - Address conversion system - Google Patents

Address conversion system

Info

Publication number
JPS61233851A
JPS61233851A JP7280085A JP7280085A JPS61233851A JP S61233851 A JPS61233851 A JP S61233851A JP 7280085 A JP7280085 A JP 7280085A JP 7280085 A JP7280085 A JP 7280085A JP S61233851 A JPS61233851 A JP S61233851A
Authority
JP
Japan
Prior art keywords
memory
memory element
address
dimensional
read
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
JP7280085A
Other languages
Japanese (ja)
Inventor
Hisao Fukuoka
福岡 久雄
Takeshi Shimizu
剛 清水
Yoshihiko Sakashita
坂下 善彦
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP7280085A priority Critical patent/JPS61233851A/en
Publication of JPS61233851A publication Critical patent/JPS61233851A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain high speed address convertion by using addition/subtraction only without using multiplication in read/write of picture element information constituting a graphic from or the like. CONSTITUTION:In reading/writing picture element information constituting a graphic form or the like normally to a memory element, the memory elements in connected position relation are subjected to continuous read/write in many cases. Whether or not a memory element G(i,j) read/written present in a step 101 is connected to a memory element G(I,J) read/written just before or not is checked and when they are connected, 9 kinds of connecting states are identified form the values of (i-I) and (j-J) are identified according to table 105 in a step 104, and an address conversion equation corresponding to the said connecting state is decided by using the result. The linear memory address of the memory element G(i,j) is obtained from the content of a variable A by using the said address conversion equation and stored in a variable A by using the said address conversion equation and stored in a variable (a). Since no multiplication is included in each conversion formula included a table 105, the equation are all computed in high speed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は1次元的にアドレス付けされ九メモリを、イ
メージ・データの処理等のために、メモリ要素の2次元
配列とみなして制御する場合の。
[Detailed Description of the Invention] [Industrial Application Field] This invention is applicable to the case where a one-dimensionally addressed memory is treated as a two-dimensional array of memory elements and controlled for processing image data, etc. of.

2次元座標値を1次元メモリ・アドレスへ変換する方式
に関するものである。
This relates to a method for converting two-dimensional coordinate values into one-dimensional memory addresses.

〔従来の技術〕[Conventional technology]

第2図は0番地からmXn−1番地(m 、 rlは正
の整数であシ、それぞれ後述する2次元配列の列数2行
数を表わす。)まで1次元的にアドレス付けされたメモ
リの1要素とアドレスの関係を示す図である。図中、M
C&)はこのメモリのa番地の要素を表わす(0≦a≦
mXn−1かつ息は整数)。
Figure 2 shows the memory address one-dimensionally from address 0 to mXn-1 (m and rl are positive integers, each representing the number of columns and two rows of a two-dimensional array, which will be described later). FIG. 3 is a diagram showing the relationship between one element and an address. In the figure, M
C&) represents the element at address a in this memory (0≦a≦
mXn-1 and breath is an integer).

ここで、上記メモリをイメージ・データの処理等に用い
る場合、上記メそすを、イメージの画素配列に対応した
。メモリ要素の2次元配列とみなして制御する必要があ
る。
Here, when the above memory is used for processing image data, etc., the above memory corresponds to the pixel array of the image. It is necessary to control it by treating it as a two-dimensional array of memory elements.

第3図は上記メモリをn行×m列の2次元メモリ要素配
列とみなした場合の、同配列の構成を示す図である。図
中、G(1,j)は第j行、鋪1列に位置するメモリ要
素を表わす(0≦l≦m−1゜0≦j≦n−1かつ1.
jは整数)。
FIG. 3 is a diagram showing the structure of the above memory when it is regarded as a two-dimensional memory element array of n rows by m columns. In the figure, G(1,j) represents a memory element located in the j-th row, column 1 (0≦l≦m-1゜0≦j≦n-1 and 1.
j is an integer).

ところで、第2図と第3図において、メモリ要素M(&
)とメモリ要素G(i、j)が同一のメモリ要素でおる
場合、すなわち、1次元メそす・アドレスがaであるメ
そり要素が上記2次元配列内において座標(1,j)に
位置する場合、1次元メモリ・アドレスaと2次元座標
(1,j)の間には次の(1)式の関係が成立する。
By the way, in FIGS. 2 and 3, the memory element M (&
) and memory element G (i, j) are the same memory element, that is, if the one-dimensional meso element whose address is a is located at the coordinates (1, j) in the two-dimensional array In this case, the following relationship (1) holds between the one-dimensional memory address a and the two-dimensional coordinates (1, j).

、ヨl + j X m         ・・・・・
・(1)次に%4個の整数i、J、に、1(0≦i、に
6m−1:0≦j、t≦n−1)を想定し、これらの間
に次の式および131式が同時に成立する時、上記2次
元配列において、メモリ要素G(l、j)とメモリ要素
G(k、t)は連結しているという。
, Yol + j X m...
・(1) Next, assume 1 (0≦i, 6m-1:0≦j, t≦n-1) for %4 integers i and J, and between these, the following formula and When formula 131 holds true at the same time, it is said that memory element G(l,j) and memory element G(k,t) are connected in the two-dimensional array.

1l−kl=oまたは1   ・・・・・・(2)lj
−Ll=oまたは1   ・・・・・・131以上のよ
うなメモリの構成において1図形等を画素展開し、上記
2次元メモリ要素配列に書き込む場合、これら画素に対
応する1メモリ要素毎に上記(1)式に従って、2次元
座標から1次元メモリ・アドレスへの変換計算を行い、
その結果によって該画素に対応するメモリ要素への書き
込みを行う必要がある。
1l-kl=o or 1 (2) lj
-Ll=o or 1 In a memory configuration such as 131 or more, when pixel development of one figure, etc. is performed and written to the above two-dimensional memory element array, the above is written for each memory element corresponding to these pixels. According to formula (1), calculate the conversion from two-dimensional coordinates to one-dimensional memory address,
Depending on the result, it is necessary to write to the memory element corresponding to the pixel.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

従来のアドレス変換方式では、1つのメモリ要素に対す
る変換の度に上記(1)式におけるjXmの乗算を行う
必要があシ、乗算速度の遅いマイクロ・プロセッサなど
を用いた場合には、アドレス変換処理に多大な時間を要
し、その結果、画素情報のメそり要素への書き込みが遅
くなるという問題点があった。また、メモリ要素からの
画素情報の読み出しに関しても同様の問題点があった。
In the conventional address conversion method, it is necessary to perform the multiplication by jXm in equation (1) above every time one memory element is converted, and when a microprocessor with a slow multiplication speed is used, the address conversion process There is a problem that it takes a lot of time to write the pixel information to the mesori element, and as a result, writing of pixel information to the mesori element becomes slow. A similar problem also exists regarding reading out pixel information from memory elements.

この発明はかかる問題点を解決するためになされ念もの
で1図形等を構成する画素情報の読み書きに際して乗算
を使用することなく、加減算のみを用いて高速にアドレ
ス変換を行うことを目的とする。
The present invention was made in order to solve such problems, and an object of the present invention is to perform address conversion at high speed by using only addition and subtraction, without using multiplication when reading and writing pixel information constituting one figure, etc.

〔問題点を解決するための手段〕[Means for solving problems]

この発明に係るアドレス変換方式は、直前に読み書きし
たメモリ要素の2次元座標、および該メモリ要素の1次
元メモリ・アドレスを保持する手段と、次に読み書きし
ようとするメモリ要素が上記直前に読み書きしたメそり
要素と連結した位置にあるか否かを検量し、連結した位
置にある場合、上記の直前に読み書きしたメモリ要素の
1次元メモリ・アドレスに特定の値を加減算することに
より、次に読み書きしようとするメモリ要素の1次元メ
モリ・アドレスを求める手段から成る。
The address conversion method according to the present invention includes means for holding the two-dimensional coordinates of the memory element read and written just before, and the one-dimensional memory address of the memory element, and the memory element to be read and written next Calibrates whether or not the memory element is in a connected position, and if it is in a connected position, the next read/write is performed by adding or subtracting a specific value to the one-dimensional memory address of the memory element read and written just before It consists of means for determining the one-dimensional memory address of the memory element to be processed.

〔作用〕[Effect]

通常、図形等を構成する画素情報をメモリ要素に対して
読み書きする場合、連結した位置関係にあるメモリ要素
に対して連続的に読み書きする場合が多い0そのため、
この発明によれば、乗算を使用することなく、直前に読
み書きしたメモリ要素の1次元メモリ・アドレスに対し
て特定の値を加減算するのみでアドレス変換が行える場
合が多くなシ、その結果、高速度のアドレス変換が可能
となる。
Normally, when reading and writing pixel information constituting a figure, etc. to a memory element, it is often read and written continuously to memory elements that are in a connected positional relationship.
According to the present invention, in many cases, address conversion can be performed simply by adding or subtracting a specific value to the one-dimensional memory address of the memory element read or written just before, without using multiplication. Speed address conversion becomes possible.

〔実施例〕〔Example〕

第1図はこの発明の一実施例を示すフローチャートであ
り、第2図訃よび第3図に示すようなメそり構成におけ
る本発明に係るアドレス変換方式の動作を示す。次K、
第4図は本発明のハード構成の一実施例で1図において
、10は第1図に示した処理を実行する処理部、20は
1次元的にアドレス付けされたメそり、30は現在制御
しよりとするメモリ要素の1次元メモリアドレスaを保
持するレジスタ、4Gは直前に制御したメモリ要素の1
次元メモリアドレスを保持するレジスタ、so、goは
それぞれ直前に制御したメモリ要素の2次元座標値1又
FiJを保持するレジスタである0 なお、処理部10はマイクロ・プロセッサで構成し、プ
ログラムで処理を実行するよりにしてもよく、或いはワ
イヤード・ロジック構成としてもよい。
FIG. 1 is a flowchart showing one embodiment of the present invention, and shows the operation of the address conversion system according to the present invention in a mesostructure as shown in FIG. 2 and FIG. 3. Next K,
FIG. 4 shows an embodiment of the hardware configuration of the present invention. In FIG. 1, 10 is a processing unit that executes the processing shown in FIG. 1, 20 is a one-dimensionally addressed memory, and 30 is a currently controlled A register that holds the one-dimensional memory address a of the memory element to be controlled, 4G is the memory element 1 that was controlled just before.
The registers that hold the dimensional memory address, so and go, are registers that hold the two-dimensional coordinate value 1 or FiJ of the memory element that was controlled immediately before. Alternatively, it may be implemented as a wired logic configuration.

第1図のステップ101において、変数(1,j)には
読み書きをしようとしているメそす要素の2次元座標が
設定されておシ、変数CI、J)には直前に読み1含し
たメモリ要素の2次元座標が保持されている。
In step 101 in Figure 1, the two-dimensional coordinates of the element to be read or written are set in the variable (1, j), and the memory containing the last read/write is set in the variable CI, J). The two-dimensional coordinates of the elements are held.

ここで、ステップ101では、現在読み書きをしようと
しているメモリ要素G(1,j)が、直前に読み書きし
たメそり要素G(I、J)に連結しているか否かを、前
記(21式および(31式に従って検量する。
Here, in step 101, it is determined whether the memory element G (1, j) that is currently being read or written is connected to the mesori element G (I, J) that was read or written just before using the equation (21 and (Calibrate according to formula 31.

その結果、連結していなければステップ102において
従来の通り、前記(1)式に従ってアドレス変換を行い
、メモリ要素G(i、j)の1次元メモリ・アドレスを
求め、変数aに格納する。次にステップ103において
1次のメモリ要素に対するアドレス変換に備えて、現在
の2次元座標を変数(1,J)に、現在の1次元メモリ
・アドレスを変数Aにそれぞれ保持することによって、
現在のメモリ要素に対するアドレス変換を終了する。
As a result, if they are not connected, in step 102, address conversion is performed in accordance with equation (1) as before, to obtain the one-dimensional memory address of memory element G(i, j), and store it in variable a. Next, in step 103, in preparation for address conversion for the primary memory element, the current two-dimensional coordinates are held in variables (1, J), and the current one-dimensional memory address is held in variable A.
Finishes address translation for the current memory element.

一方、第1図のステップ101における上記検量の結果
、上記の2つのメモリ要素G(i、、j)とG(I、J
)が連結している場合、ステップ104に進む。ステッ
プ104において、変数人には直前に読み書きしたメモ
リ要素G(I、J)の1次元メモリ・アドレスが格納さ
れている。
On the other hand, as a result of the calibration in step 101 of FIG. 1, the two memory elements G(i,,j) and G(I,J
) are connected, proceed to step 104. In step 104, the one-dimensional memory address of the memory element G (I, J) that was just read or written is stored in the variable.

ここで、ステップ104ではi−Iおよびj−Jの値か
ら9種類の連結状態を識別し、その結果を用いて上記連
結状態に対応したアドレス変換式を表105より決定す
る。すなわち、上記の2つのメモリ要素G(1,j)と
G(I、J)が連結していることから、1−Iおよびj
−Jの値は次の(41式および(5)式に示すような値
であり、i−Iとj−Jの値の組合せは9種類ある。従
って、i−Iとj−Jの値から9種類の連結状態が識別
できる。
Here, in step 104, nine types of connection states are identified from the values of i-I and j-J, and the address conversion formula corresponding to the above-mentioned connection state is determined from Table 105 using the results. That is, since the above two memory elements G(1,j) and G(I,J) are connected, 1-I and j
The value of -J is as shown in the following equations (41 and (5)), and there are nine combinations of the values of i-I and j-J. Therefore, the values of i-I and j-J Nine types of connection states can be identified.

1−I=−1または0または1 ・・・・・・(4)j
−J=−1!九はOまたは1 ・・・・・・(5;そし
て、上記アドレス変換式を用いて変数Aの内容からメそ
す要素G(1,j)の1次元メそり・アドレスを求め、
変数aに格納する。
1-I=-1 or 0 or 1 (4)j
-J=-1! 9 is O or 1 (5; Then, use the above address conversion formula to find the one-dimensional mesori address of the element G (1, j) from the contents of the variable A,
Store in variable a.

例えば、1−I=Oかつj−J=1の時、メモリ要素G
(1,j)の1次元メモリ・アドレスは。
For example, when 1-I=O and j-J=1, memory element G
The one-dimensional memory address of (1,j) is.

変数人の内容に2次元メモリ要素配列の横方向要素数m
を加算したものとして求まる。
The number of horizontal elements m in the two-dimensional memory element array is added to the contents of the variable person.
It is calculated as the sum of

ここで1表105に含まれている各変換式には乗算が含
まれていないため゛、いずれも高速に計算することが可
能である。
Here, since each conversion formula included in Table 1 105 does not include multiplication, it is possible to calculate all of them at high speed.

続いて、ステップ103において、上述と同様に変数(
I、J)と変数人に値を設定し、現在のメモリ要素に対
するアドレス変換を終了する。
Next, in step 103, the variable (
I, J) and variables are set, and address conversion for the current memory element is completed.

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

この発明では以上説明した通9.直前に読み書きしたメ
モリ要素と現在読み書きしようとするメモリ要素の連結
性を利用することにより1乗算を用いることなく、直前
に読み書きしたメモリ要素の1次元メモリ・アドレスに
特定の値を加減算するだけで高速にアドレス変換が行え
るという効果がある。
In this invention, as explained above, 9. By using the connectivity between the memory element that was read or written just before and the memory element that is currently being read or written, it is possible to simply add or subtract a specific value to the one-dimensional memory address of the memory element that was read or written just before, without using multiplication. This has the effect of allowing address translation to be performed at high speed.

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

第1図はこの発明の一実施例を示すフローチャート、第
2図は1次元的にアドレス付けされたメそりの構成を示
す説明図、第3図は上記メモリを2次元メモリ要素配列
とみなした場合の構成を示す説明図、第4図は本発明の
ハード構成の一実施例を示すブロック図である。 図中、M(a)はa番地のメモリ要素、G (l 、j
)は第5行第1列に位置するメモリ要素、10は処理部
、20はメモリ、30.40.50.6(1!:レジス
タである。 なお、各図中同一符号は同一または相轟部分を示す。 特許出願人  三菱電機株式会社 Ov−−−M       e 口 Σ II   Oy  (y    O− 白
Fig. 1 is a flowchart showing an embodiment of the present invention, Fig. 2 is an explanatory diagram showing the structure of a one-dimensionally addressed mesori, and Fig. 3 assumes that the above memory is a two-dimensional memory element array. FIG. 4 is a block diagram showing an embodiment of the hardware structure of the present invention. In the figure, M(a) is the memory element at address a, G (l, j
) is a memory element located in the 5th row and 1st column, 10 is a processing unit, 20 is a memory, and 30.40.50.6 (1!: register). Note that the same reference numerals in each figure are the same or similar. Parts shown. Patent applicant Mitsubishi Electric Corporation Ov---M e 口Σ II Oy (y O- White

Claims (1)

【特許請求の範囲】[Claims] 1次元的にアドレス付けされたメモリをメモリ要素の2
次元配列とみなして制御する場合の、2次元位置座標か
ら1次元メモリ・アドレスへのアドレス変換方式におい
て、直前に変換した第1のメモリ要素の上記2次元配列
内での位置を表わす座標値および該座標値に対応した1
次元メモリ・アドレスを保持する一時記憶手段と、現在
変換しようとする第2のメモリ要素が上記第1のメモリ
要素と上記2次元配列内で連結した位置関係にあること
を検出し、これら第1と第2のメモリ要素の連結した位
置関係に対応した特定の値を算出する演算処理手段とを
設け、上記第2のメモリ要素が上記第1のメモリ要素と
連結した位置関係にある場合には、上記第1のメモリ要
素の1次元メモリ・アドレスに対する上記特定の値の加
減算により上記第2のメモリ要素の1次元メモリ・アド
レスを決定するよりに構成したことを特徴とするアドレ
ス変換方式。
One-dimensionally addressed memory is divided into two memory elements.
In an address conversion method from two-dimensional position coordinates to a one-dimensional memory address when the control is performed by treating the first memory element as a two-dimensional array, coordinate values representing the position of the first memory element that has just been converted in the two-dimensional array, and 1 corresponding to the coordinate value
A temporary storage means for holding a dimensional memory address, detects that a second memory element to be currently converted is in a connected positional relationship with the first memory element in the two-dimensional array, and and an arithmetic processing means for calculating a specific value corresponding to the connected positional relationship of the second memory element, and when the second memory element is in the connected positional relationship with the first memory element, . An address conversion method characterized in that the one-dimensional memory address of the second memory element is determined by adding or subtracting the specific value to the one-dimensional memory address of the first memory element.
JP7280085A 1985-04-08 1985-04-08 Address conversion system Pending JPS61233851A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7280085A JPS61233851A (en) 1985-04-08 1985-04-08 Address conversion system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7280085A JPS61233851A (en) 1985-04-08 1985-04-08 Address conversion system

Publications (1)

Publication Number Publication Date
JPS61233851A true JPS61233851A (en) 1986-10-18

Family

ID=13499826

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7280085A Pending JPS61233851A (en) 1985-04-08 1985-04-08 Address conversion system

Country Status (1)

Country Link
JP (1) JPS61233851A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5282145A (en) * 1975-12-29 1977-07-09 Nec Corp Memory index circuit

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5282145A (en) * 1975-12-29 1977-07-09 Nec Corp Memory index circuit

Similar Documents

Publication Publication Date Title
JPH03256485A (en) Motion vector detecting circuit
EP0264966B1 (en) Interpolator for television special effects system
JPS6247786A (en) Exclusive memory for adjacent image processing
JPS61233851A (en) Address conversion system
JPH06223099A (en) Signal processing system provided with reduced memory space
JPS6382530A (en) Semiconductor storage device
JP2610817B2 (en) Address generator
JPH0415881A (en) Method and device for processing picture
JPH0650524B2 (en) Mask processing method
JPS61251897A (en) Image processor
JP2892378B2 (en) Noise reduction method for moving images
JPS58207170A (en) Picture processing system
JPH0198077A (en) Storage device
JPS5819955A (en) Picture memory device
JPH0244433B2 (en)
JPH049149B2 (en)
JPS60118980A (en) Picture processing device
JPS61208173A (en) Image access system
JPH0547867B2 (en)
GB2129172A (en) Data processing
JPH0293770A (en) Picture memory reading system
JPS60235274A (en) Picture signal processing device
JPH01140195A (en) Graphic image copy controller
JPH0650525B2 (en) Mask processing method
JPH04291681A (en) Filtering processing system for very high speed image processing system