JPH02254573A - Raster arithmetic unit - Google Patents

Raster arithmetic unit

Info

Publication number
JPH02254573A
JPH02254573A JP7791289A JP7791289A JPH02254573A JP H02254573 A JPH02254573 A JP H02254573A JP 7791289 A JP7791289 A JP 7791289A JP 7791289 A JP7791289 A JP 7791289A JP H02254573 A JPH02254573 A JP H02254573A
Authority
JP
Japan
Prior art keywords
data
word length
word
register
length
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
JP7791289A
Other languages
Japanese (ja)
Inventor
Masami Sato
正美 佐藤
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.)
PFU Ltd
Original Assignee
PFU 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 PFU Ltd filed Critical PFU Ltd
Priority to JP7791289A priority Critical patent/JPH02254573A/en
Publication of JPH02254573A publication Critical patent/JPH02254573A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Abstract

PURPOSE:To obtain general usefullness to the length and width of a word by inserting a data selector in front of a barrel shifter, arranging plural data selectors in back of the barrel shifter and providing plural function decoders corresponding to the minimum length and width of the word. CONSTITUTION:When a raster arithmetic unit is used with the maximum word length, the value of the word length is set to a word length register 12 and shift quantity, arithmetic class, bit mask data, number of words to be transferred, source data, destination data and pattern data, etc., are set to the other various registers. Then, the raster arithmetic units is operated. In this case of the maximum word length, a data selector 13 outputs data from source registers 10 and 11 to a barrel shifter 15 with maintaining an order as it is and data selectors S1-S4 send data for the maximum length and width of the word from the barrel shifter 15 to function decoders F1-F4. When the unit is used by the 1/2 or 1/4 word length of the maximum word length, the value of the word length is set to the word length register 12 respectively and the unit is used. Thus, the general usefullness to the length and width of the word can be obtained.

Description

【発明の詳細な説明】 〔概要〕 ビットマツプグラフインクの制御TJを行うラスタ演算
装置において。
DETAILED DESCRIPTION OF THE INVENTION [Summary] In a raster arithmetic device that performs control TJ of bitmap graph ink.

同時演算ビット数の変化によるラスタ演算装置の処理能
力の低下と1語長変化に対する対応の困難性を解決する
ため。
To solve the problem of a decrease in the processing capacity of a raster arithmetic unit due to a change in the number of bits for simultaneous operation and the difficulty of responding to a change in one word length.

ソースレジスタの出力を使用語長に応じて並べ換えるデ
ータセレクタを、バレルシフタの前に挿入し、また、バ
レルシフタの後に、複数個のデータセレクタを配置し、
かつ複数個の最小語長幅に対応するファンクシランデコ
ーダを持つことにより。
A data selector that sorts the output of the source register according to the word length used is inserted before the barrel shifter, and a plurality of data selectors are placed after the barrel shifter,
and by having a Funk Silane decoder that supports multiple minimum word lengths and widths.

語長幅に対して汎用性があり、処理効率のよいラスタ演
算装置を実現する。
To realize a raster arithmetic device that is versatile with respect to word length and width and has high processing efficiency.

C産業上の利用分野〕 本発明は、ビットマツプグラフィックスにより。C Industrial application field] The present invention uses bitmap graphics.

デイスプレィに表示するシステムにおいて、ビットマツ
プグラフィックを、スライスドビクセル(ブレーンタイ
プ)で処理制御する装置に係わり。
Involved in devices that process and control bitmap graphics using sliced pixel (brain type) in display systems.

特に、各種の語長幅に柔軟に対応できるようにしたラス
タ演算装置に関するものである。
In particular, the present invention relates to a raster arithmetic device that can flexibly accommodate various word lengths and widths.

(従来の技術〕 第7図は一触的なラスタ演算装置を説明するための図、
第8図は従来のラスタ演算装置の例を示す。
(Prior art) Fig. 7 is a diagram for explaining a touch-sensitive raster calculation device.
FIG. 8 shows an example of a conventional raster arithmetic device.

第7図(イ)は、ラスタ演算装置100を用いるシステ
ムの例であり、50はCPU、51は主記憶装置、52
は各種の入出力装置(Ilo)。
FIG. 7(a) is an example of a system using the raster arithmetic device 100, in which 50 is a CPU, 51 is a main storage device, and 52
are various input/output devices (Ilo).

53は表示制御回路、54はCRT等のデイスプレィ、
BUSはバス、BUFはバッファ、Pはデイスプレィ5
4に表示されるイメージデータが格納されるメモリのブ
レーンを表す。
53 is a display control circuit; 54 is a display such as a CRT;
BUS is the bus, BUF is the buffer, P is the display 5
4 represents a memory brain in which image data to be displayed is stored.

・ビットマツプグラフィックをスライスドビクセル(プ
レーンタイプ)で処理制御する装置では。
- For devices that process and control bitmap graphics using sliced pixel (plane type).

デイスプレィ54に表示する表示データは、プレーンP
に保持されている0例えばモノクロ画像の場合には、ブ
レーンPは1枚、カラー画像の場合には2表示色数によ
り複数枚のブレーンPを持つ。
The display data displayed on the display 54 is the plane P.
For example, in the case of a monochrome image, there is one brane P, and in the case of a color image, there are two or more branes P depending on the number of display colors.

このビットマツプデイスプレィを扱うシステムにおいて
、プレーンタイプで表示データを高速に処理する場合に
、ラスタ演算装置100が使用される。
In a system that handles bitmap displays, the raster arithmetic unit 100 is used when plain type display data is processed at high speed.

ラスタ演)E装置100は、各ブレーンPで独立で、第
7図(ロ)に示すように、ソースデータ60、ディステ
ィネーションデータ61.パターンデータ62の3つの
オペランドに対して5指定されたファンクシランによる
プール代数の論理演算を行い、結果を新ディスティネー
シッンデータ63として出力する。これを、新しい表示
データとして、プレーンPのメモリに書き込むことによ
り。
The raster rendering) E device 100 has each brane P independent, and as shown in FIG. 7(b), source data 60, destination data 61. A logical operation of a pool algebra using a funxilan specified by 5 is performed on the three operands of the pattern data 62, and the result is output as new destination data 63. By writing this to the memory of plane P as new display data.

色々な図形を発生させることができる。You can generate various shapes.

第7図(ロ)では、(ソース)OR(ディスティネーシ
ョン)AND (パターン)の論理演算を行うファンク
シランが指定された例を示しているが1Mhの論理演算
についても、CPU50からのファンクシランの設定に
より、同様に処理可能である。
FIG. 7(B) shows an example in which a funxilan that performs the logical operation of (source) OR (destination) AND (pattern) is specified. Depending on the settings, similar processing is possible.

従来のラスタ演算装置100の内部構成は2Nえば第8
図に示すようになっている。
The internal configuration of the conventional raster arithmetic device 100 is 8th if 2N.
It is as shown in the figure.

第8図において、ソースレジスタ10.11は。In FIG. 8, source registers 10.11.

第7図(ロ)に示すソースデータ60がプレーンPから
読み出されて格納されるレジスタである。
This is a register in which source data 60 shown in FIG. 7(b) is read from plane P and stored.

ここで、2個のレジスタが用意されているのは。Here, two registers are prepared.

読み出しが語境界に応じて行われるので、処理対象とな
るビット位置の調整のためである。
This is to adjust the bit position to be processed since reading is performed according to word boundaries.

その位置調整のために、バレルシフタ15が設けられ、
バレルシフタ15は、シフト量レジスタ14に設定され
たシフト量のビット数分だけ、1クロツクでデータをシ
フトする。
In order to adjust the position, a barrel shifter 15 is provided,
The barrel shifter 15 shifts data by the number of bits of the shift amount set in the shift amount register 14 in one clock.

ファンクシランデコーダFtJNCは、ファンクシラン
レジスタ22に設定されたファンクシランに応じて、バ
レルシフタ15によりシフトされたソースデータ、ディ
スティネーションレジスタ2Oに読み出されたディステ
ィネーションデータ。
The funk silane decoder FtJNC receives source data shifted by the barrel shifter 15 and destination data read into the destination register 2O according to the funk silan set in the funk silan register 22.

パターンレジスタ21に読み出されたパターンデータに
ついての論理演算を実行する。
A logical operation is performed on the pattern data read into the pattern register 21.

マスクレジスタ23は、ディスティネーションのライン
において、処理対象のウィンドウ外となる左側部分をマ
スクするデータを保持するレジスタである。マスクレジ
スタ24は、処理対象のウィンドウ外となる右側部分を
マスクするデータを保持するレジスタである。
The mask register 23 is a register that holds data for masking the left side portion of the destination line outside the window to be processed. The mask register 24 is a register that holds data for masking the right side portion outside the window to be processed.

転送語数カウンタ25は、1ライン分の処理語数を−1
ずつ計数するカウンタであり、転送語数ホールドレジス
タ26は、1ライン分の処理語数を保持するレジスタで
ある。
The transfer word number counter 25 decreases the number of processed words for one line by -1.
The transfer word number hold register 26 is a register that holds the number of processed words for one line.

出カバソファ27は、ファンクションデコーダFUNC
による演算結果を保持するバッファであり、この出力は
、外部バス29を経由して、プレーンPにおけるディス
ティネーション領域に書き込まれる。
The output sofa 27 has a function decoder FUNC.
This is a buffer that holds the result of the calculation, and this output is written to the destination area in the plane P via the external bus 29.

第7図(イ)に示すCPU50は、このラスタ演算装置
における各種レジスタにデータをセットし、シーケンサ
のようにマスク演算装置を制御する。
A CPU 50 shown in FIG. 7(a) sets data in various registers in this raster arithmetic device and controls the mask arithmetic device like a sequencer.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

表示処理の高速化のため、データを処理するCPUだけ
でな(、マスク演算装置にも高い処理能力が要求される
ようにな・うてきている、高速化を図る一つの手段は、
バス幅を広げ、同時に処理するビット数を増やすことで
ある。
In order to increase the speed of display processing, not only the CPU that processes data (but also the mask calculation device) is required to have high processing power.One means to increase the speed is to
The goal is to widen the bus width and increase the number of bits that can be processed simultaneously.

しかし、従来、第8図に示すようなマスク演算装置が演
算し得る語長は、CPUの機種等によって定まるバス幅
と同じであり、固定であった。すなわち、従来のマスク
演算装置の構成では、設計語長幅以外の処理への対応が
できなかった。
However, conventionally, the word length that can be calculated by a mask calculation device as shown in FIG. 8 has been fixed and is the same as the bus width determined by the type of CPU. That is, the configuration of the conventional mask calculation device cannot handle processes other than design word length and width.

なぜなら、設計語長幅板上では、バレルシフタ15によ
るピントアライメントの操作が不可能であるからである
。一方、設計語長幅を十分に大きくシ、それを部分的に
使用した場合、ソースレジスタ10.11からのデータ
が不連続になって。
This is because it is impossible to perform focus alignment using the barrel shifter 15 on the long board. On the other hand, if the design word length width is sufficiently large and it is partially used, the data from the source registers 10 and 11 will become discontinuous.

処理ができなくなる。Processing becomes impossible.

また、設計語長幅が、使用語長の2倍以上あるからとい
って、2ブレーンの処理を行うことはできず、もし、2
ブレーンの処理を行おうとすると。
In addition, even if the design word length width is more than twice the used word length, it is not possible to process two branes.
When I try to process the brain.

ファンクションデコーダFUNCが、各ブレーンに対応
できないため2例えば時分割的に無理に処理したとして
も、処理能力の低下を引き起こすという問題があった。
Since the function decoder FUNC cannot handle each brane, there is a problem in that even if the processing is forced, for example, in a time-division manner, the processing capacity will be reduced.

本発明は上記問題点の解決を図り1語長幅に対して汎用
性があり、処理効率のよいマスク演算装置を提供するこ
とを目的としている。
SUMMARY OF THE INVENTION An object of the present invention is to solve the above-mentioned problems and provide a mask arithmetic device which is versatile for one word length and has good processing efficiency.

〔課題を解決するための手段〕[Means to solve the problem]

第1図は本発明の構成例を示す。 FIG. 1 shows an example of the configuration of the present invention.

2つのソースレジスタ10.11は9それぞれ処理可能
な最大語長幅の大きさになっている0語長レジスタ12
には、外部のCPUにより、債用語長の値が事前にセッ
トされる。データセレクタ13は、ll長レジスタ12
の値に応じて、ソースレジスタ10.11の出力を並び
換える働きをする。
The two source registers 10 and 11 are 9 and 0 word length register 12 each has the size of the maximum word length width that can be processed.
, the value of the bond term length is set in advance by an external CPU. The data selector 13 is the ll length register 12.
It functions to rearrange the outputs of the source registers 10 and 11 according to the values of .

バレルシフタ15は、データセレクタ13の出力につい
て、シフト量レジスタ14の内容に応じたピントシフト
により、ピントアライメント操作を行う回路である。バ
レルシフタ15は、最大語長幅の2倍の大きさを持つ。
The barrel shifter 15 is a circuit that performs a focus alignment operation on the output of the data selector 13 by shifting the focus according to the contents of the shift amount register 14. The barrel shifter 15 has a size twice the maximum word length and width.

バレルシフタ15の出力は、複数個のデータセレクタs
t〜S4に分割されて入力される。データセレクタSl
〜S4の個数は、処理可能な最大語長幅のビット数を最
小語長幅のビット数で割9た値によって決められる。こ
の例では、4個になっている。
The output of the barrel shifter 15 is sent to a plurality of data selectors s.
It is divided into t to S4 and input. Data selector Sl
The number of ~S4 is determined by the value obtained by dividing the number of bits of the maximum word length and width that can be processed by the number of bits of the minimum word length and width. In this example, there are four.

ファンクションデコーダF1〜F4についても。Also regarding function decoders F1 to F4.

処理可能な最大語長幅のビット数を最小語長幅のピント
数で割った値の個数に分割されている。ファンクション
デコーダFl−F4は、それぞれデータセレクタ81〜
S4の出力と、ディスティネーションレジスタ20.パ
ターンレジスタ21の出力とにより、ファンクションレ
ジスタ22で指定されたファンクション(演算種)の論
理演算を実行する。
It is divided into the number of bits of the maximum word length and width that can be processed divided by the number of bits of the minimum word length and width. Function decoders Fl-F4 each have data selectors 81 to 81.
S4 output and destination register 20. Based on the output of the pattern register 21, a logical operation of the function (operation type) specified by the function register 22 is executed.

マスクレジスタ23.24は、それぞれ処理対象ライン
の左右における処理不要部分をマスクするためのビット
マスクデータを保持するレジスタである。
The mask registers 23 and 24 are registers that hold bit mask data for masking unprocessed portions on the left and right sides of the line to be processed.

転送語数カウンタ25は、1ライン分の転送語数を−1
ずつ計数するカウンタであり、転送語数ホールドレジス
タ26は、処理対象となる1ラインの転送語数を保持す
るレジスタである。転送語数ホールドレジスタ26の値
は、lラインごとの処理開始時に、転送語数カウンタ2
5にセットされ、転送語数カウンタ25の値は、1!i
の処理ごとに−1ずつ減算される。また、1ライン分の
処理の開始時にマスクレジスタ23の値がファンクショ
ンデコーダF1〜F4に出力され。転送語数カウンタ2
5の値がOになると、もう一つのマスクレジスタ24の
値がファンクションデコーダF1〜F4に出力される。
The transfer word number counter 25 decreases the number of transfer words for one line by -1.
The transfer word number hold register 26 is a register that holds the number of transfer words for one line to be processed. The value of the transfer word number hold register 26 is set by the transfer word number counter 2 at the start of processing for each line.
5, and the value of the transfer word counter 25 is 1! i
-1 is subtracted for each processing. Further, at the start of processing for one line, the value of the mask register 23 is output to the function decoders F1 to F4. Transfer word counter 2
When the value of 5 becomes O, the value of another mask register 24 is output to the function decoders F1 to F4.

出カバソファ27には、ファンクションデコーダFl−
F4による演算結果がセットされ、ここから最大語長幅
の外部バス29にデータが出力される、また、外部バス
29と各レジスタとは、最大語長幅の内部バス28によ
って接続されている。
The output sofa 27 has a function decoder Fl-
The calculation result by F4 is set, and data is output from there to the external bus 29 with the maximum word length and width.The external bus 29 and each register are connected by the internal bus 28 with the maximum word length and width.

〔作用〕[Effect]

第1図に示すラスタ演算装置を、最大語長で使用する場
合には、 IN長レジスタ12にその語長の値を設定し
、他の各種レジスタには、従来と同様に2シフト量、演
算種、ビットマスクデータ、転送語数、ソースデータ2
デイステイネーシツンデータ、パターンデータなどを設
定して動作させる。
When using the raster arithmetic device shown in FIG. 1 with the maximum word length, set the word length value in the IN length register 12, and set the value of the word length in the IN length register 12, and set the value of the 2-shift amount and the operation value in the other various registers as before. Seed, bitmask data, number of transferred words, source data 2
Set date data, pattern data, etc. and operate.

この最大語長の場合、データセレクタ13は。In the case of this maximum word length, the data selector 13 is.

ソースレジスタ10.11からのデータを、そのままの
順番でバレルシフタ15に出力し、データセレクタ81
〜S4は、バレルシフタ15の最大語長幅分のデータを
、ファンクシランデコーダF1〜F4へ送る。これによ
り、最大語長の演算が実現される。
The data from the source registers 10 and 11 are output to the barrel shifter 15 in the same order, and the data selector 81
~S4 sends data for the maximum word length and width of the barrel shifter 15 to the funxylan decoders F1~F4. This realizes the calculation of the maximum word length.

また、このラスタ演算装置を2例えば最大語長の2分の
1または4分の1で使用する場合には。
Also, when this raster arithmetic device is used with 2, for example, one-half or one-fourth of the maximum word length.

それぞれ語長レジスタ12に、その語長の値を設定して
使用する。これにより、データセレクタ13は、ソース
レジスタ10.11からのデータの並び換えを行い、デ
ータセレクタ81〜s4は。
Each word length value is set in the word length register 12 and used. As a result, the data selector 13 rearranges the data from the source register 10.11, and the data selectors 81-s4.

バレルシフタ15の出力を、使用語長に応じて。The output of the barrel shifter 15 depends on the word length used.

グループ化して、各ファンクシランデコーダF1〜F4
に供給する。したがって、使用語長に応じた演算を、そ
れぞれ独立に同時に実行できることになる。
Group each funk silane decoder F1 to F4
supply to. Therefore, operations depending on the word lengths used can be executed independently and simultaneously.

第1図に示す例では、「最大語長ビット数+i小語長ビ
ット数−4」であり、データセレクタ81〜54.  
ファンクシランデコーダFINF4が4kl設けられて
いるが、もちろん2 これに限らず。
In the example shown in FIG. 1, "maximum word length bit number + i small word length bit number - 4", and the data selectors 81 to 54.
Although 4kl of Funk Silane decoders FINF4 are provided, it is of course not limited to 2.

他の場合にも同様に通用することができる。The same applies to other cases as well.

〔実施例〕〔Example〕

第2図は第1図に示すラスタ演算装置の使用例。 FIG. 2 shows an example of how the raster arithmetic device shown in FIG. 1 is used.

第3図は本発明の実施例、第4図は本発明の実施例に係
る動作説明図、第5図は本発明の、ラスタ演算装置によ
る611m例、第6図は本発明のラスタ演算装置を動作
させる処理フローを示す。
FIG. 3 is an embodiment of the present invention, FIG. 4 is an explanatory diagram of the operation according to the embodiment of the present invention, FIG. 5 is a 611m example using the raster arithmetic device of the present invention, and FIG. 6 is the raster arithmetic device of the present invention. The processing flow for operating the is shown below.

第2図において、BUSは図示省略したCPUに接続さ
れるバス、81〜B4はバッファ、P1〜P4はフレー
ムメモリのプレーン、100は最大語長が64ビツト・
最小語長が16ビツトの処理が可能なラスタ演算装置で
ある。
In FIG. 2, BUS is a bus connected to a CPU (not shown), 81 to B4 are buffers, P1 to P4 are frame memory planes, and 100 is a bus with a maximum word length of 64 bits.
This is a raster arithmetic device capable of processing a minimum word length of 16 bits.

バスBUSのビット幅は、CPUの機種によって定まる
。このバス幅が16ビツトである場合。
The bit width of the bus BUS is determined by the CPU model. If this bus width is 16 bits.

本発明に係るラスタ演算装置100を、第2図(イ)に
示すように接続して使用する。このラスタ演算装置10
0の使用語長を16ビツトとすることにより、赤・緑・
青などの表示色ごとに設けられた最大4枚のプレーンP
I〜P4に対して。
The raster arithmetic device 100 according to the present invention is connected and used as shown in FIG. 2(a). This raster calculation device 10
By setting the word length of 0 to 16 bits, red, green,
Up to 4 planes P provided for each display color such as blue
For I to P4.

それぞれ独立に同時に論理演算の処理を施すことができ
る。
Logical operations can be performed independently and simultaneously.

バス幅が32ビツトであるシステムでは、ラスタ演算装
置100の使用語長32ビツトとすることにより、第2
図(ロ)に示すように、2枚のプレーンP1.P2に対
する論理演算を行うことができる。さらに、バス幅が6
4ビツトのシステムにも、第2図(ハ)に示すように接
続して2本発明に係るラスタ演算装置I00を使用する
ことができる。
In a system where the bus width is 32 bits, by setting the word length of the raster arithmetic unit 100 to 32 bits, the second
As shown in figure (b), two planes P1. Logical operations can be performed on P2. Furthermore, the bus width is 6
Even in a 4-bit system, two raster arithmetic devices I00 according to the present invention can be used by connecting them as shown in FIG. 2(C).

第3図は、最大語長を64ビツトとし、最小語長を16
ビントとしたラスタ演算装置の構成を示している0図中
、第1図と同符号のものは、第1図に示すものに対応し
、30は外部のCPU等が各レジスタにアクセスするた
めのアクセスデコーダである。
In Figure 3, the maximum word length is 64 bits and the minimum word length is 16 bits.
In Figure 0, which shows the configuration of the raster arithmetic unit used as bint, the same symbols as in Figure 1 correspond to those shown in Figure 1, and 30 is used for external CPU etc. to access each register. It is an access decoder.

この場合、ソースレジスタ10,11.ディスティネー
ションレジスタ20.パターンレジスタ21、マスクレ
ジスタ23.24.出カバ、ファ27は、64ビツトで
あり、バレルシフタ15は。
In this case, source registers 10, 11 . Destination register 20. Pattern register 21, mask register 23.24. The output cover and filter 27 are 64 bits, and the barrel shifter 15 is 64 bits.

128ビツトとなる。It becomes 128 bits.

最小語長は16ビツトであるので、ファンクシランデコ
ーダF1〜F4として、16ビツトのものが、4個用意
される。シフト量レジスタ14は。
Since the minimum word length is 16 bits, four 16-bit decoders are prepared as funxylan decoders F1 to F4. The shift amount register 14 is.

最大シフト量が64であるので、6ビツトで充分である
。ファンクシランレジスタ22は、3オペランドの組み
合わせで、演算種が256あるため。
Since the maximum shift amount is 64, 6 bits is sufficient. The funxilan register 22 is a combination of 3 operands and has 256 types of operations.

8ビツトで作られ、これが各ファンクシッンデコ−ダF
1〜F4対応に、4個用意される。
It is made with 8 bits, and this is each Funk Thin Decoder F.
Four are prepared corresponding to 1 to F4.

転送語数カウンタ25.転送語数ホールドレジスタ26
は、実際に演算する区間の幅によって異なるが2本実施
例では、16ビントで作られている。
Transfer word counter 25. Transfer word count hold register 26
differs depending on the width of the interval to be actually calculated, but in this embodiment it is made up of 16 bits.

アクセスデコーダ30は、リード動作を示すRD傷信号
ライト動作を示すWD傷信号64ビツトのうちの16ビ
ツトごとのデータイネーブルを示すC3O〜304本の
信号、さらに内部の各レジスタを選択するための4本の
アドレス信号を入力し、各レジスタへのアクセス制御i
t!号を出力する。
The access decoder 30 has 304 signals from C3O indicating data enable for every 16 bits of the 64 bits of the RD defect signal indicating the write operation, and 4 signals for selecting each internal register. Input the book address signal and control access to each register i
T! Output the number.

CPUの命令実行により、これらの信号が入力されたな
らば、アクセスデコーダ30によってデコードすること
により、どのレジスタアクセスかを知ることができる。
When these signals are inputted by executing an instruction by the CPU, by decoding them with the access decoder 30, it is possible to know which register is being accessed.

C8O〜3を4本用意しているのは、最小語長の16ビ
ツトごとに、アクセスできるようにするためである。6
4ビツトで便用する場合には、これらは同時にアクティ
ブになる。
The reason why four C8O-3 are prepared is to enable access to each of the minimum word lengths of 16 bits. 6
If 4 bits are used, they will be active at the same time.

さらに、ラスタ演算を連続的に行うため、連続してアク
セスされるソースレジスタ11.ディスティネーション
レジスタ20.パターンレジスタ21に対するロード信
号の専用アクセス信号線が設けられている。また、出力
バッファ27からの出力を連続して得るための出力信号
の専用アクセス信号線も設けられている。
Further, in order to perform raster operations continuously, a source register 11. which is accessed continuously. Destination register 20. A dedicated access signal line for a load signal to pattern register 21 is provided. Further, a dedicated access signal line for output signals for continuously obtaining output from the output buffer 27 is also provided.

これらの信号線は2図示省略したCPUのアドレス線を
デコードして作られ、第2図に示す(イ)〜(ハ)によ
って異なるが、外部ロジックによって実現される。
These signal lines are created by decoding two (not shown) address lines of the CPU, and are realized by external logic, although they differ depending on (a) to (c) shown in FIG.

第3図に示す回路を、1チツプのLSIによって構成す
ることができ、その1種類のLSIを。
The circuit shown in FIG. 3 can be constructed using one type of LSI.

複数の最小語長から、最大語長まで対応させて使用可能
であるので便利である。
It is convenient because it can be used in correspondence with a plurality of minimum word lengths to maximum word lengths.

第3図に示すデータセレクタ13およびデータセレクタ
81〜S4によるデータの選択は2使用語長に応じて、
第4図(ロ)に示すように行われる。
Data selection by the data selector 13 and data selectors 81 to S4 shown in FIG. 3 is performed according to the word length used.
This is done as shown in FIG. 4(b).

なお、第4図(ロ)では、プレーンP1〜P4ごとのフ
レームメモリから読み出されるデータを1第4図(イ)
に示すように、16ビツトずつ、0゜1.2.・・・と
して表している。
In addition, in FIG. 4 (B), the data read from the frame memory for each plane P1 to P4 is divided into 1 FIG. 4 (B).
As shown in the figure, each 16 bits is 0°1.2. It is expressed as...

使用語長が16ビツトのとき、バレルシフタ15には、
プレーンP1の0.1のデータ、プレーンP2の0. 
1のデータ、プレーンP3の0. 1のデータ、プレー
ンP4の0,1のデータの順番で、データが入力される
ように、データセレクタ13がデータの選択を行う。デ
ータセレクタ31〜S4は、バレルシフタ15によって
、必要なビット数だけシフトされたものを、各ファンク
ションデコーダF1〜F4へ送り、それによってラスタ
演算された結果が、各プレーンPL−P4に出力される
When the word length used is 16 bits, the barrel shifter 15 has
0.1 data on plane P1, 0.1 data on plane P2.
1 data, 0. of plane P3. The data selector 13 selects data so that the data is input in the order of data 1 and data 0 and 1 of plane P4. The data selectors 31-S4 send the data shifted by the necessary number of bits by the barrel shifter 15 to each function decoder F1-F4, and the results of raster operation are outputted to each plane PL-P4.

32ビツト幅、64ビット幅の場合にも、第4図(ロ)
に示すように、データセレクタ13およびデータセレク
タ81〜S4による使用語長に応じたデータの選択が行
われる。
In the case of 32-bit width and 64-bit width, Fig. 4 (b)
As shown in FIG. 2, the data selector 13 and the data selectors 81 to S4 select data according to the word length used.

次に、第5図および第6図に従って、CPU50の処理
IJmによるラスタオペレーシヲンの動作を説明する。
Next, the raster operation performed by the processing IJm of the CPU 50 will be described with reference to FIGS. 5 and 6.

ここでは、第5図(イ)、(ロ)に示すプレーンPi、
P2のそれぞれのソース領域SAに格納されたソース■
、■を、ラスタ演算装置100に送り。次にデイステイ
ネ−シラン領域DAに格納されているディスティネーシ
ョンデータ■を送り。
Here, the plane Pi shown in FIGS. 5(a) and 5(b),
Sources stored in each source area SA of P2 ■
, ■ to the raster calculation device 100. Next, send the destination data ■ stored in the destination area DA.

さらにパターン領域PAに格納されているパターンデー
タ■を送り、それらによるラスタ演算の結果■を、デイ
ステイネ−シラン領域DAに書き戻す一連の処理を繰り
返すようになっている。
Furthermore, a series of processes are repeated in which the pattern data (2) stored in the pattern area PA is sent, and the result (2) of raster calculation based on them is written back to the destination area DA.

CPU50による処理は、第6図[a) 〜(11に示
すように行われる。
The processing by the CPU 50 is performed as shown in FIGS. 6(a) to (11).

第3図に示す語長レジスタ12の値は、システム設計時
に確定されるので、IPL時などに事前に設定しておく
Since the value of the word length register 12 shown in FIG. 3 is determined at the time of system design, it is set in advance during IPL or the like.

ial〜(al  最初に、転送の指定により異なるシ
フト量レジスタ14.ファンクシランレジスタ22゜マ
スクレジスタ23.24および転送語数ホールドレジス
タ26の値をセントする。転送語数ホールドレジスタ2
6のセント値は、自動的に転送語数カウンタ25へ移さ
れる。
ial~(al First, the values of the shift amount register 14, funxylan register 22, mask register 23, 24 and transfer word count hold register 26, which vary depending on the transfer specification, are sent.Transfer word count hold register 2
The six cent value is automatically transferred to the transfer word counter 25.

(r)  最初のソース■を読む、これはディスティネ
ーションとのピットアライメントを合わせるため、ディ
スティネーションの1語に対して、ソースが2語必要と
なるためである。読み出しアドレスは、第5図(ロ)に
示すように、CPU50から発生する。
(r) Read the first source ■. This is because two words of the source are required for one word of the destination in order to match the pit alignment with the destination. The read address is generated from the CPU 50, as shown in FIG. 5(b).

(リ ソース■の次のソース■を読む、ソース■は。(Resource ■ Read the next source ■, source ■.

第3図に示すソースレジスタ11にセクトされる。The data is sectored into the source register 11 shown in FIG.

fh)  ディスティネーションを読む、ディスティネ
ーションデータは、ディスティネーションレジスタ20
にセットされる。
fh) Read the destination, the destination data is the destination register 20
is set to

(1)パターンを読む、パターンデータは、パターンレ
ジスタ21にセントされる。
(1) Read the pattern. The pattern data is sent to the pattern register 21.

(Jl  ファンクシランデコーダの出力を、ディステ
ィネーションに書き込む。
(Writes the output of the Jl Funk Silane decoder to the destination.

(k)  X方向の転送が終了したかを、転送した語数
のカウントによって調べる。X方向の転送が終了するま
で、処理動作(1〜(ハを繰り返す、この間、ブレーン
に対するアドレスの発生は、CPU50によって行われ
る。ソースは、前に読んだソース■を、ソースレジスタ
10へ移せば。
(k) Check whether the transfer in the X direction has been completed by counting the number of transferred words. The processing operations (1 to (c) are repeated until the transfer in the X direction is completed. During this time, the generation of an address for the brain is performed by the CPU 50. .

2回目からは1語だけのソースレジスタ11への読み込
みでよくなる。
From the second time onwards, only one word needs to be read into the source register 11.

(11X方向の転送が終了するごとに、何ライン転送し
たかをカウントしておき、y方向の転送が終了したかど
うかを調べる。転送が終了していなければ、処理動作(
「)〜(ト))を繰り返す、終了したならば、ラスタ演
算に関する処理を柊了す”る。
(11) Every time the transfer in the X direction is completed, count how many lines have been transferred and check whether the transfer in the Y direction has been completed.
``Repeat steps from ) to (g)). Once completed, complete the process related to raster operations.''

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

以上説明したように1本発明によれば、1つのラスタ演
算装置を2種々のバス幅に対応して柔軟に使用できるよ
うになり、かつ最大語長以外の場合には、処理ビット数
に応じて、?![数のブレーンに対する処理も可能にな
る。複数のブレーンに対する処理を行う場合にも、処理
能力は低下することはない、特に、LSI化した場合な
どに、汎用性があるため、有用である。
As explained above, according to the present invention, one raster arithmetic unit can be used flexibly in response to various bus widths, and when the word length is not the maximum, it can be used in accordance with the number of bits to be processed. hand,? ! [It also becomes possible to process branes of numbers. Even when processing a plurality of branes, the processing capacity does not decrease, and it is useful because it has versatility, especially when implemented as an LSI.

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

第1図は本発明の構成例。 第2図は第1図に示すラスタ演算装置の使用例。 第3図は本発明の実施例。 第4図は本発明の実施例に係る動作説明図。 第5図は本発明のラスタ演算装置による制御例。 第6図は本発明のラスタ演算装置を動作させる処理フロ
ー 第7図は一触的なラスタ演算装置を説明するための図。 第8図は従来のラスタ演算装置の例を示す。 図中、10.11はソースレジスタ、12は語長レジス
タ、13はデータセレクタ、14はシフト量レジスタ、
15はバレルシフタ、51〜S4はデータセレクタ、F
1〜F4はファンクシランデコーダ、20はディスティ
ネーションレジスタ。 21はパターンレジスタ、22はファンクシランレジス
タ、23.24はマスクレジスタ、25は転送語数カウ
ンタ、26は転送!i敗ホールドレジスタ、27は出力
バッファ、28は内部バス、29は外部バスを表す。 特許出願人 株式会社ビーエフニー 代 理 人  弁理士 小笠原吉義(外2名)本祁明り
炙施例 タト*1t1x 処理フロー $ 6 凹 タスク3責算躾り京兇明2 第 7(!l
FIG. 1 shows a configuration example of the present invention. FIG. 2 shows an example of how the raster arithmetic device shown in FIG. 1 is used. FIG. 3 shows an embodiment of the present invention. FIG. 4 is an explanatory diagram of the operation according to the embodiment of the present invention. FIG. 5 shows an example of control by the raster arithmetic device of the present invention. FIG. 6 is a processing flow for operating the raster arithmetic device of the present invention. FIG. 7 is a diagram for explaining the instant raster arithmetic device. FIG. 8 shows an example of a conventional raster arithmetic device. In the figure, 10.11 is a source register, 12 is a word length register, 13 is a data selector, 14 is a shift amount register,
15 is a barrel shifter, 51 to S4 are data selectors, F
1 to F4 are funxian decoders, and 20 is a destination register. 21 is a pattern register, 22 is a funky silane register, 23.24 is a mask register, 25 is a transfer word counter, and 26 is a transfer! An i failure hold register, 27 an output buffer, 28 an internal bus, and 29 an external bus. Patent applicant: BFNY Co., Ltd. Representative: Patent attorney: Yoshiyoshi Ogasawara (2 others)

Claims (1)

【特許請求の範囲】 ビットマップグラフィックの制御を行うラスタ演算装置
において、 最大語長幅を持つソースレジスタ(10、11)と、そ
のソースレジスタの出力を、使用語長に応じて並べ換え
るデータセレクタ(13)と、 そのデータセレクタの出力を入力にして、シフトを行う
最大語長幅の2倍のバレルシフタ(15)と、そのバレ
ルシフタの出力を、使用語長に応じて選択する複数個の
データセレクタ(S1〜S4)と、その複数個のデータ
セレクタの出力と、それぞれ最大語長幅を持つディステ
ィネーションレジスタおよびパターンレジスタの出力と
に基づき、指定されたファンクションに応じた演算処理
を行う複数個の最小語長幅に対応するファンクションデ
コーダ(F1〜F4)とを備え、 使用語長幅を可変にしたことを特徴とするラスタ演算装
置。
[Claims] In a raster arithmetic device that controls bitmap graphics, there is provided a source register (10, 11) with a maximum word length width and a data selector that rearranges the output of the source register according to the word length used. (13), a barrel shifter (15) with a width twice the maximum word length width that uses the output of the data selector as input, and a plurality of data that selects the output of the barrel shifter according to the word length used. A plurality of selectors (S1 to S4) that perform arithmetic processing according to a specified function based on the outputs of the plurality of data selectors and the outputs of the destination register and pattern register, each having a maximum word length width. 1. A raster arithmetic device comprising: a function decoder (F1 to F4) corresponding to a minimum word length width, and having a variable word length width.
JP7791289A 1989-03-29 1989-03-29 Raster arithmetic unit Pending JPH02254573A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7791289A JPH02254573A (en) 1989-03-29 1989-03-29 Raster arithmetic unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7791289A JPH02254573A (en) 1989-03-29 1989-03-29 Raster arithmetic unit

Publications (1)

Publication Number Publication Date
JPH02254573A true JPH02254573A (en) 1990-10-15

Family

ID=13647289

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7791289A Pending JPH02254573A (en) 1989-03-29 1989-03-29 Raster arithmetic unit

Country Status (1)

Country Link
JP (1) JPH02254573A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008181136A (en) * 1994-06-02 2008-08-07 Accelerix Ltd Single chip display processor

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008181136A (en) * 1994-06-02 2008-08-07 Accelerix Ltd Single chip display processor
JP2010266871A (en) * 1994-06-02 2010-11-25 Accelerix Ltd Ic (integrated circuit)
USRE44589E1 (en) 1994-06-02 2013-11-12 Mosaid Technologies Incorporated Single chip frame buffer and graphics accelerator

Similar Documents

Publication Publication Date Title
US7350054B2 (en) Processor having array of processing elements whose individual operations and mutual connections are variable
US8346833B2 (en) Filter and method for filtering
WO2000011604B1 (en) Apparatus and method for geometry operations in a 3d-graphics pipeline
JPH0916397A (en) Selective mixing system of plurality of subword items packedin plurality of computer words
JP3985797B2 (en) Processor
US4799056A (en) Display system having extended raster operation circuitry
US7284113B2 (en) Synchronous periodical orthogonal data converter
JPH02254573A (en) Raster arithmetic unit
US7454594B2 (en) Processor for realizing software pipelining with a SIMD arithmetic unit simultaneously processing each SIMD instruction on a plurality of discrete elements
US6779098B2 (en) Data processing device capable of reading and writing of double precision data in one cycle
WO2007099950A1 (en) Processor array system having function for data reallocation between high-speed pe
EP0464601A2 (en) Arithmetic operation system
JP4482356B2 (en) Image processing method and image processing apparatus using SIMD processor
JPH03268024A (en) Microprocessor, information processor and graphic display device using it
JPH02171914A (en) Printing data forming device
JPS6186839A (en) Arithmetic processor
JP2901631B2 (en) Image processing device
JP2001118056A (en) Image processor
JP2002091929A (en) Simd type parallel processor
JP2654062B2 (en) Information processing device
JPH03164872A (en) Graphic processing system
JPH01154286A (en) Graphic processor
JPH03211688A (en) Processor array
JPS62217289A (en) Backcolor writing system
JPH0736856A (en) Signal processor