JPS63255779A - Address control circuit - Google Patents

Address control circuit

Info

Publication number
JPS63255779A
JPS63255779A JP62089687A JP8968787A JPS63255779A JP S63255779 A JPS63255779 A JP S63255779A JP 62089687 A JP62089687 A JP 62089687A JP 8968787 A JP8968787 A JP 8968787A JP S63255779 A JPS63255779 A JP S63255779A
Authority
JP
Japan
Prior art keywords
register
contents
dimensional
alu
control circuit
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
JP62089687A
Other languages
Japanese (ja)
Inventor
Yoshiaki Ikezoe
池添 義章
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP62089687A priority Critical patent/JPS63255779A/en
Publication of JPS63255779A publication Critical patent/JPS63255779A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Abstract

PURPOSE:To improve the graphic drawing processing performance by giving drawing area information and a coordinate position on a two-dimensional drawing memory space to obtain a memory address and a bit position of a one- dimensional constitution. CONSTITUTION:Drawing area data is written in an X register 3 and a Y register 5. At the time of address conversion, coordinates of a prescribed point are written in an (x) register 7 and a (y) register 8. Contents of the Y register 5 and the (y) register 8 are inputted to an ALU 10 through multiplexers 6 and 9 by the instruction of a control circuit 1 and a prescribed arithmetic is performed; and if the result is not 0, the arithmetic result is stored in a shift number register 2, and contents of the (x) register 7 are transferred to a parallel shifter 4 and are shifted by contents of the shift number register 2. When the coordinate value is written in the (x) register 7, contents of 24 bits or more and said obtained arithmetic result are given to the ALU 10.

Description

【発明の詳細な説明】 産業上の利用分封 本発明は、ラスタスキャンデータの描画処理装置に関し
、特に1 メモリへのアドレスを発生する制御回路に関
する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a raster scan data drawing processing device, and more particularly to a control circuit that generates an address to a memory.

従来の孜術 従来、この種のメモリアドレスの制御は、図形描画処理
用に開発された1チツプのLSI内で処理されている。
Conventional technology Conventionally, this type of memory address control has been processed within a one-chip LSI developed for graphic drawing processing.

又汎用の高速μmProcessor  を使用し、プ
ログラム処理で行なわれている。
Further, the processing is performed by a program using a general-purpose high-speed μmProcessor.

発明が解決しようとする問題点 上述した従来の図形描画におけるメモリアドレス制御は
、二次元アドレス管理しているものを一次元アドレスに
変換するために各樵演算を必敦とし、又ドント毎に本ア
ドレス変換処理を行なわなければならず、処理性能が著
しく低下してしまうという欠点がある。
Problems to be Solved by the Invention The above-mentioned conventional memory address control in graphic drawing requires each machine operation to convert a two-dimensional address into a one-dimensional address, and also requires This method has the disadvantage that address translation processing must be performed, resulting in a significant drop in processing performance.

本発明は従来の技術に内在する上記欠点を解消する為に
なされたものであり、従って本発明の目的は、図形の描
画処理性能を高速化することを可能とした新規なアドレ
ス制御回路を提供することにある。
The present invention has been made in order to eliminate the above-mentioned drawbacks inherent in the conventional technology, and therefore, an object of the present invention is to provide a novel address control circuit that makes it possible to speed up the graphic drawing processing performance. It's about doing.

問題点を解決するための手段 上記目的を達成する為に、本発閃に係るアドレス制御回
路は、描画領域を示す主走査力向囚幅及び副走査方向(
イ)幅を記憶するXレジスタ及びYしジスタと、二次元
表現の描画メモリ上の座標位置を記憶するXレジスタと
yレジスタと、二次元→一次元変換処理に必要なバレル
シフタと、各種演算を行なうALUと、該ALUへの入
力を切替えるマルチプレクサと前記各レジスタ群及びバ
レルシフタ、M刀、マルチプレクサへの制御信号を発生
させる制御回路とを備えて構成される。
Means for Solving the Problems In order to achieve the above object, the address control circuit according to the present invention has a main scanning force direction width and a sub-scanning direction (which indicates the drawing area).
b) An X register and a Y register that store the width, an X register and a y register that store the coordinate position on the drawing memory of two-dimensional representation, a barrel shifter necessary for two-dimensional → one-dimensional conversion processing, and various calculations. The control circuit includes an ALU that performs the operation, a multiplexer that switches the input to the ALU, and a control circuit that generates control signals to the register groups, barrel shifter, M-sword, and multiplexer.

実施例 次に本発明をその好ましい一実施例について図面を参照
して具体的に説明する。
Embodiment Next, a preferred embodiment of the present invention will be specifically explained with reference to the drawings.

第1図は本発明の一実施例を示す概略ブロック構成図で
ある。第2図(a)、(b)は二次元表現のアドレス位
置と一次元表現のアドレス位置の相関関係を示した図で
ある。
FIG. 1 is a schematic block diagram showing an embodiment of the present invention. FIGS. 2(a) and 2(b) are diagrams showing the correlation between address positions in two-dimensional representation and address positions in one-dimensional representation.

第1図及び第2図を参照するに、まず初めに描画メモリ
構成について説明する。一般的に描画メモリとしては、
1ワード16ビツト長でラスタスキャンの開始位置(第
2図(a、) Ul)よシ順番に描画画像が記憶されて
いる。図形の描画処理での座標管理は二次元で、かつ左
下、即ち第2図(a)のQaが原点として管理されてい
る。所が実際の描画メモリ構成はラスタスキャン方向の
デバイスのために1第2図(b)の如く左上即ち01が
原点として処理している。従って、第2図(a)の点A
(x、y)を一次元のメモリアドレスan K変換する
には下記式の通シとなる。
Referring to FIGS. 1 and 2, the drawing memory configuration will first be described. Generally speaking, drawing memory is
Each word is 16 bits long, and the drawn images are stored in order from the raster scan start position (Ul in FIG. 2(a)). Coordinates in the graphic drawing process are two-dimensional, and are managed with the lower left corner, ie, Qa in FIG. 2(a), as the origin. However, in the actual drawing memory configuration, since the device is in the raster scan direction, the upper left, ie, 01, is processed as the origin, as shown in FIG. 2(b). Therefore, point A in Fig. 2(a)
To convert (x, y) into a one-dimensional memory address an K, the following formula is used.

W=、、  r  、、==Xo+X1(XO:商、X
i:余り)as=wx((Y−y)−13+xo 、、
、、、、、、、、、、、、、、(Y)Xlはワード内の
ビット位置を示す。
W=,, r,,==Xo+X1 (XO: quotient, X
i: remainder) as=wx((Y-y)-13+xo,,
, , , , , , , , , , , (Y)Xl indicates the bit position within the word.

本発明では上記(Y)式の演算を高速に処理するもので
ある。
In the present invention, the calculation of the above equation (Y) is processed at high speed.

初期設定時に1本アドレス制御回路のXレジスタ3及び
Yレジスタ5に描画領域データ(ピント表現)をデータ
信号線aiを通じて書込む。この時描画領域のワード+
11!(ロ)を得るために下位4ピントを無視してXレ
ジスタ3に書込まれる。次にアドレス変換時に、点Aの
座標(x、y)がXレジスタ7、Xレジスタ8にそれぞ
れ書込まれる。ここで手順としてはまずXレジスタ8に
書込まれる。
At the time of initial setting, drawing area data (focus expression) is written into the X register 3 and Y register 5 of one address control circuit through the data signal line ai. At this time, the word in the drawing area +
11! In order to obtain (b), the lower 4 pins are ignored and written to the X register 3. Next, during address conversion, the coordinates (x, y) of point A are written to X register 7 and X register 8, respectively. The procedure here is that first, the data is written to the X register 8.

すると制御回路1の指示にょシマルチプレクサ6及び9
を通してYレジスタ5とXレジスタ8の内容がALU 
10に入力され、前記(Y)式の(Y−y)−1の演算
が行なわれ、結果が“0”以外ならばその演算結果はシ
フト数レジスタ2に格納され、Xレジスタ7の内容をバ
レルシフタ4に移し、シフト数レジスタ2の内容分シフ
トする。この結果、前記(Y)式のwX ((Y−y)
−1)の結果が得られる。次にXレジスタ7に座標(x
、y)のX値が書込まれると2ビット以上の内容と、先
に得られたwx((Y−y)−[の内容がALU 10
に与えられ、wX((Y−y)−t J+x、 tv演
算結果が得られる。即ち、アドレスarcの値が得られ
る。又、アドレスバス上のビット位置はXレジスタ7の
下位4ピントを絖み出すことにょ9得られる。
Then, the control circuit 1 outputs the instructions to the multiplexers 6 and 9.
The contents of Y register 5 and X register 8 are transferred to the ALU through
10, the calculation (Y-y)-1 of the above equation (Y) is performed, and if the result is other than "0", the calculation result is stored in shift number register 2, and the contents of X register 7 are The data is transferred to barrel shifter 4 and shifted by the contents of shift number register 2. As a result, wX ((Y−y)
-1) result is obtained. Next, enter the coordinates (x
When the X value of , y) is written, the contents of 2 bits or more and the contents of wx((Y-y)-[ obtained earlier
The result of the operation wX((Y-y)-t J+x, tv is obtained. In other words, the value of address arc is obtained. Also, the bit position on the address bus is determined by the lower 4 pinpoints of the X register 7. You can get 9 things by looking out.

発明の詳細 な説明したように、本発明のアドレス制御回路に描画領
域情報と二次元描画メモリ空間上の座標位ft(x、y
)をy−4xと与えることKより、一次元構成のメモリ
アドレスとビット位置を高速に得ることが出来、図形の
描画処理性能を高速化出来る効果が得られる。
As described in detail of the invention, the address control circuit of the present invention has drawing area information and coordinate position ft(x, y) on the two-dimensional drawing memory space.
) is given as y-4x by K, the memory address and bit position of a one-dimensional configuration can be obtained at high speed, and the effect of speeding up the graphic drawing processing performance can be obtained.

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

第1図(″i本発明の一実施例を示す概略ブロック構成
図、第2図は二次元空間の描画メモリ上の座は位置と一
次元空間のメモリ上のアドレス位置の相関を示す図であ
る。 1・・・制御同温、2・・拳シフト数レジスタ、3・・
・Xレジスタcvzり、4・・・バレルシフタ、5拳・
・Yレジスタ、6ψ・・マルチプレクサ、7・拳・Xレ
ジスタ、8・・・yレジスタ、9・・・マルチプレクサ
、10・・@ALU、11・・・マルチプレクサ、ai
−・拳入カデータパス、a。
Figure 1 is a schematic block configuration diagram showing an embodiment of the present invention. Figure 2 is a diagram showing the correlation between the position of a drawing memory in a two-dimensional space and the address position in a memory in a one-dimensional space. Yes. 1...Control same temperature, 2...Fist shift number register, 3...
・X register CVZ, 4...barrel shifter, 5 fists・
・Y register, 6ψ...multiplexer, 7・fist・X register, 8...y register, 9...multiplexer, 10...@ALU, 11...multiplexer, ai
-・Fist card data pass, a.

Claims (1)

【特許請求の範囲】[Claims] ラスタスキャンの画像データを描画する装置において、
描画領域を示す主走査方向(X)幅及び副走査方向(Y
)幅を記憶するXレジスタ及びYレジスタと、二次元の
画像描画面上の座標位置A(x、y)を記憶するxレジ
スタとyレジスタと、二次元→一次元変換処理に必要な
バレルシフタと、演算を行なうALUと、該ALUへの
入力を切替えるマルチプレクサ群と、前記レジスタ類及
びALU、マルチプレクサへの制御信号を発生する制御
回路とを含むことを特徴とするアドレス制御回路。
In a device that draws raster scan image data,
The width in the main scanning direction (X) and the width in the sub-scanning direction (Y
) An X register and a Y register that store the width, an x register and a y register that store the coordinate position A (x, y) on the two-dimensional image drawing surface, and a barrel shifter necessary for the two-dimensional → one-dimensional conversion process. , an ALU for performing calculations, a group of multiplexers for switching inputs to the ALU, and a control circuit for generating control signals to the registers, the ALU, and the multiplexers.
JP62089687A 1987-04-14 1987-04-14 Address control circuit Pending JPS63255779A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62089687A JPS63255779A (en) 1987-04-14 1987-04-14 Address control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62089687A JPS63255779A (en) 1987-04-14 1987-04-14 Address control circuit

Publications (1)

Publication Number Publication Date
JPS63255779A true JPS63255779A (en) 1988-10-24

Family

ID=13977676

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62089687A Pending JPS63255779A (en) 1987-04-14 1987-04-14 Address control circuit

Country Status (1)

Country Link
JP (1) JPS63255779A (en)

Similar Documents

Publication Publication Date Title
JP2541539B2 (en) Graphic processing device
EP0280320B1 (en) Graphics display controller equipped with boundary searching circuit
KR960042420A (en) Parametric Curve Generator
JPS63255779A (en) Address control circuit
KR920007752B1 (en) Horizontal line processor of data to be printed
JPH06274408A (en) Memory interface device
GB2226478A (en) Converting rectilinear (x,y) information into pixel position for a raster scan display of plural horizontal resolutions
Miner Miner... from
JPH06309349A (en) Program-controlled processor
JPS642953B2 (en)
JPS60157672A (en) Picture processing circuit
JPS6054077A (en) Programmable picture processing device
JP2518912B2 (en) Parallel data processor
JP2839026B1 (en) Parallel image processing device
JPH0229834A (en) Image processor
JPS61161576A (en) Picture signal processor
JPS58225473A (en) Clipping circuit of graphic display
JPH04112388A (en) Straight line plotting device
JPH01131969A (en) Image processing device
JPH0298787A (en) Image processor
JPH10178634A (en) Image correlation arithmetic unit
JPH03105577A (en) Vector drawing arithmetic circuit
JP2006048222A (en) Image processor and image processing method
JPH03184184A (en) Image processor
JPS63163981A (en) Graphic enlarging and reducing circuit