JPH0452880A - Line plotting address generating circuit - Google Patents
Line plotting address generating circuitInfo
- Publication number
- JPH0452880A JPH0452880A JP15677890A JP15677890A JPH0452880A JP H0452880 A JPH0452880 A JP H0452880A JP 15677890 A JP15677890 A JP 15677890A JP 15677890 A JP15677890 A JP 15677890A JP H0452880 A JPH0452880 A JP H0452880A
- Authority
- JP
- Japan
- Prior art keywords
- address
- change
- circuit
- adder
- change amount
- 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
Links
Landscapes
- Image Generation (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、メモリに対するアドレス発生に利用され、特
に、一つのアドレス空間を2次元平面に対応させた場合
の線描画アドレス発生回路に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a line drawing address generation circuit that is used to generate addresses for a memory, and particularly relates to a line drawing address generation circuit when one address space corresponds to a two-dimensional plane.
本発明は、2次元平面の線描画を行うためのアドレスを
発生する線描画アドレス発生回路において、
アドレス初期値と、アドレス変化の1次および2次微分
係数より算出したアドレス変化分とにより次のアドレス
を生成し、この生成された次のアドレスに所定のマスク
を施してアドレスを生成し、この生成されたXアドレス
とYアドレスとの論理和をとり物理アドレスとし、前記
アドレス変化分を監視してクロックパルスを発生させ、
このクロックパルスにより前記物理アドレスをラッチ出
力するようにすることにより、
制御の簡単化を図るとともに異なるアドレスマツプにも
適用できるようにしたものである。The present invention provides a line drawing address generation circuit that generates an address for drawing a line on a two-dimensional plane. An address is generated, a predetermined mask is applied to the next generated address to generate an address, the generated X address and Y address are logically summed as a physical address, and the change in the address is monitored. generate a clock pulse,
By latching and outputting the physical address using this clock pulse, control is simplified and the system can be applied to different address maps.
従来、第2図に示すような2次元アドレスマツプをもつ
メモリに対する線描画アドレス発生回路は、第4図に示
すように、Xアドレス初期値112と加算器20の出力
を人力してどちらかを選択するセレクタ18と、セレク
タ18の出力をクロックパルス114て保持するラッチ
回路19と、ラッチ回路19の出力とXアドレス変化量
113とを加算して次のXアドレスを生成する加算器2
0と、Yアト1/ス初期値115 と加算器23の出力
とを入力してどちらかを選択するセレクタ21と、セレ
クタ21の出力をクロックパルス117で保持するラッ
チ回路22と、ラッチ回路22の出力とYアドレス変化
量11B とを加算して次のYアドレスを生成する加算
器23とを含んでいる。Conventionally, a line drawing address generation circuit for a memory having a two-dimensional address map as shown in FIG. A selector 18 to select, a latch circuit 19 that holds the output of the selector 18 using a clock pulse 114, and an adder 2 that adds the output of the latch circuit 19 and the X address change amount 113 to generate the next X address.
0, Y at 1/s initial value 115, and the output of the adder 23 to select one of them; a latch circuit 22 that holds the output of the selector 21 with a clock pulse 117; and an adder 23 that adds the output of 1 and the Y address change amount 11B to generate the next Y address.
セレクタ18は、Xアドレス初期値112をラッチ回路
19に保持させるか加算器20で生成された次のXアド
レスをラッチ回路19に保持させるかを選択するための
ものであり、直線の始点は、Xアドレス初期値112に
与えてラッチ回路19に保持させる。The selector 18 is for selecting whether to hold the initial X address value 112 in the latch circuit 19 or to hold the next X address generated by the adder 20 in the latch circuit 19, and the starting point of the straight line is It is given to the X address initial value 112 and held in the latch circuit 19.
加算器20は、ラッチ回路19の出力である現在のXア
ドレスにアドレス変化量113を加えて次のXアドレス
を生成する。セレクタ21は、Yアドレス初期値115
をラッチ回路22に保持させるか加算器23で生成され
た次のYアドレスをランチ回路22に保持させるかを選
択するためのものであり、直線の始点はYアドレス初期
値115に与えてラッチ回路22に保持させる。加算器
23は、ラッチ回路22の出力である現在のYアドレス
にYアト°レス変化量を加えて次のYアドレスを生成す
る。ラッチ回路I9からのXアドレス(Kビット)とラ
ッチ回路22からのYアドレス(Lビット)とを上位と
下位(どちらを上位とするか下位とするかは任意)とし
て合わせて物理的なメモリアドレスを生成する。Adder 20 adds address change amount 113 to the current X address, which is the output of latch circuit 19, to generate the next X address. The selector 21 has a Y address initial value of 115.
This is to select whether to hold the next Y address in the latch circuit 22 or to hold the next Y address generated by the adder 23 in the launch circuit 22, and the starting point of the straight line is given to the initial Y address value 115 and the latch circuit 22 to be held. The adder 23 adds the Y address change amount to the current Y address, which is the output of the latch circuit 22, to generate the next Y address. A physical memory address is obtained by combining the X address (K bit) from the latch circuit I9 and the Y address (L bit) from the latch circuit 22 as upper and lower (it is arbitrary to decide which is upper or lower). generate.
この従来の線描画アドレス発生回路は、直線の始点をX
アドレ・ス初期値112およびYアドレス初期値115
として与え、直線の傾きをXアドレス変化量(ΔXH1
,3およびYアドレス変化量(ΔY)116によりΔY
/ΔXとして与えることができる。This conventional line drawing address generation circuit sets the starting point of a straight line to
Address initial value 112 and Y address initial value 115
The slope of the straight line is given as the amount of change in the X address (ΔXH1
, 3 and Y address change amount (ΔY) 116, ΔY
/ΔX.
この従来の線描画アドレス発生回路では、アドレス変化
量の小さい方は「1」を設定し、Xアドレス変化量11
3 とYアドレス変化量116の小さい方のクロックパ
ルスを常に与えておいて、大きい方のクロックパルスは
傾き(ΔY/ΔX)の値により間引いて与える必要があ
る。In this conventional line drawing address generation circuit, the smaller address variation is set to "1", and the X address variation is set to 11.
It is necessary to always apply the smaller clock pulse of 3 and the Y address change amount 116, and to thin out the larger clock pulse according to the value of the slope (ΔY/ΔX).
例えば、
△Y/ΔX=5
の場合、同時にクロックパルスを与えるとXアドレス変
化量113は[lコであるが、Yアドレス変化量]、1
fiが5であるため、Xアドレス5クロツクパルスに対
しYアドレスの方は1クロツタパルスを与えるようにし
ないと連続した直線にならず歯抜けになる。また、傾き
が、
1/2≦ΔY/△X≦2
の場合は、Xアドレス変化1113およびYアドレス変
化量116ともに「1」を与えておき、クロックパルス
114および117の周期を制御することにより傾きを
制御するようにしないと連続した直線は得られない。従
って、傾きの制御に対してクロックパルス114および
クロックパルス117の周波数制御を行う必要があり、
非常に複雑になる欠点があった。For example, in the case of △Y/ΔX=5, if clock pulses are applied at the same time, the amount of change in the X address 113 is [l, but the amount of change in the Y address], 1
Since fi is 5, unless one clock pulse is applied to the Y address for five clock pulses to the X address, a continuous straight line will not be obtained and the line will be missing. If the slope is 1/2≦ΔY/△X≦2, both the X address change 1113 and the Y address change amount 116 are set to “1”, and the cycles of the clock pulses 114 and 117 are controlled. A continuous straight line cannot be obtained unless the slope is controlled. Therefore, it is necessary to control the frequency of the clock pulse 114 and the clock pulse 117 to control the slope.
It had the disadvantage of being extremely complex.
また、2次曲線等の曲線のアドレス発生をする場合、X
アドレス変化量113 と、Yアドレス変化量116と
、クロックパルス114および117 とを現在のXア
ドレスおよびYアドレスにあわせて逐次変化させる必要
があるため、外部からの制御が非常に複雑になり、実用
的でない欠点があった。Also, when generating addresses for curves such as quadratic curves,
Since it is necessary to sequentially change the address change amount 113, the Y address change amount 116, and the clock pulses 114 and 117 in accordance with the current X address and Y address, external control becomes extremely complicated and practical. It had some unreasonable flaws.
さらに、物理アドレス118を生成するとき、Xアドレ
スにビットとYアドレス上ビットとを物理的に合わせて
いるため、2次元平面のアドレスマツプを変化させる場
合、ハードウェアを変更させなければならない欠点があ
った。Furthermore, when generating the physical address 118, the bits on the X address and the bits on the Y address are physically matched, so when changing the address map on a two-dimensional plane, the hardware must be changed. there were.
本発明の目的は、前記の欠点を除去することにより、制
御が簡単で、かつアドレスマツプ変化時においてハード
ウェアを変更する必要がない、2次元平面の線描画アド
レス発生回路を提供することにある。SUMMARY OF THE INVENTION An object of the present invention is to provide a two-dimensional plane line drawing address generation circuit which is easy to control and does not require changing the hardware when the address map changes, by eliminating the above-mentioned drawbacks. .
本発明は、2次元平面の線描画を行うためのアドレスを
発生する手段を備えた線描画アドレス発生回路において
、XアドレスおよびYアドレスの変化1次微分係数およ
び変化2次微分係数によりそれぞれXアドレス変化分お
よびYアドレス変化分を算出するXアドレス変化分算出
手段およびYアドレス変化分算出手段と、現在のXアド
レスおよびYアドレスと前記算出されたXアドレス変化
分およびYアドレス変化分とをそれぞれ加算して次のX
アドレスおよびYアドレスをそれぞれ生成する第一のX
アドレス生成手段および第一のYアドレス生成手段と、
前記生成された次のXアドレスおよびYアドレスをXア
ドレスマスク値およびYアドレスマスク値でそれぞれマ
スクし2次元平面アドレスマツプに適したXアドレスお
よびYアドレスをそれぞれ生成する第二のXアドレス生
成手段および第二のYアドレス生成手段と、前記生成さ
れたXアドレスおよびYアドレスから物理アドレスを生
成する物理アドレス生成手段と、前記算出されたXアド
レス変化分およびYアドレス変化分を監視し、アドレス
が変化するごとにクロックパルスを出力するアドレス変
化検出手段と、前記出力されたクロックパルスに従い前
記物理アドレスをラッチし出力するアドレス出力手段と
を備えたことを特徴とする。The present invention provides a line drawing address generation circuit equipped with a means for generating an address for drawing a line on a two-dimensional plane. X address change calculation means and Y address change calculation means that calculate the change and Y address change, and add the current X address and Y address and the calculated X address change and Y address change, respectively. and next X
The first X that generates the address and Y address respectively
an address generation means and a first Y address generation means;
a second X-address generating means for masking the generated next X-address and Y-address with an X-address mask value and a Y-address mask value, respectively, to respectively generate X-addresses and Y-addresses suitable for a two-dimensional planar address map; a second Y address generation means, a physical address generation means for generating a physical address from the generated X address and Y address, and monitoring the calculated X address change amount and Y address change amount, and detects a change in the address. The present invention is characterized in that it includes address change detection means that outputs a clock pulse every time the physical address is output, and address output means that latches and outputs the physical address in accordance with the output clock pulse.
Xアドレス変化分算出手段およびYアドレス変化分算出
手段は、それぞれのアドレス変化分の1次および2次微
分係数によりXアドレス変化分およびYアドレス変化分
を算出する。第一のXアドレス生成手段および第一のY
アドレス生成手段は、それぞれ現在のアドレスと前記算
出されたアドレス変化分とを加算して次のXアドレスお
よびYアドレスを生成する。第二のXアドレス生成手段
および第二のYアドレス生成手段は、前記生成された次
のアドレスに所定のマスクを施して対象マツプに適合し
たXアドレスおよびYアドレスを生成する。物理アドレ
ス生成手段は例えば前言己生成されたXアドレスおよび
Yアドレスの論理和をとり物理アドレスを生成する。変
化検出手段は前記アドレス変化分を監視しアドレスの変
化ごとにクロックパルスを出力する。アドレス出力手段
はこのクロックパルスに従って前記物理アドレスをラッ
チ出力する。The X address change amount calculation means and the Y address change amount calculation means calculate the X address change amount and the Y address change amount using the first and second order differential coefficients of the respective address change amounts. First X address generation means and first Y
The address generating means adds the current address and the calculated address change amount to generate the next X address and Y address. The second X address generation means and the second Y address generation means apply a predetermined mask to the generated next address to generate an X address and a Y address that match the target map. The physical address generating means generates a physical address by, for example, taking the logical sum of the previously generated X address and Y address. The change detection means monitors the address change and outputs a clock pulse every time the address changes. The address output means latches and outputs the physical address in accordance with this clock pulse.
従って、アドレス変化分(ΔY/ΔX)にかかわらず線
分に歯抜けが生じることはなくなり、例えば、2次曲線
の場合もアドレス変化1次、2次微分係数を与えればよ
く、簡単に制御することができるようになる。Therefore, regardless of the amount of address change (ΔY/ΔX), there will be no gap in the line segment, and for example, even in the case of a quadratic curve, it is only necessary to give the address change first and second derivative coefficients, making it easy to control. You will be able to do this.
また、異なるアドレスマツプに対しても、アドレスマス
ク値の設定を変えればよく、ハードウェアを変える必要
はなくなる。Furthermore, it is only necessary to change the setting of the address mask value for different address maps, and there is no need to change the hardware.
以下、本発明の実施例について図面を参照して説吠する
。Hereinafter, embodiments of the present invention will be explained with reference to the drawings.
第1図は本発明の一実施例を示すブロック構成図である
。FIG. 1 is a block diagram showing one embodiment of the present invention.
本実施例は、2次元平面の線描画を行うためのアドレス
を発生する手段を備えた線描画アドレス発生回路におい
て、
本発明の特徴とするところの、
XアドレスおよびYアドレスの変化1次微分係数102
および106ならびに変化2次微分係数103および1
07によりそれぞれXアドレス変化分およびXアドレス
変化分を算出するXアドレス変化分算出手段ならびにX
アドレス変化分算出手段としてのセレクタ1、ラッチ回
路2および加算器3、ならびにセレクタ12、ラッチ回
路13および加算器14と、現在のXアドレスおよびX
アドレスと前記算出されたXアドレス変化分およびXア
ドレス変化分とをそれぞれ加算して次のXアドレスおよ
びXアドレスをそれぞれ生成する第一のXアドレス生成
手段および第一のXアドレス生成手段としてのセレクタ
4、ラッチ回路5および加算器6、ならびにセレクタ9
、ラッチ回路10および加算器11と、前記生成された
次のXアドレスおよびXアドレスをXアドレスマスク値
104およびXアドレスマスク値108でそれぞれマス
クし2次元平面アドレスマツプに適したXアドレスおよ
びXアドレスをそれぞれ生成する第二のXアドレス生成
手段および第二のXアドレス生成手段としてのアンド回
路7および8と、前記生成されたXアドレスおよびY′
アドレスか物理アドレス111を生成する物理アドレス
生成手段としてのオア回路15と、前記算出されたXア
ドレス変化分およびXアドレス変化分を監視し、アドレ
スが変化するごとにタロツクパルス110を出力するア
ドレス変化検出手段としての変化検出回路17と、前記
出力されたクロックパルス110に従い前記物理アドレ
ス111をラッチし出力するアドレス出力手段としての
ラッチ回路16とを備えている。This embodiment is a line drawing address generation circuit equipped with a means for generating an address for drawing a line on a two-dimensional plane. 102
and 106 and change second derivative coefficients 103 and 1
X address change calculation means and X address change amount calculation means for calculating the X address change amount and the
Selector 1, latch circuit 2 and adder 3 as address change calculation means, selector 12, latch circuit 13 and adder 14, and current X address and
A selector as a first X-address generation means and a first X-address generation means that add the address and the calculated X-address variation and X-address variation to generate the next X-address and X-address, respectively. 4, latch circuit 5, adder 6, and selector 9
, a latch circuit 10 and an adder 11, and mask the generated next X address and X address with an X address mask value 104 and an X address mask value 108, respectively, to create an and AND circuits 7 and 8 as second X address generation means and second X address generation means for respectively generating the X address and Y'
An OR circuit 15 as a physical address generation means that generates an address or a physical address 111, and an address change detection unit that monitors the calculated X address change amount and the X address change amount and outputs a tarok pulse 110 every time the address changes. It is provided with a change detection circuit 17 as a means, and a latch circuit 16 as an address output means for latching and outputting the physical address 111 according to the output clock pulse 110.
そして、セレクタ1にはXアドレス変化1吹微分係数1
02と加算器3の出力とが人力され、加算器3にはXア
ドレス変化2吹微分係数103とラッチ回路2の出力と
が人力される。また、セレクタ4にはXアドレス初期値
101と加算器6の8力とが人力され、加算器6には加
算器3の出力とラッチ回路5の出力とが人力される。こ
こで、セレクタ1および4と、ラッチ回路2および5と
、加算器3および6と、アンド回路7とでXアドレス生
成部24を構成している。Then, selector 1 has X address change 1 blowing differential coefficient 1
02 and the output of the adder 3 are manually input, and the X address change two-stroke differential coefficient 103 and the output of the latch circuit 2 are input manually to the adder 3. Further, the X address initial value 101 and the output of the adder 6 are input to the selector 4, and the output of the adder 3 and the output of the latch circuit 5 are input to the adder 6. Here, selectors 1 and 4, latch circuits 2 and 5, adders 3 and 6, and AND circuit 7 constitute X address generation section 24.
同様に、セレクタ12にはYアドレス変化1汰微分係数
106と加算器14の出力とが入力され、加算器14に
はYアドレス変化2汰微分係数107とラッチ回路13
の出力とが人力される。また、セレクタ9にはXアドレ
ス初期値105と加算器11の出力とが人力され、加算
器11には加算器14の出力とランチ回路10の出力と
が入力され、加算器11には加算器14の出力とラッチ
回路10の出力とが人力される。Similarly, the Y address change 1st differential coefficient 106 and the output of the adder 14 are input to the selector 12, and the Y address change 2nd differential coefficient 107 and the latch circuit 13 are input to the adder 14.
The output is human-powered. Further, the selector 9 is input with the X address initial value 105 and the output of the adder 11, the adder 11 is input with the output of the adder 14 and the output of the launch circuit 10, and the adder 11 is input with the output of the adder 14 and the output of the launch circuit 10. 14 and the output of the latch circuit 10 are manually input.
ここで、セレクタ9および12と、ラッチ回路10およ
び13と、加算器11および14と、アンド回路8とは
Yアドレス生成部25を構成している。Here, the selectors 9 and 12, the latch circuits 10 and 13, the adders 11 and 14, and the AND circuit 8 constitute a Y address generation section 25.
さらに、ラッチ回路2.5.10および13にはそれぞ
れ同一のクロックパルス109が入力される。Furthermore, the same clock pulse 109 is input to each of the latch circuits 2.5.10 and 13.
次に、本実施例の動作について説明する。Next, the operation of this embodiment will be explained.
セレクタ1は、Xアドレス変化1吹微分係数(■ビット
)102と現在のXアドレス変化分とを選択し、ラッチ
回路2でその変化分を保持する。加算器3は、Xアドレ
ス変化2吹微分係数(Iピッ))103とラッチ回路2
の出力とを加算し、次のXアドレス変化分(エビット)
を生成する。セレクタ4は、線分の始点のXアドレス初
期値101と加算器6からのXアドレスを選択し、ラッ
チ回路5はそのセレクタ4の出力を保持する。加算器6
は、現在のXアドレス(M+Iビット)と加算器3出力
のXアドレス変化分く■ビット)とを加算し次のXアド
レス(M+1ビット)を生成する。The selector 1 selects the X address change one-time differential coefficient (■ bit) 102 and the current X address change, and the latch circuit 2 holds the change. Adder 3 includes X address change 2-blow differential coefficient (I-pi)) 103 and latch circuit 2
and the output of the next X address change (ebit)
generate. The selector 4 selects the initial X address value 101 of the starting point of the line segment and the X address from the adder 6, and the latch circuit 5 holds the output of the selector 4. Adder 6
adds the current X address (M+I bits) and the change in X address of the adder 3 output ((■ bits)) to generate the next X address (M+1 bits).
実際にXアドレスになるのは上位Mビットのみである。Only the upper M bits actually become the X address.
このMビットとIビットとの関係を第3図に示す。第3
図中()を付したものはYアドレス生成部25について
示している。Xアドレス変化分(■ビット)とXアドレ
ス内部演算(M+Ifニー”ット)とのLSBは同じ桁
であり、M+Iビットの上位Mビットのみが実際のアド
レスとなる。FIG. 3 shows the relationship between the M bit and the I bit. Third
In the figure, the part with parentheses indicates the Y address generation section 25. The LSBs of the X address change (■ bit) and the X address internal operation (M+If need) are of the same digit, and only the upper M bits of the M+I bits constitute the actual address.
Xアドレス変化1吹微分係数102および2次微分係数
103を小数点以下■ビット分まで設定するようになっ
ているため、線分の細かい傾き(ΔY/ΔX)が設定で
きる。アンド回路7は、Xアドレス内部演算(M+Iビ
ット)の上位MビットをXアドレスのビット数にするた
めに、Xアドレスマスク値104により上位ビットをマ
スクする。Since the X address change 1-stroke differential coefficient 102 and the second-order differential coefficient 103 are set up to ■ bits below the decimal point, a fine slope (ΔY/ΔX) of the line segment can be set. The AND circuit 7 masks the upper bits with the X address mask value 104 in order to make the upper M bits of the internal operation of the X address (M+I bits) the number of bits of the X address.
第1図のXアドレス生成部24とYアドレス生成部25
とは同様の機能をもち、セレクタ12はYアドレス変化
1吹微分係数(Jピッ))106と現在のXアドレス変
化分とを選択し、ラッチ回路13でその変化分であるセ
レクタ12の出力を保持する。加算器14は、Yアドレ
ス変化2吹微分係数(Jピント)107とラッチ回路1
3の出力とを加算し、次のXアドレス変化分(Jビット
)を生成する。セレクタ9は線分の始点のYアドレス初
期値105 と、加算器11からのYアドレスとを選択
し、ラッチ回路10はそのセレクタ9の出力を保持する
。加算器11は、現在のYアドレスと加算器14の出力
のXアドレス変化分くJビット)とを加算し、次のYア
ドレス(N+Jビット)を生成する。アンド回路8は、
Yアドレス内部演算(N+Jビット)の上位Nビットを
Yアドレスのビット数にするために、Yアドレスマスク
値108により上位ビットをマスクする。X address generation section 24 and Y address generation section 25 in FIG.
has a similar function, the selector 12 selects the Y address change 1 blow differential coefficient (J-pi)) 106 and the current X address change, and the latch circuit 13 outputs the output of the selector 12 which is the change. Hold. The adder 14 has a Y address change 2-stroke differential coefficient (J focus) 107 and a latch circuit 1.
3 is added to generate the next X address change (J bits). The selector 9 selects the initial Y address value 105 of the starting point of the line segment and the Y address from the adder 11, and the latch circuit 10 holds the output of the selector 9. The adder 11 adds the current Y address and the change in the X address (J bits) of the output of the adder 14 to generate the next Y address (N+J bits). AND circuit 8 is
In order to make the upper N bits of the Y address internal calculation (N+J bits) equal to the bit number of the Y address, the upper bits are masked by the Y address mask value 108.
オア回路15は、アンド回路7および8で得られたXア
ドレスとYアドレスとを上位アドレスおよび下位アドレ
スとして一つの物理アドレス(K牛Lビット)を生成す
る。そして、そのオア回路15の出力をラッチ回路16
で保持し出力する。ラッチ回路16に対するクロックは
変化検出回路17の出力である。変化検出回路17は、
Xアドレス生成部24の加算器3の出力であるXアドレ
ス変化分と、Yアドレス生成部25の加算器14の出力
であるXアドレス変化分とを比較し、変化分の大きい方
のアンド回路7または8の出力を監視し、アドレスが変
化するとクロックパルス110を出力する。The OR circuit 15 generates one physical address (K and L bits) using the X address and Y address obtained by the AND circuits 7 and 8 as an upper address and a lower address. Then, the output of the OR circuit 15 is transferred to the latch circuit 16.
is held and output. The clock for the latch circuit 16 is the output of the change detection circuit 17. The change detection circuit 17 is
The X address change amount which is the output of the adder 3 of the X address generation section 24 is compared with the X address change amount which is the output of the adder 14 of the Y address generation section 25, and the AND circuit 7 or 8, and outputs a clock pulse 110 when the address changes.
従って、線分の始点をXアドレス初期値101およびY
アドレス初期値105として与え、線分の初期の傾き(
ΔY/ΔX)をXアドレス変化1汰微分係数102およ
びYアドレス変化1汰微分係数106として設定し、曲
線の場合は、Xアドレス変化2吹微分係数103および
Yアドレス変化2吹微分係数107を与えることにより
任意の線分が描ける。Therefore, the starting point of the line segment is set to the initial value of X address 101 and Y
Given as the address initial value 105, the initial slope of the line segment (
ΔY/ΔX) is set as the X address change 1st differential coefficient 102 and the Y address change 1st differential coefficient 106, and in the case of a curve, give the X address change 2nd differential coefficient 103 and the Y address change 2nd differential coefficient 107. This allows you to draw any line segment.
直線の場合は、XおよびYアドレス変化2吹微分係数1
03および107はともに0とする。In the case of a straight line, X and Y address change 2 blowing differential coefficient 1
Both 03 and 107 are set to 0.
以上説明したように、本実施例は、線分の傾き(ΔY/
ΔX)をXアドレス変化分およびXアドレス変化分とし
て実際のアドレスの小数点以下の数値として与えておき
、アドレス変化分の大きい方のアドレスが変化するごと
に自動的にアドレスのラッチを行うため、傾きの大きさ
によらず各ラッチ回路2.5.10および13に同一の
クロックパルス109を与えることにより、線分が歯抜
けになることもなく、制御が非常に簡単である。As explained above, in this example, the slope of the line segment (ΔY/
ΔX) is given as the decimal point of the actual address as the X address change and the X address change, and the address is automatically latched every time the address with the larger address change changes. By applying the same clock pulse 109 to each of the latch circuits 2, 5, 10 and 13 regardless of the magnitude of the clock pulse 109, the line segment does not become missing, and control is very simple.
また、2次曲線のアドレスを発生する場合でも、Xアド
レス変化2吹微分係数およびYアドレス変化2吹微分係
数を与えればよく、制御が非常に簡単である。Furthermore, even when a quadratic curve address is generated, it is only necessary to give the X address change two-stroke differential coefficient and the Y address change two-stroke differential coefficient, and the control is very simple.
さらに、XアドレスとYアドレスから物理アドレスをオ
ア回路によって生成するため、異なったアドレスマツプ
をもつ2次元平面に対しても、Xアドレスマスク値およ
びYアドレスマスク値を設定するのみで対応できるため
、同一のハードウェアを用いることができる。Furthermore, since the physical address is generated from the X address and the Y address using an OR circuit, it is possible to handle two-dimensional planes with different address maps by simply setting the X address mask value and the Y address mask value. Identical hardware can be used.
以上説明したように、本発明によれば、線分の傾きによ
らずに線分が歯抜けになることもなく、また、2次曲線
のアドレスもX、Yアドレス2次微分係数を与えること
で得られ、さらに、異なったアドレスマツプをもつ2次
元平面に対しても同一ハードウェアを用いX、Yアドレ
スマスク値の設定のみで得られる制御が非常に簡単な線
描画アドレス発生回路を実現することができ、その効果
は大である。As explained above, according to the present invention, the line segment does not become missing regardless of the slope of the line segment, and the address of the quadratic curve also gives the X, Y address quadratic differential coefficient. In addition, the same hardware can be used for two-dimensional planes with different address maps to realize a line drawing address generation circuit that is extremely easy to control by simply setting the X and Y address mask values. It can be done and the effect is great.
第1図は本発明の一実施例を示すブロック構成図。
第2図は2次元平面のアドレスマツプを示す図。
第3図はXアドレス生成部およびYアドレス生成部のビ
ット対応図。
第4図は従来例を示すブロック構成図。
1.4.9.12.1.8.21・・・セレクタ、2.
5.10.13.16.19.22・・・ラッチ回路、
3.6.11.14.20.23・・・加算器、7.8
・・・アンド回路、15−・・オア回路、17・・・変
化検出回路、24・・・Xアドレス生酸部、25・・・
Yアドレス生成部、101.112・・・Xアドレス初
期値、102・・・Xアドレス変化1吹微分係数、10
3・・・Xアドレス変化2吹微分係数、104・・Xア
ドレスマスク値、105.115・・・Yアドレス初期
値、106・・・Yアドレス変化1吹微分係数、107
・・・Yアドレス変化2吹微分係数、108・・・Yア
ドレスマスク値、109.110.114.117・・
・クロックパルス、111.118・・・物理アドレス
、113・・・Xアドレス変化量、116・・・Xアド
レス変化量。FIG. 1 is a block diagram showing an embodiment of the present invention. FIG. 2 is a diagram showing an address map on a two-dimensional plane. FIG. 3 is a bit correspondence diagram of the X address generation section and the Y address generation section. FIG. 4 is a block diagram showing a conventional example. 1.4.9.12.1.8.21...Selector, 2.
5.10.13.16.19.22...Latch circuit,
3.6.11.14.20.23...Adder, 7.8
...AND circuit, 15-...OR circuit, 17...change detection circuit, 24...X address raw acid section, 25...
Y address generation unit, 101.112...X address initial value, 102...X address change 1-stroke differential coefficient, 10
3...X address change 2-stroke differential coefficient, 104...X address mask value, 105.115...Y address initial value, 106...Y address change 1-stroke differential coefficient, 107
...Y address change 2-stroke differential coefficient, 108...Y address mask value, 109.110.114.117...
- Clock pulse, 111.118...Physical address, 113...X address change amount, 116...X address change amount.
Claims (1)
る手段を備えた線描画アドレス発生回路において、 XアドレスおよびYアドレスの変化1次微分係数および
変化2次微分係数によりそれぞれXアドレス変化分およ
びYアドレス変化分を算出するXアドレス変化分算出手
段およびYアドレス変化分算出手段と、 現在のXアドレスおよびYアドレスと前記算出されたX
アドレス変化分およびYアドレス変化分とをそれぞれ加
算して次のXアドレスおよびYアドレスをそれぞれ生成
する第一のXアドレス生成手段および第一のYアドレス
生成手段と、 前記生成された次のXアドレスおよびYアドレスをXア
ドレスマスク値およびYアドレスマスク値でそれぞれマ
スクし2次元平面アドレスマップに適したXアドレスお
よびYアドレスをそれぞれ生成する第二のXアドレス生
成手段および第二のYアドレス生成手段と、 前記生成されたXアドレスおよびYアドレスから物理ア
ドレスを生成する物理アドレス生成手段と、 前記算出されたXアドレス変化分およびYアドレス変化
分を監視し、アドレスが変化するごとにクロックパルス
を出力するアドレス変化検出手段と、 前記出力されたクロックパルスに従い前記物理アドレス
をラッチし出力するアドレス出力手段とを備えたことを
特徴とする線描画アドレス発生回路。[Scope of Claim] A line drawing address generation circuit equipped with means for generating an address for drawing a line on a one- or two-dimensional plane, comprising: a first-order differential coefficient of change and a second-order differential coefficient of change of an X address and a Y address; X address change amount calculation means and Y address change amount calculation means for calculating the X address change amount and Y address change amount, respectively, and the current X address and Y address and the calculated X address.
a first X address generating means and a first Y address generating means for generating the next X address and Y address, respectively, by adding the address change amount and the Y address change amount, respectively; and the generated next X address. and a second X address generation means and a second Y address generation means for respectively masking the Y address with an X address mask value and a Y address mask value and respectively generating an X address and a Y address suitable for a two-dimensional planar address map. , physical address generation means for generating a physical address from the generated X address and Y address, and monitoring the calculated X address change amount and Y address change amount and outputs a clock pulse every time the address changes. A line drawing address generation circuit comprising: address change detection means; and address output means for latching and outputting the physical address in accordance with the output clock pulse.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP15677890A JPH0452880A (en) | 1990-06-15 | 1990-06-15 | Line plotting address generating circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP15677890A JPH0452880A (en) | 1990-06-15 | 1990-06-15 | Line plotting address generating circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0452880A true JPH0452880A (en) | 1992-02-20 |
Family
ID=15635110
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP15677890A Pending JPH0452880A (en) | 1990-06-15 | 1990-06-15 | Line plotting address generating circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0452880A (en) |
-
1990
- 1990-06-15 JP JP15677890A patent/JPH0452880A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4667236A (en) | Television perspective effects system | |
JP3747523B2 (en) | Image processing apparatus and processing method | |
US5270954A (en) | Filter device and electronic musical instrument using the filter device | |
JPH10215147A (en) | Interpolation unit using plural polynomials and related method | |
GB2289818A (en) | Programmable video transformation | |
JPH0452880A (en) | Line plotting address generating circuit | |
JPH0313066A (en) | Method and apparatus for color correction | |
JPH0271384A (en) | Linear approximation device for cubic Bezier curves | |
Hyvarinen et al. | On existence and uniqueness of solutions in nonlinear independent component analysis | |
JPH03186077A (en) | Digital mixer | |
JPS61184687A (en) | Control system of multilevel image magnification and reduction | |
JPH10320524A (en) | Look-up table device and image generator | |
JPH0371331A (en) | Multiplier | |
JPH11155099A (en) | Electronic zoom processor | |
JPH10135742A (en) | Signal waveform generation device | |
JP3097081B2 (en) | Variable stage m-sequence code generator | |
JPS60200371A (en) | Graphic generator | |
JPH0418681A (en) | Picture reduction/enlargement pattern generating circuit | |
JPH02114324A (en) | Multiplier | |
JPH0447454A (en) | Method and device for discrete fourier transformation or cosine transformation of digital data | |
JP2697312B2 (en) | XY / r-θ conversion circuit | |
JPH05266060A (en) | Matrix operation circuit | |
JPS63262745A (en) | Address forming circuit | |
JPH0261779A (en) | Coordinate data processing unit | |
JPH01149181A (en) | Method for generating dda circle |