JP4290818B2 - Bit transfer additional data high-speed transfer circuit - Google Patents

Bit transfer additional data high-speed transfer circuit Download PDF

Info

Publication number
JP4290818B2
JP4290818B2 JP25119599A JP25119599A JP4290818B2 JP 4290818 B2 JP4290818 B2 JP 4290818B2 JP 25119599 A JP25119599 A JP 25119599A JP 25119599 A JP25119599 A JP 25119599A JP 4290818 B2 JP4290818 B2 JP 4290818B2
Authority
JP
Japan
Prior art keywords
data
memory
bit operation
read
bit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP25119599A
Other languages
Japanese (ja)
Other versions
JP2001077702A (en
Inventor
宏法 加後
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Engineering Ltd
Original Assignee
NEC Engineering Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP25119599A priority Critical patent/JP4290818B2/en
Publication of JP2001077702A publication Critical patent/JP2001077702A/en
Application granted granted Critical
Publication of JP4290818B2 publication Critical patent/JP4290818B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Detection And Correction Of Errors (AREA)
  • Error Detection And Correction (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、転送すべきデータにビット演算した付加データをその転送データに付加して転送するデータ転送回路に関し、特にPDCやPHS方式の電話機,その他の無線装置に用いられるデータ転送回路に関する。
【0002】
【従来の技術】
このようなデータの転送は、一般的にデータレートでリタイミングして転送フレームに同期して転送されるものではあるが、近年、このリタイミングの回数を少なくして、より高速にCRC等のビット演算を付加したデータ転送をすることが要求されている。
【0003】
CRCビットを含んだデータ転送の一般的な例は、特開平7−283757号公報に開示されている様に、予めCRC演算を行い、CRCビットを付加したデータを一時データバッファに格納し、送信要求に合わせてデータを転送するものである。これを、図7に示しておく。
【0004】
【発明が解決しようとする課題】
このような従来のデータ転送回路では、予めデータをバッファに格納しているため、データを送出するまでの待ち時間が多くかかり、データ転送を高速に行うことができない。また、当該回路ではマイクを通してデータ化された音声データの単一チャネルの転送回路を示すものであるが、仮に複数チャネルを多重転送しようとすると、通常は、CRC演算器とデータバッファ等からなる転送処理全体をパラレルに構成しなければならない。そのため、データ転送回路の回路規模が大きくなるという問題もある。
【0005】
そこで、本発明では、送信用データにCRC等のビット演算を付加したデータを転送するようなデータ転送回路であっても高速転送を可能とし、かつ小規模の回路で実現しうることを目的とする。
【0006】
【課題を解決するための手段】
本発明によると、転送すべきデータの前に、当該データをビット演算することにより生成されたビット演算データを付加したデータを転送するデータ転送回路において、前記転送すべきデータを格納するメモリと、前記メモリに格納された同一データに対し少なくとも2回の読出信号を与える制御部と、前記メモリから読み出されたデータを入力とし、当該データをビット演算することによりビット演算データを生成し出力するビット演算器と、前記ビット演算器の出力と前記メモリから読み出されたデータを入力とし、前記制御部が出力するタイミングによりビット演算データ又は前記メモリから読み出したデータの何れか一つを選択し出力するセレクタとを備え、前記制御部は、1回目のメモリ読み出しデータをビット演算したビット演算データが前記セレクタに入力されている間は当該ビット演算データが出力されるように前記セレクタに制御信号を与え、前記1回目に読み出されたデータをビット演算することで生成されたビット演算データの全ての転送が完了しこれに連続して当該2回目に読み出したデータが前記セレクタから出力されるタイミングで前記2回目の読出信号を前記メモリに出力することを特徴とするデータ転送回路を得ることができる。
【0007】
また、前記制御部は、開始タイミングの入力によりカウント動作を開始し前記読出信号のタイミング及びメモリアクセスの回数を制御する第1のカウンタと、第1のカウンタが所定の値を保持する間カウントアップを続けメモリアクセスに必要なアドレス信号を出力する第2のカウンタと、第1のカウンタ及び第2のカウンタの出力をデコードし各回路に制御信号を出力するデコーダとで構成することができる。
【0008】
また、転送すべきデータが2チャネルで構成され、第1のチャネルのデータの前に当該データをビット演算することにより生成された第1のビット演算データを付加したデータを転送した後、続けて第2のチャネルのデータの後ろに当該データをビット演算することにより生成された第2のビット演算データを付加したデータを転送するデータ転送回路において、前記第1のチャネルのデータを格納する第1のメモリと、前記第2のチャネルのデータを格納する第2のメモリと、前記第1のメモリに格納された同一データに対し連続して2回の読出信号を与え、メモリアクセスの終了後これに連続して第2のメモリに対し読出信号を与える制御部と、前記第1及び第2のメモリから読み出されたデータをビット演算することによりビット演算データを生成し出力するビット演算器と、前記ビット演算器の出力と前記第1及び第2のメモリから読み出されたデータを入力とし前記制御部が出力するタイミングにより、前記第1のチャネルのデータ、第2のチャネルのデータ、前記第1のビット演算データ、又は前記第2のビット演算データのいずかれ一つを選択し出力するセレクタとを備え、前記制御部は、前記第1のメモリに対し1回目に読み出した第1のチャネルのデータをビット演算することにより生成された第1のビット演算データと、前記第2のメモリから読み出した第2のチャネルのデータをビット演算することにより生成された第2のビット演算データが前記セレクタに入力されている間は当該第1及び第2のビット演算データが出力されるように前記セレクタに制御信号を与え、前記1回目に読み出されたデータをビット演算することで生成された第1のビット演算データの全ての転送が完了しこれに連続して第1のメモリから2回目に読み出されたデータが前記セレクタから出力されるタイミングで2回目の読出信号を第1のメモリに出力することを特徴とするデータ転送回路を得ることもできる。
【0009】
更に、前記1回目に読み出したデータをビット演算することにより生成されたビット演算データがセレクタから出力されるタイミングが、データ転送のフレームタイミングに一致するように前記1回目の読出信号を制御部が出力することで送信フレームに同期したデータ転送回路を得ることもできる。
【0010】
【発明の実施の形態】
以下、本発明に係るデータ転送回路の一実施の形態につき図面を参照しながら説明する。図1は、本実施の形態の構成を示すブロック図である。図1を参照すると、データ転送回路は、演算データを転送データの先頭に付加するために、転送データを一時的に格納するメモリ2を有している。制御部1は、データ転送回路の全体制御を司り、メモリから転送すべきデータの読み出し回数等の制御の他にセレクタ5の出力データを選択する等の機能を有する。P/S変換回路3は、メモリ2とCRC演算器4との間に設けられ、メモリ2から出力されたパラレルデータをシリアルデータに変換する。CRC演算器4は、P/S変換回路3から出力されたデータにCRC演算を施し、演算の結果得られたCRCデータをセレクタ5に出力する。セレクタ5は、制御部1の制御に従い、データ(P/S変換回路3の出力データ)か、CRCビット(CRC演算器4の出力データ)かを選択し出力する。
【0011】
図2は、本発明の実施の形態における制御部1の構成例を示すブロック図である。図2において、制御部1は、カウンタ1a、カウンタ1b及びデコーダ1cから構成される。カウンタ1aは、メモリアクセスのタイミングと回数を制御するためのもので、開始タイミングの入力をうけてカウント動作を開始する。カウンタ1bは、メモリアクセスの回数毎のアクセス期間を制御するためのもので、カウンタ1aの変化に従属しカウントアップあるいはリセットがされない限りカウントアップを続ける。デコーダ1cは、メモリ2、P/S変換回路3、CRC演算器4及びセレクタ5に動作タイミングを出力する機能を果たすもので、カウンタ1a及びカウンタ1bの出力をデコードすることで各種の制御信号を出力する。デコーダ1cには、予めシステムで定義された制御情報が与えられ又は上位部からその都度与えられることにより、連続転送に必要な制御信号が出力される。
【0012】
次に、図1のデータ転送回路の動作について、図3に示すタイムチャートを参照しながら説明する。
【0013】
図3に示すタイムチャートでは、転送データにCRC演算を施し、演算されたCRCビットを転送データの前に付加したデータを転送する場合の動作を示す。本発明においては、ビット演算データを付加した1フレームを転送する際において、転送動作を高速かつ連続して行うことを可能とするため、メモリ2に格納された同一データに対して2回のメモリアクセスを行い、1回目のメモリアクセスをCRC演算用、2回目のメモリアクセスをデータ転送用とすることを特徴としている。
【0014】
これら2回に渡るメモリアクセスの開始からデータ転送が完了するまでの期間を1サイクルとし、開始タイミングの入力を受けて動作を開始するカウンタ1aのカウント値「0」から「2」までの期間が当該1サイクルに相当する。そして、1サイクルが終了すると、カウンタ1aのカウント値は「0」にリセットされ、以下同様の動作を繰り返す。カウンタ1aに連動するカウンタ1bは、カウンタ1aのカウント値の変化によりカウントアップを開始し、次にカウンタ1aが変化するまでカウントアップを続ける。
【0015】
まず、1回目のメモリアクセスでは、開始タイミングをトリガとしてカウンタ1aは所定期間「0」を保持する。一方、カウンタ1bは、0からnまでカウントアップを続ける。デコーダ1cは、カウンタ1a及びカウンタ1bのカウント値をデコードしメモリ2にアドレス信号を出力することで1回目のデータ読み出しが行われ(図中のDATA READ 1)、P/S変換回路3を介してCRC演算器4にてクロック単位で演算処理が行われCRCデータが生成される。
【0016】
ここで、1回目のメモリアクセスに着目すると、カウンタ1aが「0」の値を示す期間の途中で転送データの読み出しが完了していることが分かる。すなわち、転送対象のデータ読み出しに際して付加期間が設けられているのであるが、これは、読み出したデータにCRC演算を施し、生成されたCRCデータの転送に連続して2回目のメモリアクセスにより読み出したデータの転送を連続して開始できるように、当該期間をメモリアクセスに必要な時間よりも余分に設けているものである。
【0017】
2回目のメモリアクセスは、カウンタ1aのカウント値が「1」の期間に相当し、今までカウントアップを続けていたカウンタ1bは、それまでの値をリセットし0から再度カウントアップを行う。デコーダ1cは、両カウンタの出力をデコードし前述と同様に同一データに対し2回目の読み出しを行う。そして、2回目に読み出された該データは、予めタイミング調整された付加期間により、CRCデータの最後尾ビットに連続して転送が開始される。カウンタ1bのカウント値が「m」まで終了すると、2回目のメモリアクセスが終了することになる。
【0018】
2回目のメモリアクセスが完了すると、カウンタ1aのカウント値は「2」にカウントアップされる。当該期間は、メモリアクセスの完了からデータの転送との遅延時間を補完するために設けたものである。
【0019】
なお、上記の付加期間及び遅延時間を補完するために設けた期間においても、各カウンタのカウント値がデコーダに1cに出力されることとなるが、デコーダ1cに当該カウント値の組み合わせが入力された場合、メモリアクセスを無効とするか、あるいは読み出したデータの転送を禁止する制御信号をセレクタ5に出力することで不要なデータ転送を回避できる。
【0020】
次に、本発明の第2の実施の形態について図面を参照して詳細に説明する。本発明の実施形態としては前述の第1の実施形態がその基本的構成をなすが、以下に示すデータ転送回路においては、2チャンネル(以下、CHという)のデータを多重送信するものである。
【0021】
図4を参照すると、このデータ転送回路は、制御部1による制御の下、CODECによって符号化された音声データとCPUから出力された制御データの2CHを、各々専用のメモリ2a、2bに一時格納し、CRC演算したCRCビットを付加してセレクタ5から出力するものである。
【0022】
次に、データ転送回路を構成する各ブロックについて簡単に説明する。制御部1は、CPUから受け取った制御情報を基に動作タイミング等を決定する制御信号を各回路ブロックに出力する。
【0023】
CPUは、制御部1に制御情報を出力する他、多重CHの一方である制御データを有し、後段の制御データ用メモリ2bに出力する。CPUは、制御データ用メモリ2aへの格納と、CHの基本制御を行う。
【0024】
音声データ用メモリ2aと制御データ用メモリ2bとで構成されるメモリ部は、夫々音声データと制御データを格納するメモリであって、セレクタ2cに並列に接続されている。メモリの読み出しは、後述する制御部1のカウンタの値に応じて動作が行われる。
【0025】
セレクタ2cは、メモリ2a、2bから読み出されたデータを制御部1の制御に従って選択し、後段のP/S変換回路3に出力する。
【0026】
P/S変換回路3、CRC演算器4、及びセレクタ5の機能及び接続関係については、先の実施形態と同様であるが、転送すべきデータが多重CHであることとこれらを演算したCRCビットを付加した多重データを生成するため、主に各部の動作タイミングの点で先の実施形態と異なる。
【0027】
図5に図4の制御部1の構成を示す。制御部1は、先に示した実施形態と同様、カウンタ1a、カウンタ1b及びデコーダ1cを有し、多重CHの制御に対応するためにセレクタ1dを備える。カウンタ1aとカウンタ1bは、CPUから出力される開始タイミングでカウント動作を開始する。デコーダ1cは、カウンタ1a及び1bのカウント値を各ブロックの動作タイミングに合わせてデコードしている。セレクタ1dでは、CHの種類,レート等により各ブロックの動作タイミングが異なる為に、これによりデコーダ1dのデコード値をセレクトしている。この出力が、各ブロックを制御する制御信号となる。
【0028】
次に、図4のデータ転送回路の動作について、図6に示すタイムチャートを参照しながら説明する。
【0029】
図6に示すタイムチャートでは、音声データをCRC演算したCRCデータを音声データの前に付加し、次に制御データをCRC演算したCRCデータを制御データの後ろに付加して転送する場合のタイミングを示している。当該実施の形態においては、メモリ部に対するメモリアクセスを3回行う。すなわち、音声データについては、CRC演算したCRCデータを音声データの前に付加するため音声データ用メモリに対し2回のメモリアクセスを行い、制御データについては、CRCデータを制御データの後ろに付加するため制御データ用メモリに対し1回のメモリアクセスを行っている。
【0030】
これら3回に渡るメモリアクセスの開始からデータ転送が完了するまでの期間を1サイクルとし、開始タイミングの入力を受けて動作を開始するカウンタ1aのカウント値「0」から「2」までの期間が当該1サイクルに相当する。そして、1サイクルが終了すると、カウンタ1aのカウント値は「0」にリセットされ、以下同様の動作を繰り返す。カウンタ1bは、カウンタ1aのカウント値の変化によりカウントアップを開始し、次にカウンタ1aが変化するまでカウントアップを続ける。
【0031】
まず、1回目のメモリアクセスでは、音声データ用メモリに対するものであって、開始タイミングをトリガとしてカウンタ1aは所定期間「0」を保持する。一方、カウンタ1bは、0からnまでカウントアップを続ける。デコーダ1cは、カウンタ1a及びカウンタ1bのカウント値をデコードしメモリ2にアドレス信号を出力することで1回目のデータ読み出しが行われ(図中の音声DATA READ 1)、P/S変換回路3を介してCRC演算器4にてクロック単位で演算処理が行われCRCデータが生成される。カウンタ1aが「0」の値を示す期間の設定については、第一の実施形態と同様な基準により定める。
【0032】
また、2回目のメモリアクセスについても、第一の実施形態と同様の動作を行い、カウンタ1aが「1」を示す期間の設定についても、カウンタ1aのカウント値が「1」の期間に相当し、今までカウントアップを続けていたカウンタ1bは、それまでの値をリセットし0から再度カウントアップを行う。デコーダ1cは、両カウンタの出力をデコードし前述と同様に同一データに対する2回目のメモリアクセスを行う(図中の音声DATA READ2)。そして、当該データは、前記した1回目のメモリアクセスに連続転送に必要とされる付加期間が設けられているため、CRCデータの最後尾ビットに連続して転送が開始される。カウンタ1bのカウント値が「m」まで終了すると、2回目のメモリアクセスが終了することになる。このカウント値「m」は、音声データの読み出し期間と一致する。
【0033】
音声データのメモリアクセスが終了すると、カウンタ1aのカウント値は「2」にカウントアップされ、3回目のメモリアクセスとして音声データに連続して制御データ用メモリ2bから制御データの読み出しが行われる(図中の制御DATA READ1)。3回目のメモリアクセスでは、制御データの転送と同時に制御データに対するCRC演算を行うので、データ転送終了後、続けて当該CRCデータの転送を行うことができる。
【0034】
3回目のメモリアクセスが完了すると、当該期間は、データの読み出し完了からデータ転送との遅延時間を補完するためにカウンタ1aのカウント値は「3」にカウントアップされ所定期間の経過後にカウンタ1aのカウントは「0」にリセットされ、メモリアクセスからデータ転送に至る1サイクルが終了する。
【0035】
また、CPUでは、指定する開始タイミングをCRC演算処理に要する処理時間分早めているので、フレームタイミングに同期したデータ転送を実現することができる。この時の処理遅延時間は、転送するCHの種類によって決まっているので、本回路がCPUに対して予めこの時間を通知している。
【0036】
以上により、本実施の形態によると、多チャンネルを1つのフレーム内で切れ目なく転送出来るという効果が得られる。
【0037】
また、上記実施の形態においては、CRC演算器を例に説明したが、特にCRC演算器に限定する必要はなく、データ転送に際して転送データに対して演算した演算データを転送データの前に付加する転送回路の全てに適用できるため、他のビット演算器としても良い。また、ビット演算方方法の異なるデータを取り扱う場合は、このビット演算器だけをパラレルに構成するだけで対応することができる。更に、多チャンネルを1フレーム内に転送する場合では、カウンタ1aのカウント値を上げる設定を追加することで可能とする。
【0038】
【発明の効果】
上記各形態では、フレームに跨る事のないデータ転送という作用・効果をカウンタの制御を用いて得られ、本発明の目的が達成される。
【0039】
しかも、本形態では、CPU制御によりフレームタイミングを場合ごとに必要な時間の分だけ前倒ししているので、フレームに同期したデータを転送できるという相乗的な効果を奏する。
【0040】
以上説明したように、本発明によれば、ビット演算付加データのカウンタによる制御という基本構成に基づき高速化を実現したデータ転送回路を提供することができる。また、データの多重度をあげる場合、回路構成上、パラレルに構成する部分を必要最小限としたため、回路の簡略化を図ることができる。
【図面の簡単な説明】
【図1】本発明を適用した第一の実施の形態に係るデータ転送回路のブロック図。
【図2】第一の実施の形態に係るデータ転送回路の制御部の構成図。
【図3】第一の実施の形態に係るデータ転送回路の動作を示すタイミングチャート。
【図4】本発明を適用した第二の実施の形態に係るデータ転送回路のブロック図。
【図5】第二の実施の形態に係るデータ転送回路の制御部の構成図。
【図6】第二の実施の形態に係るデータ転送回路の動作を示すタイミングチャート。
【図7】従来におけるデータ転送回路のブロック図。
【符号の説明】
1 制御部
1a カウンタ
1b カウンタ
1c デコーダ
1d セレクタ
2 メモリ
2a 音声データ用メモリ
2b 制御データ用メモリ
2c セレクタ
3 P/S変換回路
4 CRC演算器
5 セレクタ
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a data transfer circuit that adds additional data obtained by bit operation to data to be transferred and transfers the additional data to the transfer data, and more particularly to a data transfer circuit used in a PDC or PHS telephone or other wireless device.
[0002]
[Prior art]
Such data transfer is generally retimed at a data rate and transferred in synchronization with a transfer frame. However, in recent years, the number of retiming has been reduced, and CRC or the like can be performed at a higher speed. Data transfer with bit operation added is required.
[0003]
As a general example of data transfer including CRC bits, as disclosed in Japanese Patent Laid-Open No. 7-283757, a CRC calculation is performed in advance, and data with the CRC bits added is stored in a temporary data buffer and transmitted. Data is transferred according to the request. This is shown in FIG.
[0004]
[Problems to be solved by the invention]
In such a conventional data transfer circuit, since data is stored in the buffer in advance, a long waiting time is required until the data is transmitted, and data transfer cannot be performed at high speed. In addition, this circuit shows a single-channel transfer circuit for audio data converted into data through a microphone. However, if multiple channels are to be multiplexed and transferred, the transfer usually consists of a CRC calculator and a data buffer, etc. The entire process must be configured in parallel. Therefore, there is a problem that the circuit scale of the data transfer circuit becomes large.
[0005]
Therefore, the present invention aims to enable high-speed transfer even with a data transfer circuit that transfers data in which bit operations such as CRC are added to transmission data, and can be realized with a small circuit. To do.
[0006]
[Means for Solving the Problems]
According to the present invention, in a data transfer circuit for transferring data to which bit operation data generated by performing bit operation on the data is transferred before data to be transferred, a memory for storing the data to be transferred; A control unit that gives a read signal at least twice to the same data stored in the memory, and data read from the memory as inputs, and bit operation data is generated and output by performing bit operations on the data. The bit arithmetic unit, the output of the bit arithmetic unit and the data read from the memory are input, and either one of the bit arithmetic data or the data read from the memory is selected according to the timing output by the control unit. A selector that outputs the bit, and the control unit performs a bit operation by performing bit operation on the first memory read data. Bit operation data generated by applying a control signal to the selector so that the bit operation data is output while data is being input to the selector, and performing bit operation on the data read at the first time. And a second read signal is output to the memory at a timing at which the second read data is output from the selector in succession. be able to.
[0007]
In addition, the control unit starts a count operation in response to an input of a start timing, and counts up while the first counter holds a predetermined value, and controls the timing of the read signal and the number of memory accesses. And a second counter that outputs an address signal necessary for memory access, and a decoder that decodes the outputs of the first counter and the second counter and outputs a control signal to each circuit.
[0008]
Further, the data to be transferred is composed of two channels, and after transferring the data to which the first bit operation data generated by performing bit operation on the data before the first channel data is transferred, In a data transfer circuit for transferring data in which second bit operation data generated by performing bit operation on the data after the second channel data is transferred, first data for storing the first channel data is stored. Memory, the second memory for storing the data of the second channel, and the same data stored in the first memory are successively given two read signals, and after the memory access is completed, A control unit for supplying a read signal to the second memory continuously and a bit operation by performing a bit operation on the data read from the first and second memories A bit calculator for generating and outputting data, and the first channel according to a timing at which the output of the bit calculator and data read from the first and second memories are input and output by the controller And a selector that selects and outputs one of the data, the second channel data, the first bit operation data, or the second bit operation data, and the control unit includes: Bit calculation is performed on the first bit operation data generated by performing bit operation on the first channel data read for the first time and the second channel data read from the second memory. While the second bit operation data generated by this is input to the selector, the selector controls the first and second bit operation data to be output. All of the first bit operation data generated by performing bit operation on the data read out at the first time is completed, and subsequently read out from the first memory for the second time. It is also possible to obtain a data transfer circuit characterized in that the second read signal is output to the first memory at the timing when the processed data is output from the selector.
[0009]
Further, the control unit sends the first read signal so that the timing at which the bit operation data generated by performing the bit operation on the first read data coincides with the frame timing of the data transfer. By outputting, a data transfer circuit synchronized with the transmission frame can be obtained.
[0010]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, an embodiment of a data transfer circuit according to the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing the configuration of the present embodiment. Referring to FIG. 1, the data transfer circuit has a memory 2 for temporarily storing transfer data in order to add operation data to the head of the transfer data. The control unit 1 is responsible for overall control of the data transfer circuit, and has functions such as selecting output data of the selector 5 in addition to controlling the number of times of reading data to be transferred from the memory. The P / S conversion circuit 3 is provided between the memory 2 and the CRC calculator 4 and converts parallel data output from the memory 2 into serial data. The CRC calculator 4 performs a CRC calculation on the data output from the P / S conversion circuit 3, and outputs CRC data obtained as a result of the calculation to the selector 5. The selector 5 selects and outputs data (output data of the P / S conversion circuit 3) or a CRC bit (output data of the CRC calculator 4) under the control of the control unit 1.
[0011]
FIG. 2 is a block diagram showing a configuration example of the control unit 1 in the embodiment of the present invention. In FIG. 2, the control unit 1 includes a counter 1a, a counter 1b, and a decoder 1c. The counter 1a is for controlling the timing and the number of times of memory access, and starts the counting operation upon receiving the start timing. The counter 1b is for controlling the access period for each number of memory accesses, and continues counting up unless it is incremented or reset depending on the change of the counter 1a. The decoder 1c serves to output the operation timing to the memory 2, the P / S conversion circuit 3, the CRC calculator 4, and the selector 5. The decoder 1c decodes the outputs of the counter 1a and the counter 1b and outputs various control signals. Output. The control information defined in advance by the system is given to the decoder 1c, or a control signal necessary for continuous transfer is outputted by being given each time from the upper part.
[0012]
Next, the operation of the data transfer circuit of FIG. 1 will be described with reference to the time chart shown in FIG.
[0013]
The time chart shown in FIG. 3 shows an operation in the case where the CRC calculation is performed on the transfer data, and the data in which the calculated CRC bit is added before the transfer data is transferred. In the present invention, when transferring one frame to which bit operation data is added, the transfer operation can be performed at a high speed and continuously, so that the same data stored in the memory 2 is stored twice. Access is performed, and the first memory access is used for CRC calculation, and the second memory access is used for data transfer.
[0014]
The period from the start of these two memory accesses to the completion of data transfer is defined as one cycle, and the period from the count value “0” to “2” of the counter 1a that starts the operation upon receiving the input of the start timing is This corresponds to one cycle. When one cycle is completed, the count value of the counter 1a is reset to “0”, and thereafter the same operation is repeated. The counter 1b linked to the counter 1a starts counting up by a change in the count value of the counter 1a, and continues counting up until the counter 1a changes next time.
[0015]
First, in the first memory access, the counter 1a holds “0” for a predetermined period with the start timing as a trigger. On the other hand, the counter 1b continues to count up from 0 to n. The decoder 1c decodes the count values of the counter 1a and the counter 1b and outputs an address signal to the memory 2 to perform the first data read (DATA READ 1 in the figure), via the P / S conversion circuit 3. The CRC calculator 4 performs calculation processing in units of clocks to generate CRC data.
[0016]
Here, paying attention to the first memory access, it can be seen that the reading of the transfer data is completed in the middle of the period in which the counter 1a shows a value of “0”. In other words, an additional period is provided for reading the data to be transferred, which is obtained by performing a CRC operation on the read data and reading it by the second memory access in succession to the transfer of the generated CRC data. The period is provided in excess of the time required for memory access so that data transfer can be started continuously.
[0017]
The second memory access corresponds to a period in which the count value of the counter 1a is “1”, and the counter 1b that has continued to count up so far resets the previous value and counts up again from zero. The decoder 1c decodes the outputs of both counters and reads the same data for the second time as described above. Then, the data read out for the second time is started to be transferred in succession to the last bit of the CRC data in the additional period whose timing is adjusted in advance. When the count value of the counter 1b ends to “m”, the second memory access is ended.
[0018]
When the second memory access is completed, the count value of the counter 1a is incremented to “2”. This period is provided to complement the delay time from the completion of the memory access to the data transfer.
[0019]
Note that even in the period provided to supplement the additional period and the delay time, the count value of each counter is output to the decoder 1c, but the combination of the count values is input to the decoder 1c. In this case, unnecessary data transfer can be avoided by invalidating memory access or outputting a control signal for prohibiting transfer of read data to the selector 5.
[0020]
Next, a second embodiment of the present invention will be described in detail with reference to the drawings. As an embodiment of the present invention, the first embodiment described above has the basic configuration. In the data transfer circuit shown below, data of two channels (hereinafter referred to as CH) is multiplexed and transmitted.
[0021]
Referring to FIG. 4, under the control of the control unit 1, this data transfer circuit temporarily stores 2CH of audio data encoded by CODEC and 2CH of control data output from the CPU in dedicated memories 2a and 2b, respectively. Then, a CRC bit obtained by CRC calculation is added and output from the selector 5.
[0022]
Next, each block constituting the data transfer circuit will be briefly described. The control unit 1 outputs a control signal for determining operation timing and the like to each circuit block based on the control information received from the CPU.
[0023]
In addition to outputting control information to the control unit 1, the CPU has control data that is one of the multiplexed CHs, and outputs the control data to the control data memory 2b in the subsequent stage. The CPU performs storage in the control data memory 2a and basic control of the CH.
[0024]
A memory unit composed of the audio data memory 2a and the control data memory 2b is a memory for storing audio data and control data, and is connected in parallel to the selector 2c. Reading of the memory is performed according to a counter value of the control unit 1 described later.
[0025]
The selector 2c selects the data read from the memories 2a and 2b according to the control of the control unit 1 and outputs it to the P / S conversion circuit 3 at the subsequent stage.
[0026]
The functions and connection relationships of the P / S conversion circuit 3, the CRC calculator 4, and the selector 5 are the same as in the previous embodiment, but the data to be transferred is a multiplexed CH and the CRC bit calculated from these. Is different from the previous embodiment mainly in terms of the operation timing of each part.
[0027]
FIG. 5 shows the configuration of the control unit 1 of FIG. The control unit 1 includes a counter 1a, a counter 1b, and a decoder 1c as in the above-described embodiment, and includes a selector 1d in order to support control of multiple CHs. The counter 1a and the counter 1b start the count operation at the start timing output from the CPU. The decoder 1c decodes the count values of the counters 1a and 1b in accordance with the operation timing of each block. The selector 1d selects the decode value of the decoder 1d because the operation timing of each block differs depending on the type and rate of the CH. This output becomes a control signal for controlling each block.
[0028]
Next, the operation of the data transfer circuit of FIG. 4 will be described with reference to the time chart shown in FIG.
[0029]
In the time chart shown in FIG. 6, the timing when CRC data obtained by CRC calculation of voice data is added before the voice data, and then the CRC data obtained by CRC calculation of control data is added after the control data is transferred. Show. In this embodiment, memory access to the memory unit is performed three times. That is, for audio data, the CRC data is added to the audio data memory twice in order to add the CRC calculated CRC data before the audio data, and for the control data, the CRC data is added after the control data. Therefore, one memory access is performed to the control data memory.
[0030]
The period from the start of these three memory accesses to the completion of the data transfer is defined as one cycle, and the period from the count value “0” to “2” of the counter 1a that starts the operation in response to the input of the start timing is This corresponds to one cycle. When one cycle is completed, the count value of the counter 1a is reset to “0”, and thereafter the same operation is repeated. The counter 1b starts counting up due to a change in the count value of the counter 1a, and continues counting up until the counter 1a changes next time.
[0031]
First, the first memory access is to the audio data memory, and the counter 1a holds “0” for a predetermined period with the start timing as a trigger. On the other hand, the counter 1b continues to count up from 0 to n. The decoder 1c decodes the count values of the counter 1a and the counter 1b and outputs an address signal to the memory 2 so that the first data read is performed (sound DATA READ 1 in the figure), and the P / S conversion circuit 3 is Thus, the CRC calculator 4 performs arithmetic processing in units of clocks to generate CRC data. The setting of the period in which the counter 1a indicates “0” is determined according to the same criteria as in the first embodiment.
[0032]
For the second memory access, the same operation as in the first embodiment is performed, and the setting of the period in which the counter 1a indicates “1” corresponds to the period in which the count value of the counter 1a is “1”. The counter 1b that has continued to count up so far resets the previous value and counts up again from zero. The decoder 1c decodes the outputs of both counters and performs the second memory access to the same data as described above (sound DATA READ2 in the figure). Since the data is provided with an additional period required for continuous transfer in the first memory access described above, the transfer is started continuously with the last bit of the CRC data. When the count value of the counter 1b ends to “m”, the second memory access is ended. This count value “m” coincides with the audio data reading period.
[0033]
When the audio data memory access is completed, the count value of the counter 1a is incremented to “2”, and the control data is read from the control data memory 2b in succession to the audio data as the third memory access (see FIG. Inside control DATA READ1). In the third memory access, the CRC calculation is performed on the control data simultaneously with the transfer of the control data, so that the CRC data can be continuously transferred after the data transfer is completed.
[0034]
When the third memory access is completed, the count value of the counter 1a is counted up to “3” in order to complement the delay time from the completion of data reading to the data transfer. The count is reset to “0”, and one cycle from memory access to data transfer is completed.
[0035]
Further, since the start timing to be designated is advanced by the processing time required for the CRC calculation processing in the CPU, data transfer synchronized with the frame timing can be realized. Since the processing delay time at this time is determined by the type of CH to be transferred, this circuit notifies the CPU of this time in advance.
[0036]
As described above, according to the present embodiment, it is possible to obtain an effect that multi-channels can be transferred without interruption in one frame.
[0037]
In the above embodiment, the CRC calculator has been described as an example. However, it is not particularly limited to the CRC calculator, and calculation data calculated with respect to the transfer data at the time of data transfer is added before the transfer data. Since it can be applied to all transfer circuits, other bit arithmetic units may be used. Further, when handling data having different bit operation methods, it is possible to cope with this by merely configuring the bit arithmetic unit in parallel. Furthermore, when transferring multiple channels within one frame, it is possible to add a setting to increase the count value of the counter 1a.
[0038]
【The invention's effect】
In each of the above embodiments, the operation and effect of data transfer without straddling frames is obtained by using the control of the counter, and the object of the present invention is achieved.
[0039]
In addition, in this embodiment, since the frame timing is advanced by the necessary time for each case by CPU control, there is a synergistic effect that data synchronized with the frame can be transferred.
[0040]
As described above, according to the present invention, it is possible to provide a data transfer circuit that realizes high speed based on a basic configuration of control by a counter of bit operation additional data. Further, when increasing the multiplicity of data, the circuit configuration can be simplified because the parts configured in parallel are minimized in the circuit configuration.
[Brief description of the drawings]
FIG. 1 is a block diagram of a data transfer circuit according to a first embodiment to which the present invention is applied.
FIG. 2 is a configuration diagram of a control unit of the data transfer circuit according to the first embodiment.
FIG. 3 is a timing chart showing the operation of the data transfer circuit according to the first embodiment.
FIG. 4 is a block diagram of a data transfer circuit according to a second embodiment to which the present invention is applied.
FIG. 5 is a configuration diagram of a control unit of a data transfer circuit according to a second embodiment.
FIG. 6 is a timing chart showing the operation of the data transfer circuit according to the second embodiment.
FIG. 7 is a block diagram of a conventional data transfer circuit.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 1 Control part 1a Counter 1b Counter 1c Decoder 1d Selector 2 Memory 2a Audio data memory 2b Control data memory 2c Selector 3 P / S conversion circuit 4 CRC calculator 5 Selector

Claims (4)

転送すべきデータの前に、当該データをビット演算することにより生成されたビット演算データを付加したデータを転送するデータ転送回路において、
前記転送すべきデータを格納するメモリと、
前記メモリに格納された同一データに対し少なくとも2回の読出信号を与える制御部と、
前記メモリから読み出されたデータを入力とし、当該データをビット演算することによりビット演算データを生成し出力するビット演算器と、
前記ビット演算器の出力と前記メモリから読み出されたデータを入力とし、前記制御部が出力するタイミングによりビット演算データ又は前記メモリから読み出したデータの何れか一つを選択し出力するセレクタとを備え、
前記制御部は、1回目のメモリ読み出しデータをビット演算したビット演算データが前記セレクタに入力されている間は当該ビット演算データが出力されるように前記セレクタに制御信号を与え、前記1回目に読み出されたデータをビット演算することで生成されたビット演算データの全ての転送が完了しこれに連続して当該2回目に読み出したデータが前記セレクタから出力されるタイミングで前記2回目の読出信号を前記メモリに出力することを特徴とするデータ転送回路。
In a data transfer circuit for transferring data to which bit operation data generated by performing bit operation on the data is transferred before data to be transferred,
A memory for storing the data to be transferred;
A control unit for providing a read signal at least twice for the same data stored in the memory;
A bit arithmetic unit that receives data read from the memory as input and generates and outputs bit operation data by performing bit operation on the data;
A selector that receives the output of the bit arithmetic unit and the data read from the memory, and selects and outputs either the bit arithmetic data or the data read from the memory according to the timing output by the control unit; Prepared,
The control unit provides a control signal to the selector so that the bit operation data is output while the bit operation data obtained by performing bit operation on the first memory read data is input to the selector. All the bit operation data generated by performing bit operation on the read data is completed, and then the second read is performed at the timing when the second read data is output from the selector. A data transfer circuit for outputting a signal to the memory.
前記制御部は、開始タイミングの入力によりカウント動作を開始し前記読出信号のタイミング及びメモリアクセスの回数を制御する第1のカウンタと、第1のカウンタが所定の値を保持する間カウントアップを続けメモリアクセスに必要なアドレス信号を出力する第2のカウンタと、第1のカウンタ及び第2のカウンタの出力をデコードし各回路に制御信号を出力するデコーダとを有することを特徴とする請求項1に記載のデータ転送回路。The control unit starts a count operation in response to an input of a start timing, and continues to count up while the first counter holds a predetermined value while controlling the timing of the read signal and the number of memory accesses. 2. A second counter that outputs an address signal required for memory access, and a decoder that decodes outputs of the first counter and the second counter and outputs a control signal to each circuit. The data transfer circuit described in 1. 転送すべきデータが2チャネルで構成され、第1のチャネルのデータの前に当該データをビット演算することにより生成された第1のビット演算データを付加したデータを転送した後、続けて第2のチャネルのデータの後ろに当該データをビット演算することにより生成された第2のビット演算データを付加したデータを転送するデータ転送回路において、
前記第1のチャネルのデータを格納する第1のメモリと、前記第2のチャネルのデータを格納する第2のメモリと、
前記第1のメモリに格納された同一データに対し連続して2回の読出信号を与え、メモリアクセスの終了後これに連続して第2のメモリに対し読出信号を与える制御部と、
前記第1及び第2のメモリから読み出されたデータをビット演算することによりビット演算データを生成し出力するビット演算器と、
前記ビット演算器の出力と前記第1及び第2のメモリから読み出されたデータを入力とし前記制御部が出力するタイミングにより、前記第1のチャネルのデータ、第2のチャネルのデータ、前記第1のビット演算データ、又は前記第2のビット演算データのいずかれ一つを選択し出力するセレクタとを備え、
前記制御部は、前記第1のメモリに対し1回目に読み出した第1のチャネルのデータをビット演算することにより生成された第1のビット演算データと、前記第2のメモリから読み出した第2のチャネルのデータをビット演算することにより生成された第2のビット演算データが前記セレクタに入力されている間は当該第1及び第2のビット演算データが出力されるように前記セレクタに制御信号を与え、前記1回目に読み出されたデータをビット演算することで生成された第1のビット演算データの全ての転送が完了しこれに連続して第1のメモリから2回目に読み出されたデータが前記セレクタから出力されるタイミングで2回目の読出信号を第1のメモリに出力することを特徴とするデータ転送回路。
The data to be transferred is composed of two channels, and after the data added with the first bit operation data generated by performing bit operation on the data before the data of the first channel is transferred, In the data transfer circuit for transferring the data with the second bit operation data generated by performing bit operation on the data after the channel data,
A first memory for storing data of the first channel; a second memory for storing data of the second channel;
A control unit that continuously gives a read signal twice to the same data stored in the first memory, and gives a read signal to the second memory continuously after the end of the memory access;
A bit calculator that generates and outputs bit operation data by performing bit operations on the data read from the first and second memories;
The first channel data, the second channel data, the first channel data, and the data output from the first and second memories and the timing output by the control unit are input. A selector that selects and outputs one of the bit operation data of 1 or the second bit operation data;
The control unit performs first bit operation data generated by performing bit operation on data of the first channel read for the first time with respect to the first memory, and second read from the second memory. A control signal is sent to the selector so that the first and second bit operation data are output while the second bit operation data generated by performing the bit operation on the data of the channel is input to the selector. All the transfer of the first bit operation data generated by performing bit operation on the data read out at the first time is completed and read out from the first memory for the second time continuously. A data transfer circuit which outputs a second read signal to the first memory at a timing when the data is output from the selector.
前記制御部は、前記1回目に読み出したデータをビット演算することにより生成されたビット演算データがセレクタから出力されるタイミングが、データ転送のフレームタイミングに一致するように前記1回目の読出信号を出力することを特徴とする請求項1乃至3に記載のデータ転送回路。The control unit outputs the first read signal so that the timing at which the bit operation data generated by performing bit operation on the data read at the first time coincides with the frame timing of data transfer. 4. The data transfer circuit according to claim 1, wherein the data transfer circuit outputs the data.
JP25119599A 1999-09-06 1999-09-06 Bit transfer additional data high-speed transfer circuit Expired - Fee Related JP4290818B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25119599A JP4290818B2 (en) 1999-09-06 1999-09-06 Bit transfer additional data high-speed transfer circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25119599A JP4290818B2 (en) 1999-09-06 1999-09-06 Bit transfer additional data high-speed transfer circuit

Publications (2)

Publication Number Publication Date
JP2001077702A JP2001077702A (en) 2001-03-23
JP4290818B2 true JP4290818B2 (en) 2009-07-08

Family

ID=17219107

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25119599A Expired - Fee Related JP4290818B2 (en) 1999-09-06 1999-09-06 Bit transfer additional data high-speed transfer circuit

Country Status (1)

Country Link
JP (1) JP4290818B2 (en)

Also Published As

Publication number Publication date
JP2001077702A (en) 2001-03-23

Similar Documents

Publication Publication Date Title
JP3417392B2 (en) Synchronous control device
JPH012432A (en) Digital frame synchronizer and synchronization method
JP3894582B2 (en) Data transfer system, transmitter and receiver
JP3185863B2 (en) Data multiplexing method and apparatus
JP4290818B2 (en) Bit transfer additional data high-speed transfer circuit
TWI407449B (en) Synchronous memory device and control method thereof
JPH11133991A (en) Digital signal processing device and control method in converting time of sampling frequency
EP2133797B1 (en) Dma transfer device and method
JPH10143350A (en) First-in first-out memory control system
JP4778872B2 (en) Music output device
JP2005292375A (en) Audio-reproducing device and clock-frequency control method
JP5089225B2 (en) Relay processing method and relay node device
JP2008047223A (en) Audio reproduction circuit
JP2006050641A (en) Digital delay buffer and method relevant to the buffer
JP2000004423A (en) Information reproduction device and method therefor
WO2020173807A1 (en) Host communication circuit, client communication circuit, communication system, sound reproducing device and communication method
JP3548021B2 (en) Signal processing device
JPH1169015A (en) Method and device for recording and reproducing sound
JP2009259333A (en) Reproducing apparatus and reproducing method
US20080298512A1 (en) Data processing apparatus
JPH03174837A (en) Timing matching circuit
JPH11289590A (en) Audio data processor
JPH05120219A (en) Data transmitting circuit
JPH06152546A (en) Microprocessor
JPH0317754A (en) Semiconductor storage

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20050406

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060817

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20070130

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20080618

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20090317

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090402

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20120410

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees