JP3323751B2 - Printing equipment - Google Patents
Printing equipmentInfo
- Publication number
- JP3323751B2 JP3323751B2 JP23974396A JP23974396A JP3323751B2 JP 3323751 B2 JP3323751 B2 JP 3323751B2 JP 23974396 A JP23974396 A JP 23974396A JP 23974396 A JP23974396 A JP 23974396A JP 3323751 B2 JP3323751 B2 JP 3323751B2
- Authority
- JP
- Japan
- Prior art keywords
- address
- print data
- signal
- transfer
- address register
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Record Information Processing For Printing (AREA)
- Laser Beam Printer (AREA)
- Bus Control (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は、印刷装置に関し、特
に、印刷装置において、VIDEO回路が印字データを
エンジン部に転送するとき、並行して描画メモリの初期
化を行う場合に、印字データを転送中と転送後で初期化
のためのアクセス順位(プライオリティ)を変えること
によって、効率的にメモリアクセスを行う機能を持つ印
刷装置に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printing apparatus, and more particularly to a printing apparatus, in which when a VIDEO circuit transfers print data to an engine unit and simultaneously initializes a drawing memory, the print data is transferred to the engine. The present invention relates to a printing apparatus having a function of efficiently performing memory access by changing an access order (priority) for initialization during and after transfer.
【0002】[0002]
【従来の技術】従来の印刷装置では、描画メモリを初期
化(例えば、ゼロクリア)する際、印字データを転送し
ながら行う場合に、印字機構が複雑になり、DMAC
(ダイレクトメモリアクセスコントローラ)のリクエス
トチャンネルが増加すると、DMACにアクセスする他
のブロックと互いに相手リクエストの終了を待つことに
よって、オーバーフロー等の破綻をきたす可能性があっ
た。又、前記のような危険性がある場合には、各ブロッ
クのデータラッチメモリを増やすか(例えば、FIFO
の深さを増すなど)、または、VIDEOのデータ読み
込み動作と初期化動作をシーケンシャルに行い、この危
険性を回避していた。この場合、メモリの使用効率及び
全体としての処理効率が低下していた。2. Description of the Related Art In a conventional printing apparatus, when initializing a drawing memory (for example, clearing to zero) while transferring print data, the printing mechanism becomes complicated and the DMAC becomes complex.
When the number of request channels of the (direct memory access controller) increases, there is a possibility that a failure such as an overflow may occur due to waiting for the end of the request of the other party to the other block accessing the DMAC. If there is a risk as described above, increase the data latch memory of each block (for example, FIFO
Or the like, or the VIDEO data reading operation and the initialization operation are sequentially performed to avoid this danger. In this case, the use efficiency of the memory and the overall processing efficiency have been reduced.
【0003】[0003]
【発明が解決しようとする課題】従って、本発明の第1
の目的は、描画メモリを初期化する際のDMACに対す
るアクセス順位(プライオリティ)を変えることによっ
て、メモリの使用効率及び処理効率を落とすことなく、
効率的に初期化を行う印刷装置を提供することにある。Accordingly, the first aspect of the present invention is as follows.
Is to change the access order (priority) to the DMAC at the time of initializing the drawing memory, without lowering the memory use efficiency and the processing efficiency.
An object of the present invention is to provide a printing apparatus that performs initialization efficiently.
【0004】[0004]
【0005】[0005]
【課題を解決するための手段】上記の第1の目的を達成
するために、本発明は、印刷データを入力する入力手段
と、前記入力手段により入力された印刷データを記憶す
る記憶手段と、印刷データを出力する出力手段と、前記
出力手段に対して印刷データを転送する転送手段と、要
求信号に応じて、前記記憶手段へのアクセスを直接制御
する制御手段と、前記制御手段に対する要求信号の優先
順位付けを行う優先順位付け手段とを有し、前記転送手
段は、前記制御手段に、前記記憶手段に記憶されている
印刷データの読み込みを要求する読み込み要求信号と、
前記記憶手段を初期化する書き込みを要求する書き込み
要求信号とを供給し、前記優先順位付け手段は、1ライ
ンの印刷データが転送されている間は、前記読み込み要
求信号の優先順位を高くし、1ラインの印刷データの転
送が完了すると、前記書き込み要求信号の優先順位を高
くすることを特徴とする印刷装置を採用するものであ
る。In order to achieve the first object, the present invention provides an input means for inputting print data, a storage means for storing the print data input by the input means, Output means for outputting print data, transfer means for transferring print data to the output means, control means for directly controlling access to the storage means in response to a request signal, and a request signal for the control means A transfer request means for requesting the control means to read the print data stored in the storage means,
A write request signal for requesting a write for initializing the storage means, and the priority assigning means increases the priority of the read request signal while print data of one line is being transferred; When the transfer of one line of print data is completed, the priority of the write request signal is increased, and a printing apparatus is adopted.
【0006】[0006]
【0007】[0007]
【作用】本発明では、描画メモリの初期化時に、印字デ
ータの出力部への転送期間とそうでない期間に対して、
初期化のためのメモリアクセスの優先順位を変えること
によって、特に、メモリにアクセスするソースが多数存
在するシステムに対して効率的なメモリアクセスを実現
し、処理効率を向上させ、また、無駄な一時記憶メモリ
を削減する。According to the present invention, at the time of initialization of the drawing memory, the period for transferring the print data to the output unit and the period for not transferring the print data are determined.
By changing the priority of memory access for initialization, it is possible to achieve efficient memory access, especially for a system with many sources accessing memory, improve processing efficiency, and reduce unnecessary temporary use. Reduce storage memory.
【0008】本発明では、描画メモリの初期化時に、印
字データの出力部への転送期間とそうでない期間に対し
て、初期化のためのメモリアクセスの頻度を変動させる
ことによって、特に、メモリにアクセスするソースが多
数存在するシステムに対して効率的なメモリアクセスを
実現し、処理効率を向上させ、また、無駄な一時記憶メ
モリを削減する。According to the present invention, when the drawing memory is initialized, the frequency of the memory access for initialization is changed between the transfer period of the print data to the output unit and the period during which the print data is not transferred. The present invention realizes efficient memory access to a system having a large number of sources to be accessed, improves processing efficiency, and reduces unnecessary temporary storage memory.
【0009】[0009]
【実施例】以下、図面を参照して本発明の実施例を説明
する。Embodiments of the present invention will be described below with reference to the drawings.
【0010】図1は、本発明の各実施例に共通な主要な
回路を示す回路ブロック図である。図1において、10
0は、CPU(中央演算処理装置)である。101は、
制御プログラムや各種データの格納及び作業領域のため
のワークメモリ(RAM及びROM)である。102
は、CPUを介さずに直接メモリアクセスを制御するD
MAC(ダイレクトメモリアクセスコントローラ)であ
る。103は、印字データを格納する描画メモリであ
り、印字データは描画メモリ103からVIDEO回路
104を介して印刷部(エンジン部)107に転送され
る。105及び106は、DMACに対するVIDEO
回路以外のDMAリクエストソースが多数存在すること
を表している。FIG. 1 is a circuit block diagram showing main circuits common to each embodiment of the present invention. In FIG. 1, 10
0 is a CPU (Central Processing Unit). 101 is
A work memory (RAM and ROM) for storing a control program and various data and a work area. 102
D directly controls memory access without going through the CPU.
MAC (Direct Memory Access Controller). A drawing memory 103 stores print data. The print data is transferred from the drawing memory 103 to a printing unit (engine unit) 107 via the VIDEO circuit 104. 105 and 106 are VIDEO for DMAC
This indicates that there are many DMA request sources other than circuits.
【0011】本発明は、多数のDMAリクエストソース
が存在してアビートレーションを行っているためバスが
混雑しているとき、最も優先順序の高いVIDEO回路
が描画メモリに格納された印字データをエンジンに転送
しながら描画メモリの初期化を行う場合に、他のブロッ
クまたはVIDEO回路自身がオーバーフロー等の発生
によってシステムとして破綻をきたさないように効率的
に描画メモリの初期化を行うことができる印刷装置を提
供するものである。According to the present invention, when a bus is congested because a large number of DMA request sources are present and performing arbitration, the VIDEO circuit having the highest priority order prints the print data stored in the drawing memory to the engine. A printing apparatus that can efficiently initialize a drawing memory so that another block or the VIDEO circuit itself does not break down due to an overflow or the like when the drawing memory is initialized while transferring the data to the system. Is provided.
【0012】(実施例1)図2は、VIDEO回路とD
MAC間の信号のやり取りを示すブロック図である。な
お、DMAC回路202(図1の102に対応)がアド
レスを管理している場合を想定している。なお、201
はVIDEO回路(図1の101に対応)であり、20
3は描画メモリ(図1の103に対応)である。(Embodiment 1) FIG. 2 shows a VIDEO circuit and D
FIG. 3 is a block diagram illustrating exchange of signals between MACs. It is assumed that the DMAC circuit 202 (corresponding to 102 in FIG. 1) manages addresses. Note that 201
Is a VIDEO circuit (corresponding to 101 in FIG. 1);
Reference numeral 3 denotes a drawing memory (corresponding to 103 in FIG. 1).
【0013】図3は、DMAC回路201の内部の主要
素子を示すブロック図である。302〜305〜は、ア
ドレス設定レジスタである。これらのブロックの外部よ
りこれらのレジスタにスタートアドレスがセットされ
る。図3において、302から順にプライオリティが高
いものとする。301は、DMAC制御本体であり、こ
のブロックに外部からのDMAリクエスト及びリード/
ライト信号が入力されると、各種の制御信号が発生し、
最初にアドレスセレクタ310によって出力アドレスが
決定され、次いでRAS/CAS等のDRAM制御信号
が出力される。ここで、1回の読み込み及び書き込みが
終了すると、その分のカウント(例えば、一般的なバー
ストアクセスならば4カウント)がスタートアドレスに
足されてセレクタ306〜309〜がアドレス書き戻し
バスに切り換えられ、アドレスレジスタ302〜305
〜に書き戻される。この時点で1回のアクセスサイクル
が完了する。FIG. 3 is a block diagram showing main elements inside the DMAC circuit 201. 302 to 305 are address setting registers. Start addresses are set in these registers from outside these blocks. In FIG. 3, it is assumed that the priority is higher in the order from 302. Numeral 301 denotes a DMAC control main unit, which stores an external DMA request and read /
When a write signal is input, various control signals are generated,
First, an output address is determined by the address selector 310, and then a DRAM control signal such as RAS / CAS is output. Here, when one reading and writing is completed, the count (for example, 4 counts in the case of general burst access) is added to the start address, and the selectors 306 to 309 are switched to the address write back bus. , Address registers 302 to 305
Written back to At this point, one access cycle is completed.
【0014】図4は、VIDEO回路とDMAC回路と
の間のタイミングチャートの一例を示す。図4におい
て、BDはエンジンから出力される水平同期信号であ
る。LENDは、1ライン分の印字データの転送を完了
したことを示す信号である。VDORQ−R/VDOR
Q−Wは、リード用/ライト(初期化)用のデータリク
エスト信号である。WNR−R/WNR−Wは、VDO
RQ−R/VDORQ−W信号用のリード/ライト信号
である。COMPは、VDORQ−RとVDORQ−W
のアドレス値が一致した場合にイネーブルとなる信号
(初期化完了を指示する信号)である。PENDは、1
ページの終了を示す信号である。BDからLENDの間
が1ラインの印字データを転送する区間である。FIG. 4 shows an example of a timing chart between the VIDEO circuit and the DMAC circuit. In FIG. 4, BD is a horizontal synchronization signal output from the engine. LEND is a signal indicating that the transfer of one line of print data has been completed. VDORQ-R / VDOR
QW is a data request signal for read / write (initialization). WNR-R / WNR-W is VDO
This is a read / write signal for the RQ-R / VDORQ-W signal. COMP is VDORQ-R and VDORQ-W
Are signals (signals instructing completion of initialization) when the address values match. PEND is 1
This signal indicates the end of the page. A section from BD to LEND is a section for transferring one line of print data.
【0015】一般的にVIDEO回路のアクセス権は最
優先であり、ここで初期化モード(例えば、印字データ
を転送しながらメモリをゼロクリアする)に入ると、リ
ード用アクセスとゼロクリアのためのライトアクセス
は、リードのみの場合に比較して2倍のアクセス時間が
必要となる。この区間内では、次の印字データを準備す
る描画回路などその他のブロックも頻繁にアクセスして
おり、そこに最優先のVIDEO回路が2倍のアクセス
時間を取るとそれだけお互いにオーバーフロー等の破綻
をきたす可能性が高くなる。In general, the access right of the VIDEO circuit has the highest priority. Here, when the initialization mode (for example, the memory is cleared to zero while transferring the print data) is entered, the read access and the write access for zero clear are performed. Requires twice the access time as compared to the case of only reading. In this section, other blocks such as a drawing circuit for preparing the next print data are frequently accessed. If the highest priority VIDEO circuit takes twice as long an access time, the other blocks such as overflows may occur. The chances are high.
【0016】そこで、本発明によれば、VIDEO回路
のアクセスをリード用(VDORQ−R、WNR−R)
とライト用(VDORQ−W、WNR−W)に分離し
て、VIDEO回路が1ラインの印字データを転送して
いる区間は初期化アクセスのプライオリティを低く抑え
て、1ラインの印字データの転送が完了すると、初期化
動作を最優先にすることによって前述の危険を回避す
る。また、各ブロックにおいてメモリからのデータラッ
チを最小限にしてゲート効率を上げることができる(例
えば、オーバーフロー等の破綻を回避するためにFIF
Oの深さを2倍にするなど)。Therefore, according to the present invention, the access of the VIDEO circuit is for reading (VDORQ-R, WNR-R).
And for writing (VDORQ-W, WNR-W), the section in which the VIDEO circuit transfers one line of print data keeps the priority of the initialization access low and transfers one line of print data. Upon completion, the above danger is avoided by prioritizing the initialization operation. In each block, the gate efficiency can be increased by minimizing the number of data latches from the memory (for example, the FIFO is used to avoid a failure such as overflow).
Double the depth of O).
【0017】図4において、VDORQ−Rの〜は
リードアクセスを示している。また、リードアクセスに
追随してプライオリティの低い初期化アクセスVDOR
Q−Wがまばらに発生している。ここで、図3におい
て、アドレス設定レジスタ302はVDORQ−R用の
アドレスレジスタ(アドレス1)であり、アドレス設定
レジスタ305はVDORQ−W用のアドレスレジスタ
(アドレス3)である。In FIG. 4, symbols VDORQ-R indicate read access. In addition, initialization access VDOR having a low priority follows read access.
QW occurs sparsely. Here, in FIG. 3, the address setting register 302 is an address register for VDORQ-R (address 1), and the address setting register 305 is an address register for VDORQ-W (address 3).
【0018】初期化モードに入ると、VDORQ−W
は、VDORQ−Rの1ラインの最終アドレスと一致す
るまで、即ち、図3に示すコンパレータ313からCO
MP信号が発生するまで(言い換えると、COMP信号
がハイレベルとなり、イネーブル状態になるまで)初期
化動作を繰り返す。LENDが発生するまでは、コンパ
レータ313がアドレスレジスタ302のアドレス1と
アドレスレジスタ305のアドレス3の比較を行ってお
り(コンパータ313に、アドレス1はアドレスレジス
タ302から直接入力されており、アドレス3はアドレ
スレジスタ305からセレクタ312を介して入力され
ている)、これらのアドレスが一致していないと、CO
MPをディスネーブル状態(図4において、ローレベ
ル)にしている。なお、アドレスが一致すると、COM
Pはイネーブル状態(図4において、ハイレベル)にな
る。In the initialization mode, VDORQ-W
Until the last address of one line of VDORQ-R is matched, that is, CO is output from the comparator 313 shown in FIG.
The initialization operation is repeated until the MP signal is generated (in other words, until the COMP signal becomes high level and becomes enabled). Until LEND occurs, the comparator 313 compares address 1 of the address register 302 with address 3 of the address register 305 (address 1 is directly input from the address register 302 to the converter 313, and address 3 is Input from the address register 305 via the selector 312). If these addresses do not match, CO
MP is in a disabled state (low level in FIG. 4). If the addresses match, COM
P is enabled (high level in FIG. 4).
【0019】LENDが発生し、この時点で、COMP
がディスネーブル状態であると(なお、COMPがイネ
ーブル状態となっており、初期化が完了している場合に
は下記に説明する動作には入らない)、VIDEO回路
よりアドレスレジスタ311(アドレス2)にラッチ信
号ADDLT2が入力され、現在の最終アドレス(リー
ドの最終アドレス)1がアドレスレジスタ302からア
ドレスレジスタ311(アドレス2)に書き込まれる。
これと同時に、セレクタ312にはアドレス2セレクト
信号ADDSEL2が入力され、セレクタ312は、ア
ドレスレジスタ305からのアドレス3に代えて、アド
レスレジスタ311のアドレス2(最終アドレス1に相
当する)を選択する。したがって、これ以後(COMP
がイネーブル状態になるまで)、コンパレータ313の
一方の入力端子にはアドレスレジスタ311からのアド
レス2(即ち、最終アドレス1)が入力される。LEND occurs, and at this point, COMP
Is disabled (COMP is in an enabled state, and if initialization has been completed, the operation described below will not be performed), the address register 311 (address 2) is output from the VIDEO circuit. , A latch signal ADDLT2 is input to the address register 302, and the current final address (final address of read) 1 is written from the address register 302 to the address register 311 (address 2).
At the same time, the address 3 select signal ADDSEL2 is input to the selector 312, and the selector 312 selects the address 2 (corresponding to the last address 1) of the address register 311 instead of the address 3 from the address register 305. Therefore, hereafter (COMP
Until is enabled), the address 2 (that is, the last address 1) from the address register 311 is input to one input terminal of the comparator 313.
【0020】次に、アドレス1セレクト信号ADDSE
L1がセレクタ306に入力され、アドレス1ラッチ信
号ADDSEL1がアドレスレジスタ302に入力され
ることによって、アドレスレジスタ305のアドレス3
の値がアドレスレジスタ302に書き込まれ、また、コ
ンパレータ313の他方の入力端子に入力されることに
なる。この結果、コンパレータ313は、リードの最終
アドレス1とライト動作中の現在のアドレス3を比較し
続ける。Next, the address 1 select signal ADDSE
L1 is input to the selector 306, and the address 1 latch signal ADDSEL1 is input to the address register 302.
Is written to the address register 302, and is input to the other input terminal of the comparator 313. As a result, the comparator 313 continues to compare the last address 1 of the read with the current address 3 during the write operation.
【0021】前述のように、ライト用のアドレスの変更
が最優先のプライオリティを持つアドレスレジスタ30
2を用いて行われることになるので、LENDの発生以
降は初期化動作(ライト動作)が最優先となる。その
後、初期化動作が完了するまで、即ち、ライトアドレス
がリードの最終アドレスと一致するまで実行される。
又、この区間においては(LEND発生から初期化動作
完了まで)、WNR−Rはライト信号WNR−Wとして
働く。初期化が最終アドレスまで完了し、COMPが発
生すると、VIDEO回路は動作を止め、ADDSEL
2がセレクタ312に入力され、セレクタ312はアド
レスレジスタ311のアドレス2に代えて再びアドレス
3を選択し、次の水平同期信号BDを待つ。As described above, the change of the write address is performed by the address register 30 having the highest priority.
2, the initialization operation (write operation) has the highest priority after the occurrence of LEND. Thereafter, the process is executed until the initialization operation is completed, that is, until the write address matches the final address of the read.
In this section (from the occurrence of LEND to the completion of the initialization operation), WNR-R functions as a write signal WNR-W. When initialization is completed up to the final address and COMP occurs, the VIDEO circuit stops operating and ADDSEL
2 is input to the selector 312, and the selector 312 again selects the address 3 in place of the address 2 of the address register 311 and waits for the next horizontal synchronizing signal BD.
【0022】言うまでもなく、本発明は、VIDEO回
路の初期化の機構についてのものであってDMAC回路
はどのような形態であっても構わない。実施例において
は、DMAC側がアドレスを管理しているが、別に各ブ
ロックがそれぞれにアドレスを管理してもよい。その場
合には、図3の符号302、305、311〜313等
で示す機構はVIDEO回路内部に含まれることにな
る。It goes without saying that the present invention relates to a mechanism for initializing a VIDEO circuit, and the DMAC circuit may take any form. In the embodiment, the DMAC manages the address, but each block may separately manage the address. In that case, the mechanisms denoted by reference numerals 302, 305, 311 to 313 in FIG. 3 are included in the VIDEO circuit.
【0023】(実施例2)実施例1では、初期化動作が
1ラインこどに最終アドレスまで完了することを前提と
していたが、次の水平同期信号BDが来るまでに前1ラ
イン分の初期化が間に合わない場合も考えられる。もし
も、LENDが発生して次のBDまでに初期化が完了す
るための十分な時間がない可能性がある場合には、この
区間に対して、VIDEO回路からアドレス3ラッチイ
ネーブル信号であるADDLT3ENをアドレスレジス
タ305に入力して、アドレス1への書き戻しと同時
に、アドレス3にも強制的に同じ値を書き戻す。(Embodiment 2) In the first embodiment, it is assumed that the initialization operation is completed up to the last address for each child, but the initial operation for the previous one line is required before the next horizontal synchronizing signal BD comes. In some cases, it may not be possible to make it in time. If there is a possibility that there is not enough time for the initialization to be completed by the next BD after the occurrence of the LEND, the address 3 latch enable signal ADDLT3EN is supplied from the VIDEO circuit to this section. The same value is input to the address register 305 and the same value is forcibly written back to the address 3 simultaneously with the write back to the address 1.
【0024】図5は実施例2の場合のタイミングチャー
トである。前ラインの初期化がまで終わったときに次
のBDがきた場合には、アドレスレジスタ305には、
既にのスタートアドレスが設定されているので、次の
ラインの初期化は、前ラインのから始まり、最終的に
つぎのページの印字開始を示す垂直同期信号が来るまで
1ページの初期化を完了して、図5のPEND信号を出
力する(COMP信号がイネーブルとなる)。なお、前
述の動作は、一定の領域単位(バンド単位)に初期化を
完了するようにしてもかまわない。FIG. 5 is a timing chart in the case of the second embodiment. If the next BD arrives when the initialization of the previous line is completed, the address register 305 stores
Since the start address has already been set, the initialization of the next line starts from the previous line, and finally the initialization of one page is completed until a vertical synchronization signal indicating the start of printing of the next page comes. Then, the PEND signal of FIG. 5 is output (the COMP signal is enabled). Note that the above-described operation may be performed such that the initialization is completed in a fixed area unit (band unit).
【0025】(実施例3)図6は、VIDEO回路とD
MAC間の信号のやり取りを示すブロック図である。な
お、DMAC回路402(図1の102に対応)がアド
レスを管理している場合を想定している。なお、401
はVIDEO回路(図1の101に対応)であり、40
3は描画メモリ(図1の103に対応)である。(Embodiment 3) FIG. 6 shows a VIDEO circuit and D
FIG. 3 is a block diagram illustrating exchange of signals between MACs. It is assumed that the DMAC circuit 402 (corresponding to 102 in FIG. 1) manages addresses. Note that 401
Is a VIDEO circuit (corresponding to 101 in FIG. 1);
Reference numeral 3 denotes a drawing memory (corresponding to 103 in FIG. 1).
【0026】図7は、VIDEO回路の内部の概略を示
すブロツク図であり、特に本発明に関係するDMACと
のインターフェース部分のブロックを表している。図7
において、502、503はライト及びリード用のアド
レス設定レジスタである。このブロック外部よりこれら
のレジスタ502、503にスタートアドレスがセット
されることになる。501は、アドレスカウンタであ
る。FIG. 7 is a block diagram schematically showing the inside of the VIDEO circuit, and particularly shows a block of an interface with the DMAC related to the present invention. FIG.
, 502 and 503 are write and read address setting registers. A start address is set in these registers 502 and 503 from outside this block. 501 is an address counter.
【0027】セレクタ506を通してリードまたはライ
トアドレスがアドレスカウンタ501にロードされ、ア
クセスごとに適当にインクリメントされる。アドレスカ
ウンタ501よりDMAC402(図6)に出力された
1回のアクセスにおける最終アドレスは、アドレス書き
戻しパスによってセレクタ504または505を通して
リードアドレスレジスタ503またはライトアドレスレ
ジスタ502に書き戻される。508は、FIFOメモ
リであり、DMACに対して出したDMAC要求信号に
よって得られたDATAを格納する場所である。A read or write address is loaded into the address counter 501 through the selector 506, and is appropriately incremented for each access. The final address in one access output from the address counter 501 to the DMAC 402 (FIG. 6) is written back to the read address register 503 or the write address register 502 through the selector 504 or 505 by an address write-back path. Reference numeral 508 denotes a FIFO memory for storing DATA obtained by a DMAC request signal issued to the DMAC.
【0028】このFIFOは、3/4,1/2,1/4
等の残量フラグが付いており、その情報はDMACI/
F制御回路309に逐次に渡されるように構成されてい
る。このDMACI/F制御回路309は、各セレクタ
504、505、506、アドレスカウンタ501、F
IFO508等を制御するシーケンサーである。これか
ら、DMACへのDMAC要求信号VDORQ等の信号
が適切なタイミングで出力される。507は、リードア
ドレス値とライトアドレス値を比較している比較回路で
ある。両値が一致した場合にイネーブル’H’の信号が
DMACI/F制御回路309に入力される。This FIFO is 3/4, 1/2, 1/4
Etc., and the information is DMACI /
It is configured to be sequentially passed to the F control circuit 309. This DMACI / F control circuit 309 includes selectors 504, 505, 506, address counters 501, F
It is a sequencer that controls the IFO 508 and the like. From this, signals such as the DMAC request signal VDORQ to the DMAC are output at appropriate timing. A comparison circuit 507 compares a read address value and a write address value. When both values match, an enable “H” signal is input to the DMACI / F control circuit 309.
【0029】図8は、DMACとDMAC以外の他のブ
ロックとの間の基本的なタイミングチャートの一例であ
る。まず、DMAC要求信号DREQが出力されると、
始めの1CLK区間てDMAC内部において他のブロッ
クのDMAC要求信号とのアビートレーションがとら
れ、図8に示すように、2CLK目の立ち上がりからデ
ータイネーブル信号DATAENがデータ要求もとに返
される。DATAEN信号を受け取ったブロックは、こ
の信号を契機としてデータの読み込み及び書き込みを行
う。FIG. 8 is an example of a basic timing chart between the DMAC and blocks other than the DMAC. First, when the DMAC request signal DREQ is output,
In the first 1 CLK period, the abbreviated with the DMAC request signal of another block is set inside the DMAC, and as shown in FIG. 8, the data enable signal DATAEN is returned to the source of the data request from the rising edge of the second CLK. The block receiving the DATAEN signal reads and writes data with this signal as a trigger.
【0030】図9は、本発明に関係するVIDEOとD
MAC間のタイミングチャートの例である。VDORQ
は、VIDEO回路のデータ要求信号、VDODEN
は、VIDEO用のデータイネーブル信号である。WN
Rは、リード/ライト信号である。LEAVEは、FI
FOの残量を示すフラグであり、所定の量を越えると
(FIFO残量が減ると)イネーブルとなる。FIG. 9 shows VIDEO and D related to the present invention.
It is an example of a timing chart between MAC. VDORQ
Is a data request signal of the VIDEO circuit, VDODEN
Is a data enable signal for VIDEO. WN
R is a read / write signal. LEAVE is FI
This flag indicates the remaining amount of the FO, and is enabled when the amount exceeds a predetermined amount (when the remaining amount of the FIFO decreases).
【0031】まず、VDORQを出力する場合は、必ず
残量フラグLEAVEを観てから、リード及びライトの
どちらでアクセスするかを判断する。LEAVEフラグ
がまだディスイネーブル状態でライトアクセスの動作に
入ったのが図9−aである。ここで、所定のアビトレー
ション区間を過ぎてもVDODENが返って来ない場合
には、VIDEO側ではデータ要求権利を取れなかった
と判断し、次のCLKの立ち下がりで一旦VDORQを
ディスイネーブルにして、再び残量フラグLEAVEを
確認にいく。この時、LEAVEフラグがイネーブルで
あると今度はFIFOを満たすためにリード用としてア
クセスを行う。リード用アクセスを行った場合には、前
記のようにアビートレーション区間を過ぎてもVDOD
ENが返ってこなくてもVDORQをディスイネーブル
にすることはない(図9−b)。First, when outputting VDORQ, it is necessary to observe the remaining amount flag LEAVE before judging whether to perform access by read or write. FIG. 9A shows a state in which the LEAVE flag is still in the disabled state and the write access operation is started. Here, if VDODEN does not return even after a predetermined arbitration period, it is determined that the VIDEO side has not obtained the data request right, and VDORQ is temporarily disabled at the next falling edge of CLK, and The remaining amount flag LEAVE is checked again. At this time, if the LEAVE flag is enabled, access is performed for reading this time to fill the FIFO. When the read access is performed, the VDOD is not applied even after the appointment section as described above.
Even if EN is not returned, VDORQ is not disabled (FIG. 9-b).
【0032】図10は、VIDEO回路内部のタイミン
グチャートの一例である。BDは、エンジンから出力さ
れる水平同期信号である。LENDは、1ライン分の印
字データを転送完了したことを示す信号である。COM
P(コンパレータ507の出力)は、VDORQ−Rと
VDORQ−Wのアドレス値、即ち、リードアドレス5
03のアドレス値とライトアドレス502のアドレス値
が一致した場合にイネーブルとなる信号である。PEN
Dは、1ページの終了を示す信号である。BDからLE
NDの間が1ラインの印字データを転送する区間であ
る。FIG. 10 is an example of a timing chart inside the VIDEO circuit. BD is a horizontal synchronization signal output from the engine. LEND is a signal indicating that the transfer of one line of print data has been completed. COM
P (output of the comparator 507) is an address value of VDORQ-R and VDORQ-W, that is, read address 5
This signal is enabled when the address value of the address 03 and the address value of the write address 502 match. PEN
D is a signal indicating the end of one page. BD to LE
ND is a section for transferring one line of print data.
【0033】一般的にVIDEO回路のアクセス権は最
優先であり、ここで初期化モード(例えば、印字データ
を転送しながらメモリをゼロクリアする)に入ると、リ
ード用アクセスとゼロクリアのためのライトアクセスで
リードのみの場合に比較して2倍のアクセス時間が必要
となる。この区間には、次の印字データを準備する描画
回路などその他のブロックも頻繁にアクセスしており、
そこに最優先のVIDEO回路が2倍のアクセス時間を
取るとそれだけお互いにオーバーフロー等の破綻をきた
す可能性が高くなってくる。In general, the access right of the VIDEO circuit has the highest priority. Here, when an initialization mode is entered (for example, the memory is cleared to zero while transferring print data), read access and write access for zero clear are performed. Requires twice as long access time as compared to the case of only reading. In this section, other blocks such as a drawing circuit for preparing the next print data are frequently accessed.
If the highest priority VIDEO circuit takes twice the access time, there is a high possibility that mutual failures such as overflow will occur.
【0034】そこで、本発明によれば、VIDEOが描
画メモリを初期化するためにライトアクセスに行った場
合において、DMACのアビートレーションによってす
ぐにアクセス権を取れなかった時には、前に述べたよう
に一旦VDORQをディスイネーブルにして必ず残量フ
ラグを確認に行くようにして、VIDEO回路が1ライ
ンの印字データを転送している区間は初期化のためのア
クセス回数を低く抑えて、1ラインの印字データの転送
が完了すると、初期化動作を最優先にすることによって
前述の危険を回避し、また、各ブロックにおいてメモリ
からのデータラッチを最小限にすることができゲート効
率を上げることができる。(例えば、オーバーフロー等
の破綻を回避するためにFIFOの深さを2倍にするな
ど)Therefore, according to the present invention, when the VIDEO performs write access to initialize the drawing memory and the access right cannot be immediately obtained due to the DMAC ablation, as described above. Then, VDORQ is once disabled and the remaining amount flag is checked without fail. In the section in which the VIDEO circuit is transferring one line of print data, the number of accesses for initialization is suppressed low, and When the transfer of the print data is completed, the above-mentioned danger is avoided by giving the highest priority to the initialization operation, and the data latch from the memory can be minimized in each block, thereby increasing the gate efficiency. . (For example, double the FIFO depth to avoid a failure such as overflow)
【0035】図10で、VDORQの実線の波形はリー
ドアクセスを示し、点線の波形はライトアクセスを示し
ている。印字データを転送しているBDからLENDま
での区間は、リードアクセスが優先しており、それに追
随してアクセス権の低い初期化アクセス(波線)がまば
らに発生している。LENDが発生し、1ラインの印字
データが転送完了すると、リード用の最終アドレスに向
けて、最優先で描画メモリの初期化が行われる。ここ
で、次のBDが来ると再びリードアクセスが最優先とな
り、これらの動作を繰り返して最終のLENDがくると
リードアクセスの最終アドレスまで一気に初期化を行
い、COMPがイネーブルになると1ページの終了を示
すPEND信号を発生して、次の垂直同期信号を待つ。In FIG. 10, the waveform of a solid line of VDORQ indicates a read access, and the waveform of a dotted line indicates a write access. In the section from BD to LEND where print data is transferred, read access is prioritized, and initialization access (dashed line) having a low access right occurs sparsely following the read access. When LEND occurs and transfer of one line of print data is completed, the drawing memory is initialized with the highest priority toward the final address for reading. Here, when the next BD comes, the read access again has the highest priority. When these operations are repeated and the last LEND comes, initialization is performed at once to the last address of the read access, and when COMP becomes enabled, one page ends. And waits for the next vertical synchronization signal.
【0036】[0036]
【発明の効果】以上説明したように、本発明によれば、
描画メモリの初期化時に、印字データの出力部への転送
期間とそうでない期間に対して、初期化のためのメモリ
アクセスの優先順位を変えることによって、特に、メモ
リにアクセスするソースが多数存在するシステムに対し
て効果的なメモリアクセスを実現し、処理効率を向上さ
せ、また、無駄な一時記憶メモリを削減する効果があ
る。As described above, according to the present invention,
When initializing the drawing memory, by changing the priority of the memory access for initialization between the transfer period of the print data to the output unit and the non-printing period, there are many sources that access the memory, in particular. There are effects of realizing effective memory access to the system, improving processing efficiency, and reducing unnecessary temporary storage memory.
【0037】また、本発明によれば、描画メモリの初期
化時に、印字データの出力部への転送期間とそうでない
期間に対して、初期化のためのメモリアクセス頻度を変
動させることによって、特に、メモリにアクセスするソ
ースが多数存在するシステムにたいして効率的なメモリ
アクセスを実現し、処理効率を向上させ、また、無駄な
一時記憶メモリを削減する効果がある。Further, according to the present invention, when the drawing memory is initialized, the memory access frequency for the initialization is changed between the transfer period of the print data to the output unit and the period during which the print data is not transferred. This has the effect of realizing efficient memory access for a system having a large number of sources accessing the memory, improving the processing efficiency, and reducing unnecessary temporary storage memory.
【図1】図1は、本発明の各実施例の主要な回路を示す
回路ブロック図である。FIG. 1 is a circuit block diagram showing a main circuit of each embodiment of the present invention.
【図2】図2は、本発明の実施例1のVIDEOとDM
ACと描画メモリ間の信号の流れを示す図である。FIG. 2 shows VIDEO and DM according to the first embodiment of the present invention.
FIG. 3 is a diagram showing a signal flow between an AC and a drawing memory.
【図3】図3は、実施例1のDMAC内部を簡略化した
ブロック図である。FIG. 3 is a simplified block diagram of the inside of a DMAC according to the first embodiment;
【図4】図4は、実施例1のタイミングチャートであ
る。FIG. 4 is a timing chart of the first embodiment.
【図5】図5は、実施例2のタイミングチャートであ
る。FIG. 5 is a timing chart of the second embodiment.
【図6】図6は、実施例3のVIDEOとDMACと描
画メモリ間の信号の流れを示す図である。FIG. 6 is a diagram illustrating a flow of signals between a VIDEO, a DMAC, and a drawing memory according to a third embodiment.
【図7】図7は、実施例3のVIDEO内部のDMAC
I/F部分を簡略化したブロック図である。FIG. 7 is a diagram illustrating a DMAC in a VIDEO according to the third embodiment;
It is a block diagram which simplified the I / F part.
【図8】図8は、実施例3のDMACと他のブロックと
のデータ要求に対するタイミングチャートの一例であ
る。FIG. 8 is an example of a timing chart for a data request between a DMAC and another block according to the third embodiment.
【図9】図9は、実施例3のDMACとVIDEOとの
データ要求に対するタイミングチャートの一例である。FIG. 9 is an example of a timing chart for a data request between a DMAC and a VIDEO according to a third embodiment;
【図10】図10は、実施例3のVIDEO内部のタイ
ミングチャートの一例である。FIG. 10 is an example of a timing chart inside a VIDEO of a third embodiment;
100 CPU 102 DMAC 103 描画メモリ 104 VIDEO回路 107 エンジン 201、401 VIDEO回路 202、402 DMAC 203、403 描画メモリ 301 DMAC制御本体 302〜305 アドレスレジスタ 306〜309 セレクタ 310 アドレスセレクタ 311 アドレスレジスタ 312 セレクタ 313 コンパレータ 501 アドレスカウンタ 502 ライトアドレスレジスタ 503 リードアドレスレジスタ 504〜506 セレクタ 507 コンパレータ 508 FIFO 509 DMAC I/F制御回路 100 CPU 102 DMAC 103 Drawing Memory 104 VIDEO Circuit 107 Engine 201, 401 VIDEO Circuit 202, 402 DMAC 203, 403 Drawing Memory 301 DMAC Control Body 302-305 Address Register 306-309 Selector 310 Address Selector 311 Address Register 312 Selector 313 Comparator 501 Address counter 502 Write address register 503 Read address register 504 to 506 Selector 507 Comparator 508 FIFO 509 DMAC I / F control circuit
───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI G06F 13/362 510 G06F 1/00 350A (56)参考文献 特開 平7−178972(JP,A) 特開 平5−35653(JP,A) 特開 平7−17873(JP,A) 特開 平2−70465(JP,A) 特開 平8−207365(JP,A) 特開 平4−83674(JP,A) 特開 平5−16452(JP,A) 特開 平5−274249(JP,A) 特開 平8−132690(JP,A) 特開 平8−85240(JP,A) 特開 平3−94573(JP,A) 特開 昭60−183627(JP,A) 特開 昭62−128326(JP,A) (58)調査した分野(Int.Cl.7,DB名) B41J 5/30 B41J 2/44 G06F 1/24 G06F 3/12 G06F 13/28 310 G06F 13/362 510 ──────────────────────────────────────────────────続 き Continuation of the front page (51) Int.Cl. 7 Identification code FI G06F 13/362 510 G06F 1/00 350A (56) References JP-A-7-178972 (JP, A) JP-A-5-35653 (JP, A) JP-A-7-17873 (JP, A) JP-A-2-70465 (JP, A) JP-A-8-207365 (JP, A) JP-A-4-83674 (JP, A) JP-A-5-16452 (JP, A) JP-A-5-274249 (JP, A) JP-A-8-132690 (JP, A) JP-A-8-85240 (JP, A) JP-A-3-94573 ( JP, A) JP-A-60-183627 (JP, A) JP-A-62-128326 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) B41J 5/30 B41J 2/44 G06F 1/24 G06F 3/12 G06F 13/28 310 G06F 13/362 510
Claims (5)
憶手段と、 印刷データを出力する出力手段と、 前記出力手段に対して印刷データを転送する転送手段
と、 要求信号に応じて、前記記憶手段へのアクセスを直接制
御する制御手段と、 前記制御手段に対する要求信号の優先順位付けを行う優
先順位付け手段とを有し、 前記転送手段は、前記制御手段に、前記記憶手段に記憶
されている印刷データの読み込みを要求する読み込み要
求信号と、前記記憶手段を初期化する書き込みを要求す
る書き込み要求信号とを供給し、 前記優先順位付け手段は、1ラインの印刷データが転送
されている間は、前記読み込み要求信号の優先順位を高
くし、1ラインの印刷データの転送が完了すると、前記
書き込み要求信号の優先順位を高くすることを特徴とす
る印刷装置。An input unit for inputting print data; a storage unit for storing print data input by the input unit; an output unit for outputting print data; and transferring the print data to the output unit. Transfer means, control means for directly controlling access to the storage means in accordance with the request signal, and priority ordering means for prioritizing the request signal to the control means, the transfer means, The control unit supplies a read request signal for requesting reading of print data stored in the storage unit, and a write request signal for requesting writing for initializing the storage unit. While the print data of one line is being transferred, the read request signal is given a higher priority, and when the transfer of the print data of one line is completed, Printing apparatus characterized by a higher priority request signal write attempts.
セスコントローラであり、前記出力手段は印刷部であ
り、前記転送手段は前記印刷部に印刷データを転送する
ビデオ回路であり、前記記憶手段は描画メモリであるこ
とを特徴とする請求項1に記載の印刷装置。2. The control unit is a direct memory access controller, the output unit is a printing unit, the transfer unit is a video circuit for transferring print data to the printing unit, and the storage unit is a drawing memory. The printing device according to claim 1, wherein
クセスを直接制御するダイレクトメモリアクセスコント
ローラがエンジン部に印字データを転送するVIDEO
回路に前記描画メモリから印字データを転送し、前記V
IDEO回路が前記エンジン部に印字データを転送して
印刷を行い、前記描画メモリから前記VIDEO回路に
印字データを転送するのと並行して描画メモリの初期化
を行う印刷装置であって、 前記描画メモリに対するアクセスの優先順位が高い第1
アドレスレジスタと、 前記第1アドレスレジスタより、前記描画メモリに対す
るアクセス優先順位が低い第2アドレスレジスタと、 1ラインの印字の開始を示す開始信号を発生する開始信
号発生手段と、 1ラインの印字データの転送の完了を示す転送完了信号
を発生する転送完了信号発生手段と、 前記開始信号発生手段により開始信号が発生されてから
前記転送完了信号発生手段により転送完了信号が発生さ
れるまでは、印字データの読み込みを要求する読み込み
信号が示すアドレスを前記第1アドレスレジスタに供給
する読み込み要求信号供給手段と、 前記転送完了信号発生手段により転送完了信号が発生さ
れた後に、前記描画メモリの印字データを初期化する書
き込みを要求する書き込み要求信号が示すアドレスを前
記第2アドレスレジスタに代えて前記第1アドレスに供
給することが可能な書き込み要求信号供給手段とを有す
ることを特徴とする印刷装置。3. A VIDEO for transferring print data to an engine unit by a direct memory access controller for directly controlling access to a drawing memory for storing print data.
Transfer the print data from the drawing memory to the circuit;
A printing apparatus, wherein an IDEO circuit transfers print data to the engine unit to perform printing, and initializes a drawing memory in parallel with transferring print data from the drawing memory to the VIDEO circuit. The first with the highest access priority to memory
An address register; a second address register having a lower access priority to the drawing memory than the first address register; start signal generating means for generating a start signal indicating the start of printing of one line; Transfer completion signal generation means for generating a transfer completion signal indicating the completion of the transfer of the data, and printing from when the start signal is generated by the start signal generation means until the transfer completion signal is generated by the transfer completion signal generation means. Read request signal supply means for supplying an address indicated by a read signal for requesting data read to the first address register; and, after a transfer completion signal is generated by the transfer completion signal generation means, the print data of the drawing memory is The address indicated by the write request signal requesting the write to be initialized is the second address Printing apparatus characterized by having a write request signal supplying means capable of supplying to the first address instead of the register.
スと前記第2アドレスレジスタが示すアドレスを比較し
て、一致したときに、一致したことを示す一致信号を発
生する比較手段をさらに有し、 前記転送完了信号発生手段が転送完了信号を発生したと
き、前記比較手段が一致信号を発生していない場合、前
記書き込み要求信号供給手段は、前記第2アドレスレジ
スタに代えて前記第1アドレスレジスタに、書き込み要
求信号が示すアドレスを供給することを特徴とする請求
項3に記載の印刷装置。4. A comparison means for comparing an address indicated by the first address register with an address indicated by the second address register, and generating a match signal indicating a match when the addresses match. When the transfer completion signal is generated by the transfer completion signal generating means, and the comparison means does not generate a coincidence signal, the write request signal supply means replaces the second address register with the first address register. 4. The printing apparatus according to claim 3, wherein an address indicated by the write request signal is supplied.
発生するまでに、前記比較手段が一致信号を発生しない
場合、前記第1アドレスレジスタが現在示すアドレス
を、前記第2アドレスレジスタに書き込むことを特徴と
する請求項4に記載の印刷装置。5. If the comparison means does not generate a coincidence signal before the start signal generation means generates the next start signal, the address currently indicated by the first address register is written to the second address register. The printing apparatus according to claim 4, wherein:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP23974396A JP3323751B2 (en) | 1996-08-22 | 1996-08-22 | Printing equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP23974396A JP3323751B2 (en) | 1996-08-22 | 1996-08-22 | Printing equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH1058771A JPH1058771A (en) | 1998-03-03 |
| JP3323751B2 true JP3323751B2 (en) | 2002-09-09 |
Family
ID=17049278
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP23974396A Expired - Fee Related JP3323751B2 (en) | 1996-08-22 | 1996-08-22 | Printing equipment |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3323751B2 (en) |
-
1996
- 1996-08-22 JP JP23974396A patent/JP3323751B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH1058771A (en) | 1998-03-03 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS62149099A (en) | Memory access controlling circuit | |
| US6272583B1 (en) | Microprocessor having built-in DRAM and internal data transfer paths wider and faster than independent external transfer paths | |
| JP7468112B2 (en) | INTERFACE CIRCUIT AND METHOD FOR CONTROLLING INTERFACE CIRCUIT - Patent application | |
| US6292853B1 (en) | DMA controller adapted for transferring data in two-dimensional mapped address space | |
| JP4829408B2 (en) | Image processing method and image processing apparatus | |
| US5627968A (en) | Data transfer apparatus which allows data to be transferred between data devices without accessing a shared memory | |
| JP2000020451A (en) | Device and method for processing information and provision method | |
| JP3323751B2 (en) | Printing equipment | |
| JP4322116B2 (en) | Method of interface between external memory and processor supporting burst mode | |
| JP2005303718A (en) | Matrix bus connection system | |
| JP2008046771A (en) | Direct memory access controller | |
| US8239652B2 (en) | Data processing system | |
| JP7836413B2 (en) | Command setting method, unit, display processing device, and electronic device. | |
| US20060047866A1 (en) | Computer system having direct memory access controller | |
| JPH064398A (en) | Information processing equipment | |
| JP2002024157A (en) | Method and device for processing dma | |
| JP2005316546A (en) | Memory controller | |
| JPS60254187A (en) | display device | |
| JPH08339353A (en) | Multiprocessor equipment | |
| JP2005190092A (en) | Memory access control circuit | |
| JP2003150534A (en) | Chain block transfer method and communication control device | |
| JP2011013812A (en) | Memory system | |
| JP2000172553A (en) | Data processing device | |
| JPH1011356A (en) | Memory access system | |
| JPH11115258A (en) | Output control device and method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080628 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090628 Year of fee payment: 7 |
|
| LAPS | Cancellation because of no payment of annual fees |