JPH10164170A - Formatter and method for controlling the formatter - Google Patents

Formatter and method for controlling the formatter

Info

Publication number
JPH10164170A
JPH10164170A JP8319756A JP31975696A JPH10164170A JP H10164170 A JPH10164170 A JP H10164170A JP 8319756 A JP8319756 A JP 8319756A JP 31975696 A JP31975696 A JP 31975696A JP H10164170 A JPH10164170 A JP H10164170A
Authority
JP
Japan
Prior art keywords
data
buffer
write
information
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.)
Granted
Application number
JP8319756A
Other languages
Japanese (ja)
Other versions
JP3129213B2 (en
Inventor
Hiroshi Okamoto
博 岡本
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP08319756A priority Critical patent/JP3129213B2/en
Publication of JPH10164170A publication Critical patent/JPH10164170A/en
Application granted granted Critical
Publication of JP3129213B2 publication Critical patent/JP3129213B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a formatter and a formatter control method whereby fixed length data is outputted to a device (system) which processes output data of the formatter. SOLUTION: Data writing end information from a data writing end monitoring part 6 is received and also an operation is shifted to the change-over operation of a double buffer 1 when a data leading signal is inputted. Therefore, when the data leading signal is inputted before prescribed-sized data is written, a double buffer change-over control part 7 is not shifted to the operation for changing-over the double buffer 1 but it keeps reading. Since a writing side resets an writing address by the input of the data leading signal, succeeding conversion object data is overwritten on illegal data where writing is not finished. A unobtained data information control part 10 fetches overridden position information to an outside.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明はフォーマッタ及びフ
ォーマッタの制御方法に係り、特に入力データを所定の
フォーマットへ変換するためのフォーマッタ及びフォー
マッタの制御方法に関する。
The present invention relates to a formatter and a formatter control method, and more particularly to a formatter for converting input data into a predetermined format and a formatter control method.

【0002】[0002]

【従来の技術】従来のフォーマッタとして、ダブルバッ
ファを用いてリアルタイムでデータのフォーマット変換
を行う方法がある。このダブルバッファは、2つのバッ
ファメモリからなり、片系のバッファメモリがデータを
書き込んでいるときは、他系のバッファメモリはデータ
を読み出しを行っている。フォーマットの変換は、読み
出しのアドレスを書き込んだ順番を変えることで行う。
2. Description of the Related Art As a conventional formatter, there is a method of real-time data format conversion using a double buffer. This double buffer is composed of two buffer memories. When one buffer memory is writing data, the other buffer memory is reading data. The format conversion is performed by changing the order in which the read addresses are written.

【0003】上記の2つのバッファメモリのそれぞれ
は、通常、1ライン分のデータが保持(記憶)できるだ
けの容量を持ち、1ライン分のデータの記憶が片系のバ
ッファメモリで終わると、読み出し側のバッファメモリ
を他系に切り替えるような時分割の方法で行われる。多
くの場合、1ラインのデータの長さは固定長であるの
で、データの先頭を示す信号の入力で書き込み側のバッ
ファメモリと読み出し側のバッファメモリを切り替える
方法がとられる。つまり、トグル動作による制御が行わ
れる。
Each of the above two buffer memories usually has a capacity capable of holding (storing) one line of data, and when the storage of one line of data is completed in one buffer memory, the reading side of the buffer memory is read. This is performed in a time-division manner such as switching the buffer memory to another system. In many cases, since the length of one line of data is fixed, a method of switching between the buffer memory on the write side and the buffer memory on the read side by inputting a signal indicating the beginning of data is adopted. That is, control by the toggle operation is performed.

【0004】当然のごとく、書き込みよりも読み出しの
ほうが速くなければ、書き込まれたデータを読み出しき
れなくなるので、読み出しレートの方を書き込みレート
よりも速くする方法がとられている。たとえ、可変長の
データであっても極端にデータ長が異なるものはないの
で、読み出しレートを書き込みレートよりある程度速く
しておけば、読み出しきれなくなることはない。
As a matter of course, if the reading is not faster than the writing, the written data cannot be read completely. Therefore, a method of making the reading rate higher than the writing rate is adopted. For example, even for variable-length data, there is no data having an extremely different data length. Therefore, if the read rate is set to be somewhat higher than the write rate, the data cannot be read completely.

【0005】このフォーマッタの前段の同期部において
同期がかかったデータは、固定長で出力される。また、
同期がはずれた場合でもデータが固定長になるよう制御
されている。
[0005] The data synchronized in the synchronization section at the preceding stage of the formatter is output in a fixed length. Also,
The data is controlled to have a fixed length even when synchronization is lost.

【0006】[0006]

【発明が解決しようとする課題】しかるに、上記の従来
フォーマッタでは、同期部の疑似ロックや可変長のデー
タが長い間同期がとれなくて、あるタイミングでロック
した場合、フォーマッタに入力されるデータが極端に短
くなった(通常の場合よりもデータの先頭を示す信号が
極端に早く入力される)とき、そのときのダブルバッフ
ァに記憶した正規のデータが全部読み出されないことが
起き、正規のものより短いデータが出力される。その理
由は、データの先頭を示す信号でダブルバッファを必ず
切り替えているため、ダブルバッファのリード側のデー
タを読み終わる前に、ダブルバッファを切り替えてしま
うからである。
However, in the above-mentioned conventional formatter, if the pseudo-lock of the synchronizing unit or the variable-length data is not synchronized for a long time and locked at a certain timing, the data input to the formatter is lost. When the data becomes extremely short (a signal indicating the beginning of the data is input much earlier than in the normal case), the normal data stored in the double buffer at that time may not be completely read out, Shorter data is output. The reason is that since the double buffer is always switched by the signal indicating the head of the data, the double buffer is switched before the data on the read side of the double buffer is completely read.

【0007】このため、処理しなければならないデータ
長よりも極端に短いデータが出力された場合は、いわゆ
るレベル0のデータフォーマット(すなわち、シリアル
データをそれぞれ何らかの意味を持つパラレルデータに
変換し、かつ、所定ワード数のパラレルデータにヘッダ
を付加するフォーマット)としては、不正なものにな
り、処理ができなくなる。また、フォーマッタの出力デ
ータを処理する装置(システム)では、データの長さが
一定である必要がある。
For this reason, when data that is extremely shorter than the data length to be processed is output, a so-called level 0 data format (that is, serial data is converted into parallel data having some meaning, respectively), and (A format in which a header is added to parallel data having a predetermined number of words) becomes invalid and cannot be processed. Further, in a device (system) that processes output data of a formatter, the length of the data needs to be constant.

【0008】また、上記の従来フォーマッタでは、仮に
低速レートのデータで特に1フォーマットのサイズの小
さいデータをダブルバッファから高速に読み出す方式の
場合、疑似ロック等で通常の1フォーマットの周期より
も短い周期で、ダブルバッファの切り替えが行われる。
この場合、ダブルバッファに書き込みが完了しない段階
でも、高速データ読み出しであることと低速データレー
トのために、1フォーマット分の周期未満でもデータの
読み出しが完了してしまうため、不正なデータを、読み
出すべきサイズで読み出すことが可能となり、結果とし
て不正なデータが1フォーマット分だけ挿入されてしま
い、次段の処理において異常を生じさせる問題が発生す
る。
Further, in the conventional formatter described above, if a low-rate data, in particular, data of a small size of one format is read out from a double buffer at a high speed, a period shorter than a normal period of one format due to a pseudo lock or the like. The double buffer is switched.
In this case, even at a stage where writing to the double buffer is not completed, data reading is completed even in a period shorter than one format due to high-speed data reading and a low-speed data rate, so that illegal data is read. It becomes possible to read data at an appropriate size, and as a result, incorrect data is inserted for one format, which causes a problem that causes an abnormality in the next processing.

【0009】本発明は以上の点に鑑みなされたもので、
フォーマッタの出力データを処理する装置(システム)
に固定長データを出力できるフォーマッタ及びフォーマ
ッタの制御方法を提供することを目的とする。
[0009] The present invention has been made in view of the above points,
A device (system) that processes the output data of the formatter
It is an object of the present invention to provide a formatter capable of outputting fixed-length data to a computer and a method of controlling the formatter.

【0010】また、本発明の他の目的は、フォーマッタ
に入力されるデータが極端に短くなった(通常の場合よ
りもデータの先頭を示す信号が極端に早く入力される)
ときの情報をフォーマッタの出力データを処理する装置
(システム)に出力でき、これによりデータの品質等の
保証がされ、データの信頼性を向上し得るフォーマッタ
及びフォーマッタの制御方法を提供することにある。
Another object of the present invention is that the data input to the formatter is extremely short (a signal indicating the beginning of the data is input extremely quickly compared to a normal case).
It is an object of the present invention to provide a formatter and a control method of the formatter which can output the information at the time to a device (system) which processes output data of the formatter, thereby guaranteeing data quality and the like and improving data reliability. .

【0011】[0011]

【課題を解決するための手段】本発明は上記の目的を達
成するため、第1及び第2のバッファを有し、データの
フォーマット変換を行うために一方のバッファに入力デ
ータを書き込み、他方のバッファから記憶データを読み
出すダブルバッファと、ダブルバッファの書き込み側の
バッファに入力データを書き込むためのライトアドレス
を、入力データの所定単位の始まりを示す外部入力デー
タ先頭信号に同期して発生するライトアドレス発生部
と、入力データのフォーマット変換と付加情報多重のた
めにダブルバッファの読み出し側のバッファに外部より
設定したリードアドレスを供給すると共に、書き込みレ
ートよりも速いレートで該読み出し側のバッファからデ
ータを読み出す読み出し制御手段と、データ先頭信号入
力時に付加情報を取り込む付加情報制御部と、ダブルバ
ッファの書き込み側バッファへの入力データの書き込み
の終了を監視するデータライト終了監視部と、データ先
頭信号とデータライト終了監視部から出力された終了情
報とが共に入力されたときに、ダブルバッファの書き込
み側のバッファを読み出し側に、かつ、読み出し側のバ
ッファを書き込み側に切り替えるダブルバッファ切替制
御部と、付加情報制御部からの付加情報とダブルバッフ
ァの出力データを多重して出力する多重部とを有する構
成としたものである。
In order to achieve the above object, the present invention has a first buffer and a second buffer, in which input data is written to one buffer to perform data format conversion, and the other is written to the other buffer. A double buffer for reading stored data from the buffer, and a write address for writing input data to a buffer on the write side of the double buffer, a write address generated in synchronization with an external input data head signal indicating the beginning of a predetermined unit of input data. A generating unit for supplying a read address set from the outside to a buffer on the read side of the double buffer for format conversion of input data and multiplexing of additional information, and reading data from the buffer on the read side at a rate higher than the write rate. Read control means for reading and additional information when inputting the data head signal The additional information control unit to be embedded, the data write end monitor unit that monitors the end of the writing of the input data to the write buffer of the double buffer, and the data head signal and the end information output from the data write end monitor unit are both input. The double buffer switch control unit that switches the buffer on the write side of the double buffer to the read side, and switches the buffer on the read side to the write side, and outputs the additional information from the additional information control unit and the output data of the double buffer. And a multiplexing unit for multiplexing and outputting.

【0012】この発明では、終了情報と次のデータ先頭
信号の両方が入力されたときにダブルバッファの切り替
えを行うようにしたため、終了情報が入力される前にデ
ータ先頭信号が入力されたとしても、ダブルバッファの
切り替えは行われず、よって、読み出しが途中で終わっ
たり、不必要なデータをダブルバッファに記憶すること
がない。
In the present invention, the double buffer is switched when both the end information and the next data head signal are input. Therefore, even if the data head signal is input before the end information is input. Therefore, the switching of the double buffer is not performed, so that the reading does not end halfway and unnecessary data is not stored in the double buffer.

【0013】また、本発明は、ダブルバッファ切替制御
部に終了情報が入力される前にデータ先頭信号が入力さ
れたときに、その位置を示す未取得データ情報を発生し
て出力する未取得データ情報制御部を更に設けるように
したため、書き込みが途中で終ったバッファの上書きさ
れた位置情報を外部に取り出すことができる。
According to the present invention, when a data head signal is input before end information is input to the double buffer switching control unit, unacquired data information indicating the position is generated and output. Since the information control unit is further provided, the overwritten position information of the buffer that has been written halfway can be extracted to the outside.

【0014】また、本発明制御方法は、第1及び第2の
バッファのうちの一方のバッファが入力データを書き込
み、他方のバッファが記憶データを書き込みレートより
速いレートで読み出し、かつ、書き込み側と読み出し側
が交互に切り替えられるダブルバッファの読み出しアド
レスが外部から設定され、書き込みアドレスが入力デー
タの所定単位毎のデータの始まりを示すデータ先頭信号
により同期して発生され、ダブルバッファから入力デー
タをデータ変換して読み出したデータと共に、付加情報
や時刻情報を多重して読み出す構成のフォーマッタの制
御方法であって、ダブルバッファの書き込み側バッファ
への入力データの書き込みの終了により出力される終了
情報とデータ先頭信号とが共に入力されたときに、ダブ
ルバッファの書き込み側のバッファを読み出し側に、か
つ、読み出し側のバッファを書き込み側に切り替え、終
了情報が入力される前にデータ先頭信号が入力されたと
きには、そのときの位置を取得して、外部に未取得デー
タ情報として出力することを特徴とする。
Further, according to the control method of the present invention, one of the first and second buffers writes input data, the other buffer reads stored data at a higher rate than the write rate, and communicates with the write side. The read address of the double buffer in which the read side is alternately switched is set externally, and the write address is generated in synchronization with the data head signal indicating the beginning of the data for each predetermined unit of the input data, and the input data is converted from the double buffer. A method of controlling a formatter having a configuration in which additional information and time information are multiplexed and read out together with the read out data, wherein end information output when the input data has been written into the write-side buffer of the double buffer and data start-up When both signals are input, the The buffer on the read side is switched to the read side, and the buffer on the read side is switched to the write side. If the data head signal is input before the end information is input, the position at that time is acquired, and the data is output to the outside. It is output as acquired data information.

【0015】極端に短い長さの入力データは、不要なデ
ータと判断できるので、このデータはフォーマッタに書
き込む必要がない。そこで、ダブルバッファは基本的に
はデータ先頭信号で切り替えるが、書き込みが終わる前
にデータ先頭信号がきた場合は、ダブルバッファを切り
替えないようにする。つまり、終了情報があり、かつ、
データ先頭信号がきたときに、ダブルバッファを切り替
えるような制御方法にする。このため、極端に短い長さ
の入力データをダブルバッファに書き込むことをしない
ので、読み出されるデータは常に固定データ長になる。
Since input data having an extremely short length can be determined to be unnecessary data, there is no need to write this data to the formatter. Therefore, the double buffer is basically switched by the data head signal, but if the data head signal comes before the writing is completed, the double buffer is not switched. That is, there is end information, and
The control method is such that the double buffer is switched when the data head signal comes. For this reason, the input data having an extremely short length is not written in the double buffer, so that the read data always has a fixed data length.

【0016】また、低速データレートの書き込み未完状
態での、ダブルバッファからの所定サイズデータ読み出
しを防ぐことが可能となる。更に、どこで極端に短くな
ったデータを無視したかの情報を外部に出力できる。
Further, it is possible to prevent data of a predetermined size from being read from the double buffer in a write-incomplete state at a low data rate. Further, information indicating where extremely shortened data is ignored can be output to the outside.

【0017】[0017]

【発明の実施の形態】次に、本発明の実施の形態につい
て説明する。
Next, an embodiment of the present invention will be described.

【0018】図1は、本発明になるフォーマッタの一実
施の形態の構成図を示す。この実施の形態は、データの
フォーマット変換を行うためにデータを入出力を行うダ
ブルバッファ1(バッファ1A、バッファ1B)と、ダ
ブルバッファ1にデータを書き込むためのアドレスを発
生するライトアドレス発生部2と、フォーマット変換と
付加情報多重のためにダブルバッファ1のリードアドレ
スを外部より設定するリードアドレス設定部3と、付加
情報を多重するために付加情報を取り込む付加情報制御
部4と、書き込みレートよりも速いレートで読み出すた
めのクロック発生部5と、ダブルバッファ1へのデータ
の書き込みの終了を監視し、終了情報をダブルバッファ
切替制御部7に知らせるデータライト終了監視部6と、
1ブロックのデータの始まりを示す信号とデータライト
終了監視部6の終了情報等からダブルバッファ1の切り
替えを制御するダブルバッファ切替制御部7と、付加情
報制御部4からの付加情報とダブルバッファ1の出力デ
ータを多重する多重部8と、外部プロセッサからの制御
を受けるためのプロセッサインタフェース部9からな
る。
FIG. 1 shows a configuration diagram of an embodiment of a formatter according to the present invention. In this embodiment, a double buffer 1 (buffer 1A, buffer 1B) for inputting / outputting data in order to perform data format conversion, and a write address generator 2 for generating an address for writing data in the double buffer 1 A read address setting unit 3 for externally setting a read address of the double buffer 1 for format conversion and multiplexing of additional information, an additional information control unit 4 for fetching additional information for multiplexing the additional information, A clock generation unit 5 for reading data at a high rate, a data write end monitoring unit 6 for monitoring the end of data writing to the double buffer 1 and informing the double buffer switching control unit 7 of end information.
A double buffer switching control unit 7 for controlling the switching of the double buffer 1 based on a signal indicating the start of one block of data and the end information of the data write end monitoring unit 6, an additional information from the additional information control unit 4, and the double buffer 1 And a processor interface unit 9 for receiving control from an external processor.

【0019】また、本実施の形態は上記構成に加えて、
入力データを無視した(ダブルバッファ1の切り替えを
行わず、上書きした)位置を取得し、外部に出力するこ
とができる未取得データ情報制御部10を追加した構成
からなる。
Further, the present embodiment has, in addition to the above configuration,
A position where input data is ignored (overwriting is performed without switching the double buffer 1) is acquired, and an unacquired data information control unit 10 capable of outputting the acquired position to the outside is added.

【0020】次に、この実施の形態の動作について説明
する。
Next, the operation of this embodiment will be described.

【0021】まずは、データ入力を始める前に、初期設
定として図示しない外部プロセッサよりプロセッサイン
タフェース部9を介して、フォーマット変換のための並
べ替え用にダブルバッファ1から読み出すためのアドレ
スをリードアドレス設定部3に設定すると共に、読み出
しのためのデータレートをクロック発生部5に設定す
る。この設定するデータレートは、書き込みのデータレ
ートよりは速いレートのものにする。そのことにより通
常では、書き込みよりも読み出しのほうが先に終了する
ようにする。
First, before starting data input, an address for reading from the double buffer 1 for rearrangement for format conversion from an external processor (not shown) via the processor interface unit 9 as an initial setting is set in a read address setting unit. 3 and the data rate for reading is set in the clock generator 5. The data rate to be set is higher than the write data rate. As a result, usually, reading is completed before writing.

【0022】フォーマッタには、変換対象データ、クロ
ック、変換対象データの先頭を示すデータ先頭信号、変
換対象データの範囲を示す信号、付加情報、時刻情報等
のデータが入力される。フォーマッタにこれらの各種デ
ータが入力されると、フォーマッタが動作を始める。
今、ダブルバッファ1のバッファ1Aが書き込み側で、
ダブルバッファ1のバッファ1Bを読み出し側とする。
Data such as data to be converted, a clock, a data head signal indicating the head of the data to be converted, a signal indicating a range of the data to be converted, additional information, and time information are input to the formatter. When these various data are input to the formatter, the formatter starts operating.
Now, the buffer 1A of the double buffer 1 is on the writing side,
The buffer 1B of the double buffer 1 is on the reading side.

【0023】ダブルバッファ1に変換対象データ(入力
データ)を書き込む方法は、変換対象データの先頭を示
すデータ先頭信号に基づき、ライトアドレス発生部2が
ダブルバッファ1のバッファ1Aのライトアドレスをリ
セット、つまりライトアドレスを「0」にし、その後変
換対象データの範囲を示す信号が入力されているときの
み、外部からクロックが入力される度にライトアドレス
発生部2が出力ライトアドレスをインクリメントさせて
変換対象データをダブルバッファ1のバッファ1Aに書
き込んでいく。付加情報や時刻情報は、変換対象データ
の先頭を示すデータ先頭信号をトリガに付加情報制御部
4に取り込まれる。
In the method of writing the data to be converted (input data) into the double buffer 1, the write address generator 2 resets the write address of the buffer 1A of the double buffer 1 based on a data head signal indicating the head of the data to be converted. In other words, only when a write address is set to "0" and thereafter a signal indicating the range of the data to be converted is input, the write address generator 2 increments the output write address each time a clock is input from the outside to convert the write address. Data is written into the buffer 1A of the double buffer 1. The additional information and the time information are taken into the additional information control unit 4 by using a data head signal indicating the head of the data to be converted as a trigger.

【0024】ダブルバッファ1から変換対象データを読
み出す方法は、変換対象データの先頭を示すデータ先頭
信号とデータライト終了監視部6からのデータライト終
了情報の両方がリードアドレス設定部3に入力されたと
き、初期設定として外部プロセッサよりプロセッサイン
タフェース部9を介して、リードアドレス設定部3にフ
ォーマット変換のための並べ替え用に設定されたリード
アドレスに基づいて、ダブルバッファ1のバッファ1B
より変換対象データを読み出す。
In the method of reading the data to be converted from the double buffer 1, both the data head signal indicating the head of the data to be converted and the data write end information from the data write end monitoring unit 6 are input to the read address setting unit 3. At the time, the buffer 1B of the double buffer 1 is initialized based on the read address set for rearrangement for format conversion in the read address setting unit 3 via the processor interface unit 9 by the external processor.
Read the data to be converted.

【0025】このとき、リードアドレス設定部3はクロ
ック発生部5からのクロックに同期して出力リードアド
レスが変化するようにされているため、クロック発生部
5に設定したデータレートでダブルバッファ1は読み出
しをする。データの読み出し開始と共に付加情報制御部
4は付加情報や時刻情報等のデータを多重部8に出力
し、ダブルバッファ1から読み出された変換対象データ
に多重する。バッファ1Bのデータ読み出し中は、常に
データライト終了監視部6にて、バッファ1Aにおいて
データが全て書き込み終わったかをライトアドレスの変
化に基づいて監視し、書き込み終了時にデータライト終
了監視部6がデータライト終了情報を出力する。
At this time, since the read address setting section 3 changes the output read address in synchronization with the clock from the clock generation section 5, the double buffer 1 operates at the data rate set in the clock generation section 5. Read. At the same time as the start of data reading, the additional information control unit 4 outputs data such as additional information and time information to the multiplexing unit 8 and multiplexes the data on the conversion target data read from the double buffer 1. While data is being read from the buffer 1B, the data write end monitor 6 constantly monitors whether or not all data has been written in the buffer 1A based on the change in the write address. Output end information.

【0026】ダブルバッファ切替制御部7は、データラ
イト終了監視部6からのデータライト終了情報を受け取
り、かつ、次の変換対象データの先頭を示すデータ先頭
信号が入力されたときに、それまで書き込み用であった
バッファ1Aを読み出し用に、またそれまで読み出し用
であったバッファ1Bを書き込み用に切り替える。上記
を繰り返してデータの変換をリアルタイムに行ってい
く。
The double buffer switching control unit 7 receives the data write end information from the data write end monitoring unit 6 and, when a data head signal indicating the head of the next data to be converted is input, performs writing until that time. The buffer 1A used for reading is switched to the one for reading, and the buffer 1B used for reading is switched to the one for writing. By repeating the above, data conversion is performed in real time.

【0027】次に、何らかの原因で所定のサイズのデー
タ書き込みがなされないうちに、次の変換対象データの
先頭を示すデータ先頭信号が入力された場合において
は、ダブルバッファ切替制御部7にはデータライト終了
監視部6からデータライト終了情報より先に変換対象デ
ータの先頭を示すデータ先頭信号が入力されることとな
る。
Next, if a data head signal indicating the head of the next data to be converted is input before data of a predetermined size is written for some reason, the double buffer switching control unit 7 A data head signal indicating the head of the conversion target data is input from the write end monitoring unit 6 before the data write end information.

【0028】この場合、従来のフォーマッタならば、変
換対象データの先頭を示すデータ先頭信号の入力により
ダブルバッファ1の切り替え動作に移行してしまうが、
この実施の形態では、データライト終了監視部6からの
データライト終了情報を受け取り、かつ、次の変換対象
データの先頭を示すデータ先頭信号が入力されたときに
ダブルバッファ1の切り替え動作に移行するように構成
されている。このため、所定のサイズのデータ書き込み
がなされないうちに、次の変換対象データの先頭を示す
データ先頭信号が入力された場合には、データ先頭信号
が入力されても、データの書き込みが終了していないこ
とにより、データライト終了監視部6からのデータライ
ト終了情報は、ダブルバッファ切替制御部7に入力され
ていないため、ダブルバッファ切替制御部7は、ダブル
バッファ1を切り替える動作には移行せず、読み出しを
続ける。
In this case, in the case of the conventional formatter, the operation shifts to the switching operation of the double buffer 1 by inputting the data head signal indicating the head of the data to be converted.
In this embodiment, when the data write end information is received from the data write end monitoring unit 6 and a data head signal indicating the head of the next data to be converted is input, the operation shifts to the switching operation of the double buffer 1. It is configured as follows. Therefore, if the data head signal indicating the head of the next data to be converted is input before the data of the predetermined size is written, the data writing ends even if the data head signal is input. Since the data write end information from the data write end monitoring unit 6 has not been input to the double buffer switch control unit 7, the double buffer switch control unit 7 shifts to the operation of switching the double buffer 1. And continue reading.

【0029】書き込み側は、バッファが切り替えられて
いないので、変換対象データの先頭を示す信号の入力に
よりライトアドレス発生部2がダブルバッファ1のバッ
ファ1Aのライトアドレスをリセット、つまりライトア
ドレスを「0」にするので、バッファ1A及び1Bのう
ち書き込み側のバッファに書き込まれた書き込みが完了
していない不正なデータに、次の変換対象データが上書
きされることになる。このときの不正データは処理対象
にならないので、上書きされてしまっても問題にならな
い。
On the writing side, since the buffer is not switched, the write address generator 2 resets the write address of the buffer 1A of the double buffer 1 by inputting a signal indicating the head of the data to be converted, that is, sets the write address to "0". , The next data to be converted is overwritten on the unwritten data of the buffers 1A and 1B that have not been completely written. Since the illegal data at this time is not processed, there is no problem even if it is overwritten.

【0030】また、フォーマッタの後段の装置(システ
ム)において、処理の都合上、不正データであり処理対
象にならないデータの位置にダミーデータをつける等の
処理をする場合も考えられるので、本実施の形態では、
さらに追加機能として未取得データ情報制御部10の追
加により、上書きされた位置情報を外部に取り出せるよ
うにしている。
Further, in a device (system) at the subsequent stage of the formatter, processing such as adding dummy data to a position of data which is illegal data and is not to be processed may be considered for processing reasons. In the form,
Further, by adding an unacquired data information control unit 10 as an additional function, the overwritten position information can be extracted to the outside.

【0031】すなわち、未取得データ情報制御部10で
は、変換対象データの先頭を示すデータ先頭信号とデー
タライト終了監視部6からのデータライト終了情報よ
り、時刻情報若しくは変換対象データの先頭を示すデー
タ先頭信号をカウントしたカウント値を記憶し、その時
刻情報又はカウント値をプロセッサインタフェース部9
へ出力し、外部プロセッサにその時刻情報又はカウント
値を取り出せるようにする。
That is, the unacquired data information control unit 10 obtains the time information or the data indicating the head of the conversion target data from the data head signal indicating the head of the conversion target data and the data write end information from the data write end monitoring unit 6. A count value obtained by counting the head signal is stored, and the time information or the count value is stored in the processor interface unit 9.
To output the time information or the count value to an external processor.

【0032】なお、フォーマッタの後段の装置(システ
ム)においては、多重部8にてダブルバッファ1の出力
データに多重した時刻情報や変換対象データの先頭を示
すデータ先頭信号をカウントしたカウント値と、未取得
データ情報制御部10からの情報により必要に応じてダ
ミーデータの挿入処理等を行う。
In an apparatus (system) subsequent to the formatter, the multiplexing unit 8 counts the time information multiplexed on the output data of the double buffer 1 and the count value obtained by counting the data head signal indicating the head of the data to be converted. According to information from the unacquired data information control unit 10, dummy data insertion processing and the like are performed as necessary.

【0033】[0033]

【実施例】次に、本発明の実施例の構成について図面を
参照して説明する。
Next, the configuration of an embodiment of the present invention will be described with reference to the drawings.

【0034】図2は本発明になるフォーマッタの一実施
例の構成図を示す。同図中、図1と同一構成部分には同
一符号を付してある。図2において、ダブルバッファ1
は前記バッファ1A及び1Bに相当する高速のスタティ
ック・ランダム・アクセス・メモリ(以後SRAMと呼
ぶ)11A及び11Bと、それらSRAM11A、11
Bの入力側に設けられた第1の切換スイッチ11Cと出
力側に設けられた第2の切換スイッチ11Dからなり、
高速なデータの読み書きを実現する構成とされている。
SRAM11A及び11Bのメモリ容量は、1ラインの
画像データ量は現状では、1メガバイト(1MB)を越
えるものはないので、片系1メガバイトのSRAM、つ
まりダブルバッファ1は2メガバイトの容量を持つ。
FIG. 2 is a block diagram showing one embodiment of the formatter according to the present invention. In the figure, the same components as those in FIG. 1 are denoted by the same reference numerals. In FIG. 2, double buffer 1
Are high-speed static random access memories (hereinafter referred to as SRAMs) 11A and 11B corresponding to the buffers 1A and 1B, and the SRAMs 11A and 11B.
A first changeover switch 11C provided on the input side of B and a second changeover switch 11D provided on the output side,
It is configured to realize high-speed reading and writing of data.
As for the memory capacity of the SRAMs 11A and 11B, the image data amount of one line does not exceed 1 megabyte (1 MB) at present, so the one-system 1 megabyte SRAM, that is, the double buffer 1 has a capacity of 2 megabytes.

【0035】変換対象データの先頭を示すデータ先頭信
号として、ラインスタート信号を使用する。また、ライ
トアドレス発生部2は、ラインスタート信号の入力パル
スによりリセットされる20ビットのカウンタ20によ
り構成される。リードアドレス設定部3は、外部プロセ
ッサからダブルバッファのリードアドレスを記憶できる
3MBの容量のSRAM31と、そのSRAM31の読
み出しアドレスを発生する20ビットのカウンタ32と
から構成される。
A line start signal is used as a data head signal indicating the head of the data to be converted. The write address generator 2 is composed of a 20-bit counter 20 that is reset by an input pulse of a line start signal. The read address setting unit 3 includes an SRAM 31 having a capacity of 3 MB capable of storing a read address of a double buffer from an external processor, and a 20-bit counter 32 for generating a read address of the SRAM 31.

【0036】付加情報制御部4は、付加情報や時刻情報
をラインスタートによりラッチするレジスタ41を使用
し、リードアドレス設定部3のアドレスにより多重部8
のバッファのイネーブルを制御する構成にする。クロッ
ク発生部5は、高周波信号を発振出力する発振器51
と、発振器51の出力高周波信号を分周してクロックパ
ルスを発生すると共に、その分周比が外部プロセッサか
ら設定により可変される可変分周器52とから構成され
ている。
The additional information control unit 4 uses a register 41 that latches additional information and time information at the line start, and uses the address of the read address setting unit 3 to control the multiplexing unit 8.
Is configured to control the buffer enable. The clock generator 5 includes an oscillator 51 that oscillates and outputs a high-frequency signal.
And a variable frequency divider 52 which divides the output high-frequency signal of the oscillator 51 to generate a clock pulse and whose frequency division ratio is variable by setting from an external processor.

【0037】データライト終了監視部6は、ライトアド
レス発生部2に書かれた所定の書き込みカウンタ値まで
ライトアドレスがインクリメントしたときに終了情報を
出力するコンパレータ61と、その出力終了情報とライ
ンスタート信号によりリードアドレス設定部3のカウン
タ32のリセットやカウントアップの制御を行うAND
回路62とから構成されている。
The data write end monitor 6 includes a comparator 61 for outputting end information when the write address has been incremented by a predetermined write counter value written in the write address generator 2, an output end information and a line start signal. Performs reset and count-up control of the counter 32 of the read address setting unit 3 by
And a circuit 62.

【0038】ダブルバッファ切替制御部7は、データラ
イト終了監視部6からの終了情報をラッチするラッチ回
路71と、ラッチ回路71よりの終了情報とラインスタ
ートとが入力されるAND回路72と、AND回路72
の出力信号によりダブルバッファ1を構成するSRAM
11A及び11Bのチップセレクト信号やライトイネー
ブル信号を発生するフリップフロップ(F/F)73
と、F/F73の出力によりSRAM11A及び11B
の一方にライトアドレスを、他方にリードアドレスを入
力すると共にそれを切り替え可能なスイッチ回路74と
から構成されている。
The double buffer switching control section 7 includes a latch circuit 71 for latching the end information from the data write end monitoring section 6, an AND circuit 72 to which the end information from the latch circuit 71 and the line start are inputted, and an AND circuit 72. Circuit 72
Constituting double buffer 1 by output signal of
Flip-flop (F / F) 73 for generating chip select signals and write enable signals for 11A and 11B
And the SRAMs 11A and 11B by the output of the F / F 73.
And a switch circuit 74 that inputs a write address to one of them and a read address to the other and switches between them.

【0039】多重部8はリードアドレス設定部3の出力
信号(後述の多重ビット)によりダブルバッファ1の読
み出しデータ又は付加情報制御部4の出力情報のいずれ
か一方を選択して、すなわち時分割多重して出力する。
プロセッサインタフェース部9としては、汎用バスプロ
トコルのVMEバスにて外部プロセッサとインタフェー
スできるVMEインタフェース(I/F)90により構
成し、各部の設定やSRAMの読み書きを実現する。
The multiplexing unit 8 selects one of the read data of the double buffer 1 and the output information of the additional information control unit 4 based on the output signal (multiplexed bit described later) of the read address setting unit 3, that is, time division multiplexing. And output.
The processor interface unit 9 includes a VME interface (I / F) 90 that can interface with an external processor via a VME bus of a general-purpose bus protocol, and realizes setting of each unit and reading and writing of SRAM.

【0040】さらに上記構成に加えて未取得データ情報
制御部10は、ラインスタートとデータライト終了監視
部6からの終了情報をゲート出力するゲート回路101
と、ゲート回路101の出力信号により時刻情報をラッ
チするレジスタ102と、入力されるラインスタート信
号をカウントするカウンタ103と、ゲート回路101
の出力信号によりカウンタ103の出力カウント値をラ
ッチするレジスタ104と、カウンタ103のカウント
値、レジスタ102の出力時刻情報及びレジスタ104
の出力値がそれぞれ入力されてそれぞれ出力するFIF
O105からなる。
Further, in addition to the above configuration, the unacquired data information control section 10 includes a gate circuit 101 for gate-outputting line start and end information from the data write end monitoring section 6.
A register 102 for latching time information based on an output signal of the gate circuit 101, a counter 103 for counting an input line start signal, and a gate circuit 101
, A register 104 for latching the output count value of the counter 103 by the output signal of the counter 103, the count value of the counter 103, the output time information of the register 102, and the register 104.
FIF that each output value is input and output
It consists of O105.

【0041】次に上記構成における本発明の実施例の動
作について、図2を参照して説明する。
Next, the operation of the embodiment of the present invention having the above configuration will be described with reference to FIG.

【0042】まず、初期設定とし、外部プロセッサより
VMEバスのI/Oアクセスにより設定モードにし、V
MEバスのメモリアクセスにてリードアドレス設定部3
のSRAM31にフォーマット変換のための並べ替え用
にダブルバッファのSRAM11A及び11Bから読み
出すための順番のアドレスを書き込む。このときのデー
タには、付加情報や時刻情報、ラインスタート信号をカ
ウントするカウンタ値を多重するための情報ビットや読
み出し終了ビットのデータも含まれる。また、VMEバ
スのI/Oアクセスにてクロック発生部5の可変分周器
52の分周段数の設定も行う。このときのクロック周波
数は、書き込みレートのクロックよりも速いレートのも
のを選ぶ。このことにより通常では、ダブルバッファ1
において書き込みよりも読み出しのほうが先に終了でき
るようになる。また、処理すべきデータの1フォーマッ
ト分のカウント値(ダブルバッファに書き込まれるべき
データ数)をデータライト終了監視部6のコンパレータ
61に設定する。
First, an initial setting is made, and a setting mode is set by an I / O access of a VME bus from an external processor,
Read address setting unit 3 by ME bus memory access
In the SRAM 31, the addresses in the order of reading from the double-buffered SRAMs 11A and 11B are written for rearrangement for format conversion. The data at this time includes additional information, time information, information bits for multiplexing a counter value for counting the line start signal, and data of a read end bit. Also, the number of frequency division stages of the variable frequency divider 52 of the clock generator 5 is set by I / O access to the VME bus. The clock frequency at this time is selected to be higher than the write rate clock. This usually results in a double buffer 1
In this case, reading can be completed earlier than writing. Further, the count value for one format of data to be processed (the number of data to be written to the double buffer) is set in the comparator 61 of the data write end monitoring unit 6.

【0043】フォーマッタには、1ライン分の画像デー
タ、クロック、1ラインのデータの始まりを示すライン
スタート信号、画像データ領域を示すデータイネーブル
信号、付加情報、時刻情報が図3に示すタイミングで入
力される。
The formatter receives image data for one line, a clock, a line start signal indicating the start of one line of data, a data enable signal indicating an image data area, additional information, and time information at the timing shown in FIG. Is done.

【0044】フォーマッタは、前記初期設定後、外部プ
ロセッサよりVMEバスのI/Oアクセスで設定モード
を解除し、上記の各種データが入力されるとフォーマッ
タの動作が開始される。
After the initial setting, the formatter releases the setting mode by the I / O access of the VME bus from the external processor, and when the above various data is input, the operation of the formatter is started.

【0045】ダブルバッファのデータの書き込みは、ラ
インスタート信号によりライトアドレス発生部2のカウ
ンタ20をリセットし、ダブルバッファ1のSRAM1
1A及び11Bのうち書き込み側のSRAMのアドレス
を「0」にする。カウンタ20は、データイネーブル信
号がハイレベルのとき、カウントアップをし続け、ダブ
ルバッファの書き込み側のSRAMのライトアドレスを
更新して、入力画像データを書き込み側のSRAMに書
き込んでいく。また、付加情報や時刻情報は、ラインス
タートでそのデータをラッチし、レジスタ41に記憶す
る。
To write the data in the double buffer, the counter 20 of the write address generator 2 is reset by the line start signal, and the SRAM 1 of the double buffer 1 is written.
The address of the write-side SRAM among 1A and 11B is set to “0”. When the data enable signal is at a high level, the counter 20 continues to count up, updates the write address of the SRAM on the write side of the double buffer, and writes the input image data to the SRAM on the write side. The additional information and the time information are latched at the line start and stored in the register 41.

【0046】ダブルバッファのデータの読み出しは、ラ
インスタート信号とライトデータ終了情報の論理積演算
を行うAND回路62の出力信号がハイレベルのとき、
ダブルバッファのリードアドレスを記憶しているSRA
M31のアドレスを発生するカウンタ32をリセットす
ると共に、カウンタ32のカウントアップを始める。カ
ウンタ32をストップするのは、リードアドレスを記憶
しているSRAM31の読み出し終了ビットのデータの
ハイレベルが読み出されたときにカウンタ32がストッ
プする。それまでは、カウンタ32は可変分周器52か
ら入力されるクロックをカウントし続ける。
Data is read from the double buffer when the output signal of the AND circuit 62 for performing a logical product operation of the line start signal and the write data end information is at a high level.
SRA storing double buffer read address
The counter 32 that generates the address of M31 is reset, and the counter 32 starts counting up. The counter 32 stops when the high-level data of the read end bit of the SRAM 31 storing the read address is read. Until then, the counter 32 continues to count the clock input from the variable frequency divider 52.

【0047】ダブルバッファのリードアドレスを記憶し
ているSRAM31に書かれたデータの1ビットを多重
データを読み出すためのビットして割り当て、このビッ
トがハイレベルのときは、多重データとしての付加情報
や時刻情報をラッチしているレジスタ41の出力データ
を切り替えスイッチ81により選択させ、ローレベルの
ときは、ダブルバッファ1のSRAM11A及び11B
のうち読み出し側のSRAMから読み出されたデータを
選択させて出力データとして出力させる。
One bit of the data written in the SRAM 31 storing the read address of the double buffer is allocated as a bit for reading out the multiplexed data. When this bit is at a high level, additional information as the multiplexed data and The output data of the register 41 latching the time information is selected by the changeover switch 81. When the output data is at the low level, the SRAMs 11A and 11B of the double buffer 1 are selected.
Out of the read-side SRAMs, and outputs the selected data as output data.

【0048】また、ダブルバッファに書き込むべきカウ
ンタ値とダブルバッファに書き込みを始めてからアドレ
スとしてインクリメントするカウンタ20からのカウン
ト値を、コンパレータ61にて比較し、その値が一致し
たときに、1ビットを終了情報(書き込み終了ビット)
として出力し、ハイレベルに記憶しておく。この状態に
なったとき、書き込みが終了と判断する。このデータラ
イト終了情報は、次のラインスタートが入力されるまで
は、ハイレベル状態を維持する。
The counter value to be written to the double buffer and the count value from the counter 20 which is incremented as an address after the writing to the double buffer is started are compared by the comparator 61. When the values match, one bit is added. End information (write end bit)
And stored at a high level. When this state is reached, it is determined that the writing is completed. This data write end information maintains the high level state until the next line start is input.

【0049】次に、ダブルバッファの切り替え制御は、
データライト終了情報とラインスタートの論理積演算を
行うAND回路72の出力信号によりフリップフロップ
73をトグル動作させてダブルバッファ1のSRAM1
1A及び11Bのチップセレクトとライトイネーブルを
発生して、ダブルバッファ1の切り替えを行う。つま
り、データライト終了情報がハイレベルで、かつ、ライ
ンスタート信号がハイレベルとなったとき、ダブルバッ
ファの切り替えを行う。上記の動作によりデータの変換
をリアルタイムに行っていく。
Next, the switching control of the double buffer is as follows.
The flip-flop 73 is toggled by the output signal of the AND circuit 72 which performs the logical product operation of the data write end information and the line start, and the SRAM 1 of the double buffer 1 is operated.
The chip select and the write enable of 1A and 11B are generated, and the double buffer 1 is switched. That is, when the data write end information is at the high level and the line start signal is at the high level, the double buffer is switched. With the above operation, data conversion is performed in real time.

【0050】次に図4のようなタイミングのデータがフ
ォーマッタに入力された場合、何らかの原因で所定のデ
ータ数だけ書き込みができなかった場合、フォーマッタ
に、データライト終了情報がハイレベルになる前に、ハ
イレベルのラインスタート信号が入力されてしまう。
Next, when data having the timing shown in FIG. 4 is input to the formatter, if a predetermined number of data cannot be written for some reason, the formatter informs the formatter before the data write end information becomes high level. , A high-level line start signal is input.

【0051】従来のフォーマッタならば、ラインスター
ト信号のハイレベル入力によりダブルバッファの切り替
えを行っているので、図6に示すように不正データのデ
ータ3のためデータ2の読み出しが終わる前にダブルバ
ッファが切り替えられ、データ2は途中までしか読み出
されない。また、データ4以降は正しい長さのデータな
のでデータ3以降は、正しい長さで出力されるが、デー
タ2の出力が短い分だけ以降のデータの先頭がずれてし
まう。また、不要な不正データであるデータ3は書き込
まれた以上にデータが読み出され(波線部分)、出力さ
れてしまう。
In the case of the conventional formatter, the double buffer is switched by inputting the line start signal at a high level. Therefore, as shown in FIG. Is switched, and the data 2 is read only halfway. Since data 4 and subsequent data have the correct length, data 3 and subsequent data are output with the correct length, but the output of data 2 is short, and the beginning of subsequent data is shifted. In addition, data 3 which is unnecessary illegal data is read out (wavy line portion) and output more than it is written.

【0052】これに対し、この実施例では、データライ
ト終了情報がハイレベルであり、かつ、次のラインスタ
ート信号のハイレベルが入力されたときにダブルバッフ
ァの切り替えを行うので、従来のフォーマッタのような
ことは起こらない。
On the other hand, in this embodiment, the double buffer is switched when the data write end information is at the high level and the next line start signal is at the high level. Nothing like that happens.

【0053】このことを図5を参照しながら、図4のよ
うなタイミングのときの動作を説明する。データ1をS
RAM11Aに書き込んでいるときは、SRAM11B
に書かれているデータを読み出し、データ1の書き込み
終了前にSRAM11Bの読み出しは終了する。次にデ
ータ2のラインスタート信号が入力されたとき、ダブル
バッファが切り替えられた後、図5(A)に模式的に示
すように、SRAM11Bにデータ2が書き込まれ、S
RAM11Aからデータ1が読み出される。
The operation at the timing shown in FIG. 4 will be described with reference to FIG. Data 1 is S
When writing to the RAM 11A, the SRAM 11B
The data written in the SRAM 11B is read before the writing of the data 1 is completed. Next, when a line start signal of data 2 is input, after the double buffer is switched, data 2 is written into the SRAM 11B as schematically shown in FIG.
Data 1 is read from the RAM 11A.

【0054】そして、上記のSRAM11Bへのデータ
2の正常書き込み終了後に、SRAM11Aが書き込み
側、SRAM11Bが読み出し側となるようにダブルバ
ッファが再び切り替えられ、次のデータ3がSRAM1
1Aにより書き込まれ始め、かつ、SRAM11Bから
正常のデータ2が読み出され始めるが、データ3は不正
データであることから上記の動作の途中で、図4にaで
示す如くデータ4のハイレベルのラインスタート信号が
入力される。
After the normal writing of the data 2 to the SRAM 11B is completed, the double buffer is switched again so that the SRAM 11A is on the writing side and the SRAM 11B is on the reading side, and the next data 3 is stored in the SRAM 1B.
1A, and normal data 2 starts to be read from the SRAM 11B. However, since the data 3 is invalid data, during the above operation, as shown by a in FIG. A line start signal is input.

【0055】この場合、本実施例ではデータ2の読み出
しが完了していないことにより、データライト終了情報
は、ローレベルのままである。そのため、データ4のラ
インスタート信号(図4のa)が入力されてもダブルバ
ッファ1を切り替え制御するAND回路72の出力信号
は、ハイレベルにならずダブルバッファ1の切り替えは
行わない。また、この時点では、ダブルバッファ1のリ
ードアドレスを記憶しているSRAM31のアドレスを
発生するカウンタ32は、可変分周器52よりのクロッ
クパルスのカウントアップを続けるため、読み出し側の
SRAM11Bはデータ2の読み出しをそのまま続け
る。
In this case, in this embodiment, since the reading of the data 2 has not been completed, the data write end information remains at the low level. Therefore, even if the line start signal (a in FIG. 4) of the data 4 is input, the output signal of the AND circuit 72 that controls the switching of the double buffer 1 does not become high level and the switching of the double buffer 1 is not performed. At this time, the counter 32 that generates the address of the SRAM 31 storing the read address of the double buffer 1 keeps counting up the clock pulse from the variable frequency divider 52. Reading is continued.

【0056】また、データ4のラインスタート信号(図
4のa)によりダブルバッファのライトアドレスを発生
しているカウンタ20はリセットされ、つまりライトア
ドレスが「0」になり、一方、SRAM11Aが読み出
し側に切り替えられておらず、依然として書き込み側と
されているので、図5(A)に模式的に示すように、不
正データであるデータ3を書き込んだSRAM11Aが
次のデータ4をデータ3に上書きすることになる。この
ときのデータ3は、不正データであり処理対象にならな
いので、上書きされてしまっても問題にならない。
Further, the counter 20 which generates the double buffer write address is reset by the line start signal of data 4 (FIG. 4A), that is, the write address becomes "0", while the SRAM 11A is in the read side. 5A, and is still on the writing side. As schematically shown in FIG. 5A, the SRAM 11A that has written the data 3 which is incorrect data overwrites the next data 4 with the data 3. Will be. Since the data 3 at this time is illegitimate data and is not processed, there is no problem even if it is overwritten.

【0057】そして、読み出しを続行していたSRAM
11Bからのデータ2の読み出しが終了し、更にSRA
M11Aへのデータ4の書き込みが正常に終了すると、
データライト終了情報がハイレベルになり、また次のデ
ータ5のラインスタート信号が入力されるので、これに
よりSRAM11Aは読み出し側、SRAM11Bは書
き込み側に切り替えられ、SRAM11Aからはデータ
4が読み出され、SRAM11Bにはデータ5が書き込
まれる。
Then, the SRAM which has continued reading is
The reading of data 2 from 11B is completed, and the SRA
When the writing of data 4 to M11A ends normally,
Since the data write end information becomes high level and the line start signal of the next data 5 is input, the SRAM 11A is switched to the read side and the SRAM 11B is switched to the write side, and the data 4 is read from the SRAM 11A. Data 5 is written to the SRAM 11B.

【0058】これにより、図5(B)に模式的に示すよ
うに、出力されるデータの長さは一定であり、不正デー
タを出力することもなくなり、フォーマッタの後段の装
置(システム)の処理に必要なデータを欠くこともなく
なる。
As a result, as schematically shown in FIG. 5B, the length of the output data is constant, no illegal data is output, and the processing of the apparatus (system) at the subsequent stage of the formatter is performed. You don't lose the data you need.

【0059】さらに追加機能として、未取得データ情報
制御部10で上書きされた位置情報を外部に取り出せる
ような機能も持つようにできる。未取得データ情報制御
部10では、ハイレベルのラインスタート信号が入力さ
れてデータライト終了情報がローレベルのときに、時刻
情報もしくは、ラインスタート信号をカウントしたカウ
ント値をレジスタ102、104にラッチし、それらレ
ジスタ102、104及びカウンタ103の各出力をF
IFO105に入力して互いに独立して書き込み、FI
FO105から互いに独立して読み出された信号をVM
EバスI/F90によりいずれか一の信号を選択して制
御プロセッサに情報を取り出せるようにする。
Further, as an additional function, it is possible to have a function of extracting the position information overwritten by the unacquired data information control unit 10 to the outside. When the high-level line start signal is input and the data write end information is at the low level, the unacquired data information control unit 10 latches the time information or the count value obtained by counting the line start signal into the registers 102 and 104. , Each output of the registers 102 and 104 and the counter 103
Input to the FIFO 105 and write independently of each other,
The signals read from the FO 105 independently of each other
One of the signals is selected by the E bus I / F 90 so that the information can be taken out to the control processor.

【0060】なお、フォーマッタの後段の装置(システ
ム)においては、フォーマッタの出力データに多重した
時刻情報や変換対象データの先頭を示す信号をカウント
したカウント値と、未取得データ情報制御部からの情報
によりダミーデータの挿入処理等を行う。
In the apparatus (system) at the subsequent stage of the formatter, the time information multiplexed on the output data of the formatter, the count value of the signal indicating the head of the data to be converted, and the information from the unacquired data information control unit are output. To insert dummy data.

【0061】[0061]

【発明の効果】以上説明したように、本発明によれば、
データライト終了情報が出力され、かつ次のラインスタ
ート信号が入力されたときにダブルバッファの切り替え
を行うことにより、読み出しが途中で終わったり、不必
要なデータをダブルバッファに記憶することがないよう
にしたため、出力されるデータの長さを一定にでき、不
正データを出力することもなくなり、フォーマッタの後
段の装置(システム)の処理に必要なデータを欠くこと
も防止できる。また、本発明によれば、読み出し速度が
高速なときに、所定のサイズのデータを書き込めなかっ
た状況でも、所定のサイズのデータを読み出してしま
い、本来存在すべきでないラインを発生させることも防
止できる。
As described above, according to the present invention,
By switching the double buffer when the data write end information is output and the next line start signal is input, it is possible to prevent the reading from being terminated halfway or storing unnecessary data in the double buffer. Therefore, the length of output data can be made constant, illegal data is not output, and data necessary for processing of a device (system) at a subsequent stage of the formatter can be prevented. Further, according to the present invention, when the read speed is high, even if data of a predetermined size cannot be written, data of a predetermined size is read, thereby preventing generation of a line that should not exist. it can.

【0062】また、本発明によれば、書き込みが途中で
終ったバッファの上書きされた位置情報を外部に取り出
せるような機能も持っているため、フォーマッタの後段
の装置(システム)において、処理の都合上、不正デー
タであり処理対象にならない読み出しが間に合わないほ
どの短いデータの位置にダミーデータを挿入することが
必要となる場合でも、容易にその位置を知ることがで
き、よって、ダミーデータ挿入処理をすることが容易に
なり、データの品質向上に役立てられる。
Further, according to the present invention, the function of extracting the overwritten position information of the buffer in which writing has been completed halfway is also provided, so that the apparatus (system) downstream of the formatter is convenient for processing. In addition, even if it is necessary to insert dummy data at a position of data that is too short to be read, which is illegal data and cannot be processed, the position can be easily known, and therefore, dummy data insertion processing can be performed. Can be easily performed, which is useful for improving data quality.

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

【図1】本発明の一実施の形態の構成図である。FIG. 1 is a configuration diagram of an embodiment of the present invention.

【図2】本発明の一実施例の構成図である。FIG. 2 is a configuration diagram of one embodiment of the present invention.

【図3】フォーマッタに入力されるデータのタイミング
チャートである。
FIG. 3 is a timing chart of data input to a formatter.

【図4】図2の動作説明用のタイミングチャートであ
る。
FIG. 4 is a timing chart for explaining the operation of FIG. 2;

【図5】図2の動作説明図である。FIG. 5 is an operation explanatory diagram of FIG. 2;

【図6】従来の一例の動作説明図である。FIG. 6 is a diagram illustrating an operation of an example of the related art.

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

1 ダブルバッファ 1A、1B バッファ 2 ライトアドレス発生部 3 リードアドレス設定部 4 付加情報制御部 5 クロック発生部 6 データライト終了監視部 7 ダブルバッファ切替制御部 8 多重部 9 プロセッサインタフェース部 10 未取得データ情報制御部 11A、11B バッファ用スタティック・ランダム・
アクセス・メモリ(SRAM) 20、32、103 カウンタ 31 リードアドレスを記憶しているスタティック・ラ
ンダム・アクセス・メモリ(SRAM) 41、102、104 レジスタ 51 発振器 52 可変分周器 61 コンパレータ
DESCRIPTION OF SYMBOLS 1 Double buffer 1A, 1B buffer 2 Write address generation part 3 Read address setting part 4 Additional information control part 5 Clock generation part 6 Data write end monitoring part 7 Double buffer switching control part 8 Multiplexing part 9 Processor interface part 10 Unacquired data information Control unit 11A, 11B Static / random buffer
Access memory (SRAM) 20, 32, 103 Counter 31 Static random access memory (SRAM) 41, 102, 104 Register 51 Oscillator 52 Variable frequency divider 61 Comparator

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 第1及び第2のバッファを有し、データ
のフォーマット変換を行うために一方のバッファに入力
データを書き込み、他方のバッファから記憶データを読
み出すダブルバッファと、 前記ダブルバッファの書き込み側のバッファに前記入力
データを書き込むためのライトアドレスを、前記入力デ
ータの所定単位の始まりを示す外部入力データ先頭信号
に同期して発生するライトアドレス発生部と、 前記入力データのフォーマット変換と付加情報多重のた
めに前記ダブルバッファの読み出し側のバッファに外部
より設定したリードアドレスを供給すると共に、書き込
みレートよりも速いレートで該読み出し側のバッファか
らデータを読み出す読み出し制御手段と、 前記データ先頭信号入力時に前記付加情報を取り込む付
加情報制御部と、 前記ダブルバッファの書き込み側バッファへの前記入力
データの書き込みの終了を監視するデータライト終了監
視部と、 前記データ先頭信号と前記データライト終了監視部から
出力された終了情報とが共に入力されたときに、前記ダ
ブルバッファの書き込み側のバッファを読み出し側に、
かつ、読み出し側のバッファを書き込み側に切り替える
ダブルバッファ切替制御部と、 前記付加情報制御部からの前記付加情報と前記ダブルバ
ッファの出力データを多重して出力する多重部とを有す
ることを特徴とするフォーマッタ。
1. A double buffer having first and second buffers for writing input data to one buffer and reading stored data from the other buffer for performing data format conversion, and writing the double buffer. A write address generator for generating a write address for writing the input data in a buffer on the side in synchronization with an external input data head signal indicating the start of a predetermined unit of the input data; and a format conversion and addition of the input data Read control means for supplying an externally set read address to a read buffer of the double buffer for information multiplexing and reading data from the read buffer at a rate higher than a write rate; and Additional information control unit that captures the additional information at the time of input A data write end monitoring unit that monitors the end of writing of the input data to the write buffer of the double buffer; and the data head signal and end information output from the data write end monitoring unit. The buffer on the write side of the double buffer to the read side,
And a double buffer switching control unit that switches a buffer on the read side to a write side, and a multiplexing unit that multiplexes and outputs the additional information from the additional information control unit and output data of the double buffer. Formatter to do.
【請求項2】 前記ダブルバッファ切替制御部に前記終
了情報が入力される前に前記データ先頭信号が入力され
たときに、その位置を示す未取得データ情報を発生して
出力する未取得データ情報制御部を更に設けたことを特
徴とする請求項1記載のフォーマッタ。
2. The non-acquired data information for generating and outputting unacquired data information indicating the position when the data head signal is input before the end information is input to the double buffer switching control unit. The formatter according to claim 1, further comprising a control unit.
【請求項3】 前記未取得データ情報は、前記データ先
頭信号のカウント値又は前記入力データの時刻情報であ
ることを特徴とする請求項2記載のフォーマッタ。
3. The formatter according to claim 2, wherein the unacquired data information is a count value of the data head signal or time information of the input data.
【請求項4】 第1及び第2のバッファのうちの一方の
バッファが入力データを書き込み、他方のバッファが記
憶データを書き込みレートより速いレートで読み出し、
かつ、書き込み側と読み出し側が交互に切り替えられる
ダブルバッファの読み出しアドレスが外部から設定さ
れ、書き込みアドレスが前記入力データの所定単位毎の
データの始まりを示すデータ先頭信号により同期して発
生され、前記ダブルバッファから入力データをデータ変
換して読み出したデータと共に、付加情報や前記時刻情
報を多重して読み出す構成のフォーマッタの制御方法で
あって、 前記ダブルバッファの書き込み側バッファへの前記入力
データの書き込みの終了により出力される終了情報と前
記データ先頭信号とが共に入力されたときに、前記ダブ
ルバッファの書き込み側のバッファを読み出し側に、か
つ、読み出し側のバッファを書き込み側に切り替え、前
記終了情報が入力される前に前記データ先頭信号が入力
されたときには、そのときの位置を取得して、外部に未
取得データ情報として出力することを特徴とするフォー
マッタの制御方法。
4. One of the first and second buffers writes input data, and the other buffer reads stored data at a higher rate than the write rate.
In addition, a read address of a double buffer in which a write side and a read side are alternately switched is set from the outside, and a write address is generated in synchronization with a data head signal indicating a start of data of a predetermined unit of the input data. A formatter control method for multiplexing and reading additional information and the time information together with data read by converting input data from a buffer, comprising: writing the input data to a write-side buffer of the double buffer. When both the end information output by the end and the data head signal are input, the buffer on the write side of the double buffer is switched to the read side, and the buffer on the read side is switched to the write side, and the end information is When the data head signal is input before input A method for controlling a formatter, wherein a position at that time is acquired and output as unacquired data information to the outside.
JP08319756A 1996-11-29 1996-11-29 Formatter and formatter control method Expired - Fee Related JP3129213B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP08319756A JP3129213B2 (en) 1996-11-29 1996-11-29 Formatter and formatter control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP08319756A JP3129213B2 (en) 1996-11-29 1996-11-29 Formatter and formatter control method

Publications (2)

Publication Number Publication Date
JPH10164170A true JPH10164170A (en) 1998-06-19
JP3129213B2 JP3129213B2 (en) 2001-01-29

Family

ID=18113832

Family Applications (1)

Application Number Title Priority Date Filing Date
JP08319756A Expired - Fee Related JP3129213B2 (en) 1996-11-29 1996-11-29 Formatter and formatter control method

Country Status (1)

Country Link
JP (1) JP3129213B2 (en)

Also Published As

Publication number Publication date
JP3129213B2 (en) 2001-01-29

Similar Documents

Publication Publication Date Title
JPH0713926A (en) Buffer control circuit and its operating method
JPH04220829A (en) Cell phase changing circuit
KR100498233B1 (en) First-in first-out memory circuit and method for executing the same
JP3129213B2 (en) Formatter and formatter control method
JP2002524919A (en) Transmitter, receiver and method in a telecommunications system for generating a PN sequence for multiple user channels
US4675868A (en) Error correction system for difference set cyclic code in a teletext system
US5055940A (en) Video memory control apparatus
JPH1198099A (en) Method and device for multiplexing data
JP2937233B2 (en) Format converter
CA2021348C (en) Elastic store memory circuit
US6950462B2 (en) Video encoding apparatus, video encoding method, and frame rate conversion apparatus
JP2002084316A (en) Variable length packet write and read circuit
JPH07129756A (en) Buffer memory device
JPH0661966A (en) Digital stuff control circuit
JP3141667B2 (en) Data conversion circuit
KR100242116B1 (en) Variable magnification photo-recorder
JP2850671B2 (en) Variable delay circuit
KR950009772Y1 (en) Data convert circuit
KR100188940B1 (en) Double stac control apparatus using single memory and data transfer method
JPH05143283A (en) Data speed converter
JPH0831832B2 (en) Asynchronous frame conversion circuit
JPH11266426A (en) Memory controller
KR0127133B1 (en) Retimed memory switching circuit for digital radar
JPH06195301A (en) Data transfer method
JP3293382B2 (en) Data compression device and data decompression device

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20071117

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20081117

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20081117

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20091117

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20091117

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20101117

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20111117

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20121117

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20121117

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20131117

Year of fee payment: 13

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees