JPS6214854B2 - - Google Patents

Info

Publication number
JPS6214854B2
JPS6214854B2 JP1725980A JP1725980A JPS6214854B2 JP S6214854 B2 JPS6214854 B2 JP S6214854B2 JP 1725980 A JP1725980 A JP 1725980A JP 1725980 A JP1725980 A JP 1725980A JP S6214854 B2 JPS6214854 B2 JP S6214854B2
Authority
JP
Japan
Prior art keywords
data
flop
flip
matrix
bits
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
Application number
JP1725980A
Other languages
Japanese (ja)
Other versions
JPS56114043A (en
Inventor
Kengo Fujita
Kiichi Matsuda
Makoto Hiraoka
Toshihiro Pponma
Yutaka Fukuda
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP1725980A priority Critical patent/JPS56114043A/en
Publication of JPS56114043A publication Critical patent/JPS56114043A/en
Publication of JPS6214854B2 publication Critical patent/JPS6214854B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/76Arrangements for rearranging, permuting or selecting data according to predetermined rules, independently of the content of the data

Description

【発明の詳細な説明】 本発明は可変長符号からなる入力信号を固定長
符号からなる信号に変換して出力する符号変換回
路に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a code conversion circuit that converts an input signal consisting of a variable length code into a signal consisting of a fixed length code and outputs the signal.

可変長符号方式は、1ワードを構成すべきビツ
ト数が情報の内容に応じて変化するものであつ
て、1ワードのビツト数が常に一定な固定長符号
方式に対応するものである。可変長符号方式は画
像信号や音声信号等の伝送に用いられ、固定長符
号方式に比べて同一の情報量を伝送するために必
要な全体のビツト数を減少できる利点がある。こ
れに対して固定長符号方式は構成が簡単であり、
一般に多く用いられている。そしてこれら両方式
の間では一般に融通性がなく、符号形式の異なる
系の間には符号変換回路を必要とする。
The variable-length code system is a system in which the number of bits constituting one word changes depending on the content of information, and corresponds to a fixed-length code system in which the number of bits in one word is always constant. The variable length code system is used for transmitting image signals, audio signals, etc., and has the advantage that the total number of bits required to transmit the same amount of information can be reduced compared to the fixed length code system. On the other hand, the fixed-length code system has a simple configuration;
Commonly used. There is generally no flexibility between these two systems, and code conversion circuits are required between systems with different code formats.

第1図は従来の符号変換回路の構成を示すブロ
ツク図である。同図において、1は並列−直列変
換器(P/S)、2は直列−並列変換器(S/
P)、3はレジスタ、4は制御回路である。
FIG. 1 is a block diagram showing the configuration of a conventional code conversion circuit. In the figure, 1 is a parallel-to-serial converter (P/S), and 2 is a series-to-parallel converter (S/
P), 3 is a register, and 4 is a control circuit.

第1図において、可変長符号からなるデータは
1ワードずつ並列に並列−直列変換器1に入力さ
れて、データのビツト数に応じた符号長の直列信
号に変換される。並列−直列変換器1は一定のビ
ツト変を有するので、読出されて生じた直列信号
は、データを含む有効部分とデータを含まない無
効部分とからなつている。直列−並列変換器2は
このような直列信号を受けて、データを含む有効
部分だけを並列信号に変換してレジスタ3に記憶
する。レジスタ3も一定のビツト数を有し、直列
−並列変換器2から入力される有効部分のビツト
数がレジスタ3のビツト数に等しくなつたとき、
その内容を並列に出力する。直列−並列変換器2
からレジスタ3に入力されるデータのビツト数が
レジスタ3のビツト数に満たないときは、レジス
タ3の内容は出力されず、次の直列−並列変換器
の出力データを加算して、レジスタ3のビツト数
に等しくなつたとき出力する。並列−直列変換器
1,直列−並列変換器2およびレジスタ3のこれ
らの動作は、制御回路4は入力の可変長符号デー
タのデータ数情報を受けて所要の制御を行なうこ
とによつて遂行され、このようにして可変長符号
のデータは固定長符号のデータに変換される。
In FIG. 1, data consisting of a variable length code is input word by word in parallel to a parallel-to-serial converter 1, and is converted into a serial signal having a code length corresponding to the number of bits of the data. Since the parallel-to-serial converter 1 has a constant bit variation, the readout resulting serial signal consists of a valid part containing data and an invalid part not containing data. The serial-to-parallel converter 2 receives such a serial signal, converts only the effective portion including data into a parallel signal, and stores the parallel signal in the register 3. Register 3 also has a fixed number of bits, and when the number of bits of the effective part input from serial-parallel converter 2 becomes equal to the number of bits of register 3,
Output the contents in parallel. Series-parallel converter 2
If the number of bits of data input to register 3 is less than the number of bits in register 3, the contents of register 3 are not output, and the output data of the next serial-to-parallel converter is added to the data in register 3. Output when it becomes equal to the number of bits. These operations of the parallel-to-serial converter 1, the serial-to-parallel converter 2, and the register 3 are performed by the control circuit 4 receiving data number information of input variable length code data and performing necessary control. In this way, variable length code data is converted to fixed length code data.

このような従来の符号変換回路は、並列−直列
変換器を含み、直列信号によつて上述のような符
号形式の変換処理を行なつているため、高速デー
タを取扱う領域に適用することが困難であつた。
Such conventional code conversion circuits include parallel-to-serial converters and perform code format conversion processing as described above using serial signals, making them difficult to apply to areas that handle high-speed data. It was hot.

本発明はこのような従来技術の欠点を除去しよ
うとするものであつて、その目的はマトリクスを
使用してデータのビツト位置の変換を行なうこと
によつて処理をすべて並列に行ない、従つて高速
処理に適した変換回路を提供することにある。こ
の目的を達成するため、本発明の符号変換回路に
おいては、並列に入力されたデータを輪状に回転
させて入力データの上位ビツトが第1のフリツプ
フロツプにおける空きビツトに一致するように配
列して出力するマトリクスと、該マトリクスの出
力を記憶するメモリと、該メモリにおける前回変
換時の積残しデータを第1のフリツプフロツプの
同じ位置に書込むとともに前記マトリクスの出力
データから該積残しデータに対応する部分を除い
たデータを第1のフリツプフロツプに書込む切替
器と、該第1のフリツプフロツプに書込まれたデ
ータが所定のビツト数を満たしたときこれを並列
に入力され所要のタイミングにおいて出力する第
2のフリツプフロツプとを具えたことを特徴とし
ている。
The present invention attempts to eliminate such drawbacks of the prior art, and its purpose is to perform all processing in parallel by converting the bit position of data using a matrix, thus achieving high speed. The purpose of the present invention is to provide a conversion circuit suitable for processing. In order to achieve this purpose, the code conversion circuit of the present invention rotates the parallel input data in a ring shape, arranges the data so that the upper bits of the input data match the empty bits in the first flip-flop, and outputs the data. a memory for storing the output of the matrix, a memory for writing the unproduct data from the previous conversion in the memory into the same position of the first flip-flop, and a portion corresponding to the unproduct data from the output data of the matrix; a switching device that writes data excluding the data into a first flip-flop, and a second switching device that inputs the data in parallel and outputs it at a required timing when the data written to the first flip-flop satisfies a predetermined number of bits. It is characterized by having a flip-flop.

以下、実施例について説明する。 Examples will be described below.

第2図は本発明の符号変換回路の一実施例の構
成を示すブロツク図である。同図は可変長符号か
らなる入力データをnビツトの固定長符号からな
る出力データに変換する場合を示している。同図
において11はn×nのマトリクス(回転素
子)、12は積残しデータ記録用のメモリ、13
は積残しデータ挿入用の切替器、14は有効ビツ
ト記憶用のフリツプフロツプ、15は出力用のn
ビツトのフリツプフロツプである。
FIG. 2 is a block diagram showing the configuration of one embodiment of the code conversion circuit of the present invention. This figure shows the case where input data consisting of a variable length code is converted into output data consisting of an n-bit fixed length code. In the figure, 11 is an n×n matrix (rotating element), 12 is a memory for recording residual data, and 13 is a
14 is a flip-flop for storing valid bits; 15 is n for output.
It is a bit flip-flop.

第2図において、入力可変長符号データは1ワ
ードずつ並列にマトリクス1に入力される。マト
リクス11はn×nの回転素子であつて、並列に
入力されたnビツトのデータを、順序を変えるこ
となく任意のビツト数ずつその位置を移動させ
て、あたかもnビツトのデータを回転させたよう
にそのビツト位置を変換して並列に出力する機能
を有する。マトリクス11のこのような機能は、
入力可変長符号データのデータ数情報を受けて動
作する、制御回路16の制御に従つて行なわれ
る。
In FIG. 2, input variable length code data is input into matrix 1 word by word in parallel. The matrix 11 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. It has the function of converting the bit position and outputting it in parallel. These functions of Matrix 11 are
This is carried out under the control of a control circuit 16 which operates in response to data number information of input variable length code data.

マトリクス11の出力は切替器13を経てフリ
ツプフロツプ14へ並列に書込まれる。この際前
回の変換時における積残しのデータがあれば、フ
リツプフロツプ14における並列データの先頭に
付加される。このようにしてフリツプフロツプ1
4に書込まれたデータがnビツトに達しないとき
は、さらに次の変換時、次の可変長符号データの
先頭部がフリツプフロツプ14に書込まれたデー
タの最後尾に付加される。このようにしてフリツ
プフロツプ14に書込まれたデータがnビツトに
なつたとき、その内容は一旦フリツプフロツプ1
5に移され、所要のタイミングにおいて固定長符
号データとして出力される。
The output of matrix 11 is written in parallel to flip-flop 14 via switch 13. At this time, if there is data left over from the previous conversion, it is added to the beginning of the parallel data in the flip-flop 14. In this way, flip-flop 1
If the data written in the flip-flop 14 does not reach n bits, the beginning of the next variable length code data is added to the end of the data written in the flip-flop 14 at the next conversion. When the data written to the flip-flop 14 in this way reaches n bits, the contents are temporarily transferred to the flip-flop 14.
5 and output as fixed length code data at a required timing.

第3図は第2図に示された本発明の符号変換回
路における動作を説明するための図である。同図
においてaは入力の可変長符号データを示し、b
はマトリクス11の出力データを示している。c
はフリツプフロツプ14における固定長符号デー
タの組立てとメモリ12における積残しデータと
を示したものである。またこれら各図において、
,,,はそれぞれのデータにおける変換
のステツプを示したものである。各データは第3
図において上部から下部へ向つて、上位ビツトか
ら下位ビツトの順に配列されている。
FIG. 3 is a diagram for explaining the operation of the code conversion circuit of the present invention shown in FIG. 2. In the figure, a indicates input variable length code data, and b
indicates the output data of the matrix 11. c.
shows the assembly of fixed-length code data in the flip-flop 14 and the remaining data in the memory 12. Also, in each of these figures,
, , indicate the conversion steps for each data. Each data is the third
In the figure, the bits are arranged in order from the upper bit to the lower bit from the top to the bottom.

以下、第3図に例示されたデータについて、第
2図の符号変換回路の動作をさらに詳細に説明す
る。この場合、出力として必要とする固定長符号
データのビツト数はn=8であり、従つて第2図
におけるマトリクス11は8×8の構成を有する
ものとする。
The operation of the code conversion circuit shown in FIG. 2 will be described in more detail below with respect to the data illustrated in FIG. 3. In this case, the number of bits of fixed-length code data required as output is n=8, and therefore the matrix 11 in FIG. 2 has an 8.times.8 configuration.

最初、第3図aに示されたデータa1〜a6が入
力されると、このデータは8ビツト以下であるか
らそのままマトリクス11を経て出力され(第3
図b,)、さらにフリツプフロツプ14に書込
まれる(第3図c,)。次に第3図a,に示
されたデータb1〜b3が入力されると、制御回路1
6はフリツプフロツプ14における下位ビツトの
空きに応じてマトリクス11を制御し、これによ
りマトリクス11は入力データを第3図bに示
すごとく変換して出力する。切替器13はフリツ
プフロツプ14における空きに対応してマトリク
ス11における下位ビツトb1,b2をフリツプフロ
ツプ14に書込み、これと同時に第3図bのマ
トリクス出力は積残しデータを記録するために設
けられているメモリ12に書込まれる(第3図
c,)。これによつてフリツプフロツプ14は
8ビツトの内容が満たされて、その内容がフリツ
プフロツプ15に移される。フリツプフロツプ1
5の内容は所要のタイミングにおいて固定長符号
データとして出力される。
First, when the data a 1 to a 6 shown in FIG.
FIG. 3c,) is further written to the flip-flop 14 (FIG. 3c,). Next, when the data b 1 to b 3 shown in FIG. 3a are input, the control circuit 1
6 controls the matrix 11 according to the availability of the lower bits in the flip-flop 14, so that the matrix 11 converts the input data as shown in FIG. 3b and outputs the converted data. The switch 13 writes the lower bits b 1 and b 2 of the matrix 11 to the flip-flop 14 corresponding to the empty space in the flip-flop 14, and at the same time, the matrix output shown in FIG. 3b is provided to record the remaining data. (FIG. 3c,). As a result, flip-flop 14 is filled with 8-bit contents, and the contents are transferred to flip-flop 15. flipflop 1
The contents of 5 are output as fixed length code data at a required timing.

次に第3図aに示すデータが入力されたと
き、まずメモリ12における上位ビツトb3はフリ
ツプフロツプ14に移される。制御回路16はフ
リツプフロツプ14における下位ビツトの空きに
応じてマトリクス11を制御し、これによりマト
リクス11は入力データを第3図b,に示すご
とく変換して出力する。切替器13はフリツプフ
ロツプ14における空きに対応してマトリクス1
1における下位ビツトc1〜c7をフリツプフロツプ
14に書込み、これと同時にマトリクス11の出
力はメモリ12に書込まれる(第3図c,)。
これによつてフリツプフロツプ14に8ビツトの
データが揃い、その内容はフリツプフロツプ15
に移され、出力される。
Next, when the data shown in FIG. The control circuit 16 controls the matrix 11 according to the availability of lower bits in the flip-flop 14, so that the matrix 11 converts input data as shown in FIG. 3b and outputs the converted data. The switch 13 switches the matrix 1 according to the free space in the flip-flop 14.
The lower bits c 1 to c 7 of 1 are written to flip-flop 14, and at the same time the output of matrix 11 is written to memory 12 (FIG. 3c,).
This completes the 8-bit data in the flip-flop 14, and the contents are stored in the flip-flop 15.
and output.

次に第3図a,に示すデータが入力される
と、メモリ12における上位ビツトc8がフリツプ
フロツプ14に移される。マトリクス11は制御
回路16の制御のもとに入力データを第3図b,
に示すごとく変換して出力する。切替器13は
マトリクス11における下位ビツトd1〜d7をフリ
ツプフロツプ14に書込む(第3図d,)。こ
れによつてフリツプフロツプ14に8ビツトのデ
ータが揃い、フリツプフロツプ15を経て出力さ
れる。
Next, when the data shown in FIG. The matrix 11 receives input data under the control of the control circuit 16 as shown in FIG.
Convert and output as shown below. Switch 13 writes the lower bits d 1 to d 7 in matrix 11 to flip-flop 14 (FIG. 3d). As a result, 8-bit data is prepared in the flip-flop 14 and outputted via the flip-flop 15.

このようにして第2図に示された回路によつて
可変長符号データが固定長符号データに変換され
る。本発明の符号変換回路によれば、データを一
旦直列信号に変換して符号変換の処理を行なう必
要がなく、マトリクスを使用してデータのビツト
位置の変換を行なうことによつて処理をすべて並
列に行なうので、高速処理に適した符号変換回路
を実現することができ、優れた効果が得られる。
In this way, variable length code data is converted into fixed length code data by the circuit shown in FIG. According to the code conversion circuit of the present invention, there is no need to first convert data into a serial signal and perform code conversion processing, but all processing can be performed in parallel by converting the bit position of data using a matrix. Therefore, a code conversion circuit suitable for high-speed processing can be realized, and excellent effects can be obtained.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は従来の符号変換回路の構成を示すブロ
ツク図、第2図は本発明の符号変換回路の一実施
例の構成を示すブロツク図、第3図は第2図に示
された本発明の符号変換回路における動作を説明
するための図である。 1……並列−直列変換器(P/S)、2……直
列−並列変換器(S/P)、3……レジスタ、4
……制御回路、11……マトリクス(回転素
子)、12……メモリ、113……切替器、1
4,15……フリツプフロツプ。
FIG. 1 is a block diagram showing the configuration of a conventional code conversion circuit, FIG. 2 is a block diagram showing the configuration of an embodiment of the code conversion circuit of the present invention, and FIG. 3 is a block diagram showing the configuration of an embodiment of the code conversion circuit of the present invention. FIG. 3 is a diagram for explaining the operation in the code conversion circuit of FIG. 1... Parallel-serial converter (P/S), 2... Series-parallel converter (S/P), 3... Register, 4
... Control circuit, 11 ... Matrix (rotating element), 12 ... Memory, 113 ... Switch, 1
4,15...flip flop.

Claims (1)

【特許請求の範囲】[Claims] 1 並列に入力されたデータを輪状に回転させて
入力データの上位ビツトが第1のフリツプフロツ
プにおける空きビツトに一致するように配列して
出力するマトリクスと、該マトリクスの出力を記
憶するメモリと、該メモリにおける前回変換時の
積残しデータを第1のフリツプフロツプの同じ位
置に書込むとともに前記マトリクスの出力データ
から該積残しデータに対応する部分を除いたデー
タを第1のフリツプフロツプに書込む切替器と、
該第1のフリツプフロツプに書込まれたデータが
所定のビツト数を満たしたときこれを並列に入力
され所要のタイミングにおいて出力する第2のフ
リツプフロツプとを具えたことを特徴とする符号
変換回路。
1. A matrix that rotates data input in parallel in a circular manner and arranges and outputs the data so that the upper bits of the input data match empty bits in the first flip-flop; a memory that stores the output of the matrix; a switching device that writes unproduct data from the previous conversion in the memory to the same position of a first flip-flop, and writes data obtained by removing a portion corresponding to the unproduct data from the output data of the matrix to the first flip-flop; ,
1. A code conversion circuit comprising: a second flip-flop which inputs the data written in the first flip-flop in parallel and outputs it at a required timing when the data satisfies a predetermined number of bits.
JP1725980A 1980-02-15 1980-02-15 Code converting circuit Granted JPS56114043A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1725980A JPS56114043A (en) 1980-02-15 1980-02-15 Code converting circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1725980A JPS56114043A (en) 1980-02-15 1980-02-15 Code converting circuit

Publications (2)

Publication Number Publication Date
JPS56114043A JPS56114043A (en) 1981-09-08
JPS6214854B2 true JPS6214854B2 (en) 1987-04-04

Family

ID=11938956

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1725980A Granted JPS56114043A (en) 1980-02-15 1980-02-15 Code converting circuit

Country Status (1)

Country Link
JP (1) JPS56114043A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4710922A (en) * 1985-12-18 1987-12-01 Advanced Micro Devices, Inc. Apparatus and associated methods for converting serial data pattern signals transmitted or suitable for transmission over a high speed synchronous serial transmission media, to parallel pattern output signals
JP2654452B2 (en) * 1985-12-18 1997-09-17 アドバンスト・マイクロ・ディバイシズ・インコーポレーテッド Apparatus for asynchronously converting heterogeneous variable-width parallel data pattern input signals to serial data pattern signals

Also Published As

Publication number Publication date
JPS56114043A (en) 1981-09-08

Similar Documents

Publication Publication Date Title
JPS6247008B2 (en)
JPH0458670B2 (en)
JPS6214854B2 (en)
JP2587069B2 (en) Circuit device for code conversion of data signal
US4486876A (en) Broadband transmission on limited bandwidth digital line
JPS5938770B2 (en) PCM decoder
SU1015369A1 (en) Analog signal input-output device
SU1264347A1 (en) Converter of pulse-code modulated signals to delta modulated signals
SU843269A1 (en) Code shaping device
SU634266A1 (en) Arrangement for interfacing communication channels with digital computer
JPS6130294B2 (en)
SU1251175A1 (en) Storage
JPH01314023A (en) Digital signal processing circuit
JPS5917456B2 (en) Buffer memory write control method
JPS60168675A (en) Printer
JPH0763151B2 (en) Variable length code decoding circuit
JPS6064573A (en) Picture signal reducing system
JPS641988B2 (en)
JPH03206798A (en) Data string conversion system
SU605208A1 (en) Device for interfacing digital computer with peripherals
KR950013130B1 (en) Apparatus for massive data collection using bank memory
JPH01314021A (en) Mbnb code conversion system
JPS5999541U (en) A/D conversion device
JPH0126208B2 (en)
JPS60233697A (en) Voice output unit