JPH02236684A - Device and method for processing picture data - Google Patents

Device and method for processing picture data

Info

Publication number
JPH02236684A
JPH02236684A JP5636989A JP5636989A JPH02236684A JP H02236684 A JPH02236684 A JP H02236684A JP 5636989 A JP5636989 A JP 5636989A JP 5636989 A JP5636989 A JP 5636989A JP H02236684 A JPH02236684 A JP H02236684A
Authority
JP
Japan
Prior art keywords
data
transfer
transfer destination
register
logical operation
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
JP5636989A
Other languages
Japanese (ja)
Inventor
Koichi Hatta
浩一 八田
Hiroyuki Fujiyama
藤山 博之
Koichi Kuroiwa
功一 黒岩
Susumu Hatada
畑田 進
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 JP5636989A priority Critical patent/JPH02236684A/en
Publication of JPH02236684A publication Critical patent/JPH02236684A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To easily and promptly transfer an arbitrary area by executing a trinominal logical operation of transfer source data, transfer destination data and pattern data when an area is transferred. CONSTITUTION:A transfer source data register 322, a transfer destination data register 323, and a pattern data register 324 are the registers to temporarily hold transfer source data S, transfer designation data D and pattern data P respectively, and an arithmetic result register 325 is the register to temporarily hold the arithmetic result of a PLA 321. Further the trinominal logical arithmetic means 321 executes the trinominal logical operations of the data in the transfer source data register 322, the transfer destination data register 323, and the pattern data register 324 according to a logical arithmetic code Cn. Thus the trinominal logical operation is attained, the trinominal logical operation is executed by the logical arithmetic code, nd the area can be arbitrarily transferred at high speed.

Description

【発明の詳細な説明】 〔概 要〕 図形データを作製しCRTに表示させる画像処理装置に
おける画像データ処理装置及び方法に関し、 複雑な任意の領域の転送を可能にすると共に複雑な演算
を高速に実行させることを目的とし、被論理演算対象デ
ータが格納されている転送先であるメモリよりデータを
取り込み、このデータと論理演算対象データが格納され
ている転送元であるメモリより取り込まれたデータとの
論理演算を行い、再び転送先に書き込みを行う画像デー
タ処理装置において、任意のパターンを設定可能な記憶
手段(パターンデータレジスタ)を設け、転送元データ
、転送先データ、及びパターンレジスタ内のデータの3
項論理演算を論理演算コードに従って行うように構成し
、また、被論理演算対象データが格納されている転送先
であるメモリよりデータを取り込み、このデータと論理
演算対象データが格納されている転送元であるメモリよ
り取り込まれたデータとの論理演算を行い、再び転送先
に書き込みを行う画像データ処理装置において、転送先
の任意の領域を転送する際に、この領域を表すパターン
データ(P)を準備し、転送元データ、転送先データ、
及びパターンデータの3項論理演算を論理演算コードに
応じて行うように構成する. 〔発明の利用分野〕 本発明は図形データを作成しCRTに表示させる画像処
理装置における画像データ処理装置及び方法に関する. 〔従来の技術〕 図形データを作成してCRTに表示する画像処理装置に
おいて、図形内のある領域を転送する際、通常、転送元
データと転送先データとの論理演算(2項論理演算)を
行い、これを再び転送先データとする.転送領域が矩形
でかつ2項の論理演算を行う単純な転送の場合は、この
演算は、1回の論理演算処理、すなわち、2回の転送先
のメモリアクセス+αで実現できる。
[Detailed Description of the Invention] [Summary] This invention relates to an image data processing device and method in an image processing device that creates graphic data and displays it on a CRT, which enables transfer of any complex area and speeds up complex calculations. For the purpose of execution, data is fetched from the memory that is the transfer destination where the data to be logically operated is stored, and this data is combined with the data fetched from the memory which is the transfer source where the data to be logically operated is stored. In an image data processing device that performs logical operations and writes data to the transfer destination again, a storage means (pattern data register) that can set an arbitrary pattern is provided, and the data in the transfer source data, transfer destination data, and data in the pattern register is provided. No. 3
It is configured to perform term logical operations according to logical operation codes, imports data from the transfer destination memory where the logical operation target data is stored, and transfers this data and the transfer source where the logical operation target data is stored. In an image data processing device that performs a logical operation with data imported from a memory and writes it to the transfer destination again, when transferring an arbitrary area of the transfer destination, pattern data (P) representing this area is Prepare the transfer source data, transfer destination data,
and pattern data to perform ternary logical operations according to the logical operation code. [Field of Application of the Invention] The present invention relates to an image data processing device and method in an image processing device that creates graphic data and displays it on a CRT. [Prior Art] In an image processing device that creates graphic data and displays it on a CRT, when transferring a certain area within a graphic, a logical operation (binary logical operation) is usually performed on the transfer source data and the transfer destination data. and use this as the destination data again. In the case of a simple transfer in which the transfer area is rectangular and a binary logical operation is performed, this operation can be realized by one logical operation process, that is, two memory accesses of the transfer destination + α.

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

西像処理で取り扱う図形データは年々複雑になってきて
いる.たとえば、任意の形状の領域の転送を行う場合が
ある.この場合、従来の画像処理装置は2項論理演算の
機能しか備えていない.そのため、任意領域の転送を行
う場合、領域を単純な形状をしたいくつかの部分に分割
し、それらをひとつずつ転送しなければならなかった.
また、単純な形状の転送を行う場合でも、A,B,Cの
3項の論理演算を行う場合は、たとえば、転送先がAで
あったとすると、An (BuC)のような論理演算を
行って、その結果を書き込むような処理を行う場合、ま
ずAnBを求め、次にA口Cを求め、その次に両者の結
果をオア演算しなければならない.したがって、3回の
論理演算を実行しなければならない.1回の論理演算を
実行するためには、一度転送先のデータを読み出し、論
理演算を行い、転送先に戻さなければならないため、l
メモリサイクルが200nsだとすると、1回の論理演
算を行う時間は200X2+αnsかかり、それを、3
回行わなければならないため、(200 X2+α)X
3ns時間を必要とすることになる.いずれにしても、
処理が非常に複雑になり、時間がかかるため、近年の画
像処理技術の高速化に対応するのは困難であるという課
題があった.したがって、本発明の目的は、複雑な任意
の領域の転送を可能にすると共に複雑な演算を高速に行
える画像データ処理装置及び方法を提供することにある
. 〔課題を解決するための手段〕 上述の課題を解決するための手段は、3項論理演算手段
を具現すると共に、図形内の任意領域の転送を実行する
際、論理演算コードにしたがって転送元データ、転送先
データ、パターンデータの3項論理演算を高速に行うこ
とである。
The graphical data handled by Nishizo processing is becoming more and more complex year by year. For example, there are cases where an area of arbitrary shape is transferred. In this case, conventional image processing devices only have the function of binary logical operations. Therefore, when transferring an arbitrary area, it was necessary to divide the area into several parts with simple shapes and transfer them one by one.
Also, even when transferring a simple shape, when performing a logical operation on three terms A, B, and C, for example, if the transfer destination is A, a logical operation such as An (BuC) is performed. When performing processing such as writing the result, you must first find AnB, then find A and C, and then perform an OR operation on both results. Therefore, three logical operations must be performed. In order to perform one logical operation, it is necessary to read the data at the transfer destination, perform the logical operation, and return it to the transfer destination.
If the memory cycle is 200ns, it takes 200x2+αns to perform one logical operation, which is divided into 3
(200 X2+α)X
This will require 3 ns time. In any case,
The problem is that the processing becomes extremely complex and time-consuming, making it difficult to keep up with the speeding up of image processing technology in recent years. Therefore, an object of the present invention is to provide an image data processing device and method that can transfer any complex area and perform complex calculations at high speed. [Means for Solving the Problem] The means for solving the problem described above embodies a ternary logical operation means, and when transferring an arbitrary area within a figure, transfer source data according to a logical operation code. , transfer destination data, and pattern data at high speed.

〔作 用〕[For production]

上述の手段によれば、3項論理演算が可能となり、3項
論理演算が論理演算コードに従って行われ、任意の領域
転送を高速に行うことが可能となる. 〔実施例〕 第1図は本発明に係る画像データ処理弁怯誉吏廿季4装
置を示すブロック回路図である.第1図において、1は
転送元データSを格納しているメインメモリ、2は、画
像処理プロセッサ3が処理を行うためのコマンド及びパ
ラメータを保持しておくコマンド/パラメータメモリで
ある。画像処理プロセッサ3はこのメモリ2から描画コ
マンド(線描画、クリッピング等)や、パラメータ(線
描画の始点、終点等)を取り込む。4はパターン(マス
クパターン)を保持しておくパターンメモリであるが、
このメモリ4は画像処理プロセッサ3の内部に設置して
も差し支えない.5はCRT 6に表示する図形等の情
報を保持しておくためのグラフィックメモリであって、
画像処理プロセッサ3によりアクセスされる. メインメモリ1、コマンド/パラメータメモリ2、及び
画像処理プロセッサ3はホストアドレスバスABI及び
ホストデータバスDBIによって共通接続され、また、
画像処理プロセッサ3、バターンメモリ4、及びグラフ
ィックメモリ5はグラフィックアドレスバスAB2及び
グラフィックデータバスDB2によって共通接続されて
いる.第2図は第1図の画像処理プロセッサの詳細を示
すブロック回路図である。第2図において、31は画像
処理プロセッサ3外部のホストアドレス及びデータを内
部アドレス及びデータパスに出力するインタフェース回
路、32は描画コマンド(線描画、クリッピング等)を
実行するための描画ユニットであり、3項論理演算回路
を含んでいる.また、33はグラフィックメモリ5と胤
像処理プロセッサ3とのインタフェース回路である.第
3図は第2図の描画ユニット3203項論理演算回路部
分の詳細なブロック回路図である.3項論理演算の機能
をランダムロジックで設計すると、回路は複雑になり集
積度が低下するため、遅延時間が大きくなり製造コスト
も高くなる.このため、第3図においては論理演算にP
LA(プログラマブルロジックアレイ)を用いることに
より、集積度を高くしている.すなわち、321は論理
演算用PLAである.また、転送元データレジスタ32
2、転送先データレジスタ323、パターンデータレジ
スタ324は、それぞれ、転送元データS,転送先デー
タD、パターンデータPを一時保持しておくためのレジ
スタであり、演算結果レジスタ325はPLA321の
演算結果を一時保持しておくためのレジスタである。
According to the above-mentioned means, ternary logical operations are possible, the ternary logical operations are performed according to the logical operation code, and arbitrary area transfer can be performed at high speed. [Embodiment] FIG. 1 is a block circuit diagram showing an image data processing device according to the present invention. In FIG. 1, 1 is a main memory that stores transfer source data S, and 2 is a command/parameter memory that holds commands and parameters for the image processing processor 3 to perform processing. The image processor 3 takes in drawing commands (line drawing, clipping, etc.) and parameters (line drawing start point, end point, etc.) from the memory 2. 4 is a pattern memory that holds patterns (mask patterns);
This memory 4 may be installed inside the image processing processor 3. 5 is a graphic memory for holding information such as figures to be displayed on the CRT 6;
Accessed by the image processing processor 3. The main memory 1, command/parameter memory 2, and image processing processor 3 are commonly connected by a host address bus ABI and a host data bus DBI, and
The image processor 3, pattern memory 4, and graphic memory 5 are commonly connected by a graphic address bus AB2 and a graphic data bus DB2. FIG. 2 is a block circuit diagram showing details of the image processing processor of FIG. 1. In FIG. 2, 31 is an interface circuit that outputs a host address and data external to the image processing processor 3 to an internal address and data path, and 32 is a drawing unit for executing drawing commands (line drawing, clipping, etc.). Contains a ternary logic operation circuit. Further, 33 is an interface circuit between the graphic memory 5 and the image processing processor 3. FIG. 3 is a detailed block circuit diagram of the 3203-term logic operation circuit portion of the drawing unit shown in FIG. If the ternary logical operation function is designed using random logic, the circuit becomes more complex and the degree of integration decreases, resulting in longer delay times and higher manufacturing costs. Therefore, in Figure 3, P is used for logical operations.
The degree of integration is increased by using LA (programmable logic array). That is, 321 is a PLA for logical operations. In addition, the transfer source data register 32
2. The transfer destination data register 323 and the pattern data register 324 are registers for temporarily holding the transfer source data S, the transfer destination data D, and the pattern data P, respectively, and the operation result register 325 stores the operation results of the PLA 321. This is a register to temporarily hold the .

PLA321は、第4図に示すように、3ビットのデー
タP,S,Dに対して8通り(=2’)の演算を行うも
のであり、この演算は8個の論理演算コードC.〜C,
によって選択される.すなわち、PLA321の論理式
は、 出力O=  (C0 ・下・丁・−II)−)+(C1
 ・丁・丁・D) + (Ct −丁・S−″′rf) +(C,・丁・S−D) +(C4 ・P・−S一・−Iff) +(C,・P・一S一・D) +(Cn・P−S−U) +(Cn ・P − S − D) ただし、Pは外部パターンデータ、Sは転送元データ、
Dは転送先データ、C.は論理演算コードによって表わ
される.たとえば、ある領域内で’S−1” .”D−
0″という条件が成立した時のみ転送を行う場合を考え
る.領域内を表わす部分のみ“0”になるようにPを設
定しておき、論理演算コードを“C2=1″とすること
によりこの演算を実現できる. 〔発明の効果〕 以上説明したように本発明によれば、領域転送域の転送
を容易に且つ高速に実行することが可能となる.
As shown in FIG. 4, the PLA 321 performs eight operations (=2') on 3-bit data P, S, and D, and these operations are performed using eight logical operation codes C. ~C,
Selected by . In other words, the logical formula for PLA321 is: Output O = (C0 ・Down ・Ding ・−II)−) + (C1
・Ding・Ding・D) + (Ct −Ding・S−″′rf) +(C,・Ding・S−D) +(C4 ・P・−S1・−Iff) +(C,・P・1S1・D) +(Cn・P−S−U) +(Cn・P−S−D) However, P is external pattern data, S is transfer source data,
D is the transfer destination data, C. is represented by a logical operation code. For example, 'S-1"."D-
Consider the case where transfer is performed only when the condition ``0'' is satisfied. By setting P so that only the part representing the inside of the area is ``0'' and setting the logical operation code to ``C2 = 1'', this can be done. [Effects of the Invention] As explained above, according to the present invention, it is possible to easily and quickly transfer area transfer areas.

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

第1図は本発明に係る画像データ処理赤歩←治士手i装
置を示すブロック回路図、 第2図は、第1図の画像処理プロセッサの詳細を示すブ
ロック回路図、 第3図は第2図の描画ユニットの詳細を示すブロック回
路図、 第4図は第3図のPLAの論理回路図である.l :画
像処理プロセッサ、 321:論理演算PLA,
FIG. 1 is a block circuit diagram showing the image data processing Akaho←Jishite i device according to the present invention, FIG. 2 is a block circuit diagram showing details of the image processing processor shown in FIG. 1, and FIG. Figure 2 is a block circuit diagram showing details of the drawing unit, and Figure 4 is a logic circuit diagram of the PLA shown in Figure 3. l: Image processing processor, 321: Logical operation PLA,

Claims (1)

【特許請求の範囲】 1、被論理演算対象データが格納されている転送先であ
るメモリ(5)よりデータを取り込み、該データと論理
演算対象データが格納されている転送元であるメモリ(
1)より取り込まれたデータとの論理演算を行い、再び
該転送先に書き込みを行う画像データ処理装置において
、 前記転送元からのデータを格納する転送元データレジス
タ(322)と、 前記転送先からのデータを格納する転送先データレジス
タ(323)と、 任意のパターンを設定可能なパターンレジスタ(324
)と、 前記転送元データレジスタ、前記転送先データレジスタ
、及び前記パターンレジスタ内のデータの3項論理演算
を論理演算コード(C_n)に応じて行う3項論理演算
手段(321)と を具備することを特徴とする画像データ処理装置。 2、被論理演算対象データが格納されている転送先であ
るメモリ(5)より転送先データを取り込み、該データ
と論理演算対象データが格納されている転送元であるメ
モリ(1)より取り込まれた転送元データとの論理演算
を行い、再び該転送先に書き込みを行う画像データ処理
装置において、前記転送先データの任意の領域を転送す
る際に、該領域を表わすパターンデータ(P)を準備し
、前記転送元データ、前記転送先データ、及び前記パタ
ーンデータの3項論理演算を論理演算コード(C_n)
に応じて行う ことを特徴とする画像データ処理方法。
[Scope of Claims] 1. Take in data from the memory (5) which is the transfer destination in which the data to be subjected to logical operations is stored, and read the data from the memory (5) which is the transfer source in which the data and the data to be subjected to logical operations are stored.
1) In an image data processing device that performs a logical operation with the data taken in from the transfer destination and writes the data to the transfer destination again, the image data processing device includes a transfer source data register (322) that stores data from the transfer source, and a transfer source data register (322) that stores data from the transfer destination. A transfer destination data register (323) that stores data, and a pattern register (324) that can set any pattern.
), and a ternary logic operation means (321) that performs a ternary logic operation on data in the transfer source data register, the transfer destination data register, and the pattern register according to a logic operation code (C_n). An image data processing device characterized by: 2. Fetch the transfer destination data from the memory (5) which is the transfer destination where the data to be subjected to the logical operation is stored, and read it from the memory (1) which is the transfer source which stores the data and the data to be subjected to the logical operation. In an image data processing device that performs a logical operation with the transferred source data and writes to the transfer destination again, when transferring an arbitrary area of the transfer destination data, pattern data (P) representing the area is prepared. Then, the ternary logical operation of the transfer source data, the transfer destination data, and the pattern data is converted into a logical operation code (C_n).
An image data processing method characterized in that the image data processing method is performed according to the following.
JP5636989A 1989-03-10 1989-03-10 Device and method for processing picture data Pending JPH02236684A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5636989A JPH02236684A (en) 1989-03-10 1989-03-10 Device and method for processing picture data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5636989A JPH02236684A (en) 1989-03-10 1989-03-10 Device and method for processing picture data

Publications (1)

Publication Number Publication Date
JPH02236684A true JPH02236684A (en) 1990-09-19

Family

ID=13025342

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5636989A Pending JPH02236684A (en) 1989-03-10 1989-03-10 Device and method for processing picture data

Country Status (1)

Country Link
JP (1) JPH02236684A (en)

Similar Documents

Publication Publication Date Title
JPH0414385B2 (en)
US5459822A (en) Sorting processor
CN101313290B (en) Performing an N-bit write access to an MxN-bit-only peripheral
JPH03142690A (en) Graphic display system
Guttag et al. Requirements for a VLSI graphics processor
JPH02236684A (en) Device and method for processing picture data
JPS62140137A (en) Data holding system using arithmetic logic unit
JPH0363092B2 (en)
JPH02297594A (en) Data processor
JPH0527142B2 (en)
JPS6347835A (en) Pipeline computer
US5819081A (en) Method of executing a branch instruction of jumping to a subroutine in a pipeline control system
US10387155B2 (en) Controlling register bank access between program and dedicated processors in a processing system
JP2006515446A (en) Data processing system with Cartesian controller that cross-references related applications
EP4258217A1 (en) Methods and hardware logic for writing ray tracing data from a shader processing unit of a graphics processing unit
JPH0547867B2 (en)
GB2614098A (en) Methods and hardware logic for writing ray tracing data from a shader processing unit of a graphics processing unit
JPS58151671A (en) Pattern generating device
JP2839597B2 (en) Device for creating charged beam drawing data
JPH02128286A (en) Standard pattern reading out circuit
Takakubo et al. A bitmap memory bank which allows block accesses
JPH01130237A (en) Information processor
JPS63234358A (en) Processor for logic circuit diagram
JPS6217840A (en) Microprogram control system based upon attribution flag
JPS60218146A (en) Storage device address control system