JP3605987B2 - Image processing device - Google Patents
Image processing device Download PDFInfo
- Publication number
- JP3605987B2 JP3605987B2 JP03285497A JP3285497A JP3605987B2 JP 3605987 B2 JP3605987 B2 JP 3605987B2 JP 03285497 A JP03285497 A JP 03285497A JP 3285497 A JP3285497 A JP 3285497A JP 3605987 B2 JP3605987 B2 JP 3605987B2
- Authority
- JP
- Japan
- Prior art keywords
- image processing
- data
- processing apparatus
- system bus
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Record Information Processing For Printing (AREA)
- Storing Facsimile Image Data (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
Description
【0001】
【発明の属する技術分野】
この発明は、プリンタ、複写機、ファクシミリ装置等の画像処理装置に関し、特に、高速な画像処理機能を有する画像処理装置に関する。
【0002】
【従来の技術】
従来の画像処理装置、特に昨今のプリンタにおいては、その解像度、印刷速度が向上し、該プリンタを画像データ入出力装置のシステムバスに接続する上で、データ転送速度が最も重要な因子の一つとなっている。そこで、高速のプリントを実現するためには、画像処理を含めたデータ転送速度の高速化が必要となっている。
【0003】
データ転送速度を向上させる方式として、例えば特開平4−256186号公報には、制御装置においてデータを圧縮してプリンタに転送し、転送データ量を低減する方式が開示されている。この方式においては、制御装置内の圧縮回路は画像メモリに蓄えられたイメージデータをローカルに読み出し、圧縮してプリンタに出力する。プリンタ側では、受信した圧縮された画像データを伸張回路によって伸張し、印刷出力する。
【0004】
【発明が解決しようとする課題】
上記のような従来の方式においては、圧縮処理自体には転送速度向上の工夫が無いために、プリンタへの最大転送速度は圧縮処理にかかる時間によって決定されることになる。
【0005】
プリンタへ送るデータを圧縮する方式として、一般的に、図8に示されているものが考えられる。システムバス51には、CPU52、ROM53、RAM54、圧縮装置55、伸長装置56が接続されており、伸長装置56にはプリンタ57が接続されている。また、圧縮装置55は、バスブリッジ61、第1のFIFO62、圧縮回路63および第2のFIFO64から構成されている。
【0006】
この方式の動作を説明すると、RAM54からのデータの読出期間では、RAM54から読み出されたデータは、バスブリッジ61を介して第1のFIFO62に送られる。第1のFIFO62にデータが格納されると、圧縮回路63は圧縮動作を行い、圧縮されたデータは第2のFIFO64に格納される。次に、RAM54へのデータの書込み期間では、第2のFIFO64に格納された圧縮データは、バスブリッジ61を介してRAM54に書込まれる。前記のRAM54からのデータの読出期間と、RAM54へのデータの書込み期間は、交互に行われる。一方、RAM54に格納された圧縮データは、伸長装置56を介してプリンタ57に送られる。この方式によれば、RAM54から伸長装置56へ送られるデータ量は少なくなり、転送速度は向上する。
【0007】
しかしながら、RAM54へのデータの書込み期間には、第1のFIFO62中のデータがなくなるため、圧縮回路63によるデータ圧縮動作が行われず、圧縮処理速度が遅いという問題があった。また、このため、高速な画像処理/プリントが困難であるという問題があった。
【0008】
本発明の目的は、前記した従来技術の問題点を解決し、高速な画像処理が可能な画像処理装置を提供することにある。
【0009】
【課題を解決するための手段】
前記目的を達成するために、本発明は、画像処理装置において、システムバスと、該システムバスから入力される画像データを一時的に保持する緩衝記憶手段と、前記緩衝記憶手段から読み出されたデータを入力し、圧縮あるいは伸張処理を行う画像処理手段と、前記画像処理手段へのデータの入力と、前記システムバスに対するデータの入出力とが並行動作するように、前記各手段間のデータ転送を制御する制御手段と、前記制御手段によって制御され、少なくとも前記並行動作時にはシステムバスと前記緩衝記憶手段との接続を切り離す分離手段とを具備した点に特徴がある。
【0010】
本発明は、上記のような構成により、前記画像処理手段へのデータの入力と、前記システムバスに対するデータの入出力とを並行動作させることができるようになり、前記画像処理手段の稼働効率を大幅に高めることができるようになる。この結果、前記画像処理装置の処理速度を向上することができるようになる。
【0011】
【発明の実施の形態】
以下に、図面を参照して、本発明を詳細に説明する。図2は、本発明の画像処理装置の一実施例であるプリンタ制御装置のシステム構成例を示すブロック図である。
CPU1は、ROM2に格納されている制御プログラムに従って装置全体を制御する。RAM3は処理のワークエリアおよび画像情報のバッファとして使用される。ディスク装置(DISK)4は例えばハードディスク装置であり、画像情報あるいはプログラム等を格納する。プリンタ5は入力された画像情報を印刷する装置であり、伸張装置6は、例えば圧縮されてRAM3あるいはDISK4に格納されている画像データを元のデータに復元して出力する。
【0012】
圧縮装置7は、詳細は後述するが、RAM3あるいはDISK4から画像情報を入力し、圧縮処理を行って、圧縮された画像データを再びRAM3あるいはDISK4へ出力する。LANインターフェース回路8は外部のLAN10とのインターフェースを取る回路であり、該回路を介してLAN10に接続されている他のワークステーションからプリントすべき画像情報が入力される。システムバス9は装置内の各回路を接続している。なお、画像情報の入力は、LAN以外に例えば1対1のパラレルあるいはシリアルインターフェース回路、フロッピディスク装置等の着脱可能な情報記録媒体を使用してもよい。
【0013】
図1は、図2の圧縮装置7の構成を示すブロック図である。バスブリッジ20は、システムバス9とローカルバスB21との間に接続され、2つの機能を実行する。1つは、制御部28および圧縮処理部26に対するCPU1からのパラメータやステータス情報の書き込み/読み出し処理を実行することであり、もう1つはDMA転送処理の実行である。DMA転送処理においては、バスブリッジ20がシステム上のバスマスタとなり、RAM3(あるいはDISK4)に対してリード/ライトアクセスを実行する。このために、バスブリッジ20内にはデータバッファが存在する。
【0014】
分離手段であるゲート回路22は、ローカルバスB21とローカルバスA23との間に接続され、制御部28の制御に応じて、ローカルバスB21上のデータをローカルバスA23に出力するトライステートバスドライバである。緩衝記憶手段であるRAMバッファ24は、RAM3からゲート回路22を介してDMA転送されてきた画像データを格納するRAMであり、例えば32kバイトの容量を有するSRAMからなる。FIFO−2(25)は、例えば4kバイト程度の容量を有するFIFOバッファであり、制御部28の制御により、RAMバッファ24から読み出された画像データをバッファリングする。
【0015】
画像処理手段である圧縮処理部26は、FIFO−2(25)から画像データを読み出し、CPU1から指示された方式に基づき、一般的な圧縮アルゴリズムを用いて圧縮処理を施し、FIFO−1(27)に出力する。FIFO−1(27)は、やはり4kバイト程度の容量を持つFIFOバッファであり、該FIFOバッファ内にある程度(例えば半分)のデータが蓄積されると、該データは制御部28の制御により、ローカルバスB21、バスブリッジ20を介してRAM3(あるいはDISK4)にDMA転送される。制御部28は、後述するような構成および動作によって、圧縮処理部26において、滞り無く圧縮処理が実行できるように、画像データの転送動作を制御する。
【0016】
図3は、制御部28の構成を示すブロック図である。アービタA31は、ローカルバスA23のアクセスの競合を調停する回路であり、複数の制御部34、35からのバスリクエスト信号を入力し、図5に関して後述する方式に従って、いずれか1つの制御部のみにバス使用許可信号を与える回路である。アービタA31はRAMバッファ24に対する書き込み/読み出しのタイミング制御も合わせて行う。
【0017】
アービタB30は、ローカルバスB21のアクセスの競合を調停する回路であり、それぞれ複数の制御部32〜34からのバスリクエスト信号を入力し、ラウンドロビン方式により、いずれか1つの制御部のみにバス使用許可信号を与える回路である。なお、許可を与えられた制御部が1転送サイクルを終了するまで、許可信号を出し続ける。
【0018】
スレーブ書き込み制御部32は、バスブリッジ20を介してCPU1から送られてきた、制御部28内部あるいは圧縮処理部26のレジスタへの書き込み/読み出しアクセスを受け付け、ローカルバスB21を使用するために、アービタB30にバスリクエスト信号を送出する。そして、許可を得て図1の点線(3)に示すスレーブ書き込みサイクルを制御する。そして、転送が終了するとアービタB30に対して終了通知を行う。
【0019】
DMA書き込み制御部33は、例えばFIFO−1の蓄積データ量を監視し、容量の半分以上データが蓄積された場合に転送制御を開始し、アービタB30からバス使用許可を得ると、FIFO−1(27)から圧縮された画像データを読み出し、図1の点線(4)で示すように、ローカルバスB21、バスブリッジ20を経由してRAM3へDMA転送するDMA書き込みサイクルを実行する。なお、バスブリッジ20のバッファに空きが無くなった場合には当サイクルを中断し、サイクル終了時にはアービタB30に対して終了通知を行う。
【0020】
DMA読み出し制御部34は、CPU1からの指示によって起動し、RAM3からRAMバッファ24へのDMA転送を制御する。このために、アービタA31とアービタB30の双方からバス使用許可を得る必要がある。許可を得た場合にはゲート回路22を導通状態に制御し、RAMバッファ24に書き込みアドレスおよび書き込み制御信号を与えて、図1の点線(1)で示すように、バスブリッジ20から出力される画像データをRAMバッファ24に書き込むDMA読み出し(RAMバッファ書き込み)サイクルを実行する。
【0021】
RAM読み出し制御部35は、CPU1からの制御により、RAMバッファ24から画像データを読み出し、図1の点線(2)で示すように、FIFO−2(25)に転送する。以上のような機能を有する制御部28は、個別のハードウェアによって作成可能であるし、蓄積プログラム方式の制御装置によって実現することも可能である。
【0022】
図5は、図3のDMA読み出し制御部34、RAM読み出し制御部35、アービタA31の動作(処理)を示すフローチャートである。この処理は大きく3つの部分に分かれており、図5のS1〜S7がRAMバッファ読み出しサイクル、S8〜S12がアービタA31からの使用許可信号待ちループ、S13〜S20がDMA読み出し(RAMバッファ書き込み)サイクルである。ステップS1においては、RAM読み出し制御部35内にある読み出しカウンタR_CTRが0であるか否かが判定される。このR_CTRはCPU1から読み出しデータ量(例えば、4kバイト)を設定され、1つ(例えば、1バイト)転送するたびに−1される。従ってR_CTRが0でなければ転送すべきデータが残っていることになる。
【0023】
ステップS1の判定結果が否定(データがある)の場合にはステップS2に移行し、1回の読み出しサイクルで転送されるデータ数をカウントするインターバルカウンタR_INTに所定値をプリセットする。例えば、1回の読み出しサイクルで転送されるデータ数が4バイトであれば、R_INTに所定値4がプリセットされる。ステップS3においては、RAM読み出し制御部35からRAMバッファ24に対してアウトプットイネーブル信号(OE)およびチップセレクト信号(CS)を出力し、同時に読み出しアドレスを出力する。これらの信号に基づき、RAMバッファ24から画像データが1つ読み出され、FIFO−2に格納される。
【0024】
ステップS4においては、R_CTRおよびR_INTをそれぞれ−1する。なお、ここで読み出しアドレスも順次更新(+1)され、最大値に達するとリセットされる。ステップS5においては、R_CTRが0であるか否かが判定され、結果が肯定の場合にはステップS8に移行するが、否定の場合にはステップS6に移行する。ステップS6においては、R_INTが0であるか否かが判定され、結果が肯定の場合にはステップS8に移行するが、否定の場合にはステップS7に移行する。ステップS7においては、FIFO−2に空きが有るか否かが判定され、結果が否定の場合にはステップS8に移行するが、肯定の場合にはステップS3に戻って、RAMバッファ24からのデータの読み出しを繰り返す。
【0025】
ステップS8においては、DMA書き込み制御部33内にある書き込みカウンタW_CTRが0であるか否かが判定される。このW_CTRはCPU1から書き込みデータ量を設定され、1つ転送するたびに−1される。従ってW_CTRが0でなければDMA転送すべきデータが残っていることになる。ステップS8の判定結果が肯定の場合にはステップS1に戻るが、否定の場合にはステップS9に移行する。ステップS9においては、1回の書き込みサイクルで転送されるデータ数をカウントするインターバルカウンタW_INTに所定値(例えば4)をプリセットする。
【0026】
ステップS10においては、アービタB30からのバス使用許可信号であるW_GNTが1(許可)であるか否かが判定され、結果が肯定の場合にはステップS15に移行するが、否定の場合にはステップS11に移行する。ステップS11においては、W_INTを−1し、ステップS12においては、W_INTが0であるか否かが判定され、結果が否定の場合にはステップS10に戻るが、肯定の場合にはステップS1に移行する。ステップS10からS12の処理は、アービタBからの使用許可信号を待ち合わせるための処理であり、W_GNT信号が1になれば、直ちにステップS15以下の書き込み処理に移行する。
【0027】
ステップS13においては、W_CTRが0であるか否かが判定され、判定結果が肯定の場合にはステップS1に戻るが、否定の場合にはステップS14に移行する。ステップS14においては、W_GNTが1であるか否か判断され、肯定の場合には、ステップS15に進む。ステップS15では、インターバルカウンタW_INTに所定値(例えば4)をプリセットする。ステップS16においては、DMA読み出し制御部34からRAMバッファ24に対してライトイネーブル信号(WE)およびチップセレクト信号(CS)を出力し、同時に書き込みアドレスを出力する。更にゲート回路22に対して動作信号を出力する。これらの信号に基づき、画像データがバスブリッジ20からローカルバスB、ゲート回路22を経由してRAMバッファ24に格納される。
【0028】
ステップS17においては、W_CTRおよびW_INTをそれぞれ−1する。なお、ここで書き込みアドレスも順次更新(+1)され、最大値に達するとリセットされる。ステップS18においては、W_CTRが0であるか否かが判定され、結果が肯定の場合にはステップS1に移行するが、否定の場合にはステップS19に移行する。ステップS19においては、W_INTが0であるか否かが判定され、結果が肯定の場合にはステップS1に移行するが、否定の場合にはステップS20に移行する。ステップS20においては、バスブリッジ20内のバッファに転送すべきデータが無いか否かが判定され、結果が否定の場合にはステップS16に移行するが、肯定の場合にはステップS1に戻る。
【0029】
以上のような処理を行うことにより、転送すべきデータがある場合には、それぞれのインターバルカウンタにプリセットされた数づつまとめて転送され、書き込み要求と読み出し要求の双方が存在する場合には交互に処理される。
【0030】
図7は、RAMバッファ24の動作を示すタイムチャートである。図7(a)は、RAMバッファ24内に画像データが既に格納されている場合において、CPU1がR_CTRに任意の値を設定したときの動作を示すものである。このような場合には、図5のフローチャートにおいてステップS1からS2へ移行し、R_INTにプリセットされた回数(例えば4回)だけ画像データが読み出される。そしてR_INTが0になるとステップS6からS8に移行し、W_CTRが0であれば再びS1に戻って、読み出しサイクルを繰り返す。なお、W_CTRのみに値を設定した場合にも、図7(a)と同様の形態で、ステップS16からS20の書き込みサイクルが繰り返される。
【0031】
図7(b)は、図7(a)の読み出しサイクルを実行中にCPU1からW_CTRに値をセットした場合の処理であり、任意のタイミングでW_CTRへの書き込みが実行されると、ステップS6からステップS8、ステップS9へと移行する。そして、アービタB30に対してバスリクエスト信号を送出するが、バスが他の制御部によって使用されている間は許可信号W_GNTが1にならない。従って、最大ステップS9においてW_INTにプリセットされた回数だけW_GNTが1になるのを待つ。これは、無限に待っていると、ステップS3〜S7の読み出し処理が実行されず、FIFO−2のデータが無くなってしまうことを防止するためである。
【0032】
W_GNTが1になると、ステップS15に移行し、W_INTにプリセットされた回数だけ画像データがRAMバッファ24に書き込まれる。そして、W_INTが0になるとステップS19からステップS1に戻り、R_CTRが0でなければステップS2に移行して、今度は読み出し処理を実行する。従って、R_CTRおよびW_CTRが共に0でない場合には、読み出しサイクルと書き込みサイクルが交互に実行され、各サイクルにおける転送データ数はそれぞれ任意に設定可能である。
【0033】
図4は、各転送サイクルにおける信号波形を示す波形図である。図4の左側はRAMバッファ24への書き込みサイクル(1)を示しており、この場合には、上部に示したローカルバスBと下部に示したローカルバスAとが同期して動作する。まず、制御部28はバスブリッジ20に対してバッファリードイネーブル信号BUF_RE(負論理:0がアクティブ、他の信号も同じ)を送出し、クロック信号CLKに同期してバスブリッジ20内のバッファからデータが順にローカルバスBに出力される。制御部28はゲートイネーブル信号GATE_ENによりゲート回路22を導通状態にして、バスB21上のデータをバスA23に出力する。またRAMバッファ24に対してWE、CS信号および書き込みアドレス信号を発生し、バスA上のデータを書き込む。この例では1回の書き込みサイクルにおいて4個のデータを書き込んでいるが、個数はR_INTに任意に設定可能である。
【0034】
図4右側は、RAMバッファ24からの読み出しサイクル(2)およびDMA書き込みサイクル(4)の動作を示している。この場合、制御部28はゲートイネーブル信号GATE_ENによりゲート回路22を非導通状態にして、バスB21とバスA23とを切り離す。従って、これらの動作(2)および(4)は同時に実行可能である。なおスレーブ書き込みサイクル(3)も読み出しサイクル(2)と同時に実行可能である。
【0035】
以上、実施例を説明したが、以下に示すような変形例も考えられる。図6はゲート回路22の第2の実施例を示す回路図である。プリンタ等においては、例えば両面印刷を行う場合等に、画像を180度回転させる必要がある。この場合に画像データの配列を逆転させると共に各画像データ内の画素配列も反転させる必要がある。ゲート回路の第2の実施例はこの画素データ配列反転手段をゲート回路22に備えたものである。
【0036】
図6において、バスレシーバ30によって受信されたローカルバスB21上の画像データは、そのままの配列でセレクタ31の入力端子群Aに接続されると共に、最上位ビットが最下位ビット位置に、また最下位ビットが最上位ビット位置に来るように並べ替えられてセレクタ31の入力端子群Bに接続される。セレクタ31は、制御部28から端子Cに入力される制御信号が0であれば端子群Aのデータを出力端子群Oに出力し、1であれば端子群Bのデータを出力する。トライステートバスドライバ回路32は、制御部からの制御信号に基づき、セレクタ31から出力されるデータをローカルバスAに出力する。
【0037】
このような回路により、各画像データ内のビット配列が反転可能となり、例えばCPU1の制御によってRAM3内の画像データを並べ替えれば、180度反転した画像データが得られる。あるいは、RAMバッファ24に画像データが1ページ全て格納可能であれば、RAMバッファ24への書き込み順序と読み出し順序とを逆にすることによってデータの並べ替えを行ってもよい。
【0038】
以上詳細に説明したように、本実施形態の画像処理装置においては、ゲート回路22にて、ローカルバスA23とローカルバスB21とを、分離することができる。このため、RAMバッファ24からFIFO−2へのデータの転送と、FIFO−1に格納された圧縮データのRAM3への転送を並行して行うことができ、圧縮処理部26を停止させることなく、あるいは短い停止期間で稼働させることができるので、従来に比べて圧縮処理速度を大幅に向上することができる。また、本実施形態の画像処理装置においては、例えばインターバルカウンタの値をそれぞれ調整することにより、RAMバッファ24へのデータ入力速度とFIFO−25へのデータ転送速度とをそれぞれ独立して制御可能であり、圧縮処理部における処理を滞りなく実行するように制御することが可能である。RAMバッファ24への書き込み処理時にはアービタBの許可が必要となるが、例えばバスリクエストを先行して送出することにより、待ち時間を短縮することができる。
【0039】
なお、実施例としては、画像処理として圧縮処理を行う例を開示したが、例えば伸張処理やその他の任意の画像処理に本発明を適用可能である。
【0040】
【発明の効果】
以上述べたように、本発明においては、画像処理装置において、分離手段を設けて、システムバスと緩衝記憶手段との接続を切り離すことができるようにしたので、前記緩衝記憶手段からの圧縮あるいは伸張処理を行う画像処理手段へのデータの入力と、該画像処理後のデータを含むデータの、前記システムバスに対する入出力とを並行動作させることができるようになり、該画像処理手段の稼働効率を従来のそれに比べて、大幅に向上することができる。このため、画像処理装置を高速度で稼動させることができるようになる。また、画像処理装置の速度がプリンタへの転送速度のネックにならないので、全体として印刷速度の高速化が可能となるという効果がある。
【図面の簡単な説明】
【図1】図2の圧縮装置7の構成を示すブロック図である。
【図2】本発明の一実施形態であるプリンタ制御装置のシステム構成例を示すブロック図である。
【図3】制御部28の構成を示すブロック図である。
【図4】各転送サイクルにおける信号波形を示す波形図である。
【図5】DMA読み出し制御部34、RAM読み出し制御部35、アービタA31の動作を示すフローチャートである。
【図6】ゲート回路22の第2の実施例を示す回路図である。
【図7】RAMバッファ24の動作を示すタイムチャートである。
【図8】プリンタ制御装置の従来のシステム構成例を示すブロック図である。
【符号の説明】
1…CPU、2…ROM、3…RAM、4…ディスク装置、5…プリンタ、6…伸張装置、7…圧縮装置、8…LANインターフェース、9…システムバス、10…LAN、20…バスブリッジ、21…ローカルバスB、22…ゲート回路、23…ローカルバスA、24…RAMバッファ、25…FIFO−2、26…圧縮処理部、27…FIFO−1、28…制御部[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an image processing apparatus such as a printer, a copying machine, a facsimile apparatus, and more particularly to an image processing apparatus having a high-speed image processing function.
[0002]
[Prior art]
In conventional image processing apparatuses, especially in recent printers, the resolution and printing speed have been improved. In connecting the printer to the system bus of the image data input / output device, data transfer speed is one of the most important factors. Has become. Therefore, to realize high-speed printing, it is necessary to increase the data transfer speed including image processing.
[0003]
As a method for improving the data transfer speed, for example, Japanese Patent Application Laid-Open No. 4-256186 discloses a method in which a control device compresses data and transfers the data to a printer to reduce the amount of transferred data. In this method, a compression circuit in the control device locally reads out image data stored in an image memory, compresses the image data, and outputs it to a printer. On the printer side, the received compressed image data is expanded by an expansion circuit and printed out.
[0004]
[Problems to be solved by the invention]
In the conventional method as described above, the maximum transfer speed to the printer is determined by the time required for the compression process because there is no scheme for improving the transfer speed in the compression process itself.
[0005]
As a method for compressing data to be sent to a printer, a method shown in FIG. 8 can be generally considered. A
[0006]
The operation of this method will be described. During the data reading period from the
[0007]
However, during the period of writing data to the
[0008]
SUMMARY OF THE INVENTION It is an object of the present invention to provide an image processing apparatus capable of solving the above-mentioned problems of the related art and performing high-speed image processing.
[0009]
[Means for Solving the Problems]
In order to achieve the above object, according to the present invention, in an image processing apparatus, a system bus, a buffer storage unit for temporarily holding image data input from the system bus, and a buffer read from the buffer storage unit Image processing means for inputting data and performing compression or decompression processing; data transfer between the respective means so that input of data to the image processing means and input / output of data to / from the system bus operate in parallel. And a separating means controlled by the control means and disconnecting the connection between the system bus and the buffer memory means at least during the parallel operation.
[0010]
According to the present invention, with the above-described configuration, input of data to the image processing unit and input and output of data to and from the system bus can be performed in parallel, and the operating efficiency of the image processing unit is reduced. It can be greatly increased. As a result, the processing speed of the image processing device can be improved.
[0011]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, the present invention will be described in detail with reference to the drawings. FIG. 2 is a block diagram showing an example of a system configuration of a printer control device which is an embodiment of the image processing device of the present invention.
The
[0012]
The
[0013]
FIG. 1 is a block diagram showing a configuration of the
[0014]
The gate circuit 22 serving as a separating unit is a tri-state bus driver connected between the local bus B21 and the local bus A23 and outputting data on the local bus B21 to the local bus A23 under the control of the
[0015]
The compression processing unit 26, which is an image processing unit, reads out image data from the FIFO-2 (25), performs compression processing using a general compression algorithm based on a method instructed by the
[0016]
FIG. 3 is a block diagram illustrating a configuration of the
[0017]
The arbiter B30 is a circuit that arbitrates contention for access to the local bus B21, receives bus request signals from a plurality of
[0018]
The slave write
[0019]
The DMA write
[0020]
The DMA read
[0021]
The RAM read control unit 35 reads image data from the
[0022]
FIG. 5 is a flowchart showing operations (processes) of the DMA read
[0023]
If the determination result in step S1 is negative (there is data), the process proceeds to step S2, and a predetermined value is preset in an interval counter R_INT for counting the number of data transferred in one read cycle. For example, if the number of data transferred in one read cycle is 4 bytes, a
[0024]
In step S4, R_CTR and R_INT are each decremented by one. Here, the read address is also sequentially updated (+1) and reset when it reaches the maximum value. In step S5, it is determined whether or not R_CTR is 0. If the result is affirmative, the process proceeds to step S8, but if negative, the process proceeds to step S6. In step S6, it is determined whether or not R_INT is 0. If the result is affirmative, the process proceeds to step S8, but if negative, the process proceeds to step S7. In step S7, it is determined whether or not there is a free space in the FIFO-2. If the result is negative, the process proceeds to step S8. If the result is affirmative, the process returns to step S3 to return the data from the
[0025]
In step S8, it is determined whether the write counter W_CTR in the DMA
[0026]
In step S10, it is determined whether or not the bus use permission signal W_GNT from the arbiter B30 is 1 (permitted). If the result is affirmative, the process proceeds to step S15; Move to S11. In step S11, W_INT is decremented by one, and in step S12, it is determined whether W_INT is 0. If the result is negative, the process returns to step S10, but if the result is positive, the process proceeds to step S1. I do. The processing of steps S10 to S12 is a processing for waiting for a use permission signal from the arbiter B. When the W_GNT signal becomes 1, the flow immediately proceeds to the write processing of step S15 and thereafter.
[0027]
In step S13, it is determined whether W_CTR is 0. If the determination result is affirmative, the process returns to step S1, but if negative, the process proceeds to step S14. In step S14, it is determined whether or not W_GNT is 1, and if affirmative, the process proceeds to step S15. In step S15, a predetermined value (for example, 4) is preset in the interval counter W_INT. In step S16, the DMA read
[0028]
In step S17, W_CTR and W_INT are each decremented by one. Here, the write address is also sequentially updated (+1) and reset when it reaches the maximum value. In step S18, it is determined whether or not W_CTR is 0. If the result is affirmative, the process proceeds to step S1, but if negative, the process proceeds to step S19. In step S19, it is determined whether or not W_INT is 0. If the result is affirmative, the process proceeds to step S1, but if negative, the process proceeds to step S20. In step S20, it is determined whether there is no data to be transferred to the buffer in the
[0029]
By performing the above processing, when there is data to be transferred, the data is transferred collectively by a preset number in each interval counter, and when there is both a write request and a read request, the data is alternately transmitted. It is processed.
[0030]
FIG. 7 is a time chart showing the operation of the
[0031]
FIG. 7B shows a process in the case where a value is set to W_CTR from the
[0032]
When W_GNT becomes 1, the process proceeds to step S15, and the image data is written to the
[0033]
FIG. 4 is a waveform diagram showing signal waveforms in each transfer cycle. The left side of FIG. 4 shows a write cycle (1) to the
[0034]
The right side of FIG. 4 shows the operation of the read cycle (2) from the
[0035]
The embodiments have been described above, but the following modified examples are also conceivable. FIG. 6 is a circuit diagram showing a second embodiment of the gate circuit 22. In a printer or the like, for example, when performing double-sided printing, it is necessary to rotate an image by 180 degrees. In this case, it is necessary to reverse the arrangement of the image data and the pixel arrangement in each image data. In the second embodiment of the gate circuit, this pixel data array inverting means is provided in the gate circuit 22.
[0036]
6, the image data on the local bus B21 received by the
[0037]
With such a circuit, the bit arrangement in each image data can be inverted. For example, if the image data in the
[0038]
As described in detail above, in the image processing apparatus of the present embodiment, the local bus A23 and the local bus B21 can be separated by the gate circuit 22. For this reason, the transfer of data from the
[0039]
As an embodiment, an example in which compression processing is performed as image processing is disclosed, but the present invention is applicable to, for example, decompression processing and other arbitrary image processing.
[0040]
【The invention's effect】
As described above, according to the present invention, in the image processing apparatus, the separation unit is provided so that the connection between the system bus and the buffer storage unit can be disconnected. The input of data to the image processing means for performing processing and the input and output of data including the data after the image processing to and from the system bus can be operated in parallel, and the operating efficiency of the image processing means can be reduced. It can be greatly improved as compared with the conventional one. Therefore, the image processing apparatus can be operated at a high speed. Further, since the speed of the image processing apparatus does not become a bottleneck in the transfer speed to the printer, there is an effect that the printing speed can be increased as a whole.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of a
FIG. 2 is a block diagram illustrating a system configuration example of a printer control device according to an embodiment of the present invention.
FIG. 3 is a block diagram showing a configuration of a
FIG. 4 is a waveform chart showing signal waveforms in each transfer cycle.
FIG. 5 is a flowchart showing operations of a DMA read control unit, a RAM read control unit 35, and an arbiter A31.
FIG. 6 is a circuit diagram showing a second embodiment of the gate circuit 22.
FIG. 7 is a time chart showing the operation of the
FIG. 8 is a block diagram illustrating a conventional system configuration example of a printer control device.
[Explanation of symbols]
DESCRIPTION OF
Claims (13)
システムバスと、
該システムバスから入力される画像データを一時的に保持する緩衝記憶手段と、
前記緩衝記憶手段から読み出されたデータを入力し、圧縮あるいは伸張処理を行う画像処理手段と、
前記画像処理手段へのデータの入力と、前記システムバスに対するデータの入出力とが並行動作するように、前記各手段間のデータ転送を制御する制御手段と、
前記制御手段によって制御され、少なくとも前記並行動作時には前記システムバスと前記緩衝記憶手段との接続を切り離す分離手段とを備えたことを特徴とする画像処理装置。In an image processing apparatus in which image data is compressed and stored, decompressed and output to a printing device,
A system bus,
Buffer storage means for temporarily holding image data input from the system bus;
Image processing means for inputting data read from the buffer storage means and performing compression or expansion processing,
Control means for controlling data transfer between the means, so that input of data to the image processing means and input and output of data to and from the system bus operate in parallel;
An image processing apparatus controlled by the control unit, comprising: a separating unit that disconnects the connection between the system bus and the buffer storage unit at least during the parallel operation.
前記制御手段は、画像データを前記システムバスから前記緩衝記憶手段に転送する時には、前記分離手段を不作動にし、該システムバスと緩衝記憶手段とを接続するようにすることを特徴とする画像処理装置。The image processing apparatus according to claim 1,
When transferring the image data from the system bus to the buffer storage unit, the control unit deactivates the separation unit and connects the system bus to the buffer storage unit. apparatus.
前記分離手段の作動時に、前記システムバスに入出力するデータは、前記画像処理手段によって画像処理されたデータを含むことを特徴とする画像処理装置。The image processing apparatus according to claim 1,
The image processing apparatus according to claim 1, wherein the data input / output to / from the system bus when the separation unit is operated includes data processed by the image processing unit.
システムバスと、
該システムバスに接続されるローカルバスと、
該システムバスから送出される被圧縮データまたは被伸長データを記憶するローカルバス上に設けられた緩衝記憶手段と、
該緩衝記憶手段から読み出された被圧縮データまたは被伸長データを圧縮または伸長する画像処理手段と、
前記システムバスと前記緩衝記憶手段との間の前記ローカルバスの接続を分離する分離手段と、
該分離手段、および前記システムバスから送出される被圧縮データまたは被伸長データを前記ローカルバスを介して前記システムバスへ転送する転送動作を制御する制御手段と、
を備えたことを特徴とする画像処理装置。In an image processing apparatus in which image data is compressed and stored, decompressed and output to a printing device,
A system bus,
A local bus connected to the system bus;
Buffer storage means provided on a local bus for storing compressed data or decompressed data transmitted from the system bus;
Image processing means for compressing or expanding compressed data or decompressed data read from the buffer storage means;
Separating means for separating said local bus connection between the buffer storage means and said system bus,
Control means for controlling a transfer operation of transferring the compressed data or the decompressed data transmitted from the system bus to the system bus via the local bus;
An image processing apparatus comprising:
前記制御手段は、前記システムバスから前記緩衝記憶手段への画像データ転送時には、該緩衝記憶手段と前記システムバスとを接続すると共に、該緩衝記憶手段から前記画像処理手段への画像データ出力時には、該緩衝記憶手段と前記システムバスとの接続を分離するように前記分離手段を制御するようにしたことを特徴とする画像処理装置。The image processing apparatus according to claim 4,
Wherein, when the image data transfer from the system bus to the buffer memory means is adapted to connect the system bus and the buffer memory means, when the image data output from the buffer storage unit to the image processing means, the image processing apparatus being characterized in that so as to control the separation means to isolate the connection between the system bus and the buffer memory means.
前記制御手段は、前記緩衝記憶手段から前記圧縮伸長処理手段への画像データ出力時に、前記画像処理手段で処理された画像データの前記システムバスへの転送を並行処理するようにしたことを特徴とする画像処理装置。The image processing apparatus according to claim 4,
Wherein said control means includes a wherein when buffering the image data output from the storage means to the compression and expansion processing means, and adapted to concurrently process the transfer to the system bus of the image data processed by said image processing means Image processing device.
前記制御手段は、前記緩衝記憶手段から前記画像処理手段への画像データ出力時に、前記システムバスから前記制御手段へのデータの転送を並行処理するようにしたことを特徴とする画像処理装置。The image processing apparatus according to claim 4,
The image processing apparatus according to claim 1, wherein said control means performs parallel processing of data transfer from said system bus to said control means when outputting image data from said buffer storage means to said image processing means.
前記制御手段は、前記緩衝記憶手段から、被圧縮データまたは被伸長データを反転しながら読み出し、前記画像処理手段へ出力するようにしたことを特徴とする画像処理装置。The image processing apparatus according to claim 4,
An image processing apparatus, wherein the control means reads out the compressed data or the decompressed data from the buffer storage means while inverting the data and outputs the data to the image processing means.
前記緩衝記憶手段はSRAMで構成されていることを特徴とする画像処理装置。The image processing apparatus according to claim 4,
An image processing apparatus according to claim 1, wherein said buffer storage means is constituted by an SRAM.
前記画像処理手段の前段と後段に、FIFOを設けたことを特徴とする画像処理装置。The image processing apparatus according to claim 4,
The front and rear stages of the image processing unit, an image processing apparatus characterized in that a FIFO.
前記分離手段は、前記ローカルバスを、前記システムバスに接続される第1のローカルバスと、前記緩衝記憶手段および前記画像処理手段に接続される第2のローカルバスとに分離することを特徴とする画像処理装置。The image processing apparatus according to claim 4,
The separation unit separates the local bus into a first local bus connected to the system bus and a second local bus connected to the buffer unit and the image processing unit. Image processing device.
前記分離手段はデータ配列反転手段を含むようにしたことを特徴とする画像処理装置。The image processing apparatus according to claim 4,
An image processing apparatus according to claim 1, wherein said separating means includes a data array inverting means.
前記分離手段はゲート回路により構成したことを特徴とする画像処理装置。The image processing apparatus according to claim 4,
An image processing apparatus according to claim 1, wherein said separating means is constituted by a gate circuit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP03285497A JP3605987B2 (en) | 1996-01-31 | 1997-01-31 | Image processing device |
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3735396 | 1996-01-31 | ||
JP8-37353 | 1996-01-31 | ||
JP03285497A JP3605987B2 (en) | 1996-01-31 | 1997-01-31 | Image processing device |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH09297665A JPH09297665A (en) | 1997-11-18 |
JP3605987B2 true JP3605987B2 (en) | 2004-12-22 |
Family
ID=26371442
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP03285497A Expired - Fee Related JP3605987B2 (en) | 1996-01-31 | 1997-01-31 | Image processing device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3605987B2 (en) |
-
1997
- 1997-01-31 JP JP03285497A patent/JP3605987B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JPH09297665A (en) | 1997-11-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4065503B2 (en) | Image processing apparatus, image input / output apparatus, scaling process method, and memory control method | |
US6384832B1 (en) | Image processing apparatus and image processing system using the apparatus | |
US20020184453A1 (en) | Data bus system including posted reads and writes | |
US5428763A (en) | Digital data apparatus for transferring data between a byte-wide digital data bus and a four byte-wide digital data bus | |
EP0844566B1 (en) | Interface apparatus for adapting data width to system bus width | |
US5963717A (en) | Image processing apparatus | |
KR100348545B1 (en) | Communication dma device | |
JP3605987B2 (en) | Image processing device | |
JPS6339072A (en) | Data processing system | |
JP3571195B2 (en) | Host interface circuit of image forming apparatus | |
US6584538B2 (en) | Information processing system | |
JPS60124257A (en) | Signal processor | |
EP0382342B1 (en) | Computer system DMA transfer | |
JP2721458B2 (en) | Channel device and frame transmitting / receiving method thereof | |
JP2002176464A (en) | Network interface device | |
JPH09179813A (en) | Dma transfer device | |
JP3585052B2 (en) | Interface control device | |
JP2004345260A (en) | Image output apparatus | |
JP2000295295A (en) | Buffer memory for block data transfer and serial data transmission reception system | |
JP2724797B2 (en) | Direct memory access system | |
JP2567428B2 (en) | Data transfer rate converter | |
JP2820054B2 (en) | Bus interface device | |
JP2642087B2 (en) | Data transfer processing mechanism between main storage devices | |
JPH0581165A (en) | Data transfer circuit | |
JPH11179975A (en) | Color printer control device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20040108 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20040302 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20040428 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20040914 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20040927 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20071015 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081015 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091015 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101015 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111015 Year of fee payment: 7 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121015 Year of fee payment: 8 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121015 Year of fee payment: 8 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131015 Year of fee payment: 9 |
|
S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
S802 | Written request for registration of partial abandonment of right |
Free format text: JAPANESE INTERMEDIATE CODE: R311802 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
LAPS | Cancellation because of no payment of annual fees |