JPH06295281A - Print controller - Google Patents

Print controller

Info

Publication number
JPH06295281A
JPH06295281A JP5105046A JP10504693A JPH06295281A JP H06295281 A JPH06295281 A JP H06295281A JP 5105046 A JP5105046 A JP 5105046A JP 10504693 A JP10504693 A JP 10504693A JP H06295281 A JPH06295281 A JP H06295281A
Authority
JP
Japan
Prior art keywords
mapping
block
dma
transfer
image data
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
JP5105046A
Other languages
Japanese (ja)
Inventor
Shunichi Ota
俊一 太田
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP5105046A priority Critical patent/JPH06295281A/en
Publication of JPH06295281A publication Critical patent/JPH06295281A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)
  • Document Processing Apparatus (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To print image data whose size is larger than the size of a DMA space with respect to the print controller which transfers image data on a memory to a printer by DMA to print it after mapping the image data in the DMA space on a virtual memory. CONSTITUTION:A mapping means 2 is controlled by a mapping control means 6 to successively map unmapped image data in the idle area of the DMA space, thus forming blocks. At this time, the end of the mapping processing of a just preceding block is reported before the completion of transfer of the block by a mapping end report means 8 to determine the size of each block. Respective formed blocks are successively transferred by a DMA control means 3; and when transfer of one block is completed, a DMA relay means 9 starts transfer of the next block and the mapping control means 6 maps the next block after unmapping the block whose transfer is completed.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、メモリからイメージデ
ータを読み出して、プリンタに出力するプリント制御装
置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a print controller for reading image data from a memory and outputting it to a printer.

【0002】[0002]

【従来の技術】メモリからイメージデータを読み出して
プリンタに出力するのに、仮想アドレッシングによって
DMA(Direct Memory Access)転送する方式がある。そ
の場合、メモリ上のイメージデータを、仮想メモリ上の
DMAが可能な空間(以下「DMA空間」という)にマ
ッピングする必要がある。
2. Description of the Related Art In order to read image data from a memory and output it to a printer, there is a method of performing a DMA (Direct Memory Access) transfer by virtual addressing. In that case, it is necessary to map the image data in the memory into a space (hereinafter, referred to as “DMA space”) in which the DMA can be performed in the virtual memory.

【0003】図7は、従来のプリント制御装置の概要を
示すブロック図である。図7において、1はメモリ、2
はマッピング手段、3はDMA制御手段、4はプリン
タ、5はイメージ情報記憶手段である。メモリ1には、
印刷するイメージデータが展開される。メモリ1上のイ
メージデータは、物理的には必ずしも連続した領域に展
開されているわけではないが、マッピング手段2により
仮想的に連続に取り扱えるようになっている。さらに、
マッピング手段2がイメージデータを仮想メモリ上のD
MA空間にマッピングし直してからDMA転送を行う。
DMA制御手段3は、DMA空間に展開されたデータを
プリンタ4にDMA転送する。イメージ情報記憶手段5
は、イメージデータのサイズ等のイメージ情報を記憶
し、マッピング手段2に与える。
FIG. 7 is a block diagram showing an outline of a conventional print control device. In FIG. 7, 1 is a memory, 2
Is a mapping means, 3 is a DMA control means, 4 is a printer, and 5 is an image information storage means. In memory 1,
Image data to be printed is expanded. The image data on the memory 1 is not necessarily physically expanded in a continuous area, but can be virtually processed by the mapping means 2. further,
The mapping means 2 converts the image data into D on the virtual memory.
DMA transfer is performed after remapping in the MA space.
The DMA control unit 3 DMA-transfers the data expanded in the DMA space to the printer 4. Image information storage means 5
Stores image information such as the size of image data and supplies it to the mapping means 2.

【0004】なお、このようなプリント制御装置に関連
する従来の文献としては、例えば、「インターフェー
ス」'92.1 がある。
Incidentally, as a conventional document related to such a print control device, there is, for example, "interface"'92 .1.

【0005】[0005]

【発明が解決しようとする課題】[Problems to be Solved by the Invention]

(問題点)しかしながら、前記した従来の技術には、用
紙1枚当たりのイメージデータのサイズが膨大になっ
て、DMA空間のサイズを超えてしまうと、用紙1枚分
のイメージデータを1度にDMA空間にマッピングする
ことができず、該イメージデータの印刷が不可能になる
という問題点があった。
(Problem) However, in the above-mentioned conventional technique, when the size of the image data per sheet becomes enormous and exceeds the size of the DMA space, the image data for one sheet is changed at one time. There is a problem that the image data cannot be printed because it cannot be mapped in the DMA space.

【0006】(問題点の説明)上記したようなDMA空
間を使ってDMA転送を行う場合、転送すべきイメージ
データが現実にメモリ1上にないと転送できない。しか
も、イメージデータ転送のためだけにメモリ1の全空間
を使えるわけではない。したがって、DMA空間の大き
さは、メモリ1の大きさより小さいサイズに制限され
る。
(Explanation of Problems) When the DMA transfer is performed using the DMA space as described above, the image data to be transferred cannot be transferred unless it actually exists in the memory 1. Moreover, the entire space of the memory 1 cannot be used only for transferring image data. Therefore, the size of the DMA space is limited to a size smaller than the size of the memory 1.

【0007】ところで、従来は、用紙1枚分のイメージ
データのデータ量があまり大きくなかったので、それを
一度にDMA空間にマッピングすることが可能であっ
た。しかし、近年、プリンタのカラー化,高解像度化等
により用紙1枚当たりのイメージデータのサイズが膨大
なものとなって、DMA空間のサイズを超えてしまうよ
うになり、用紙1枚分のイメージデータを1度にDMA
空間にマッピングすることが不可能になるケースが発生
するようになった。
By the way, conventionally, since the data amount of image data for one sheet was not so large, it was possible to map it in the DMA space at one time. However, in recent years, due to colorization and high resolution of printers, the size of image data per sheet becomes enormous and exceeds the size of DMA space. DMA at once
There are cases where it becomes impossible to map to space.

【0008】その解決策としては、イメージデータを複
数のブロックに分け、マッピングと転送を複数回に分け
て行う方法が考えられる。しかしながら、一つのブロッ
クを転送した後次のブロックを転送するのに、DMA空
間をアンマッピングしてから次のブロックのマッピング
を行った後に転送することになるので、転送と転送との
間に遅延が生じてしまう。そのため、プリンタ側に、メ
モリを設けたり、印刷動作を一時中断する等の変更が必
要となる。
A possible solution to this problem is to divide the image data into a plurality of blocks and perform mapping and transfer in a plurality of times. However, in order to transfer one block and then the next block, the DMA space is unmapped and then the next block is mapped and then transferred. Therefore, there is a delay between transfers. Will occur. Therefore, it is necessary to provide a memory on the printer side or change the printer operation such that the printing operation is temporarily stopped.

【0009】一方、物理アドレッシングによるDMA転
送方式においては、大量のデータを中断無しに転送する
方法として、メモリを複数のブロックに分割し、ブロッ
クの転送と、転送が終了したブロックへのデータの書込
みとを同時並行的に行いながら、連続して転送するとい
う方法がとられている(特公昭61−32710号公
報,特開昭61−288252号公報)。しかしなが
ら、仮想アドレッシングによってDMA転送する方式に
おいては、大量のデータを中断無しに転送する方法がな
かった。本発明は、以上のような問題点を解決すること
を課題とするものである。
On the other hand, in the DMA transfer method by physical addressing, as a method for transferring a large amount of data without interruption, the memory is divided into a plurality of blocks, the blocks are transferred, and the data is written into the blocks after the transfer. A method is adopted in which the transfer is continuously carried out while simultaneously performing the above and the same (Japanese Patent Publication No. 61-32710 and Japanese Patent Application Laid-Open No. 61-288252). However, in the method of performing DMA transfer by virtual addressing, there is no method for transferring a large amount of data without interruption. An object of the present invention is to solve the above problems.

【0010】[0010]

【課題を解決するための手段】前記課題を解決するた
め、本発明では、メモリ上に展開されたイメージデータ
を、マッピング手段により仮想メモリ上のDMA空間に
マッピングしてから、DMA制御手段によりプリンタに
DMA転送して印刷を行うプリント制御装置において、
未マッピングのイメージデータを順次上記DMA空間の
空き領域にマッピングしてブロックを形成し、また、1
つのブロックの転送完了毎に転送の完了したブロックを
アンマッピングするように上記マッピング手段を制御す
るマッピング制御手段と、マッピング手段で形成された
ブロックの転送順序を指定するブロック順序付手段と、
直前のブロックの転送完了前にマッピング制御手段に当
該ブロックのマッピング処理の終了を通知するマッピン
グ終了通知手段と、1つのブロックの転送完了毎に上記
転送順序に従って次のブロックの転送を開始するように
DMA制御手段に指示するDMAリレー手段とを具える
こととした。
In order to solve the above problems, according to the present invention, the image data expanded on the memory is mapped to the DMA space on the virtual memory by the mapping means, and then the printer is controlled by the DMA control means. In a print control device that performs DMA transfer to and prints
Unmapped image data is sequentially mapped to the empty area of the DMA space to form a block.
Mapping control means for controlling the mapping means so as to unmap the transferred blocks each time the transfer of one block is completed, and block ordering means for designating the transfer order of the blocks formed by the mapping means,
A mapping end notifying means for notifying the mapping control means of the end of the mapping processing of the block before the completion of the transfer of the immediately preceding block, and the transfer of the next block is started in accordance with the transfer order each time the transfer of one block is completed. A DMA relay means for instructing the DMA control means is provided.

【0011】[0011]

【作 用】マッピング制御手段によりマッピング手段
を制御して、未マッピングのイメージデータを順次上記
DMA空間の空き領域にマッピングしてブロックを形成
する。その際、マッピング終了通知手段により、直前の
ブロックの転送完了前にマッピング制御手段に当該ブロ
ックのマッピング処理の終了を通知することにより、各
ブロックの大きさを決定していく。マッピング手段で形
成されたブロックは、ブロック順序付手段により、転送
順序を指定される。DMA制御手段によって、1つのブ
ロックの転送が完了すると、マッピング制御手段は、転
送の完了したブロックをアンマッピングするようにマッ
ピング手段を制御する。また、DMAリレー手段は、上
記転送順序に従って次のブロックの転送を開始するよう
にDMA制御手段に指示する。
[Operation] The mapping control unit controls the mapping unit to sequentially map the unmapped image data to the empty area of the DMA space to form a block. At that time, the size of each block is determined by notifying the mapping control unit of the end of the mapping process of the block by the mapping end notifying unit before the transfer of the immediately preceding block is completed. The blocks formed by the mapping means have the transfer order designated by the block ordering means. When the DMA control means completes the transfer of one block, the mapping control means controls the mapping means to unmap the transferred block. Further, the DMA relay means instructs the DMA control means to start the transfer of the next block according to the transfer order.

【0012】そのようにして、用紙1枚当たりのイメー
ジデータのサイズが膨大になって、DMA空間のサイズ
を超えてしまったときは、用紙1枚分のイメージデータ
を複数のブロックに分割し、ブロック毎にDMA空間に
マッピングすると共に、ブロックの転送をリレーさせ
る。その結果、連続的な転送が可能となり、プリンタ側
にメモリを設ける等の変更をすることなく、DMA空間
のサイズを超える大きさのイメージデータの印刷が可能
となる。
In this way, when the size of the image data per sheet becomes enormous and exceeds the size of the DMA space, the image data for one sheet is divided into a plurality of blocks, Each block is mapped in the DMA space and the block transfer is relayed. As a result, continuous transfer becomes possible, and it becomes possible to print image data of a size exceeding the size of the DMA space without making a change such as providing a memory on the printer side.

【0013】[0013]

【実施例】以下、本発明の実施例を図面に基づいて詳細
に説明する。図1は、本発明のプリント制御装置の概要
を示すブロック図である。符号は、図7のものに対応
し、6はマッピング制御手段、7はブロック順序付手
段、8はマッピング終了通知手段、9はDMAリレー手
段である。メモリ1には、印刷するイメージデータが展
開される。マッピング手段2は、メモリ1上のイメージ
データを1ページ(マッピングの最小単位で、通常2K
バイト程度)毎に仮想メモリ上のDMA空間にマッピン
グする。データサイズ等のイメージ情報は、イメージ情
報記憶手段5に記憶される。
Embodiments of the present invention will now be described in detail with reference to the drawings. FIG. 1 is a block diagram showing the outline of the print control apparatus of the present invention. The reference numerals correspond to those in FIG. 7, 6 is a mapping control means, 7 is a block ordering means, 8 is a mapping end notifying means, and 9 is a DMA relay means. Image data to be printed is expanded in the memory 1. The mapping means 2 stores one page of image data on the memory 1 (a minimum unit of mapping, usually 2K).
It is mapped to the DMA space on the virtual memory for each (about byte). Image information such as data size is stored in the image information storage means 5.

【0014】図2は、イメージデータとDMA空間の関
係を示す図である。図2(a)は、イメージデータがD
MA空間より小さく、一度にDMA空間にマッピング可
能な場合を示しており、図2(b)は、イメージデータ
がDMA空間より大きく、一度にDMA空間にマッピン
グすることが不可能な場合を示している。図2(a)の
場合のように、一度にマッピング可能な場合はイメージ
データを分割する必要はないが、図2(b)の場合のよ
うに、一度にマッピングすることが不可能な場合は、イ
メージデータを複数のブロックに分割して転送する必要
がある。
FIG. 2 is a diagram showing the relationship between the image data and the DMA space. In FIG. 2A, the image data is D
FIG. 2B shows a case where the image data is smaller than the MA space and can be mapped to the DMA space at one time, and FIG. 2B shows a case where the image data is larger than the DMA space and cannot be mapped to the DMA space at one time. There is. As in the case of FIG. 2A, it is not necessary to divide the image data when the mapping is possible at one time, but when it is impossible to perform the mapping at one time as in the case of FIG. , It is necessary to divide the image data into multiple blocks and transfer.

【0015】イメージデータの複数ブロックへの分割
は、メモリ1上のイメージデータをマッピング手段2で
DMA空間にマッピングしながら行う。すなわち、マッ
ピング中に、マッピング終了通知手段8からの通知によ
りマッピングを終了させて1つのブロックとし、次にま
たマッピングを開始してマッピング終了通知手段8から
の次の通知により、そのマッピングを終了させて次のブ
ロックを形成する。そのような処理を繰り返すことによ
り、イメージデータを複数のブロックに分割していく。
The division of the image data into a plurality of blocks is performed while the image data on the memory 1 is mapped in the DMA space by the mapping means 2. That is, during mapping, mapping is terminated by the notification from the mapping end notifying means 8 to form one block, then mapping is started again and the mapping is terminated by the next notification from the mapping end notifying means 8. To form the next block. By repeating such processing, the image data is divided into a plurality of blocks.

【0016】分割された各ブロックは、ブロック順序付
手段7によりデータの転送方向に従って順序付けられ
る。例えば、両面印刷をする場合で、用紙の表面に印刷
するときは、イメージデータが先頭から転送されるの
で、ブロックも先頭から順序付けられる。しかし、用紙
の裏面に印刷する場合には、イメージデータが末尾から
転送されるので、ブロックも末尾から順序付けられる。
The divided blocks are ordered by the block ordering means 7 in accordance with the data transfer direction. For example, in the case of double-sided printing, when printing on the front surface of the paper, since the image data is transferred from the beginning, the blocks are also ordered from the beginning. However, when printing on the back side of the paper, since the image data is transferred from the end, the blocks are also ordered from the end.

【0017】マッピング制御手段6は、1つのブロック
のDMA転送が完了したら、そのブロックをアンマッピ
ングし、DMA空間を再使用可能な状態にすると共に、
未マッピングブロックの内の先頭のブロックをそこにマ
ッピングするように、マッピング手段2を制御する。図
を使ってマッピング制御手段6の動作を説明する。
When the DMA transfer of one block is completed, the mapping control means 6 unmaps the block to make the DMA space reusable, and
The mapping means 2 is controlled so that the first block of the unmapped blocks is mapped therein. The operation of the mapping control means 6 will be described with reference to the drawings.

【0018】図3は、マッピング制御手段の動作例を示
す図である。イメージデータは、図3(a)に示すよう
に、メモリ1に展開されている。始めに、図3(b)に
示すようにイメージデータの先頭部分のマッピングを開
始し、マッピング終了通知手段8からマッピング終了通
知があったらマッピングを終了して、ブロックAを形成
する。続いて、DMA制御手段3により、先頭のブロッ
クAの転送が開始されるが、それと同時に、マッピング
制御手段6は、残りイメージデータのマッピングを開始
し、図3(c)に示すように、ブロックAと同様にして
ブロックBを形成する。
FIG. 3 is a diagram showing an operation example of the mapping control means. The image data is expanded in the memory 1 as shown in FIG. First, as shown in FIG. 3B, mapping of the head portion of the image data is started, and when a mapping end notification is issued from the mapping end notification means 8, the mapping is ended and a block A is formed. Subsequently, the DMA control unit 3 starts the transfer of the first block A, but at the same time, the mapping control unit 6 starts the mapping of the remaining image data, and as shown in FIG. Block B is formed in the same manner as A.

【0019】ブロックAの転送が完了すると、DMA制
御手段3によりブロックBの転送を開始すると共に、マ
ッピング制御手段6はブロックAをアンマッピングす
る。そして、アンマッピングして生じた空き領域に、残
りイメージデータのマッピングを開始し、図3(d)に
示すように、ブロックCを形成する。ブロックBの転送
が完了すると、DMA制御手段3によりブロックCの転
送を開始すると共に、マッピング制御手段6はブロック
Bをアンマッピングする。そして、アンマッピングして
生じた空き領域に、残りイメージデータのマッピングを
開始し、図3(e)に示すように、ブロックDを形成す
る。
When the transfer of the block A is completed, the DMA control means 3 starts the transfer of the block B, and the mapping control means 6 unmaps the block A. Then, the mapping of the remaining image data is started in the empty area generated by the unmapping, and the block C is formed as shown in FIG. When the transfer of the block B is completed, the DMA control unit 3 starts the transfer of the block C, and the mapping control unit 6 unmaps the block B. Then, the mapping of the remaining image data is started in the empty area generated by the unmapping, and the block D is formed as shown in FIG.

【0020】次に、ブロックCの転送が完了した時、ブ
ロックDの転送を開始すると共に、ブロックCをアンマ
ッピングする。ブロックCをアンマッピングすると、も
うマッピングすべき残りイメージデータはないので、D
MA空間には、図3(f)に示すようにブロックDのみ
が残り、さらに、ブロックDの転送完了後ブロックDを
アンマッピングすると、DMA空間にデータがなくな
る。
Next, when the transfer of the block C is completed, the transfer of the block D is started and the block C is unmapped. When the block C is unmapped, there is no remaining image data to be mapped, so D
As shown in FIG. 3 (f), only the block D remains in the MA space, and when the block D is unmapped after the transfer of the block D is completed, there is no data in the DMA space.

【0021】次に、DMAリレー手段9について説明す
る。DMAリレー手段9は、1つのブロックの転送が完
了する毎に、次に順序付けられているブロックを連続し
て転送するようにDMA制御手段3を制御して、全イメ
ージデータをプリンタ4に転送する。図4は、DMAリ
レー手段の構成及びDMA制御手段のDMAリレー関連
部分の一例を示すブロック図である。符号は、図1のも
のに対応し、31は転送完了通知手段、32はアドレス
レジスタ、33はカウントレジスタ、91は情報入替手
段、92,93はブロック情報保持部である。
Next, the DMA relay means 9 will be described. Whenever the transfer of one block is completed, the DMA relay means 9 controls the DMA control means 3 so as to continuously transfer the next ordered block, and transfers all the image data to the printer 4. . FIG. 4 is a block diagram showing an example of the configuration of the DMA relay means and the DMA relay-related portion of the DMA control means. The reference numerals correspond to those in FIG. 1, 31 is a transfer completion notifying means, 32 is an address register, 33 is a count register, 91 is an information exchanging means, and 92 and 93 are block information holding sections.

【0022】DMAリレー手段9では、現在転送中のブ
ロックと次に転送されるブロックの先頭アドレスとデー
タサイズを示すブロック情報が、ブロック情報保持部9
2,93に保持される。そして、DMA制御手段3の転
送完了通知手段31から1ブロックの転送完了が通知さ
れると、情報入替手段91がアドレスレジスタ32とカ
ウントレジスタ33の内容を、次ブロックのブロック情
報を保持しているブロック情報保持部93の情報に瞬時
に入替え、次のブロックのDMA転送を連続して実行で
きるようにする。このようにDMAリレー手段9が動作
することにより、DMA制御手段3では、1つのブロッ
クの転送が完了すると連続して次のブロックの転送を開
始し、それが完了するとさらに次のブロックの転送を開
始するというように、全てのイメージデータを連続的に
転送する。
In the DMA relay means 9, the block information holding unit 9 stores block information indicating the start address and data size of the block currently being transferred and the block to be transferred next.
It is held at 2,93. When the transfer completion notifying means 31 of the DMA control means 3 notifies the completion of the transfer of one block, the information exchanging means 91 holds the contents of the address register 32 and the count register 33 and the block information of the next block. The information in the block information holding unit 93 is instantly replaced so that the DMA transfer of the next block can be continuously executed. By thus operating the DMA relay means 9, the DMA control means 3 continuously starts the transfer of the next block when the transfer of one block is completed, and when the transfer is completed, transfers the next block. Transfer all image data continuously, such as start.

【0023】次に、マッピング終了通知手段8について
説明する。マッピング終了通知手段8は、転送順序が1
つ前のブロックの転送完了前にマッピングの終了を通知
する必要があるが、その方法としては次に示すようなも
のが挙げられる。 (1)マッピング時間が所定値に達したときマッピング
の終了を通知する。 (2)マッピングしたデータ量が所定値に達したときマ
ッピングの終了を通知する。 (3)プリンタから所定の情報が得られたとき、例え
ば、給紙した用紙が所定位置に達したときマッピングの
終了を通知する。 (4)単位データ量当たりのマッピング時間が所定値に
達したときマッピングの終了を通知する。 (5)転送中のブロックの残りのデータ量が所定値に達
したときマッピングの終了を通知する。
Next, the mapping end notifying means 8 will be described. The mapping end notifying means 8 has a transfer order of 1
It is necessary to notify the end of mapping before the completion of the transfer of the immediately preceding block, and the following methods can be mentioned as the method. (1) When the mapping time reaches a predetermined value, the end of mapping is notified. (2) When the amount of mapped data reaches a predetermined value, the end of mapping is notified. (3) When predetermined information is obtained from the printer, for example, when the fed paper reaches a predetermined position, the end of mapping is notified. (4) When the mapping time per unit data amount reaches a predetermined value, the end of mapping is notified. (5) When the remaining data amount of the block being transferred reaches a predetermined value, the end of mapping is notified.

【0024】次に、上記(1)〜(5)の各方法につい
て説明する。 (1)マッピング時間が所定値に達したときマッピング
の終了を通知するもの。 図5は、マッピング終了通知手段の一例を示すブロック
図である。符号は、図1のものに対応し、81は基準値
発生部、82は比較器、83はタイマーである。基準値
発生部81に、最小サイズのブロックのDMA転送時間
より短い時間を、基準値として予め設定しておき、比較
器82で該基準値と、各ブロック毎のマッピング開始後
の時間を計測しているタイマー83の出力とを比較し
て、タイマー83の値が基準値に達したとき、比較器8
2がマッピング制御手段6に対してマッピング処理の終
了を通知する。この方法によれば、1ブロック当たりの
DMA転送時間の下限が判っているとき、基準値をそれ
以下に設定しておくことにより、転送順序が1つ前のブ
ロックの転送完了前に確実にマッピングの終了を通知す
ることができる。
Next, each of the above methods (1) to (5) will be described. (1) A notification of the end of mapping when the mapping time reaches a predetermined value. FIG. 5 is a block diagram showing an example of the mapping end notifying means. Reference numerals correspond to those in FIG. 1, 81 is a reference value generating unit, 82 is a comparator, and 83 is a timer. In the reference value generation unit 81, a time shorter than the DMA transfer time of the block of the minimum size is preset as a reference value, and the comparator 82 measures the reference value and the time after the start of mapping for each block. When the value of the timer 83 reaches the reference value, the comparator 8
2 notifies the mapping control means 6 of the end of the mapping process. According to this method, when the lower limit of the DMA transfer time per block is known, the reference value is set to be less than that, so that the mapping can be surely performed before the completion of the transfer of the block immediately before the transfer order. The end of can be notified.

【0025】(2)マッピングしたデータ量が所定値に
達したときマッピングの終了を通知するもの。 この方法では、マッピング制御手段6において、マッピ
ング済みデータのサイズ(例、バイト数)をカウントし
ながらマッピングを行い、マッピング終了通知手段8に
おいて、そのカウント値と基準値とを比較して、カウン
ト値が基準値に達したとき、マッピング制御手段6に対
してマッピング処理の終了を通知する。なお、上記基準
値は、その値に対応するサイズのブロックの転送時間よ
りマッピング時間の方が短くなるような値に設定する。
そして、その値は、一定値にしてもよいし、ブロック数
が増えるに従って低下させるようにしてもよい。この方
法によれば、指定サイズのブロックを形成することがで
きる。
(2) A notification of the end of mapping when the amount of mapped data reaches a predetermined value. In this method, mapping control means 6 performs mapping while counting the size (for example, the number of bytes) of mapped data, and mapping end notifying means 8 compares the count value with a reference value to obtain a count value. Reaches the reference value, it notifies the mapping control means 6 of the end of the mapping process. The reference value is set to a value such that the mapping time is shorter than the transfer time of a block having a size corresponding to that value.
Then, the value may be a constant value or may be decreased as the number of blocks increases. According to this method, a block having a designated size can be formed.

【0026】(3)プリンタから所定の情報が得られた
とき、例えば、給紙した用紙が所定位置に達したときマ
ッピングの終了を通知するもの。 この方法では、プリンタ4において、印刷時に用紙位置
を監視し、用紙が所定の位置を通過する毎に検知信号を
出力し、マッピング終了通知手段8は、その検知信号を
受けたとき、マッピング制御手段6に対してマッピング
処理の終了を通知する。この方法によれば、用紙通過検
知位置を、1ブロック分のデータの印刷量に相当する位
置の少し手前に設定しておくことにより、直前のブロッ
クの転送完了前に確実にマッピングの終了を通知するこ
とができる。
(3) Notifying the end of mapping when predetermined information is obtained from the printer, for example, when the fed paper reaches a predetermined position. According to this method, the printer 4 monitors the paper position during printing, outputs a detection signal each time the paper passes a predetermined position, and the mapping end notifying means 8 receives the detection signal, and the mapping control means. 6 is notified of the end of the mapping process. According to this method, the paper passage detection position is set slightly before the position corresponding to the print amount of data for one block, so that the completion of mapping is reliably notified before the transfer of the immediately preceding block is completed. can do.

【0027】(4)単位データ量当たりのマッピング時
間が所定値に達したときマッピングの終了を通知するも
の。 まず、DMA空間の残量と1ページ当たりのマッピング
所要時間との関係を説明する。図6は、DMA空間の残
量と1ページ当たりのマッピング所要時間との関係を示
す図である。横軸は、DMA空間の残量を示しており、
縦軸は、1ページ当たりのマッピング所要時間を示して
いる。図6が示すように、DMA空間の残量(空き領
域)が多い内は、マッピングの最小データ単位である1
ページ分のデータをマッピングするのに短時間で済む
が、DMA空間の残量が少なくなると、1ページ分のデ
ータをマッピングするのに要する時間は長くなる。この
関係を利用すれば、1ページ当たりのマッピング所要時
間を監視することによって、DMA空間の残量が判る。
(4) A notification of the end of mapping when the mapping time per unit data amount reaches a predetermined value. First, the relationship between the remaining amount of DMA space and the required mapping time per page will be described. FIG. 6 is a diagram showing the relationship between the remaining space in the DMA space and the mapping required time per page. The horizontal axis indicates the remaining amount of DMA space,
The vertical axis represents the mapping required time per page. As shown in FIG. 6, when the remaining amount (free area) of the DMA space is large, the minimum data unit of mapping is 1
It takes a short time to map the data for one page, but when the remaining amount of the DMA space is small, the time required for mapping the data for one page becomes long. If this relationship is used, the remaining amount of DMA space can be known by monitoring the mapping required time per page.

【0028】この方法は、この関係を利用してマッピン
グの終了時点を決めるものである。すなわち、マッピン
グ制御手段6において、マッピング中、1ページ当たり
のマッピング所要時間を常時計測し、マッピング終了通
知手段8において、その計測値と基準値とを比較して、
計測値が基準値以下になったとき(図6の斜線部分)、
マッピング制御手段6に対してマッピング処理の終了を
通知する。この方法によれば、マッピング処理に時間が
掛かりそうな場合には、そのマッピング処理を中止し
て、次のブロックを形成することができる。ただ、この
方法だけでは、直前のブロックの転送完了時点と関連付
けてマッピング終了通知を出力することはできないの
で、この方法を採用するときには、上記(1)〜(3)
のいずれかの方法と組み合わせて用いる必要がある。
This method uses this relationship to determine the end point of mapping. That is, the mapping control means 6 constantly measures the mapping required time per page during mapping, and the mapping end notifying means 8 compares the measured value with the reference value,
When the measured value falls below the reference value (hatched area in Figure 6),
The mapping control means 6 is notified of the end of the mapping process. According to this method, when the mapping process is likely to take a long time, the mapping process can be stopped and the next block can be formed. However, since this method alone cannot output the mapping end notification in association with the transfer completion time point of the immediately preceding block, when this method is adopted, the above (1) to (3) are used.
It is necessary to use it in combination with any of the above methods.

【0029】(5)転送中のブロックの残りのデータ量
が所定値に達したときマッピングの終了を通知するも
の。 この方法では、DMA制御手段3において、転送中のブ
ロックの残りデータ量をカウントし、マッピング終了通
知手段8において、そのカウント値と基準値とを比較し
て、カウント値が基準値以下になったとき、マッピング
制御手段6に対してマッピング処理の終了を通知する。
この方法によれば、直前のブロックの転送完了前に、確
実に次のブロックを形成することができる。ただ、この
方法では、最初のブロックを形成するときには、その前
にブロックはなく、従って前のブロックの転送が行われ
ていないので、最初のブロックを形成するときだけは、
他の方法を採用する必要がある。
(5) A notification of the end of mapping when the remaining data amount of the block being transferred reaches a predetermined value. In this method, the DMA control unit 3 counts the remaining data amount of the block being transferred, and the mapping end notifying unit 8 compares the count value with the reference value, and the count value becomes equal to or less than the reference value. At this time, the mapping control means 6 is notified of the end of the mapping process.
According to this method, the next block can be reliably formed before the transfer of the immediately preceding block is completed. However, in this method, when forming the first block, there is no block before it, and therefore, since the transfer of the previous block has not been performed, only when forming the first block,
Other methods need to be adopted.

【0030】なお、上に例示した各方法は、それぞれ単
独で採用することもできるが、他の方法と組み合わせる
こともできる。そのことも含めて、いずれの方法を採用
するかは、イメージデータの内容等、状況に応じて最適
なものを採用すればよい。
Note that each of the above-exemplified methods can be adopted independently, or can be combined with other methods. Including this, which method should be adopted may be the most suitable one according to the situation such as the content of image data.

【0031】[0031]

【発明の効果】以上述べた如く、本発明のプリント制御
装置によれば、用紙1枚当たりのイメージデータのサイ
ズが膨大になって、DMA空間のサイズを超えてしまっ
ても、用紙1枚分のイメージデータを複数のブロックに
分割し、ブロック毎にDMA空間にマッピングすると共
に、ブロックの転送をリレーさせる。その結果、複数ブ
ロックの連続的な転送が可能となり、プリンタ側にメモ
リを設ける等の変更をすることなく、DMA空間のサイ
ズを超える大きさのイメージデータの印刷が可能とな
る。また、マッピング終了通知手段により、マッピング
されながら自動的に各ブロックが形成されるので、予め
DMA空間とイメージデータのサイズを考慮して、個々
のブロックのサイズを設定するというような手間が掛か
らない。
As described above, according to the print control apparatus of the present invention, even if the size of the image data per sheet becomes enormous and exceeds the size of the DMA space, one sheet of paper is enough. Image data is divided into a plurality of blocks, each block is mapped in the DMA space, and the block transfer is relayed. As a result, it is possible to continuously transfer a plurality of blocks, and it is possible to print the image data having a size exceeding the size of the DMA space without making a change such as providing a memory on the printer side. Further, since each block is automatically formed while being mapped by the mapping end notifying means, it is not necessary to set the size of each block in consideration of the size of the DMA space and the image data in advance. .

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

【図1】 本発明のプリント制御装置の概要を示すブロ
ック図
FIG. 1 is a block diagram showing an outline of a print control apparatus of the present invention.

【図2】 イメージデータとDMA空間の関係を示す図FIG. 2 is a diagram showing a relationship between image data and a DMA space.

【図3】 マッピング制御手段の動作例を示す図FIG. 3 is a diagram showing an operation example of mapping control means.

【図4】 DMAリレー手段の構成及びDMA制御手段
のDMAリレー関連部分の一例を示すブロック図
FIG. 4 is a block diagram showing an example of a configuration of a DMA relay unit and a DMA relay-related portion of a DMA control unit.

【図5】 マッピング終了通知手段の一例を示すブロッ
ク図
FIG. 5 is a block diagram showing an example of mapping end notification means.

【図6】 DMA空間の残量と1ページ当たりのマッピ
ング所要時間との関係を示す図
FIG. 6 is a diagram showing the relationship between the remaining amount of DMA space and the required mapping time per page.

【図7】 従来のプリント制御装置の概要を示すブロッ
ク図
FIG. 7 is a block diagram showing an outline of a conventional print control device.

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

1…メモリ、2…マッピング手段、3…DMA制御手
段、4…プリンタ、5…イメージ情報記憶手段、6…マ
ッピング制御手段、7…ブロック順序付手段、8…マッ
ピング終了通知手段、9…DMAリレー手段、31…転
送完了通知手段、32…アドレスレジスタ、33…カウ
ントレジスタ、81…基準値発生部、82…比較器、8
3…タイマー、91…情報入替手段、92,93…ブロ
ック情報保持部
1 ... Memory, 2 ... Mapping means, 3 ... DMA control means, 4 ... Printer, 5 ... Image information storage means, 6 ... Mapping control means, 7 ... Block ordering means, 8 ... Mapping end notifying means, 9 ... DMA relay Means, 31 ... Transfer completion notifying means, 32 ... Address register, 33 ... Count register, 81 ... Reference value generating unit, 82 ... Comparator, 8
3 ... Timer, 91 ... Information replacing means, 92, 93 ... Block information holding unit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 メモリ上に展開されたイメージデータ
を、マッピング手段により仮想メモリ上のDMA空間に
マッピングしてから、DMA制御手段によりプリンタに
DMA転送して印刷を行うプリント制御装置において、
未マッピングのイメージデータを順次上記DMA空間の
空き領域にマッピングしてブロックを形成し、また、1
つのブロックの転送完了毎に転送の完了したブロックを
アンマッピングするように上記マッピング手段を制御す
るマッピング制御手段と、マッピング手段で形成された
ブロックの転送順序を指定するブロック順序付手段と、
直前のブロックの転送完了前にマッピング制御手段に当
該ブロックのマッピング処理の終了を通知するマッピン
グ終了通知手段と、1つのブロックの転送完了毎に上記
転送順序に従って次のブロックの転送を開始するように
DMA制御手段に指示するDMAリレー手段とを具えた
ことを特徴とするプリント制御装置。
1. A print control apparatus for mapping image data expanded on a memory to a DMA space on a virtual memory by a mapping means, and then DMA-transferring to a printer by the DMA control means for printing.
Unmapped image data is sequentially mapped to the empty area of the DMA space to form a block.
Mapping control means for controlling the mapping means so as to unmap the transferred blocks each time the transfer of one block is completed, and block ordering means for designating the transfer order of the blocks formed by the mapping means,
A mapping end notifying means for notifying the mapping control means of the end of the mapping processing of the block before the completion of the transfer of the immediately preceding block, and the transfer of the next block is started in accordance with the transfer order each time the transfer of one block is completed. A print control device comprising: a DMA relay unit for instructing the DMA control unit.
JP5105046A 1993-04-07 1993-04-07 Print controller Pending JPH06295281A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5105046A JPH06295281A (en) 1993-04-07 1993-04-07 Print controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5105046A JPH06295281A (en) 1993-04-07 1993-04-07 Print controller

Publications (1)

Publication Number Publication Date
JPH06295281A true JPH06295281A (en) 1994-10-21

Family

ID=14397062

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5105046A Pending JPH06295281A (en) 1993-04-07 1993-04-07 Print controller

Country Status (1)

Country Link
JP (1) JPH06295281A (en)

Similar Documents

Publication Publication Date Title
US5671445A (en) Interface for transmitting graphics data to a printer from a host computer system in rasterized form
US4958299A (en) Control device for use with a drawing output unit
JP2001213015A (en) Image recorder
JP2000085211A (en) Print-controlling method and printing system
JPH06295281A (en) Print controller
JPH06295282A (en) Print controller
JP3116354B2 (en) Printer data management method
JPS5981778A (en) Print control system
JPH06295280A (en) Print controller
JPH08152977A (en) Method and system for image rotation printing processing
JP2007087347A (en) Data transfer unit
JPH0863306A (en) Print device
JPH0659833A (en) Printer in network environment
JP2998945B2 (en) Video transfer control device
JP3396831B2 (en) Printer system
JPH11348358A (en) Image formation apparatus
JP2004181769A (en) Printing device
JPH06305217A (en) Image forming device
JPH06344607A (en) Printer controlling apparatus
JP2803560B2 (en) Printer control device
JP2005231374A (en) Printer, method for managing memory of the printer and record medium recording program
JPS6349824A (en) Printer control system
JP2000127566A (en) Printer
JPH0746305B2 (en) Print controller
JPS6349437A (en) Printing data control system