JP2007329670A - Data receiving device and data receiving method - Google Patents
Data receiving device and data receiving method Download PDFInfo
- Publication number
- JP2007329670A JP2007329670A JP2006158827A JP2006158827A JP2007329670A JP 2007329670 A JP2007329670 A JP 2007329670A JP 2006158827 A JP2006158827 A JP 2006158827A JP 2006158827 A JP2006158827 A JP 2006158827A JP 2007329670 A JP2007329670 A JP 2007329670A
- Authority
- JP
- Japan
- Prior art keywords
- data
- flag bit
- signal
- parallel
- output
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
Description
本発明は、データ受信装置およびデータ受信方法に関するものである。 The present invention relates to a data receiving apparatus and a data receiving method.
データ転送の手法はパラレルデータバスを用いたパラレル転送と、シリアルデータバスを用いたシリアル転送に大別される。パラレル転送は高速のデータ転送に向いているが、マイコンやIC等のデバイスのピン数の増大につながる。ピン数の低減につながるシリアルデータ転送の一つに5線式シリアルインタフェースを用いたものがある。5線式を用いたデータ送信装置とデータ受信装置間のデータ転送についてオーディオデータを例に説明する。まず、データ受信装置がデータ送信装置へデータ要求信号を出力する。このデータ要求信号に基づきデータ送信装置はオーディオデータ(シリアルデータ)信号、有効・無効データ判定信号、クロック信号、データ・ワード境界判別クロック信号を出力する。データ受信装置はオーディオデータを装置内部に取り込み、パラレル形式に変換し、有効・無効データ判定信号のレベルからデータの有効・無効を判定し、ダブルワード単位で取り込み・破棄を行う。データのワード単位はデータ・ワード境界判別クロック信号から求まる。取り込み・破棄の処理が行われた後、データはデータ受信装置内部のデータ格納メモリに格納される。 Data transfer methods are roughly classified into parallel transfer using a parallel data bus and serial transfer using a serial data bus. Parallel transfer is suitable for high-speed data transfer, but leads to an increase in the number of pins of devices such as microcomputers and ICs. One serial data transfer that leads to a reduction in the number of pins is one that uses a 5-wire serial interface. Data transfer between a data transmission device and a data reception device using a 5-wire system will be described by taking audio data as an example. First, the data receiving device outputs a data request signal to the data transmitting device. Based on the data request signal, the data transmitting device outputs an audio data (serial data) signal, a valid / invalid data determination signal, a clock signal, and a data / word boundary determination clock signal. The data receiving device takes in the audio data into the device, converts it into a parallel format, determines the validity / invalidity of the data from the level of the valid / invalid data decision signal, and takes in / discards in units of double words. The word unit of data is obtained from the data / word boundary determination clock signal. After the capturing / discarding process is performed, the data is stored in a data storage memory inside the data receiving apparatus.
また、シリアルデータ転送には3線式シリアルインタフェースを用いたものがある(例えば特許文献1参照)。3線式を用いたデータ転送では、データ送信装置からシリアルデータ信号、データ・ワード境界判別クロック信号、転送クロック信号が出力される。この場合、データの有効・無効を判定する情報はシリアルデータ信号に埋め込むといったデータフォーマットの変更をしてデータ処理を行う必要がある。 Some serial data transfer uses a three-wire serial interface (see, for example, Patent Document 1). In data transfer using the three-wire system, a serial data signal, a data / word boundary determination clock signal, and a transfer clock signal are output from the data transmission device. In this case, it is necessary to perform data processing by changing the data format, such as embedding information for determining the validity / invalidity of data in a serial data signal.
しかし、上記のような従来のシリアルデータ転送におけるデータ受信装置は、送信されるデータのフォーマット変更に対して柔軟に対応することが出来ず、データ送信装置の仕様変更の都度、データ受信装置のハードウェア修正が必要になるという問題を有していた。
そこで本発明はデータ送信装置の仕様変更に伴うデータフォーマットの変更に対して柔軟に対応でき、ハードウェア修正を低減できるデータ受信装置を提供することを目的とする。 Therefore, an object of the present invention is to provide a data receiving apparatus that can flexibly cope with a change in data format accompanying a change in specifications of the data transmitting apparatus and can reduce hardware modification.
本発明の一態様によるデータ受信装置は、第1、第2、第3、第4及び第5の外部端子と、前記第1の外部端子に接続され、データ転送要求信号を出力可能なリクエスト信号生成回路と、前記第2及び第3の外部端子に接続され、クロック信号及びデータ・ワード境界判別信号が与えられて第1及び第2のデータ取り込みタイミング信号を生成し、出力するデータ取り込みタイミング生成回路と、前記第4の外部端子に接続され、前記第1のデータ取り込みタイミング信号が与えられて、シリアルデータ信号を取り込みパラレルデータに変換して出力する、又は第1のフラグビットを含むシリアルデータ信号である第1のフラグビット付シリアルデータ信号を取り込み第1のフラグビット付パラレルデータに変換して出力するシリアル・パラレル変換回路と、前記シリアル・パラレル変換回路から前記パラレルデータが出力される場合は前記第5の外部端子を介してデータ有効・無効判定信号を与えられて第2のフラグビットとして付加し、第2のフラグビット付パラレルデータを出力し、前記第1のフラグビット付パラレルデータが出力される場合は前記第1のフラグビット付パラレルデータを出力するフラグビット付加回路と、前記第2のデータ取り込みタイミング信号に基づいて前記第1又は第2のフラグビット付パラレルデータを取り込むパラレルデータラッチ回路と、前記パラレルデータラッチ回路から前記第1又は第2のフラグビット付パラレルデータを取り込み、前記第1又は第2のフラグビットの値に基づき前記第1又は第2のフラグビット付パラレルデータを出力または破棄するデータ出力・破棄判定回路と、を備えるものである。 A data receiving apparatus according to an aspect of the present invention includes a first, second, third, fourth, and fifth external terminals and a request signal that is connected to the first external terminals and that can output a data transfer request signal A data acquisition timing generation circuit that is connected to the generation circuit and the second and third external terminals and that receives the clock signal and the data / word boundary determination signal to generate and output the first and second data acquisition timing signals. Serial data connected to a circuit and the fourth external terminal, given the first data capture timing signal, and capturing the serial data signal and converting it into parallel data, or including a first flag bit A serial parameter with a first flag bit, which is a signal, is converted into parallel data with a first flag bit and output. When the parallel data is output from the serial conversion circuit and the serial / parallel conversion circuit, a data valid / invalid determination signal is given via the fifth external terminal and added as a second flag bit, 2 flag bit-added parallel data, and when the first flag bit-added parallel data is output, the flag bit addition circuit for outputting the first flag bit-attached parallel data, and the second data fetching A parallel data latch circuit that captures the first or second flag bit-attached parallel data based on a timing signal; and the parallel data latch circuit that captures the first or second flag bit-attached parallel data; Based on the value of the second flag bit, the parallel data with the first or second flag bit is output. Or discard the data output and discarding decision circuit, in which comprises a.
また、本発明の一態様によるデータ受信装置は、第1、第2、第3、第4及び第5の外部端子と、前記第1の外部端子に接続され、データ転送要求信号を出力可能なリクエスト信号生成回路と、前記第2及び第3の外部端子に接続され、クロック信号及びデータ・ワード境界判別信号が与えられて第1及び第2のデータ取り込みタイミング信号を生成し、出力するデータ取り込みタイミング生成回路と、前記第4の外部端子に接続され、前記第1のデータ取り込みタイミング信号が与えられて、シリアルデータ信号を取り込みパラレルデータに変換して出力する、又は第1のフラグビットを含むシリアルデータ信号である第1のフラグビット付シリアルデータ信号を取り込み第1のフラグビット付パラレルデータに変換して出力するシリアル・パラレル変換回路と、セットされた情報に基づいて第1の制御信号を出力可能な第1のレジスタ回路と、固定値を出力可能な固定値出力回路と前記第1の制御信号に基づいて複数の入力信号から1つの信号を選択し出力できる選択器とを有し、前記シリアル・パラレル変換回路から前記パラレルデータが出力される場合は前記選択器に前記固定値及び前記第5の外部端子を介してデータ有効・無効判定信号が与えられ、選択された値である第2のフラグビットを前記パラレルデータに付加し第2のフラグビット付パラレルデータを出力し、前記第1のフラグビット付パラレルデータが出力される場合は前記第1のフラグビット付パラレルデータを出力するフラグビット付加回路と、前記第2のデータ取り込みタイミング信号に基づいて前記第1又は第2のフラグビット付パラレルデータを取り込むパラレルデータラッチ回路と、セットされた情報に基づいて第2の制御信号を出力する第2のレジスタ回路と、バッファ部、バッファデータキャンセルフラグ生成部及びデータ出力・破棄判定部を有し、前記パラレルデータラッチ回路から前記第1又は第2のフラグビット付パラレルデータを前記バッファ部に取り込み、前記バッファデータキャンセルフラグ生成部は前記第2の制御信号が与えられ前記第1又は第2のフラグビットに基づいてバッファデータキャンセルフラグをセットするか否か判定し、前記バッファデータキャンセルフラグがセットされた場合は前記データ出力・破棄判定部が前記第1又は第2のフラグビット付パラレルデータを破棄し、前記バッファデータキャンセルフラグがセットされない場合は前記データ出力・破棄判定部が前記第1又は第2のフラグビット付パラレルデータを出力するデータ出力・破棄判定回路と、を備えるものである。 The data receiving apparatus according to one aspect of the present invention is connected to the first, second, third, fourth, and fifth external terminals and the first external terminal, and can output a data transfer request signal. A data acquisition unit which is connected to the request signal generation circuit and the second and third external terminals, and receives the clock signal and the data / word boundary determination signal to generate and output the first and second data acquisition timing signals. A timing generation circuit, connected to the fourth external terminal, provided with the first data capture timing signal, captures a serial data signal and converts it into parallel data, or includes a first flag bit; A serial data signal which is a serial data signal with a first flag bit taken in, converted into parallel data with a first flag bit and output A parallel conversion circuit; a first register circuit capable of outputting a first control signal based on set information; a fixed value output circuit capable of outputting a fixed value; and a plurality of signals based on the first control signal. A selector capable of selecting and outputting one signal from the input signal, and when the parallel data is output from the serial-parallel conversion circuit, the selector is connected to the fixed value and the fifth external terminal. The data valid / invalid determination signal is given, the second flag bit having the selected value is added to the parallel data, and the second flag bit parallel data is output, and the first flag bit parallel data is output. Is output based on a flag bit addition circuit for outputting the first flag bit-attached parallel data and the second data fetch timing signal. A parallel data latch circuit that takes in the parallel data with 1 or 2 flag bits, a second register circuit that outputs a second control signal based on the set information, a buffer unit, a buffer data cancel flag generation unit, A data output / discard determination unit that fetches the parallel data with the first or second flag bit from the parallel data latch circuit into the buffer unit, and the buffer data cancel flag generation unit receives the second control signal Based on the given first or second flag bit, it is determined whether or not to set a buffer data cancel flag. When the buffer data cancel flag is set, the data output / discard determination unit The second parallel data with flag bit is discarded and the buffer data can When the cell flag is not set, the data output / discard determination unit includes a data output / discard determination circuit that outputs the first or second parallel data with flag bits.
本発明の一態様によるデータ受信方法は、リクエスト信号生成回路、データ取り込みタイミング生成回路、シリアル・パラレル変換回路、フラグビット付加回路、パラレルデータラッチ回路、バッファ部とバッファデータキャンセルフラグ生成部とデータ出力・破棄判定部とを含むデータ出力・破棄判定回路、データ格納メモリ、第1、第2、第3、第4及び第5の外部端子を有するデータ受信装置を用いるデータ受信方法であって、前記第2及び第3の外部端子を介して与えられたクロック信号及びデータ・ワード境界判別信号から前記データ取り込みタイミング生成回路により第1及び第2のデータ取り込みタイミング信号を生成して出力し、前記リクエスト信号生成回路によりデータ転送要求信号を生成し、前記第1の外部端子を介して出力する場合は、前記第1のデータ取り込みタイミング信号が与えられる前記シリアル・パラレル変換回路により前記第4の外部端子を介してシリアルデータ信号を取り込み、パラレルデータに変換して、出力し、前記リクエスト信号生成回路によりデータ転送要求信号を生成しない場合は、前記第1のデータ取り込みタイミング信号が与えられる前記シリアル・パラレル変換回路により前記第4の外部端子を介して第1のフラグビットを含むシリアルデータ信号である第1のフラグビット付シリアルデータ信号を取り込み、第1のフラグビット付パラレルデータに変換して出力し、前記シリアル・パラレル変換回路が前記パラレルデータを出力する場合は前記フラグビット付加回路により、前記第5の外部端子を介して与えられるデータ有効・無効判定信号の値を第2のフラグビットとして付加し、第2のフラグビット付パラレルデータを出力し、前記第2のデータ取り込みタイミング信号が与えられる前記パラレルデータラッチ回路により前記第1又は第2のフラグビット付パラレルデータを取り込み、前記データ出力・破棄判定回路により前記パラレルデータラッチ回路から前記第1または第2のフラグビット付パラレルデータを前記バッファ部に取り込み、前記バッファデータキャンセルフラグ生成部が前記第1または第2のフラグビットに基づいてバッファデータキャンセルフラグを前記第1または第2のフラグビット付パラレルデータにセットするか否か判定し、前記バッファデータキャンセルフラグをセットする場合は前記データ出力・破棄判定部により前記第1または第2のフラグビット付パラレルデータを破棄し、前記バッファデータキャンセルフラグをセットしない場合は前記データ出力・破棄判定部により前記第1または第2のフラグビット付パラレルデータを出力し、前記データ格納メモリにより前記出力・破棄判定部から出力された前記第1または第2のフラグビット付きパラレルデータを格納することを含むものである。 A data reception method according to an aspect of the present invention includes a request signal generation circuit, a data capture timing generation circuit, a serial / parallel conversion circuit, a flag bit addition circuit, a parallel data latch circuit, a buffer unit, a buffer data cancel flag generation unit, and a data output A data reception method using a data output / discard determination circuit including a discard determination unit, a data storage memory, and a data reception device having first, second, third, fourth, and fifth external terminals, The data fetch timing generation circuit generates and outputs the first and second data fetch timing signals from the clock signal and the data / word boundary determination signal supplied via the second and third external terminals, and the request A data transfer request signal is generated by a signal generation circuit, and the signal is generated via the first external terminal. When outputting, the serial / parallel conversion circuit to which the first data capture timing signal is applied captures a serial data signal via the fourth external terminal, converts it into parallel data, outputs it, and outputs the request When the data transfer request signal is not generated by the signal generation circuit, the serial data including the first flag bit via the fourth external terminal by the serial / parallel conversion circuit to which the first data capture timing signal is applied When a serial data signal with a first flag bit, which is a signal, is taken in, converted into parallel data with a first flag bit and output, and the serial / parallel conversion circuit outputs the parallel data, the flag bit addition circuit The data given through the fifth external terminal The value of the validity / invalidity determination signal is added as a second flag bit, parallel data with a second flag bit is output, and the parallel data latch circuit to which the second data fetch timing signal is applied provides the first or The parallel data with the second flag bit is taken in, the parallel data with the first or second flag bit is taken into the buffer unit from the parallel data latch circuit by the data output / discard judgment circuit, and the buffer data cancel flag generation The unit determines whether to set the buffer data cancel flag to the first or second parallel data with the flag bit based on the first or second flag bit, and sets the buffer data cancel flag. The data output / discard determination unit performs the first control. Alternatively, when the second parallel data with flag bit is discarded and the buffer data cancel flag is not set, the data output / discard determination unit outputs the first or second parallel data with flag bit, and the data Storing the parallel data with the first or second flag bit output from the output / discard determination unit by a storage memory.
本発明によれば、データ送信装置の仕様変更に伴うデータフォーマットの変更に柔軟に対応でき、ハードウェア修正を削減できる。 ADVANTAGE OF THE INVENTION According to this invention, it can respond flexibly to the change of the data format accompanying the specification change of a data transmission apparatus, and can reduce hardware correction.
以下、本発明にかかるデータ受信装置の実施の形態を図面に基づいて説明する。 Embodiments of a data receiving apparatus according to the present invention will be described below with reference to the drawings.
図1に本発明の実施形態に係るデータ受信装置の概略構成を示す。データ受信装置10は、データ転送要求信号を出力するリクエスト信号生成回路17、データを取り込むためのタイミング信号を出力するデータ格納タイミング生成回路18、シリアルデータをパラレルデータに変換するシリアル・パラレル変換回路19、フラグビットを付加するフラグビット付加回路20、フラグビットが付加されたパラレルデータを取り込むパラレルデータラッチ回路21、データ出力・破棄判定回路22、データ格納メモリ23、内部レジスタ24、25、外部端子T1〜T5を備える。
FIG. 1 shows a schematic configuration of a data receiving apparatus according to an embodiment of the present invention. The
まず、このデータ受信装置を用いた5線式インタフェースを介するデータ転送について説明する。データ受信装置10、データ送信装置11はデータ転送要求信号線12、データ・ワード境界判別クロック信号線13、クロック信号線14、データ信号線15、有効・無効データ判定信号線16の5つの信号線からなるシリアルバスを介して接続される。
First, data transfer through a 5-wire interface using this data receiving apparatus will be described. The
リクエスト信号生成回路17は、データ受信装置10がデータ受信可能な状態のときに外部端子T1、データ転送要求信号線12を介してデータ送信装置11へデータ転送要求信号を出力する。データ送信装置11は、図2に示すように、データ転送要求信号が入力されるとデータ・ワード境界判別クロック信号、クロック信号、データ信号、有効・無効データ判定信号を出力する。
The request
各信号はデータ・ワード境界判別クロック信号線13及び外部端子T2、クロック信号線14及び外部端子T3、データ信号線15及び外部端子T4、有効・無効データ判定信号線16及び外部端子T5を介してデータ受信装置10に入力される。データ・ワード境界判別クロック信号はシリアルデータ1ワード毎に値が0から1へ、または1から0へ遷移する。送信されるデータ信号は、有効・無効データ判定信号の値が0のときが無効データ、1のときが有効データとなる。
Each signal passes through the data / word boundary determination
データ受信装置10内でのデータ信号の処理について図3を用いて説明する。データ格納タイミング生成回路18にて生成されたタイミング信号に基づいて、データ送信装置11から出力されたデータ信号(シリアルデータ)1ワード分26がシリアル・パラレル変換回路19に取り込まれ、パラレルデータ27に変換される。パラレルデータ27はフラグビット付加回路20にてフラグビット28が付加される。フラグビット28の値は内部レジスタ24の設定に応じて切替器(マルチプレクサ)34により有効・無効データ判定信号の値または固定値出力回路30の出力値のいずれかが選択される。例えば、内部レジスタ24が0にセットされているときは固定値出力回路30の出力値が選択され、1にセットされているときは有効・無効データ判定信号の値が選択されるようにする。本実施形態では固定値は0とする。内部レジスタ24はユーザにより設定可能である。
Data signal processing in the
フラグビット28が付加されたパラレルデータ(フラグビット付パラレルデータ29)は、データ格納タイミング生成回路18にて生成されたタイミング信号に基づいて、パラレルデータラッチ回路21に格納される。
The parallel data to which the
フラグビット付パラレルデータ29の処理について図4を用いて説明する。データ出力・破棄判定回路22では、フラグビット付パラレルデータ29がデータバッファ31に取り込まれる。ここで、内部レジスタ25がデータバッファ31に取り込んだデータの有効・無効を判定するように設定されていて、かつフラグビット28が無効データを示している(フラグビットの値が0)ときは、キャンセルフラグ生成回路32においてバッファデータキャンセルフラグ33が生成され、セットされる。内部レジスタ25がデータバッファ31に取り込んだデータの有効・無効を判定するように設定されていないとき、又はフラグビット28が有効データを示している(フラグビットの値が1)ときは、バッファデータキャンセルフラグ33は生成されない。
The processing of the
データ出力・破棄判定部34によりバッファデータキャンセルフラグ33がセットされているか否かが判定され、セットされていなければデータバッファ31のデータはデータ格納メモリ23へダブルワード単位で出力され、図5に示すような形式で格納される。バッファデータキャンセルフラグ33がセットされていればデータバッファ31のデータは破棄される。データの破棄は、データを出力せずに、データバッファのポインタ値を進めることで行う。データ出力またはデータ破棄が完了した後、バッファデータキャンセルフラグ33がクリアされる。
The data output /
内部レジスタ25の設定は、例えば、1にセットされているときはデータバッファ31に取り込んだデータの有効・無効を判定し、0にセットされているときは判定しないようにする。内部レジスタ25が0にセットされている場合、バッファデータキャンセルフラグ33が生成されることはないので、データバッファ31に取り込んだデータ29は破棄されることなく、データ格納メモリ23へ出力されることになる。
For example, when the
次に上記実施形態によるデータ受信装置を用いた3線式シリアルインタフェースを介するデータ転送について説明する。データ受信装置の概略構成を図6に示す。データ受信装置10、データ送信装置11はデータ・ワード境界判別クロック信号線13、クロック信号線14、データ信号線15の3つの信号線からなるシリアルバスを介して接続されている。外部端子T1、T5にはバスは接続されず、データ受信装置10はリクエスト信号生成回路17を備えているが、データ転送要求信号の生成、出力はしない。
Next, data transfer via a three-wire serial interface using the data receiving apparatus according to the above embodiment will be described. A schematic configuration of the data receiving apparatus is shown in FIG. The
データ送信装置11は図7に示すようにワードデータ毎にフラグビットを付与してデータを出力する。このフラグビットはデータの有効・無効情報を有するものである。データ受信装置10内でのデータ信号の処理について図8を用いて説明する。データ送信装置11から出力されたデータ部41およびフラグビット部42を有するデータ信号(フラグビット付シリアルデータ)40は、データ格納タイミング生成回路18にて生成されたタイミング信号に基づいて、シリアル・パラレル変換回路19に取り込まれ、フラグビット付パラレルデータ43に変換される。フラグビット付パラレルデータ43はフラグビット付加回路20を通過し、データ格納タイミング生成回路18にて生成されたタイミング信号に基づいて、パラレルデータラッチ回路21に格納される。
As shown in FIG. 7, the
フラグビット付パラレルデータ43の処理について図9を用いて説明する。データ出力・破棄判定回路22では、フラグビット付パラレルデータ43がデータバッファ31に取り込まれる。内部レジスタ25がデータバッファ31に取り込まれたデータ43の有効・無効を判定するよう設定されていて、かつフラグビット42が無効データを示しているときは、キャンセルフラグ生成回路30においてバッファデータキャンセルフラグ33が生成され、セットされる。内部レジスタ25がデータバッファ31に取り込んだデータの有効・無効を判定するように設定されていないとき、又はフラグビット42が有効データを示しているときは、バッファデータキャンセルフラグ33は生成されない。
The processing of the
データ出力・破棄判定部によりバッファデータキャンセルフラグ33がセットされているか否かが判定され、セットされていればデータバッファ31のデータは破棄される。バッファデータキャンセルフラグ33がセットされていなければデータバッファ31のデータはデータ格納メモリ23へダブルワード単位で出力され、図5に示すような5線式シリアルインタフェースでのデータ転送の場合と同様の形式で格納される。データ出力またはデータ破棄が完了した後、バッファデータキャンセルフラグ33がクリアされる。
The data output / discard determination unit determines whether or not the buffer data cancel
5線式シリアルインタフェースを用いたデータ転送でのデータ受信装置と同様の構成のデータ受信装置を用い、シリアル・パラレル変換回路19の出力するデータがフラグビット付加回路20を通過するように設定することで、3線式シリアルインタフェースを介したデータ転送を行うことができる。
Use a data receiving device having the same configuration as the data receiving device for data transfer using a 5-wire serial interface, and set the data output from the serial /
このように本発明の実施形態によるデータ受信装置は、データ送信装置の仕様変更や送信されるデータのフォーマット変更に対して、データ受信装置の大きなハードウェア修正を行わずに柔軟に対応できる。 As described above, the data receiving apparatus according to the embodiment of the present invention can flexibly cope with a change in the specification of the data transmitting apparatus and a change in the format of the data to be transmitted without performing a large hardware correction of the data receiving apparatus.
上述した実施形態は一例であって制限的なものではないと考えられるべきである。例えば、上記実施形態ではデータの有効・無効を判定はフラグビットのうち下位1ビットで行っていたが、2ビット以上にしてもよい。また、3線式シリアルインタフェースでのデータ転送を行う場合、図10に示すように、シリアル・パラレル変換回路の出力データがフラグビット付加回路を通過することなく、パラレルデータラッチ回路に直接入力されるような構成にしてもよい。また、データ格納メモリへのデータ転送はダブルワード単位でなくてもよい。 The above-described embodiments are examples and should not be considered as limiting. For example, in the above-described embodiment, the validity / invalidity of data is determined by the lower 1 bit of the flag bits, but may be 2 bits or more. Further, when data transfer is performed using a 3-wire serial interface, as shown in FIG. 10, the output data of the serial / parallel conversion circuit is directly input to the parallel data latch circuit without passing through the flag bit addition circuit. Such a configuration may be adopted. Further, data transfer to the data storage memory may not be performed in units of double words.
上記実施形態によるデータ受信装置は、シリアル転送される様々なデータの受信に用いることができ、例えばオーディオデータの転送に使用できる。この場合、データ・ワード境界判別信号はLチャンネル信号とRチャンネル信号を識別するための信号となる。本発明の技術的範囲は特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。 The data receiving apparatus according to the above embodiment can be used for receiving various data transferred serially, and can be used for transferring audio data, for example. In this case, the data / word boundary determination signal is a signal for identifying the L channel signal and the R channel signal. The technical scope of the present invention is defined by the terms of the claims, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims.
10 データ受信装置
11 データ送信装置
12 データ転送要求信号線
13 データ・ワード境界判別クロック信号線
14 クロック信号線
15 データ信号線
16 データ転送開始信号線
17 リクエスト信号生成回路
18 データ格納タイミング生成回路
19 シリアル・パラレル変換回路
20 フラグビット付加回路
21 パラレルデータラッチ回路
22 データ出力・破棄判定回路
23 データ格納メモリ
24、25 内部レジスタ
30 キャンセルフラグ生成回路
31 データバッファ
DESCRIPTION OF
Claims (5)
前記第1の外部端子に接続され、データ転送要求信号を出力可能なリクエスト信号生成回路と、
前記第2及び第3の外部端子に接続され、クロック信号及びデータ・ワード境界判別信号が与えられて第1及び第2のデータ取り込みタイミング信号を生成し、出力するデータ取り込みタイミング生成回路と、
前記第4の外部端子に接続され、前記第1のデータ取り込みタイミング信号が与えられて、シリアルデータ信号を取り込みパラレルデータに変換して出力する、又は第1のフラグビットを含むシリアルデータ信号である第1のフラグビット付シリアルデータ信号を取り込み第1のフラグビット付パラレルデータに変換して出力するシリアル・パラレル変換回路と、
前記シリアル・パラレル変換回路から前記パラレルデータが出力される場合は前記第5の外部端子を介してデータ有効・無効判定信号を与えられて第2のフラグビットとして付加し、第2のフラグビット付パラレルデータを出力し、前記第1のフラグビット付パラレルデータが出力される場合は前記第1のフラグビット付パラレルデータを出力するフラグビット付加回路と、
前記第2のデータ取り込みタイミング信号に基づいて前記第1又は第2のフラグビット付パラレルデータを取り込むパラレルデータラッチ回路と、
前記パラレルデータラッチ回路から前記第1又は第2のフラグビット付パラレルデータを取り込み、前記第1又は第2のフラグビットの値に基づき前記第1又は第2のフラグビット付パラレルデータを出力または破棄するデータ出力・破棄判定回路と、
を備えることを特徴とするデータ受信装置。 First, second, third, fourth and fifth external terminals;
A request signal generation circuit connected to the first external terminal and capable of outputting a data transfer request signal;
A data capture timing generation circuit connected to the second and third external terminals, and supplied with a clock signal and a data / word boundary determination signal to generate and output first and second data capture timing signals;
A serial data signal connected to the fourth external terminal and provided with the first data capture timing signal to capture the serial data signal and convert it into parallel data, or includes a first flag bit A serial-parallel conversion circuit that takes in a serial data signal with a first flag bit, converts it into parallel data with a first flag bit, and outputs it;
When the parallel data is output from the serial / parallel conversion circuit, a data valid / invalid determination signal is given via the fifth external terminal and added as a second flag bit, with a second flag bit. A flag bit adding circuit that outputs parallel data and outputs the first flag bit parallel data when the first flag bit parallel data is output;
A parallel data latch circuit for fetching the parallel data with the first or second flag bit based on the second data fetch timing signal;
The parallel data with the first or second flag bit is fetched from the parallel data latch circuit, and the parallel data with the first or second flag bit is output or discarded based on the value of the first or second flag bit. Data output / discard judgment circuit
A data receiving apparatus comprising:
前記第1の外部端子に接続され、データ転送要求信号を出力可能なリクエスト信号生成回路と、
前記第2及び第3の外部端子に接続され、クロック信号及びデータ・ワード境界判別信号が与えられて第1及び第2のデータ取り込みタイミング信号を生成し、出力するデータ取り込みタイミング生成回路と、
前記第4の外部端子に接続され、前記第1のデータ取り込みタイミング信号が与えられて、シリアルデータ信号を取り込みパラレルデータに変換して出力する、又は第1のフラグビットを含むシリアルデータ信号である第1のフラグビット付シリアルデータ信号を取り込み第1のフラグビット付パラレルデータに変換して出力するシリアル・パラレル変換回路と、
セットされた情報に基づいて第1の制御信号を出力可能な第1のレジスタ回路と、
固定値を出力可能な固定値出力回路と前記第1の制御信号に基づいて複数の入力信号から1つの信号を選択し出力できる選択器とを有し、前記シリアル・パラレル変換回路から前記パラレルデータが出力される場合は前記選択器に前記固定値及び前記第5の外部端子を介してデータ有効・無効判定信号が与えられ、選択された値である第2のフラグビットを前記パラレルデータに付加し第2のフラグビット付パラレルデータを出力し、前記第1のフラグビット付パラレルデータが出力される場合は前記第1のフラグビット付パラレルデータを出力するフラグビット付加回路と、
前記第2のデータ取り込みタイミング信号に基づいて前記第1又は第2のフラグビット付パラレルデータを取り込むパラレルデータラッチ回路と、
セットされた情報に基づいて第2の制御信号を出力する第2のレジスタ回路と、
バッファ部、バッファデータキャンセルフラグ生成部及びデータ出力・破棄判定部を有し、前記パラレルデータラッチ回路から前記第1又は第2のフラグビット付パラレルデータを前記バッファ部に取り込み、前記バッファデータキャンセルフラグ生成部は前記第2の制御信号が与えられ前記第1又は第2のフラグビットに基づいてバッファデータキャンセルフラグをセットするか否か判定し、前記バッファデータキャンセルフラグがセットされた場合は前記データ出力・破棄判定部が前記第1又は第2のフラグビット付パラレルデータを破棄し、前記バッファデータキャンセルフラグがセットされない場合は前記データ出力・破棄判定部が前記第1又は第2のフラグビット付パラレルデータを出力するデータ出力・破棄判定回路と、
を備えることを特徴とするデータ受信装置。 First, second, third, fourth and fifth external terminals;
A request signal generation circuit connected to the first external terminal and capable of outputting a data transfer request signal;
A data capture timing generation circuit connected to the second and third external terminals, and supplied with a clock signal and a data / word boundary determination signal to generate and output first and second data capture timing signals;
A serial data signal connected to the fourth external terminal and provided with the first data capture timing signal to capture the serial data signal and convert it into parallel data for output, or includes a first flag bit A serial-parallel conversion circuit that takes in a serial data signal with a first flag bit, converts it into parallel data with a first flag bit, and outputs it;
A first register circuit capable of outputting a first control signal based on the set information;
A fixed value output circuit capable of outputting a fixed value; and a selector capable of selecting and outputting one signal from a plurality of input signals based on the first control signal, and the parallel data from the serial / parallel conversion circuit. Is output to the selector via the fixed value and the fifth external terminal, and a second flag bit, which is the selected value, is added to the parallel data. A flag bit adding circuit for outputting the second flag bit parallel data, and outputting the first flag bit parallel data when the first flag bit parallel data is output;
A parallel data latch circuit for fetching the parallel data with the first or second flag bit based on the second data fetch timing signal;
A second register circuit for outputting a second control signal based on the set information;
A buffer unit, a buffer data cancel flag generation unit, and a data output / discard determination unit; fetch the parallel data with the first or second flag bit from the parallel data latch circuit into the buffer unit; The generation unit determines whether or not to set a buffer data cancel flag based on the first or second flag bit when the second control signal is given, and when the buffer data cancel flag is set, the data When the output / discard determination unit discards the parallel data with the first or second flag bit and the buffer data cancel flag is not set, the data output / discard determination unit adds the first or second flag bit. A data output / discard determination circuit for outputting parallel data;
A data receiving apparatus comprising:
前記第1又は第2のフラグビット付パラレルデータはダブルワード単位で前記データ格納メモリに格納されることを特徴とする請求項1または2に記載のデータ受信装置。 A data storage memory for storing the parallel data with the first or second flag bit output from the data output / discard determination circuit;
3. The data receiving apparatus according to claim 1, wherein the first or second parallel data with flag bits is stored in the data storage memory in units of double words.
前記第2及び第3の外部端子を介して与えられたクロック信号及びデータ・ワード境界判別信号から前記データ取り込みタイミング生成回路により第1及び第2のデータ取り込みタイミング信号を生成して出力し、
前記リクエスト信号生成回路によりデータ転送要求信号を生成し、前記第1の外部端子を介して出力する場合は、前記第1のデータ取り込みタイミング信号が与えられる前記シリアル・パラレル変換回路により前記第4の外部端子を介してシリアルデータ信号を取り込み、パラレルデータに変換して、出力し、前記リクエスト信号生成回路によりデータ転送要求信号を生成しない場合は、前記第1のデータ取り込みタイミング信号が与えられる前記シリアル・パラレル変換回路により前記第4の外部端子を介して第1のフラグビットを含むシリアルデータ信号である第1のフラグビット付シリアルデータ信号を取り込み、第1のフラグビット付パラレルデータに変換して出力し、
前記シリアル・パラレル変換回路が前記パラレルデータを出力する場合は前記フラグビット付加回路により、前記第5の外部端子を介して与えられるデータ有効・無効判定信号の値を第2のフラグビットとして付加し、第2のフラグビット付パラレルデータを出力し、
前記第2のデータ取り込みタイミング信号が与えられる前記パラレルデータラッチ回路により前記第1又は第2のフラグビット付パラレルデータを取り込み、
前記データ出力・破棄判定回路により前記パラレルデータラッチ回路から前記第1または第2のフラグビット付パラレルデータを前記バッファ部に取り込み、前記バッファデータキャンセルフラグ生成部が前記第1または第2のフラグビットに基づいてバッファデータキャンセルフラグを前記第1または第2のフラグビット付パラレルデータにセットするか否か判定し、前記バッファデータキャンセルフラグをセットする場合は前記データ出力・破棄判定部により前記第1または第2のフラグビット付パラレルデータを破棄し、前記バッファデータキャンセルフラグをセットしない場合は前記データ出力・破棄判定部により前記第1または第2のフラグビット付パラレルデータを出力し、
前記データ格納メモリにより前記出力・破棄判定部から出力された前記第1または第2のフラグビット付きパラレルデータを格納する
ことを含むことを特徴とするデータ受信方法。 Data output / discard including request signal generation circuit, data fetch timing generation circuit, serial / parallel conversion circuit, flag bit addition circuit, parallel data latch circuit, buffer unit, buffer data cancel flag generation unit and data output / discard determination unit A data receiving method using a data receiving device having a determination circuit, a data storage memory, first, second, third, fourth and fifth external terminals,
Generating and outputting first and second data capture timing signals by the data capture timing generation circuit from the clock signal and the data / word boundary determination signal applied via the second and third external terminals;
When the data transfer request signal is generated by the request signal generation circuit and is output through the first external terminal, the fourth parallel circuit is supplied with the first data capture timing signal. When the serial data signal is taken in via an external terminal, converted into parallel data and output, and when the data transfer request signal is not generated by the request signal generation circuit, the serial data to which the first data acquisition timing signal is given A first serial data signal with a flag bit, which is a serial data signal including a first flag bit, is captured by the parallel conversion circuit via the fourth external terminal, and converted into parallel data with the first flag bit. Output,
When the serial / parallel conversion circuit outputs the parallel data, the flag bit adding circuit adds the value of the data validity / invalidity determination signal given through the fifth external terminal as the second flag bit. , Output the parallel data with the second flag bit,
The parallel data latch circuit to which the second data capture timing signal is applied captures the parallel data with the first or second flag bit,
The data output / discard determination circuit fetches the parallel data with the first or second flag bit from the parallel data latch circuit into the buffer unit, and the buffer data cancel flag generation unit generates the first or second flag bit. Whether or not to set the buffer data cancel flag to the first or second parallel data with flag bits, and when the buffer data cancel flag is set, the data output / discard determination unit performs the first Alternatively, when the second flag bit parallel data is discarded and the buffer data cancel flag is not set, the first or second flag bit parallel data is output by the data output / discard determination unit,
Storing the first or second parallel data with flag bits output from the output / discard determination unit by the data storage memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006158827A JP2007329670A (en) | 2006-06-07 | 2006-06-07 | Data receiving device and data receiving method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006158827A JP2007329670A (en) | 2006-06-07 | 2006-06-07 | Data receiving device and data receiving method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2007329670A true JP2007329670A (en) | 2007-12-20 |
Family
ID=38929851
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006158827A Pending JP2007329670A (en) | 2006-06-07 | 2006-06-07 | Data receiving device and data receiving method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2007329670A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013012810A (en) * | 2011-06-28 | 2013-01-17 | Anritsu Corp | Packet relay device and packet relay method |
-
2006
- 2006-06-07 JP JP2006158827A patent/JP2007329670A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013012810A (en) * | 2011-06-28 | 2013-01-17 | Anritsu Corp | Packet relay device and packet relay method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101599053B (en) | Serial interface controller supporting multiple transport protocols and control method | |
US9201839B2 (en) | Information processing apparatus, communication method and storage medium | |
KR20020032350A (en) | Serial/parallel conversion circuit, data transfer control device and electronic equipment | |
JP5365132B2 (en) | Serial signal receiver, serial transmission system, serial transmission method, serial signal transmitter | |
JP4917901B2 (en) | Receiver | |
CN106933767B (en) | Comma detection and word alignment method and system suitable for JESD204B protocol | |
JP4336860B2 (en) | Serial interface circuit and serial receiver | |
JP2009094891A (en) | Semiconductor integrated circuit device and pattern detection method | |
US8510485B2 (en) | Low power digital interface | |
US9727306B2 (en) | Bi-synchronous electronic device with burst indicator and related methods | |
JP4012907B2 (en) | Asynchronous transmission method and circuit thereof | |
JP2007329670A (en) | Data receiving device and data receiving method | |
JP5111020B2 (en) | Image processing apparatus and control method thereof | |
JP2009009289A (en) | Semiconductor memory device | |
CN115103291B (en) | FIFO cache control method, device and system | |
KR101110114B1 (en) | Method and circuit for synchronization, and data synchronization apparatus having the same | |
JP4826403B2 (en) | Synchronization circuit | |
JP4879846B2 (en) | FRAME SYNCHRONIZATION DATA TRANSFER METHOD, TRANSMITTER DEVICE AND RECEPTION DEVICE | |
CN114564441B (en) | System on chip, data processing method and computer equipment | |
JP2005050153A (en) | Method of clock synchronized serial data transfer | |
JP5126981B2 (en) | Data transmission method and system | |
JP6243210B2 (en) | Serial data transmission device, serial data reception device, serial data transmission method, and serial data transmission program | |
JP4045911B2 (en) | Power line communication connection circuit | |
JP3882300B2 (en) | Serial data holding circuit | |
JP2008186185A (en) | Serial data transmission method and system therefor |