Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4298632B2 - Data input device - Google Patents
[go: Go Back, main page]

JP4298632B2 - Data input device - Google Patents

Data input device Download PDF

Info

Publication number
JP4298632B2
JP4298632B2 JP2004324330A JP2004324330A JP4298632B2 JP 4298632 B2 JP4298632 B2 JP 4298632B2 JP 2004324330 A JP2004324330 A JP 2004324330A JP 2004324330 A JP2004324330 A JP 2004324330A JP 4298632 B2 JP4298632 B2 JP 4298632B2
Authority
JP
Japan
Prior art keywords
page
data
fifo
input device
data input
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
Application number
JP2004324330A
Other languages
Japanese (ja)
Other versions
JP2006135812A (en
Inventor
智生 浅見
悟 小仲井
一貴 高本
素久 池田
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2004324330A priority Critical patent/JP4298632B2/en
Publication of JP2006135812A publication Critical patent/JP2006135812A/en
Application granted granted Critical
Publication of JP4298632B2 publication Critical patent/JP4298632B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Image Input (AREA)
  • Storing Facsimile Image Data (AREA)

Description

本発明は、デジタル複写機に代表される画像機器のデータをページ単位で取り扱う画像機器のビデオデータをモニタするものであり、具体的には、画像機器のデバッグ・検査冶具として使用するデータ入力装置に関するものである。   The present invention monitors video data of image equipment that handles data of image equipment represented by a digital copying machine in units of pages, and more specifically, a data input device used as a debugging / inspection jig for image equipment. It is about.

従来では、ストリーミングデータ等のモニタを行うデータ入力装置において、データをモニタして逐次データを半導体メモリ等に格納し、メモリがいっぱいになったら古いデータから順次上書きして使用するデータモニタ装置において、このメモリを極力少ない容量で済ませてコストダウンを図るために、このメモリをリングバッファとして使用して、あたかもエンドレスなメモリに見立てて利用する方式が知られている(例えば、特許文献1参照)。
このようなリングバッファ動作におけるメモリへの書き込みは、メモリのライトポインタをインクリメントしてメモリ最終アドレスまで達したら、メモリ先頭アドレスへ戻り、再び同処理を繰り返す動作を行う。
また同様にメモリからの読み出しは、書き込み動作と同様、メモリの読み取りポインタをインクリメントしてメモリ最終アドレスまで達したら、メモリ先頭アドレスへ戻り、再び同処理を繰り返す動作を行う。
このように有限のメモリをリング動作させることで、データの途中でメモリ最終アドレスに達しても、データの続きは引き続きメモリの先頭アドレスより格納され、メモリを大変有効に活用できる。
このような従来のリングバッファメモリの使い方は、メモリの読み取りポインタが書き込みポインタを追い越さないように制御してアンダーランエラーの発生なく、また書き込みポインタが読み取りポインタを追い越さないように制御してオーバーランエラーの発生なく制御してメモリの書き込み・読み出し操作を制御している。
さて、このようなリングメモリを使用するにあたり、データをページあるいはパケット単位で取り出し可能とするにあたり、1ページバッファサイズを固定とすることでページ境界を認識できるようにしている場合がある。
しかし1ページのデータ長が様々に異なる場合では仮に1ページバッファサイズより非常に小さい場合でも常に同じサイズのバッファを確保する必要があり、メモリにはデータサイズによらず、常に固定ページ分しか保持することができない。
また、可変長レコードデータサイズ=1ページバッファサイズとしてメモリに取り込む場合には、通信のパケットデータのように、データの中身にヘッダ情報を付加して、ページサイズ等の情報をデータとして通信する方法もある。
さらに、ビデオデータに代表されるストリーミングデータのようにデータにヘッダ情報を含まない場合でも、可変長レコードデータをページ単位で取り出し可能とするために、ページ毎に有効データ数をカウントするなどして各ページのサイズ情報を取得しデータをメモリに書き込む。
この一方で、データサイズ情報を別途用意するステータス格納用メモリに格納しておくことで実現可能である。このようにすることで、レコードデータ長が小さい場合には、その分多くのページ数を保持できる。
特開平06−217094号公報
Conventionally, in a data input device that monitors streaming data or the like, in a data monitoring device that monitors data and sequentially stores the data in a semiconductor memory or the like, and overwrites the old data sequentially when the memory is full, In order to reduce the cost by reducing the memory capacity as much as possible, there is known a method of using this memory as a ring buffer and using it as if it were an endless memory (see, for example, Patent Document 1).
In writing to the memory in such a ring buffer operation, when the write pointer of the memory is incremented to reach the memory final address, the operation returns to the memory start address and repeats the same process again.
Similarly, in reading from the memory, similarly to the writing operation, when the read pointer of the memory is incremented to reach the memory final address, the operation returns to the memory start address and the same processing is repeated again.
As described above, by ringing the finite memory, the continuation of the data is continuously stored from the start address of the memory even if the memory final address is reached in the middle of the data, and the memory can be utilized very effectively.
The conventional use of the ring buffer memory is controlled so that the memory read pointer does not overtake the write pointer so that no underrun error occurs, and the write pointer does not overtake the read pointer. Memory write / read operations are controlled without errors.
When such a ring memory is used, there is a case where a page boundary can be recognized by fixing the size of one page buffer so that data can be taken out in units of pages or packets.
However, if the data length of one page varies, it is necessary to always secure a buffer of the same size even if it is much smaller than the buffer size of one page, and the memory always holds only a fixed page regardless of the data size. Can not do it.
In addition, when fetching into the memory as variable length record data size = 1 page buffer size, a method of communicating information such as page size as data by adding header information to the contents of the data like communication packet data There is also.
Furthermore, even when the header information is not included in the data, such as streaming data typified by video data, the number of valid data is counted for each page so that variable-length record data can be retrieved in units of pages. Get size information for each page and write data to memory.
On the other hand, it can be realized by storing the data size information in a separately prepared status storage memory. In this way, when the record data length is small, a larger number of pages can be held accordingly.
Japanese Patent Laid-Open No. 06-217094

しかしながら、データモニタ装置のように、最終的にメモリに格納されている最新データのみ必要な場合、ページ単位でデータの読み出しを行おうとした場合、上述したステータス格納メモリには既に上書きがなされて喪失してしまったページデータの情報も含んでいるため、メモリに残っているページデータを読み出すためには、すでに上書きがなされてデータが喪失しているかを管理する制御手段が別途必要となっていた。
そこで、本発明の目的は、上述した実情を考慮して、このメモリデータ管理手段をなくし、簡単な回路追加で、メモリに格納されているストリーミングデータの最新部分をページ単位で読み出すことを可能にし、これにより、複数ページの可変長レコードデータを受信してリングバッファメモリに書き込む場合でも、従来よりも簡素な回路でメモリ格納データを読み出すことを可能にするデータ入力装置を提供することにある。
However, when only the latest data finally stored in the memory is necessary, as in a data monitor device, when the data is read out in units of pages, the above-described status storage memory is already overwritten and lost. In order to read the page data remaining in the memory, a control means for managing whether the data has already been overwritten and data has been lost is necessary. .
Accordingly, an object of the present invention is to eliminate the memory data management means in consideration of the above-described situation, and to read out the latest part of the streaming data stored in the memory in page units with a simple circuit addition. Accordingly, it is an object of the present invention to provide a data input device that enables memory stored data to be read out with a simpler circuit than before even when receiving variable length record data of a plurality of pages and writing it into a ring buffer memory.

上記の課題を解決するために、請求項1に記載の発明は、画像メモリがリングバッファとして構成され、メモリ最大アドレスを超えた場合は、メモリアドレスを先頭アドレスに戻して上書き処理を行い、前記画像メモリに取り込んだ一番古いデータから上書きされていくように構成された制御手段を備えたデータ入力装置において、前記制御手段は、ソフトウェアが前記画像メモリを読み出す際に参照する前記画像メモリの格納情報を専用FIFOメモリに格納し、前記画像メモリがリングしてページの上書きが発生した場合には、ページステータスFIFOのデータをハードウェアが自動で読み出して、上書きがなされた先頭ページ情報を読み捨てることを特徴とする。
また、請求項2に記載の発明は、前記画像メモリに取り込んだデータのページ数をソフトウェアにより検知する検知手段が、前記ページステータスFIFOを読み出す前ごとにFIFOエンプティフラグを検索し、FIFOエンプティとなっていた場合、前記ページステータスFIFOの読み出しを終了して、これまでのFIFOの読み出し回数に基づいて取り込みページ数を知ることができることを特徴とする。
また、請求項3に記載の発明は、前記画像メモリに取り込んだデータのページ数をソフトウェアにより検知する検知手段が、前記ページステータスFIFOの残量カウンタ値を読み出すことで何ページ分のデータが格納されているかを検出することができ、前記残量カウンタ値の回数分だけ前記ページステータスFIFOの読み出しを行って各ページのデータ情報を知ることができるようにしたことを特徴とする。
また、請求項4に記載の発明は、前記画像メモリに取り込んだデータのページ数をソフトウェアにより検知する検知手段が、前記画像メモリに取り込んだデータのページ数をカウントするソフトウェアから読み出し可能な取り込みページ数をカウントするカウンタを設け、前記画像メモリがリングしてページの上書きが発生した場合には、前記カウンタが1デクリメントすることを特徴とする。
また、請求項5に記載の発明は、前記画像メモリがリングして上書きが発生したことを検出する手段は、前記ページステータスFIFO出力とDMAアドレスカウンタの値を比較して行うことを特徴とする。
In order to solve the above-described problem, the invention according to claim 1 is configured such that when the image memory is configured as a ring buffer and the memory maximum address is exceeded, the memory address is returned to the top address and overwriting is performed. In a data input device including control means configured to be overwritten from the oldest data fetched into the image memory, the control means stores the image memory to be referred to when software reads the image memory. Information is stored in a dedicated FIFO memory, and when the image memory is ringed and a page is overwritten, the page status FIFO data is automatically read by the hardware, and the overwritten first page information is discarded. It is characterized by that.
According to a second aspect of the present invention, the detecting means for detecting the number of pages of data fetched into the image memory by software searches the FIFO empty flag every time before reading the page status FIFO, and becomes FIFO empty. In such a case, the reading of the page status FIFO is terminated, and the number of fetched pages can be known based on the number of FIFO readings so far.
According to a third aspect of the present invention, the detecting means for detecting the number of pages of data fetched into the image memory by software reads out the number of pages of data by reading out the remaining amount counter value of the page status FIFO. The page status FIFO is read by the number of times of the remaining amount counter value so that the data information of each page can be known.
According to a fourth aspect of the present invention, there is provided a fetched page which can be read from software in which the detecting means for detecting the number of pages of data fetched into the image memory by software counts the number of pages of data fetched into the image memory. A counter for counting the number is provided, and when the image memory is ringed and a page is overwritten, the counter is decremented by one.
According to a fifth aspect of the present invention, the means for detecting that the image memory has ringed and overwritten is performed by comparing the page status FIFO output with the value of the DMA address counter. .

また、請求項6に記載の発明は、前記FIFOエンプティフラグを参照し、エンプティフラグが立っている状態でのDMAアドレスがFIFO出力データと等しい場合には上書きとはせず、エンプティフラグが下がってから最初のDMAアドレスがFIFO出力データと等しい場合に上書き発生であると検出するようにすることを特徴とする。
また、請求項7に記載の発明は、前記ページステータスFIFOの深さを超える場合については、前記ページステータスFIFOより出力されるFIFOに空きがない状態を示すフルフラグがオンであることを検出した場合、前記ページステータスFIFOをハードウェアが自動で読み出してFIFOに格納されている先頭ページ情報を読み捨てることを特徴とする。
また、請求項8に記載の発明は、前記画像メモリに取り込んだデータのページ数をカウントするソフトウェアから読み出し可能な取り込みページ数カウンタが、前記ページステータスFIFOの深さ分を超えた場合にはカウントアップ動作を止めることを特徴とする。
また、請求項9に記載の発明は、複数の機器とのインターフェースチャネルを有し、各チャネルが互いに非同期で動作するために、前記ページステータスFIFOもチャネル分複数備えている場合で且つ全チャネルを使用しない場合において、前記ページステータスFIFOの深さを超えるページ取り込みがなされた場合には、未使用チャネルのFIFOも使用チャネルのページ情報を追加格納することで、最低2倍のページ数情報を格納できるようにしたことを特徴とする。
また、請求項10に記載の発明は、取り込んだ最新ページ情報については前記ページステータスFIFOとは別にステータスレジスタを使用してソフトウェアに通知できる仕組みを有する請求項1ないし9のいずれか1項記載のデータ入力装置を特徴とする。
また、請求項11に記載の発明は、複数チャネル分のビデオインターフェースを有し、各チャネルが色毎に割り振られた請求項1記載のデータ入力装置を特徴とする。
また、請求項12に記載の発明は、各チャネル同一ページにおいてデータがないチャネルについては、ページ数カウンタはカウントアップするが、ページステータスのサイズはゼロとして前記ページステータスFIFOに格納する請求項11記載のデータ入力装置を特徴とする。
The invention according to claim 6 refers to the FIFO empty flag, and when the DMA address in the state where the empty flag is set is equal to the FIFO output data, it is not overwritten and the empty flag is lowered. When the first DMA address is equal to the FIFO output data, it is detected that overwriting has occurred.
According to a seventh aspect of the present invention, when the depth of the page status FIFO is exceeded, it is detected that a full flag indicating that the FIFO output from the page status FIFO is empty is ON. The page status FIFO is automatically read by hardware, and the first page information stored in the FIFO is read and discarded.
According to the invention described in claim 8, when the fetched page number counter that can be read from the software that counts the number of pages of data fetched into the image memory exceeds the depth of the page status FIFO, it is counted. It is characterized by stopping the up operation.
The invention according to claim 9 has interface channels with a plurality of devices, and since each channel operates asynchronously with each other, the page status FIFO also includes a plurality of channels and all channels are provided. When the page is fetched exceeding the depth of the page status FIFO when not used, the unused channel FIFO also stores the used channel page information to store at least twice the page number information. It is possible to do it.
Further, the invention described in claim 10 has a mechanism that can notify the latest page information fetched to software using a status register separately from the page status FIFO. Features a data input device.
The invention according to claim 11 is characterized in that the data input device according to claim 1 has video interfaces for a plurality of channels, and each channel is allocated for each color.
According to a twelfth aspect of the present invention, the page number counter is counted up for a channel having no data in the same page of each channel, but the page status size is stored as zero in the page status FIFO. It features a data input device.

本発明によれば、リングメモリサイズを超えたデータの取り込みがなされた場合でも、リングメモリに格納されている最新のページデータを常に保持してソフトウェアから読み出しが可能となる。また、レコードデータ長が小さい場合には、その分多くのページ数を保持できることになる。   According to the present invention, even when data exceeding the ring memory size is taken in, the latest page data stored in the ring memory is always held and can be read from software. In addition, when the record data length is small, a larger number of pages can be held accordingly.

以下、図面を参照して、本発明の実施の形態を詳細に説明する。図1は本発明によるデータ入力装置のハードウェア構成例を示す概略回路図である。図1には、ソフトウェアを実行するCPU1、プログラムやデータを格納するROM2、ターゲット画像機器15のビデオインターフェースとのデータ入力を行なうビデオ(VIDEO)I/F3、ビデオI/F3に入力する画像をリングメモリとの間で転送するDMAC4が示してある。
また、図1には、ターゲット画像機器15から入力されるビデオデータをバッファリングしてメモリ動作周波数に変換するVIFIFO5、リングメモリに格納されたデータをターゲット画像機器15に対して出力するためにデータをバッファリングしてビデオI/F3の動作周波数に変換するVOFIFO6が示してある。
さらに、図1には、ターゲット画像機器15から入力されたデータをリングメモリのどこに(アドレス)、どのくらいの(画像サイズ)格納するかの情報を格納するためのページステータスFIFO7、ソフトウェアから各種設定を格納するレジスタ8、ビデオI/F3から取り込んだビデオデータをリングメモリに格納するためのメモリI/Fおよびソフトウェアからのメモリアクセスを行うDRAMC9が示してある。
さらにまた、図1には、ビデオデータを格納しておくリングメモリ(画像メモリ)10、ソフトウェアがデータを表示出力するための表示I/F11、本データ入力装置をユーザが操作するための操作部I/F12、取り込んだリングメモリを外部記憶装置等に格納するためのディスク(Disk)I/F13、ネットワーク経由でデータベースサーバやターゲット画像機器と通信するためのネットワーク(Network)I/F14等のモジュールを示している。
これらの機能を実現できる構成であれば、モジュール間の接続形態等は、任意で構わない。図1には、また、表示I/F11に接続される表示装置16、操作部I/F12に接続されるキーボード17、ディスク(Disk)I/F13に接続される記憶装置18を示している。
図2は本発明のデータ入力装置のソフトウェア構成例を示す概略図である。図2には、オペレーティングシステム22上に、データ入力ツールの全体制御やユーザインターフェースを担当する画像入出力ツールメイン19、ビデオ(VIDEO)I/Fハードウェアの設定・コントロールを担当するビデオインターフェース制御20が示してある。
また、図2には、各種データのフォーマット変換・圧縮伸張を行なうプラグイン21−1、21−2、...21−Nとこれらを制御する画像変換ライブラリ25、ネットワーク上のデータベースサーバを利用するためのデータベースアクセス26、ハードウェアを直接制御するためのビデオインターフェースドライバ23、ネットワークドライバ24等がインストールされる。
これらの機能を実現できる構成であれば、モジュール階層、オペレーティングシステムの種類等は任意で構わない。これらのソフトウェアは図1のROM2等に格納され、CPU1が順次、本ソフトウェアを実行していく。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. FIG. 1 is a schematic circuit diagram showing a hardware configuration example of a data input device according to the present invention. FIG. 1 shows a CPU 1 that executes software, a ROM 2 that stores programs and data, a video (VIDEO) I / F 3 that inputs data to a video interface of a target image device 15, and an image that is input to the video I / F 3. A DMAC 4 for transferring to and from the memory is shown.
Further, FIG. 1 shows a VIFIFO 5 for buffering video data input from the target image device 15 and converting it to a memory operating frequency, and data for outputting the data stored in the ring memory to the target image device 15. VOFIFO 6 is shown which converts the signal to the operating frequency of the video I / F 3.
Further, FIG. 1 shows a page status FIFO 7 for storing information about where (address) and how much (image size) the data input from the target image device 15 is stored, and various settings from software. A register 8 for storing, a memory I / F for storing video data taken in from the video I / F 3 in a ring memory, and a DRAM C 9 for performing memory access from software are shown.
Furthermore, FIG. 1 shows a ring memory (image memory) 10 for storing video data, a display I / F 11 for software to display and output data, and an operation unit for a user to operate the data input device. Modules such as an I / F 12, a disk (Disk) I / F 13 for storing the captured ring memory in an external storage device, and a network (Network) I / F 14 for communicating with a database server or a target image device via a network Is shown.
As long as these functions can be realized, the connection form between the modules may be arbitrary. FIG. 1 also shows a display device 16 connected to the display I / F 11, a keyboard 17 connected to the operation unit I / F 12, and a storage device 18 connected to a disk (Disk) I / F 13.
FIG. 2 is a schematic diagram showing a software configuration example of the data input device of the present invention. FIG. 2 shows an image input / output tool main 19 in charge of overall control of a data input tool and a user interface, and a video interface control 20 in charge of setting / control of video (VIDEO) I / F hardware. Is shown.
FIG. 2 also shows plug-ins 21-1, 21-2,. . . 21-N and an image conversion library 25 for controlling them, a database access 26 for using a database server on the network, a video interface driver 23 for directly controlling hardware, a network driver 24, and the like are installed.
As long as these functions can be realized, the module hierarchy, the type of operating system, and the like may be arbitrary. These software are stored in the ROM 2 or the like in FIG. 1, and the CPU 1 sequentially executes the software.

図3はターゲット画像機器(データの送信元機器)の構成例を示す概略図である。図3は本発明のデータ入力装置を用いてビデオデータの入力を行うターゲット画像機器の1代表例であるデジタル複写機の構成例である。
図3において、画像入力部28から入力された画像は、各種ビデオインターフェースで接続された1つまたは複数の画像処理部29、30、画像メモリ(リングメモリ)31を経由して、画像形成部32でハードコピーされる。途中のモジュールの数やバリエーションは任意で構わない。
また、モジュール間インターフェースが全てビデオインターフェースである必要はない。必要要件は、少なくともモジュール間のデータ転送インターフェースがビデオインターフェースであることである。図中に点線で記載した部分が本発明のデータ入力装置を接続した形態である。
図4はリングメモリのリング制御を模式的に表す図である。図4には、リングメモリのリング範囲を超えるデータ転送時には、メモリアドレスを先頭番地に戻して古いデータを上書きしていく様子を示している。
図5はページ先頭アドレスFIFOの書き込み・読み取り制御タイミングを示すタイミングチャートである。図5には、リングメモリがリングしてページデータの上書きが発生した場合には、ページステータスFIFO(先入れ先出し)の読み出し動作を行うタイミングチャートを示している。
図6はデータ入力装置におけるページステータスFIFO読み出しフローを説明するフローチャートである。図6において、まず、ページステータスFIFOのデータ読み出し(S1)、次に、ページステータスFIFOエンプティフラグを読み出し(S2)、エンプティかどうか判断する(S3)。エンプティならばフローを終了し、エンプティでないならば、ステップ(S1)、(S2)を繰り返す。
図7はページデータなし混在時のタイミングチャートである。とくにカラー複写機のデータを取り込む場合に、各色データにおいて、未使用の場合(データがビデオデータとして転送されない)でも、このときには画像サイズ=0ということでページステータスを書き込んでおくことによって各色のページ相関を保っておくための動作チャートを示している。
FIG. 3 is a schematic diagram illustrating a configuration example of a target image device (data transmission source device). FIG. 3 is a configuration example of a digital copying machine which is one representative example of target image equipment for inputting video data using the data input device of the present invention.
In FIG. 3, an image input from the image input unit 28 is sent to an image forming unit 32 via one or more image processing units 29 and 30 and an image memory (ring memory) 31 connected by various video interfaces. Hard copy. The number and variation of modules on the way may be arbitrary.
Further, it is not necessary that all the inter-module interfaces are video interfaces. The requirement is that at least the data transfer interface between modules is a video interface. A portion indicated by a dotted line in the figure is a form in which the data input device of the present invention is connected.
FIG. 4 is a diagram schematically showing ring control of the ring memory. FIG. 4 shows a state in which the memory address is returned to the top address and old data is overwritten when transferring data exceeding the ring range of the ring memory.
FIG. 5 is a timing chart showing the write / read control timing of the page head address FIFO. FIG. 5 shows a timing chart for performing a page status FIFO (first-in first-out) read operation when the ring memory is ringed and page data is overwritten.
FIG. 6 is a flowchart illustrating a page status FIFO read flow in the data input device. In FIG. 6, the page status FIFO data is read first (S1), then the page status FIFO empty flag is read (S2), and it is determined whether it is empty (S3). If it is empty, the flow ends. If it is not empty, steps (S1) and (S2) are repeated.
FIG. 7 is a timing chart when there is no page data. In particular, when capturing data from a color copying machine, even if each color data is unused (data is not transferred as video data), the page status of each color can be obtained by writing the page status with image size = 0. The operation | movement chart for maintaining correlation is shown.

本発明によるデータ入力装置の第1の実施の形態を図1および図4を参照して説明する。上述したようなハードウェア・ソフトウェア構成を有する本発明によるデータ入力装置では、以下のとおりのオペレーションを行って画像機器からのページデータを取り込む。
本発明によるデータ入力装置をターゲット画像機器と接続した状態で、ユーザは図1の操作部I/F12より画像取り込みスタートを指示し、所定のページ数の画像データを取り込んだところでユーザは画像データ取り込みストップを指示する。
この間、ビデオI/F3のFGATE、LSYNC、LGATE等のビデオ同期信号に同期して入力されるデータは順次、リングメモリ(画像メモリ)10に格納される。ここで、FGATE=画像副走査有効信号、LSYNC=ライン同期信号、LGATE=主走査有効信号を示す。従来どおりのビデオI/Fでありとくに説明しない。
ここで、図4はリングメモリ10をリングバッファとして使用したときの一例である。ビデオI/F3から入力されたデータは、リングメモリ10の先頭番地より順次格納され、図4の場合では5ページ目の途中でリングメモリ10の最終番地に到達したものを示している。
最終番地に到達したらメモリアドレスを先頭番地に戻し、1ページ目のデータより上書きを行い、本例では2ページ目格納領域途中で画像取り込みが終了した場合を示している。このとき、リングメモリ10には3ページ目から6ページ目が格納されることになる(本例では2ページ目の画像データの一部がリングメモリ上に残っているが、一部分でも上書きされた場合にはメモリ格納データとして取り扱わない)。
このリングメモリ10に格納されているページデータをソフトウェアがアクセスするためには、各ページデータの先頭アドレスや画像サイズの情報が必要になるが、これらは専用のFIFOメモリに格納し、データ取り込み動作が終了した段階で本FIFOを読み出すことで、各ページの先頭アドレス、および画像サイズを知ることができる。
ここで、本発明では、このページステータスFIFOメモリ7には常にリングメモリ10に格納されているページ情報のみが格納されるように制御することが特徴であり、その方式は、ページの上書きを検出した場合には、ページステータスFIFOを一度読み出してしまうことで上書きされたページステータスがページステータスFIFOから削除されることを特徴とする。
ここで、ページの上書き検出は、リングメモリ書き込みアドレス(DMAアドレス)がページステータスFIFO出力データ(ページ先頭アドレス)と同値になったことをコンパレータ(図示せず)にて検出する。
A first embodiment of a data input device according to the present invention will be described with reference to FIGS. In the data input device according to the present invention having the hardware / software configuration as described above, the following operation is performed to capture page data from the image equipment.
In a state where the data input device according to the present invention is connected to the target image device, the user instructs the start of image capture from the operation unit I / F 12 of FIG. 1, and when the user captures a predetermined number of pages, the user captures the image data. Instruct stop.
During this time, data input in synchronization with video synchronization signals such as FGATE, LSYNC, and LGATE of the video I / F 3 are sequentially stored in the ring memory (image memory) 10. Here, FGATE = image sub-scanning valid signal, LSYNC = line synchronization signal, and LGATE = main scanning valid signal. This is a conventional video I / F and will not be described in particular.
Here, FIG. 4 is an example when the ring memory 10 is used as a ring buffer. The data input from the video I / F 3 is sequentially stored from the head address of the ring memory 10, and in the case of FIG. 4, the data reaches the final address of the ring memory 10 in the middle of the fifth page.
When the final address is reached, the memory address is returned to the first address, overwriting is performed from the data of the first page, and in this example, the image capture is completed in the middle of the storage area of the second page. At this time, the third to sixth pages are stored in the ring memory 10 (in this example, a part of the image data of the second page remains on the ring memory, but even a part is overwritten). In some cases, it is not handled as memory storage data).
In order for the software to access the page data stored in the ring memory 10, information on the start address and image size of each page data is required. However, these are stored in a dedicated FIFO memory for data fetching operation. When this FIFO is read out at the stage where is finished, the start address of each page and the image size can be known.
Here, the present invention is characterized in that the page status FIFO memory 7 is controlled so that only page information stored in the ring memory 10 is always stored. This method detects page overwriting. In such a case, the overwritten page status is deleted from the page status FIFO by reading the page status FIFO once.
Here, in the page overwriting detection, a comparator (not shown) detects that the ring memory write address (DMA address) has the same value as the page status FIFO output data (page head address).

また、ページステータスFIFOは、詳細には、ページ先頭アドレスを格納するページ先頭アドレスステータスFIFOと、ページサイズを格納するページサイズステータスFIFOの少なくとも2種を含んでいる。図5にページ先頭アドレスステータスFIFOの書き込み、読み取り制御のタイミングチャートを示している。
図5に示すとおり、ページ先頭アドレスステータスFIFO出力データとDMAアドレスが一致したらページステータスFIFOの読み出し動作を行うことにより、リングメモリ10で上書きされてしまったページ情報を読み出してしまう。これによりFIFO出力データはリングメモリ10に格納されている一番古いページデータのページ情報となる。
上述したデータ入力装置において、ユーザは図1の操作部I/F12より画像取り込みスタートを指示し、所定のページ数の画像を取り込んだところでユーザは画像取り込みストップを指示する。この後、例えば、取り込んだデータを表示装置16に表示するためにデータの読み出しをソフトウェアが行う。
このとき、まず、ソフトウェアはページステータスFIFOの読み出しを行い、リングメモリ10に格納されている先頭ページの先頭アドレス、およびデータサイズを認識する。
In detail, the page status FIFO includes at least two types of page top address status FIFO for storing the page top address and page size status FIFO for storing the page size. FIG. 5 shows a timing chart of the write / read control of the page head address status FIFO.
As shown in FIG. 5, when the page head address status FIFO output data matches the DMA address, the page information that has been overwritten in the ring memory 10 is read by performing the page status FIFO read operation. As a result, the FIFO output data becomes the page information of the oldest page data stored in the ring memory 10.
In the above-described data input device, the user instructs the start of image capture from the operation unit I / F 12 of FIG. 1, and when the user captures a predetermined number of pages, the user instructs stop of image capture. Thereafter, for example, the software reads out the data in order to display the captured data on the display device 16.
At this time, first, the software reads the page status FIFO, and recognizes the head address and data size of the head page stored in the ring memory 10.

次に、ソフトウェアから読み出し可能な構成としたページステータスFIFOエンプティフラグをチェックする。ここでエンプティフラグが立っていたら、最初に読み出した1ページ分の情報しかなかったとソフトウェアは判断して、1ページ分のデータの読み出しを行う。
しかし、ここでエンプティフラグがまだ立っていない場合には、ページステータスFIFOには読み出すべきページ情報が残っていることになるため、ソフトウェアは再度ページステータスFIFOの読み出しを行う。これ以降も同様に、ページステータスFIFOエンプティフラグが立っていなかったら本動作を繰り返す(図6参照)。
この動作でページステータスFIFOを読み出した回数分のページデータ情報が得られ、これをもとにリングメモリ10に格納されている複数ページ分のデータを読み出すことが可能となる。ページステータスFIFOに格納されているページ数をソフトウェアが知ることができ、ページステータスFIFOの読み出し回数を決定できる。
上述したデータ入力装置において、まずソフトウェアはソフトウェアから読み出し可能な構成としたページステータスFIFOの残量カウンタ値出力信号の読み出しを行い、ページステータスFIFOに格納されているデータ数(ページ数)を認識する。
ここで得たページ数分、ソフトウェアはページステータスFIFOを読み出し、所定ページ数分のデータ情報を得ることができる。これをもとにリングメモリ10に格納されている複数ページ分のデータを読み出すことが可能となる。
これによれば、毎回エンプティフラグの読み出しを行うことによるソフトウェアの複雑化の恐れなく、ページステータスFIFOに格納されているページ数をソフトウェアが知ることができ、ページステータスFIFOの読み出し回数を決定できる。
また、例えば、取り込んだデータを表示装置16に表示するためにデータの読み出しをソフトウェアが行うとき、まずソフトウェアはソフトウェアから読み出し可能な構成とした画像取り込みページ数カウンタを参照し、何ページのデータを取り込んだのかを認識する。
このデータ取り込みページ数カウンタは、ページ単位でデータ取り込み後に1ずつインクリメントし、上述した第1の実施の形態で示した上書き検出時には、1ずつデクリメントするように制御され、また、取り込み動作が終了したらカウンタ値はそのまま保持し、次の取り込み動作開始時にゼロにクリアするように制御される構成となっている。すなわち、ソフトウェアの読み出し回数に拘わらずカウンタ値は保持される。
本カウンタ値はソフトウェアから読み出されても値が変わらないため、ハードウェアがソフトウェアに対して読み出し指示するページ数が解り、本装置開発時において発生する不具合がハードウェアによるものか、またはソフトウェアによるものかの切り分けが付き易くなる。
したがって、メモリの上書き検出回路にページステータスFIFO出力を利用することで簡素化する。上書きの検出回路は、DMAアドレスカウンタ値とページステータスFIFO出力を常に比較していればよく、検出回路が単純でゲート規模を抑えることができ、かつ信頼性も向上する。
Next, a page status FIFO empty flag configured to be readable from software is checked. If the empty flag is set, the software determines that there is only information for one page read out first, and reads out data for one page.
However, if the empty flag has not been raised yet, page information to be read remains in the page status FIFO, so the software reads the page status FIFO again. Similarly thereafter, if the page status FIFO empty flag is not set, this operation is repeated (see FIG. 6).
With this operation, page data information corresponding to the number of times the page status FIFO is read is obtained, and data for a plurality of pages stored in the ring memory 10 can be read based on the page data information. The software can know the number of pages stored in the page status FIFO, and the number of page status FIFO reads can be determined.
In the data input device described above, first, the software reads the remaining status counter value output signal of the page status FIFO configured to be readable from the software, and recognizes the number of data (number of pages) stored in the page status FIFO. .
The software can read the page status FIFO for the number of pages obtained here, and obtain data information for a predetermined number of pages. Based on this, data for a plurality of pages stored in the ring memory 10 can be read.
According to this, the software can know the number of pages stored in the page status FIFO without fear of complicating the software by reading the empty flag every time, and the number of times of reading the page status FIFO can be determined.
Further, for example, when software reads out data to display the captured data on the display device 16, the software first refers to an image capture page number counter that is configured to be readable from the software, and how many pages of data are stored. Recognize whether it was imported.
This data fetch page number counter is incremented by 1 after fetching data in page units, and is controlled to decrement by 1 when overwriting is detected as described in the first embodiment, and when the fetch operation is completed. The counter value is held as it is and is controlled to be cleared to zero at the start of the next capturing operation. That is, the counter value is held regardless of the number of software reads.
This counter value does not change even if it is read from the software. Therefore, the number of pages that the hardware instructs the software to read is understood, and the problem that occurs during the development of this device is caused by the hardware, or by the software. It will be easier to identify things.
Therefore, it is simplified by using the page status FIFO output in the memory overwrite detection circuit. The overwriting detection circuit only needs to constantly compare the DMA address counter value and the page status FIFO output, the detection circuit is simple, the gate scale can be suppressed, and the reliability is improved.

ページの上書き検出は、リングメモリライトアドレス(DMAアドレス)がページステータスFIFO出力データ(ページ先頭アドレス)と同値になったことをコンパレータにて検出するだけでは、データ取り込みスタート後、例えば、DMAアドレスカウンタ値=0、かつページステータスFIFO出力=0という条件が成立してしまう場合があるため、本発明によるデータ入力装置では、この画像取り込みスタート直後の上記成立条件をページ上書き検出条件より排除することを特徴としている。
排除する手段は、ページステータスFIFOのエンプティフラグが立っていない場合をページ上書き条件にANDすることで行う。ここで本条件が常に成立するために、ページステータスFIFOはデータ取り込みスタート指示直後にオールクリアを行ってFIFO内データをクリアしておく。
これはデータ取り込み動作を繰り返し行う場合には、FIFOに既にデータが入っていることになるため誤動作を防ぐためである。これにより、ページステータスFIFOエンプティフラグがいったん立ち、その後、実際にデータを取り込むさいのDMAアドレス−FIFO出力値比較時には、上書き発生とは検出されない構成となる。
メモリ上書き検出回路では、デフォルトでFIFO出力が先頭アドレス(=0)である場合がある。このとき、リングメモリ10に書き込む先頭で上書き検出を誤検出してしまうことがある。
For page overwrite detection, for example, a DMA address counter can be used after the start of data fetching simply by detecting that the ring memory write address (DMA address) has the same value as the page status FIFO output data (page head address). Since the condition that the value = 0 and the page status FIFO output = 0 may be satisfied, the data input device according to the present invention excludes the satisfied condition immediately after the start of image capturing from the page overwrite detection condition. It is a feature.
The means for eliminating is performed by ANDing the page overwrite condition when the empty flag of the page status FIFO is not set. Here, since this condition is always satisfied, the page status FIFO clears the data in the FIFO by performing all clear immediately after the data fetch start instruction.
This is to prevent malfunction because data is already stored in the FIFO when the data capturing operation is repeated. As a result, the page status FIFO empty flag is once set, and thereafter, when comparing the DMA address-FIFO output value when actually fetching data, the occurrence of overwriting is not detected.
In the memory overwrite detection circuit, the FIFO output may be the top address (= 0) by default. At this time, the overwriting detection may be erroneously detected at the head of writing to the ring memory 10.

上述したデータ入力装置において、例えばページステータスFIFOの深さ容量が3だとすると、図4の例ではリングメモリ10には少なくとも4ページ分格納できるにも拘わらず、そのデータ情報を格納するFIFO容量は3ページ分しかないという場合がある。
このような場合には、ソフトウェアは3ページ分のデータしか情報を得ることができないが、このとき、ページステータスFIFOには取り込んだ最新の3ページ分のデータ情報を保持しておかなければならない。
よって本例では3ページ分FIFO容量すべてデータが格納された時点でFIFOより出力されるFIFOフルフラグ信号が立っているときに、次ページの書き込みが発生した場合には、まずこのページステータスFIFOを1ページ分読み出し、フルフラグがゼロに落ちてからFIFOの書き込みを行うような構成としている。
取り込んだ画像のページサイズや先頭アドレス等を格納するページステータスFIFOについても、深さ容量は有限であるため、これを越えたページ数分のページステータス情報に対応できない。そこで、ページステータスFIFOの深さ分を超えたページ数がリングメモリ10に格納できる場合には、その中でも取り込んだ最新のページステータスFIFO深さ分のページについての情報を格納することで、ソフトウェアから常に取り込んだ最新のページデータ情報を読み出すことができる。
In the data input device described above, if the depth capacity of the page status FIFO is 3, for example, in the example of FIG. 4, the ring memory 10 can store at least 4 pages, but the FIFO capacity for storing the data information is 3 Sometimes there are only pages.
In such a case, the software can obtain information for only three pages of data, but at this time, the page status FIFO must hold the latest three pages of data information taken in.
Therefore, in this example, when the next page write occurs when the FIFO full flag signal output from the FIFO is raised when all the FIFO capacity for three pages is stored, the page status FIFO is first set to 1. The page is read, and the FIFO is written after the full flag falls to zero.
A page status FIFO that stores the page size, head address, and the like of the captured image has a finite depth capacity, and therefore cannot cope with page status information for the number of pages exceeding the depth capacity. Therefore, when the number of pages exceeding the depth of the page status FIFO can be stored in the ring memory 10, the information about the latest page status FIFO depth fetched among them can be stored from the software. The latest page data information that is always captured can be read.

前述したデータ入力装置において、例えばページステータスFIFOの深さ容量が3だとすると、図4よりリングメモリ10には少なくとも4ページ分格納できるにも拘わらず、そのデータ情報を格納するFIFO容量は3ページ分しかないという場合がある。
このような場合には、ソフトウェアは3ページ分のデータしか情報を得ることができないが、このとき、ページステータスFIFOには取り込んだ最新の3ページ分のデータ情報を保持しておかなければならない。
よって本例では3ページ分FIFO容量すべてデータが格納された時点でFIFOより出力されるFIFOフルフラグ信号が立っているときに、次ページの書き込みが発生した場合には、取り込みページカウンタ値を保持する構成としている。これにより、ページステータスFIFOの深さ分の最新ページ分について読み出しが可能となる。
ビデオI/F3を多チャンネル持ち合わせたデータ入力装置において、使用しないチャネルのページステータスFIFOをシリアルに接続してあたかもFIFO深さ容量が2倍となった状態で使用することができるよう改良を加えるようにしている。
例えば2個のFIFOメモリを使用する場合、まず一方のFIFOメモリのみにデータを格納していく。そしてフルフラグが立った場合には、他方のFIFOメモリにデータを格納していく。
またリングメモリの上書き発生時には、先頭データが格納されている一方のFIFOメモリからデータを読み出すことに加え、他方のFIFOからも読み出しを行い、その読み出しデータを一方のFIFOに書き込むような構成とした。
前述したデータ入力装置において、ページステータスFIFOの深さ容量が小さいため、リングメモリ10にはそれ以上のページデータが格納されているにも拘わらず、ページステータスFIFO分のページ分のみについてソフトウェアはアクセスすることができない。
とくにページサイズが小さい場合において、より多くのページをリングメモリ10に取り込みたい場合に、ページステータスFIFOの深さ容量の制約で取り込みページ数に制限がかかる割合を減らすことができる。
前述したデータ入力装置に加えて、ページステータスFIFOに格納すべきページ先頭アドレス、およびデータサイズの各データは、これとは別にソフトウェアから読み出し可能なレジスタに書き込む。
書き込むタイミングはページステータスFIFOに書き込むタイミングと同等であり、本レジスタには常に最新ページのページ先頭アドレス、およびデータサイズが格納され、いつでもソフトウェアから読み出しできる。
In the data input device described above, if the page status FIFO depth capacity is 3, for example, the ring memory 10 can store at least 4 pages in FIG. 4, but the FIFO capacity for storing the data information is 3 pages. Sometimes there is only one.
In such a case, the software can obtain information for only three pages of data, but at this time, the page status FIFO must hold the latest three pages of data information taken in.
Therefore, in this example, when the next page is written when the FIFO full flag signal output from the FIFO is raised when all the FIFO capacity data for three pages is stored, the fetched page counter value is held. It is configured. As a result, it is possible to read out the latest page for the depth of the page status FIFO.
In a data input device having multiple channels of video I / F3, an improvement is made so that page status FIFOs of unused channels can be serially connected and used as if the FIFO depth capacity is doubled. I have to.
For example, when two FIFO memories are used, data is first stored only in one of the FIFO memories. When the full flag is set, data is stored in the other FIFO memory.
In addition, when the ring memory is overwritten, in addition to reading data from one FIFO memory storing the head data, reading is also performed from the other FIFO, and the read data is written to one FIFO. .
In the data input device described above, since the depth capacity of the page status FIFO is small, the software accesses only the pages corresponding to the page status FIFO even though more page data is stored in the ring memory 10. Can not do it.
In particular, when the page size is small, when it is desired to fetch more pages into the ring memory 10, it is possible to reduce the rate at which the number of fetched pages is limited due to the depth capacity of the page status FIFO.
In addition to the data input device described above, the page head address and data size data to be stored in the page status FIFO are written in a register that can be read from software.
The write timing is equivalent to the write timing to the page status FIFO, and this register always stores the page top address and data size of the latest page and can be read from software at any time.

しかし、例えば、ビデオデータから入力されるページデータと次ページデータの間、すなわちFGATE信号がネゲート期間などをソフトウェアがポーリングすることで、このタイミングに本レジスタを読み出し、最新取り込みデータをデータ取り込みとリアルタイムに読み出して、表示装置16に画像表示を行うことなどが可能となる。
上述したデータ入力装置において、ページステータスFIFOをデータ取り込み動作終了後にソフトウェアが読み出すことで、リングメモリ10に格納されている複数のページについて読み出しを行うことが可能となるが、データ取り込み動作中にはデータを取り込んだらすぐに、取り込んだ最新のページを表示するなどしたいという要求がユーザよりある。
この要求は、データ取り込みの最中でFIFOを読み出してしまうと、リングメモリの中身とFIFOの内容が不一致となってしまい、正しいデータが読み出せなくなってしまうという恐れなしに、データ取り込み中にもリアルタイムに最新取り込みページを読み出して表示等が行うことができる。
上述したデータ入力装置を複数チャネル装備し、各チャネルには例えばシアンデータ、マゼンタデータ、イエローデータ、ブラックデータを入力する。各チャネルは非同期に動作するが、それぞれのチャネルをデータ入力装置のような構成とすることで、色毎のページの相関がとれ、ソフトウェアが指定したページ数が各色とも常に一致する。
よってこれらの各色データをソフトウェアが読み出して各色合成表示など行うことができるようになる。データ入力装置において、とくにカラー画像データを色毎に複数ページ分取り込むことができるようにする。
例えば、一般的なデジタルフルカラー複写機のプリント画像を本データ入力装置が取り込む場合、チャネル1:シアン、チャネル2:マゼンタ、チャネル3:イエロー、チャネル4:ブラックと割り振った場合、ページ毎の合成表示などを行うことができ、実際に複写機にて紙面に出力されるデータを本データ入力装置の表示機器にてフルカラー表示することができる。
However, for example, when the software polls the page data input from video data and the next page data, that is, when the FGATE signal is negated, this register is read at this timing, and the latest captured data is captured in real time. It is possible to display the image on the display device 16 and the like.
In the above-described data input device, the software can read the page status FIFO after the data fetching operation is completed, so that a plurality of pages stored in the ring memory 10 can be read. As soon as data is imported, there is a request from the user to display the latest imported page.
This request is made even during data capture without fear that if the FIFO is read out during data capture, the contents of the ring memory will not match the FIFO contents, and correct data cannot be read out. The latest loading page can be read and displayed in real time.
The data input device described above is equipped with a plurality of channels, and for example, cyan data, magenta data, yellow data, and black data are input to each channel. Each channel operates asynchronously, but by configuring each channel like a data input device, the pages for each color are correlated, and the number of pages specified by the software always matches each color.
Accordingly, each color data can be read out by software, and can be displayed and combined with each color. In the data input device, in particular, color image data can be captured for a plurality of pages for each color.
For example, when this data input device captures a print image of a general digital full-color copier, when channel 1: cyan, channel 2: magenta, channel 3: yellow, channel 4: black are allocated, combined display for each page The data actually output on the paper surface by the copying machine can be displayed in full color on the display device of the data input device.

上述したデータ入力装置において、チャネルによってはデータが乗っていないページが存在することがあるが、このようなときには、データサイズ=0としてページステータスFIFOにデータを書き込むような構成とする。
例えば、ここでは図7のように、FSYNC信号、およびFGATE信号でビデオI/Fを制御する場合を考える。FSYNC信号はページの先頭で必ず出力される同期信号であり、FGATE信号はページの有効データを示す信号である。
図7のごとくFSYNC信号アサート後、有効画像範囲を示すFGATE信号に同期してデータが入力されるが、FSYNC信号アサート後、FGATEアサートなしに、再びFSYNC信号がアサートされる場合がある。このときが、データが転送されなかったことを示し、本条件下においてはページステータスFIFOにはサイズ=0を書き込む。
また、データ取り込み最終ページにおいてデータなしの場合に次のFSYNC信号は発生しないが、このときには画像取り込み停止のストップ信号にてページステータスFIFOにサイズ0を書き込むような構成とする。
各チャネル同一ページにおいてデータがないチャネルがある場合でも、各チャネルデータを合成して1枚のカラー画像を生成することができなくなってしまうという問題が生じることなく、複数ページ画像の取り込みにおいて、例えばカラー画像とモノクロ画像が混在している場合や、フルカラー画像でも使用しない色は出力されない仕様の画像機器においても、各チャネルのページ数が同一でページ情報の相関がとれるため、指定ページの合成表示等を行なうことができる。
本発明は、例えば、レーザープリンタ、デジタル複写機等の画像機器における画像データをモニタするデータモニタ装置に適用することができる。
In the data input device described above, there may be a page on which no data is loaded depending on the channel. In such a case, the data size is set to 0 and data is written to the page status FIFO.
For example, consider the case where the video I / F is controlled by the FSYNC signal and the FGATE signal as shown in FIG. The FSYNC signal is a synchronization signal that is always output at the head of the page, and the FGATE signal is a signal that indicates valid data of the page.
As shown in FIG. 7, after the FSYNC signal is asserted, data is input in synchronization with the FGATE signal indicating the valid image range. This time indicates that no data has been transferred, and under this condition, size = 0 is written in the page status FIFO.
The next FSYNC signal is not generated when there is no data in the last page of data capture, but at this time, the size 0 is written in the page status FIFO by the stop signal of image capture stop.
Even when there is a channel with no data in the same page for each channel, there is no problem that it is impossible to generate a single color image by combining the channel data. Even when color images and monochrome images are mixed, or even in an image device that does not output colors that are not used even in full-color images, the page information of each channel is the same and the page information can be correlated, so composite display of the specified page Etc. can be performed.
The present invention can be applied to, for example, a data monitoring apparatus that monitors image data in an image device such as a laser printer or a digital copying machine.

本発明によるデータ入力装置のハードウェア構成例を示す概略回路図である。It is a schematic circuit diagram which shows the hardware structural example of the data input device by this invention. 本発明のデータ入力装置のソフトウェア構成例を示す概略図である。It is the schematic which shows the software structural example of the data input device of this invention. ターゲット画像機器(データの送信元機器)の構成例を示す概略図である。It is the schematic which shows the structural example of a target image apparatus (data transmission origin apparatus). リングメモリのリング制御を模式的に表す図である。It is a figure showing typically ring control of a ring memory. ページ先頭アドレスFIFOの書き込み・読み取り制御タイミングを示すタイミングチャートである。It is a timing chart showing the write / read control timing of the page head address FIFO. データ入力装置におけるページステータスFIFO読み出しフローを説明するフローチャートである。It is a flowchart explaining the page status FIFO read flow in the data input device. ページデータなし混在時のタイミングチャートである。It is a timing chart at the time of mixing without page data.

符号の説明Explanation of symbols

1 CPU
3 ビデオ(VIDEO)I/F
7 ページステータスFIFO
10 画像メモリ(リングメモリ)
15 ターゲット画像機器
1 CPU
3 Video (VIDEO) I / F
7 Page Status FIFO
10 Image memory (ring memory)
15 Target image equipment

Claims (12)

画像メモリがリングバッファとして構成され、メモリ最大アドレスを超えた場合は、メモリアドレスを先頭アドレスに戻して上書き処理を行い、前記画像メモリに取り込んだ一番古いデータから上書きされていくように構成された制御手段を備えたデータ入力装置において、前記制御手段は、ソフトウェアが前記画像メモリを読み出す際に参照する前記画像メモリの格納情報を専用FIFOメモリに格納し、前記画像メモリがリングしてページの上書きが発生した場合には、ページステータスFIFOのデータをハードウェアが自動で読み出して、上書きがなされた先頭ページ情報を読み捨てることを特徴とするデータ入力装置。   The image memory is configured as a ring buffer, and when the maximum memory address is exceeded, the memory address is returned to the top address and overwriting is performed, and the oldest data captured in the image memory is overwritten. In the data input device comprising the control means, the control means stores the storage information of the image memory, which is referred to when software reads the image memory, in a dedicated FIFO memory, and the image memory rings to store the page information. A data input device characterized in that, when overwriting occurs, the hardware automatically reads out the data of the page status FIFO, and reads out and discards the first page information overwritten. 前記画像メモリに取り込んだデータのページ数をソフトウェアにより検知する検知手段が、前記ページステータスFIFOを読み出す前ごとにFIFOエンプティフラグを検索し、FIFOエンプティとなっていた場合、前記ページステータスFIFOの読み出しを終了して、これまでのFIFOの読み出し回数に基づいて取り込みページ数を知ることができることを特徴とする請求項1記載のデータ入力装置。   The detection means for detecting the number of pages of data fetched into the image memory by software searches the FIFO empty flag every time before reading the page status FIFO, and when the FIFO is empty, reads the page status FIFO. 2. The data input device according to claim 1, wherein the number of fetched pages can be known based on the number of times the FIFO has been read so far. 前記画像メモリに取り込んだデータのページ数をソフトウェアにより検知する検知手段が、前記ページステータスFIFOの残量カウンタ値を読み出すことで何ページ分のデータが格納されているかを検出することができ、前記残量カウンタ値の回数分だけ前記ページステータスFIFOの読み出しを行って各ページのデータ情報を知ることができるようにしたことを特徴とする請求項1記載のデータ入力装置。   The detecting means for detecting the number of pages of data fetched into the image memory by software can detect how many pages of data are stored by reading the remaining amount counter value of the page status FIFO, 2. The data input device according to claim 1, wherein the page status FIFO is read by the number of times of the remaining amount counter value so that the data information of each page can be known. 前記画像メモリに取り込んだデータのページ数をソフトウェアにより検知する検知手段が、前記画像メモリに取り込んだデータのページ数をカウントするソフトウェアから読み出し可能な取り込みページ数をカウントするカウンタを設け、前記画像メモリがリングしてページの上書きが発生した場合には、前記カウンタが1デクリメントすることを特徴とする請求項1記載のデータ入力装置。   The detection means for detecting the number of pages of data fetched into the image memory by software is provided with a counter for counting the number of fetched pages readable from software for counting the number of pages of data fetched into the image memory, 2. The data input device according to claim 1, wherein when the page is overwritten and the page is overwritten, the counter is decremented by one. 前記画像メモリがリングして上書きが発生したことを検出する手段は、前記ページステータスFIFO出力とDMAアドレスカウンタの値を比較して行うことを特徴とする請求項1ないし4のいずれか1項記載のデータ入力装置。   5. The means for detecting that the image memory is ringed and overwritten occurs by comparing the page status FIFO output with a value of a DMA address counter. Data input device. 前記FIFOエンプティフラグを参照し、エンプティフラグが立っている状態でのDMAアドレスがFIFO出力データと等しい場合には上書きとはせず、エンプティフラグが下がってから最初のDMAアドレスがFIFO出力データと等しい場合に上書き発生であると検出するようにすることを特徴とする請求項1ないし4のいずれか1項記載のデータ入力装置。   Referring to the FIFO empty flag, if the DMA address in the state where the empty flag is set is equal to the FIFO output data, it is not overwritten, and the first DMA address after the empty flag is lowered is equal to the FIFO output data. 5. The data input device according to claim 1, wherein overwriting is detected in some cases. 前記ページステータスFIFOの深さを超える場合については、前記ページステータスFIFOより出力されるFIFOに空きがない状態を示すフルフラグがオンであることを検出した場合、前記ページステータスFIFOをハードウェアが自動で読み出してFIFOに格納されている先頭ページ情報を読み捨てることを特徴とする請求項1ないし4のいずれか1項記載のデータ入力装置。   When the depth of the page status FIFO is exceeded, if it is detected that the full flag indicating that there is no free space in the FIFO output from the page status FIFO is detected, the page status FIFO is automatically set by the hardware. 5. The data input device according to claim 1, wherein the first page information read out and stored in the FIFO is discarded. 前記画像メモリに取り込んだデータのページ数をカウントするソフトウェアから読み出し可能な取り込みページ数カウンタが、前記ページステータスFIFOの深さ分を超えた場合にはカウントアップ動作を止めることを特徴とする請求項7記載のデータ入力装置。   The count-up operation is stopped when a fetched page number counter readable from software that counts the number of pages of data fetched into the image memory exceeds a depth of the page status FIFO. 7. The data input device according to 7. 複数の機器とのインターフェースチャネルを有し、各チャネルが互いに非同期で動作するために、前記ページステータスFIFOもチャネル分複数備えている場合で且つ全チャネルを使用しない場合において、前記ページステータスFIFOの深さを超えるページ取り込みがなされた場合には、未使用チャネルのFIFOも使用チャネルのページ情報を追加格納することで、最低2倍のページ数情報を格納できるようにしたことを特徴とする請求項7または8記載のデータ入力装置。   Since there are a plurality of interface channels with a plurality of devices and each channel operates asynchronously with each other, when the page status FIFO is provided for a number of channels and not all channels are used, the depth of the page status FIFO The page number information of at least twice can be stored in the FIFO of the unused channel by additionally storing the page information of the used channel when more than the page fetch is performed. The data input device according to 7 or 8. 取り込んだ最新ページ情報については前記ページステータスFIFOとは別にステータスレジスタを使用してソフトウェアに通知できる仕組みを有することを特徴とする請求項1ないし9のいずれか1項記載のデータ入力装置。   10. The data input device according to claim 1, wherein the fetched latest page information can be notified to software using a status register separately from the page status FIFO. 複数チャネル分のビデオインターフェースを有し、各チャネルが色毎に割り振られたことを特徴とする請求項1記載のデータ入力装置。   The data input device according to claim 1, further comprising a video interface for a plurality of channels, wherein each channel is allocated for each color. 各チャネル同一ページにおいてデータがないチャネルについては、ページ数カウンタはカウントアップするが、ページステータスのサイズはゼロとして前記ページステータスFIFOに格納することを特徴とする請求項11記載のデータ入力装置。   12. The data input device according to claim 11, wherein the page number counter is counted up for a channel having no data in the same page of each channel, but the page status size is stored as zero in the page status FIFO.
JP2004324330A 2004-11-08 2004-11-08 Data input device Expired - Fee Related JP4298632B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004324330A JP4298632B2 (en) 2004-11-08 2004-11-08 Data input device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004324330A JP4298632B2 (en) 2004-11-08 2004-11-08 Data input device

Publications (2)

Publication Number Publication Date
JP2006135812A JP2006135812A (en) 2006-05-25
JP4298632B2 true JP4298632B2 (en) 2009-07-22

Family

ID=36728910

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004324330A Expired - Fee Related JP4298632B2 (en) 2004-11-08 2004-11-08 Data input device

Country Status (1)

Country Link
JP (1) JP4298632B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119440398A (en) * 2024-09-29 2025-02-14 上海宝信软件股份有限公司 Information deduplication method, system, medium and device based on ring memory

Also Published As

Publication number Publication date
JP2006135812A (en) 2006-05-25

Similar Documents

Publication Publication Date Title
US20040125415A1 (en) Data processing device characterized in its data transfer method, program for executing on a computer to perform functions of the device, and computer readable recording medium storing such a program
JP2010263328A (en) Image processing apparatus and image processing method
US6236759B1 (en) Image processing apparatus
US7602391B2 (en) Image processing device, method, and storage medium which stores a program
JP4298632B2 (en) Data input device
US7352480B2 (en) Image processing apparatus and image processing method
US20120102266A1 (en) Method And System For Storage Of Data
US20090157602A1 (en) Information processing apparatus and control method therefor
US7995587B2 (en) Time stamp adding device, time stamp adding method, and time stamp adding program
US7546400B2 (en) Data packet buffering system with automatic threshold optimization
US7598957B2 (en) Image processing device, method, and storage medium which stores a program
US7602393B2 (en) Image processing device, method, and storage medium which stores a program
US11409655B2 (en) Interface apparatus, data processing apparatus, cache control method, and medium
US7710613B2 (en) Image information apparatus
US6339558B1 (en) FIFO memory device and FIFO control method
US8514441B2 (en) Image processing apparatus and control method thereof, in which an address for image data depends on whether the image data is input via a detachable image processing device
JP7419773B2 (en) Image processing device
JP5930834B2 (en) Image processing apparatus, image processing method, and control method for image processing apparatus
US6798922B1 (en) Image transmission method and image transmission device for realizing the same
US20200177741A1 (en) Image forming apparatus, control method, and machine-readable non-transitory recording medium storing instructions for executing control method
US20030053130A1 (en) Recording apparatus, interface control apparatus, and interface control method
JP2015187833A (en) Information processing apparatus, information processing method, and program
US20250159363A1 (en) Semiconductor device
US6870635B1 (en) System and method for managing print objects using stacked objects queue
JP6808712B2 (en) Image processing device, its control method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070416

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090331

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20090414

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090415

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120424

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130424

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140424

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees