JPH06139347A - Picture arithmetic processor - Google Patents

Picture arithmetic processor

Info

Publication number
JPH06139347A
JPH06139347A JP4287461A JP28746192A JPH06139347A JP H06139347 A JPH06139347 A JP H06139347A JP 4287461 A JP4287461 A JP 4287461A JP 28746192 A JP28746192 A JP 28746192A JP H06139347 A JPH06139347 A JP H06139347A
Authority
JP
Japan
Prior art keywords
cpu
memory
data
address
image
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
JP4287461A
Other languages
Japanese (ja)
Inventor
Yasuo Hongo
保夫 本郷
Hitoshi Ichinohe
均 一戸
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.)
Fuji Electric Co Ltd
Fuji Facom Corp
Original Assignee
Fuji Electric Co Ltd
Fuji Facom 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 Fuji Electric Co Ltd, Fuji Facom Corp filed Critical Fuji Electric Co Ltd
Priority to JP4287461A priority Critical patent/JPH06139347A/en
Publication of JPH06139347A publication Critical patent/JPH06139347A/en
Pending legal-status Critical Current

Links

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Image Input (AREA)
  • Image Processing (AREA)

Abstract

PURPOSE:To perform the picture arithmetic processing at a high speed with a simple configuration. CONSTITUTION:Setters 31 and 32 (Max value register and a Min value register) which set the address range of a picture memory 2 based on the indication from a central processing unit CPU 1, a mode setter 33 (mode setting register) which sets the processing mode indicating the picture operation processing to be executed based on the instruction by the CPU 1, comparators 34 and 35 which compare the access address of the CPU 1 with contents of setters 31 and 32, logic circuits 36 and 37 which output a read signal R to the memory 2 as a data latch signal D in the case of setting of a prescribed picture arithmetic processing and the access address of the CPU 1 within the set range of setters 31 and 32, etc., are provided, and data read out from the memory 2 is directly taken into a projection operation processing part 38 based on this signal D.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、光学的文字認識装置
(OCR)のように、画像の投影演算,拡大・縮小演算
または局所回転演算を含む画像演算処理を行なう画像演
算処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image calculation processing device, such as an optical character recognition device (OCR), which performs image calculation processing including image projection calculation, enlargement / reduction calculation or local rotation calculation.

【0002】[0002]

【従来の技術】従来、例えば画像の投影処理を行なう画
像演算装置(投影LSIともいう)へ必要なデータを渡
す場合は、中央処理装置(CPUともいう)が一度デー
タ格納メモリ(画像メモリ)からデータを読み出し、そ
のデータをCPUから画像演算装置へ書き込むという2
段階の動作により実現するようにしているのが一般的で
ある。また、その他にはDMA(Direct Mem
ory Access)用のハードウエアを用いて実現
する方法もある。
2. Description of the Related Art Conventionally, when passing necessary data to, for example, an image processing unit (also called a projection LSI) that performs an image projection process, a central processing unit (also called a CPU) once transfers data from a data storage memory (image memory). 2 to read the data and write the data from the CPU to the image processing device
Generally, it is realized by a step operation. In addition, DMA (Direct Mem)
There is also a method of implementing it by using hardware for ory access).

【0003】[0003]

【発明が解決しようとする課題】しかしながら、前者の
方式では1つのデータを処理するために、 CPUが画像メモリからデータを読み出す。 読み出したデータをCPUから投影LSIへ書き込
む。 という2段階の動作が必要であり、データのアクセス時
間が2重に掛かるという問題がある。つまり、画像処理
のように扱うデータ量が極めて大きい場合は、データの
アクセス時間を速くする程処理速度を大きくできるの
で、データのアクセス時間が2重に掛かるということ
は、その分だけ処理速度が遅くなるということになる。
一方、後者の方式はDMAのための複雑で高価なハード
ウエアが必要となるだけでなく、転送データが連続(ア
ドレスが連続)している場合でないと転送効率が悪くな
るという問題がある。したがって、この発明の課題は複
雑かつ高価なハードウエアを必要とすることなく、しか
も高速な画像演算処理を可能にすることにある。
However, in the former method, in order to process one data, the CPU reads the data from the image memory. The read data is written from the CPU to the projection LSI. Therefore, there is a problem that the data access time is doubled. In other words, when the amount of data to be handled is extremely large, as in image processing, the faster the data access time, the higher the processing speed. It will be late.
On the other hand, the latter method has a problem that not only complicated and expensive hardware for DMA is required, but also transfer efficiency deteriorates unless transfer data is continuous (addresses are continuous). Therefore, an object of the present invention is to enable high-speed image calculation processing without requiring complicated and expensive hardware.

【0004】[0004]

【課題を解決するための手段】このような課題を解決す
るため、この発明では、メモリからのデータにもとづき
所定の処理を行なう中央処理装置(CPU)と並行して
動作し、画像の投影演算,拡大・縮小演算または局所回
転演算を含む画像演算処理を実行するために、前記CP
Uからの指示にもとづきメモリアドレスの範囲を設定す
るアドレス設定器と、CPUからの指示にもとづき如何
なる画像演算処理を行なうかの処理モードを設定するモ
ード設定器と、CPUがアクセスするアドレスを前記ア
ドレス設定器の内容と比較する比較器と、所定の画像演
算処理モードでかつCPUのアクセスアドレスが前記ア
ドレス設定器の設定範囲内のとき、前記メモリに対する
リード信号をデータラッチ信号に変換する論理回路とを
設け、このデータラッチ信号にもとづきメモリから読み
出されるデータを直接取り込み可能にしたことを特徴と
している。
In order to solve such a problem, the present invention operates in parallel with a central processing unit (CPU) that performs a predetermined process based on data from a memory, and performs an image projection operation. , CP for executing image calculation processing including enlargement / reduction calculation or local rotation calculation
An address setter for setting a range of memory addresses based on an instruction from U, a mode setter for setting a processing mode of what image arithmetic processing is to be performed based on an instruction from the CPU, and an address accessed by the CPU as the address. A comparator for comparing with the contents of the setter, and a logic circuit for converting a read signal for the memory into a data latch signal when the access address of the CPU is within a set range of the address setter in a predetermined image operation processing mode. Is provided, and the data read from the memory based on the data latch signal can be directly fetched.

【0005】[0005]

【作用】CPUがメモリからデータを読み出すと同時
に、画像演算処理装置へ直接データをラッチ(格納また
は取り込み)し得るようにすることにより、CPUから
画像演算処理装置へデータを転送する動作を不要とし、
高速な画像演算処理を可能とする。
By allowing the CPU to read (read out) data from the memory and simultaneously latch (store or take in) the data directly to the image processing unit, the operation of transferring the data from the CPU to the image processing unit becomes unnecessary. ,
Enables high-speed image calculation processing.

【0006】[0006]

【実施例】図1はこの発明の実施例を示すブロック図、
図2は図1のCPUの動作を説明するためのフローチャ
ートである。図1からも明らかなように、この発明は例
えばレジスタ31〜33、比較器34,35、ナンドゲ
ート36、オアゲート37、投影演算処理部38などか
らなる画像演算処理装置(投影LSI)3を設けた点が
特徴で、その他は従来と同様である。なお、符号1はC
PU、2はメモリ(画像メモリ)、4はデータバス、5
はアドレスバス、Rはリード信号、Wはライト信号、D
はデータラッチ信号をそれぞれ示している。
FIG. 1 is a block diagram showing an embodiment of the present invention,
FIG. 2 is a flow chart for explaining the operation of the CPU of FIG. As is apparent from FIG. 1, the present invention is provided with an image arithmetic processing unit (projection LSI) 3 including, for example, registers 31 to 33, comparators 34 and 35, NAND gate 36, OR gate 37, and projection arithmetic processing unit 38. The feature is the point, and the others are the same as the conventional one. In addition, the code 1 is C
PU, 2 is a memory (image memory), 4 is a data bus, 5
Is an address bus, R is a read signal, W is a write signal, D
Indicate data latch signals, respectively.

【0007】レジスタ31にはCPU1からメモリ2の
アドレスの最大(Max)値が設定され、レジスタ32
にはCPU1からメモリ2のアドレスの最小(Min)
値が設定され、レジスタ33にはCPU1から投影処理
モードかどうかを示すデータが設定される。比較器3
4,35は設定器31,32の設定値と、CPU1から
出力されるメモリ2のアドレス(adr)とを比較し、
比較器34はadr≦Maxのときハイレベル(H)の
信号を出力し、比較器35はadr≧Minのときハイ
レベル(H)の信号を出力する。ナンドゲート36は比
較器34,35およびレジスタ33の各出力がHのとき
のみローレベル(L)となる。また、オアゲート37は
ナンドゲート36の出力がLのときのみ、リード信号R
をデータラッチ信号Dに変換する(有効とする)。
The CPU 31 sets the maximum (Max) value of the address of the memory 2 in the register 31, and the register 32
Is the minimum address (Min) from CPU 1 to memory 2.
A value is set, and data indicating whether or not the projection processing mode is set is set in the register 33 by the CPU 1. Comparator 3
Reference numerals 4 and 35 compare the set values of the setters 31 and 32 with the address (adr) of the memory 2 output from the CPU 1,
The comparator 34 outputs a high level (H) signal when adr ≦ Max, and the comparator 35 outputs a high level (H) signal when adr ≧ Min. The NAND gate 36 becomes low level (L) only when the outputs of the comparators 34 and 35 and the register 33 are high. The OR gate 37 reads the read signal R only when the output of the NAND gate 36 is L.
Is converted into a data latch signal D (validated).

【0008】図2も参照して動作を説明する。すなわ
ち、CPU1は図2のステップS1〜S3に示すよう
に、まずアドレスMax値,アドレスMin値の設定、
およびモード設定(投影演算を行なうとき「H」とす
る)をそれぞれ行なう。その設定は、ライト信号Wを用
いて行なわれる。しかる後、ステップS4に示すよう
に、CPU1が所定のアドレスを指定して画像メモリ2
の或る範囲のデータを読み出すと、これにより投影LS
I3の比較器34,35ではそのアドレスが予め設定さ
れた範囲内かどうかを判断し、その範囲内ならばHの信
号を出力する。
The operation will be described with reference to FIG. That is, the CPU 1 first sets the address Max value and the address Min value, as shown in steps S1 to S3 of FIG.
And mode setting (set to “H” when performing projection calculation). The setting is performed using the write signal W. Then, as shown in step S4, the CPU 1 designates a predetermined address to specify the image memory 2
Of data in a certain range of
The I3 comparators 34 and 35 determine whether or not the address is within a preset range, and output an H signal if within the range.

【0009】したがって、ナンドゲート36は比較器3
4,35およびレジスタ33の出力が全てHのときのみ
Lとなり、オアゲート37はナンドゲート36の出力が
Lのときのみリード信号Rを有効とし、これをデータラ
ッチ信号Dとして受けて、データバス4を介するメモリ
2からのデータを、投影演算処理部38にラッチし得る
ようにする。なお、その後CPU1では図2のステップ
S5のように、目的とする処理(ここでは投影演算処
理)が完了したかどうかを判断し、完了していればステ
ップS6でモード設定の解除を行ない、次の処理に備え
るようにする。
Therefore, the NAND gate 36 is connected to the comparator 3
4, 35 and register 33 become L only when all outputs are H, and OR gate 37 validates read signal R only when the output of NAND gate 36 is L, receives this as data latch signal D, and receives data bus 4 The data from the memory 2 via the projection arithmetic processing unit 38 can be latched. After that, the CPU 1 determines whether or not the target processing (projection calculation processing in this case) is completed, as in step S5 of FIG. 2, and if completed, the mode setting is canceled in step S6, and To prepare for the process.

【0010】図3はこの発明の動作を従来例と対比して
説明するための説明図である。同図(イ)は従来方式、
同図(ロ)はこの発明によるものであり、はCPU1
が画像メモリ2からデータを読み出すルート、は読み
出したデータをCPU1から投影LSI3へ書き込むル
ート、’は投影LSI3が自らデータを取り込むルー
トをそれぞれ示している。つまり、従来は(イ)のよう
に2段階の動作が必要であったのに対し、この発明では
(ロ)のように’の動作がの動作と並行して行なわ
れるため、1段階の動作で済むことになる。なお、上記
では主として投影演算処理について説明したが、この発
明は拡大・縮小や回転などの他の画像演算処理について
も同様に適用し得ることはいうまでもない。
FIG. 3 is an explanatory diagram for explaining the operation of the present invention in comparison with a conventional example. The figure (a) shows the conventional method,
This figure (b) is according to the present invention, and is a CPU 1
Indicates a route for reading data from the image memory 2, a route for writing the read data from the CPU 1 to the projection LSI 3, and a symbol 'indicates a route for the projection LSI 3 to take in data by itself. That is, in the prior art, a two-step operation is required as in (a), whereas in the present invention, the operation of'is performed in parallel with the operation of, so that one-step operation is performed. Will be enough. It should be noted that, although the projection calculation process has been mainly described above, it goes without saying that the present invention can be similarly applied to other image calculation processes such as enlargement / reduction and rotation.

【0011】[0011]

【発明の効果】この発明によれば、CPUからメモリ上
の処理範囲を予め設定しておき、CPUがメモリアクセ
スをする都度画像処理装置側でそのアドレスを監視する
だけの簡単な構成で、必要なデータを直接取り込むこと
ができる。その結果、従来はCPUがメモリからデータ
を読み出し、しかる後にデータを画像処理装置に書き込
むという2段階の動作が必要だったのを、1段階の動作
で実行することが可能となり、処理時間を短縮し得る利
点が得られることになる。
According to the present invention, the processing range on the memory is preset from the CPU, and the address is monitored on the image processing device side each time the CPU accesses the memory, which is a simple structure. Data can be directly captured. As a result, it is possible to execute the operation in one step, which conventionally requires a two-step operation in which the CPU reads data from the memory and then writes the data to the image processing apparatus, which shortens the processing time. The possible advantages will be obtained.

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

【図1】この発明の実施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】図1に示すCPUの動作を説明するためのフロ
ーチャートである。
FIG. 2 is a flowchart for explaining the operation of the CPU shown in FIG.

【図3】この発明を従来例と対比して説明するための説
明図である。
FIG. 3 is an explanatory diagram for explaining the present invention in comparison with a conventional example.

【符号の説明】[Explanation of symbols]

1…中央処理装置(CPU)、2…画像メモリ、3…投
影LSI、4…データバス、5…アドレスバス、31…
Max値レジスタ、32…Min値レジスタ、33…モ
ード設定レジスタ、34,35…比較器、36…ナンド
ゲート、37…オアゲート、38…投影演算処理部。
1 ... Central processing unit (CPU), 2 ... Image memory, 3 ... Projection LSI, 4 ... Data bus, 5 ... Address bus, 31 ...
Max value register, 32 ... Min value register, 33 ... Mode setting register, 34, 35 ... Comparator, 36 ... NAND gate, 37 ... OR gate, 38 ... Projection calculation processing unit.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 メモリからのデータにもとづき所定の処
理を行なう中央処理装置(CPU)と並行して動作し、
画像の投影演算,拡大・縮小演算または局所回転演算を
含む画像演算処理を実行する画像演算処理装置であっ
て、 前記CPUからの指示にもとづきメモリアドレスの範囲
を設定するアドレス設定器と、CPUからの指示にもと
づき如何なる画像演算処理を行なうかの処理モードを設
定するモード設定器と、CPUがアクセスするアドレス
を前記アドレス設定器の内容と比較する比較器と、所定
の画像演算処理モードでかつCPUのアクセスアドレス
が前記アドレス設定器の設定範囲内のとき、前記メモリ
に対するリード信号をデータラッチ信号に変換する論理
回路とを設け、このデータラッチ信号にもとづきメモリ
から読み出されるデータを直接取り込み可能にしてなる
ことを特徴とする画像演算処理装置。
1. A central processing unit (CPU), which performs a predetermined process based on data from a memory, operates in parallel,
An image calculation processing device for executing image calculation processing including image projection calculation, enlargement / reduction calculation or local rotation calculation, comprising: an address setter for setting a range of memory addresses based on an instruction from the CPU; , A mode setter for setting a processing mode of what kind of image calculation processing is to be performed, a comparator for comparing the address accessed by the CPU with the contents of the address setter, and a CPU for a predetermined image calculation processing mode. And a logic circuit for converting a read signal to the memory into a data latch signal when the access address of the memory is within the setting range of the address setter, and makes it possible to directly fetch the data read from the memory based on the data latch signal. An image calculation processing device characterized by:
JP4287461A 1992-10-26 1992-10-26 Picture arithmetic processor Pending JPH06139347A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4287461A JPH06139347A (en) 1992-10-26 1992-10-26 Picture arithmetic processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4287461A JPH06139347A (en) 1992-10-26 1992-10-26 Picture arithmetic processor

Publications (1)

Publication Number Publication Date
JPH06139347A true JPH06139347A (en) 1994-05-20

Family

ID=17717636

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4287461A Pending JPH06139347A (en) 1992-10-26 1992-10-26 Picture arithmetic processor

Country Status (1)

Country Link
JP (1) JPH06139347A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4886999A (en) * 1986-04-03 1989-12-12 Mitsubishi Denki Kabushiki Kaishi Cathode ray tube apparatus with quadrupole electrode structure

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4886999A (en) * 1986-04-03 1989-12-12 Mitsubishi Denki Kabushiki Kaishi Cathode ray tube apparatus with quadrupole electrode structure

Similar Documents

Publication Publication Date Title
US4747045A (en) Information processing apparatus having an instruction prefetch circuit
US5386519A (en) Information processing apparatus incorporating buffer storing a plurality of branch target instructions for branch instructions and interrupt requests
JPH06139347A (en) Picture arithmetic processor
JP3061106B2 (en) Bus bridge and computer system having the same
US5724548A (en) System including processor and cache memory and method of controlling the cache memory
US6425047B1 (en) Process containing address decoders suited to improvements in clock speed
KR950000088B1 (en) Data processing system
JPH1063574A (en) Processor with cache memory
EP0502206A1 (en) System equipped with processor and cache memory, and method of controlling said cache memory
JPH08314797A (en) Memory access system
JPS6391756A (en) Partial write instruction processing system for storage device
JP3242474B2 (en) Data processing device
JPS61237145A (en) Controlling system for store buffer
JPH0721083A (en) Memory reader
JP2806690B2 (en) Microprocessor
JPH047762A (en) Memory access method
JP3269435B2 (en) Bus interface unit
JPH0228737A (en) Buffer storage control system
JPS59133629A (en) Dma transfer control system
JPH04162135A (en) Data processor
JPH0540686A (en) Memory device
JPS62206632A (en) Control system for main storage device
JPH0821021B2 (en) Data processing device
JPS61229125A (en) Arithmetic processing unit
JPH01161438A (en) Prefetch instruction invalidation processing system