JP3705486B2 - Serial parallel conversion circuit and parallel serial conversion circuit - Google Patents

Serial parallel conversion circuit and parallel serial conversion circuit Download PDF

Info

Publication number
JP3705486B2
JP3705486B2 JP2001335908A JP2001335908A JP3705486B2 JP 3705486 B2 JP3705486 B2 JP 3705486B2 JP 2001335908 A JP2001335908 A JP 2001335908A JP 2001335908 A JP2001335908 A JP 2001335908A JP 3705486 B2 JP3705486 B2 JP 3705486B2
Authority
JP
Japan
Prior art keywords
data
bit
parallel
serial
input
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2001335908A
Other languages
Japanese (ja)
Other versions
JP2003140881A (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.)
Yamaha Corp
Original Assignee
Yamaha 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 Yamaha Corp filed Critical Yamaha Corp
Priority to JP2001335908A priority Critical patent/JP3705486B2/en
Publication of JP2003140881A publication Critical patent/JP2003140881A/en
Application granted granted Critical
Publication of JP3705486B2 publication Critical patent/JP3705486B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Communication Control (AREA)
  • Information Transfer Systems (AREA)

Description

【0001】
【発明の属する技術分野】
この発明は、デジタル信号のレベルマージン(ヘッドマージン)を任意に設定でき、かつ比較的小規模なインターフェース回路でデジタル信号の送受信を行なうことができるシリアルパラレル変換回路およびパラレルシリアル変換回路に関する。
【0002】
【従来の技術】
従来より、デジタル信号のシリアルデータとパラレルデータとの間でデータ変換を行なうシリアルパラレル変換回路およびパラレルシリアル変換回路が知られている。
【0003】
図6(a)は、従来のシフトレジスタを用いた8ビットデータのシリアルパラレル変換回路のブロック構成を示す。このシリアルパラレル変換回路は、Dフリップフロップ回路(以後D−FFと呼ぶ)610〜617を備えている。D−FF610〜617は、クロック発生器603から出力されるクロック信号に同期して左から右にビットデータが移動していくシフトレジスタを構成している。すなわち、あるクロックタイミングにおけるD−FF610〜617のデータは、次のクロックタイミングで、D−FF616のデータがD−FF617へ、D−FF615のデータがD−FF616へ、…、D−FF610のデータがD−FF611へ、というように移動する。
【0004】
シリアルデータ601は、クロック発生器603から出力されるクロック信号に同期してD−FFへ順に取り込まれる。いまシリアルデータ601が、8ビット単位でMSB(最上位ビット)側から送り出されてくるものとする。最初のクロックタイミングで、MSBのデータがD−FF610に取り込まれる。次のクロックタイミングで、D−FF610のデータはD−FF611に移動し、シリアルデータ601の次のビットデータがD−FF610に取り込まれる。同様にして、順次、ビットデータが取り込まれていく。8クロック目のタイミングで、シリアルデータ601の8ビットデータがD−FF610〜617に取り込まれる。この時点で、D−FF610〜617より8ビットデータを並列に取り出して、p0〜p7(p7がMSB側)からなるパラレルデータ602を得る。シリアルデータ601がLSB(最下位ビット)側から送り出されてくる場合も同様であり、その場合はp7がLSB側になる。
【0005】
図6(b)は、従来のシフトレジスタを用いた8ビットデータのパラレルシリアル変換回路のブロック構成を示す。このパラレルシリアル変換回路は、D−FF640〜647を備えている。D−FF640〜647は、クロック発生器633から出力されるクロック信号に同期して右から左にビットデータが移動していくシフトレジスタを構成している。すなわち、あるクロックタイミングにおけるD−FF640〜647のデータは、次のクロックタイミングで、D−FF646のデータがD−FF647へ、D−FF645のデータがD−FF646へ、…、D−FF640のデータがD−FF641へ、というように移動する。
【0006】
パラレルデータ631の各ビットp0〜p7(p7がMSB側とする)は、あるクロックタイミングで、D−FF640〜647に取り込まれる。そのタイミングから8クロック分で、順次、D−FF647から順に8ビットのシリアルデータ632として出力される。p7がLSB側の場合も同様である。
【0007】
このようなシリアルパラレル変換回路やパラレルシリアル変換回路は、シリアルデータとパラレルデータとの変換が必要な各種の場面で用いられる。例えば、DSP(デジタルシグナルプロセッサ)を用いてデジタル楽音信号のミキシング処理を行なうデジタルミキサの入出力部分などでも用いられる。
【0008】
ところで、このようなデジタルミキサの演算部ではレベルの大きい信号を扱うとき、演算中にオーバーフローを起こし適切な演算結果が得られないことがあった。これを防ぐため、デジタルミキサの演算部への信号入力時に信号レベルに余裕を与えるヘッドマージンを確保してあらかじめ入力データのレベルを減衰させ、演算終了後にレベルを上げてデータを出力する手法が用いられている。例えば、入力信号を一律6dB下げて演算部で演算し、演算結果を6dB上げて出力する手法などがある。
【0009】
図7(a)は、従来のミキサ演算例を示す。シリアルデータ(ディジタル楽音信号)701は、シリアルパラレル変換回路702でパラレルデータ703に変換され、デジタルミキサ演算部704に入力する。デジタルミキサ演算部704は、入力されたパラレルデータ703に0.5を乗算することによって信号レベルを6dB下げてヘッドマージンを確保し、その後、各種の演算を行なう。出力時には、その演算結果に対して2を乗算し、信号レベルを6dB上げて、パラレルデータ705として出力する。パラレルデータ705は、パラレルシリアル変換回路706でシリアルデータ707に変換されて出力される。
【0010】
図7(b)は、従来のミキサ演算の別の例を示す。図7(a)では、デジタルミキサ演算部704で入力データに0.5を掛けてヘッドマージンを確保し、また演算結果に2を掛けて信号レベルを戻しているが、その処理をシフタ714,716で行なうものである。すなわち、シフタ711でパラレルデータ703を1ビットシフトダウンすることによりヘッドマージンを確保し、シフタ712でデジタルミキサ演算部704の出力データを1ビットシフトアップすることにより信号レベルを元に戻している。
【0011】
【発明が解決しようとする課題】
しかし、図7(a)に示すようにデジタルミキサ演算部でソフト的にヘッドマージンを確保する場合、入力するシリアルデータが多くなるほど演算回数が増加し、演算装置に負担がかかるという問題があった。また、図7(b)に示すようにシフタを用いてハード的にヘッドマージンを確保する場合、入力するシリアルデータの語長が長くなるほどシフタの回路規模が増加し、配線が複雑になるという問題があった。
【0012】
この発明は、上述の従来技術における問題点に鑑み、デジタル信号を処理する演算装置に負荷をかけることなく、また演算装置周辺の回路規模を大きくすることなく、ヘッドマージンを容易に確保できるシリアルパラレル変換回路およびパラレルシリアル変換回路を提供することを目的とする。
【0013】
【課題を解決するための手段】
この目的を達成するため、請求項1に係る発明は、入力したシリアルデータに所定のヘッドマージンを付与してパラレルデータに変換するシリアルパラレル変換回路であって、クロック信号に同期してシリアルデータを順次入力する入力手段と、クロック信号に同期してビットデータを順次シフトしていく所定段数のビット記憶手段を有するシフトレジスタと、クロック信号に同期して、前記入力手段により順次入力したシリアルデータの各ビットを前記シフトレジスタの所定の位置に入力する手段と、所定クロック数が経過して、前記シフトレジスタに前記シリアルデータの所定単位ビット数のデータが揃ったとき、該データの上位ビット側の所定ビット数のデータを並列に取り出し、その最上位ビット側にヘッドマージンを付与し、パラレルデータとして出力する手段とを備えたことを特徴とする。
【0014】
請求項2に係る発明は、入力したシリアルデータに所定のヘッドマージンを付与してパラレルデータに変換するシリアルパラレル変換回路であって、クロック信号に同期してnビット単位のデータからなるシリアルデータを最上位ビット側から順次入力する入力手段と、クロック信号に同期してビットデータを第1段目から順次シフトしていく所定段数のビット記憶手段を有するシフトレジスタと、クロック信号に同期して、前記入力手段により順次入力したシリアルデータの各ビットを前記シフトレジスタの第1段目のビット記憶手段に入力する手段と、所定クロック数が経過して、前記シフトレジスタの第1段目から第n段目のビット記憶手段に前記シリアルデータの1単位であるnビットデータが揃ったとき、第m段目(m<n)から前記nビットデータの最上位ビットが格納されている第n段目までのビット記憶手段から、並列にビットデータを取り出すとともに、該取り出したビットデータの最上位ビット側に、ヘッドマージンとして前記nビットデータの最上位ビットを符号拡張したビットデータを補って、nビットのパラレルデータとして出力する手段とを備えたことを特徴とする。
【0015】
請求項3に係る発明は、入力したシリアルデータに所定のヘッドマージンを付与してパラレルデータに変換するシリアルパラレル変換回路であって、クロック信号に同期してnビット単位のデータからなるシリアルデータを最下位ビット側から順次入力する入力手段と、クロック信号に同期してビットデータを第1段目から順次シフトしていくn段のビット記憶手段を有するシフトレジスタと、クロック信号に同期して、前記入力手段により順次入力したシリアルデータの各ビットを前記シフトレジスタの第m段目(m<n)のビット記憶手段に入力する手段と、所定クロック数が経過して、前記シフトレジスタの第m段目から第n段目のビット記憶手段に前記シリアルデータの1単位であるnビットデータの上位n−m+1ビットが揃ったとき、該第m段目から第n段目までのビット記憶手段から並列にビットデータを取り出すとともに、該取り出したビットデータの最上位ビット側に、ヘッドマージンとして前記nビットデータの最上位ビットを符号拡張したビットデータを補って、nビットのパラレルデータとして出力する手段とを備えたことを特徴とする。
【0016】
請求項4に係る発明は、請求項2または3に記載のシリアルパラレル変換回路において、前記ヘッドマージンの設定量を指定する手段を備えるとともに、前記mの値を可変とし、指定されたヘッドマージンの設定量に応じて前記mの値を決定することを特徴とする。
【0017】
請求項5に係る発明は、入力したパラレルデータのヘッドマージンを解消してシリアルデータに変換するパラレルシリアル変換回路であって、パラレルデータを入力する入力手段と、クロック信号に同期してビットデータを順次シフトしていく所定段数のビット記憶手段を有するシフトレジスタと、前記入力手段により入力したパラレルデータの各ビットを前記シフトレジスタの連続するビット記憶手段に設定する手段と、クロック信号に同期して、前記シフトレジスタの所定位置から順次ビットデータを取り出してシリアルデータとして出力するとともに、その出力の際には、データに付与されていたヘッドマージン部分を除き、該ヘッドマージン部分のビット数分の補充ビットを下位側に付与して出力する手段とを備えたことを特徴とする。
【0018】
請求項6に係る発明は、入力したパラレルデータのヘッドマージンを解消してシリアルデータに変換するパラレルシリアル変換回路であって、nビット単位のパラレルデータで、そのnビットのデータ中の上位mビットにヘッドマージンが付与されているパラレルデータを入力する入力手段と、クロック信号に同期してビットデータを第1段目から第n段目に向かって順次シフトしていくn段のビット記憶手段を有するとともに、第1段目のビット記憶手段はそこに設定されたビットデータが第2段目にシフトされたとき所定の補充ビットデータが設定されるシフトレジスタと、前記入力手段により入力したパラレルデータの1単位であるnビットを、前記シフトレジスタの第1段目から第n段目のビット記憶手段に、前記nビットのデータの最上位側が第n段目の側になるように、設定する手段と、クロック信号に同期して、前記シフトレジスタの第n−m段目からnクロック分だけ順次ビットデータを取り出してシリアルデータとして出力することにより、前記nビットのデータの下位側のn−mビットとその下位側のmビットの補充ビットとを最上位ビット側からシリアルデータとして出力する手段とを備えたことを特徴とする。
【0019】
請求項7に係る発明は、入力したパラレルデータのヘッドマージンを解消してシリアルデータに変換するパラレルシリアル変換回路であって、nビット単位のパラレルデータで、そのnビットのデータ中の上位mビットにヘッドマージンが付与されているパラレルデータを入力する入力手段と、クロック信号に同期してビットデータを第1段目から第n+m段目に向かって順次シフトしていくn+m段のビット記憶手段を有するシフトレジスタと、前記入力手段により入力したパラレルデータの1単位であるnビットを、前記シフトレジスタの第1段目から第n段目のビット記憶手段に、前記nビットのデータの最下位側が第n段目の側になるように、設定するとともに、該設定の際には第n+1段目から第n+m段目のビット記憶手段に所定の補充ビットデータを設定する手段と、クロック信号に同期して、前記シフトレジスタの第n+m段目からnクロック分だけ順次ビットデータを取り出してシリアルデータとして出力することにより、前記nビットのデータの下位側のn−mビットとその下位側のmビットの補充ビットとを最下位ビット側からシリアルデータとして出力する手段とを備えたことを特徴とする。
【0020】
請求項8に係る発明は、請求項6または7に記載のパラレルシリアル変換回路において、前記ヘッドマージンの設定量を指定する手段を備えるとともに、前記mの値を可変とし、指定されたヘッドマージンの設定量に応じて前記mの値を決定することを特徴とする。
【0021】
【発明の実施の形態】
以下、図面を用いてこの発明の実施の形態について説明する。なお、ここでは8ビット単位のデータを扱う例で説明するが、これに限らず、この発明は任意のビット単位のデータに適用可能である。
【0022】
図1は、この発明の実施の形態に係るシリアルパラレル変換回路の構成例を示す。ここでは、入力シリアルデータに0dB、6dB、または12dBのヘッドマージンを確保してパラレルデータに変換することを可能にする回路を示す。入力シリアルデータは、8ビット単位でMSBファースト(MSB側から順に入力)で入力するものとする。このシリアルパラレル変換回路は、セレクタ103〜106、D−FF107〜116、ヘッドマージン設定レジスタ117、およびクロック119を備えている。クロック119は、外部のクロック発振器を使用しても良い。CPU118は、外部からヘッドマージン設定レジスタ117を設定してシリアルパラレル変換回路の動作を規定する中央処理装置である。
【0023】
図5は、ヘッドマージン設定レジスタの構成を示す。ヘッドマージン設定レジスタは、上位ビットm1および下位ビットm0からなる2ビットのレジスタである。ヘッドマージンを0dB確保するとき(言い替えると、ヘッドマージンを取らないとき)、上位ビットm1に「0」、下位ビットm0に「0」を設定する。ヘッドマージンを6dB確保するとき、上位ビットm1に「0」、下位ビットm0に「1」を設定する。ヘッドマージンを12dB確保するとき、上位ビットm1に「1」、下位ビットm0に「0」を設定する。これ以降、ビットm1とm0の設定値を表すときは、m1=0、m0=1というように等号を用いて表現するものとする。
【0024】
再び、図1に戻って、この実施形態のシリアルパラレル変換回路について説明する。D−FF107〜116は、クロック発生器119から出力されるクロック信号に同期してビットデータが移動していくシフトレジスタを構成している。ビットデータの移動方向は矢印で示すように、D−FF107→D−FF108→D−FF109→D−FF110→D−FF111→D−FF112→D−FF113→D−FF114→D−FF115→D−FF116である。ただし、D−FF107とD−FF108との間にはセレクタ104が介在し、D−FF108とD−FF109との間にはセレクタ103が介在しているので、D−FF間が切断され、D−FF108,109に入力シリアルデータ101が入力する場合がある。
【0025】
セレクタ104は、ヘッドマージン設定レジスタ117のビットm1=0(ヘッドマージン6dB)のとき入力シリアルデータ101からの入力ビットデータaを選択出力し、m1=1(ヘッドマージン12dB)のときD−FF107からの入力ビットデータcを選択出力する。セレクタ103は、ヘッドマージン設定レジスタ117のビットm0=0,m1=0(ヘッドマージン0dB)のとき入力シリアルデータ101からの入力ビットデータaを選択出力し、m0=1またはm1=1(ヘッドマージン6dBまたは12dB)のときD−FF108からの入力ビットデータbを選択出力する。
【0026】
セレクタ105は、ヘッドマージン設定レジスタ117のビットm1=0(ヘッドマージン0dBまたは6dB)のときD−FF115からの入力ビットデータeを選択出力し、m1=1(ヘッドマージン12dB)のときD−FF114からの入力ビットデータdを選択出力する。セレクタ106は、ヘッドマージン設定レジスタ117のビットm0=0,m1=0(ヘッドマージン0dB)のときD−FF116からの入力ビットデータfを選択出力し、m0=1(ヘッドマージン6dB)のときD−FF115からの入力ビットデータeを選択出力し、m1=1(ヘッドマージン12dB)のときD−FF114からの入力ビットデータdを選択出力する。
【0027】
以上より、ヘッドマージンが、0dBか、6dBか、12dBかに応じて、図1の回路は以下のように動作する。
【0028】
(1)ヘッドマージンが0dBのときは、入力シリアルデータ101からの入力ビットデータaは、セレクタ103を介してD−FF109に注入される。したがって、D−FF109〜116が8ビット分のシフトレジスタを形成するので、MSB側からD−FF109を入り口として入力した8ビットデータは、入力開始から8クロック後にはD−FF109〜116に揃うことになり、この時点でD−FF109〜116より8ビットデータを並列に取り出して、p0〜p7(p7がMSB側)からなるパラレルデータ102を得る。なお、ヘッドマージンが0dBのときは、セレクタ105,106により、D−FF115のビットデータがp6となり、D−FF116のビットデータがp7となる。
【0029】
(2)ヘッドマージンが6dBのときは、入力シリアルデータ101からの入力ビットデータaは、セレクタ104を介してD−FF108に注入される。また、セレクタ103により、D−FF108からD−FF109にデータ移動できるようになっている。したがって、D−FF108〜115が8ビット分のシフトレジスタを形成するので、MSB側からD−FF108を入り口として入力した8ビットデータは、入力開始から8クロック後にはD−FF108〜115に揃うことになる。この時点で、D−FF108のビットは捨て、D−FF109〜115より7ビットデータを並列に取り出してp0〜p6(p6がMSB側)とし、さらにD−FF115に格納されているMSBを符号拡張でp7としても出力する。これにより、入力シリアルデータ101の8ビットデータを1ビットシフトダウンしてヘッドマージン6dBを確保したパラレルデータ102を得る。なお、ヘッドマージンが6dBのときは、セレクタ105,106により、D−FF115のビットデータがp6およびp7となる。
【0030】
(3)ヘッドマージンが12dBのときは、入力シリアルデータ101からの入力ビットデータaは、D−FF107に注入される。また、セレクタ103によりD−FF108からD−FF109にデータ移動でき、セレクタ104によりD−FF107からD−FF108にデータ移動できるようになっている。したがって、D−FF107〜114が8ビット分のシフトレジスタを形成するので、MSB側からD−FF107を入り口として入力した8ビットデータは、入力開始から8クロック後にはD−FF107〜114に揃うことになる。この時点で、D−FF107,108のビットは捨て、D−FF109〜114より6ビットデータを並列に取り出してp0〜p5(p5がMSB側)とし、さらにD−FF114に格納されているMSBを符号拡張でp6およびp7としても出力する。これにより、入力シリアルデータ101の8ビットデータを2ビットシフトダウンしてヘッドマージン12dBを確保したパラレルデータ102を得る。なお、ヘッドマージンが12dBのときは、セレクタ105,106により、D−FF114のビットデータがp5、p6、およびp7となる。
【0031】
図2は、この発明の実施の形態に係るシリアルパラレル変換回路の別の構成例を示す。図1と同様に、入力シリアルデータに0dB、6dB、または12dBのヘッドマージンを確保してパラレルデータに変換することを可能にする回路とする。入力シリアルデータは、8ビット単位でLSBファースト(LSB側から順に入力)で入力するものとする。このシリアルパラレル変換回路は、セレクタ203〜206、D−FF207〜214、ヘッドマージン設定レジスタ215、およびクロック217を備えている。クロック217は、外部のクロック発振器を使用しても良い。CPU216は、外部からヘッドマージン設定レジスタ215を設定してシリアルパラレル変換回路の動作を規定する中央処理装置である。ヘッドマージン設定レジスタ215の構成は、図5と同じである。
【0032】
図2において、D−FF207〜214は、クロック発生器217から出力されるクロック信号に同期してビットデータが移動していくシフトレジスタを構成している。ビットデータの移動方向は矢印で示すように、D−FF207→D−FF208→D−FF209→D−FF210→D−FF211→D−FF212→D−FF213→D−FF214である。ただし、D−FF207とD−FF208との間にはセレクタ204が介在し、D−FF208とD−FF209との間にはセレクタ203が介在しているので、D−FF間が切断され、D−FF208,209に入力シリアルデータ201が入力する場合がある。
【0033】
セレクタ204は、ヘッドマージン設定レジスタ215のビットm0=1(ヘッドマージン6dB)のとき入力シリアルデータ201からの入力ビットデータaを選択出力し、m0=0(ヘッドマージン0dB)のときD−FF207からの入力ビットデータcを選択出力する。セレクタ203は、ヘッドマージン設定レジスタ215のビットm1=1(ヘッドマージン12dB)のとき入力シリアルデータ201からの入力ビットデータaを選択出力し、m1=0(ヘッドマージン0dBまたは6dB)のときD−FF208からの入力ビットデータbを選択出力する。
【0034】
セレクタ205は、ヘッドマージン設定レジスタ215のビットm1=0(ヘッドマージン0dBまたは6dB)のときセレクタ203を介してD−FF208からの入力ビットデータeを選択出力し、m1=1(ヘッドマージン12dB)のときD−FF209からの入力ビットデータdを選択出力する。セレクタ206は、ヘッドマージン設定レジスタ215のビットm0=0,m1=0(ヘッドマージン0dB)のときセレクタ204を介してD−FF207からの入力ビットデータfを選択出力し、m0=1(ヘッドマージン6dB)のときセレクタ203を介してD−FF208からの入力ビットデータeを選択出力し、m1=1(ヘッドマージン12dB)のときD−FF209からの入力ビットデータdを選択出力する。
【0035】
以上より、ヘッドマージンが、0dBか、6dBか、12dBかに応じて、図2の回路は以下のように動作する。
【0036】
(1)ヘッドマージンが0dBのときは、入力シリアルデータ201からの入力ビットデータaは、D−FF207に注入される。また、セレクタ203によりD−FF208からD−FF209にデータ移動でき、セレクタ204によりD−FF207からD−FF208にデータ移動できるようになっている。したがって、D−FF207〜214が8ビット分のシフトレジスタを形成するので、LSB側からD−FF207を入り口として入力した8ビットデータは、入力開始から8クロック後にはD−FF207〜214に揃うことになり、この時点でD−FF207〜214より8ビットデータを並列に取り出して、p0〜p7(p0がLSB側)からなるパラレルデータ202を得る。なお、ヘッドマージンが0dBのときは、セレクタ205,206により、D−FF207のビットデータがp7となり、D−FF208のビットデータがp6となる。
【0037】
(2)ヘッドマージンが6dBのときは、入力シリアルデータ201からの入力ビットデータaは、セレクタ204を介してD−FF208に注入される。また、セレクタ203により、D−FF208からD−FF209にデータ移動できるようになっている。したがって、D−FF208〜214が7ビット分のシフトレジスタを形成するので、LSB側からD−FF208を入り口として入力した8ビットデータは、入力開始から8クロック後には、最初に入力したLSBが捨てられ、それ以降の7ビット分がD−FF208〜214に揃うことになる。この時点で、D−FF208〜214より7ビットデータを並列に取り出してp0〜p6(p6がMSB側)とし、さらにD−FF208に格納されているMSBを符号拡張でp7としても出力する。これにより、入力シリアルデータ201の8ビットデータを1ビットシフトダウンしてヘッドマージン6dBを確保したパラレルデータ202を得る。なお、ヘッドマージンが6dBのときは、セレクタ203,205,206により、D−FF208のビットデータがp6およびp7となる。
【0038】
(3)ヘッドマージンが12dBのときは、入力シリアルデータ201からの入力ビットデータaは、セレクタ203を介してD−FF209に注入される。したがって、D−FF209〜214が6ビット分のシフトレジスタを形成するので、MSB側からD−FF209を入り口として入力した8ビットデータは、入力開始から8クロック後には、最初に入力したLSBとその次のビットが捨てられ、それ以降の6ビット分がD−FF209〜214に揃うことになる。この時点で、D−FF209〜214より6ビットデータを並列に取り出してp0〜p5(p5がMSB側)とし、さらにD−FF209に格納されているMSBを符号拡張でp6,p7としても出力する。これにより、入力シリアルデータ201の8ビットデータを2ビットシフトダウンしてヘッドマージン12dBを確保したパラレルデータ202を得る。なお、ヘッドマージンが12dBのときは、セレクタ205,206により、D−FF209のビットデータがp5、p6、およびp7となる。
【0039】
図3は、この発明の実施の形態に係るパラレルシリアル変換回路の構成例を示す。図1や図2のシリアルパラレル変換回路で入力シリアルデータに0dB、6dB、または12dBのヘッドマージンを確保してパラレルデータに変換し、種々の演算を施した後、図3のパラレルシリアル変換回路でヘッドマージンを解消し(元のレベルにレベルアップする)、出力する。入力パラレルデータは8ビット単位のデータであり、出力シリアルデータは8ビット単位でMSBファースト(MSB側から順に出力)で出力するものとする。このパラレルシリアル変換回路は、セレクタ303、D−FF304〜311、ヘッドマージン設定レジスタ312、およびクロック314を備えている。クロック314は、外部のクロック発振器を使用しても良い。CPU313は、外部からヘッドマージン設定レジスタ312を設定してパラレルシリアル変換回路の動作を規定する中央処理装置である。ヘッドマージン設定レジスタ312の構成は、図5と同じである。
【0040】
図3において、D−FF304〜311は、クロック発生器314から出力されるクロック信号に同期してビットデータが移動していくシフトレジスタを構成している。ビットデータの移動方向は矢印で示すように、D−FF311→D−FF310→D−FF309→D−FF308→D−FF307→D−FF306→D−FF305→D−FF304である。なお、D−FF311のデータが隣のD−FF310に移動したとき、D−FF311には「0」が補充して書き込まれるようになっている。
【0041】
セレクタ303は、ヘッドマージン設定レジスタ312のビットm0=0,m1=0(ヘッドマージン0dB)のときD−FF304のビットデータaを選択出力し、m0=1(ヘッドマージン6dB)のときD−FF305のビットデータbを選択出力し、m1=1(ヘッドマージン12dB)のときD−FF306のビットデータcを選択出力する。
【0042】
以上より、ヘッドマージンが、0dBか、6dBか、12dBかに応じて、図3の回路は以下のように動作する。
【0043】
(1)パラレルデータ302の各ビットp0〜p7(p7がMSB)は、あるクロックタイミングで、D−FF304〜311に取り込まれる。ヘッドマージンが0dBのときは、セレクタ303により、出力シリアルデータ301の取り出し口はD−FF304である。したがって、D−FF304〜311に取り込まれた各ビットp0〜p7は、その時点から8クロックを使って順次D−FF304からMSBファーストでシリアルデータ301として出力される。
【0044】
(2)パラレルデータ302の各ビットp0〜p7(p7がMSB)は、あるクロックタイミングで、D−FF304〜311に取り込まれる。ヘッドマージンが6dB確保されていたときは、1ビットシフトアップして出力する必要がある。この場合、セレクタ303により、出力シリアルデータ301の取り出し口はD−FF305である。したがって、D−FF304〜311に取り込まれた各ビットp0〜p7は、まずD−FF305のビットデータp6がシリアルデータ301として出力され(p7は捨てられる)、次のクロックタイミングではD−FF306からD−FF305に移動したビットデータp5が出力され、同様にして7クロック分でビットデータp0まで出力される。次の8クロック目では、D−FF311に補充された最下位ビット「0」が出力される。結果として、入力したパラレルデータが1ビットシフトアップされ最下位ビットに「0」が補充された8ビットデータが順次D−FF305からMSBファーストでシリアルデータ301として出力される。
【0045】
(3)パラレルデータ302の各ビットp0〜p7(p7がMSB)は、あるクロックタイミングで、D−FF304〜311に取り込まれる。ヘッドマージンが12dB確保されていたときは、2ビットシフトアップして出力する必要がある。この場合、セレクタ303により、出力シリアルデータ301の取り出し口はD−FF306である。したがって、D−FF304〜311に取り込まれた各ビットp0〜p7は、まずD−FF306のビットデータp5がシリアルデータ301として出力され(p7とp6は捨てられる)、次のクロックタイミングではD−FF307からD−FF306に移動したビットデータp4が出力され、同様にして6クロック分でビットデータp0まで出力される。次の7クロック目と8クロック目では、D−FF311に補充されたビット「0」が順次出力される。結果として、入力したパラレルデータが2ビットシフトアップされ最下位からの2ビットに「00」が補充された8ビットデータが順次D−FF306からMSBファーストでシリアルデータ301として出力される。
【0046】
図4は、この発明の実施の形態に係るパラレルシリアル変換回路の別の構成例を示す。図1や図2のシリアルパラレル変換回路で入力シリアルデータに0dB、6dB、または12dBのヘッドマージンを確保してパラレルデータに変換し、種々の演算を施した後、図4のパラレルシリアル変換回路でヘッドマージンを解消し(元のレベルにレベルアップする)、出力する。入力パラレルデータは8ビット単位のデータであり、出力シリアルデータは8ビット単位でLSBファースト(LSB側から順に出力)で出力するものとする。このパラレルシリアル変換回路は、セレクタ403、D−FF404〜413、ヘッドマージン設定レジスタ414、およびクロック416を備えている。クロック416は、外部のクロック発振器を使用しても良い。CPU415は、外部からヘッドマージン設定レジスタ414を設定してパラレルシリアル変換回路の動作を規定する中央処理装置である。ヘッドマージン設定レジスタ414の構成は、図5と同じである。
【0047】
図4において、D−FF404〜413は、クロック発生器416から出力されるクロック信号に同期してビットデータが移動していくシフトレジスタを構成している。ビットデータの移動方向は矢印で示すように、D−FF413→D−FF412→D−FF411→D−FF410→D−FF409→D−FF408→D−FF407→D−FF406→D−FF405→D−FF404である。なお、パラレルデータ402がD−FF406〜413に取り込まれるタイミングで、D−FF404,405には「0」が書き込まれるようになっている。
【0048】
セレクタ403は、ヘッドマージン設定レジスタ414のビットm0=0,m1=0(ヘッドマージン0dB)のときD−FF406のビットデータaを選択出力し、m0=1(ヘッドマージン6dB)のときD−FF405のビットデータbを選択出力し、m1=1(ヘッドマージン12dB)のときD−FF404のビットデータcを選択出力する。
【0049】
以上より、ヘッドマージンが、0dBか、6dBか、12dBかに応じて、図4の回路は以下のように動作する。
【0050】
(1)パラレルデータ402の各ビットp0〜p7(p0がLSB)は、あるクロックタイミングで、D−FF406〜413に取り込まれる。ヘッドマージンが0dBのときは、セレクタ403により、出力シリアルデータ401の取り出し口はD−FF406である。したがって、D−FF406〜413に取り込まれた各ビットp0〜p7は、その時点から8クロックを使って順次D−FF406からLSBファーストでシリアルデータ401として出力される。
【0051】
(2)パラレルデータ402の各ビットp0〜p7(p0がLSB)は、あるクロックタイミングで、D−FF406〜413に取り込まれる。この時点で、D−FF405には「0」が書き込まれる。ヘッドマージンが6dB確保されていたときは、1ビットシフトアップして出力する必要がある。この場合、セレクタ403により、出力シリアルデータ401の取り出し口はD−FF405である。したがって、まず1クロック目でD−FF405の「0」がシリアルデータ401として出力され、次の2クロック目ではD−FF406からD−FF405に移動したビットデータp0が出力され、同様にして8クロック目まででビットデータp6まで出力される。結果として、入力したパラレルデータが1ビットシフトアップされ最下位ビットに「0」が補充された8ビットデータが順次D−FF405からLSBファーストでシリアルデータ401として出力される。
【0052】
(3)パラレルデータ402の各ビットp0〜p7(p0がLSB)は、あるクロックタイミングで、D−FF406〜413に取り込まれる。この時点で、D−FF404と405には「0」が書き込まれる。ヘッドマージンが12dB確保されていたときは、2ビットシフトアップして出力する必要がある。この場合、セレクタ403により、出力シリアルデータ401の取り出し口はD−FF404である。したがって、まず1クロック目でD−FF404の「0」がシリアルデータ401として出力され、次の2クロック目ではD−FF405からD−FF404に移動した「0」が出力され、次の3クロック目ではD−FF406からD−FF405を経てD−FF404に移動したビットデータp0が出力され、同様にして8クロック目まででビットデータp5まで出力される。結果として、入力したパラレルデータが2ビットシフトアップされ最下位から2ビットに「00」が補充された8ビットデータが順次D−FF404からLSBファーストでシリアルデータ401として出力される。
【0053】
なお、上記実施の形態ではMSBファーストおよびLSBファーストそれぞれの回路の例について説明したが、これらはハードウェア構成が共通している部分が多いため、共通化してMSBファーストおよびLSBファーストの何れにも対応可能な1つの回路としてもよい。そのようにするためには、MSBファースト/LSBファースト設定レジスタ回路、前記レジスタ回路を切り替えるためのセレクタ、パラレルデータを入出力するバスにビット数分のセレクタなどを追加することで共通化は可能である。
【0054】
また、上記実施の形態では、1ビットシフトの場合と2ビットシフトの場合を説明したが、ビットシフト数はこれに限らない。データの単位も8ビットデータを単位とする場合で説明したが、これに限らず、任意の単位のデータに適用可能である。
【0055】
【発明の効果】
以上説明したように、この発明によれば、デジタル信号を処理する演算装置に負荷をかけることなく、また演算装置周辺の回路規模を大きくすることなく、ヘッドマージンを容易に確保・解消できるシリアルパラレル変換回路およびパラレルシリアル変換回路が提供される。
【図面の簡単な説明】
【図1】この発明の実施の形態に係るシリアルパラレル変換回路の構成例を示す図
【図2】この発明の実施の形態に係るシリアルパラレル変換回路の別の構成例を示す図
【図3】この発明の実施の形態に係るパラレルシリアル変換回路の構成例を示す図
【図4】この発明の実施の形態に係るパラレルシリアル変換回路の別の構成例を示す図
【図5】ヘッドマージン設定レジスタの構成図
【図6】従来のシリアルパラレル変換回路およびパラレルシリアル変換回路のブロック構成図
【図7】従来のミキサ演算処理例を示す図
【符号の説明】
101…入力シリアルデータ、102…出力パラレルデータ、103〜106…セレクタ、107〜116…D−フリップフロップ回路、117…ヘッドマージン設定レジスタ、118…中央処理装置(CPU)、119…クロック、801…シリアルデータ。
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a serial / parallel conversion circuit and a parallel / serial conversion circuit in which a level margin (head margin) of a digital signal can be arbitrarily set and a digital signal can be transmitted and received with a relatively small interface circuit.
[0002]
[Prior art]
Conventionally, a serial / parallel conversion circuit and a parallel / serial conversion circuit that perform data conversion between serial data and parallel data of a digital signal are known.
[0003]
FIG. 6A shows a block configuration of an 8-bit data serial / parallel conversion circuit using a conventional shift register. This serial-parallel conversion circuit includes D flip-flop circuits (hereinafter referred to as D-FF) 610 to 617. The D-FFs 610 to 617 constitute a shift register in which bit data moves from left to right in synchronization with the clock signal output from the clock generator 603. That is, data of D-FFs 610 to 617 at a certain clock timing are data of D-FF 616 to D-FF 617, data of D-FF 615 to D-FF 616,..., Data of D-FF 610 at the next clock timing. Moves to D-FF 611 and so on.
[0004]
The serial data 601 is sequentially taken into the D-FF in synchronization with the clock signal output from the clock generator 603. Assume that the serial data 601 is sent from the MSB (most significant bit) side in 8-bit units. At the first clock timing, the MSB data is taken into the D-FF 610. At the next clock timing, the data in the D-FF 610 moves to the D-FF 611, and the next bit data of the serial data 601 is taken into the D-FF 610. Similarly, bit data is taken in sequentially. The 8-bit data of the serial data 601 is taken into the D-FFs 610 to 617 at the timing of the eighth clock. At this time, 8-bit data is taken out in parallel from the D-FFs 610 to 617 to obtain parallel data 602 composed of p0 to p7 (p7 is the MSB side). The same applies to the case where the serial data 601 is sent out from the LSB (least significant bit) side, in which case p7 is on the LSB side.
[0005]
FIG. 6B shows a block configuration of an 8-bit data parallel-serial conversion circuit using a conventional shift register. The parallel-serial conversion circuit includes D-FFs 640 to 647. The D-FFs 640 to 647 constitute a shift register in which bit data moves from right to left in synchronization with the clock signal output from the clock generator 633. That is, data of D-FF 640 to 647 at a certain clock timing is data of D-FF 646 to D-FF 647, data of D-FF 645 to D-FF 646,..., Data of D-FF 640 at the next clock timing. Moves to D-FF641 and so on.
[0006]
Each bit p0 to p7 (p7 is MSB side) of the parallel data 631 is taken into the D-FFs 640 to 647 at a certain clock timing. The 8-bit serial data 632 is sequentially output from the D-FF 647 sequentially for 8 clocks from that timing. The same applies when p7 is on the LSB side.
[0007]
Such a serial-parallel conversion circuit and a parallel-serial conversion circuit are used in various scenes that require conversion between serial data and parallel data. For example, it is also used in an input / output portion of a digital mixer that performs mixing processing of a digital musical tone signal using a DSP (digital signal processor).
[0008]
By the way, when the arithmetic unit of such a digital mixer handles a signal with a high level, an overflow may occur during the operation and an appropriate operation result may not be obtained. In order to prevent this, a method is used in which a head margin is given to give a signal level margin when a signal is input to the arithmetic unit of the digital mixer, the input data level is attenuated in advance, and the level is increased after the operation is completed to output the data. It has been. For example, there is a method in which the input signal is uniformly reduced by 6 dB, calculated by the calculation unit, and the calculation result is increased by 6 dB.
[0009]
FIG. 7A shows a conventional mixer calculation example. Serial data (digital musical tone signal) 701 is converted into parallel data 703 by a serial / parallel conversion circuit 702 and input to a digital mixer operation unit 704. The digital mixer operation unit 704 multiplies the input parallel data 703 by 0.5 to reduce the signal level by 6 dB to ensure a head margin, and then performs various operations. At the time of output, the operation result is multiplied by 2 to increase the signal level by 6 dB and output as parallel data 705. The parallel data 705 is converted into serial data 707 by the parallel-serial conversion circuit 706 and output.
[0010]
FIG. 7B shows another example of a conventional mixer operation. In FIG. 7A, the digital mixer operation unit 704 multiplies the input data by 0.5 to secure the head margin, and also multiplies the operation result by 2 to return the signal level. The processing is performed by the shifters 714 and 716. To do. In other words, the shift margin 711 secures the head margin by shifting down the parallel data 703 by 1 bit, and the shifter 712 shifts up the output data of the digital mixer arithmetic unit 704 by 1 bit to restore the signal level.
[0011]
[Problems to be solved by the invention]
However, as shown in FIG. 7A, in the case where the head margin is ensured by software in the digital mixer arithmetic unit, there is a problem that the number of arithmetic operations increases as the input serial data increases, and the arithmetic device is burdened. . In addition, when the shift margin is used to secure a head margin as shown in FIG. 7B, the shifter circuit scale increases as the word length of the input serial data increases, and wiring becomes complicated. was there.
[0012]
In view of the above-described problems in the prior art, the present invention provides a serial parallel which can easily secure a head margin without imposing a load on an arithmetic device that processes a digital signal and without increasing the circuit scale around the arithmetic device. An object is to provide a conversion circuit and a parallel-serial conversion circuit.
[0013]
[Means for Solving the Problems]
In order to achieve this object, the invention according to claim 1 is a serial-parallel conversion circuit for converting the input serial data into parallel data by adding a predetermined head margin to the serial data in synchronization with the clock signal. Input means for sequentially inputting, a shift register having a predetermined number of bit storage means for sequentially shifting bit data in synchronization with a clock signal, and serial data sequentially input by the input means in synchronization with a clock signal; Means for inputting each bit to a predetermined position of the shift register and when a predetermined number of unit bits of the serial data have been prepared in the shift register after a predetermined number of clocks have elapsed, A predetermined number of bits of data are taken out in parallel, a head margin is added to the most significant bit, and the parameters are Characterized by comprising a means for outputting as Rudeta.
[0014]
According to a second aspect of the present invention, there is provided a serial / parallel conversion circuit for converting input data into parallel data by adding a predetermined head margin to serial data composed of n-bit unit data in synchronization with a clock signal. An input means for sequentially inputting from the most significant bit side, a shift register having a predetermined number of bit storage means for sequentially shifting bit data from the first stage in synchronization with the clock signal, and in synchronization with the clock signal, Means for inputting each bit of serial data sequentially input by the input means to the bit storage means of the first stage of the shift register; and after a predetermined number of clocks has passed, When n-bit data, which is one unit of the serial data, is prepared in the bit storage means of the stage, from the m-th stage (m <n) The bit data is extracted in parallel from the bit storage means up to the nth stage in which the most significant bit of the n-bit data is stored, and the n bits as a head margin are placed on the most significant bit side of the extracted bit data. And means for supplementing bit data obtained by sign-extending the most significant bit of the data and outputting it as n-bit parallel data.
[0015]
According to a third aspect of the present invention, there is provided a serial / parallel conversion circuit for converting input data into parallel data by giving a predetermined head margin to serial data composed of n-bit units in synchronization with a clock signal. Input means for sequentially inputting from the least significant bit side, a shift register having n-stage bit storage means for sequentially shifting bit data from the first stage in synchronization with the clock signal, and in synchronization with the clock signal, Means for inputting each bit of the serial data sequentially input by the input means to the bit storage means of the m-th stage (m <n) of the shift register, and after a predetermined number of clocks has passed, The uppermost nm + 1 bits of n-bit data, which is one unit of the serial data, are arranged in the bit storage means from the stage to the n-th stage. The bit data is taken out in parallel from the bit storage means from the m-th stage to the n-th stage, and the most significant bit of the n-bit data is set as a head margin on the most significant bit side of the taken bit data. And means for supplementing the sign-extended bit data and outputting as n-bit parallel data.
[0016]
According to a fourth aspect of the invention, in the serial-parallel conversion circuit according to the second or third aspect of the invention, the serial-parallel conversion circuit includes means for designating a set amount of the head margin, the value of the m is variable, and the specified head margin is set. The value of m is determined according to a set amount.
[0017]
The invention according to claim 5 is a parallel-serial conversion circuit that eliminates the head margin of the input parallel data and converts the parallel data into serial data, the input means for inputting the parallel data, and the bit data in synchronization with the clock signal. A shift register having a predetermined number of stages of bit storage means that sequentially shifts, a means for setting each bit of parallel data input by the input means in a continuous bit storage means of the shift register, and a clock signal The bit data is sequentially extracted from a predetermined position of the shift register and output as serial data. At the time of output, the head margin portion added to the data is replenished by the number of bits. And means for assigning bits to the lower side and outputting them. .
[0018]
According to a sixth aspect of the present invention, there is provided a parallel-serial conversion circuit that eliminates the head margin of input parallel data and converts the parallel data into serial data, wherein the upper m bits in the n-bit data are parallel data of n bits. Input means for inputting parallel data with a head margin added thereto, and n-stage bit storage means for sequentially shifting bit data from the first stage to the n-th stage in synchronization with the clock signal. And the first stage bit storage means includes a shift register in which predetermined supplemental bit data is set when the bit data set therein is shifted to the second stage, and parallel data input by the input means. N bits as one unit of the n-bit data in the first to n-th bit storage means of the shift register. In synchronization with the clock signal and the means for setting so that the most significant side is on the n-th stage side, bit data is sequentially extracted from the (n-m) -th stage of the shift register by n clocks, and converted into serial data. Means for outputting the lower-order n−m bits of the n-bit data and the lower-order m-bit supplementary bits as serial data from the most significant bit side by outputting. .
[0019]
The invention according to claim 7 is a parallel-serial conversion circuit that eliminates the head margin of the input parallel data and converts the parallel data into serial data, wherein the upper m bits in the n-bit data are parallel data of n bits. Input means for inputting parallel data with a head margin added thereto, and n + m-stage bit storage means for sequentially shifting bit data from the first stage to the (n + m) th stage in synchronization with the clock signal. And n bits, which is one unit of parallel data input by the input means, are stored in the first to n-th bit storage means of the shift register, and the least significant side of the n-bit data is It is set so that it is on the n-th stage side, and at the time of the setting, the bit storage means in the (n + 1) -th stage to the n + m-th stage The replenishment bit data is set in synchronization with the clock signal, and the bit data is sequentially extracted from the n + m-th stage of the shift register for n clocks and output as serial data, whereby the n-bit data And means for outputting, as serial data, mn bits on the lower side and m supplementary bits on the lower side from the least significant bit side.
[0020]
The invention according to claim 8 is the parallel-serial conversion circuit according to claim 6 or 7, further comprising means for specifying the set amount of the head margin, wherein the value of m is variable, and the specified head margin is set. The value of m is determined according to a set amount.
[0021]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings. Although an example of handling data in units of 8 bits will be described here, the present invention is not limited to this, and the present invention can be applied to data in units of arbitrary bits.
[0022]
FIG. 1 shows a configuration example of a serial-parallel conversion circuit according to an embodiment of the present invention. Here, a circuit that secures a head margin of 0 dB, 6 dB, or 12 dB in input serial data and enables conversion to parallel data is shown. Input serial data is input in 8-bit units in MSB first (input in order from the MSB side). This serial-parallel conversion circuit includes selectors 103 to 106, D-FFs 107 to 116, a head margin setting register 117, and a clock 119. As the clock 119, an external clock oscillator may be used. The CPU 118 is a central processing unit that sets the head margin setting register 117 from the outside and regulates the operation of the serial / parallel conversion circuit.
[0023]
FIG. 5 shows the configuration of the head margin setting register. The head margin setting register is a 2-bit register including an upper bit m1 and a lower bit m0. When a head margin of 0 dB is secured (in other words, when a head margin is not taken), “0” is set to the upper bit m1 and “0” is set to the lower bit m0. When securing a head margin of 6 dB, “0” is set in the upper bit m1 and “1” is set in the lower bit m0. When securing a head margin of 12 dB, “1” is set in the upper bit m1 and “0” is set in the lower bit m0. Thereafter, when the set values of the bits m1 and m0 are expressed, they are expressed using an equal sign such as m1 = 0 and m0 = 1.
[0024]
Returning again to FIG. 1, the serial-parallel conversion circuit of this embodiment will be described. The D-FFs 107 to 116 constitute a shift register in which bit data moves in synchronization with the clock signal output from the clock generator 119. The moving direction of the bit data is as indicated by the arrow D-FF 107 → D-FF 108 → D-FF 109 → D-FF 110 → D-FF 111 → D-FF 112 → D-FF 113 → D-FF 114 → D-FF 115 → D- FF116. However, since the selector 104 is interposed between the D-FF 107 and the D-FF 108 and the selector 103 is interposed between the D-FF 108 and the D-FF 109, the D-FF is disconnected and the D-FF is disconnected. The input serial data 101 may be input to the FFs 108 and 109.
[0025]
The selector 104 selectively outputs the input bit data a from the input serial data 101 when the bit m1 = 0 (head margin 6 dB) of the head margin setting register 117, and from the D-FF 107 when m1 = 1 (head margin 12 dB). Is selected and output. The selector 103 selects and outputs the input bit data a from the input serial data 101 when the bits m0 = 0 and m1 = 0 (head margin 0 dB) of the head margin setting register 117, and m0 = 1 or m1 = 1 (head margin). When 6 dB or 12 dB), the input bit data b from the D-FF 108 is selectively output.
[0026]
The selector 105 selectively outputs the input bit data e from the D-FF 115 when the bit m1 = 0 (head margin 0 dB or 6 dB) of the head margin setting register 117, and the D-FF 114 when m1 = 1 (head margin 12 dB). The input bit data d from is selectively output. The selector 106 selects and outputs the input bit data f from the D-FF 116 when the bits m0 = 0 and m1 = 0 (head margin 0 dB) of the head margin setting register 117, and D when m0 = 1 (head margin 6 dB). The input bit data e from the FF 115 is selectively output, and the input bit data d from the D-FF 114 is selectively output when m1 = 1 (head margin 12 dB).
[0027]
From the above, the circuit of FIG. 1 operates as follows depending on whether the head margin is 0 dB, 6 dB, or 12 dB.
[0028]
(1) When the head margin is 0 dB, the input bit data a from the input serial data 101 is injected into the D-FF 109 via the selector 103. Therefore, since the D-FFs 109 to 116 form a shift register for 8 bits, the 8-bit data input from the MSB side with the D-FF 109 as an entrance should be aligned with the D-FFs 109 to 116 after 8 clocks from the start of input. At this time, 8-bit data is taken out in parallel from the D-FFs 109 to 116 to obtain parallel data 102 composed of p0 to p7 (p7 is on the MSB side). When the head margin is 0 dB, the selectors 105 and 106 change the bit data of the D-FF 115 to p6 and the bit data of the D-FF 116 to p7.
[0029]
(2) When the head margin is 6 dB, the input bit data a from the input serial data 101 is injected into the D-FF 108 via the selector 104. Further, the selector 103 can move data from the D-FF 108 to the D-FF 109. Accordingly, since the D-FFs 108 to 115 form a shift register for 8 bits, the 8-bit data input from the MSB side with the D-FF 108 as an entrance should be aligned with the D-FFs 108 to 115 after 8 clocks from the start of input. become. At this point, the bits of D-FF 108 are discarded, 7-bit data is taken out in parallel from D-FFs 109 to 115 to p0 to p6 (p6 is the MSB side), and the MSB stored in D-FF 115 is sign-extended. Is also output as p7. As a result, 8-bit data of the input serial data 101 is shifted down by 1 bit to obtain parallel data 102 with a head margin of 6 dB. When the head margin is 6 dB, the selectors 105 and 106 change the bit data of the D-FF 115 to p6 and p7.
[0030]
(3) When the head margin is 12 dB, the input bit data a from the input serial data 101 is injected into the D-FF 107. The selector 103 can move data from the D-FF 108 to the D-FF 109, and the selector 104 can move data from the D-FF 107 to the D-FF 108. Therefore, since the D-FFs 107 to 114 form a shift register for 8 bits, the 8-bit data input from the MSB side with the D-FF 107 as the entrance should be aligned with the D-FFs 107 to 114 after 8 clocks from the start of input. become. At this time, the bits of the D-FFs 107 and 108 are discarded, 6-bit data is taken out in parallel from the D-FFs 109 to 114 to be p0 to p5 (p5 is the MSB side), and the MSB stored in the D-FF 114 is further changed. Also output as p6 and p7 by sign extension. As a result, the 8-bit data of the input serial data 101 is shifted down by 2 bits to obtain parallel data 102 with a head margin of 12 dB. When the head margin is 12 dB, the selectors 105 and 106 change the bit data of the D-FF 114 to p5, p6, and p7.
[0031]
FIG. 2 shows another configuration example of the serial-parallel conversion circuit according to the embodiment of the present invention. As in FIG. 1, a circuit that secures a head margin of 0 dB, 6 dB, or 12 dB in input serial data and can convert it into parallel data. Input serial data is input in LSB first (input in order from the LSB side) in units of 8 bits. This serial-parallel conversion circuit includes selectors 203 to 206, D-FFs 207 to 214, a head margin setting register 215, and a clock 217. The clock 217 may use an external clock oscillator. The CPU 216 is a central processing unit that sets the head margin setting register 215 from the outside and defines the operation of the serial-parallel conversion circuit. The configuration of the head margin setting register 215 is the same as that in FIG.
[0032]
In FIG. 2, D-FFs 207 to 214 constitute a shift register in which bit data moves in synchronization with a clock signal output from the clock generator 217. The movement direction of the bit data is D-FF 207 → D-FF 208 → D-FF 209 → D-FF 210 → D-FF 211 → D-FF 212 → D-FF 213 → D-FF 214, as indicated by arrows. However, since the selector 204 is interposed between the D-FF 207 and the D-FF 208 and the selector 203 is interposed between the D-FF 208 and the D-FF 209, the D-FF is disconnected and the D-FF is disconnected. The input serial data 201 may be input to the FFs 208 and 209.
[0033]
The selector 204 selectively outputs the input bit data a from the input serial data 201 when the bit m0 = 1 (head margin 6 dB) of the head margin setting register 215, and from the D-FF 207 when m0 = 0 (head margin 0 dB). Is selected and output. The selector 203 selectively outputs the input bit data a from the input serial data 201 when the bit m1 = 1 (head margin 12 dB) of the head margin setting register 215, and D− when m1 = 0 (head margin 0 dB or 6 dB). The input bit data b from the FF 208 is selectively output.
[0034]
The selector 205 selects and outputs the input bit data e from the D-FF 208 via the selector 203 when the bit m1 = 0 in the head margin setting register 215 (head margin 0 dB or 6 dB), and m1 = 1 (head margin 12 dB). At this time, the input bit data d from the D-FF 209 is selectively output. The selector 206 selects and outputs the input bit data f from the D-FF 207 via the selector 204 when the bits m0 = 0 and m1 = 0 (head margin 0 dB) of the head margin setting register 215, and m0 = 1 (head margin). 6 dB), the input bit data e from the D-FF 208 is selectively output via the selector 203, and when m1 = 1 (head margin 12 dB), the input bit data d from the D-FF 209 is selectively output.
[0035]
From the above, the circuit of FIG. 2 operates as follows according to whether the head margin is 0 dB, 6 dB, or 12 dB.
[0036]
(1) When the head margin is 0 dB, the input bit data a from the input serial data 201 is injected into the D-FF 207. The selector 203 can move data from the D-FF 208 to the D-FF 209, and the selector 204 can move data from the D-FF 207 to the D-FF 208. Therefore, since the D-FFs 207 to 214 form an 8-bit shift register, 8-bit data input from the LSB side using the D-FF 207 as an entrance must be aligned with the D-FFs 207 to 214 after 8 clocks from the start of input. At this time, 8-bit data is taken out from the D-FFs 207 to 214 in parallel to obtain parallel data 202 composed of p0 to p7 (p0 is on the LSB side). When the head margin is 0 dB, the selectors 205 and 206 change the bit data of the D-FF 207 to p7 and the bit data of the D-FF 208 to p6.
[0037]
(2) When the head margin is 6 dB, the input bit data a from the input serial data 201 is injected into the D-FF 208 via the selector 204. The selector 203 can move data from the D-FF 208 to the D-FF 209. Accordingly, since the D-FFs 208 to 214 form a 7-bit shift register, the 8-bit data input from the LSB side with the D-FF 208 as the entrance is discarded after the first 8 LSBs. The subsequent 7 bits are aligned in the D-FFs 208 to 214. At this time, 7-bit data is taken out in parallel from the D-FFs 208 to 214 to be p0 to p6 (p6 is the MSB side), and the MSB stored in the D-FF 208 is also output as p7 by sign extension. As a result, 8-bit data of the input serial data 201 is shifted down by 1 bit to obtain parallel data 202 with a head margin of 6 dB. When the head margin is 6 dB, the selector 203, 205, 206 causes the bit data of the D-FF 208 to be p6 and p7.
[0038]
(3) When the head margin is 12 dB, the input bit data a from the input serial data 201 is injected into the D-FF 209 via the selector 203. Therefore, since the D-FFs 209 to 214 form a 6-bit shift register, the 8-bit data input from the MSB side with the D-FF 209 as the entrance is the first LSB input and its LSB after 8 clocks from the input start. The next bit is discarded, and the subsequent 6 bits are aligned in the D-FFs 209 to 214. At this time, 6-bit data is taken out from D-FFs 209 to 214 in parallel to make p0 to p5 (p5 is the MSB side), and the MSB stored in D-FF 209 is also output as p6 and p7 by sign extension. . As a result, 8-bit data of the input serial data 201 is shifted down by 2 bits to obtain parallel data 202 with a head margin of 12 dB. When the head margin is 12 dB, the bit data of the D-FF 209 becomes p5, p6, and p7 by the selectors 205 and 206.
[0039]
FIG. 3 shows a configuration example of the parallel-serial conversion circuit according to the embodiment of the present invention. The serial / parallel conversion circuit of FIG. 1 or 2 secures a head margin of 0 dB, 6 dB, or 12 dB to the input serial data, converts it to parallel data, performs various operations, and then performs the parallel serial conversion circuit of FIG. Eliminate the head margin (up to the original level) and output. Input parallel data is data in units of 8 bits, and output serial data is output in units of 8 bits with MSB first (output in order from the MSB side). This parallel-serial conversion circuit includes a selector 303, D-FFs 304 to 311, a head margin setting register 312, and a clock 314. The clock 314 may use an external clock oscillator. The CPU 313 is a central processing unit that sets the head margin setting register 312 from the outside and defines the operation of the parallel-serial conversion circuit. The configuration of the head margin setting register 312 is the same as that in FIG.
[0040]
In FIG. 3, D-FFs 304 to 311 constitute a shift register in which bit data moves in synchronization with the clock signal output from the clock generator 314. The moving direction of the bit data is D-FF 311 → D-FF 310 → D-FF 309 → D-FF 308 → D-FF 307 → D-FF 306 → D-FF 305 → D-FF 304 as indicated by arrows. When the data of the D-FF 311 moves to the adjacent D-FF 310, “0” is supplemented and written to the D-FF 311.
[0041]
The selector 303 selectively outputs the bit data a of the D-FF 304 when the bits m0 = 0 and m1 = 0 (head margin 0 dB) of the head margin setting register 312 and D-FF 305 when m0 = 1 (head margin 6 dB). The bit data b of the D-FF 306 is selectively output when m1 = 1 (head margin 12 dB).
[0042]
From the above, the circuit of FIG. 3 operates as follows according to whether the head margin is 0 dB, 6 dB, or 12 dB.
[0043]
(1) The bits p0 to p7 (p7 is MSB) of the parallel data 302 are taken into the D-FFs 304 to 311 at a certain clock timing. When the head margin is 0 dB, the selector 303 extracts the output serial data 301 from the D-FF 304. Accordingly, the bits p0 to p7 fetched into the D-FFs 304 to 311 are sequentially output as serial data 301 from the D-FF 304 MSB first using 8 clocks from that point.
[0044]
(2) The bits p0 to p7 (p7 is MSB) of the parallel data 302 are taken into the D-FFs 304 to 311 at a certain clock timing. When the head margin is 6 dB, it is necessary to shift up by 1 bit and output. In this case, the selector 303 uses the D-FF 305 as an output serial data 301 extraction port. Accordingly, for each bit p0 to p7 taken into D-FFs 304 to 311, first, bit data p6 of D-FF 305 is output as serial data 301 (p7 is discarded), and D-FF 306 to D at the next clock timing. The bit data p5 moved to the FF 305 is output, and similarly, the bit data p0 is output in 7 clocks. At the next eighth clock, the least significant bit “0” supplemented to the D-FF 311 is output. As a result, 8-bit data in which the input parallel data is shifted up by 1 bit and “0” is supplemented to the least significant bit is sequentially output as serial data 301 from the D-FF 305 MSB first.
[0045]
(3) Each bit p0 to p7 (p7 is MSB) of the parallel data 302 is taken into the D-FFs 304 to 311 at a certain clock timing. When the head margin is 12 dB, it is necessary to shift up by 2 bits for output. In this case, the output port of the output serial data 301 by the selector 303 is the D-FF 306. Accordingly, the bits p0 to p7 taken into the D-FFs 304 to 311, first, the bit data p5 of the D-FF 306 is output as the serial data 301 (p7 and p6 are discarded), and at the next clock timing, the D-FF 307 The bit data p4 moved from D to FF 306 is output, and similarly, the bit data p0 is output in 6 clocks. At the next seventh and eighth clocks, the bit “0” supplemented to the D-FF 311 is sequentially output. As a result, 8-bit data in which the input parallel data is shifted up by 2 bits and “00” is supplemented to 2 bits from the least significant bit is sequentially output as serial data 301 from the D-FF 306 MSB first.
[0046]
FIG. 4 shows another configuration example of the parallel-serial conversion circuit according to the embodiment of the present invention. The serial / parallel conversion circuit of FIG. 1 or 2 secures a head margin of 0 dB, 6 dB, or 12 dB to the input serial data, converts it to parallel data, performs various operations, and then performs the parallel-serial conversion circuit of FIG. Eliminate the head margin (up to the original level) and output. Input parallel data is data in units of 8 bits, and output serial data is output in units of 8 bits with LSB first (output in order from the LSB side). This parallel-serial conversion circuit includes a selector 403, D-FFs 404 to 413, a head margin setting register 414, and a clock 416. The clock 416 may use an external clock oscillator. The CPU 415 is a central processing unit that sets the head margin setting register 414 from the outside and defines the operation of the parallel-serial conversion circuit. The configuration of the head margin setting register 414 is the same as that in FIG.
[0047]
In FIG. 4, D-FFs 404 to 413 constitute a shift register in which bit data moves in synchronization with a clock signal output from the clock generator 416. As indicated by the arrow, the moving direction of the bit data is D-FF 413 → D-FF 412 → D-FF 411 → D-FF 410 → D-FF 409 → D-FF 408 → D-FF 407 → D-FF 406 → D-FF 405 → D- FF404. Note that “0” is written to the D-FFs 404 and 405 at the timing when the parallel data 402 is taken into the D-FFs 406 to 413.
[0048]
The selector 403 selectively outputs the bit data a of the D-FF 406 when the bits m0 = 0 and m1 = 0 (head margin 0 dB) of the head margin setting register 414, and the D-FF 405 when m0 = 1 (head margin 6 dB). The bit data b of the D-FF 404 is selectively output when m1 = 1 (head margin 12 dB).
[0049]
From the above, the circuit of FIG. 4 operates as follows depending on whether the head margin is 0 dB, 6 dB, or 12 dB.
[0050]
(1) The bits p0 to p7 (p0 is LSB) of the parallel data 402 are taken into the D-FFs 406 to 413 at a certain clock timing. When the head margin is 0 dB, the selector 403 extracts the output serial data 401 from the D-FF 406. Accordingly, the bits p0 to p7 fetched into the D-FFs 406 to 413 are sequentially output as serial data 401 from the D-FF 406 with LSB first using 8 clocks from that point.
[0051]
(2) The bits p0 to p7 (p0 is LSB) of the parallel data 402 are taken into the D-FFs 406 to 413 at a certain clock timing. At this time, “0” is written in the D-FF 405. When the head margin is 6 dB, it is necessary to shift up by 1 bit and output. In this case, the selector 403 extracts the output serial data 401 from the D-FF 405. Therefore, first, “0” of the D-FF 405 is output as the serial data 401 at the first clock, and the bit data p0 moved from the D-FF 406 to the D-FF 405 is output at the next second clock. Up to the eye, bit data p6 is output. As a result, 8-bit data in which the input parallel data is shifted up by 1 bit and “0” is supplemented to the least significant bit is sequentially output as serial data 401 from the D-FF 405 with LSB first.
[0052]
(3) The bits p0 to p7 (p0 is LSB) of the parallel data 402 are taken into the D-FFs 406 to 413 at a certain clock timing. At this time, “0” is written in the D-FFs 404 and 405. When the head margin is 12 dB, it is necessary to shift up by 2 bits for output. In this case, the selector 403 extracts the output serial data 401 from the D-FF 404. Therefore, first, “0” of the D-FF 404 is output as the serial data 401 at the first clock, and “0” moved from the D-FF 405 to the D-FF 404 is output at the next second clock, and the next third clock. Then, the bit data p0 moved from the D-FF 406 to the D-FF 404 via the D-FF 405 is output, and similarly up to the eighth clock, the bit data p5 is output. As a result, the input parallel data is shifted up by 2 bits, and 8-bit data in which “00” is supplemented to 2 bits from the least significant bit is sequentially output as serial data 401 from the D-FF 404 with LSB first.
[0053]
In the above embodiment, the example of each circuit of MSB first and LSB first has been described. However, since there are many parts that share the same hardware configuration, they can be shared to support both MSB first and LSB first. One possible circuit may be used. In order to do so, the MSB first / LSB first setting register circuit, a selector for switching the register circuit, and a selector for the number of bits can be added to the bus for inputting / outputting parallel data. is there.
[0054]
In the above embodiment, the case of 1-bit shift and the case of 2-bit shift have been described, but the number of bit shifts is not limited to this. Although the case where the data unit is 8 bit data has been described, the present invention is not limited to this, and the present invention can be applied to data of an arbitrary unit.
[0055]
【The invention's effect】
As described above, according to the present invention, the serial parallel can easily secure and eliminate the head margin without imposing a load on the arithmetic device for processing the digital signal and without increasing the circuit scale around the arithmetic device. A conversion circuit and a parallel-serial conversion circuit are provided.
[Brief description of the drawings]
FIG. 1 is a diagram showing a configuration example of a serial / parallel conversion circuit according to an embodiment of the present invention;
FIG. 2 is a diagram showing another configuration example of the serial-parallel conversion circuit according to the embodiment of the present invention;
FIG. 3 is a diagram showing a configuration example of a parallel-serial conversion circuit according to an embodiment of the present invention.
FIG. 4 is a diagram showing another configuration example of the parallel-serial conversion circuit according to the embodiment of the present invention;
FIG. 5 is a configuration diagram of a head margin setting register.
FIG. 6 is a block diagram of a conventional serial / parallel conversion circuit and parallel / serial conversion circuit;
FIG. 7 is a diagram showing an example of conventional mixer calculation processing
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 101 ... Input serial data, 102 ... Output parallel data, 103-106 ... Selector, 107-116 ... D-flip-flop circuit, 117 ... Head margin setting register, 118 ... Central processing unit (CPU), 119 ... Clock, 801 ... Serial data.

Claims (8)

入力したシリアルデータに所定のヘッドマージンを付与してパラレルデータに変換するシリアルパラレル変換回路であって、
クロック信号に同期してシリアルデータを順次入力する入力手段と、
クロック信号に同期してビットデータを順次シフトしていく所定段数のビット記憶手段を有するシフトレジスタと、
クロック信号に同期して、前記入力手段により順次入力したシリアルデータの各ビットを前記シフトレジスタの所定の位置に入力する手段と、
所定クロック数が経過して、前記シフトレジスタに前記シリアルデータの所定単位ビット数のデータが揃ったとき、該データの上位ビット側の所定ビット数のデータを並列に取り出し、その最上位ビット側にヘッドマージンを付与し、パラレルデータとして出力する手段と
を備えたことを特徴とするシリアルパラレル変換回路。
A serial-parallel conversion circuit that converts the input serial data into parallel data by adding a predetermined head margin,
Input means for sequentially inputting serial data in synchronization with a clock signal;
A shift register having a predetermined number of stages of bit storage means for sequentially shifting bit data in synchronization with a clock signal;
Means for inputting each bit of serial data sequentially input by the input means to a predetermined position of the shift register in synchronization with a clock signal;
When a predetermined number of clocks have elapsed and data of a predetermined unit bit number of the serial data has been prepared in the shift register, data of a predetermined bit number on the upper bit side of the data is taken in parallel, and the most significant bit side is A serial-parallel conversion circuit comprising means for providing a head margin and outputting as parallel data.
入力したシリアルデータに所定のヘッドマージンを付与してパラレルデータに変換するシリアルパラレル変換回路であって、
クロック信号に同期してnビット単位のデータからなるシリアルデータを最上位ビット側から順次入力する入力手段と、
クロック信号に同期してビットデータを第1段目から順次シフトしていく所定段数のビット記憶手段を有するシフトレジスタと、
クロック信号に同期して、前記入力手段により順次入力したシリアルデータの各ビットを前記シフトレジスタの第1段目のビット記憶手段に入力する手段と、所定クロック数が経過して、前記シフトレジスタの第1段目から第n段目のビット記憶手段に前記シリアルデータの1単位であるnビットデータが揃ったとき、第m段目(m<n)から前記nビットデータの最上位ビットが格納されている第n段目までのビット記憶手段から、並列にビットデータを取り出すとともに、該取り出したビットデータの最上位ビット側に、ヘッドマージンとして前記nビットデータの最上位ビットを符号拡張したビットデータを補って、nビットのパラレルデータとして出力する手段と
を備えたことを特徴とするシリアルパラレル変換回路。
A serial-parallel conversion circuit that converts the input serial data into parallel data by adding a predetermined head margin,
Input means for sequentially inputting serial data consisting of n-bit unit data from the most significant bit side in synchronization with the clock signal;
A shift register having a predetermined number of stages of bit storage means for sequentially shifting bit data from the first stage in synchronization with a clock signal;
Means for inputting each bit of serial data sequentially input by the input means to the first bit storage means of the shift register in synchronization with a clock signal; When n-bit data as one unit of the serial data is prepared in the bit storage means from the first stage to the n-th stage, the most significant bit of the n-bit data is stored from the m-th stage (m <n). Bit data taken out in parallel from the bit storage means up to the n-th stage, and the most significant bit of the n-bit data is sign-extended as a head margin on the most significant bit side of the extracted bit data A serial-parallel conversion circuit comprising means for supplementing data and outputting as n-bit parallel data.
入力したシリアルデータに所定のヘッドマージンを付与してパラレルデータに変換するシリアルパラレル変換回路であって、
クロック信号に同期してnビット単位のデータからなるシリアルデータを最下位ビット側から順次入力する入力手段と、
クロック信号に同期してビットデータを第1段目から順次シフトしていくn段のビット記憶手段を有するシフトレジスタと、
クロック信号に同期して、前記入力手段により順次入力したシリアルデータの各ビットを前記シフトレジスタの第m段目(m<n)のビット記憶手段に入力する手段と、
所定クロック数が経過して、前記シフトレジスタの第m段目から第n段目のビット記憶手段に前記シリアルデータの1単位であるnビットデータの上位n−m+1ビットが揃ったとき、該第m段目から第n段目までのビット記憶手段から並列にビットデータを取り出すとともに、該取り出したビットデータの最上位ビット側に、ヘッドマージンとして前記nビットデータの最上位ビットを符号拡張したビットデータを補って、nビットのパラレルデータとして出力する手段と
を備えたことを特徴とするシリアルパラレル変換回路。
A serial-parallel conversion circuit that converts the input serial data into parallel data by adding a predetermined head margin,
Input means for sequentially inputting serial data composed of n-bit unit data from the least significant bit side in synchronization with the clock signal;
A shift register having n stages of bit storage means for sequentially shifting bit data from the first stage in synchronization with a clock signal;
Means for inputting each bit of serial data sequentially input by the input means to a bit storage means of the m-th stage (m <n) of the shift register in synchronization with a clock signal;
When a predetermined number of clocks have passed and the uppermost (n−m + 1) bits of n-bit data, which is one unit of the serial data, are arranged in the m-th to n-th bit storage means of the shift register, the A bit obtained by extracting bit data in parallel from the bit storage means from the m-th stage to the n-th stage, and sign-extending the most significant bit of the n-bit data as a head margin on the most significant bit side of the extracted bit data A serial-parallel conversion circuit comprising means for supplementing data and outputting as n-bit parallel data.
請求項2または3に記載のシリアルパラレル変換回路において、
前記ヘッドマージンの設定量を指定する手段を備えるとともに、前記mの値を可変とし、指定されたヘッドマージンの設定量に応じて前記mの値を決定することを特徴とするシリアルパラレル変換回路。
In the serial parallel conversion circuit according to claim 2 or 3,
A serial-parallel conversion circuit comprising means for designating a set amount of the head margin, wherein the value of m is variable, and the value of m is determined according to the designated set amount of the head margin.
入力したパラレルデータのヘッドマージンを解消してシリアルデータに変換するパラレルシリアル変換回路であって、
パラレルデータを入力する入力手段と、
クロック信号に同期してビットデータを順次シフトしていく所定段数のビット記憶手段を有するシフトレジスタと、
前記入力手段により入力したパラレルデータの各ビットを前記シフトレジスタの連続するビット記憶手段に設定する手段と、
クロック信号に同期して、前記シフトレジスタの所定位置から順次ビットデータを取り出してシリアルデータとして出力するとともに、その出力の際には、データに付与されていたヘッドマージン部分を除き、該ヘッドマージン部分のビット数分の補充ビットを下位側に付与して出力する手段と
を備えたことを特徴とするパラレルシリアル変換回路。
A parallel-serial conversion circuit that eliminates the head margin of input parallel data and converts it to serial data,
Input means for inputting parallel data;
A shift register having a predetermined number of stages of bit storage means for sequentially shifting bit data in synchronization with a clock signal;
Means for setting each bit of parallel data input by the input means in a continuous bit storage means of the shift register;
In synchronization with the clock signal, the bit data is sequentially extracted from a predetermined position of the shift register and output as serial data. At the time of output, the head margin portion is excluded except for the head margin portion added to the data. A parallel-serial conversion circuit comprising means for assigning and outputting supplementary bits corresponding to the number of bits to the lower side.
入力したパラレルデータのヘッドマージンを解消してシリアルデータに変換するパラレルシリアル変換回路であって、
nビット単位のパラレルデータで、そのnビットのデータ中の上位mビットにヘッドマージンが付与されているパラレルデータを入力する入力手段と、
クロック信号に同期してビットデータを第1段目から第n段目に向かって順次シフトしていくn段のビット記憶手段を有するとともに、第1段目のビット記憶手段はそこに設定されたビットデータが第2段目にシフトされたとき所定の補充ビットデータが設定されるシフトレジスタと、
前記入力手段により入力したパラレルデータの1単位であるnビットを、前記シフトレジスタの第1段目から第n段目のビット記憶手段に、前記nビットのデータの最上位側が第n段目の側になるように、設定する手段と、
クロック信号に同期して、前記シフトレジスタの第n−m段目からnクロック分だけ順次ビットデータを取り出してシリアルデータとして出力することにより、前記nビットのデータの下位側のn−mビットとその下位側のmビットの補充ビットとを最上位ビット側からシリアルデータとして出力する手段と
を備えたことを特徴とするパラレルシリアル変換回路。
A parallel-serial conversion circuit that eliminates the head margin of input parallel data and converts it to serial data,
an input means for inputting parallel data in which n bits of parallel data and a head margin is given to the upper m bits of the n-bit data;
In addition to n-stage bit storage means for sequentially shifting bit data from the first stage to the n-th stage in synchronization with the clock signal, the first-stage bit storage means is set there A shift register in which predetermined supplemental bit data is set when the bit data is shifted to the second stage;
The n bits, which are one unit of parallel data input by the input means, are stored in the bit storage means from the first stage to the n-th stage of the shift register, and the most significant side of the n-bit data is the n-th stage. Means to set the side,
In synchronization with the clock signal, bit data is sequentially extracted from the (n−m) th stage of the shift register for n clocks and output as serial data, so that the lower-order n−m bits of the n-bit data A parallel-serial conversion circuit comprising means for outputting the m-supplemented bits on the lower side as serial data from the most significant bit side.
入力したパラレルデータのヘッドマージンを解消してシリアルデータに変換するパラレルシリアル変換回路であって、
nビット単位のパラレルデータで、そのnビットのデータ中の上位mビットにヘッドマージンが付与されているパラレルデータを入力する入力手段と、
クロック信号に同期してビットデータを第1段目から第n+m段目に向かって順次シフトしていくn+m段のビット記憶手段を有するシフトレジスタと、
前記入力手段により入力したパラレルデータの1単位であるnビットを、前記シフトレジスタの第1段目から第n段目のビット記憶手段に、前記nビットのデータの最下位側が第n段目の側になるように、設定するとともに、該設定の際には第n+1段目から第n+m段目のビット記憶手段に所定の補充ビットデータを設定する手段と、
クロック信号に同期して、前記シフトレジスタの第n+m段目からnクロック分だけ順次ビットデータを取り出してシリアルデータとして出力することにより、前記nビットのデータの下位側のn−mビットとその下位側のmビットの補充ビットとを最下位ビット側からシリアルデータとして出力する手段と
を備えたことを特徴とするパラレルシリアル変換回路。
A parallel-serial conversion circuit that eliminates the head margin of input parallel data and converts it to serial data,
an input means for inputting parallel data in which n bits of parallel data and a head margin is given to the upper m bits of the n-bit data;
A shift register having n + m-stage bit storage means for sequentially shifting bit data from the first stage to the n + m-th stage in synchronization with a clock signal;
The n bits, which are one unit of parallel data input by the input means, are stored in the bit storage means from the first stage to the n-th stage of the shift register, and the least significant side of the n-bit data is the n-th stage. Means for setting predetermined supplemental bit data in the bit storage means from the (n + 1) th stage to the (n + m) th stage at the time of setting,
In synchronization with the clock signal, bit data is sequentially extracted for n clocks from the (n + m) -th stage of the shift register and output as serial data, so that the n−m bits on the lower side of the n-bit data and its lower bits And a means for outputting m side supplementary bits as serial data from the least significant bit side.
請求項6または7に記載のパラレルシリアル変換回路において、
前記ヘッドマージンの設定量を指定する手段を備えるとともに、前記mの値を可変とし、指定されたヘッドマージンの設定量に応じて前記mの値を決定することを特徴とするパラレルシリアル変換回路。
The parallel-serial conversion circuit according to claim 6 or 7,
A parallel-serial conversion circuit comprising means for designating a set amount of the head margin, wherein the value of m is variable, and the value of m is determined according to the designated set amount of the head margin.
JP2001335908A 2001-10-31 2001-10-31 Serial parallel conversion circuit and parallel serial conversion circuit Expired - Fee Related JP3705486B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001335908A JP3705486B2 (en) 2001-10-31 2001-10-31 Serial parallel conversion circuit and parallel serial conversion circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001335908A JP3705486B2 (en) 2001-10-31 2001-10-31 Serial parallel conversion circuit and parallel serial conversion circuit

Publications (2)

Publication Number Publication Date
JP2003140881A JP2003140881A (en) 2003-05-16
JP3705486B2 true JP3705486B2 (en) 2005-10-12

Family

ID=19150832

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001335908A Expired - Fee Related JP3705486B2 (en) 2001-10-31 2001-10-31 Serial parallel conversion circuit and parallel serial conversion circuit

Country Status (1)

Country Link
JP (1) JP3705486B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4796983B2 (en) * 2007-03-08 2011-10-19 オンセミコンダクター・トレーディング・リミテッド Serial / parallel conversion circuit, liquid crystal display drive circuit
JP6370329B2 (en) * 2016-04-27 2018-08-08 株式会社藤商事 Game machine

Also Published As

Publication number Publication date
JP2003140881A (en) 2003-05-16

Similar Documents

Publication Publication Date Title
EP0047440A1 (en) Shift circuit
JP3716695B2 (en) Fast Hadamard transformer
JP3003467B2 (en) Arithmetic unit
JP3705486B2 (en) Serial parallel conversion circuit and parallel serial conversion circuit
JP2011028312A (en) Processor, control method thereof, and arithmetic processing program
JP3851024B2 (en) Multiplier
KR950000388B1 (en) Partial multiplier selector for multiplication circuit
KR0143245B1 (en) 2&#39;s complement type serial data operating device using latch
US7472154B2 (en) Multiplication remainder calculator
JP4408727B2 (en) Digital circuit
JP3074958B2 (en) Serial multiplier with addition function
JPH0520024A (en) Method for constituting rotation circuit
US5615141A (en) Multiplying apparatus
JP2937234B2 (en) Barrel shifter
JP3683449B2 (en) Bi-directional barrel shifter
JPH05233213A (en) Serial/parallel conversion circuit
JP2002005994A (en) Test circuit for semiconductor device
JP2968629B2 (en) Maximum period sequence code generation circuit
JPS63163927A (en) Multiplication circuit
JPH0523013Y2 (en)
JPH06103033A (en) Plural fixed magnifier
JP2001014143A (en) Decibel level adjustment device
JPH06120842A (en) Serial/parallel conversion circuit
JPH05289850A (en) Multiplier
JPH0934687A (en) Arithmetic circuit and method therefor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040603

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050629

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: 20050708

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050721

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313532

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: 20090805

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100805

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100805

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110805

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120805

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20130805

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees