JPH11306130A - Dma controller and data processing method thereof, and print controller and data processing method thereof - Google Patents

Dma controller and data processing method thereof, and print controller and data processing method thereof

Info

Publication number
JPH11306130A
JPH11306130A JP10964298A JP10964298A JPH11306130A JP H11306130 A JPH11306130 A JP H11306130A JP 10964298 A JP10964298 A JP 10964298A JP 10964298 A JP10964298 A JP 10964298A JP H11306130 A JPH11306130 A JP H11306130A
Authority
JP
Japan
Prior art keywords
memory
access
data
cpu
dma
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
JP10964298A
Other languages
Japanese (ja)
Inventor
Tadashi Kawaguchi
匡 川口
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP10964298A priority Critical patent/JPH11306130A/en
Publication of JPH11306130A publication Critical patent/JPH11306130A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To efficiently process two-way access between a CPU and a DMA avoiding an overrun in data transfer. SOLUTION: According to the analyzed state of inputted data, the access ratio of access to a RAM 2 from a CPU 1 and a direct memory access is varied by allowing a selector 102 to select one of signals generated by a counter 101 and the access to the memory from the CPU 1 and direct memory access are attributed at the varying access ratio. Consequently, the access ratio of the CPU access to the memory and direct memory access can dynamically be varied according to the inputted data and the access time of the continuous DMA can freely be adjusted according to the input data.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、複数ソースからの
ダイレクトメモリアクセス(DMA)とCPUアクセス
及びその他のメモリへのアクセスを一括して調停するD
MA制御装置およびDMA制御装置のデータ処理方法お
よび印刷制御装置および印刷制御装置のデータ処理方法
およびコンピュータが読み出し可能なプログラムを格納
した記憶媒体に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a D which collectively arbitrates direct memory access (DMA), CPU access and access to other memories from a plurality of sources.
The present invention relates to a data processing method of an MA control device and a DMA control device, a print control device, a data processing method of a print control device, and a storage medium storing a computer-readable program.

【0002】[0002]

【従来の技術】従来、複数ソースからのダイレクトメモ
リアクセス(DMA)とCPUアクセス及びその他のメ
モリへのアクセスを一括して調停するDMA制御装置
は、複数ソースからのDMA同志で調停を行った上で、
バスを専有する権利を獲得したソースに対するDMAリ
クエストとCPUその他のリクエストを再度調停する
か、もしくは、全てのDMAとCPU、その他のリクエ
ストをフラットに並べてそれを一義的にまとめて調停す
るよう構成されている。
2. Description of the Related Art Conventionally, a DMA controller which arbitrates direct memory access (DMA) from a plurality of sources, CPU access, and access to other memories collectively has to perform arbitration between DMAs from a plurality of sources. so,
It is configured to re-arbitrate the DMA request and the CPU and other requests for the source that has acquired the right to occupy the bus, or to arrange all the DMA, CPU and other requests in a flat manner and collectively unify them. ing.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上記従
来例ではいずれの場合も、最上位の階層でDMAリクエ
ストとCPUリクエストを調停する際、ハードウエアで
決定された規則に基づき固定されたシーケンスでしか動
作しないため、ホストコンピュータ等の外来機器から複
雑なデータが圧縮された形で転送されてきて、そのデー
タを伸長、展開、ビデオ出力する時に、頻繁にDMAリ
クエストが発生して正常な印字データが保証できない現
象(オーバーラン)に陥ったら、それを回避することは
できず、解像度を落して再転送するか、もしくは圧縮さ
れないデータの形で再転送するしかないという問題点が
あった。
However, in each of the above-mentioned conventional examples, when arbitrating a DMA request and a CPU request in the highest hierarchy, only a fixed sequence based on a rule determined by hardware is used. Since it does not operate, complex data is transferred in a compressed form from an external device such as a host computer, and when the data is expanded, expanded, and video output, a frequent DMA request occurs and normal print data is generated. If a phenomenon (overrun) occurs that cannot be guaranteed, it cannot be avoided, and there is a problem that the resolution must be reduced and retransmitted, or retransmitted in the form of uncompressed data.

【0004】本発明は上記の問題点を解消するためにな
されたもので、本発明の目的は、メモリに対するCPU
からのアクセスとダイレクトメモリアクセスとが入力さ
れるデータの解析状態に基づいて変動するアクセス比率
で調停することにより、メモリに対するデータを伸長,
展開,ビデオ出力等のデータ転送要求時にDMA要求が
頻発する事態が発生しても、正常に印刷データを転送し
て、転送エラーとなる、いわゆるオーバランの発生を回
避してCPUとDMAとの双方のアクセスを効率的に処
理できるメモリアクセス環境を自在に整備することがで
きるDMA制御装置およびDMA制御装置のデータ処理
方法および印刷制御装置および印刷制御装置のデータ処
理方法およびコンピュータが読み出し可能なプログラム
を格納した記憶媒体を提供することにある。
The present invention has been made to solve the above problems, and an object of the present invention is to provide a CPU for a memory.
Arbitration at the access ratio that fluctuates based on the analysis state of the input data between the access from the memory and the direct memory access, thereby expanding the data to the memory.
Even if a DMA request frequently occurs at the time of a data transfer request such as expansion or video output, the print data is normally transferred, and a transfer error, that is, a so-called overrun is avoided to prevent both the CPU and the DMA. Control device, a data processing method of the DMA control device, a print control device, a data processing method of the print control device, and a computer-readable program capable of freely preparing a memory access environment capable of efficiently processing access to the printer. It is an object of the present invention to provide a storage medium having stored therein.

【0005】[0005]

【課題を解決するための手段】本発明に係る第1の発明
は、メモリに対するCPUからのCPUアクセスと複数
のソースからのダイレクトメモリアクセスとを制御する
DMA制御装置であって、前記メモリに対するCPUア
クセス回数とダイレクトメモリアクセス回数とをカウン
トして前記メモリに対するCPUアクセスとダイレクト
メモリアクセスとのアクセス比率が異なるように優先順
位を設定する複数の優先順位切換え信号を生成するカウ
ンタ手段と、前記メモリに記憶されるデータを解析する
解析手段と、前記解析手段による前記データの解析結果
に基づいて前記カウンタ手段により生成される複数の優
先順位切換え信号中から1つの優先順位切換え信号を選
択する選択手段と、前記選択手段により選択された1つ
の優先順位切換え信号に基づいてCPUアクセスとダイ
レクトメモリアクセスとのいずれか一方を有効状態と
し、他方を無効状態として前記メモリに対するCPUア
クセスとダイレクトメモリアクセスとを調停する調停手
段とを有するものである。
According to a first aspect of the present invention, there is provided a DMA control apparatus for controlling CPU access to a memory from a CPU and direct memory access from a plurality of sources. Counter means for counting a number of accesses and a number of direct memory accesses and generating a plurality of priority order switching signals for setting priorities so that an access ratio between CPU access and direct memory access to the memory is different; Analysis means for analyzing the stored data; and selection means for selecting one priority switching signal from a plurality of priority switching signals generated by the counter based on a result of the analysis of the data by the analysis means. Switching of one priority selected by the selection means Those having an arbitration unit as either the valid state of the CPU access and direct memory access, arbitrates the CPU access and direct memory access to the memory and the other as an invalid state based on the item.

【0006】本発明に係る第2の発明は、前記解析手段
は、前記メモリに記憶されるデータの容量を解析するも
のである。
According to a second aspect of the present invention, the analysis means analyzes the capacity of data stored in the memory.

【0007】本発明に係る第3の発明は、前記解析手段
は、前記メモリに記憶されるデータの展開処理時間を解
析するものである。
In a third aspect according to the present invention, the analysis means analyzes a time required for developing data stored in the memory.

【0008】本発明に係る第4の発明は、前記データ
は、所定のページ単位またはバンド単位に基づいて前記
メモリに記憶されるものである。
According to a fourth aspect of the present invention, the data is stored in the memory based on a predetermined page unit or band unit.

【0009】本発明に係る第5の発明は、前記データ
は、イメージデータまたはテキストデータとするもので
ある。
According to a fifth aspect of the present invention, the data is image data or text data.

【0010】本発明に係る第6の発明は、所定の通信媒
体を介して入力されるデータに基づいて印刷部が印刷可
能な印刷データをメモリ上に展開処理する印刷制御装置
であって、前記印刷データの解析結果に基づいて前記メ
モリに対して異なるソースから発生する第1のメモリア
クセスとCPUから発生する第2のメモリアクセスとが
異なる比率で優先するように前記第1のメモリアクセス
と前記第2のメモリアクセスとを調停する調停手段を有
するものである。
According to a sixth aspect of the present invention, there is provided a print control apparatus for developing print data printable by a printing unit on a memory based on data input through a predetermined communication medium, The first memory access and the second memory access are performed such that a first memory access generated from a different source and a second memory access generated from a CPU have a different priority with respect to the memory based on a print data analysis result. It has arbitration means for arbitrating the second memory access.

【0011】本発明に係る第7の発明は、前記調停手段
は、メモリに対するCPUからのCPUアクセスと複数
のソースからのダイレクトメモリアクセスとのアクセス
時間を異なる比率で調停するものである。
According to a seventh aspect of the present invention, the arbitration means arbitrates the access time between the CPU access to the memory and the direct memory access from a plurality of sources at different ratios.

【0012】本発明に係る第8の発明は、前記調停手段
は、前記メモリに対するCPUアクセス回数とダイレク
トメモリアクセス回数とをカウントして前記メモリに対
するCPUアクセスとダイレクトメモリアクセスとのア
クセス比率が異なるように優先順位を設定する複数の優
先順位切換え信号を生成するカウンタ手段と、前記メモ
リに記憶されるデータを解析する解析手段と、前記解析
手段による前記データの解析結果に基づいて前記カウン
タ手段により生成される複数の優先順位切換え信号中か
ら1つの優先順位切換え信号を選択する選択手段とを有
し、前記選択手段により選択された1つの優先順位切換
え信号に基づいてCPUアクセスとダイレクトメモリア
クセスとのいずれか一方を有効状態とし、他方を無効状
態として前記メモリに対するCPUアクセスとダイレク
トメモリアクセスとを調停するものである。
In an eighth invention according to the present invention, the arbitration means counts the number of CPU accesses to the memory and the number of direct memory accesses so that an access ratio between the CPU access and the direct memory access to the memory is different. Counter means for generating a plurality of priority order switching signals for setting priorities; analysis means for analyzing data stored in the memory; and generation means for the counter means based on an analysis result of the data by the analysis means. Selecting means for selecting one priority switching signal from a plurality of priority switching signals to be executed, and performing a CPU access and a direct memory access based on the one priority switching signal selected by the selecting means. One of the memos is set to the valid state and the other to the invalid state. It is intended to arbitrate the CPU access and direct memory access to.

【0013】本発明に係る第9の発明は、前記解析手段
は、前記メモリに記憶されるデータの容量を解析するも
のである。
In a ninth aspect according to the present invention, the analysis means analyzes the capacity of data stored in the memory.

【0014】本発明に係る第10の発明は、前記解析手
段は、前記メモリに記憶されるデータの展開処理時間を
解析するものである。
[0014] In a tenth aspect according to the present invention, the analysis means analyzes a time required for developing data stored in the memory.

【0015】本発明に係る第11の発明は、前記データ
は、所定のページ単位またはバンド単位に基づいて前記
メモリに記憶されるものである。
In an eleventh aspect according to the present invention, the data is stored in the memory based on a predetermined page unit or band unit.

【0016】本発明に係る第12の発明は、前記データ
は、イメージデータまたはテキストデータとするもので
ある。
According to a twelfth aspect of the present invention, the data is image data or text data.

【0017】本発明に係る第13の発明は、メモリに対
するCPUからのCPUアクセスと複数のソースからの
ダイレクトメモリアクセスとを制御するDMA制御装置
のデータ処理方法であって、前記メモリに対するCPU
アクセス回数とダイレクトメモリアクセス回数とをカウ
ントして前記メモリに対するCPUアクセスとダイレク
トメモリアクセスとのアクセス比率が異なるように優先
順位を設定する複数の優先順位切換え信号を生成するカ
ウンタ工程と、前記メモリに記憶されるデータを解析す
る解析工程と、前記解析工程による前記データの解析結
果に基づいて前記カウンタ手段により生成される複数の
優先順位切換え信号中から1つの優先順位切換え信号を
選択する選択工程と、前記選択工程により選択された1
つの優先順位切換え信号に基づいてCPUアクセスとダ
イレクトメモリアクセスとのいずれか一方を有効状態と
し、他方を無効状態として前記メモリに対するCPUア
クセスとダイレクトメモリアクセスとを調停する調停工
程とを有するものである。
According to a thirteenth aspect of the present invention, there is provided a data processing method of a DMA control device for controlling CPU access to a memory from a CPU and direct memory access from a plurality of sources.
A counter step of counting the number of accesses and the number of direct memory accesses and generating a plurality of priority switching signals for setting priorities so that the access ratio between CPU access and direct memory access to the memory is different; An analyzing step of analyzing the stored data; and a selecting step of selecting one priority switching signal from a plurality of priority switching signals generated by the counter means based on the analysis result of the data in the analysis step. , 1 selected in the selection step
An arbitration step of arbitrating the CPU access and the direct memory access to the memory with one of the CPU access and the direct memory access being enabled and the other being disabled based on the two priority switching signals. .

【0018】本発明に係る第14の発明は、前記解析工
程は、前記メモリに記憶されるデータの容量を解析する
ものである。
According to a fourteenth aspect of the present invention, in the analyzing step, the capacity of data stored in the memory is analyzed.

【0019】本発明に係る第15の発明は、前記解析工
程は、前記メモリに記憶されるデータの展開処理時間を
解析するものである。
According to a fifteenth aspect of the present invention, in the analyzing step, the time required for developing the data stored in the memory is analyzed.

【0020】本発明に係る第16の発明は、前記データ
は、所定のページ単位またはバンド単位に基づいて前記
メモリに記憶されるものである。
According to a sixteenth aspect of the present invention, the data is stored in the memory based on a predetermined page unit or band unit.

【0021】本発明に係る第17の発明は、前記データ
は、イメージデータまたはテキストデータとするもので
ある。
According to a seventeenth aspect of the present invention, the data is image data or text data.

【0022】本発明に係る第18の発明は、所定の通信
媒体を介して入力されるデータに基づいて印刷部が印刷
可能な印刷データをメモリ上に展開処理する印刷制御装
置のデータ処理方法であって、前記印刷データの解析結
果に基づいて前記メモリに対して異なるソースから発生
する第1のメモリアクセスとCPUから発生する第2の
メモリアクセスとが異なる比率で優先するように前記第
1のメモリアクセスと前記第2のメモリアクセスとを調
停する調停工程を有するものである。
According to an eighteenth aspect of the present invention, there is provided a data processing method of a print control apparatus for developing print data printable by a printing unit on a memory based on data input via a predetermined communication medium. The first memory access generated from a different source to the memory and the second memory access generated from the CPU based on the analysis result of the print data are prioritized at different ratios. An arbitration step for arbitrating between the memory access and the second memory access is provided.

【0023】本発明に係る第19の発明は、前記調停工
程は、メモリに対するCPUからのCPUアクセスと複
数のソースからのダイレクトメモリアクセスとのアクセ
ス時間を異なる比率で調停するものである。
According to a nineteenth aspect of the present invention, in the arbitration step, arbitration is performed at different ratios between the access time of the CPU access to the memory and the direct memory access from a plurality of sources.

【0024】本発明に係る第20の発明は、前記調停工
程は、前記メモリに対するCPUアクセス回数とダイレ
クトメモリアクセス回数とをカウントして前記メモリに
対するCPUアクセスとダイレクトメモリアクセスとの
アクセス比率が異なるように優先順位を設定する複数の
優先順位切換え信号を生成するカウンタ工程と、前記メ
モリに記憶されるデータを解析する解析工程と、前記解
析工程による前記データの解析結果に基づいて前記カウ
ンタ工程により生成される複数の優先順位切換え信号中
から1つの優先順位切換え信号を選択する選択工程とを
有し、前記選択工程により選択された1つの優先順位切
換え信号に基づいてCPUアクセスとダイレクトメモリ
アクセスとのいずれか一方を有効状態とし、他方を無効
状態として前記メモリに対するCPUアクセスとダイレ
クトメモリアクセスとを調停するものである。
According to a twentieth aspect of the present invention, in the arbitration step, the number of CPU accesses to the memory and the number of direct memory accesses are counted so that an access ratio between the CPU access and the direct memory access to the memory is different. A counter process for generating a plurality of priority switching signals for setting priorities; an analysis process for analyzing data stored in the memory; and a counter process for generating data based on an analysis result of the data by the analysis process. Selecting one priority switching signal from a plurality of priority switching signals to be executed, and performing a CPU access and a direct memory access based on the one priority switching signal selected in the selecting step. One of the menus is set to the valid state and the other to the invalid state. It is intended to arbitrate the CPU access and direct memory access to Li.

【0025】本発明に係る第21の発明は、前記解析工
程は、前記メモリに記憶されるデータの容量を解析する
ものである。
According to a twenty-first aspect of the present invention, in the analyzing step, the amount of data stored in the memory is analyzed.

【0026】本発明に係る第22の発明は、前記解析工
程は、前記メモリに記憶されるデータの展開処理時間を
解析するものである。
According to a twenty-second aspect of the present invention, in the analyzing step, a time required for developing data stored in the memory is analyzed.

【0027】本発明に係る第23の発明は、前記データ
は、所定のページ単位またはバンド単位に基づいて前記
メモリに記憶されるものである。
According to a twenty-third aspect of the present invention, the data is stored in the memory based on a predetermined page unit or band unit.

【0028】本発明に係る第24の発明は、前記データ
は、イメージデータまたはテキストデータとするもので
ある。
According to a twenty-fourth aspect of the present invention, the data is image data or text data.

【0029】[0029]

【発明の実施の形態】〔第1実施形態〕図1は、本発明
の第1実施形態を示すDMA制御装置の構成を説明する
回路ブロック図である。なお、DMA制御装置は、本発
明に係る印刷制御装置内におけるメモリ制御回路部に適
用することも可能である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS [First Embodiment] FIG. 1 is a circuit block diagram illustrating the configuration of a DMA control device according to a first embodiment of the present invention. The DMA control device can be applied to a memory control circuit in the print control device according to the present invention.

【0030】図において、101はアクセス回数測定用
のカウンタで、1回のCPUアクセスを何回のDMAア
クセス終了後に処理可能とするかを決定するためのアク
セス回数を測定する。102はセレクタで、複数のプラ
イオリティ信号の中から、当該のページ及びバンドの処
理のために最適なものを選択する。
In the drawing, reference numeral 101 denotes a counter for measuring the number of accesses, which measures the number of accesses for determining how many DMA accesses can be processed after one CPU access. Reference numeral 102 denotes a selector which selects an optimum signal for processing the corresponding page and band from a plurality of priority signals.

【0031】103はJKフリップフロップ(JKF/
F)で、デフォルトのプライオリティ(CPUとDMA
が同等の関係で、交互に処理可能)信号を作成する。1
04はORゲートで、図示しないシーケンサより出力さ
れるCPU及びDMAのアクセスのラスト信号をOR処
理して得られる信号を、カウンタ101のロード/カウ
ントアップを切り換えるためのセレクト端子に入力す
る。
Reference numeral 103 denotes a JK flip-flop (JKF /
F), the default priority (CPU and DMA)
Can be processed alternately in an equivalent relationship). 1
Reference numeral 04 denotes an OR gate, which inputs a signal obtained by performing an OR process on CPU and DMA access last signals output from a sequencer (not shown) to a select terminal for switching the load / count-up of the counter 101.

【0032】105はインバータゲート(INVゲー
ト)で、NANDゲート106,107とにより、セレ
クタ102から出力されるCPU/DMAプライオリテ
ィー切換信号(DCPRI)により、同時に入力するC
PU及びDMAのリクエスト信号のうち、片方を処理可
能としもう片方を処理不可能な状態に設定する。
Numeral 105 denotes an inverter gate (INV gate) which is simultaneously input by the NAND gates 106 and 107 in response to a CPU / DMA priority switching signal (DCPRI) output from the selector 102.
One of the PU and DMA request signals is set to be processable and the other is set to a non-processable state.

【0033】108,109はANDゲートで、CP
U、DMAそれぞれのアクセスを起動させるために調停
を行った上でパルスを発生する。110,111はDF
/Fで、NANDゲート106,107の出力から、図
示しないシーケンサへ同期パルスを送る。
Reference numerals 108 and 109 denote AND gates.
After arbitration for activating the U and DMA accesses, a pulse is generated. 110 and 111 are DF
At / F, a synchronization pulse is sent from the outputs of the NAND gates 106 and 107 to a sequencer (not shown).

【0034】なお、1はCPUで、ROM4または図示
しない外部メモリに記憶された制御プログラムを実行し
て、システムバス5に接続される各デバイスを総括的に
制御する。2はRAMで、CPU1のワークメモリとし
て機能し、ページメモリ領域として、あるいはバンドメ
モリ領域等が確保され、圧縮された印刷データを記憶可
能に構成されている。なお、RAM2は、図示しないオ
プションメモリによりその容量が拡張できるように構成
されている。
A CPU 1 executes a control program stored in the ROM 4 or an external memory (not shown) to control each device connected to the system bus 5 as a whole. Reference numeral 2 denotes a RAM, which functions as a work memory of the CPU 1, and has a page memory area, a band memory area, or the like, and is configured to be able to store compressed print data. The RAM 2 is configured so that its capacity can be expanded by an optional memory (not shown).

【0035】3は外部インタフェースで、図示しない通
信媒体を介してホストコンピュータ等と所定のプロコト
ルにより通信可能に構成されている。6はエンジンコン
トローラで、RAM2上に展開された画像データ(ビッ
トマップデータ)をエンジン7に対してシリアルに転送
処理する。なお、エンジン7は、レーザビームプリンタ
エンジン,LEDプリンタエンジン,インクジェットプ
リンタエンジン等で構成される。10はDMAコントロ
ーラ(DMAC)で、RAM2に対するDMAを制御す
る。
Reference numeral 3 denotes an external interface which can communicate with a host computer or the like via a communication medium (not shown) by a predetermined protocol. Reference numeral 6 denotes an engine controller which serially transfers image data (bitmap data) developed on the RAM 2 to the engine 7. The engine 7 includes a laser beam printer engine, an LED printer engine, an inkjet printer engine, and the like. Reference numeral 10 denotes a DMA controller (DMAC) that controls DMA for the RAM 2.

【0036】図2は、図1に示したカウンタ101の詳
細構成を説明する回路ブロック図である。
FIG. 2 is a circuit block diagram illustrating a detailed configuration of the counter 101 shown in FIG.

【0037】図において、201はセレクト付DF/F
で、セレクト入力Sには、ORゲート104からの出力
が共通に入力され、入力aにはインバータゲート208
を介して出力Qの反転出力が入力されている。また、入
力bには出力Qが入力されている。
In the figure, reference numeral 201 denotes a selectable DF / F.
The output from the OR gate 104 is commonly input to the select input S, and the inverter gate 208 is input to the input a.
, The inverted output of the output Q is input. The output Q is input to the input b.

【0038】202はセレクト付DF/Fで、セレクト
入力Sには、ORゲート104からの出力が共通に入力
され、入力aにはEXORゲート211の出力と出力Q
との排他的論理和処理された出力が入力され、出力Qは
入力bにも入力されている。
Reference numeral 202 denotes a selectable DF / F. The select input S receives the output of the OR gate 104 in common, and the input a has the output of the EXOR gate 211 and the output Q.
And the output Q is also input to the input b.

【0039】203はセレクト付DF/Fで、セレクト
入力Sには、ORゲート104からの出力が共通に入力
され、入力aにはEXORゲート212を介してアンド
ゲート209の出力と出力Qとの排他的論理和処理され
た出力が入力され、出力Qは入力bにも入力されてい
る。
Reference numeral 203 denotes a selectable DF / F. The select input S receives the output of the OR gate 104 in common, and the input a receives the output of the AND gate 209 and the output Q via the EXOR gate 212. The exclusive ORed output is input, and the output Q is also input to input b.

【0040】204はセレクト付DF/Fで、セレクト
入力Sには、ORゲート104からの出力が共通に入力
され、入力aにはEXORゲート213を介してアンド
ゲート210の出力と出力Qとの排他的論理和処理され
た出力が入力され、出力Qは入力bにも入力されてい
る。
Reference numeral 204 denotes a selectable DF / F. An output from the OR gate 104 is commonly input to the select input S, and the output a of the output of the AND gate 210 and the output Q is input to the input a via the EXOR gate 213. The exclusive ORed output is input, and the output Q is also input to input b.

【0041】207はナンドゲートで、セレクト付DF
/F201〜204の反転出力Qnとのナンド処理され
た出力、すなわち、複数のソースのうちの1つでもDM
Aリクエストが発生している状態では、連続15回ま
で、CPUリクエストより優先順位を高く処理するため
の信号PRI15/1をセレクタ102に出力する。
Reference numeral 207 denotes a NAND gate.
/ F 201-204 with the inverted output Qn, that is, the DM output of one of the sources
In the state where the A request is generated, the signal PRI15 / 1 for processing with higher priority than the CPU request is output to the selector 102 up to 15 times in a row.

【0042】206はナンドゲートで、セレクト付DF
/F201〜204の反転出力Qnとのナンド処理され
た出力、すなわち、複数のソースのうちの1つでもDM
Aリクエストが発生している状態では、連続7回まで、
CPUリクエストより優先順位を高く処理するための信
号PRI7/1をセレクタ102に出力する。
Reference numeral 206 denotes a NAND gate which is a selectable DF.
/ F 201-204 with the inverted output Qn, that is, the DM output of one of the sources
In the state where the A request has occurred, up to seven consecutive times,
A signal PRI7 / 1 for processing higher priority than the CPU request is output to the selector 102.

【0043】205はナンドゲートで、セレクト付DF
/F201〜204の反転出力Qnとのナンド処理され
た出力、すなわち、複数のソースのうちの1つでもDM
Aリクエストが発生している状態では、連続3回まで、
CPUリクエストより優先順位を高く処理するための信
号PRI3/1をセレクタ102に出力する。
Reference numeral 205 denotes a NAND gate which is a selectable DF.
/ F 201-204 with the inverted output Qn, that is, the DM output of one of the sources
In the state where A request has occurred, up to three times
A signal PRI3 / 1 for processing higher priority than the CPU request is output to the selector 102.

【0044】上記構成に基づき、図3に示すタイミング
チャート及び図4に示すフローチャートを参照して第1
実施形態の動作について説明する。
Based on the above configuration, the first chart will be described with reference to the timing chart shown in FIG. 3 and the flowchart shown in FIG.
The operation of the embodiment will be described.

【0045】図3は、本発明に係るDMA制御装置の動
作を説明するタイミングチャートであり、切換え信号D
CPRIが信号PRI7/1となる場合に対応する。
FIG. 3 is a timing chart for explaining the operation of the DMA control device according to the present invention.
This corresponds to the case where the CPRI becomes the signal PRI7 / 1.

【0046】なお、本実施形態では説明を簡潔にするた
め、セレクタ102で選択される切換え信号DCPRI
を、同時に入力するDMAリクエスト7回処理する毎
に、CPUリクエストを1回処理(図2における信号P
RI7/1)するようにセレクタ102を設定してい
る。
In this embodiment, for the sake of simplicity, the switching signal DCPRI selected by the selector 102 is used.
Are processed seven times each time a DMA request is simultaneously input (signal P in FIG. 2).
RI7 / 1).

【0047】最初に、ホストコンピュータ等の外部イン
タフェースより印刷要求が発生していない状況では、本
DMA制御装置のセレクタ102はJKF/F103の
出力(信号PRI1/1)を選択し、切換え信号DCP
RIは、シーケンスから直前のアクセスでCPUラスト
信号が入力すると、「H」状態になり、次アクセスの調
停時に、CPUとDMAのリクエストが同時に入力する
と、NANDゲート107はINVゲート105で切換
え信号DCPRIを反転するため「H」状態となり、一
方NANDゲート106は切換え信号DCPRI,DM
Aリクエスト信号共に「H」状態のため「L」状態とな
る。
First, in a situation where no print request has been issued from an external interface such as a host computer, the selector 102 of the present DMA controller selects the output (signal PRI1 / 1) of the JKF / F 103 and the switching signal DCP
When the CPU last signal is input in the immediately preceding access from the sequence, the RI goes into the “H” state. At the time of arbitration of the next access, if the CPU and DMA requests are input simultaneously, the NAND gate 107 switches the switching signal DCPRI by the INV gate 105. Is inverted to the "H" state, while the NAND gate 106 switches the switching signals DCPRI, DMPRI.
Since both the A request signals are in the “H” state, the state changes to the “L” state.

【0048】よって、CPU,DMA以外のソースから
のリクエストがない状態では、次アクセスの調停時にD
MAリクエストを優先して処理する、すなわち、NAN
Dゲート106によりCPUリクエストを保留し、NA
NDゲート107によりDMAリクエストをパスする。
Therefore, when there is no request from a source other than the CPU and DMA, D
MA request is processed with priority, that is, NAN
The CPU request is suspended by the D gate 106,
The ND gate 107 passes the DMA request.

【0049】逆に、図示しないシーケンサから直前のア
クセスでDMAラスト信号が入力すると、DCPRIは
「L」状態になり、次アクセスの調停時にCPUとDM
Aのリクエストが同時に入力すると、NANDゲート1
06は「H」状態、NANDゲート107は「L」状態
となるので、CPUリクエストを優先して処理する。
Conversely, when a DMA last signal is input from a sequencer (not shown) in the immediately preceding access, DCPRI goes to the “L” state, and the arbitration of the next access causes the CPU and DM to be arbitrated.
When the requests of A are input simultaneously, the NAND gate 1
06 is in the “H” state, and the NAND gate 107 is in the “L” state, so that the CPU request is processed with priority.

【0050】上記のようなデフォルト設定時には、CP
UリクエストとDMAリクエストが交互に処理可能で対
等な関係にあると言える。
At the time of the above default setting, the CP
It can be said that the U request and the DMA request can be processed alternately and have an equal relationship.

【0051】ところで、図示しない外部インタフェース
より印刷要求が発生すると、DMA制御装置を含む印刷
制御装置内で、印刷データの解析を行うが、その際にホ
ストコンピュータ等の外部機器から圧縮データの形式で
1ページ分まとめて、もしくは1バンド分転送されてき
た場合に、該圧縮データを伸長してRAM等で構成され
るページメモリに展開し、シリアルデータの形で画像デ
ータ(ビットマップデータ)をエンジンに出力するとい
う全ての処理をDMAで行うので、デフォルト設定時の
ままでは、複数のソースからのDMAリクエストがOR
された形で、図1に示したDMAリクエストとなり、転
送された圧縮データの容量によってはDMAリクエスト
の単位時間あたりの発生頻度はかなり高くなると予想さ
れる。
When a print request is generated from an external interface (not shown), print data is analyzed in the print control device including the DMA control device. At this time, external devices such as a host computer and the like analyze the print data in the form of compressed data. When one page of data or one band of data is transferred, the compressed data is expanded and expanded in a page memory such as a RAM, and the image data (bitmap data) is converted into serial data in the form of an engine. Is performed by DMA, so that DMA requests from a plurality of sources are ORed in the default setting.
In this way, the DMA request shown in FIG. 1 is obtained, and the frequency of occurrence of the DMA request per unit time is expected to be considerably high depending on the capacity of the transferred compressed data.

【0052】その結果、高解像度の画像データをエンジ
ンに転送する際、ページメモリへの展開が間に合わず、
正常なビデオデータの出力保証ができないという現象
(オーバーラン)が起こる。
As a result, when high-resolution image data is transferred to the engine, development to the page memory cannot be performed in time,
A phenomenon (overrun) occurs in which output of normal video data cannot be guaranteed.

【0053】そこで、同時に入力するCPUとDMAの
リクエストに対して、複数回のDMAリクエスト処理に
つき1回のCPUリクエスト処理を行なうようにし、転
送された圧縮データの容量により、その回数を指定可能
とする。
Therefore, for CPU and DMA requests input simultaneously, one CPU request process is performed for a plurality of DMA request processes, and the number of times can be specified by the capacity of the transferred compressed data. I do.

【0054】更に、圧縮データの境界値とCPUリクエ
スト処理の間に入り込めるDMAリクエスト処理の回数
の対応情報を印刷制御装置内のROM4あるいは他のメ
モリ資源(例えばNVRAM等の不揮発性記憶媒体)に
記憶しておく。
Further, information corresponding to the boundary value of the compressed data and the number of DMA request processing that can be inserted between the CPU request processing is stored in the ROM 4 or another memory resource (for example, a nonvolatile storage medium such as NVRAM) in the print control apparatus. Keep it.

【0055】これにより、外部インタフェースより印刷
要求が発生すると、ページもしくはバンド単位で転送デ
ータの容量を解析し、先述のROM4内の情報から、そ
れに対応するDMAリクエスト処理の回数を導き出す。
そして、プライオリティー切換レジスタをアクセスして
先の回数とマッチする値をレジスタ信号102Aとして
セレクタ102の入力Sに対してセットする。
Thus, when a print request is issued from the external interface, the amount of transfer data is analyzed in units of pages or bands, and the number of DMA request processes corresponding thereto is derived from the information in the ROM 4 described above.
Then, the priority switching register is accessed, and a value matching the previous number is set as the register signal 102A for the input S of the selector 102.

【0056】なお、本実施形態ではカウンタ101の出
力として信号PRI7/1が選択されているとすると、
図2に示したように、CPUラスト信号もしくはDMA
が「H」状態になっている間、セレクト付DF/F20
1〜204の入力bが選択され、「1」ずつカウントア
ップする。
In this embodiment, if the signal PRI7 / 1 is selected as the output of the counter 101,
As shown in FIG. 2, the CPU last signal or the DMA
Is in the “H” state while the DF / F20 with select
Inputs b of 1 to 204 are selected and counted up by “1”.

【0057】信号PRI7/1は、リセット値後「L」
状態(DMA優先)であるが、複数のソースからDMA
リクエストが同時発生し、更にCPUリクエストも同時
に発生する状況では、最初にCPUリクエストの処理を
行い、その後、信号PRI7/1が「L」状態→「H」
状態(DMA優先)となり、引き続きCPUリクエスト
が連続的に本DMA制御装置に入力しても、そのCPU
リクエストは信号PRI7/1が「H」状態になった
ら、図2に示したカウンタ101のNANDゲート20
6が「L」状態、つまり、カウンタ値が「7(h)」に
なるまでは「L」状態にならないので、常に複数のソー
スのうちの1つでもDMAリクエストが発生している状
態では、連続7回まで、CPUリクエストより優先順位
を高く処理することができ、デフォルトの設定(CPU
とDMAが同等の関係となる信号PRI1/1が設定さ
れる場合)ではオーバーランしていたデータもDMAの
優先順位が高くなったことで、正常に処理することが可
能となる。
The signal PRI7 / 1 becomes "L" after the reset value.
State (DMA priority), but DMA from multiple sources
In a situation where requests occur simultaneously and CPU requests occur simultaneously, the CPU request is processed first, and then the signal PRI7 / 1 changes from the "L" state to the "H" state.
State (DMA priority), and even if CPU requests are continuously input to the DMA controller,
The request is made when the signal PRI7 / 1 goes to the "H" state and the NAND gate 20 of the counter 101 shown in FIG.
6 is in the "L" state, that is, the state does not change to the "L" state until the counter value becomes "7 (h)". Therefore, in a state where a DMA request is always generated even in one of the plurality of sources, Up to seven consecutive requests can be processed with higher priority than CPU requests, and the default setting (CPU
In the case where the signal PRI1 / 1 having the same relationship as the DMA is set), the overrun data can be processed normally because the priority of the DMA is increased.

【0058】以上の動作をページ毎もしくはバンド毎に
繰り返すことにより、頻繁にDMAリクエストがくるよ
うな複雑なデータに対しても、CPUが暴走しない範囲
でDMAの優先順位を可変にすることでオーバーランを
防ぎ、CPU,DMA双方のアクセスの効率的な処理を
行えるため、当該DMA制御装置を適用可能なプリンタ
制御装置は、解析されるデータの容量が増えてもプリン
タエンジンに対してオーバランすることが抑制され、正
常印刷が可能となるという効果がある。
By repeating the above operation for each page or each band, even for complicated data in which a DMA request is frequently made, the priority of the DMA can be changed within a range in which the CPU does not run away, and the overrun is performed. Since the run can be prevented and the access processing of both the CPU and the DMA can be efficiently performed, the printer control device to which the DMA control device can be applied may overrun the printer engine even if the amount of analyzed data increases. Is suppressed, and normal printing can be performed.

【0059】以下、本実施形態の特徴的構成について図
1等を参照して説明する。
Hereinafter, a characteristic configuration of the present embodiment will be described with reference to FIG.

【0060】上記のように構成されたメモリに対するC
PU1からのCPUアクセスと複数のソースからのダイ
レクトメモリアクセスとを制御するDMA制御装置(D
MAC10)であって、前記メモリに対するCPUアク
セス回数とダイレクトメモリアクセス回数とをカウント
して前記メモリに対するCPUアクセスとダイレクトメ
モリアクセスとのアクセス比率が異なるように優先順位
を設定する複数の優先順位切換え信号を生成するカウン
タ手段(カウンタ101)と、前記メモリに記憶される
データを解析する解析手段(CPU1がROM4に記憶
された制御プログラムを実行して入力されたデータ(P
DLデータ)を解析するか、あるいは専用のハードウエ
アであってもよい)と、前記解析手段による前記データ
の解析結果に基づいて前記カウンタ手段により生成され
る複数の優先順位切換え信号中から1つの優先順位切換
え信号を選択する選択手段(セレクタ102)と、前記
選択手段により選択された1つの優先順位切換え信号に
基づいてCPUアクセスとダイレクトメモリアクセスと
のいずれか一方を有効状態とし、他方を無効状態として
前記メモリに対するCPUアクセスとダイレクトメモリ
アクセスとを調停する調停手段とを有するので、入力さ
れるデータに応じてメモリに対するCPUアクセスとダ
イレクトメモリアクセスとのアクセス比率を動的に可変
することが可能となり、入力データに応じて自在に連続
DMAのアクセス時間を加減できる。
C for the memory configured as described above
DMA controller (D) for controlling CPU access from PU1 and direct memory access from a plurality of sources
MAC 10), a plurality of priority switching signals for counting the number of CPU accesses to the memory and the number of direct memory accesses, and setting the priority so that the access ratio between the CPU access and the direct memory access to the memory is different. And a means for analyzing data stored in the memory (the CPU 1 executes a control program stored in the ROM 4 and outputs data (P
DL data) or dedicated hardware) and one of a plurality of priority switching signals generated by the counter means based on the result of the data analysis by the analysis means. Selection means (selector 102) for selecting a priority switching signal; one of CPU access and direct memory access being enabled based on one priority switching signal selected by the selection means, and the other being disabled Since there is arbitration means for arbitrating between the CPU access to the memory and the direct memory access as the state, the access ratio between the CPU access and the direct memory access to the memory can be dynamically varied according to input data. And the continuous DMA access freely according to the input data Between you can increase or decrease the.

【0061】また、前記解析手段は、前記メモリに記憶
されるデータの容量を解析するので、入力されるデータ
の容量に応じてメモリに対するCPUアクセスとダイレ
クトメモリアクセスとのアクセス比率を動的に可変する
ことが可能となり、入力データの容量に応じて自在に連
続DMAのアクセス時間を加減できる。
Since the analysis means analyzes the capacity of the data stored in the memory, the access ratio between CPU access and direct memory access to the memory can be dynamically varied according to the capacity of the input data. The access time of the continuous DMA can be freely adjusted according to the capacity of the input data.

【0062】さらに、前記解析手段は、前記メモリに記
憶されるデータの展開処理時間を解析するので、入力さ
れるデータの展開処理時間に応じてメモリに対するCP
Uアクセスとダイレクトメモリアクセスとのアクセス比
率を動的に可変することが可能となり、入力データの展
開処理時間に応じて自在に連続DMAのアクセス時間と
CPUアクセス時間とを調整できる。
Further, since the analyzing means analyzes the time required for developing the data stored in the memory, the analysis means can determine whether the CP for the memory can be used in accordance with the time required for developing the input data.
The access ratio between the U access and the direct memory access can be dynamically changed, and the continuous DMA access time and the CPU access time can be freely adjusted according to the input data expansion processing time.

【0063】また、前記データは、所定のページ単位ま
たはバンド単位に基づいて前記メモリに記憶されるの
で、所定のページ単位またはバンド単位で入力されるデ
ータに応じて自在に連続DMAのアクセス時間とCPU
アクセス時間とを調整できる。
Since the data is stored in the memory based on a predetermined page unit or band unit, the access time of the continuous DMA can be freely set according to the data input in the predetermined page unit or band unit. CPU
You can adjust the access time.

【0064】さらに、前記データは、イメージデータま
たはテキストデータとするので、イメージデータまたは
テキストデータに応じて自在に連続DMAのアクセス時
間とCPUアクセス時間とを調整できる。
Further, since the data is image data or text data, the continuous DMA access time and the CPU access time can be freely adjusted according to the image data or text data.

【0065】また、所定の通信媒体を介して入力される
データに基づいて印刷部が印刷可能な印刷データをメモ
リ上に展開処理する印刷制御装置(プリンタコントロー
ラ部)であって、前記印刷データの解析結果に基づいて
前記メモリに対して異なるソースから発生する第1のメ
モリアクセスとCPUから発生する第2のメモリアクセ
スとが異なる比率で優先するように前記第1のメモリア
クセスと前記第2のメモリアクセスとを調停する調停手
段(DMAC10)を有するので、入力される印刷デー
タに応じて異なる比率で前記第1のメモリアクセスが前
記第2のメモリアクセスよりも優先するように調停で
き、印刷データの内容が変動してもメモリに対する印刷
データ展開に設定される許容時間内に展開処理を完了で
きる最適なメモリアクセスが可能となり、印刷データに
依存する特有のオーバラン発生を防止できる。
A printing control device (printer controller) for developing print data printable by a printing unit on a memory based on data input via a predetermined communication medium, wherein the print controller The first memory access and the second memory access are performed such that a first memory access generated from a different source and a second memory access generated from a CPU are given priority to the memory at different ratios based on the analysis result. Since the arbitration means (DMAC10) for arbitrating the memory access is provided, arbitration can be performed such that the first memory access has a higher priority than the second memory access at a different ratio according to the input print data. Even if the contents of the print data fluctuate, the optimal memory Seth becomes possible, thereby preventing the specific overrun occurs that depends on the print data.

【0066】さらに、前記調停手段は、前記メモリに対
するCPUからのCPUアクセスと複数のソースからの
ダイレクトメモリアクセスとのアクセス時間を異なる比
率で調停するので、第1のメモリアクセスと前記第2の
メモリアクセスとのアクセス時間を自在に変更すること
ができる。
Further, the arbitration means arbitrates the access time between the CPU access to the memory from the CPU and the direct memory access from a plurality of sources at different ratios, so that the first memory access and the second memory access can be arbitrated. The access time with the access can be freely changed.

【0067】また、前記調停手段は、前記メモリに対す
るCPUアクセス回数とダイレクトメモリアクセス回数
とをカウントして前記メモリに対するCPUアクセスと
ダイレクトメモリアクセスとのアクセス比率が異なるよ
うに優先順位を設定する複数の優先順位切換え信号を生
成するカウンタ手段(カウンタ101)と、前記メモリ
に記憶されるデータを解析する解析手段(図示しない)
と、前記解析手段による前記データの解析結果に基づい
て前記カウンタ手段により生成される複数の優先順位切
換え信号中から1つの優先順位切換え信号を選択する選
択手段(セレクタ102)とを有し、前記選択手段によ
り選択された1つの優先順位切換え信号に基づいてCP
Uアクセスとダイレクトメモリアクセスとのいずれか一
方を有効状態とし、他方を無効状態として前記メモリに
対するCPUアクセスとダイレクトメモリアクセスとを
調停するので、入力されるデータに応じてメモリに対す
るCPUアクセスとダイレクトメモリアクセスとのアク
セス比率を動的に可変することが可能となり、入力デー
タに応じて自在に連続DMAのアクセス時間を加減でき
る。
The arbitration means counts the number of CPU accesses to the memory and the number of direct memory accesses, and sets a plurality of priorities so that the access ratio between the CPU access and the direct memory access to the memory is different. Counter means (counter 101) for generating a priority switching signal and analysis means (not shown) for analyzing data stored in the memory
And a selecting means (selector 102) for selecting one priority switching signal from a plurality of priority switching signals generated by the counter based on a result of analysis of the data by the analysis means, CP based on one priority switching signal selected by the selection means
One of the U access and the direct memory access is set to the valid state, and the other is set to the invalid state to arbitrate the CPU access to the memory and the direct memory access. The access ratio with access can be dynamically varied, and the access time of continuous DMA can be freely adjusted according to input data.

【0068】さらに、前記解析手段は、前記メモリに記
憶されるデータの容量を解析するので、入力されるデー
タの容量に応じてメモリに対するCPUアクセスとダイ
レクトメモリアクセスとのアクセス比率を動的に可変す
ることが可能となり、入力データの容量に応じて自在に
連続DMAのアクセス時間を加減できる。
Further, since the analyzing means analyzes the capacity of the data stored in the memory, the access ratio between the CPU access and the direct memory access to the memory can be dynamically varied according to the capacity of the input data. The access time of the continuous DMA can be freely adjusted according to the capacity of the input data.

【0069】また、前記解析手段は、前記メモリに記憶
されるデータの展開処理時間を解析するので、入力され
るデータの展開処理時間に応じてメモリに対するCPU
アクセスとダイレクトメモリアクセスとのアクセス比率
を動的に可変することが可能となり、入力データの展開
処理時間に応じて自在に連続DMAのアクセス時間とC
PUアクセス時間とを調整できる。
Further, the analyzing means analyzes the time required for developing the data stored in the memory.
It is possible to dynamically change the access ratio between the access and the direct memory access, and the continuous DMA access time and C
PU access time can be adjusted.

【0070】さらに、前記データは、所定のページ単位
またはバンド単位に基づいて前記メモリに記憶されるの
で、所定のページ単位またはバンド単位で入力されるデ
ータに応じて自在に連続DMAのアクセス時間とCPU
アクセス時間とを調整できる。
Further, since the data is stored in the memory on the basis of a predetermined page or band unit, the access time of the continuous DMA can be freely set according to the data inputted in the predetermined page unit or band unit. CPU
You can adjust the access time.

【0071】また、前記データは、イメージデータまた
はテキストデータとするので、イメージデータまたはテ
キストデータに応じて自在に連続DMAのアクセス時間
とCPUアクセス時間とを調整できる。
Since the data is image data or text data, the access time of the continuous DMA and the CPU access time can be freely adjusted according to the image data or the text data.

【0072】図4は、本発明に係るDMA制御装置にお
けるデータ処理手順の一例を示すフローチャートであ
る。なお、(1)〜(6)は各ステップを示す。
FIG. 4 is a flowchart showing an example of a data processing procedure in the DMA control device according to the present invention. Note that (1) to (6) indicate each step.

【0073】まず、ステップ(1)で、プリンタコント
ローラ内に設けられるデータ解析部よりセレクタ102
に対してCPUとDMAとのプライオリティを同等する
ようにデフォルト設定する。
First, in step (1), the data analysis unit provided in the printer controller selects the selector 102.
Are set as default so that the priorities of the CPU and the DMA are equal.

【0074】次に、ステップ(2)で、印刷要求状態を
監視して印刷要求が発生しているかどうかをCPU1が
判定し、該印刷要求が発生していないと判定した場合に
は、処理を終了する。
Next, in step (2), the CPU 1 monitors the status of the print request and determines whether or not a print request has been issued. If it is determined that the print request has not been issued, the process is terminated. finish.

【0075】一方、ステップ(2)で、該印刷要求が発
生していると判定した場合には、ステップ(3)で、各
ページ単位及び各バンド単位で印刷のための元データを
解析して、圧縮データ容量,展開時間予測を導出する。
On the other hand, if it is determined in step (2) that the print request has occurred, in step (3), the original data for printing is analyzed for each page and each band. , Compression data capacity, and expansion time prediction.

【0076】次に、ステップ(4)で、解析された圧縮
データ容量,展開時間予測等に基づいてROM4内の情
報から、それに対応するDMAリクエスト処理の回数を
導き出す。そして、プライオリティ切換レジスタをアク
セスして先の回数とマッチする値をレジスタ信号102
Aとしてセレクタ102の入力Sに対してセットする。
Next, in step (4), the number of times of the DMA request processing corresponding to the information in the ROM 4 is derived based on the analyzed compressed data capacity, the expansion time prediction and the like. Then, the priority switching register is accessed, and a value matching the previous number is registered in the register signal 102.
A is set for the input S of the selector 102 as A.

【0077】次に、ステップ(5)で、セレクタ102
がレジスタ信号102Aに基づいて信号PRI3/1,
PRI7/1,PRI15/1(信号PRIN/1(N
は3以上の整数で任意とする))のいずれかを選択し、
DMAを所定回数連続アクセスして、CPUアクセスを
留保させて印刷データを処理する。これにより、DMA
に対してCPUのプライオリティ(優先順位)がレジス
タに設定した分だけ下がり、頻繁にくるDMAをオーバ
ーランすることなく先行処理できる。
Next, in step (5), the selector 102
Are based on the register signal 102A, the signals PRI3 / 1,
PRI7 / 1, PRI15 / 1 (signal PRIN / 1 (N
Is an integer of 3 or more)))
The print data is processed by successively accessing the DMA a predetermined number of times and retaining the CPU access. Thereby, the DMA
On the other hand, the priority (priority) of the CPU is reduced by the amount set in the register, and the frequent DMA can be pre-processed without overrun.

【0078】次に、印刷要求が終了したかどうかを判定
し(6)、印刷要求が終了していると判定した場合に
は、ステップ(1)へ戻る。
Next, it is determined whether or not the print request has been completed (6). If it is determined that the print request has been completed, the process returns to step (1).

【0079】一方、ステップ(6)で、印刷要求が終了
していないと判定した場合には、ステップ(3)へ戻
り、ステップ(3)〜(6)の処理を同様に繰り返す。
On the other hand, if it is determined in step (6) that the print request has not been completed, the process returns to step (3), and the processing of steps (3) to (6) is repeated in the same manner.

【0080】以下、本実施形態の特徴的構成について図
4等を参照して説明する。
Hereinafter, the characteristic configuration of this embodiment will be described with reference to FIG.

【0081】上記のように構成されたメモリ(RAM
2)に対するCP1からのCPUアクセスと複数のソー
スからのダイレクトメモリアクセスとを制御するDMA
制御装置(DMAC10)のデータ処理方法であって、
前記メモリに対するCPUアクセス回数とダイレクトメ
モリアクセス回数とをカウントして前記メモリに対する
CPUアクセスとダイレクトメモリアクセスとのアクセ
ス比率が異なるように優先順位を設定する複数の優先順
位切換え信号を生成するカウンタ工程(図示しない)
と、前記メモリに記憶されるデータを解析する解析工程
(図4のステップ(3))と、前記解析工程による前記
データの解析結果に基づいて前記カウンタ工程により生
成される複数の優先順位切換え信号中から1つの優先順
位切換え信号を選択する選択工程(図4のステップ
(5))と、前記選択工程により選択された1つの優先
順位切換え信号に基づいてCPUアクセスとダイレクト
メモリアクセスとのいずれか一方を有効状態とし、他方
を無効状態として前記メモリに対するCPUアクセスと
ダイレクトメモリアクセスとを調停する調停工程とを有
するので、入力されるデータに応じてメモリに対するC
PUアクセスとダイレクトメモリアクセスとのアクセス
比率を動的に可変することが可能となり、入力データに
応じて自在に連続DMAのアクセス時間を加減できる。
The memory (RAM
DMA controlling CPU access from CP1 and direct memory access from multiple sources for 2)
A data processing method for a control device (DMAC 10),
A counter step of counting the number of CPU accesses and the number of direct memory accesses to the memory and generating a plurality of priority switching signals for setting priorities so that the access ratio between the CPU access and the direct memory access to the memory is different ( (Not shown)
An analysis step (step (3) in FIG. 4) for analyzing data stored in the memory; and a plurality of priority switching signals generated by the counter step based on the result of the analysis of the data by the analysis step. A selection step (step (5) in FIG. 4) for selecting one priority switching signal from among them, and one of CPU access and direct memory access based on the one priority switching signal selected in the selection step An arbitration step of arbitrating CPU access and direct memory access to the memory with one being in a valid state and the other being in an invalid state.
The access ratio between PU access and direct memory access can be dynamically varied, and the access time of continuous DMA can be freely adjusted according to input data.

【0082】また、前記解析工程は、前記メモリに記憶
されるデータの容量を解析するので、入力されるデータ
の容量に応じてメモリに対するCPUアクセスとダイレ
クトメモリアクセスとのアクセス比率を動的に可変する
ことが可能となり、入力データの容量に応じて自在に連
続DMAのアクセス時間を加減できる。
In the analyzing step, the capacity of data stored in the memory is analyzed, so that the access ratio between CPU access and direct memory access to the memory is dynamically varied according to the capacity of input data. The access time of the continuous DMA can be freely adjusted according to the capacity of the input data.

【0083】さらに、前記解析工程は、前記メモリに記
憶されるデータの展開処理時間を解析するので、入力さ
れるデータの展開処理時間に応じてメモリに対するCP
Uアクセスとダイレクトメモリアクセスとのアクセス比
率を動的に可変することが可能となり、入力データの展
開処理時間に応じて自在に連続DMAのアクセス時間と
CPUアクセス時間とを調整できる。
Further, the analyzing step analyzes the time required for developing the data stored in the memory.
The access ratio between the U access and the direct memory access can be dynamically changed, and the continuous DMA access time and the CPU access time can be freely adjusted according to the input data expansion processing time.

【0084】また、前記データは、所定のページ単位ま
たはバンド単位に基づいて前記メモリに記憶されるの
で、所定のページ単位またはバンド単位で入力されるデ
ータに応じて自在に連続DMAのアクセス時間とCPU
アクセス時間とを調整できる。
Since the data is stored in the memory on a predetermined page or band basis, the access time of the continuous DMA can be freely set in accordance with data input on a predetermined page or band basis. CPU
You can adjust the access time.

【0085】さらに、前記データは、イメージデータま
たはテキストデータとするので、イメージデータまたは
テキストデータに応じて自在に連続DMAのアクセス時
間とCPUアクセス時間とを調整できる。
Further, since the data is image data or text data, the continuous DMA access time and the CPU access time can be freely adjusted according to the image data or text data.

【0086】また、所定の通信媒体を介して入力される
データに基づいて印刷部が印刷可能な印刷データをメモ
リ上に展開処理する印刷制御装置のデータ処理方法であ
って、前記印刷データの解析結果に基づいて前記メモリ
に対して異なるソースから発生する第1のメモリアクセ
スとCPUから発生する第2のメモリアクセスとが異な
る比率で優先するように前記第1のメモリアクセスと前
記第2のメモリアクセスとを調停する調停工程(図4の
ステップ(3)〜(5)))を有するので、入力される
印刷データに応じて異なる比率で前記第1のメモリアク
セスが前記第2のメモリアクセスよりも優先するように
調停でき、印刷データの内容が変動してもメモリに対す
る印刷データ展開に設定される許容時間内に展開処理を
完了できる最適なメモリアクセスが可能となり、印刷デ
ータに依存する特有のオーバラン発生を防止できる。
A data processing method of a print control device for developing print data printable by a printing unit on a memory based on data input via a predetermined communication medium, comprising: The first memory access and the second memory are accessed such that a first memory access originating from a different source and a second memory access originating from the CPU have a different priority to the memory based on the result. Since there is an arbitration step (steps (3) to (5) in FIG. 4) for arbitrating access, the first memory access is different from the second memory access at a different ratio according to the input print data. Arbitration so that even if the contents of the print data fluctuate, the expansion processing can be completed within the allowable time set for the print data expansion to the memory. Mori access becomes possible, thereby preventing the specific overrun occurs that depends on the print data.

【0087】さらに、前記調停工程は、メモリに対する
CPUからのCPUアクセスと複数のソースからのダイ
レクトメモリアクセスとのアクセス時間を異なる比率で
調停するので、第1のメモリアクセスと前記第2のメモ
リアクセスとのアクセス時間を自在に変更することがで
きる。
Further, the arbitration step arbitrates the access time between the CPU access to the memory from the CPU and the direct memory access from a plurality of sources at different ratios, so that the first memory access and the second memory access Access time can be freely changed.

【0088】また、前記調停工程は、前記メモリに対す
るCPUアクセス回数とダイレクトメモリアクセス回数
とをカウントして前記メモリに対するCPUアクセスと
ダイレクトメモリアクセスとのアクセス比率が異なるよ
うに優先順位を設定する複数の優先順位切換え信号を生
成するカウンタ工程(図示しない)と、前記メモリに記
憶されるデータを解析する解析工程(図4のステップ
(3))と、前記解析工程による前記データの解析結果
に基づいて前記カウンタ工程により生成される複数の優
先順位切換え信号中から1つの優先順位切換え信号を選
択する選択工程(図4のステップ(5))とを有し、前
記選択工程により選択された1つの優先順位切換え信号
に基づいてCPUアクセスとダイレクトメモリアクセス
とのいずれか一方を有効状態とし、他方を無効状態とし
て前記メモリに対するCPUアクセスとダイレクトメモ
リアクセスとを調停するので、入力されるデータに応じ
てメモリに対するCPUアクセスとダイレクトメモリア
クセスとのアクセス比率を動的に可変することが可能と
なり、入力データに応じて自在に連続DMAのアクセス
時間を加減できる。
The arbitration step counts the number of CPU accesses to the memory and the number of direct memory accesses, and sets a plurality of priorities so that the access ratio between the CPU access and the direct memory access to the memory is different. A counter step (not shown) for generating a priority switching signal, an analysis step for analyzing data stored in the memory (step (3) in FIG. 4), and a data analysis result based on the analysis step. A selecting step (step (5) in FIG. 4) of selecting one priority switching signal from a plurality of priority switching signals generated by the counter step, and the one priority selected by the selecting step Either CPU access or direct memory access based on the order switching signal Since the CPU access and the direct memory access to the memory are arbitrated while the valid state is set and the other is set to the invalid state, the access ratio between the CPU access and the direct memory access to the memory is dynamically varied according to input data. And the access time of the continuous DMA can be freely adjusted according to the input data.

【0089】さらに、前記解析工程は、前記メモリに記
憶されるデータの容量を解析するので、入力されるデー
タの容量に応じてメモリに対するCPUアクセスとダイ
レクトメモリアクセスとのアクセス比率を動的に可変す
ることが可能となり、入力データの容量に応じて自在に
連続DMAのアクセス時間を加減できる。
Further, since the analyzing step analyzes the capacity of data stored in the memory, the access ratio between CPU access and direct memory access to the memory is dynamically varied according to the capacity of input data. The access time of the continuous DMA can be freely adjusted according to the capacity of the input data.

【0090】また、前記解析工程は、前記メモリに記憶
されるデータの展開処理時間を解析するので、入力され
るデータの展開処理時間に応じてメモリに対するCPU
アクセスとダイレクトメモリアクセスとのアクセス比率
を動的に可変することが可能となり、入力データの展開
処理時間に応じて自在に連続DMAのアクセス時間とC
PUアクセス時間とを調整できる。
In the analyzing step, the processing time for expanding the data stored in the memory is analyzed.
It is possible to dynamically change the access ratio between the access and the direct memory access, and the continuous DMA access time and C
PU access time can be adjusted.

【0091】さらに、前記データは、所定のページ単位
またはバンド単位に基づいて前記メモリに記憶されるの
で、所定のページ単位またはバンド単位で入力されるデ
ータに応じて自在に連続DMAのアクセス時間とCPU
アクセス時間とを調整できる。
Further, since the data is stored in the memory based on a predetermined page or band unit, the access time of the continuous DMA can be freely set according to the data input in a predetermined page unit or band unit. CPU
You can adjust the access time.

【0092】また、前記データは、イメージデータまた
はテキストデータとするので、イメージデータまたはテ
キストデータに応じて自在に連続DMAのアクセス時間
とCPUアクセス時間とを調整できる。
Since the data is image data or text data, the continuous DMA access time and the CPU access time can be freely adjusted according to the image data or text data.

【0093】〔第2実施形態〕上記第1実施形態では、
転送されるデータの容量と、CPUアクセス1回処理ま
でに入り込めるDMAアクセスの回数を対応させて、そ
の情報からDMAの優先順位を可変とする場合について
説明したが、データの容量だけでは、単純なパターンの
繰り返しデータのように圧縮効率は悪いが、データの処
理方法によっては、ページメモリへの展開は早いという
場合も考えられ、パラメータを決定する条件の全ては満
足していない。そこで、転送されるデータの圧縮形式、
その構成単位となるパターン及びテキストデータ等でフ
ォントパターンを圧縮して転送する場合、同じフォント
が何回使用されているか等を判別して、外部インタフェ
ースから転送されるデータを1ページ単位もしくは1バ
ンド単位で解析し、それをページメモリへ展開するまで
の時間を、あらかじめ図示しない印刷制御装置内のRO
Mに格納されている情報から予測し、その展開予想時間
から、CPUアクセスのプライオリティを低くし、DM
Aの優先順位を可変にするように構成してもよい。
[Second Embodiment] In the first embodiment,
A case has been described in which the capacity of data to be transferred is made to correspond to the number of DMA accesses that can be performed up to one CPU access, and the priority of the DMA is made variable based on the information. Although the compression efficiency is low as in the case of repeated data of a pattern, depending on the processing method of the data, it is conceivable that the data may be quickly expanded in the page memory, and all the conditions for determining the parameters are not satisfied. Therefore, the compression format of the transferred data,
When compressing and transferring a font pattern using the pattern and text data as its constituent units, the number of times the same font is used is determined, and the data transferred from the external interface is transferred in units of one page or one band. The time it takes to analyze the data in units and expand it to the page memory is determined in advance by the RO in the print controller (not shown).
M is predicted from the information stored in M, and the priority of CPU access is lowered based on the estimated deployment time.
You may comprise so that the priority of A may be made variable.

【0094】これにより、転送データのより詳細な解析
が可能となり、高精度でCPU,DMA双方のアクセス
を処理でき、オーバーランを防ぐという効果がある。
As a result, more detailed analysis of the transfer data becomes possible, and the accesses of both the CPU and the DMA can be processed with high accuracy, and there is an effect that overrun is prevented.

【0095】以下、図5に示すメモリマップを参照して
本発明に係る印刷制御装置を適用可能な印刷システムで
読み出し可能なデータ処理プログラムの構成について説
明する。
Hereinafter, the configuration of a data processing program that can be read by a printing system to which the print control apparatus according to the present invention can be applied will be described with reference to a memory map shown in FIG.

【0096】図5は、本発明に係るデータ処理装置を適
用可能な印刷システムで読み出し可能な各種データ処理
プログラムを格納する記憶媒体のメモリマップを説明す
る図である。
FIG. 5 is a diagram for explaining a memory map of a storage medium for storing various data processing programs that can be read by a printing system to which the data processing apparatus according to the present invention can be applied.

【0097】なお、特に図示しないが、記憶媒体に記憶
されるプログラム群を管理する情報、例えばバージョン
情報,作成者等も記憶され、かつ、プログラム読み出し
側のOS等に依存する情報、例えばプログラムを識別表
示するアイコン等も記憶される場合もある。
Although not shown, information for managing a group of programs stored in the storage medium, for example, version information, a creator and the like are also stored, and information dependent on the OS or the like on the program reading side, for example, a program is stored. An icon or the like for identification display may also be stored.

【0098】さらに、各種プログラムに従属するデータ
も上記ディレクトリに管理されている。また、各種プロ
グラムをコンピュータにインストールするためのプログ
ラムや、インストールするプログラムが圧縮されている
場合に、解凍するプログラム等も記憶される場合もあ
る。
Further, data subordinate to various programs is also managed in the directory. In addition, a program for installing various programs on a computer or a program for decompressing a program to be installed when the program to be installed is compressed may be stored.

【0099】本実施形態における図4に示す機能が外部
からインストールされるプログラムによって、ホストコ
ンピュータにより遂行されていてもよい。そして、その
場合、CD−ROMやフラッシュメモリやFD等の記憶
媒体により、あるいはネットワークを介して外部の記憶
媒体から、プログラムを含む情報群を出力装置に供給さ
れる場合でも本発明は適用されるものである。
The functions shown in FIG. 4 in this embodiment may be executed by a host computer by a program installed from the outside. In this case, the present invention is applied even when a group of information including a program is supplied to the output device from a storage medium such as a CD-ROM, a flash memory, or an FD, or from an external storage medium via a network. Things.

【0100】以上のように、前述した実施形態の機能を
実現するソフトウエアのプログラムコードを記録した記
憶媒体を、システムあるいは装置に供給し、そのシステ
ムあるいは装置のコンピュータ(またはCPUやMP
U)が記憶媒体に格納されたプログラムコードを読出し
実行することによっても、本発明の目的が達成されるこ
とは言うまでもない。
As described above, the storage medium storing the program codes of the software for realizing the functions of the above-described embodiment is supplied to the system or the apparatus, and the computer (or CPU or MP) of the system or the apparatus is supplied.
It goes without saying that the object of the present invention is also achieved when U) reads and executes the program code stored in the storage medium.

【0101】この場合、記憶媒体から読み出されたプロ
グラムコード自体が本発明の新規な機能を実現すること
になり、そのプログラムコードを記憶した記憶媒体は本
発明を構成することになる。
In this case, the program code itself read from the storage medium realizes the novel function of the present invention, and the storage medium storing the program code constitutes the present invention.

【0102】プログラムコードを供給するための記憶媒
体としては、例えば、フロッピーディスク,ハードディ
スク,光ディスク,光磁気ディスク,CD−ROM,C
D−R,磁気テープ,不揮発性のメモリカード,RO
M,EEPROM等を用いることができる。
Examples of a storage medium for supplying the program code include a floppy disk, hard disk, optical disk, magneto-optical disk, CD-ROM, and C
DR, magnetic tape, nonvolatile memory card, RO
M, EEPROM and the like can be used.

【0103】また、コンピュータが読み出したプログラ
ムコードを実行することにより、前述した実施形態の機
能が実現されるだけでなく、そのプログラムコードの指
示に基づき、コンピュータ上で稼働しているOS(オペ
レーティングシステム)等が実際の処理の一部または全
部を行い、その処理によって前述した実施形態の機能が
実現される場合も含まれることは言うまでもない。
When the computer executes the readout program code, not only the functions of the above-described embodiment are realized, but also the OS (Operating System) running on the computer based on the instruction of the program code. ) And the like perform part or all of the actual processing, and the processing realizes the functions of the above-described embodiments.

【0104】さらに、記憶媒体から読み出されたプログ
ラムコードが、コンピュータに挿入された機能拡張ボー
ドやコンピュータに接続された機能拡張ユニットに備わ
るメモリに書き込まれた後、そのプログラムコードの指
示に基づき、その機能拡張ボードや機能拡張ユニットに
備わるCPU等が実際の処理の一部または全部を行い、
その処理によって前述した実施形態の機能が実現される
場合も含まれることは言うまでもない。
Further, after the program code read from the storage medium is written in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, based on the instruction of the program code, The CPU provided in the function expansion board or function expansion unit performs part or all of the actual processing,
It goes without saying that a case where the function of the above-described embodiment is realized by the processing is also included.

【0105】[0105]

【発明の効果】以上説明したように、本発明に係る第1
の発明によれば、メモリに対するCPUからのCPUア
クセスと複数のソースからのダイレクトメモリアクセス
とを制御するDMA制御装置であって、前記メモリに対
するCPUアクセス回数とダイレクトメモリアクセス回
数とをカウントして前記メモリに対するCPUアクセス
とダイレクトメモリアクセスとのアクセス比率が異なる
ように優先順位を設定する複数の優先順位切換え信号を
生成するカウンタ手段と、前記メモリに記憶されるデー
タを解析する解析手段と、前記解析手段による前記デー
タの解析結果に基づいて前記カウンタ手段により生成さ
れる複数の優先順位切換え信号中から1つの優先順位切
換え信号を選択する選択手段と、前記選択手段により選
択された1つの優先順位切換え信号に基づいてCPUア
クセスとダイレクトメモリアクセスとのいずれか一方を
有効状態とし、他方を無効状態として前記メモリに対す
るCPUアクセスとダイレクトメモリアクセスとを調停
する調停手段とを有するので、入力されるデータに応じ
てメモリに対するCPUアクセスとダイレクトメモリア
クセスとのアクセス比率を動的に可変することが可能と
なり、入力データに応じて自在に連続DMAのアクセス
時間を加減できる。
As described above, the first embodiment according to the present invention is described.
According to the invention, there is provided a DMA control device for controlling CPU access to a memory from a CPU and direct memory access from a plurality of sources, wherein the DMA control device counts the number of CPU accesses and the number of direct memory accesses to the memory, Counter means for generating a plurality of priority switching signals for setting priorities so that the access ratio between CPU access and direct memory access to the memory is different; analysis means for analyzing data stored in the memory; Selecting means for selecting one priority switching signal from a plurality of priority switching signals generated by the counter means based on an analysis result of the data by the means; and one priority switching selected by the selecting means CPU access and direct based on signal An arbitration unit that arbitrates between CPU access to the memory and direct memory access by setting one of the memory accesses to a valid state and the other to an invalid state, so that the CPU access to the memory and the direct The access ratio with respect to memory access can be dynamically varied, and the access time of continuous DMA can be freely adjusted according to input data.

【0106】第2の発明によれば、前記解析手段は、前
記メモリに記憶されるデータの容量を解析するので、入
力されるデータの容量に応じてメモリに対するCPUア
クセスとダイレクトメモリアクセスとのアクセス比率を
動的に可変することが可能となり、入力データの容量に
応じて自在に連続DMAのアクセス時間を加減できる。
According to the second aspect, the analysis means analyzes the capacity of the data stored in the memory, so that the access between the CPU access and the direct memory access to the memory depends on the capacity of the input data. The ratio can be dynamically varied, and the access time of the continuous DMA can be freely adjusted according to the capacity of the input data.

【0107】第3の発明によれば、前記解析手段は、前
記メモリに記憶されるデータの展開処理時間を解析する
ので、入力されるデータの展開処理時間に応じてメモリ
に対するCPUアクセスとダイレクトメモリアクセスと
のアクセス比率を動的に可変することが可能となり、入
力データの展開処理時間に応じて自在に連続DMAのア
クセス時間とCPUアクセス時間とを調整できる。
According to the third aspect, the analyzing means analyzes the time required for developing the data stored in the memory, so that the CPU access to the memory and the direct memory The ratio of access to access can be dynamically varied, and the continuous DMA access time and CPU access time can be freely adjusted according to the input data expansion processing time.

【0108】第4の発明によれば、前記データは、所定
のページ単位またはバンド単位に基づいて前記メモリに
記憶されるので、所定のページ単位またはバンド単位で
入力されるデータに応じて自在に連続DMAのアクセス
時間とCPUアクセス時間とを調整できる。
According to the fourth aspect, the data is stored in the memory based on a predetermined page unit or a band unit. Therefore, the data can be freely set according to the data input in the predetermined page unit or the band unit. The continuous DMA access time and the CPU access time can be adjusted.

【0109】第5の発明によれば、前記データは、イメ
ージデータまたはテキストデータとするので、イメージ
データまたはテキストデータに応じて自在に連続DMA
のアクセス時間とCPUアクセス時間とを調整できる。
According to the fifth aspect, since the data is image data or text data, continuous DMA can be freely performed according to the image data or text data.
And the CPU access time can be adjusted.

【0110】第6の発明によれば、所定の通信媒体を介
して入力されるデータに基づいて印刷部が印刷可能な印
刷データをメモリ上に展開処理する印刷制御装置であっ
て、前記印刷データの解析結果に基づいて前記メモリに
対して異なるソースから発生する第1のメモリアクセス
とCPUから発生する第2のメモリアクセスとが異なる
比率で優先するように前記第1のメモリアクセスと前記
第2のメモリアクセスとを調停する調停手段を有するの
で、入力される印刷データに応じて異なる比率で前記第
1のメモリアクセスが前記第2のメモリアクセスよりも
優先するように調停でき、印刷データの内容が変動して
もメモリに対する印刷データ展開に設定される許容時間
内に展開処理を完了できる最適なメモリアクセスが可能
となり、印刷データに依存する特有のオーバラン発生を
防止できる。
According to the sixth aspect of the present invention, there is provided a print control apparatus for developing print data printable by a printing unit on a memory based on data input through a predetermined communication medium, The first memory access and the second memory access are performed in such a manner that a first memory access generated from a different source and a second memory access generated from the CPU are prioritized at different ratios with respect to the memory based on the analysis result. Arbitration means for arbitrating between the first memory access and the second memory access at different rates according to the input print data, and the content of the print data Even if the print data fluctuates, the optimal memory access that can complete the expansion processing within the allowable time set for the print data expansion to the memory becomes possible. A unique overrun occurs that depends on can be prevented.

【0111】第7の発明によれば、前記調停手段は、メ
モリに対するCPUからのCPUアクセスと複数のソー
スからのダイレクトメモリアクセスとのアクセス時間を
異なる比率で調停するので、第1のメモリアクセスと前
記第2のメモリアクセスとのアクセス時間を自在に変更
することができる。
According to the seventh aspect, the arbitration means arbitrates the access time between the CPU access to the memory from the CPU and the direct memory access from a plurality of sources at different ratios. The access time to the second memory access can be freely changed.

【0112】第8の発明によれば、前記調停手段は、前
記メモリに対するCPUアクセス回数とダイレクトメモ
リアクセス回数とをカウントして前記メモリに対するC
PUアクセスとダイレクトメモリアクセスとのアクセス
比率が異なるように優先順位を設定する複数の優先順位
切換え信号を生成するカウンタ手段と、前記メモリに記
憶されるデータを解析する解析手段と、前記解析手段に
よる前記データの解析結果に基づいて前記カウンタ手段
により生成される複数の優先順位切換え信号中から1つ
の優先順位切換え信号を選択する選択手段とを有し、前
記選択手段により選択された1つの優先順位切換え信号
に基づいてCPUアクセスとダイレクトメモリアクセス
とのいずれか一方を有効状態とし、他方を無効状態とし
て前記メモリに対するCPUアクセスとダイレクトメモ
リアクセスとを調停するので、入力されるデータに応じ
てメモリに対するCPUアクセスとダイレクトメモリア
クセスとのアクセス比率を動的に可変することが可能と
なり、入力データに応じて自在に連続DMAのアクセス
時間を加減できる。
According to the eighth aspect, the arbitration means counts the number of CPU accesses to the memory and the number of direct memory accesses, and counts the number of accesses to the memory.
Counter means for generating a plurality of priority order switching signals for setting priorities so that the access ratio between PU access and direct memory access is different; analysis means for analyzing data stored in the memory; Selecting means for selecting one priority switching signal from among a plurality of priority switching signals generated by the counter means based on the analysis result of the data, wherein one priority selected by the selecting means is provided. Based on the switching signal, one of the CPU access and the direct memory access is set to the valid state, and the other is set to the invalid state to arbitrate the CPU access and the direct memory access to the memory. CPU access and direct memory access Ratio dynamically enables varying the can moderate the freely continuous DMA access time according to the input data.

【0113】第9の発明によれば、前記解析手段は、前
記メモリに記憶されるデータの容量を解析するので、入
力されるデータの容量に応じてメモリに対するCPUア
クセスとダイレクトメモリアクセスとのアクセス比率を
動的に可変することが可能となり、入力データの容量に
応じて自在に連続DMAのアクセス時間を加減できる。
According to the ninth aspect, the analyzing means analyzes the capacity of the data stored in the memory, so that the access between the CPU access and the direct memory access to the memory depends on the capacity of the input data. The ratio can be dynamically varied, and the access time of the continuous DMA can be freely adjusted according to the capacity of the input data.

【0114】第10の発明によれば、前記解析手段は、
前記メモリに記憶されるデータの展開処理時間を解析す
るので、入力されるデータの展開処理時間に応じてメモ
リに対するCPUアクセスとダイレクトメモリアクセス
とのアクセス比率を動的に可変することが可能となり、
入力データの展開処理時間に応じて自在に連続DMAの
アクセス時間とCPUアクセス時間とを調整できる。
According to the tenth aspect, the analyzing means includes:
Since the processing time for expanding the data stored in the memory is analyzed, it is possible to dynamically change the access ratio between CPU access and direct memory access to the memory according to the processing time for expanding the input data.
The continuous DMA access time and the CPU access time can be freely adjusted according to the input data expansion processing time.

【0115】第11の発明によれば、前記データは、所
定のページ単位またはバンド単位に基づいて前記メモリ
に記憶されるので、所定のページ単位またはバンド単位
で入力されるデータに応じて自在に連続DMAのアクセ
ス時間とCPUアクセス時間とを調整できる。
According to the eleventh aspect, the data is stored in the memory based on a predetermined page unit or a band unit, so that the data can be freely set according to data input in a predetermined page unit or a band unit. The continuous DMA access time and the CPU access time can be adjusted.

【0116】第12の発明によれば、前記データは、イ
メージデータまたはテキストデータとするので、イメー
ジデータまたはテキストデータに応じて自在に連続DM
Aのアクセス時間とCPUアクセス時間とを調整でき
る。
According to the twelfth aspect, since the data is image data or text data, continuous DM can be freely performed according to the image data or text data.
The access time of A and the CPU access time can be adjusted.

【0117】第13の発明によれば、メモリに対するC
PUからのCPUアクセスと複数のソースからのダイレ
クトメモリアクセスとを制御するDMA制御装置のデー
タ処理方法であって、前記メモリに対するCPUアクセ
ス回数とダイレクトメモリアクセス回数とをカウントし
て前記メモリに対するCPUアクセスとダイレクトメモ
リアクセスとのアクセス比率が異なるように優先順位を
設定する複数の優先順位切換え信号を生成するカウンタ
工程と、前記メモリに記憶されるデータを解析する解析
工程と、前記解析工程による前記データの解析結果に基
づいて前記カウンタ手段により生成される複数の優先順
位切換え信号中から1つの優先順位切換え信号を選択す
る選択工程と、前記選択工程により選択された1つの優
先順位切換え信号に基づいてCPUアクセスとダイレク
トメモリアクセスとのいずれか一方を有効状態とし、他
方を無効状態として前記メモリに対するCPUアクセス
とダイレクトメモリアクセスとを調停する調停工程とを
有するので、入力されるデータに応じてメモリに対する
CPUアクセスとダイレクトメモリアクセスとのアクセ
ス比率を動的に可変することが可能となり、入力データ
に応じて自在に連続DMAのアクセス時間を加減でき
る。
According to the thirteenth aspect, C for the memory
A data processing method of a DMA control device for controlling CPU access from a PU and direct memory access from a plurality of sources, the method comprising counting the number of CPU accesses to the memory and the number of direct memory accesses to count the number of CPU accesses to the memory. A counter step of generating a plurality of priority switching signals for setting priorities so that the access ratio between the memory and the direct memory access is different; an analyzing step of analyzing data stored in the memory; and A selecting step of selecting one priority switching signal from a plurality of priority switching signals generated by the counter means based on the analysis result of the above, and based on one priority switching signal selected by the selecting step. CPU access and direct memory access Arbitration step of arbitrating CPU access and direct memory access to the memory with one of them as the valid state and the other as the invalid state, so that the CPU access and the direct memory access to the memory in accordance with the input data. Can be dynamically varied, and the continuous DMA access time can be freely adjusted according to the input data.

【0118】第14の発明によれば、前記解析工程は、
前記メモリに記憶されるデータの容量を解析するので、
入力されるデータの容量に応じてメモリに対するCPU
アクセスとダイレクトメモリアクセスとのアクセス比率
を動的に可変することが可能となり、入力データの容量
に応じて自在に連続DMAのアクセス時間を加減でき
る。
According to the fourteenth aspect, the analyzing step includes:
Since the capacity of data stored in the memory is analyzed,
CPU for memory according to the capacity of input data
The access ratio between the access and the direct memory access can be dynamically changed, and the access time of the continuous DMA can be freely adjusted according to the capacity of the input data.

【0119】第15の発明によれば、前記解析工程は、
前記メモリに記憶されるデータの展開処理時間を解析す
るので、入力されるデータの展開処理時間に応じてメモ
リに対するCPUアクセスとダイレクトメモリアクセス
とのアクセス比率を動的に可変することが可能となり、
入力データの展開処理時間に応じて自在に連続DMAの
アクセス時間とCPUアクセス時間とを調整できる。
According to the fifteenth aspect, the analyzing step includes:
Since the processing time for expanding the data stored in the memory is analyzed, it is possible to dynamically change the access ratio between CPU access and direct memory access to the memory according to the processing time for expanding the input data.
The continuous DMA access time and the CPU access time can be freely adjusted according to the input data expansion processing time.

【0120】第16の発明によれば、前記データは、所
定のページ単位またはバンド単位に基づいて前記メモリ
に記憶されるので、所定のページ単位またはバンド単位
で入力されるデータに応じて自在に連続DMAのアクセ
ス時間とCPUアクセス時間とを調整できる。
According to the sixteenth aspect, the data is stored in the memory based on a predetermined page unit or a band unit. Therefore, the data can be freely set according to the data input in the predetermined page unit or the band unit. The continuous DMA access time and the CPU access time can be adjusted.

【0121】第17の発明によれば、前記データは、イ
メージデータまたはテキストデータとするので、イメー
ジデータまたはテキストデータに応じて自在に連続DM
Aのアクセス時間とCPUアクセス時間とを調整でき
る。
According to the seventeenth aspect, since the data is image data or text data, continuous DM can be freely performed according to the image data or text data.
The access time of A and the CPU access time can be adjusted.

【0122】第18の発明によれば、所定の通信媒体を
介して入力されるデータに基づいて印刷部が印刷可能な
印刷データをメモリ上に展開処理する印刷制御装置のデ
ータ処理方法であって、前記印刷データの解析結果に基
づいて前記メモリに対して異なるソースから発生する第
1のメモリアクセスとCPUから発生する第2のメモリ
アクセスとが異なる比率で優先するように前記第1のメ
モリアクセスと前記第2のメモリアクセスとを調停する
調停工程を有するので、入力される印刷データに応じて
異なる比率で前記第1のメモリアクセスが前記第2のメ
モリアクセスよりも優先するように調停でき、印刷デー
タの内容が変動してもメモリに対する印刷データ展開に
設定される許容時間内に展開処理を完了できる最適なメ
モリアクセスが可能となり、印刷データに依存する特有
のオーバラン発生を防止できる。第19の発明によれ
ば、前記調停工程は、メモリに対するCPUからのCP
Uアクセスと複数のソースからのダイレクトメモリアク
セスとのアクセス時間を異なる比率で調停するので、第
1のメモリアクセスと前記第2のメモリアクセスとのア
クセス時間を自在に変更することができる。
According to the eighteenth aspect, there is provided a data processing method of a print control apparatus for developing print data printable by a printing unit on a memory based on data input via a predetermined communication medium. The first memory access is performed such that a first memory access generated from a different source and a second memory access generated from a CPU have a different priority to the memory based on an analysis result of the print data at a different ratio. And an arbitration step of arbitrating between the first memory access and the second memory access, so that the arbitration can be performed such that the first memory access takes precedence over the second memory access at a different ratio according to the input print data, Optimal memory access to complete the expansion processing within the allowable time set for print data expansion to memory even if the contents of print data fluctuates Next, a specific overrun occurs that depends on the print data can be prevented. According to the nineteenth aspect, the arbitration step includes the step of:
Since the access time between the U access and the direct memory access from a plurality of sources is arbitrated at different ratios, the access time between the first memory access and the second memory access can be freely changed.

【0123】第20の発明によれば、前記調停工程は、
前記メモリに対するCPUアクセス回数とダイレクトメ
モリアクセス回数とをカウントして前記メモリに対する
CPUアクセスとダイレクトメモリアクセスとのアクセ
ス比率が異なるように優先順位を設定する複数の優先順
位切換え信号を生成するカウンタ工程と、前記メモリに
記憶されるデータを解析する解析工程と、前記解析工程
による前記データの解析結果に基づいて前記カウンタ工
程により生成される複数の優先順位切換え信号中から1
つの優先順位切換え信号を選択する選択工程とを有し、
前記選択工程により選択された1つの優先順位切換え信
号に基づいてCPUアクセスとダイレクトメモリアクセ
スとのいずれか一方を有効状態とし、他方を無効状態と
して前記メモリに対するCPUアクセスとダイレクトメ
モリアクセスとを調停するので、入力されるデータに応
じてメモリに対するCPUアクセスとダイレクトメモリ
アクセスとのアクセス比率を動的に可変することが可能
となり、入力データに応じて自在に連続DMAのアクセ
ス時間を加減できる。
According to the twentieth aspect, the arbitration step comprises:
A counter step of counting the number of CPU accesses to the memory and the number of direct memory accesses and generating a plurality of priority switching signals for setting priorities so that the access ratio between the CPU access and the direct memory access to the memory is different; An analyzing step of analyzing data stored in the memory; and one of a plurality of priority order switching signals generated by the counter step based on an analysis result of the data by the analyzing step.
Selecting one of the two priority switching signals,
Based on one priority switching signal selected in the selection step, one of the CPU access and the direct memory access is set to the valid state, and the other is set to the invalid state to arbitrate the CPU access and the direct memory access to the memory. Therefore, the access ratio between the CPU access and the direct memory access to the memory can be dynamically changed according to the input data, and the access time of the continuous DMA can be freely adjusted according to the input data.

【0124】第21の発明によれば、前記解析工程は、
前記メモリに記憶されるデータの容量を解析するので、
入力されるデータの容量に応じてメモリに対するCPU
アクセスとダイレクトメモリアクセスとのアクセス比率
を動的に可変することが可能となり、入力データの容量
に応じて自在に連続DMAのアクセス時間を加減でき
る。
According to the twenty-first aspect, the analyzing step includes:
Since the capacity of data stored in the memory is analyzed,
CPU for memory according to the capacity of input data
The access ratio between the access and the direct memory access can be dynamically changed, and the access time of the continuous DMA can be freely adjusted according to the capacity of the input data.

【0125】第22の発明によれば、前記解析工程は、
前記メモリに記憶されるデータの展開処理時間を解析す
るので、入力されるデータの展開処理時間に応じてメモ
リに対するCPUアクセスとダイレクトメモリアクセス
とのアクセス比率を動的に可変することが可能となり、
入力データの展開処理時間に応じて自在に連続DMAの
アクセス時間とCPUアクセス時間とを調整できる。
According to the twenty-second aspect, the analyzing step includes:
Since the processing time for expanding the data stored in the memory is analyzed, it is possible to dynamically change the access ratio between CPU access and direct memory access to the memory according to the processing time for expanding the input data.
The continuous DMA access time and the CPU access time can be freely adjusted according to the input data expansion processing time.

【0126】第23の発明によれば、前記データは、所
定のページ単位またはバンド単位に基づいて前記メモリ
に記憶されるので、所定のページ単位またはバンド単位
で入力されるデータに応じて自在に連続DMAのアクセ
ス時間とCPUアクセス時間とを調整できる。
According to the twenty-third aspect, the data is stored in the memory based on a predetermined page unit or a band unit, so that the data can be freely set in accordance with the data input in the predetermined page unit or the band unit. The continuous DMA access time and the CPU access time can be adjusted.

【0127】第24の発明によれば、前記データは、イ
メージデータまたはテキストデータとするので、イメー
ジデータまたはテキストデータに応じて自在に連続DM
Aのアクセス時間とCPUアクセス時間とを調整でき
る。
According to the twenty-fourth aspect, since the data is image data or text data, continuous DM can be freely performed according to the image data or text data.
The access time of A and the CPU access time can be adjusted.

【0128】従って、メモリに対するデータを伸長,展
開,ビデオ出力等のデータ転送要求時にDMA要求が頻
発する事態が発生しても、正常に印刷データを転送し
て、データ転送時におけるオーバランの発生を回避して
CPUとDMAとの双方のアクセスを効率的に処理でき
るメモリアクセス環境を自在に整備することができる等
の効果を奏する。
Therefore, even if a DMA request frequently occurs at the time of a data transfer request such as decompression, decompression, or video output to the memory, print data is transferred normally, and an overrun at the time of data transfer is prevented. It is possible to freely prepare a memory access environment which can avoid and efficiently process both accesses of the CPU and the DMA.

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

【図1】本発明の第1実施形態を示すDMA制御装置の
構成を説明する回路ブロック図である。
FIG. 1 is a circuit block diagram illustrating a configuration of a DMA control device according to a first embodiment of the present invention.

【図2】図1に示したカウンタの詳細構成を説明する回
路ブロック図である。
FIG. 2 is a circuit block diagram illustrating a detailed configuration of a counter shown in FIG.

【図3】本発明に係るDMA制御装置の動作を説明する
タイミングチャートである。
FIG. 3 is a timing chart illustrating the operation of the DMA control device according to the present invention.

【図4】本発明に係るDMA制御装置におけるデータ処
理手順の一例を示すフローチャートである。
FIG. 4 is a flowchart illustrating an example of a data processing procedure in the DMA control device according to the present invention.

【図5】本発明に係るデータ処理装置を適用可能な印刷
システムで読み出し可能な各種データ処理プログラムを
格納する記憶媒体のメモリマップを説明する図である。
FIG. 5 is a diagram illustrating a memory map of a storage medium that stores various data processing programs that can be read by a printing system to which the data processing device according to the present invention can be applied.

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

1 CPU 2 RAM 3 外部インタフェース 4 ROM 5 システムバス 101 カウンタ 102 セレクタ 103 JKF/F 104 ORゲート 105 INVゲート 106 NANDゲート 107 NANDゲート 108 ANDゲート 109 ANDゲート 110 DF/F 111 DF/F 1 CPU 2 RAM 3 External interface 4 ROM 5 System bus 101 Counter 102 Selector 103 JKF / F 104 OR gate 105 INV gate 106 NAND gate 107 NAND gate 108 AND gate 109 AND gate 110 DF / F 111 DF / F

Claims (24)

【特許請求の範囲】[Claims] 【請求項1】 メモリに対するCPUからのCPUアク
セスと複数のソースからのダイレクトメモリアクセスと
を制御するDMA制御装置であって、 前記メモリに対するCPUアクセス回数とダイレクトメ
モリアクセス回数とをカウントして前記メモリに対する
CPUアクセスとダイレクトメモリアクセスとのアクセ
ス比率が異なるように優先順位を設定する複数の優先順
位切換え信号を生成するカウンタ手段と、 前記メモリに記憶されるデータを解析する解析手段と、 前記解析手段による前記データの解析結果に基づいて前
記カウンタ手段により生成される複数の優先順位切換え
信号中から1つの優先順位切換え信号を選択する選択手
段と、 前記選択手段により選択された1つの優先順位切換え信
号に基づいてCPUアクセスとダイレクトメモリアクセ
スとのいずれか一方を有効状態とし、他方を無効状態と
して前記メモリに対するCPUアクセスとダイレクトメ
モリアクセスとを調停する調停手段と、を有することを
特徴とするDMA制御装置。
1. A DMA control device for controlling CPU access to a memory from a CPU and direct memory access from a plurality of sources, wherein the DMA controller counts the number of CPU accesses to the memory and the number of direct memory accesses to the memory. Counter means for generating a plurality of priority switching signals for setting priorities so that the access ratio between CPU access and direct memory access to the memory is different; analysis means for analyzing data stored in the memory; and analysis means Selecting means for selecting one priority switching signal from a plurality of priority switching signals generated by the counter means based on the analysis result of the data, and one priority switching signal selected by the selecting means Access and direct based on DMA controller, characterized in that it comprises an arbitration unit as either the valid state of the memory access, arbitrates the CPU access and direct memory access to the memory and the other as the invalid state, the.
【請求項2】 前記解析手段は、前記メモリに記憶され
るデータの容量を解析することを特徴とする請求項1記
載のDMA制御装置。
2. The DMA control device according to claim 1, wherein said analysis means analyzes a capacity of data stored in said memory.
【請求項3】 前記解析手段は、前記メモリに記憶され
るデータの展開処理時間を解析することを特徴とする請
求項1記載のDMA制御装置。
3. The DMA control device according to claim 1, wherein said analysis means analyzes a data development processing time of the data stored in said memory.
【請求項4】 前記データは、所定のページ単位または
バンド単位に基づいて前記メモリに記憶されることを特
徴とする請求項1〜3のいずれかに記載のDMA制御装
置。
4. The DMA controller according to claim 1, wherein the data is stored in the memory based on a predetermined page unit or band unit.
【請求項5】 前記データは、イメージデータまたはテ
キストデータとすることを特徴とする請求項1〜4のい
ずれかに記載のDMA制御装置。
5. The DMA control device according to claim 1, wherein said data is image data or text data.
【請求項6】 所定の通信媒体を介して入力されるデー
タに基づいて印刷部が印刷可能な印刷データをメモリ上
に展開処理する印刷制御装置であって、 前記印刷データの解析結果に基づいて前記メモリに対し
て異なるソースから発生する第1のメモリアクセスとC
PUから発生する第2のメモリアクセスとが異なる比率
で優先するように前記第1のメモリアクセスと前記第2
のメモリアクセスとを調停する調停手段を有することを
特徴とする印刷制御装置。
6. A print control apparatus for developing print data printable by a printing unit on a memory based on data input via a predetermined communication medium, wherein the print control unit performs processing based on an analysis result of the print data. A first memory access originating from different sources to said memory and C
The first memory access and the second memory access so that the second memory access generated from the PU takes priority at a different ratio.
And a arbitration unit for arbitrating the memory access.
【請求項7】 前記調停手段は、前記メモリに対するC
PUからのCPUアクセスと複数のソースからのダイレ
クトメモリアクセスとのアクセス時間を異なる比率で調
停することを特徴とする請求項6記載の印刷制御装置。
7. The arbitration means according to claim 1, wherein
7. The print control apparatus according to claim 6, wherein the access time between the CPU access from the PU and the direct memory access from a plurality of sources is adjusted at different ratios.
【請求項8】 前記調停手段は、前記メモリに対するC
PUアクセス回数とダイレクトメモリアクセス回数とを
カウントして前記メモリに対するCPUアクセスとダイ
レクトメモリアクセスとのアクセス比率が異なるように
優先順位を設定する複数の優先順位切換え信号を生成す
るカウンタ手段と、 前記メモリに記憶されるデータを解析する解析手段と、 前記解析手段による前記データの解析結果に基づいて前
記カウンタ手段により生成される複数の優先順位切換え
信号中から1つの優先順位切換え信号を選択する選択手
段とを有し、 前記選択手段により選択された1つの優先順位切換え信
号に基づいてCPUアクセスとダイレクトメモリアクセ
スとのいずれか一方を有効状態とし、他方を無効状態と
して前記メモリに対するCPUアクセスとダイレクトメ
モリアクセスとを調停することを特徴とする請求項6記
載の印刷制御装置。
8. The arbitration means according to claim 5, wherein
Counter means for counting a number of PU accesses and a number of direct memory accesses, and generating a plurality of priority order switching signals for setting priorities so that an access ratio between CPU access and direct memory access to the memory is different; Analyzing means for analyzing data stored in the memory means, and selecting means for selecting one priority switching signal from a plurality of priority switching signals generated by the counter means based on the analysis result of the data by the analyzing means. CPU access to the memory and direct memory access to the memory with one of CPU access and direct memory access being enabled and the other being disabled based on one priority switching signal selected by the selection means. Features arbitration with access The print control apparatus according to claim 6.
【請求項9】 前記解析手段は、前記メモリに記憶され
るデータの容量を解析することを特徴とする請求項8記
載の印刷制御装置。
9. The print control apparatus according to claim 8, wherein the analysis unit analyzes a capacity of data stored in the memory.
【請求項10】 前記解析手段は、前記メモリに記憶さ
れるデータの展開処理時間を解析することを特徴とする
請求項8記載の印刷制御装置。
10. The print control apparatus according to claim 8, wherein said analysis means analyzes a time required for developing the data stored in said memory.
【請求項11】 前記データは、所定のページ単位また
はバンド単位に基づいて前記メモリに記憶されることを
特徴とする請求項8〜10のいずれかに記載の印刷制御
装置。
11. The print control device according to claim 8, wherein the data is stored in the memory based on a predetermined page unit or a band unit.
【請求項12】 前記データは、イメージデータまたは
テキストデータとすることを特徴とする請求項8〜11
のいずれかに記載の印刷制御装置。
12. The data according to claim 8, wherein the data is image data or text data.
The print control device according to any one of the above.
【請求項13】 メモリに対するCPUからのCPUア
クセスと複数のソースからのダイレクトメモリアクセス
とを制御するDMA制御装置のデータ処理方法であっ
て、 前記メモリに対するCPUアクセス回数とダイレクトメ
モリアクセス回数とをカウントして前記メモリに対する
CPUアクセスとダイレクトメモリアクセスとのアクセ
ス比率が異なるように優先順位を設定する複数の優先順
位切換え信号を生成するカウンタ工程と、 前記メモリに記憶されるデータを解析する解析工程と、 前記解析工程による前記データの解析結果に基づいて前
記カウンタ手段により生成される複数の優先順位切換え
信号中から1つの優先順位切換え信号を選択する選択工
程と、 前記選択工程により選択された1つの優先順位切換え信
号に基づいてCPUアクセスとダイレクトメモリアクセ
スとのいずれか一方を有効状態とし、他方を無効状態と
して前記メモリに対するCPUアクセスとダイレクトメ
モリアクセスとを調停する調停工程と、を有することを
特徴とするDMA制御装置のデータ処理方法。
13. A data processing method for a DMA controller which controls a CPU access to a memory from a CPU and a direct memory access from a plurality of sources, wherein the number of CPU accesses and the number of direct memory accesses to the memory are counted. A counter step of generating a plurality of priority switching signals for setting priorities so that an access ratio between CPU access and direct memory access to the memory is different; and an analyzing step of analyzing data stored in the memory. A selecting step of selecting one priority switching signal from a plurality of priority switching signals generated by the counter means based on a result of the analysis of the data by the analyzing step; CPU based on priority switching signal An arbitration step of arbitrating a CPU access and a direct memory access to the memory by setting one of the access and the direct memory access to an effective state and setting the other to an invalid state. Method.
【請求項14】 前記解析工程は、前記メモリに記憶さ
れるデータの容量を解析することを特徴とする請求項1
3記載のDMA制御装置のデータ処理方法。
14. The method according to claim 1, wherein the analyzing step analyzes an amount of data stored in the memory.
4. The data processing method of the DMA control device according to 3.
【請求項15】 前記解析工程は、前記メモリに記憶さ
れるデータの展開処理時間を解析することを特徴とする
請求項13記載のDMA制御装置のデータ処理方法。
15. The data processing method for a DMA control device according to claim 13, wherein said analyzing step analyzes a data expansion processing time of data stored in said memory.
【請求項16】 前記データは、所定のページ単位また
はバンド単位に基づいて前記メモリに記憶されることを
特徴とする請求項13〜15のいずれかに記載のDMA
制御装置のデータ処理方法。
16. The DMA according to claim 13, wherein the data is stored in the memory based on a predetermined page unit or band unit.
A data processing method for the control device.
【請求項17】 前記データは、イメージデータまたは
テキストデータとすることを特徴とする請求項13〜1
6のいずれかに記載のDMA制御装置のデータ処理方
法。
17. The data processing method according to claim 13, wherein the data is image data or text data.
6. The data processing method of the DMA control device according to any one of 6.
【請求項18】 所定の通信媒体を介して入力されるデ
ータに基づいて印刷部が印刷可能な印刷データをメモリ
上に展開処理する印刷制御装置のデータ処理方法であっ
て、 前記印刷データの解析結果に基づいて前記メモリに対し
て異なるソースから発生する第1のメモリアクセスとC
PUから発生する第2のメモリアクセスとが異なる比率
で優先するように前記第1のメモリアクセスと前記第2
のメモリアクセスとを調停する調停工程を有することを
特徴とする印刷制御装置のデータ処理方法。
18. A data processing method of a print control device for developing print data printable by a printing unit on a memory based on data input via a predetermined communication medium, wherein the analysis of the print data is performed. A first memory access originating from a different source to the memory based on the result and C
The first memory access and the second memory access so that the second memory access generated from the PU takes priority at a different ratio.
A data processing method for a print control device, comprising an arbitration step of arbitrating between memory accesses.
【請求項19】 前記調停工程は、メモリに対するCP
UからのCPUアクセスと複数のソースからのダイレク
トメモリアクセスとのアクセス時間を異なる比率で調停
することを特徴とする請求項18記載の印刷制御装置の
データ処理方法。
19. The arbitration step includes the step of:
20. The data processing method for a print control device according to claim 18, wherein access times of CPU access from U and direct memory access from a plurality of sources are arbitrated at different ratios.
【請求項20】 前記調停工程は、前記メモリに対する
CPUアクセス回数とダイレクトメモリアクセス回数と
をカウントして前記メモリに対するCPUアクセスとダ
イレクトメモリアクセスとのアクセス比率が異なるよう
に優先順位を設定する複数の優先順位切換え信号を生成
するカウンタ工程と、 前記メモリに記憶されるデータを解析する解析工程と、 前記解析工程による前記データの解析結果に基づいて前
記カウンタ工程により生成される複数の優先順位切換え
信号中から1つの優先順位切換え信号を選択する選択工
程とを有し、 前記選択工程により選択された1つの優先順位切換え信
号に基づいてCPUアクセスとダイレクトメモリアクセ
スとのいずれか一方を有効状態とし、他方を無効状態と
して前記メモリに対するCPUアクセスとダイレクトメ
モリアクセスとを調停することを特徴とする請求項18
記載の印刷制御装置のデータ処理方法。
20. The arbitration step, wherein the number of CPU accesses to the memory and the number of direct memory accesses are counted, and a plurality of priorities are set so that an access ratio between the CPU access and the direct memory access to the memory is different. A counter step of generating a priority switching signal; an analyzing step of analyzing data stored in the memory; and a plurality of priority switching signals generated by the counter step based on an analysis result of the data by the analyzing step. A selecting step of selecting one of the priority switching signals from among the above, wherein one of the CPU access and the direct memory access is enabled based on the one priority switching signal selected in the selecting step, CPU access to the memory with the other disabled. 19. The method according to claim 18, wherein the arbitration is performed between the memory and the direct memory access.
The data processing method of the print control device according to the above.
【請求項21】 前記解析工程は、前記メモリに記憶さ
れるデータの容量を解析することを特徴とする請求項2
0記載の印刷制御装置のデータ処理方法。
21. The method according to claim 2, wherein the analyzing step analyzes an amount of data stored in the memory.
0. The data processing method of the print control device according to 0.
【請求項22】 前記解析工程は、前記メモリに記憶さ
れるデータの展開処理時間を解析することを特徴とする
請求項20記載の印刷制御装置のデータ処理方法。
22. The data processing method for a print control device according to claim 20, wherein said analyzing step analyzes a time required for developing data stored in said memory.
【請求項23】 前記データは、所定のページ単位また
はバンド単位に基づいて前記メモリに記憶されることを
特徴とする請求項18〜20のいずれかに記載の印刷制
御装置のデータ処理方法。
23. The data processing method according to claim 18, wherein the data is stored in the memory based on a predetermined page unit or a band unit.
【請求項24】 前記データは、イメージデータまたは
テキストデータとすることを特徴とする請求項18〜2
3のいずれかに記載の印刷制御装置のデータ処理方法。
24. The data processing method according to claim 18, wherein the data is image data or text data.
3. The data processing method of the print control device according to any one of 3.
JP10964298A 1998-04-20 1998-04-20 Dma controller and data processing method thereof, and print controller and data processing method thereof Pending JPH11306130A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10964298A JPH11306130A (en) 1998-04-20 1998-04-20 Dma controller and data processing method thereof, and print controller and data processing method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10964298A JPH11306130A (en) 1998-04-20 1998-04-20 Dma controller and data processing method thereof, and print controller and data processing method thereof

Publications (1)

Publication Number Publication Date
JPH11306130A true JPH11306130A (en) 1999-11-05

Family

ID=14515466

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10964298A Pending JPH11306130A (en) 1998-04-20 1998-04-20 Dma controller and data processing method thereof, and print controller and data processing method thereof

Country Status (1)

Country Link
JP (1) JPH11306130A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6691182B2 (en) 2000-07-04 2004-02-10 Renesas Technology Corp. DMA controller in which bus access ratio can be set

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6691182B2 (en) 2000-07-04 2004-02-10 Renesas Technology Corp. DMA controller in which bus access ratio can be set

Similar Documents

Publication Publication Date Title
US11526276B2 (en) Upgrade management method and scheduling node, and storage system
US5710873A (en) Apparatus and method for maximizing a rate of image data transfer in a printing system
GB2429380A (en) Controller for a shared bus which can switch between arbitration algorithms dependent upon a process to be run
JP2006195867A (en) Bus arbitration method and semiconductor device
EP2423824A1 (en) Data transfer device, method of transferring data, and image forming apparatus
US5682467A (en) Arbitrating apparatus for controlling selective access of multiple bus masters to a printing system video bus
US8359564B2 (en) Circuit design information generating equipment, function execution system, and memory medium storing program
JPH11306130A (en) Dma controller and data processing method thereof, and print controller and data processing method thereof
US20160154603A1 (en) Data transfer control device, apparatus including the same, and data transfer control method
JPH09153009A (en) Arbitration method for hierarchical constitution bus
JP2001043052A (en) Host device, printer and printer system
JP2000148663A (en) Dma device and image forming device using the dma device
JP2002203236A (en) Image processor, method for controlling image processor and storage medium
JP2001238019A (en) Method and controller for data transfer, image processor and image forming device
CN113395700B (en) Basic service set management method, communication device, and storage medium
JP7098955B2 (en) Controller and image forming device
JP3809284B2 (en) Image generating apparatus, control method therefor, and printing apparatus
JP2018118477A (en) Image processing device, control method and program of the same
JP2002259326A (en) Dma controller and dma transferring method
US6681260B1 (en) Data transfer method in function expansion system
CN115454909A (en) AHB bus matrix arbitration device, system, method and storage medium
JP3353368B2 (en) Bus relay device
JPH11282888A (en) Data communication method in system to be designed based on system specification description, combination method of interruption controller and synthesizing method of interface circuit
CN117422024A (en) Data bit width conversion method, device, computer equipment and medium
JP2001034574A (en) Dma control device and dma control method, and storage medium