JPS6229812B2 - - Google Patents
Info
- Publication number
- JPS6229812B2 JPS6229812B2 JP1726180A JP1726180A JPS6229812B2 JP S6229812 B2 JPS6229812 B2 JP S6229812B2 JP 1726180 A JP1726180 A JP 1726180A JP 1726180 A JP1726180 A JP 1726180A JP S6229812 B2 JPS6229812 B2 JP S6229812B2
- Authority
- JP
- Japan
- Prior art keywords
- matrix
- length
- word
- code
- output
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F5/00—Methods or arrangements for data conversion without changing the order or content of the data handled
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Description
【発明の詳細な説明】
本発明は固定長符号からなる入力信号を可変長
符号からなる信号に変換して出力する符号からな
る信号に変換して出力するためのビツト位置を変
換する符号変換回路に関するものである。DETAILED DESCRIPTION OF THE INVENTION The present invention provides a code conversion circuit that converts an input signal consisting of a fixed length code into a signal consisting of a variable length code, and outputs the signal. It is related to.
固定長符号方式は1ワードを構成するビツト数
が常に一定な符号方式であつて、1ワードのビツ
ト数が情報の内容に応じて変化する可変長符号方
式に対応するものである。固定長符号と可変長符
号との間では一般に融通性がなく、符号形式の異
なる系の間には符号変換回路を必要とする。 A fixed length code system is a code system in which the number of bits constituting one word is always constant, and corresponds to a variable length code system in which the number of bits in one word changes depending on the content of information. There is generally no flexibility between fixed-length codes and variable-length codes, and code conversion circuits are required between systems with different code formats.
第1図は従来の符号変換回路の構成を示すブロ
ツク図であつて、固定長符号からなる入力データ
を可変長符号からなる出力データに変換するため
の符号変換回路を示している。同図において、1
はマトリクス、2は語長検出回路、3は加算回
路、4,5はフリツプフロツプである。 FIG. 1 is a block diagram showing the configuration of a conventional code conversion circuit, and shows a code conversion circuit for converting input data consisting of fixed length codes into output data consisting of variable length codes. In the same figure, 1
is a matrix, 2 is a word length detection circuit, 3 is an adder circuit, and 4 and 5 are flip-flops.
第1図において、固定長符号からなる入力デー
タはマトリクス1に入力される。マトリクス1は
n×nの回転素子であつて並列に入力されたnビ
ツトのデータを、順序を変えることなく任意のビ
ツト数ずつその位置を移動させて、あたかもnビ
ツトのデータを輪状に回転させたようにそのビツ
ト位置を変換して並列に出力する機能を有する。 In FIG. 1, input data consisting of fixed length codes is input into a matrix 1. Matrix 1 is an n×n rotating element that moves the n-bit data input in parallel by an arbitrary number of bits without changing the order, as if rotating the n-bit data in a ring. It has the function of converting the bit position and outputting it in parallel.
語長検出回路2はマトリクス1の今回の出力に
おける語長を検出する。マトリクス1に入力され
る固定長符号からなる入力データには、それを構
成している可変長符号の境界を示すパターンが挿
入されており、これによつて語長検出回路2はマ
トリクス1の出力における可変長符号の長さを知
ることができる。 The word length detection circuit 2 detects the word length of the current output of the matrix 1. The input data consisting of fixed-length codes input to matrix 1 has a pattern indicating the boundary of the variable-length codes composing it inserted, so that the word length detection circuit 2 outputs the output of matrix 1. You can know the length of the variable length code in .
語長検出回路2で検出された語長に応じて、マ
トリクス1の出力における1ワードの可変長符号
がフリツプフロツプ5に読込まれる。フリツプフ
ロツプ5に読込まれた可変長符号は基本クロツク
で読出されて出力データとなる。 Depending on the word length detected by the word length detection circuit 2, a one-word variable length code at the output of the matrix 1 is read into the flip-flop 5. The variable length code read into the flip-flop 5 is read out using the basic clock and becomes output data.
一方、語長検出回路2の語長信号出力は加算回
路3に加えられて、フリツプフロツプ4に記憶さ
れている、前記マトリクス1を制御するのに用い
られたアドレスに加算され、加算回路3の出力に
よつてフリツプフロツプ4は書替えられる。フリ
ツプフロツプ4の出力はアドレスとしてマトリク
ス1に与えられ、これによつてマトリクス1は検
出された語長に相当するビツト数だけ回転する。
従つてマトリクス1の出力には次の可変長符号の
先頭がその最上位ビツトの位置に現れて、次の変
換動作を待つ。 On the other hand, the word length signal output from the word length detection circuit 2 is applied to an adder circuit 3 and added to the address used to control the matrix 1, which is stored in a flip-flop 4, and the output of the adder circuit 3 is The flip-flop 4 is rewritten by this. The output of flip-flop 4 is applied as an address to matrix 1, thereby causing matrix 1 to rotate by the number of bits corresponding to the detected word length.
Therefore, in the output of matrix 1, the head of the next variable length code appears at the most significant bit position, waiting for the next conversion operation.
第2図は第1図の符号変換回路における動作タ
イミングを説明している。同図においてaは基本
クロツクを示し、(1),(2),……はそれぞれクロツ
クのタイミングである。bは各段階の動作を示
し、Aはマトリクス制御、Bは語長検出、Cは加
算である。このように第1図の回路によつて基本
クロツクごとに、固定長符号入力データから変換
された可変長符号出力データを1ワードずつ出力
することができる。 FIG. 2 explains the operation timing in the code conversion circuit of FIG. 1. In the figure, a indicates the basic clock, and (1), (2), . . . are the clock timings, respectively. b indicates the operation at each stage, A is matrix control, B is word length detection, and C is addition. In this manner, the circuit shown in FIG. 1 can output one word of variable length code output data converted from fixed length code input data for each basic clock.
しかしながら、第1図に示された従来の符号変
換回路は、上述のように基本クロツクの周期で、
マトリクス、語長検出回路、加算回路からなるル
ープが動作する必要がある。そのため、高ビツト
レートのパルス回路に使用しようとする場合、各
回路構成素子に対する速度の要求が極めて厳しく
なる欠点があつた。 However, as mentioned above, the conventional code conversion circuit shown in FIG.
A loop consisting of a matrix, a word length detection circuit, and an adder circuit must operate. Therefore, when used in a high bit rate pulse circuit, the speed requirements for each circuit component are extremely strict.
本発明はこのような従来技術の欠点を除去しよ
うとするものであつて、その目的はn(nは2ま
たは2より大きい正の整数)ワードにわたつて語
長検出を行ない、n基本タイムスロツト内にマト
リクスの制御を行なつて出力を得るようにするこ
とによつて、回路構成素子に対する速度の要求を
緩和することができる符号変換回路を提供するこ
とにある。この目的を達成するため、本発明の符
号変換回路においては、固定長符号からなるデー
タを可変長符号からなるデータに変換するための
回路において、固定長符号からなる入力データを
輪状に回転させて出力するマトリクスと、該マト
リクスの出力における固定長符号の語長を検出す
る語長検出回路と、前記マトリクスの出力を読取
るフリツプフロツプとを具え、前記語長検出回路
における語長検出をn(nは2または2より大き
い正の整数)ワードにわたつて行なうとともに、
該語長検出結果に基づいて前記マトリクスの出力
データをその読出しごとに固定長符号1ワードず
つ一定位置に回転させることを特徴としている。 The present invention attempts to eliminate such drawbacks of the prior art, and its purpose is to perform word length detection over n words (n is 2 or a positive integer greater than 2), and to perform word length detection over n basic time slots. An object of the present invention is to provide a code conversion circuit that can reduce speed requirements for circuit components by controlling a matrix within the process to obtain an output. In order to achieve this object, in the code conversion circuit of the present invention, input data consisting of fixed length codes is rotated in a ring in a circuit for converting data consisting of fixed length codes to data consisting of variable length codes. It is equipped with a matrix to output, a word length detection circuit for detecting the word length of a fixed length code at the output of the matrix, and a flip-flop for reading the output of the matrix, and the word length detection in the word length detection circuit is 2 or a positive integer greater than 2) words, and
The present invention is characterized in that the output data of the matrix is rotated to a fixed position by one fixed length code word each time the output data of the matrix is read out based on the word length detection result.
以下、実施例について説明する。 Examples will be described below.
第3図は本発明の符号変換回路の一実施例の構
成を示すブロツク図である。同図において、11
はマトリクス、12は語長検出回路、13は制御
回路、14,15,16はフリツプフロツプであ
る。同図においてn=2、すなわち2ワードごと
に語長検出を行なう場合が例示されている。 FIG. 3 is a block diagram showing the configuration of an embodiment of the code conversion circuit of the present invention. In the same figure, 11
1 is a matrix, 12 is a word length detection circuit, 13 is a control circuit, and 14, 15, and 16 are flip-flops. In the figure, a case where n=2, that is, word length detection is performed every two words, is illustrated.
第4図は第3図の符号変換回路における動作タ
イミングを説明するための図である。同図におい
てaは基本クロツクのタイミングを示し、bは各
段階の処理を示している。cは可変長符号化のた
めのビツト位置をシフトした符号がマトリクス1
1からフリツプフロツプ14または15に読込ま
れるタイミングを示している。 FIG. 4 is a diagram for explaining the operation timing in the code conversion circuit of FIG. 3. In the figure, a indicates the timing of the basic clock, and b indicates the processing at each stage. c is matrix 1, which is a code with bit positions shifted for variable length encoding.
1 to the flip-flop 14 or 15.
第3図において、固定長符号からなる入力デー
タはマトリクス11に与えられている。マトリク
ス11は第1図について説明したものと同様の機
能を有し、入力データを輪状に回転させてそのビ
ツト位置を移動させて出力するものである。 In FIG. 3, input data consisting of fixed length codes is provided to a matrix 11. The matrix 11 has the same function as that explained with reference to FIG. 1, and rotates the input data in a ring shape to move the bit position and output it.
制御回路13は最初の基本クロツク(1)が入力さ
れたとき、マトリクス11を制御して、入力固定
長符号データ中の前回の動作によつて既に処理を
終つた固定長符号を除く次の固定長符号の先頭
が、マトリクス11の出力における最上位ビツト
に一致するように、固定長符号データを回転させ
る。第4図bにおいて、Aはこのようなマトリク
ス制御のタイミングを示している。 When the first basic clock (1) is input, the control circuit 13 controls the matrix 11 to generate the next fixed-length code excluding the fixed-length code that has already been processed by the previous operation in the input fixed-length code data. The fixed length code data is rotated so that the beginning of the long code matches the most significant bit in the output of matrix 11. In FIG. 4b, A indicates the timing of such matrix control.
第4図bAに示すマトリクス制御が終つたと
き、マトリクス11の上位ビツトにおける1ワー
ドの可変長符号データはフリツプフロツプ14に
読込まれる(第4図c)。これと同時に語長検出
回路12はマトリクス11の出力における語長検
出を2ワードにわたつて行なう(第4図bB)。 When the matrix control shown in FIG. 4bA is completed, one word of variable length code data in the upper bit of the matrix 11 is read into the flip-flop 14 (FIG. 4c). At the same time, the word length detection circuit 12 detects the word length of the output of the matrix 11 over two words (FIG. 4b).
次の基本クロツク(2)が入力されたとき、フリツ
プフロツプ14の内容はフリツプフロツプ16に
読込まれる(第4図bC)。フリツプフロツプ16
の内容はさらに次の基本クロツクによつて読出さ
れて、可変長符号化のためにビツト位置の変換さ
れた符号からなる出力データとなる。 When the next basic clock (2) is input, the contents of flip-flop 14 are read into flip-flop 16 (FIG. 4bC). flipflop 16
The contents of are further read out by the next basic clock, resulting in output data consisting of a code with bit positions converted for variable length encoding.
制御回路13は再びマトリクス11を制御し
て、Bの段階で検出された語長情報に基づいて、
Cの段階で処理を終つた可変長符号を除く次の可
変長符号の先頭がマトリクス11の出力における
最上位ビツトに一致するように、固定長符号デー
タを回転させる動作に移行するが、そのときマト
リクスに入力されたデータの語長が併せてカウン
トされる。第4図bにおいて、Dはこのようなマ
トリクス制御のタイミングを示している。 The control circuit 13 controls the matrix 11 again, and based on the word length information detected at step B,
The operation moves on to rotating the fixed-length code data so that the beginning of the next variable-length code, excluding the variable-length code that has been processed at step C, matches the most significant bit in the output of the matrix 11. The word length of the data input into the matrix is also counted. In FIG. 4b, D indicates the timing of such matrix control.
第4図bDに示すマトリクス制御が終つたと
き、マトリクス11の上位ビツトにおける1ワー
ドの可変長符号データはフリツプフロツプ15に
読込まれる(第4図c)。フリツプフロツプ15
の内容はさらにフリツプフロツプ16に読込ま
れ、フリツプフロツプ16の内容は次の基本クロ
ツクによつて読出されて、可変長符号化のための
ビツト位置をシフトした符号からなる出力データ
となる。なお上述の各動作の段階におけるマトリ
クス以外の各構成要素の動作もそれぞれ制御回路
13の制御に従つて行なわれる。 When the matrix control shown in FIG. 4bD is completed, one word of variable length code data in the upper bit of the matrix 11 is read into the flip-flop 15 (FIG. 4c). flip flop 15
The contents of the flip-flop 16 are further read into the flip-flop 16, and the contents of the flip-flop 16 are read out by the next basic clock to become output data consisting of a code with shifted bit positions for variable length encoding. Note that the operations of each component other than the matrix at each of the above-mentioned operation stages are also performed under the control of the control circuit 13.
このような動作を繰返すことによつて、第3図
の符号変換回路においては、基本クロツクの2周
期ごとに語長検出を行なつて、2ワードの処理を
行なつている。従つて従来の符号変換回路のよう
に基本クロツクの周期で、マトリクス制御および
語長検出を含むループ動作を完了する必要がな
く、各回路構成素子に対する速度要求が大幅に緩
和される。1回の動作によつて処理されるワード
数nが2以上の場合も、同様にして本発明の符号
変換回路を構成することができ、かつnが大きい
ほど各回路構成素子に対する速度要求の緩和上有
利であることは言うまでもない。 By repeating such operations, the code conversion circuit shown in FIG. 3 detects the word length every two cycles of the basic clock and processes two words. Therefore, unlike conventional code conversion circuits, it is not necessary to complete loop operations including matrix control and word length detection in the cycle of the basic clock, and the speed requirements for each circuit component are greatly reduced. Even when the number of words n to be processed in one operation is 2 or more, the code conversion circuit of the present invention can be configured in the same way, and the larger n is, the easier the speed requirements for each circuit component are. Needless to say, it is advantageous.
以上説明したように本発明の符号変換回路によ
れば、各回路構成素子に対する速度要求を緩和す
ることができ、従つて高ビツトレートのパルス回
路に使用する場合、特に有利である。 As explained above, according to the code conversion circuit of the present invention, speed requirements for each circuit component can be relaxed, and therefore, it is particularly advantageous when used in a high bit rate pulse circuit.
第1図は従来の符号変換回路の構成を示すブロ
ツク図、第2図は第1図の符号変換回路における
動作タイミングを説明するための図、第3図は本
発明の符号変換回路の一実施例の構成を示すブロ
ツク図、第4図は第3図の符号変換回路における
動作タイミングを説明するための図である。
1……マトリクス、2……語長検出回路、3…
…加算回路、4,5……フリツプフロツプ、11
……マトリクス、12……語長検出回路、13…
…制御回路、14,15,16……フリツプフロ
ツプ。
FIG. 1 is a block diagram showing the configuration of a conventional code conversion circuit, FIG. 2 is a diagram for explaining the operation timing in the code conversion circuit of FIG. 1, and FIG. 3 is an implementation of the code conversion circuit of the present invention. FIG. 4 is a block diagram showing the configuration of an example, and is a diagram for explaining the operation timing in the code conversion circuit of FIG. 3. 1... Matrix, 2... Word length detection circuit, 3...
... Addition circuit, 4, 5 ... Flip-flop, 11
...Matrix, 12...Word length detection circuit, 13...
...Control circuit, 14, 15, 16...Flip-flop.
Claims (1)
なるデータに変換するための回路において、固定
長符号からなる入力データを輪状に回転させて出
力するマトリクスと、該マトリクスの出力におけ
る固定長符号の語長を検出する語長検出回路と、
前記マトリクスの出力を読取るフリツプフロツプ
とを具え、前記語長検出回路における語長検出を
n(nは2または2より大きい正の整数)ワード
にわたつて行なうとともに、該語長検出結果に基
づいて前記マトリクスの出力データをその読出し
ごとに固定長符号1ワードずつ一定位置に回転さ
せることを特徴とする符号変換回路。1 In a circuit for converting data consisting of fixed-length codes into data consisting of variable-length codes, there is a matrix that rotates input data consisting of fixed-length codes in a ring and outputs the resultant data, and a word of the fixed-length code at the output of the matrix. a word length detection circuit that detects the word length;
a flip-flop for reading the output of the matrix, the word length detection circuit performs word length detection over n (n is 2 or a positive integer greater than 2) words, and the A code conversion circuit characterized in that output data of a matrix is rotated to a fixed position by one fixed length code word each time the output data is read.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1726180A JPS56114044A (en) | 1980-02-15 | 1980-02-15 | Code converting circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1726180A JPS56114044A (en) | 1980-02-15 | 1980-02-15 | Code converting circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS56114044A JPS56114044A (en) | 1981-09-08 |
| JPS6229812B2 true JPS6229812B2 (en) | 1987-06-29 |
Family
ID=11939017
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1726180A Granted JPS56114044A (en) | 1980-02-15 | 1980-02-15 | Code converting circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS56114044A (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH04257939A (en) * | 1991-02-13 | 1992-09-14 | Tokyo Electric Co Ltd | Data processor |
-
1980
- 1980-02-15 JP JP1726180A patent/JPS56114044A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS56114044A (en) | 1981-09-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US3717851A (en) | Processing of compacted data | |
| CA1075817A (en) | Sequential encoding and decoding of variable word length fixed rate data codes | |
| JP2713574B2 (en) | Address mark generation method and circuit | |
| JPS6229812B2 (en) | ||
| US5254995A (en) | Analog to digital peak detector utilizing a synchronization signal | |
| US4453157A (en) | Bi-phase space code data signal reproducing circuit | |
| SE426200B (en) | CONVERSOR FOR CONVERTING A DELTA SIGMA MODULATED SIGNAL TO A HEAD CODE MODULATED SIGNAL | |
| US2973511A (en) | Code converter | |
| JP3190846B2 (en) | Asynchronous readout circuit of binary counter | |
| JPH01314023A (en) | Digital signal processing circuit | |
| SU1547071A1 (en) | Code converter | |
| KR880002500B1 (en) | High speed a/d converter for 16bit | |
| SU1324112A1 (en) | Analog=to-digital converter | |
| SU1264347A1 (en) | Converter of pulse-code modulated signals to delta modulated signals | |
| JPS58161530A (en) | A/D conversion circuit | |
| SU1267624A1 (en) | Binary code-to-modular code converter | |
| JP3088785B2 (en) | Variable length code decoding device | |
| JP3048424B2 (en) | Zero continuous suppression code decoding circuit | |
| JPH039661B2 (en) | ||
| JPS601648B2 (en) | code conversion device | |
| SU1545329A1 (en) | Code form converter | |
| CN120980368A (en) | A Synchronous Unweighted Code Counter | |
| SU1493995A1 (en) | Fibonacci p-number sequence generator | |
| SU868700A1 (en) | Digital follow-up system | |
| JPH054037Y2 (en) |