JPS6150360B2 - - Google Patents

Info

Publication number
JPS6150360B2
JPS6150360B2 JP9993881A JP9993881A JPS6150360B2 JP S6150360 B2 JPS6150360 B2 JP S6150360B2 JP 9993881 A JP9993881 A JP 9993881A JP 9993881 A JP9993881 A JP 9993881A JP S6150360 B2 JPS6150360 B2 JP S6150360B2
Authority
JP
Japan
Prior art keywords
address
register
input
circuits
memory
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
JP9993881A
Other languages
Japanese (ja)
Other versions
JPS581262A (en
Inventor
Shigeo Tanaka
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 JP9993881A priority Critical patent/JPS581262A/en
Publication of JPS581262A publication Critical patent/JPS581262A/en
Publication of JPS6150360B2 publication Critical patent/JPS6150360B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing

Description

【発明の詳細な説明】 本発明はメモリアドレス制御方式に関し、特に
画像処理を行なう場合のように画像のXY座標を
指示する(X,Y)座標値からアクセス先のメモ
リのアドレス情報を得ることができるようにした
メモリアドレス制御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a memory address control method, and in particular to obtaining address information of a memory to be accessed from (X, Y) coordinate values that indicate the XY coordinates of an image, such as when performing image processing. This invention relates to a memory address control method that enables

OCR等におけるように、2次元の画像情報を
読取りその処理を行なう装置ではこの画像情報を
メモリに記憶する。この場合、メモリは、第1図
に示す如く、通常連続アドレス(第1図ではバイ
ト単位で0,1,2…と連続アドレスを付与した
例を示している。)によりアクセスされる。とこ
ろが画像処理の場合には、情報をX・Yの2次元
座標で取扱うことが非常に便利であり、例えば領
域AとBとの距離を求めるような場合には、この
ような2次元のX・Y座標でデータを取扱うこと
ができれば非常に便利である。
A device that reads and processes two-dimensional image information, such as OCR, stores this image information in a memory. In this case, the memory is normally accessed by continuous addresses as shown in FIG. 1 (FIG. 1 shows an example in which continuous addresses are assigned in byte units such as 0, 1, 2, etc.). However, in the case of image processing, it is very convenient to handle information in two-dimensional coordinates of X and Y. For example, when calculating the distance between areas A and B, such two-dimensional・It would be very convenient if data could be handled using the Y coordinate.

ところがメモリ1のアドレスは、前記の如く連
続した1次元情報であるために従来はX・Y座標
が与えられると複雑な演算を行なつてそのアクセ
ス先のアドレスを計算しなければならなかつた。
However, since the address of the memory 1 is continuous one-dimensional information as described above, conventionally, when X and Y coordinates are given, it is necessary to perform complicated calculations to calculate the address to be accessed.

したがつて本発明では、2次元画像データの如
きX,Y座標で指示されたアクセス先を極めて簡
単に求めることができメモリアドレス制御方式を
提供することを目的とするものである。そしてこ
のために本発明におけるメモリアドレス制御方式
では、画像情報が入力されるメモリを有しこの画
像情報の処理を行なうデータ処理装置において、
2次元座標のX座標値が入力されるXレジスタ
と、2次元座標のY座標値が入力されるYレジス
タと、前記XレジスタおよびYレジスタから入力
されたアドレス情報の少なくとも一部をシフトさ
せるシフト手段を具備したアドレス変換部と、前
記アドレス変換部に対する選択指示信号を発生す
る選択指示信号手段を有し、この選択指示信号に
もとづき前記シフト手段を制御して、入力アドレ
ス情報の少なくとも一部のシフトの有無を選択制
御するようにしたことを特徴とする。
Therefore, it is an object of the present invention to provide a memory address control system that can extremely easily determine an access destination designated by X and Y coordinates such as two-dimensional image data. For this reason, in the memory address control method of the present invention, in a data processing device that has a memory into which image information is input and processes this image information,
An X register into which the X coordinate value of the two-dimensional coordinates is input, a Y register into which the Y coordinate value of the two-dimensional coordinates is input, and a shift that shifts at least part of the address information input from the X register and the Y register. and selection instruction signal means for generating a selection instruction signal for the address conversion section, and controls the shifting means based on the selection instruction signal to convert at least part of the input address information. The present invention is characterized in that whether or not to shift is selectively controlled.

本発明の一実施例を詳述するに先立ち、第2図
イにもとづき本発明の動作原理について説明す
る。第1図の如く、Y方向に32バイト、つまり0
〜255のYアドレスを有するメモリにおいて、X
座標が100,Y座標が30で示されるA点(100,
30)に対するアクセスが行なわれるとき、Xレジ
スタ3には100の2進数「01100100」を入力し、
Yレジスタ2には30の2進数「00011110」を入力
する。そしてこれを第2図イに示す如く、下位3
ビツトをシフトしてアドレスレジスタ4にセツト
する(このことは、Y方向ビツトアドレスをバイ
トアドレスに変換することを意味する)。このと
きアドレスレジスタ4の上位3ビツトは「0」を
つめる。かくしてアドレスレジスタ4にセツトさ
れた「0C83」(16進)がアクセス先のアドレスと
なり、このアドレスにより読出された8ビツトの
データのうち、前記の如くシフトされた下位3ビ
ツト「110」の示すもの、つまり7ビツト目が、
前記A点(100,30)のデータとなる。
Before describing one embodiment of the present invention in detail, the operating principle of the present invention will be explained based on FIG. 2A. As shown in Figure 1, 32 bytes in the Y direction, that is, 0
In memory with Y addresses of ~255,
Point A (100,
30), input the binary number "01100100" of 100 into the X register 3,
Enter the binary number ``00011110'' of 30 into Y register 2. Then, as shown in Figure 2 A, the bottom 3
Shift the bits and set them in address register 4 (this means converting the Y direction bit address to a byte address). At this time, the upper three bits of address register 4 are filled with "0". ``0C83'' (hexadecimal) set in the address register 4 becomes the access destination address, and of the 8-bit data read by this address, what is indicated by the lower 3 bits ``110'' shifted as described above. , that is, the 7th bit is
This is the data for the point A (100, 30).

勿論、画像情報の処理に際しては、前記の如く
2次元座標のデータのみを必要とするものではな
く、メモリ1に辞書を格納したりあるいは作業用
のワークエリアを必要とするため、通常のように
1次元のアドレス情報でアクセスすることも多
い。したがつてそのような場合には、第2図ロに
示す如く、シフトせずにそのままアドレスレジス
タ4にセツトすることが必要になる。
Of course, when processing image information, it is not only necessary to use two-dimensional coordinate data as described above, but also to store a dictionary in memory 1 or to have a work area, so it is not necessary to process image information as usual. It is often accessed using one-dimensional address information. Therefore, in such a case, it is necessary to set the data in the address register 4 as is without shifting, as shown in FIG. 2B.

また、Yレジスタ2にマイクロプロセツサ等で
計算したY方向バイトアドレスを直接指示させる
ように構成する場合には、第2図ハに示す如く、
Yレジスタ2からは下位5ビツトのみをそのまま
出力し、Xレジスタ3にセツトされた座標データ
を下位側に3ビツトシフトすれば、アクセス先の
バイトアドレスが得られる。
In addition, when configuring the Y register 2 to directly indicate the Y-direction byte address calculated by a microprocessor, etc., as shown in FIG.
By outputting only the lower 5 bits as is from the Y register 2 and shifting the coordinate data set in the X register 3 by 3 bits to the lower order side, the byte address of the access destination can be obtained.

次に本発明の一実施例を第3図および第4図に
もとづき詳述する。
Next, one embodiment of the present invention will be described in detail based on FIGS. 3 and 4.

第3図は本発明の一実施例構成を示し、第4図
イ、ロはそのアドレス変換部に使用される変換回
路の一例である。
FIG. 3 shows the configuration of an embodiment of the present invention, and FIGS. 4A and 4B are examples of conversion circuits used in the address conversion section.

図中、他と同符号部は同一部分を示し、10は
アドレス変換処理装置、11はプロセツサ、12
はアドレス変換部、13はYアドレス入力レジス
タ、14はXアドレス入力レジスタ、15は選択
指示レジスタである。
In the figure, the same reference numerals as the others indicate the same parts, 10 is an address translation processing device, 11 is a processor, 12
13 is a Y address input register, 14 is an X address input register, and 15 is a selection instruction register.

アドレス変換処理装置10は、プロセツサ11
から出力された、メモリ1にアクセスするための
アドレスを、第2図イ〜ハに示すように選択的に
変換するものであつて、アドレス変換部12、Y
アドレス入力レジスタ13、Xアドレス入力レジ
スタ14、選択指示レジスタ15等を有してい
る。
The address translation processing device 10 includes a processor 11
The address conversion unit 12, Y
It has an address input register 13, an X address input register 14, a selection instruction register 15, and the like.

アドレス変換部12は、Yアドレス入力レジス
タ13およびXアドレス入力レジスタ14に入力
されたアドレスを、第2図イ、ロ、ハに示す如
く、全体をシフトしたり、そのまま出力したり、
あるいは部分的にシフトするように選択的に変換
出力するものであり、選択指示レジスタ15から
伝達される選択指示信号によりその動作状態が制
御される。
The address conversion unit 12 shifts the entire address input to the Y address input register 13 and the X address input register 14 as shown in FIG.
Alternatively, it selectively converts and outputs so as to shift it partially, and its operating state is controlled by a selection instruction signal transmitted from the selection instruction register 15.

このアドレス変換部12は、例えば第4図イ、
ロに示す如き、第1アドレス変換回路16および
第2アドレス変換回路17が設けられている。
This address conversion unit 12 is configured, for example, in FIG.
A first address conversion circuit 16 and a second address conversion circuit 17 are provided as shown in FIG.

第4図イに示す第1アドレス変換回路16は、
第2図イおよびロに示す動作を選択的に行なうも
のであり、Y入力レジスタ2−1,X入力レジス
タ3−1、制御信号入力レジスタ18、インバー
タ19、アンド回路20−0ないし20−15、
アンド回路21−0ないし21−12、オア回路
22−0ないし22−11等を有する。
The first address conversion circuit 16 shown in FIG.
It selectively performs the operations shown in FIG. ,
It includes AND circuits 21-0 to 21-12, OR circuits 22-0 to 22-11, and the like.

また、第4図ロに示す第2アドレス変換回路1
7は、第2図ロおよびハに示す動作を選択的に行
なうものであり、Y入力レジスタ2−2、X入力
レジスタ3−2、制御信号入力レジスタ23、イ
ンバータ24、アンド回路25−0ないし25−
10、アンド回路26−0ないし26−7、オア
回路27−0ないし27−7等を有する。
In addition, the second address conversion circuit 1 shown in FIG.
Reference numeral 7 selectively performs the operations shown in FIG. 2 (b) and (c), and includes a Y input register 2-2, an 25-
10, AND circuits 26-0 to 26-7, OR circuits 27-0 to 27-7, etc.

(1) 次に第4図イに示す、第1アドレス変換回路
16の動作について説明する。
(1) Next, the operation of the first address conversion circuit 16 shown in FIG. 4A will be explained.

いま制御信号入力レジスタ18に選択指示レ
ジスタ15から伝達された「1」を入力すると
き、インバータ19は「0」を出力し、アンド
回路20−0ないし20−15をオフ状態に
し、かわりにアンド回路21−0ないし21−
12がオン状態になる。したがつてYアドレス
入力レジスタ13から入力された、Y入力レジ
スタ2−1の第0番目〜第2番目の下位3ビツ
トの信号は出力されず、第4番目から第7番目
の各ビツト信号がアンド回路21−0〜21−
4を経由してオア回路22−0ないし22−4
に伝達されて出力される。そしてXアドレス入
力レジスタ14から伝達されたX入力レジスタ
3−1の第0番目〜第7番目の各ビツト信号は
アンド回路21−5〜21−12を経由してオ
ア回路22−5〜22−12に伝達され、これ
らのオア回路から出力されることになる。そし
てこのアドレス信号にメモリ1がアクセスさ
れ、データのリード・ライトが行なわれる。
When "1" transmitted from the selection instruction register 15 is inputted to the control signal input register 18, the inverter 19 outputs "0", turns off the AND circuits 20-0 to 20-15, and inputs the AND circuit instead. Circuits 21-0 to 21-
12 is turned on. Therefore, the signals of the 0th to 2nd lower three bits of the Y input register 2-1 input from the Y address input register 13 are not output, and the signals of the 4th to 7th bits are AND circuits 21-0 to 21-
OR circuit 22-0 to 22-4 via 4
is transmitted and output. The 0th to 7th bit signals of the X input register 3-1 transmitted from the 12 and output from these OR circuits. Then, the memory 1 is accessed by this address signal, and data is read/written.

しかしながら制御信号入力レジスタ18に
「0」を入力すると、インバータ19は「1」
を出力しアンド回路20−0〜20−15はオ
ン状態になるが、アンド回路21−0〜21−
12がオフ状態となる。これにより今度はY入
力レジスタ2−1およびX入力レジスタ3−1
にセツトされたビツト信号は、それぞれアンド
回路20−0〜20−15を経由して出力され
ることになる。このようにして制御信号入力レ
ジスタ18に「1」をセツトしたときは、第2
図イに示す動作状態で制御することができ、ま
た「0」をセツトしたとき第2図ロに示す動作
状態で制御することができる。
However, when "0" is input to the control signal input register 18, the inverter 19 becomes "1".
is output, and the AND circuits 20-0 to 20-15 are turned on, but the AND circuits 21-0 to 21-
12 is turned off. As a result, Y input register 2-1 and X input register 3-1
The bit signals set to are outputted via AND circuits 20-0 to 20-15, respectively. When "1" is set in the control signal input register 18 in this way, the second
It can be controlled in the operating state shown in FIG. 2B, and when "0" is set, it can be controlled in the operating state shown in FIG.

(2) さらに第4図ロに示す第2アドレス変換回路
17の動作について説明する。
(2) Further, the operation of the second address conversion circuit 17 shown in FIG. 4B will be explained.

いま制御信号入力レジスタ23に「1」を入
力するとき、インータ24は「0」を出力し、
アンド回路25−0〜25−10はオフ状態と
なり、かわりにアンド回路26−0〜26−7
がオン状態となる。したがつてY入力レジスタ
2−2の第5番目〜第7番目の各ビツト信号は
出力されない。そしてX入力レジスタ3−2の
第0番目〜第7番目の各ビツト信号は、アンド
回路26−0〜26−7を経由したオア回路2
7−0〜27−7に伝達され、これらのオア回
路から出力される。
Now, when "1" is input to the control signal input register 23, the interface 24 outputs "0",
AND circuits 25-0 to 25-10 are turned off, and AND circuits 26-0 to 26-7 are turned off instead.
turns on. Therefore, the fifth to seventh bit signals of the Y input register 2-2 are not output. The 0th to 7th bit signals of the X input register 3-2 are sent to the OR circuit 2 via AND circuits 26-0 to 26-7.
It is transmitted to 7-0 to 27-7 and output from these OR circuits.

しかし制御信号入力レジスタ23に「0」が
入力されると、、インバータ24は「1」を出
力しアンド回路25−0〜25−10はオン状
態となり、逆にアンド回路26−0〜26−7
はオフ状態となる。これにより今度はY入力レ
ジスタ2−2およびX入力レジスタ3−2にセ
ツトされたビツト信号はそのままで、あるいは
アンド回路25−0〜25−10を経由して出
力されることになる。このようにして制御信号
入力レジスタ23に「1」をセツトしたときは
第2図ハに示す動作状態で制御することがで
き、また「0」をセツトしたときは第2図ロに
示す動作状態で制御することができる。
However, when "0" is input to the control signal input register 23, the inverter 24 outputs "1" and the AND circuits 25-0 to 25-10 are turned on, and conversely, the AND circuits 26-0 to 26- 7
is in the off state. As a result, the bit signals set in the Y input register 2-2 and the X input register 3-2 are output as they are or via the AND circuits 25-0 to 25-10. In this way, when "1" is set in the control signal input register 23, control can be performed in the operating state shown in FIG. 2C, and when "0" is set, the operating state is shown in FIG. 2B. can be controlled with.

したがつてプロセツサ11から例えばビツト
の変換信号Cを出力し、その一方のビツトで第
1アドレス変換回路16あるいは第2アドレス
変換回路17を選択し、他の1ビツトで動作状
態を第2図ロのスルー状態にするか、それとも
第2図イあるいはハのシフト状態にするかを指
示することにより、前記の如きアドレス変換を
任意に選択することができる。
Therefore, the processor 11 outputs, for example, a bit conversion signal C, one bit of which selects the first address conversion circuit 16 or the second address conversion circuit 17, and the other bit selects the operating state as shown in FIG. The address conversion described above can be arbitrarily selected by instructing whether to enter the through state shown in FIG. 2 or the shift state shown in FIG. 2 A or C.

以上説明の如く本発明によればデータ処理に際
し、メモリ1をX・Y座標情報でアクセスするこ
ともあるいは通常のアドレス情報で制御すること
も、あるいはバイトアドレスで制御することも可
能となるので、特に画像情報を処理する場合に非
常に高速にデータ処理を行なうことができる。
As explained above, according to the present invention, during data processing, the memory 1 can be accessed using X and Y coordinate information, or controlled using normal address information, or controlled using byte addresses. Especially when processing image information, data processing can be performed at extremely high speed.

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

第1図は画像処理を行うときのメモリの説明
図、第2図は本発明の動作原理説明図、第3図は
本発明の一実施例構成図、第4図イ、ロは本発明
におけるアドレス変換回路の1例である。 図中、1はメモリ、10はアドレス変換処理装
置、11はプロセツサ、12はアドレス変換部、
13はYアドレス入力レジスタ、14はXアドレ
ス入力レジスタ、15は選択指示レジスタをそれ
ぞれ示す。
Fig. 1 is an explanatory diagram of the memory when performing image processing, Fig. 2 is an explanatory diagram of the operating principle of the present invention, Fig. 3 is a configuration diagram of an embodiment of the present invention, and Fig. 4 A and B are diagrams of the present invention. This is an example of an address conversion circuit. In the figure, 1 is a memory, 10 is an address translation processing device, 11 is a processor, 12 is an address translation unit,
13 is a Y address input register, 14 is an X address input register, and 15 is a selection instruction register.

Claims (1)

【特許請求の範囲】[Claims] 1 画像情報が入力されるメモリを有しこの画像
情報の処理を行なうデータ処理装置において、2
次元座標のX座標値が入力されるXレジスタと、
2次元座標のY座標値が入力されるYレジスタ
と、前記XレジスタおよびYレジスタから入力さ
れたアドレス情報の少なくとも一部をシフトさせ
るシフト手段を具備したアドレス変換部と、前記
アドレス変換部に対する選択指示信号を発生する
選択指示信号手段を有し、この選択指示信号にも
とづき前記シフト手段を制御して、入力アドレス
情報の少なくとも一部のシフトの有無を選択制御
するようにしたことを特徴とするメモリアドレス
制御方式。
1. In a data processing device that has a memory into which image information is input and processes this image information, 2.
an X register into which the X coordinate value of the dimensional coordinate is input;
a Y register into which a Y coordinate value of two-dimensional coordinates is input; an address converter comprising a shift means for shifting at least a part of address information input from the X register and the Y register; and selection for the address converter. It is characterized by comprising a selection instruction signal means for generating an instruction signal, and controlling the shifting means based on the selection instruction signal to selectively control whether or not to shift at least a part of the input address information. Memory address control method.
JP9993881A 1981-06-27 1981-06-27 Memory address control system Granted JPS581262A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9993881A JPS581262A (en) 1981-06-27 1981-06-27 Memory address control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9993881A JPS581262A (en) 1981-06-27 1981-06-27 Memory address control system

Publications (2)

Publication Number Publication Date
JPS581262A JPS581262A (en) 1983-01-06
JPS6150360B2 true JPS6150360B2 (en) 1986-11-04

Family

ID=14260650

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9993881A Granted JPS581262A (en) 1981-06-27 1981-06-27 Memory address control system

Country Status (1)

Country Link
JP (1) JPS581262A (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60122441A (en) * 1983-12-07 1985-06-29 Fujitsu Ltd Memory access system
JPH0766438B2 (en) * 1986-04-25 1995-07-19 日本電気株式会社 Image storage
JPS636645A (en) * 1986-06-27 1988-01-12 Nec Corp Assigning system for 2-dimensional memory address
JP2932714B2 (en) * 1991-02-13 1999-08-09 松下電器産業株式会社 Address generator

Also Published As

Publication number Publication date
JPS581262A (en) 1983-01-06

Similar Documents

Publication Publication Date Title
US4852024A (en) Picture processing apparatus
JPS6150360B2 (en)
JPS6299870A (en) Picture processor
EP0290619A1 (en) Apparatus for calculating moment of image data
KR100190019B1 (en) Address generator for graphic controller
JP3139384B2 (en) Image processing device
JPS60157672A (en) Picture processing circuit
JPS5913766B2 (en) Address control method
JPS628660A (en) Image data processing device
JPH02289099A (en) Pattern data transfer system
JPS6368892A (en) Output display system for information processing system
JPH0347513B2 (en)
JPH03280094A (en) Information processor
JPH0325829B2 (en)
JPS6180292A (en) Display cotnrol system
JPH0444463B2 (en)
JPH0315954A (en) Access system for two-dimensional information memory
JPH04155441A (en) Address generating circuit
JPS62278680A (en) Image information output device
JPS6217243B2 (en)
JPS6367604A (en) Process signal converter
JPS61170804A (en) Programmable controller
JPH01229379A (en) Picture data storage device
JPH0828809B2 (en) Pixel density converter
JPS62260279A (en) High-speed image processing circuit