JPH0415879A - Raster arithmetic unit - Google Patents

Raster arithmetic unit

Info

Publication number
JPH0415879A
JPH0415879A JP2118584A JP11858490A JPH0415879A JP H0415879 A JPH0415879 A JP H0415879A JP 2118584 A JP2118584 A JP 2118584A JP 11858490 A JP11858490 A JP 11858490A JP H0415879 A JPH0415879 A JP H0415879A
Authority
JP
Japan
Prior art keywords
address
data
pattern data
pattern
memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2118584A
Other languages
Japanese (ja)
Inventor
Akira Saito
明 斉藤
Masami Taoda
政美 垰田
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP2118584A priority Critical patent/JPH0415879A/en
Publication of JPH0415879A publication Critical patent/JPH0415879A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Abstract

PURPOSE:To eliminate the need of rewriting pattern data when RAM is used and reducing the capacity of ROM when it is used by generating several patterns from one basic pattern by means of shifting an address. CONSTITUTION:A RAM part 101 storing pattern data, an address generator 102 generating the address corresponding pattern data to be accessed and a barrel shifter 103 which barrel-shifts pattern data that is read by the generated address are provided. Thus, pattern data which is integer-fold of or a one-to- integer of pattern data stored in the RAM part 101 is outputted by shifting the value of the address generated in the address generator 102. Thus, wasteful time required for rewriting pattern data can be eliminated when RAM is used for storing pattern data and the capacity of ROM can be reduced when it is used.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) この発明は、たとえば画像編集機能を有する情報処理装
置などに用いられ、ソースデータ、デスティネーション
データ、パターンデータに対して3項演算を行うラスタ
演算装置に関する。
[Detailed Description of the Invention] [Object of the Invention] (Industrial Application Field) The present invention is used, for example, in an information processing device having an image editing function, and is capable of processing three types of data for source data, destination data, and pattern data. The present invention relates to a raster arithmetic device that performs term operations.

(従来の技術) 近年、一般文書や図面などの文書画像を扱う情報処理装
置の開発がさかんに行われている。このような情報処理
装置には、通常、ラスタ演算装置が設けられている。
(Prior Art) In recent years, information processing devices that handle document images such as general documents and drawings have been actively developed. Such information processing devices are usually provided with a raster arithmetic device.

ラスタ演算装置は、論理演算部(以下、ALUと略称す
る)を備え、たとえばパターンRAMからのパターンデ
ータ(P)と、データ処理ユニットからのソースデータ
(S)と、メモリからのデータを記憶したラッチからの
デスティネーションデータ(D)との間での3項演算を
行うものである。
The raster arithmetic unit includes a logic arithmetic unit (hereinafter abbreviated as ALU), and stores, for example, pattern data (P) from a pattern RAM, source data (S) from a data processing unit, and data from a memory. This is to perform a ternary operation with the destination data (D) from the latch.

しかしながら、−船釣なラスタ演算装置において、パタ
ーンデータをRA Mに記憶するようにしている場合、
必要とするパターンデータを得るためにはRAMの内容
を書き直さなければならず、時間的な無駄が多いという
欠点があった。
However, if the pattern data is stored in RAM in a raster arithmetic device used on a boat,
In order to obtain the required pattern data, the contents of the RAM must be rewritten, which has the drawback of being a waste of time.

また、パターンデータをROMに記憶するようにしてい
るラスタ演算装置の場合、1つのパターンについて複数
のデータを記憶しておく必要があるため、大きな容量を
必要とするという欠点があった。
Furthermore, in the case of a raster arithmetic device that stores pattern data in a ROM, it is necessary to store a plurality of pieces of data for one pattern, so there is a drawback that a large capacity is required.

(発明が解決しようとする課題) 上記したように、従来のラスタ演算装置においては、パ
ターンデータの記憶のためにRAMを用いた場合には書
き直しに時間がかかり、またROMを用いた場合には大
きな容量を必要とするという欠点があった。
(Problems to be Solved by the Invention) As described above, in conventional raster arithmetic devices, when RAM is used to store pattern data, it takes time to rewrite, and when ROM is used, It has the disadvantage of requiring a large capacity.

そこで、この発明は、パターンデータの記憶のためにR
AMを用いた場合にはパターンデータの書き直しにかか
る無駄な時間を不要とすることができ、またROMを用
いた場合にはその容量を削減することが可能となるラス
タ演算装置を提供することを目的としている。
Therefore, this invention utilizes R for storing pattern data.
It is an object of the present invention to provide a raster arithmetic device which can eliminate wasted time required for rewriting pattern data when using an AM, and can reduce its capacity when using a ROM. The purpose is

[発明の構成] (課題を解決するための手段) 上記の目的を達成するために、この発明のラスタ演算装
置にあっては、パターンデータを含む3種類のデータに
対して3項演算を行うものにおいて、パターンデータを
格納する格納手段と、アクセスするパターンデータに対
応するアドレスを発生するアドレス発生手段と、このア
ドレス発生手段にて発生されたアドレスにより読み出し
たパターンデータのバレルシフトを行うシフト手段とを
具備し、前記アドレス発生手段で発生されるアドレスの
値をシフトすることにより、前記格納手段で格納された
パターンデータの整数倍または整数分の1のパターンデ
ータを出力するように構成されている。
[Structure of the Invention] (Means for Solving the Problems) In order to achieve the above object, the raster arithmetic device of the present invention performs ternary arithmetic on three types of data including pattern data. A storage means for storing pattern data, an address generation means for generating an address corresponding to the pattern data to be accessed, and a shift means for barrel-shifting the read pattern data using the address generated by the address generation means. and configured to output pattern data that is an integer multiple or an integer fraction of the pattern data stored in the storage means by shifting the value of the address generated by the address generation means. There is.

(作用) この発明は、上記した手段により、パターンデータの読
み出しを変えるようにしているため、パターンデータを
書き直したり、複数のパターンデータを備えることなく
、整数倍または整数分の1のパターンデータを出力する
ことか可能となるものである。
(Function) This invention uses the above-described means to change the reading of pattern data, so it is possible to read pattern data that is an integral multiple or a fraction of an integral number without rewriting the pattern data or providing a plurality of pattern data. It is possible to output it.

(実施例) 以下、この発明の一実施例について図面を参照して説明
する。
(Example) Hereinafter, an example of the present invention will be described with reference to the drawings.

第8図は、この発明にかかる情報処理装置として、たと
えば画像蓄積・表示・編集装置を例に示すものである。
FIG. 8 shows an example of an image storage/display/editing apparatus as an information processing apparatus according to the present invention.

すなわち、この装置は、各モジュールの制御。In other words, this device controls each module.

管理、演算処理を行う中央演算処理部(以下、CPUと
略記する)1、各種外部装置とプログラムメモリ装置 
(MM)3との間で、あるいはMMB内でデータ転送を
高速に実行するダイレクトメモリアクセス制御部(DM
A)2、外部磁気記憶手段であるハードディスク装置(
HD)16を制御する上記外部装置としてのハードディ
スク制御部(HDC)4、外部磁気記憶手段であるフロ
ッピーディスク装置(FD)17を制御する上記外部装
置としてのフロッピーディスク制御部(FDC)5、ユ
ーザか本装置に指示を与えたり文章を入力する目的で用
いられるキーボード(KB)18や後述するデイスプレ
ィ上に表示されている画面に対してその特定部位を指示
するためのポインティングデバイスであるマウス(MO
)19を制御してデータの受信を行う上記外部装置とし
ての周辺入出力制御部(PIO)6などが、周辺データ
入出力用バス(P 1O−BUS)26を介して接続さ
れ、上述のCPUI、D M A 2の制御のもとて高
速なデータ転送が可能となっている。
Central processing unit (hereinafter abbreviated as CPU) that performs management and calculation processing 1, various external devices and program memory device
(MM) 3 or within the MMB, the direct memory access control unit (DM
A) 2. Hard disk device (external magnetic storage means)
A hard disk controller (HDC) 4 as the external device that controls the HD) 16, a floppy disk controller (FDC) 5 as the external device that controls the floppy disk device (FD) 17 that is an external magnetic storage means, and a user. A keyboard (KB) 18 is used for giving instructions to the device and inputting text, and a mouse (MO) is a pointing device for pointing a specific part of the screen displayed on the display, which will be described later.
) 19 and receives data, such as the peripheral input/output control unit (PIO) 6 as the external device is connected via the peripheral data input/output bus (P1O-BUS) 26, and the CPU , DMA 2 allows very high-speed data transfer.

また、上記CPUI、DMA2、MM3、P 10−B
US26、およびシステムバス(SYS−BUS)25
の間には、CPUバス制御論理制御部(CBL)7が設
けられている。このCBL7は、データ転送が5YS−
BUS25を経由して他の機器・制御部分にも可能で、
かつそれらが並行して実行されるべく、データのバスと
そのアービトレーションを制御するものである。
In addition, the above CPUI, DMA2, MM3, P 10-B
US26, and system bus (SYS-BUS) 25
A CPU bus control logic controller (CBL) 7 is provided between the two. This CBL7 has data transfer of 5YS-
It is also possible to connect to other devices and control parts via BUS25.
It also controls the data bus and its arbitration so that they can be executed in parallel.

さらに、上記5YS−BUS25には、外部の他の装置
(図示していない)と通信回線20を経由してデータの
送受信を行うための通信処理制御部(COM)8、外部
大容量記憶手段である光デイスク装置(OD)21を制
御する光デイスク制御部(ODC)9、この5YS−B
US25を経由して行われる他の機器・制御部分とのデ
ータの授受をも含め、イメージデータにかかるこれらす
べてのデータ転送が可能で、かつそれらが並行して実行
されるべく、データのバスとそのアービトレーションを
制御するイメージバス制御論理制御部(IBL)1−5
が接続されている。
Furthermore, the 5YS-BUS 25 includes a communication processing control unit (COM) 8 for transmitting and receiving data with other external devices (not shown) via the communication line 20, and an external large-capacity storage means. An optical disk control unit (ODC) 9 that controls an optical disk device (OD) 21, this 5YS-B
The data bus and the Image bus control logic controller (IBL) 1-5 that controls the arbitration
is connected.

上記C0M8は、データ送受信のためのプロトコル制御
、データのバッケティング・アンパソケティングなどの
処理を行うものである。
The C0M8 performs processing such as protocol control for data transmission and reception, and data bucketing and unpassocketing.

一方、上記IBL15には、イメージデータを格納する
メモリ(DPM)11、イメージデータの線密度変換処
理、拡大・縮小変換にかかる画像変換処理、またはイメ
ージデータの圧縮・伸長処理にかかる符号化・複合化変
換処理を行うイメージ処理部(IPR)12、およびイ
メージデータの入出力用バス(I 1O−BUS)27
が接続されている。
On the other hand, the IBL 15 includes a memory (DPM) 11 for storing image data, a linear density conversion process for image data, an image conversion process for enlarging/reducing conversion, or an encoding/compounding process for image data compression/expansion processing. an image processing unit (IPR) 12 that performs conversion processing, and an image data input/output bus (I1O-BUS) 27
is connected.

上記DPMI 1は、単にイメージデータを格納するメ
モリとしての機能だけてはなく、種々の描画機能を有し
ている。また、このDPMIIには、DPMI 1の一
部分をデイスプレィとしてのCRT表示部(CRT)2
2に表示させるための表示制御部(CRTC)10か接
続されている。
The DPMI 1 has a function not only as a memory for simply storing image data, but also various drawing functions. In addition, this DPMII includes a CRT display unit (CRT) 2 that uses a part of the DPMI 1 as a display.
A display control unit (CRTC) 10 for displaying on the 2nd screen is also connected.

このCRTC10は、デュアルポートメモリデバイスが
用いられているDPMIIの表示部位から表示データを
読み出し、同期信号とともにCRT22に送り出す機能
を持って、いる。
The CRTC 10 has a function of reading display data from the display area of the DPMII in which a dual port memory device is used and sending it to the CRT 22 together with a synchronizing signal.

上記110−BUS27には、イメージデータを紙面な
どより読み取って入力するイメージスキャナ装置(SC
N)23を制御し、上記DPMI 1ヘデータの転送を
行うスキャナ制御部(SCC)13、上記DPMIIか
らのデータを読み込み、これをイメージプリンタ装置(
PRN)24に対して転送することにより紙面上に印刷
8カするための制御を行うプリンタ制御部(PRC)1
4か接続され、高速なデータ転送が可能となっている。
The above 110-BUS27 is connected to an image scanner device (SC) that reads image data from paper etc. and inputs it.
A scanner control unit (SCC) 13 controls the image printer (SCC) 23 and transfers data to the DPMI 1, reads data from the DPMII, and transfers it to the image printer device (
Printer control unit (PRC) 1 that controls printing on paper by transferring data to PRN) 24;
4 are connected, enabling high-speed data transfer.

第9図は、上記CBL7およびその周辺の回路構成を概
略的に示すものである。
FIG. 9 schematically shows the circuit configuration of the CBL 7 and its peripheral circuitry.

CBL7は、上記CPU1、上記I)MA2からのリク
エスト信号31によりアクセス制御およびゲート制御を
行う排他制御部(ARBT)30と、6個のゲート32
.・・・とから構成されている。
The CBL 7 includes an exclusive control unit (ARBT) 30 that performs access control and gate control based on the request signal 31 from the CPU 1 and the I) MA 2, and six gates 32.
.. It is composed of...

すなわち、CPUIと5YS−BUS 25、PIO−
BUS26、MM3の間にゲート32゜・・・が設けら
れ、さらにDMA2と5YS−BUS25、PIO−B
US26、MM3の間にゲート32、・・・が設けられ
ている。したがって、CPU1とDMA2とが同じバス
あるいはメモリに同時にアクセスしないかぎり、ARB
T30の制御によって並行動作が可能とされている。た
とえば、CPUIが5YS−BUS25を経由してDP
Mllをアクセスすると同時に、DMA2がHD16か
らのデータをPIO−BUS26を経由してMM3に書
き込むことができるようになっている。また、たとえば
同時に、同じバスあるいはメモリをアクセスした場合に
は、ARBT30ては、CPUIあるいはDMA2のど
ちらかの処理を先に行い、その処理が終了した後に、も
う一方の処理を行うようになっている。
That is, CPUI, 5YS-BUS 25, PIO-
A gate 32°... is provided between BUS26 and MM3, and furthermore, DMA2 and 5YS-BUS25, PIO-B
Gates 32, . . . are provided between US26 and MM3. Therefore, unless CPU1 and DMA2 access the same bus or memory at the same time, ARB
Parallel operation is possible by controlling T30. For example, if the CPUI connects to the DP via 5YS-BUS25
At the same time as accessing Mll, DMA2 can write data from HD16 to MM3 via PIO-BUS26. Also, for example, if the same bus or memory is accessed at the same time, the ARBT30 will perform either CPUI or DMA2 processing first, and after that processing is completed, the other processing will be performed. There is.

第10図は、IBL15およびその周辺の回路構成を概
略的に示すものである。
FIG. 10 schematically shows the IBL 15 and its peripheral circuit configuration.

IBL15は、5YS−BUS25.110BUS27
、IPR12の線密度変換処理部(LDC)34および
圧縮・伸長処理にかかる符号化・複合化変換処理部(C
ODEC)35からのリクエスト信号によりアクセス制
御やゲート制御を行う排他制御部(ARBT)33と、
7個のゲート36.・・・とによって構成されている。
IBL15 is 5YS-BUS25.110BUS27
, the linear density conversion processing unit (LDC) 34 of the IPR 12 and the encoding/compounding conversion processing unit (C
an exclusive control unit (ARBT) 33 that performs access control and gate control based on a request signal from the ODEC) 35;
7 gates 36. It is composed of...

すなわち、このIBL15は、イメージデータの種々の
動作や並行動作が可能とされており、たとえば5CN2
Bで読み取ったデータを等倍の大きさでDPMI 1に
書き込みながら、LCD34を経由して線密度変換した
データをDPMI 1に書き込むことができるようにな
っている。ただし、この場合には、完全な同時並行動作
ではなく、それぞれのリクエスト信号によりARB73
3にてアービトレーションが行われるようになっている
That is, this IBL15 is capable of various operations and parallel operations on image data, for example, 5CN2.
While writing the data read by B into the DPMI 1 at the same size, it is possible to write the linear density-converted data to the DPMI 1 via the LCD 34. However, in this case, the ARB 73 is not operated completely simultaneously, but by each request signal.
Arbitration is performed in step 3.

また、同時に複数のマスターデバイスよりリクエスト信
号が送られてきた場合には、デッドロックとならないよ
うに、ARBT33はリクエスト信号に対する処理を制
御し、さらにゲート36゜・・・の制御を行って同時に
並行動作が可能である場合にはそれを実行するようにな
っている。
In addition, when request signals are sent from multiple master devices at the same time, the ARBT33 controls the processing of the request signals and also controls the gates 36° to avoid deadlock and operate simultaneously in parallel. is intended to be carried out if possible.

第11図は、上記DPMI 1の構成を詳細に示すもの
である。
FIG. 11 shows the configuration of the DPMI 1 in detail.

このDPMI 1において、メモリ50は表示メモリ(
DM)50aとページメモリ(PM)50bの2つの部
分より構成され、イメージデータやコードデータがそれ
ぞれ記憶されるようになっている。ここでは、DM50
Bとしてデュアルポートメモリが用いられ、そのシリア
ルポートよリビデオデータが読み出されて、CRT22
にて表示されるようになっている。一方、PM50bに
は汎用のD RA Mが用いられ、1次元メモリとして
扱うことができるようになっている。
In this DPMI 1, the memory 50 is a display memory (
It consists of two parts: a DM) 50a and a page memory (PM) 50b, each of which stores image data and code data. Here, DM50
A dual port memory is used as B, and the video data is read out from the serial port and sent to the CRT22.
It is now displayed in . On the other hand, a general-purpose DRAM is used for the PM 50b, so that it can be treated as a one-dimensional memory.

また、上記メモリ50は2バンク構成をとっており、E
VENバンクとODDバンクとに分けられる。
Further, the memory 50 has a two-bank configuration, and E
It is divided into VEN bank and ODD bank.

アドレス発生部51は、メモリ50をアクセスするアド
レスの発生を行うものである。このアドレス発生部51
は、4系統の独立した2次元アドレス発生器(AG)を
有し、また上述したCPU1からのアドレスをも選択し
て出力することか可能とされている。
The address generation unit 51 generates an address for accessing the memory 50. This address generation section 51
has four independent two-dimensional address generators (AG), and is also capable of selectively outputting the address from the CPU 1 mentioned above.

ラッチ回路56.61は、それぞれアドレス発生部51
からのアドレスのうち、メモリ50のODDバンクのア
ドレスをラッチするためのフリップフロップと、EVE
Nバンクのアドレスをラッチするためのフリップフロッ
プとによって構成されている。
The latch circuits 56 and 61 each have an address generating section 51.
A flip-flop for latching the ODD bank address of the memory 50 among the addresses from the EVE
It is composed of flip-flops for latching the addresses of N banks.

データ処理部(ラスタ演算装置)52は、拡大縮小、3
項演算、クリッピングなどのデータ処理を行うことがで
き、またこのときに任意のピットアドレスからの1〜3
2ビツト、あるいは64ビツトのデータ処理が可能とさ
れている。
The data processing unit (raster arithmetic unit) 52 performs scaling, 3
Data processing such as term operations and clipping can be performed, and at this time, data from 1 to 3 from any pit address can be
It is possible to process 2-bit or 64-bit data.

シーケンサ53は、アドレス発生部51やブタ処理部5
2、およびメモリ50の制御を行うRAS信号、CAS
信号、OE倍信号WE倍信号どを発生するメモリ制御部
54のメモリアクセス時の制御信号を発生する機能を有
している。
The sequencer 53 includes an address generator 51 and a pig processor 5.
2, and the RAS signal and CAS that control the memory 50.
It has a function of generating control signals during memory access of the memory control unit 54, which generates a signal, an OE multiplied signal, a WE multiplied signal, and the like.

前述したCRTC10から出力される表示アドレスは、
セレクタ57.58により、アドレス発生部51からの
アドレスとの選択がなされ、メモリ50に入力される。
The display address output from the CRTC 10 mentioned above is
The selectors 57 and 58 select the address from the address generator 51 and input it to the memory 50.

また、CRTC10からのアドレスはカーソル制御部5
5に送られ、あらかじめセットされたカーソルの位置情
報と比較することにより、CRT22の適切な位置にカ
ーソルが表示される。さらに、CRTCIOのH8YN
C信号、VSYNC信号は、前記CRT22において、
同期信号として使用される。
Also, the address from the CRTC 10 is the cursor control unit 5.
The cursor is displayed at an appropriate position on the CRT 22 by comparing it with preset cursor position information. Furthermore, CRTCIO's H8YN
The C signal and the VSYNC signal are
Used as a synchronization signal.

シフトレジスタ59は、デュアルポートメモリ(DM5
0a)から読み出された表示データをシリアルデータに
変換するものである。
The shift register 59 is a dual port memory (DM5
This converts the display data read from 0a) into serial data.

合成部60は、デュアルポートメモリからの表示データ
とカーソル制御部55からのカーソルデータとの合成を
行い、前記CRT22に表示を行うものである。
The synthesizing section 60 synthesizes the display data from the dual port memory and the cursor data from the cursor control section 55, and displays the data on the CRT 22.

第12図は、データ処理部52の構成を詳細に示すもの
である。
FIG. 12 shows the configuration of the data processing section 52 in detail.

すなわち、ラッチ88は、メモリ50から読み出された
データを一時記憶するものである。
That is, the latch 88 temporarily stores data read from the memory 50.

パターンRAM86は、メモリ50に描画するためのパ
ターンを記憶するものである。
The pattern RAM 86 stores patterns to be drawn in the memory 50.

データ処理ユニット85は、データを一時記憶するため
のフリップフロップ、オフセットアドレスによってデー
タのシフトを行うバレルシフタ、拡大・縮小変換処理を
行う拡大・縮小変換処理部、データのLSB−MSBを
反転させる反転処理部(いずれも図示していない)から
構成されている。
The data processing unit 85 includes a flip-flop for temporarily storing data, a barrel shifter that shifts data according to an offset address, an enlargement/reduction conversion processing section that performs enlargement/reduction conversion processing, and an inversion process that inverts LSB-MSB of data. (none of which are shown).

ALU (論理演算部)87は、3項演算、つまりパタ
ーンRAM86からのパターンデータ(P)と、データ
処理ユニット85からのソースデータ(S)と、メモリ
50からのデータを記憶したラッチ88からのディステ
ィネーションデータ(D)との間で3項演算を行うもの
である。
ALU (logical operation unit) 87 performs a ternary operation, that is, pattern data (P) from pattern RAM 86, source data (S) from data processing unit 85, and data from latch 88 storing data from memory 50. A ternary operation is performed with the destination data (D).

次に、上記したDPMI 1の動作について、周辺のハ
ードウェアを含めて詳細に説明する。
Next, the operation of the above-mentioned DPMI 1 will be explained in detail including the peripheral hardware.

DPMI 1のメモリ50にアクセスする際には、すべ
てIBL15のARBT3Bにアクセス要求が出力され
る。すると、このARBT33では、アービトレーショ
ンを行うことにより、複数のアクセス要求が生じた場合
に、1つのアクセス要求を選択して処理が行われる。
When accessing the memory 50 of the DPMI 1, all access requests are output to the ARBT 3B of the IBL 15. Then, in the ARBT 33, by performing arbitration, when a plurality of access requests occur, one access request is selected and processed.

ARBT3Bによってアクセスが決定されると、シーケ
ンサコードがDPMI l内のシーケンサ53に供給さ
れる。そして、シーケンサ53が動作を開始することに
より、メモリ50などの制御が行われる。
Once the access is determined by ARBT3B, the sequencer code is provided to sequencer 53 in DPMI I. When the sequencer 53 starts operating, the memory 50 and the like are controlled.

ここで、本実施例の場合、DPMllのアクセスに関し
ては4種類のアクセスがある。すなわち、5CN2Bや
PRN24からのアクセスである10アクセスと、CP
U1からのアクセスであるCPUアクセスと、IPR1
2を用いてイメージ処理を行う際のラスタ処理アクセス
と、DPMll内でのアクセスである内部アクセスであ
る。
In this embodiment, there are four types of access to DPMll. In other words, 10 accesses from 5CN2B and PRN24, and CP
CPU access from U1 and IPR1
These are raster processing access when image processing is performed using 2, and internal access which is access within DPMll.

以下に、それぞれのアクセスについて個々に説明する。Each access will be explained individually below.

まず、IOアクセスにおける5CN2Bからの画像入力
に関しては、CPUIにより関連する各モジュールに対
してパラメータのセットが行われる。このとき、メモリ
50へのアドレスの発生には、アドレス発生部51内の
1つのアドレス発生器(AG)が使用される。
First, regarding image input from 5CN2B in IO access, parameters are set for each related module by the CPU. At this time, one address generator (AG) in the address generation section 51 is used to generate an address to the memory 50.

すなわち、5CN23が動作を開始すると、読み取られ
たデータが5CC13に送られる。
That is, when 5CN23 starts operating, the read data is sent to 5CC13.

5CC13では、このデータがll0−BUS27のデ
ータバス幅に直される。そして、ARBT33に対して
、DPMI 1へのデータの書き込み要求が出される。
In 5CC13, this data is converted to the data bus width of ll0-BUS27. Then, a request to write data to DPMI 1 is issued to ARBT 33 .

これを受けたARBT33では、他にアクセス要求がき
ていなければ′、ゲート36.・・・の制御が行われ、
これによりI lo−BUS27から送られてくる5C
C13からの5CN23による読み込みデータがDPM
I 1に出力される。また、同時に、シーケンサ53に
シーケンサコードが送られる。
The ARBT 33 receives this request, and if no other access request has been received, the gate 36. ... is controlled,
As a result, 5C sent from Ilo-BUS27
Data read by 5CN23 from C13 is DPM
Output to I1. At the same time, a sequencer code is sent to the sequencer 53.

すると、シーケンサ53により、DPMI l内のメモ
リ50へのデータの書き込み動作か開始される。この場
合、アドレス発生部51により該当するアドレスが選択
され、ODDアドレス、EVENアドレスに切り換えら
れて、それぞれのラッチ56.61にラッチされる。そ
して、このラッチ56.61からのアドレスがセレクタ
57゜58によって選択されることにより、メモリ50
に入力される。一方、データは、データ処理部52にお
いてデータ処理が施された後、メモリ50に書き込まれ
る。このとき、メモリ50に対する制御信号は、メモリ
制御部54より発生される。
Then, the sequencer 53 starts writing data to the memory 50 in the DPMI I. In this case, the address generator 51 selects the corresponding address, switches it to the ODD address and the EVEN address, and latches it into the respective latches 56 and 61. Then, by selecting the address from the latch 56.61 by the selector 57.58, the memory 50.
is input. On the other hand, the data is written into the memory 50 after being subjected to data processing in the data processing section 52. At this time, a control signal for the memory 50 is generated by the memory control section 54.

こうして、データの書き込みが終了すると、シーケンサ
53からARBT33に対して終了信号が出力され、さ
らにARBT33から5CC13に終了信号が出力され
、これにより1回のデータ転送か終了される。
When data writing is thus completed, the sequencer 53 outputs an end signal to the ARBT 33, and further, the ARBT 33 outputs an end signal to the 5CC 13, thereby ending one data transfer.

二のように、上記動作を繰り返えして5CN23から読
み込んだ1枚分の画像データをメモリ50に記憶するこ
とにより、5CN23からの入力動作は終了される。
2, the input operation from the 5CN 23 is completed by repeating the above operation and storing the image data for one sheet read from the 5CN 23 in the memory 50.

一方、工0アクセスにおけるPRN24への画像出力に
関しては、CPUIにより関連する各モジュールに対し
てパラメータのセットが行われる。
On the other hand, regarding image output to the PRN 24 during process 0 access, parameters are set for each related module by the CPU.

このとき、メモリ50へのアドレスの発生には、アドレ
ス発生部51内の1つのAGが使用される。
At this time, one AG in the address generation section 51 is used to generate an address to the memory 50.

すなわち、PRN24か動作を開始すると、PRC14
から11O−BUS27を介して、ARBT33に対し
てDPMI 1からの画像データの読み出し要求が出さ
れる。これを受けたARB73Bでは、他にアクセス要
求がきていなければ、ゲート36.・・の制御が行われ
、同時にシーケンサ53にシーケンサコードが送られる
That is, when PRN24 starts operating, PRC14
A request to read image data from the DPMI 1 is issued to the ARBT 33 via the 11O-BUS 27. Upon receiving this, the ARB 73B receives the access request from the gate 36. ... is controlled, and at the same time a sequencer code is sent to the sequencer 53.

これにより、シーケンサ53では、DPMll内のメモ
リ50からの画像データの読み出し動作が開始される。
As a result, the sequencer 53 starts reading out image data from the memory 50 in the DPMll.

この場合、アドレス発生部51により該当するアドレス
か選択され、ODDアドレス、):VENアドレスに切
り換えられて、それぞれのラッチ56.61にラッチさ
れる。そして、このラッチ56.61からのアドレスが
セレクタ57゜58によって選択されることにより、メ
モリ50に入力される。
In this case, the address generating section 51 selects the corresponding address, switches it to the ODD address, ):VEN address, and latches it into the respective latches 56 and 61. Then, the addresses from the latches 56 and 61 are input to the memory 50 by being selected by the selectors 57 and 58.

また、メモリ50に対する制御信号がメモリ制御部54
から発生されることにより、メモリ50より画像データ
が読み出される。この読み出された画像データは、デー
タ処理部52においてデータ処理、つまりシフト処理や
マスク処理などが施された後、ゲート36.・・・を介
してll0−BUS27に出力される。このとき、シー
ケンサ53からはARB73Bに対して終了信号が出力
され、さらにARBT3BからPR014に終了信号が
出力されて、画像データの読み出しが終了されたことが
伝えられる。そして、PRC14が画像データを受は取
り、さらにPRN24に出力することにより、1回のデ
ータ転送は終了される。
Further, the control signal for the memory 50 is transmitted to the memory control unit 54.
The image data is read out from the memory 50 by being generated from the image data. The read image data is subjected to data processing, that is, shift processing, mask processing, etc., in the data processing section 52, and then is processed by the gate 36. ... is output to ll0-BUS27. At this time, the sequencer 53 outputs an end signal to the ARB 73B, and the ARBT 3B further outputs an end signal to the PR014 to notify that the reading of image data has ended. Then, the PRC 14 receives and receives the image data, and further outputs it to the PRN 24, thereby completing one data transfer.

このように、上記動作を繰り返して1枚分の画像データ
をメモリ50から読み出してPRN24に出力すること
により、PRN24への出力動作は終了される。
In this way, by repeating the above operations to read one sheet of image data from the memory 50 and outputting it to the PRN 24, the output operation to the PRN 24 is completed.

続いて、CPUアクセスについて説明する。Next, CPU access will be explained.

CPUIからは、5YS−BUS25を介して、ARB
73BにD P M 11のメモリ50に対する読み出
しあるいは書き込みのアクセス要求が出される。この要
求に対して、ARBT33では、他にDPMI 1への
アクセス要求がないか、あるいはアービタにより選択さ
れたならば、ゲート36゜・・・の制御が行われ、さら
にシーケンサ53に対してCPUアクセスのシーケンサ
コードが出力される。これを受けたシーケンサ53では
、メモリ50へのアクセスが開始される。
From the CPUI, ARB is sent via 5YS-BUS25.
A read or write access request to the memory 50 of the DPM 11 is issued at 73B. In response to this request, in the ARBT 33, if there is no other access request to DPMI 1 or if it is selected by the arbiter, control is performed on the gate 36°, and furthermore, the CPU access to the sequencer 53 is performed. The sequencer code is output. Upon receiving this, the sequencer 53 starts accessing the memory 50.

すなわち、CPU1からのアドレスは、5YS−BUS
25を経由してDPMllのアドレス発生部51に入力
される。このアドレスは、アドレス発生部51内のセレ
クタ57.58を介してメモリ50に入力される。しか
して、読み出しの場合には、メモリ制御部54からの制
御信号によってメモリ50内よりデータか読み出され、
データ処理部52、ゲート36 ・・・ 5YS−BU
S25を経由してCPUIに送られる。
In other words, the address from CPU1 is 5YS-BUS
25 to the address generating section 51 of the DPMll. This address is input to the memory 50 via selectors 57 and 58 in the address generator 51. In the case of reading, data is read out from the memory 50 by a control signal from the memory control unit 54,
Data processing section 52, gate 36...5YS-BU
It is sent to the CPUI via S25.

また、書き込みの場合には、CPUIからのデータが5
YS−BUS25、ゲート36.・・・データ処理部5
2を経由してメモリ50に書き込まれる。このとき、メ
モリ50のデータ幅は64ビット幅であるが、アドレス
の下位ビットによってデータ処理部52がデータの選択
を行うことにより、該当するデータのアクセスが行われ
る。なお、書き込み時においては、メモリ制御部54に
よってライトイネーブル(WE)を制御することにより
、実現される。
Also, in the case of writing, the data from the CPUI is 5
YS-BUS25, gate 36. ...Data processing section 5
2 to the memory 50. At this time, although the data width of the memory 50 is 64 bits wide, the data processing unit 52 selects data based on the lower bits of the address, thereby accessing the corresponding data. Note that writing is achieved by controlling write enable (WE) by the memory control unit 54.

続いて、ラスタ処理アクセスについて、ここではIPR
12を用いて画像の縮小処理を行う場合を例に説明する
Next, regarding raster processing access, here IPR
The case where image reduction processing is performed using No. 12 will be described as an example.

まず、CPU1により、使用する各モジュールに対して
パラメータのセットが行われる。本実施例の場合、メモ
リ50より読み出した画像データにLDC34によって
縮小処理を施した後、再びメモリ50の別のアドレスに
その縮小処理した画像データを書き込む処理を行うよう
にしているため、アドレス発生部51の中のAGか2個
使用される。
First, the CPU 1 sets parameters for each module to be used. In the case of this embodiment, after the image data read from the memory 50 is reduced by the LDC 34, the reduced image data is written to another address in the memory 50 again, so that the address generation Two AGs in section 51 are used.

すなわち、処理か開始されると、まずLDC34よりA
RBT33に対してメモリ50からの画像データの読み
出し要求か出される。これを受は付けると、ARBT3
3からシーケンサ53に外部読み出しアクセスのシーケ
ンサコードが出力され、これによりメモリ50から画像
データが読み出される。この読み出された画像データは
、データ処理部52、ゲート36.・・を経由してLD
C34に人力され、読み出し動作は終了される。このと
き、アドレスは、2個のAGのうち、ソース側のものが
使用される。この読み出し動作は画像の数ラインにわた
って行われ、LDC34の内部に補間処理のために設け
られているラインバッファに記憶される。
That is, when processing starts, first A is sent from the LDC 34.
A request to read image data from the memory 50 is issued to the RBT 33 . If you accept this, ARBT3
3 outputs a sequencer code for external read access to the sequencer 53, thereby reading image data from the memory 50. This read image data is processed by the data processing section 52, the gate 36. LD via...
The read operation is completed manually by C34. At this time, the address on the source side of the two AGs is used. This readout operation is performed over several lines of the image, and is stored in a line buffer provided inside the LDC 34 for interpolation processing.

LDC34のラインバッファに適当な数量の画像データ
が記憶されると、LDC34から書き込み要求かARB
T33に出力される。これを受けたARBT33から、
外部書き込みアクセスのシーケンサコードがシーケンサ
53に出力されることにより、書き込み動作が開始され
る。この場合、アドレス発生部51のディスティネーシ
ョン用アドレスが選択されることにより、LDC34か
ら出力された縮小の画像データが、ゲート36.・・・
データ処理部52を経由してメモリ50のこのアドレス
に書き込まれる。
When an appropriate amount of image data is stored in the line buffer of the LDC 34, a write request or ARB is sent from the LDC 34.
It is output to T33. From ARBT33 who received this,
A write operation is started by outputting a sequencer code for external write access to the sequencer 53. In this case, by selecting the destination address of the address generator 51, the reduced image data output from the LDC 34 is transmitted to the gate 36. ...
The data is written to this address in the memory 50 via the data processing section 52.

以上の処理を1画像分行うことにより、動作は終了され
る。
The operation is completed by performing the above processing for one image.

続いて、DP−M11内の内部アクセスについて説明す
る。
Next, internal access within the DP-M 11 will be explained.

この内部アクセスに関しては、数種類のアクセス、たと
えばデータを別のアドレスに複写するコピーアクセス、
データの交換を行うスワップアクセス、パターンなどの
描画を行う描画アクセスである。これらのアクセスは、
すべてDPMI l内のシーケンサ53によって制御さ
れる。また、このときのアドレスはアドレス発生部51
から得られ、コピーアクセス、スワップアクセスに関し
ては、2個のAGが用いられる。
Regarding this internal access, there are several types of accesses, such as copy access to copy data to another address,
Swap access is used to exchange data, and drawing access is used to draw patterns. These accesses are
All controlled by sequencer 53 within DPMI I. Also, the address at this time is the address generator 51
For copy access and swap access, two AGs are used.

シーケンサ53の内部にある内部シーケンサにアクセス
モードがセットされると、ARBT33に対して内部ア
クセスの要求が出される。これにより、ARBT3Bが
内部アクセスを受は付けると、シーケンサコードがシー
ケンサ53に出力される。そして、このシーケンサ33
によりアドレス発生部51のアドレスを用いてメモリ5
oのアクセスが行われ、またデータ処理部52にてデー
タの処理が行われる。なお、アドレス発生部51では単
なる矩形領域のアドレスの発生のみではなく、回転など
のアフィン変換アドレス、および台形アドレスなどを発
生することが可能であり、これらを用いたコピーアクセ
スなどを行うこともてきる。
When the access mode is set in the internal sequencer inside the sequencer 53, an internal access request is issued to the ARBT 33. As a result, when the ARBT 3B accepts an internal access, the sequencer code is output to the sequencer 53. And this sequencer 33
The address of the address generator 51 is used to generate the memory 5.
o is accessed, and the data processing unit 52 processes the data. Note that the address generation unit 51 is capable of generating not only addresses of a simple rectangular area, but also affine transformation addresses such as rotation, trapezoidal addresses, etc., and it is also possible to perform copy access using these. Ru.

次に、この発明の要旨についてさらに説明する。Next, the gist of the invention will be further explained.

第1図は、上記パターンRAM86の構成を示すもので
ある。
FIG. 1 shows the structure of the pattern RAM 86.

すなわち、RAM部101は、32bitx32wor
dのSRAMを有し、CPUリード/ライトとパターン
リードとを切り換える機能を備えている。
That is, the RAM section 101 has 32 bits x 32 wor
It has an SRAM of 3.3 MHz and has a function of switching between CPU read/write and pattern read.

アドレス発生器(ADG)102は、アクセスするパタ
ーンに対応するXアドレスXAおよびYアドレスYAを
発生するものである。
An address generator (ADG) 102 generates an X address XA and a Y address YA corresponding to an access pattern.

バレルシフタ(BS)103は、たとえば第2図に示す
如く、32b i tの2−1のセレクタ103aを5
つ接続した構成とされ、上記ADG102からのYアド
レスYAにより上記RAM部101から読み出される3
2b i tのパターンデータ(P)を、上記ADG1
02からのXアドレスXAに応じてシフトするものであ
る。
The barrel shifter (BS) 103, for example, as shown in FIG.
3 are connected to each other, and the 3
The pattern data (P) of 2b it is transferred to the above ADG1.
It is shifted according to the X address XA from 02.

出力セレクタ104は、たとえば第3図に示す如く構成
され、上記B5103にてシフトされてくるパターンを
パターン倍率に応じて選択し、64bitのパターンと
して前記ALU87に出力するものである。
The output selector 104 is configured as shown in FIG. 3, for example, and selects the pattern shifted at B5103 in accordance with the pattern magnification, and outputs it to the ALU 87 as a 64-bit pattern.

第4図は、上記RAM部101の構成を示すものである
FIG. 4 shows the configuration of the RAM section 101.

すなわち、SRAMI 11は、32b i tx32
 W Or dの容量を肴している。
That is, SRAMI 11 is 32b i tx32
I am serving W Or d capacity.

CPUアクセスカウンタ112は5bitOカウンタで
あり、前記CPUIのアクセスによって1つずつインク
リメントするようになっている。
The CPU access counter 112 is a 5-bit O counter, and is incremented by one each time the CPU accesses the CPU.

セレクタ113は、CPU1からのり一ド/ライトと通
常のパターンリード動作とをC10信号により切り換え
るものである。たとえば、C10信号が”0”のとき、
SRAMI 11のアドレスがCPUアクセスカウンタ
112側に切り換えられ(アクセスカウンタ112の出
力か選択され)、これによりCPUリード/ライトが行
われる。また、C10信号が“1”のとき、SRAMI
 11のアドレスが前記ADG 102からのXアドレ
スXAに切り換えられ、これによりパターンリード動作
か行われる。
The selector 113 switches between a read/write operation from the CPU 1 and a normal pattern read operation using a C10 signal. For example, when the C10 signal is "0",
The address of the SRAMI 11 is switched to the CPU access counter 112 side (the output of the access counter 112 is selected), and thereby CPU read/write is performed. Also, when the C10 signal is “1”, SRAMI
The address No. 11 is switched to the X address XA from the ADG 102, thereby performing a pattern read operation.

第5図は、上記ADG 102の構成を示すものである
FIG. 5 shows the configuration of the ADG 102 described above.

すなわち、ゲート121は、アドレス信号XSTを切換
信号A/Rに応してゲートするものであり、ゲート12
2は、アドレス信号YSTを切換信号A/Rに応じてゲ
ートするものである。
That is, the gate 121 gates the address signal XST in response to the switching signal A/R.
2 gates the address signal YST in accordance with the switching signal A/R.

加算器123は、上記ゲート122の出力とアドレス信
号YADとを加算するものである。
The adder 123 adds the output of the gate 122 and the address signal YAD.

セレクタ124,125は、それぞれ上記ゲート121
の出力または上記加算器123の出力であるアドレスを
パターンデータ(x 1.  x 2゜XI/2. ・
・・)に応してシフトするものである。
The selectors 124 and 125 are connected to the gate 121, respectively.
The output of the adder 123 or the address of the adder 123 is used as pattern data (
).

たとえば、等倍モード(×1)では、6bitのアドレ
スのうち、下位5bitだけを出力するようになってい
る。また、2倍モード(×2)では、X、Yの各6bi
tのアドレスを、LSB側に1bitシフトした5bi
tを出力するようになっている。さらに、1/2倍モー
ド(X 1/2)では、X、Y各6bitのアドレスを
MSB側に1bitシフトし、その下位5bitを出力
するようになっている。
For example, in the same magnification mode (×1), only the lower 5 bits of the 6-bit address are output. In addition, in double mode (x2), 6 bits each for X and Y
5bit with the address of t shifted 1 bit to the LSB side
It is designed to output t. Furthermore, in the 1/2x mode (X 1/2), the 6-bit addresses for each of X and Y are shifted by 1 bit toward the MSB side, and the lower 5 bits thereof are output.

EX−OR回路126,127は、それぞれセレクタ1
24,125の出力と方向制御信号XDIR,YDIR
との排他的論理和をとるものである。
EX-OR circuits 126 and 127 each have selector 1
24, 125 output and direction control signals XDIR, YDIR
This is the exclusive OR of the

二こて、アドレス信号XST、YSTは、それぞれ描画
する領域の先頭アドレスの下位6bitであり、前記C
PUIによってあらかじめセットされるものである。
The address signals XST and YST are the lower 6 bits of the start address of the drawing area, respectively, and the C
This is set in advance by the PUI.

アドレス信号YADは、ある描画動作か行われている部
分のYアドレスの下位6bitであり、外部より直に入
力されるようになっている。
The address signal YAD is the lower 6 bits of the Y address of the portion where a certain drawing operation is being performed, and is directly input from the outside.

切換信号A/Rは、パターンアドレスに対して絶対アド
レスと相対アドレスとの切換えを行うためのものである
The switching signal A/R is used to switch the pattern address between an absolute address and a relative address.

方向制御信号XDIR,YDIRは、パターンの方向を
制御するためのものである。
The direction control signals XDIR and YDIR are for controlling the direction of the pattern.

第6図は、絶対アドレス指定と相対アドレス指定の動作
を説明するために示すものである。
FIG. 6 is shown to explain the operations of absolute addressing and relative addressing.

すなわち、上記切換信号A/Rが“0”のとき、絶対ア
ドレス指定で動作される。この場合、ゲート121,1
22によりアドレス信号XST。
That is, when the switching signal A/R is "0", the operation is performed using absolute addressing. In this case, gate 121,1
22 provides an address signal XST.

YSTは“0′となるため、出力はXA=0゜YA−Y
ADとなる。この結果、同図(a)に示す基本パターン
に対して、同図(b)に示すようなパターンかかけられ
ることになる。このように、絶対アドレス指定では、描
画領域が移動するとアドレスに応してパターンが変化さ
れる。したがって、タイリング処理に有利なモードとな
っている。
Since YST becomes "0', the output is XA=0°YA-Y
It becomes AD. As a result, a pattern as shown in FIG. 4(b) is applied to the basic pattern shown in FIG. 1(a). In this way, with absolute addressing, when the drawing area moves, the pattern changes according to the address. Therefore, this mode is advantageous for tiling processing.

一方、切換信号A/Rが“1“のときは相対アドレス指
定となる。この場合の出力は、XA−XST、YA−Y
ST+YADである。したがって、同図(c)に示すよ
うに、描画領域が移動してもパターンは一定となる。
On the other hand, when the switching signal A/R is "1", relative addressing is performed. The outputs in this case are XA-XST, YA-Y
It is ST+YAD. Therefore, as shown in FIG. 3(c), the pattern remains constant even if the drawing area moves.

第7図は、上記方向制御信号XDIR YDIRとパターンの方向との関係を説明するために示
すものである。
FIG. 7 is shown to explain the relationship between the direction control signals XDIR to YDIR and the direction of the pattern.

すなわち、上記方向制御信号XDIR。That is, the direction control signal XDIR.

YDIRがともに“0′のとき、同図(a)に示すよう
に、基本パターンがそのまま出力される。
When both YDIRs are "0", the basic pattern is output as is, as shown in FIG.

また、上記方向制御信号XDIRが“1″で、信号YD
IRが“0′のとき、同図(b)に示すように、左右が
反転されたパターンが出力される。
Further, when the direction control signal XDIR is "1", the signal YD
When IR is "0", a pattern with left and right sides reversed is output as shown in FIG. 2(b).

また、上記方向制御信号XDIRが“0°で、信号YD
IRが“1”のとき、同図(c)に示すように、上下か
反転されたパターンか出力される。
Also, when the direction control signal XDIR is “0°”, the signal YD
When IR is "1", either a vertical or inverted pattern is output, as shown in FIG. 2(c).

さらに、上記方向制御信号XDIR,YDIRかともに
“1”のとき、同図(d)に示すように、基本パターン
に対して点対称なパターンか出力される。
Furthermore, when both the direction control signals XDIR and YDIR are "1", a pattern that is point symmetrical with respect to the basic pattern is output as shown in FIG.

このように、4種類のパターンを同一の基本パターンか
ら生成することかできるため、パターンデータの効率的
な格納が可能である。また、パターンの変更を行おうと
したときに、全体の再ロドを行うことなく、制御信号た
けを変更すれば良いため、処理の高速化が図れる。
In this way, four types of patterns can be generated from the same basic pattern, making it possible to efficiently store pattern data. Furthermore, when attempting to change a pattern, only the control signal level can be changed without reloading the entire pattern, thereby speeding up the processing.

次に、パターンを拡大または縮小する際の動作について
説明する。
Next, the operation when enlarging or reducing a pattern will be explained.

たとえば今、等倍モード(×1)が設定されたとする。For example, assume that the same magnification mode (×1) is now set.

すると、ADC,102のセレクタ124125より、
6bitのアドレスのうち、下位5bitだけが出力さ
れる。この場合、たとえば入力アドレスr00,01.
〜,63」に対する出力は、roo、01.〜,31,
00,01゜〜、31」となる。したかって、ALU8
7に対して等倍のパターンがaカされる。
Then, from the selector 124125 of the ADC, 102,
Only the lower 5 bits of the 6-bit address are output. In this case, for example, input address r00,01.
~, 63'' is roo, 01 . ~,31,
00,01°~,31''. If you want, ALU8
7, a pattern of the same size is added.

また、たとえば2倍モード(×2)が設定されたとする
。すると、上記セレクタ124,125からは、X、Y
の各6bitのアドレスをLSB側に1bitシフトし
た5bitが出力される。
Also, assume that the double mode (×2) is set, for example. Then, from the selectors 124 and 125, X, Y
5 bits obtained by shifting each 6-bit address by 1 bit toward the LSB side are output.

この場合、たとえば入力アドレスr00,01゜〜、6
3」に対しては、roo、00,01゜01、〜,31
.31Jが出力される。このように、各アドレスが2回
ずつ出力されることになり、得られるパターンも2倍と
なる。ただし、この2倍モードでは、相対アドレスでア
ドレス信号XSTが奇数のときに正しい出力が得られな
い。このため、出力セレクタ104において、1bit
シフトして修正が行われる。
In this case, for example, the input address r00,01°~,6
3”, roo, 00,01°01, ~,31
.. 31J is output. In this way, each address is output twice, and the resulting pattern is also doubled. However, in this double mode, correct output cannot be obtained when the address signal XST is an odd number in the relative address. Therefore, in the output selector 104, 1 bit
Shifts and corrections are made.

さらに、たとえば1/2倍モード(X 1/2)が設定
されたとする。すると、上記セレクタ124.125か
らは、X、Y各6bitのアドレスをMSB側に1bi
tずつシフトした下位5bitが出力される。この場合
、たとえば入力アドレスrob、01.〜,63」に対
して、roo、02,04.〜,30」と1つおきに出
力される。したがって、基本パターンに対して1/2倍
のパターンが得られる。
Furthermore, assume that, for example, 1/2x mode (X 1/2) is set. Then, from the selectors 124 and 125, the address of 6 bits each for X and Y is transferred to the MSB side by 1 bit.
The lower 5 bits shifted by t are output. In this case, for example, input address rob, 01. ~, 63'', roo, 02, 04. ~, 30'' is output every other time. Therefore, a pattern 1/2 times as large as the basic pattern is obtained.

上記したように、アドレスのシフトを行うことによって
、パターンデータの拡大または縮小を実現するようにし
ている。
As described above, pattern data is enlarged or reduced by shifting addresses.

すなわち、アクセスするパターンデータのアドレスをシ
フトすることで、SRAMに格納されているパターンデ
ータの整数倍または整数分の1のパターンが得られるよ
うにしている。これにより、1つの基本パターンからい
くつものパターンを生成することが可能となる。したが
って、SRAMの内容をいちいち書き直す必要がなくな
るため、処理の高速化が図れるものである。
That is, by shifting the address of the pattern data to be accessed, a pattern that is an integral multiple or a fraction of the pattern data stored in the SRAM can be obtained. This makes it possible to generate a number of patterns from one basic pattern. Therefore, there is no need to rewrite the contents of the SRAM one by one, thereby speeding up the processing.

なお、上記実施例においては、SRAMを用いた場合を
例に説明したか、これに限らず、たとえばROMの場合
にも適用することができる。この場合には、パターンデ
ータを効率的に格納できるようになるため、ROMとし
て容量の小さなものを用いることができるようになる。
Although the above embodiments have been described using SRAM as an example, the present invention is not limited to this, and can also be applied to, for example, ROM. In this case, pattern data can be stored efficiently, so a ROM with a small capacity can be used.

その他、この発明の要旨を変えない範囲において、種々
変形実施可能なことは勿論である。
It goes without saying that various other modifications can be made without departing from the gist of the invention.

[発明の効果コ 以上、詳述したようにこの発明によれば、アドレスのシ
フトを行うことによって、1つの基本パターンからいく
つものパターンを生成することが可能となるため、パタ
ーンデータの記憶のためにRAMを用いた場合にはパタ
ーンデータの書き直しにかかる無駄な時間を不要とする
ことができ、またROMを用いた場合にはその容量を削
減することが可能となるラスタ演算装置を提供できる。
[Effects of the Invention] As detailed above, according to the present invention, by shifting addresses, it is possible to generate a number of patterns from one basic pattern. If a RAM is used for the raster processing, it is possible to eliminate wasted time for rewriting pattern data, and if a ROM is used, a raster arithmetic device can be provided that can reduce its capacity.

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

図面はこの発明の一実施例を示すもので、第1図はパタ
ーンRAMの構成を示すブロック図、第2図はバレルシ
フタの構成を示すブロック図、第3図は出力セレクタの
構成を示すブロック図、第4図はRAM部の構成を示す
ブロック図、第5図はアドレス発生器の構成を示すブロ
ック図、第6図は絶対アドレス指定時の動作と相対アド
レス指定時の動作を説明するために示す図、第7図はパ
ターンの方向を制御した場合の出力例を示す図、第8図
はこの発明が適用される画像蓄積・表示・編集装置の構
成を示すブロック図、第9図はCPUハス制御論理制御
部とその周辺の構成を示すブロック図、第10図はイメ
ージハス制御論理制御部とその周辺の構成を示すブロッ
ク図、第11図はメモリ(DPM)の構成を示すブロッ
ク図、第12図はこの発明にかかるデータ処理部の構成
を示すブロック図である。 1・・・CPU (中央演算処理部) 2・・・DMA
(ダイレクトメモリアクセス制御部) 3・MM(プロ
グラムメモリ装置) 4・・・IDC(ハードディスク
制御部)、5・・FDC(フロッピーディスク制御部)
、6・・・PIO(周辺入出力制御部) 7・・・CB
L (CPUハス制御論理制御部)、8・・COM(通
信処理制御部)、9・・ODC(光デイスク制御部) 
10・・・CRTC(表示制御部)  11・・・DP
M (メモリ)12・・・IPR(イメージ処理部)、
13・ 5CC(スキャナ制御部)  14・・・PR
C(プリンタ制御部)、15・・・IBL (イメージ
バス制御論理制御部)、16・・・HD(ハードディス
ク装置)、17・・・FD(フロッピーディスク装置)
、18・・・KB(キーボード)  19・・・MO(
マウス)20・・・通信回線、21・・・OD(光デイ
スク装置)、22・・・CRT (CRT表示部) 2
3・・・5CN(スキャナ装置) 24・・・PRN 
(イメージプリンタ装置)、25・・・5YS−BUS
 (システムバス) 26・・・PIO−BUS (周
辺データ入出力用バス)、27・・・I 1O−BUS
 (イメージデータ入出力用バス)、30.33・・・
ARBT(排他制御部)  32.36・・・ゲート、
34・・・LDC(綿密度変換処理部)、35・・・C
0DEC(圧縮伸長処理部) 50・・・メモリ、51
・・・アドレス発生部、52・・・データ処理部、53
・・シーケンサ、54・・・メモリ制御部、55・・・
カーソル制御部、56.61・・・ラッチ、57.58
・・・セレクタ、59・・・シフトレジスタ、60・・
・合成部、85・・・データ処理ユニット、86・・・
パターンRAM、87・・・ALU (論理演算部)、
88・・・ラッチ、101・・・RAM部、102・・
・ADG(アドレス発生器)  103・・・BS(バ
レルシフタ)  104・・・出力セレクタ、111・
・・SRAM1112・・CPUアクセスカウンタ、1
13・・・セレクタ、121,122・・ゲート、12
3・・・加算器、124,125.・・・セレクタ、1
26 127・・・EX−OR回路。 出願人代理人 弁理士 鈴江武彦 第 図 A/R,0 (b) 第 図 A/R:1 (C) XDIR=YDIR,0 (a) YDIR=0 (b) XDIR:YDIP=1 VDIP =1 (d) 図
The drawings show an embodiment of the present invention; FIG. 1 is a block diagram showing the configuration of a pattern RAM, FIG. 2 is a block diagram showing the configuration of a barrel shifter, and FIG. 3 is a block diagram showing the configuration of an output selector. , FIG. 4 is a block diagram showing the configuration of the RAM section, FIG. 5 is a block diagram showing the configuration of the address generator, and FIG. 6 is for explaining the operation when specifying absolute addressing and the operation when specifying relative addressing. 7 is a diagram showing an output example when the direction of a pattern is controlled. FIG. 8 is a block diagram showing the configuration of an image storage/display/editing device to which this invention is applied. FIG. 9 is a CPU A block diagram showing the configuration of the lotus control logic control unit and its surroundings, FIG. 10 is a block diagram showing the configuration of the lotus control logic control unit and its surroundings, FIG. 11 is a block diagram showing the configuration of the memory (DPM), FIG. 12 is a block diagram showing the configuration of the data processing section according to the present invention. 1...CPU (central processing unit) 2...DMA
(Direct memory access control unit) 3. MM (program memory device) 4... IDC (hard disk control unit), 5... FDC (floppy disk control unit)
, 6... PIO (peripheral input/output control unit) 7... CB
L (CPU lotus control logic control unit), 8...COM (communication processing control unit), 9...ODC (optical disk control unit)
10...CRTC (display control unit) 11...DP
M (memory) 12...IPR (image processing section),
13. 5CC (scanner control unit) 14...PR
C (printer control unit), 15...IBL (image bus control logic control unit), 16...HD (hard disk device), 17...FD (floppy disk device)
, 18...KB (keyboard) 19...MO(
Mouse) 20... Communication line, 21... OD (optical disk device), 22... CRT (CRT display unit) 2
3...5CN (scanner device) 24...PRN
(image printer device), 25...5YS-BUS
(System bus) 26...PIO-BUS (Peripheral data input/output bus), 27...I 1O-BUS
(image data input/output bus), 30.33...
ARBT (exclusive control unit) 32.36...gate,
34...LDC (cotton density conversion processing section), 35...C
0DEC (compression/expansion processing unit) 50...Memory, 51
. . . Address generation section, 52 . . . Data processing section, 53
...Sequencer, 54...Memory control unit, 55...
Cursor control unit, 56.61...Latch, 57.58
...Selector, 59...Shift register, 60...
-Synthesis unit, 85...Data processing unit, 86...
Pattern RAM, 87...ALU (logical operation unit),
88...Latch, 101...RAM section, 102...
・ADG (address generator) 103...BS (barrel shifter) 104...output selector, 111.
・・SRAM1112・・CPU access counter, 1
13...Selector, 121,122...Gate, 12
3... Adder, 124, 125. ...Selector, 1
26 127...EX-OR circuit. Applicant's representative Patent attorney Takehiko Suzue Diagram A/R, 0 (b) Diagram A/R: 1 (C) XDIR=YDIR, 0 (a) YDIR=0 (b) XDIR:YDIP=1 VDIP =1 (d) Diagram

Claims (1)

【特許請求の範囲】 パターンデータを含む3種類のデータに対して3項演算
を行うラスタ演算装置において、パターンデータを格納
する格納手段と、 アクセスするパターンデータに対応するアドレスを発生
するアドレス発生手段と、 このアドレス発生手段にて発生されたアドレスにより読
み出したパターンデータのバレルシフトを行うシフト手
段とを具備し、 前記アドレス発生手段で発生されるアドレスの値をシフ
トすることにより、前記格納手段で格納されたパターン
データの整数倍または整数分の1のパターンデータを出
力するようにしたことを特徴とするラスタ演算装置。
[Scope of Claim] A raster arithmetic device that performs a ternary operation on three types of data including pattern data, comprising: storage means for storing pattern data; and address generation means for generating an address corresponding to the pattern data to be accessed. and a shift means for barrel-shifting the read pattern data according to the address generated by the address generation means, and by shifting the value of the address generated by the address generation means, the storage means A raster arithmetic device characterized in that it outputs pattern data that is an integer multiple or an integer fraction of stored pattern data.
JP2118584A 1990-05-10 1990-05-10 Raster arithmetic unit Pending JPH0415879A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2118584A JPH0415879A (en) 1990-05-10 1990-05-10 Raster arithmetic unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2118584A JPH0415879A (en) 1990-05-10 1990-05-10 Raster arithmetic unit

Publications (1)

Publication Number Publication Date
JPH0415879A true JPH0415879A (en) 1992-01-21

Family

ID=14740205

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2118584A Pending JPH0415879A (en) 1990-05-10 1990-05-10 Raster arithmetic unit

Country Status (1)

Country Link
JP (1) JPH0415879A (en)

Similar Documents

Publication Publication Date Title
KR100509517B1 (en) Display apparatus and method capable of rotating an image by 180 degrees
KR100417123B1 (en) Hardware that rotates an image for portrait-oriented display
US5335296A (en) Process for high speed rescaling of binary images
US3976982A (en) Apparatus for image manipulation
JPH07200386A (en) Shared memory access control device and image forming apparatus
JPS6235679B2 (en)
US5241626A (en) Image processing apparatus having improved two-dimensional address generator
TWI281038B (en) Back-end image transformation
JPH0212570A (en) Picture processor
US5381163A (en) Image processing apparatus
WO2000036841A1 (en) Method and apparatus for image processing
JPH0415879A (en) Raster arithmetic unit
JP3359977B2 (en) Image forming device
JPH07296157A (en) Method and system of rotating image data
JPH03268040A (en) Address generator
JPH0359736A (en) Image information processor
JP2000231631A (en) Image rotating device
JPS60107181A (en) Image processing system
JPS6249570A (en) Picture processor
JPH0359735A (en) Image information processor
KR920001619B1 (en) Image processing device
JPH06282639A (en) Picture forming device
JPH0722316B2 (en) Image information line buffer device
JPH06289848A (en) Display system and display controller
JPH04205678A (en) Image information processor