JPH07120964B2 - Extension circuit - Google Patents
Extension circuitInfo
- Publication number
- JPH07120964B2 JPH07120964B2 JP19281188A JP19281188A JPH07120964B2 JP H07120964 B2 JPH07120964 B2 JP H07120964B2 JP 19281188 A JP19281188 A JP 19281188A JP 19281188 A JP19281188 A JP 19281188A JP H07120964 B2 JPH07120964 B2 JP H07120964B2
- Authority
- JP
- Japan
- Prior art keywords
- output
- circuit
- code
- bit
- 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 - Lifetime
Links
Landscapes
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Description
【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、8ビットのμ255法則PCM符号を直線符号へ
伸張する伸張回路に関するものである。The present invention relates to a decompression circuit for decompressing an 8-bit μ255 law PCM code into a linear code.
第4図は例えばエイチ.カネコ,“ア ユニファイド
フォーミュレイション オブ セグメント コンパンデ
ィング ロウズ アンド シンセシス オブ コーズ
アンド ディジタル コンパンダーズ”ビー.エス.テ
ィー.ジェー.,1555ページ,1970年9月(H.KANEKO,“A
Unified Formulation of Segment Companding Laws and
Synthesis of Codes and Digital Compandors"B.S.T.
J.,P1555,SEPT.'70)に記されている従来の伸張回路で
あり、図において、1はPCM符号の極性を反転してある
符号、2はこの符号1の入力を反転させるインバータ、
3はこのインバータ2の出力をシリアル入力としてパラ
レル出力を行うシフトレジスタ、4はこのシフトレジス
タ3の端子T0に入力して、データを順次シリアル信号入
力端子SINより取り込み、シフトしていくクロック、10
0,101,102,103,104,105,106は各々シフトレジスタ3の
出力Q00,Q01,Q02,Q03,Q04,Q05,Q06の信号を示し、5,6は
各々シフトレジスタとダウンカウンタであり、シフトレ
ジスタ5のパラレルデータ入力は、D20,D21,D22,D23,D
24,D25で示され、パラレルデータ入力D25およびシリア
ル信号入力端子SINは接地され、パラレルデータ入力D20
は「1」とされている。FIG. 4 shows, for example, H. Kaneko, “A Unified
Formulation of Segment Companding Laws and Synthesis of Causes
And Digital Companders “BST J., 1555 pages, September 1970 (H.KANEKO,“ A
Unified Formulation of Segment Companding Laws and
Synthesis of Codes and Digital Compandors "BST
J., P1555, SEPT.'70), which is a conventional decompression circuit, in which 1 is a code in which the polarity of the PCM code is inverted, and 2 is an inverter for inverting the input of this code 1,
Reference numeral 3 is a shift register for performing parallel output using the output of the inverter 2 as serial input, and 4 is a clock for inputting to the terminal T 0 of the shift register 3 and sequentially fetching data from the serial signal input terminal S IN and shifting. ,Ten
Reference numerals 0, 101, 102, 103, 104, 105 and 106 respectively indicate the signals Q 00 , Q 01 , Q 02 , Q 03 , Q 04 , Q 05 and Q 06 output from the shift register 3, and reference numerals 5 and 6 denote a shift register and a down counter, respectively. Parallel data input is D 20 ,, D 21 ,, D 22 ,, D 23 , D
24 and D 25 , the parallel data input D 25 and the serial signal input terminal S IN are grounded, and the parallel data input D 20
Is "1".
また、ダウンカウンタ6のパラレルデータ入力D10,D11,
D12には、シフトレジスタ3からのパラレルの出力104〜
106が入力される。In addition, the parallel data inputs D 10 , D 11 ,
The parallel output 104 from the shift register 3 is output to D 12.
106 is entered.
7はシリアル入力モードまたはパラレルにデータをロー
ド(D)するかのモードを設定するモード信号であ
り、シリアル入力モードでは、クロック入力T2およびT1
でデータを各々1つづつシフトして行き、ダウンカウン
タ6はカウントダウンしていく。Reference numeral 7 is a mode signal for setting a serial input mode or a mode for loading (D) data in parallel. In the serial input mode, clock inputs T 2 and T 1
The data is shifted one by one, and the down counter 6 counts down.
8はダウンカウンタ6のデータ出力Q10,Q11,Q12を入力
とするOR回路、9はそのOR回路8の出力とシフトレジス
タ5の出力Q25を入力とするOR回路である。Reference numeral 8 is an OR circuit which receives the data outputs Q 10 , Q 11 and Q 12 of the down counter 6, and 9 is an OR circuit which receives the output of the OR circuit 8 and the output Q 25 of the shift register 5.
10はシフトレジスタ5,ダウンカウンタ6をシフトまたは
カウントダウンさせるクロック(T3)であり、11はこの
クロック10をOR回路8の出力によりダウンカウンタ6の
クロック入力T1またはシフトレジスタ5のクロック入力
T2に切り替えて、供給する切替器である。Reference numeral 10 is a clock (T 3 ) for shifting or counting down the shift register 5 and down counter 6, and 11 is the clock input T 1 of the down counter 6 or the clock input of the shift register 5 by the output of the OR circuit 8.
It is a switching device that switches to T 2 and supplies.
12はシリアル信号による偏位データ、13はこの偏位デー
タ12をクロック10でタイミングをとって出力するための
D−フリップフロップ(以下、DF/Fという)であり、そ
の40が出力データである。Reference numeral 12 is deviation data by a serial signal, 13 is a D-flip-flop (hereinafter, referred to as DF / F) for outputting the deviation data 12 at a timing with a clock 10, and 40 thereof is output data. .
14はこの出力40とOR回路9の出力をクロック10のタイ
ミングで順次加えて行く全加算器であり、15はこの全加
算器14の出力である。Reference numeral 14 is a full adder that sequentially adds the output 40 and the output of the OR circuit 9 at the timing of the clock 10, and 15 is the output of the full adder 14.
次に動作について説明する。まず8ビットの反転してあ
る符号1がインバータ2でさらに反転されて正しい極性
のPCM符号となり、クロック4の立下りでシフトレジス
タ3のシリアルデータ入力端子SIN0より入力されて逐次
シフトされて行き、データ出力Q00100,Q01101,Q02102,Q
03103,Q04104,Q05105,Q06106の順で出力がシフトされ、
出力されて行く。Next, the operation will be described. First, the 8-bit inverted code 1 is further inverted by the inverter 2 to become a PCM code of the correct polarity, which is input from the serial data input terminal S IN0 of the shift register 3 at the falling edge of the clock 4 and sequentially shifted. , Data output Q 00 100, Q 01 101, Q 02 102, Q
The output is shifted in the order of 03 103, Q 04 104, Q 05 105, Q 06 106,
It is output.
8ビットPCM符号のビット構成は第5図のように符号ビ
ットP,セグメントS,量子化ステップ数Qで構成されてお
り、符号ビットPが先にシフトレジスタ3に入力されて
くる。The bit structure of the 8-bit PCM code is composed of a code bit P, a segment S, and a quantization step number Q as shown in FIG. 5, and the code bit P is input to the shift register 3 first.
また、W,X,Y,Zはその量子化ステップ数Qの成分を表わ
し、0または1の値であり、e0,e1,e2はセグメントSの
成分を表わし、これも0または1の2進数である。Further, W, X, Y, Z represent the components of the number of quantization steps Q and have a value of 0 or 1, and e 0 , e 1 , e 2 represent the components of the segment S, which are also 0 or 1. Is a binary number.
これらがシフトレジスタ3に入力され終わると、シフト
レジスタ3のデータ出力と符号の対応はデータ出力(Q
07,Q06,Q05,Q04,Q03,Q02,Q01,Q00)=(P,e2,e1,e0,W,
X,Y,Z)となる。After these are input to the shift register 3, the correspondence between the data output of the shift register 3 and the sign is the data output (Q
07 , Q 06 , Q 05 , Q 04 , Q 03 , Q 02 , Q 01 , Q 00 ) = (P, e 2 , e 1 , e 0 , W,
X, Y, Z).
次にモード信号7がロードD(=0)となって、シフ
トレジスタ5,ダウンカウンタ6には、データ入力(D12,
D11,D10,D20,D21,D22,D23,D24,D25)=(e2,e1,e0,1,W,
X,Y,Z,0)が入力される。Next, the mode signal 7 becomes the load D (= 0), and the shift register 5 and the down counter 6 receive the data input (D 12 ,
D 11 ,, D 10 ,, D 20 ,, D 21 ,, D 22 ,, D 23 , D 24 , D 25 ) = (e 2 , e 1 , e 0 , 1, W,
X, Y, Z, 0) is input.
このダウンカウンタ6のデータ出力D12,D11,D10は
(Q12,Q11,Q10)=(e2,e1,e0)としてOR回路8に入力
され(e2,e1,e0)≠(0,0,0)であれば、このOR回路8
の出力は1となり、まず、クロック10は切替器11により
切り替えられて、ダウンカウンタ6のクロック入力T1に
入力されて、このOR回路8の出力が0となるまでカウン
トダウンして、この間OR回路9の出力はOR回路8の出力
そのものである1がカウント数連続する。The data outputs D 12 , D 11 , D 10 of the down counter 6 are input to the OR circuit 8 as (Q 12 , Q 11 , Q 10 ) = (e 2 , e 1 , e 0 ), and (e 2 , e 1 , e 0 ) ≠ (0,0,0), this OR circuit 8
Becomes 1 and the clock 10 is first switched by the switch 11 to be input to the clock input T 1 of the down counter 6 and counts down until the output of the OR circuit 8 becomes 0, during which the OR circuit The output of 9 is 1 which is the output of the OR circuit 8 itself, and the count continues.
次に、ダウンカウンタ6のデータ出力(Q12,Q11,Q10)
=(0,0,0)となると、OR回路8の出力が0となり、切
替器11によりクロック10はシフトレジスタ5へ切り替わ
り、シフトレジスタ5のクロック入力T2に入力される。Next, the data output of the down counter 6 (Q 12 , Q 11 , Q 10 )
When = (0,0,0), the output of the OR circuit 8 becomes 0, the switch 10 switches the clock 10 to the shift register 5, and the clock 10 is input to the clock input T 2 of the shift register 5.
このとき、ダウンカウンタ6の出力は(0,0,0)で、OR
回路8の出力も0のままである。したがって、クロック
10の立上りタイミングでシフトレジスタ5のデータ出力
Q25からOR回路9の入力へ、シフトレジスタ5のデータ
入力(D20,D21,D22,D23,D24,D25)のうち、データ入力D
25からの順で出力され、その後はシリアル信号入力端子
SIN=0であるから、0が続いて入力される。At this time, the output of the down counter 6 is (0,0,0), and OR
The output of the circuit 8 also remains 0. Therefore, the clock
Data output of shift register 5 at rising edge of 10
Data input D of the shift register 5 data input (D 20 , D 21 , D 22 , D 23 , D 24 , D 25 ) to the input of the OR circuit 9 from Q 25
The signals are output in order from 25 , and then serial signal input terminals
Since S IN = 0, 0 is continuously input.
したがって、OR回路9からは、それらの入力信号通りに
出力されて行く。このときの信号列は13個の2進数を形
成する。これを次の第1表に示す。Therefore, the OR circuit 9 outputs the signals according to the input signals. The signal train at this time forms 13 binary numbers. This is shown in Table 1 below.
この第1表において、OR回路9からのシリアル出力はLS
B側から出力されて行き、(e2,e1,e0)を2進数で見た
個数分だけ、(…Z,0)の右側の1が連続する。 In Table 1, the serial output from the OR circuit 9 is LS
It is output from the B side, and 1 on the right side of (... Z, 0) continues for the number of binary numbers of (e 2 , e 1 , e 0 ).
以上の第1表の値は偏位直線符号と呼ばれ、これから偏
位を取り除いた出力が直線符号となる。この偏位を取り
除くためには、10進で33(2進で0 0000 0010 0001)を
差し引けばよい。The values in Table 1 above are called deviation linear codes, and the output from which deviations have been removed is a linear code. In order to remove this deviation, 33 in decimal (0 0000 0010 0001 in binary) should be subtracted.
このため、偏位データ12を何らかのメモリ(図示せず)
から取り出し、クロック10のタイミングで逐次DF/F13を
通して2の補数の形に変換して全加算器14に入力して行
くと、差し引いたのと同じ結果がえられる。この偏位デ
ータ12を2の補数にするために、第4図に示した(0 00
00 0010 0000(LSB))をLSBより入力するとよい。Therefore, the deviation data 12 is stored in some memory (not shown).
When it is taken out from the memory, converted into the form of 2's complement through the DF / F 13 at the timing of the clock 10 and inputted to the full adder 14, the same result as the subtraction is obtained. In order to make this deviation data 12 into two's complement, it is shown in FIG.
It is recommended to input 00 0010 0000 (LSB) from LSB.
従来の伸張回路は以上のように構成されているので、符
号ビットPが正のときのみ有効となっており、負の場合
には正しい変換ができないという問題点があった。Since the conventional decompression circuit is configured as described above, it is effective only when the sign bit P is positive, and there is a problem that correct conversion cannot be performed when the sign bit P is negative.
この発明は上記のような問題点を解消するためになされ
たもので、符号ビットPが負の数(P=1)のときにも
対象を拡大できるとともに、「+0」…0000 0000)と
(「−0」…1000 0000)の2種の異なるPCM符号を直線
符号へ変換したときに、どちらも「0」となる伸張回路
を得ることを目的とする。The present invention has been made in order to solve the above problems, and the target can be expanded even when the sign bit P is a negative number (P = 1), and "+0" ... 0000 0000) and ( The purpose of the present invention is to obtain a decompression circuit in which two different PCM codes (“−0” ... 1000 0000) are both converted to “0” when converted into linear codes.
この発明に係る伸張回路は、直線符号の2の補数を出力
するとともに±0を示す8ビットPCM符号の直線符号を
オール0に変換する変換回路と、この変換回路の出力と
前記直線符号を切替えて出力する切替器とを設けたもの
である。A decompression circuit according to the present invention outputs a two's complement of a linear code and converts a linear code of an 8-bit PCM code indicating ± 0 into all 0s, and switches the output of this conversion circuit and the linear code. And a switching device for outputting the output.
この発明における変換回路は全加算器で直線符号を反転
信号とした1の補数と、13ビットの加数とを逐次加算し
て直線符号の2の補数を出力し、さらに13桁目の加算時
に桁上げ信号を反転させた反転信号と符号ビットとの論
理積をとることにより、直線符号の極性信号を得るか、
8ビットのPCM符号の符号ビット以外の7ビットのすべ
てが0のとき符号ビットとを論理的に組み合わせて、直
線符号の極性信号を得て、負極性の8ビットPCM符号に
も有効に作用する。The conversion circuit according to the present invention sequentially adds the 1's complement whose linear code is an inverted signal and the 13-bit addend in the full adder to output the 2's complement of the linear code, and when the 13th digit is added. Obtain the polarity signal of the linear code by taking the logical product of the inverted signal obtained by inverting the carry signal and the sign bit, or
When all 7 bits other than the sign bit of the 8-bit PCM code are 0, they are logically combined with the sign bit to obtain the polarity signal of the linear code, and it also works effectively for the negative 8-bit PCM code. .
以下、この発明の一実施例を図について説明する。第1
図において、201は2の補数を得るための加数(0 0000
0000 0001)を示し、「1」から先に全加算器202に入力
される。An embodiment of the present invention will be described below with reference to the drawings. First
In the figure, 201 is an addend (0 0000) for obtaining a two's complement.
0000 0001), which is input to the full adder 202 from “1” first.
この全加算器202は加数201の入力と入力15(第4図の全
加算器出力15と同じ)をインバータ15aを通じて1の補
数とした1の補数データ203をクロック10(第4図のク
ロック10と同じ)のタイミングで加算して、全加算器出
力204を出力するものである。This full adder 202 uses the input of addend 201 and the input 15 (same as full adder output 15 of FIG. 4) as 1's complement through inverter 15a to output 1's complement data 203 to clock 10 (clock of FIG. 4). (Same as 10), and the full adder output 204 is output.
205はこの全加算器出力204または上記入力15を切り替え
る切替器であり、符号ビットQ07(第4図シフトレジス
タ3のデータ出力Q07)が正のとき(符号ビットQ07=
0)入力15が出力される。Reference numeral 205 denotes a switch for switching the output 204 of the full adder or the input 15 and when the sign bit Q 07 (data output Q 07 of the shift register 3 in FIG. 4) is positive (sign bit Q 07 =
0) Input 15 is output.
符号ビットQ07が負のときはQ07=1となり、全加算器20
2の出力、すなわち全加算器出力204が切替器出力206と
して出力される。206はその切替器205の出力、すなわち
切替器出力、207は切替器出力206を順次シフトするシフ
トレジスタである。When the sign bit Q 07 is negative, Q 07 = 1 and full adder 20
The second output, that is, the full adder output 204 is output as the switch output 206. 206 is an output of the switch 205, that is, a switch output, and 207 is a shift register that sequentially shifts the switch output 206.
このシフトレジスタ207のデータ出力Q12がLSB、Q0がMSB
を表す。208は全加算器桁上げ信号である。Data output of this shift register 207 Q 12 is LSB, Q 0 is MSB
Represents Reference numeral 208 is a full adder carry signal.
したがって、クロック10が13クロック分入力されると、
全変換が終了していて、このとき全加算器桁上げ信号20
8が1であれば桁上げを示す。Therefore, if clock 10 is input for 13 clocks,
All conversion is completed, and at this time, the full adder carry signal 20
If 8 is 1, it indicates carry.
209は全加算器桁上げ信号208の反転信号である。209aは
反転信号209と符号ビットQ07との論理積をとるAND回路
であり、このAND回路209aと全加算器202とにより、8ビ
ットPCM符号の「+0」,「−0」を直線符号のオール
0に変換する変換回路を構成している。Reference numeral 209 is an inverted signal of the full adder carry signal 208. 209a denotes an AND circuit for taking a logical product of the inverted signal 209 and the sign bit Q 07, by the AND circuit 209a and the full adder 202, the 8-bit PCM code "+0", "- 0" of the linear code A conversion circuit for converting all 0s is configured.
210はこの論理積回路209aの出力、すなわち上記反転信
号209の出力と符号ビットQ07との論理積の出力であり、
1であれば負極性、0であれば正極性を示す直線符号の
極性信号である。210 is the output of this AND circuit 209a, that is, the output of the AND of the inverted signal 209 and the sign bit Q 07 ,
A polarity signal of a linear code indicating a negative polarity if 1 and a positive polarity if 0.
次に動作について説明する。いま負の数が第4図の全加
算器14から出力され、入力15としてインバータ15aに入
力されると、このインバータ15aにより反転され、1の
補数データ203がシリアルの全加算器202へ入力される。
これは1の補数と呼ばれていて、これと(0 0000 0000
0001)の加数201とが全加算器202に入力されてクロック
10に基づき全加算される。Next, the operation will be described. Now, when a negative number is output from the full adder 14 of FIG. 4 and is input as the input 15 to the inverter 15a, it is inverted by this inverter 15a and the 1's complement data 203 is input to the serial full adder 202. It
This is called the one's complement, and this and (0 0000 0000
0001) addend 201 is input to full adder 202
It is fully added based on 10.
これにより、全加算器202から出力される全加算器出力2
04は2の補数となる。いま負極性であるから、切替器20
5は全加算器出力204を切替器出力206として出力してシ
フトレジスタ207へ順次入力させる。最後の13桁目が終
わってシフトレジスタ207へその結果が入力されると、
そのときの極性が直線符号の極性信号210として出力さ
れる。正であれば0、負であれば1となる。As a result, the full adder output 2 output from the full adder 202
04 is a two's complement. Switcher 20
5 outputs the full adder output 204 as the switch output 206 and sequentially inputs it to the shift register 207. When the last 13th digit is over and the result is input to the shift register 207,
The polarity at that time is output as a polarity signal 210 having a linear code. It is 0 if positive and 1 if negative.
このことを実例を用いて示す。8ビットPCM符号で直線
符号の0に相当するのは次の二つのコードである。すな
わち、 「+0」… 0000 0000=00H 「−0」… 1000 0000=80H これを直線符号に変換すると、 前者は「+0」…0(極性)0000 0000 0000 0 後者は「−1」…1(極性)0000 0000 0000 0 となり、「−0」に負符号が残り、2の補数形式の負の
フルスケールとなってしまい、直線符号の0とはならな
い。This will be shown using an actual example. In the 8-bit PCM code, the following two codes correspond to 0 of the linear code. That is, "+0" ... 0000 0000 = 00H "-0" ... 1000 0000 = 80H When this is converted into a linear code, the former is "+0" ... 0 (polarity) 0000 0000 0000 0 The latter is "-1" ... 1 ( (Polarity) 0000 0000 0000 0, a negative sign remains in “−0”, and it becomes a negative full scale in the two's complement form, and does not become 0 of a linear code.
そこで、第1図の全加算器202の桁上げ信号208と符号ビ
ットQ07の信号を見ると第2図の真理値表が満たせて正
しく直線符号化ができ、「+0」,「−0」ともにすべ
て0となる結果が得られる。直線符号の極性信号210は
第2図の真理値表を元に構成された回路の出力となって
いる。Therefore, looking at the carry signal 208 of the full adder 202 and the signal of the sign bit Q 07 in FIG. 1, the truth table in FIG. 2 can be satisfied, and the straight line coding can be correctly performed, and “+0” and “−0” can be obtained. The result that both are all 0 is obtained. The polar code polarity signal 210 is the output of a circuit constructed based on the truth table of FIG.
なお、直線符号の極性信号210を出すのに、シリアルの
全加算器202の桁上げ信号208を基に示したが、この発明
の他の実施例を第3図について説明する。この第3図に
おいて、1,2,3,100〜106で示す部分は第4図と同様であ
り、シフトレジスタ3の出力100〜106までをこの第3図
では並列に出力させたものであり、他の処理系統は第1
図と同様であるが、第1図の直線信号の極性信号210を
得るための反転信号209と符号ビットQ07を入力するAND
回路が省略されている。Although the polarity signal 210 of the linear code is output based on the carry signal 208 of the serial full adder 202, another embodiment of the present invention will be described with reference to FIG. In FIG. 3, the parts indicated by 1,2,3,100 to 106 are the same as those in FIG. 4, and the outputs 100 to 106 of the shift register 3 are output in parallel in FIG. Is the first processing system
Same as the figure, but AND which inputs the inverted signal 209 and the sign bit Q 07 to obtain the polarity signal 210 of the linear signal of FIG.
The circuit is omitted.
また、400は8ビットPCM符号の符号ビットQ07を除いた
符号S,Q(セグメントS,量子化ステップQ)の値を示すN
OR回路400aの出力であり、その入力の全てが0のとき出
力400は1となり、NAND回路400bの出力401は「−0」の
ときのみ符号ビットQ07=1であるから「−0」のとき
0となり、AND回路400cの出力は0となるので、第2図
の真理値表を満たす符号(直線信号の極性信号210)を
出力できる。Also, 400 indicates the value of the code S, Q (segment S, quantization step Q) excluding the code bit Q 07 of the 8-bit PCM code N
It is the output of the OR circuit 400a, the output 400 is 1 when all of its inputs are 0, and the output 401 of the NAND circuit 400b is the sign bit Q 07 = 1 only when the output is "-0", so that "-0" is output. At this time, the value becomes 0, and the output of the AND circuit 400c becomes 0. Therefore, a code (polarity signal 210 of the linear signal) that satisfies the truth table of FIG. 2 can be output.
かくして、第1図における全加算器202とAND回路209aに
よる8ビットPCM符号の2種類の0を直線符号のオール
0に変換する変換回路と同等の変換回路をシフトレジス
タ3の出力とNOR回路400aとNAND回路400bとAND回路400c
とにより構成している。Thus, a conversion circuit equivalent to the conversion circuit for converting the two types of 0 of the 8-bit PCM code into the all 0s of the linear code by the full adder 202 and the AND circuit 209a in FIG. 1 is provided as the output of the shift register 3 and the NOR circuit 400a. AND circuit 400b AND circuit 400c
It consists of and.
さらに、これらをハードウエアで行わずに、ソフトウエ
アで同様のことを実施しても同じ結果が得られる。Further, the same result can be obtained by performing the same thing in software without performing these in hardware.
以上のように、この発明によれば、直線符号の2の補数
を出力するとともに、直線符号の反転信号による1の補
数と13ビットの加数とを加算した桁上げ信号と8ビット
PCM符号の符号ビットとの論理積をとるか、あるいは符
号ビットを除く8ビットPCM符号の7ビットがオール0
を検出してそれと符号ビットとを組み合わせることによ
り、±0を示す8ビットPCM符号の直線符号をオール0
に変換し、直線符号と直線符号の2の補数を切替えて出
力するように構成したので、回路規模をそれ程増すこと
なく、正しい変換ができ、符号ビットPが負のときにも
処理対象を拡大でき、かつ異なる種類の0を示すPCM符
号を直線符号へ変換すると、「+0」,「−0」がもと
に「0」になるという効果がある。As described above, according to the present invention, the two's complement of the linear code is output, and the carry signal and the 8-bit carry signal obtained by adding the one's complement by the inversion signal of the linear code and the 13-bit addend are added.
Logical AND with the sign bit of PCM code, or 7 bits of 8-bit PCM code excluding sign bit are all 0
Is detected and combined with the sign bit, the straight line code of the 8-bit PCM code indicating ± 0 is all 0
Since the linear code and the two's complement of the linear code are switched and output, the correct conversion can be performed without significantly increasing the circuit scale and the processing target is expanded even when the code bit P is negative. If the PCM code indicating 0 which is possible and different type is converted into the linear code, there is an effect that it becomes "0" based on "+0" and "-0".
第1図はこの発明の一実施例による伸張回路の回路図、
第2図は同上実施例における全加算回路桁上げ信号と符
号ビットQ07の関係を示す真理値表、第3図はこの発明
の他の実施例による伸張回路における直線符号の極性信
号を得る回路の回路図、第4図は従来の伸張回路の回路
図、第5図は第4図の伸張回路に適用する8ビットPCM
符号のビット構成を示す説明図である。 3,207はシフトレジスタ、202は全加算器、205は切替
器、209aはAND回路、400aはNOR回路、400bはNAND回路、
400cはAND回路、202,209a,3,400a,400b,400cは変換回
路。 なお、図中、同一符号は同一、または相当部分を示す。FIG. 1 is a circuit diagram of a decompression circuit according to an embodiment of the present invention,
FIG. 2 is a truth table showing the relationship between the carry signal of the full adder circuit and the code bit Q 07 in the above embodiment, and FIG. 3 is a circuit for obtaining the polarity signal of the linear code in the expansion circuit according to another embodiment of the present invention. Fig. 4 is a circuit diagram of a conventional decompression circuit, and Fig. 5 is an 8-bit PCM applied to the decompression circuit of Fig. 4.
It is explanatory drawing which shows the bit structure of a code | symbol. 3, 207 is a shift register, 202 is a full adder, 205 is a switch, 209a is an AND circuit, 400a is a NOR circuit, 400b is a NAND circuit,
400c is an AND circuit, and 202,209a, 3,400a, 400b, 400c are conversion circuits. In the drawings, the same reference numerals indicate the same or corresponding parts.
Claims (1)
偏位データの2の補数とを逐次加算して直線符号を得る
全加算器と、上記8ビットのμ255法則PCM符号が−0を
示している場合に上記直線符号をの補数形式において全
ビット0になるように変換する変換回路と、上記8ビッ
トのμ255法則PCM符号が+0を示している場合に上記全
加算器から出力された直線符号を選択すると共に、上記
8ビットのμ255法則PCM符号が−0を示している場合に
上記変換回路から出力された直線符号を選択する切替器
とを備えた伸張回路。1. A full adder for sequentially adding a 8-bit μ255 law PCM code and a 2's complement of 13-bit deviation data to obtain a linear code, and the 8-bit μ255 law PCM code is −0. In the case where it is shown, a conversion circuit for converting the above linear code so that all the bits are 0 in the complement format, and when the 8-bit μ255 law PCM code shows +0, it is output from the full adder. A decompression circuit having a switch for selecting a linear code and for selecting the linear code output from the conversion circuit when the 8-bit μ255 law PCM code indicates -0.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP19281188A JPH07120964B2 (en) | 1988-08-03 | 1988-08-03 | Extension circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP19281188A JPH07120964B2 (en) | 1988-08-03 | 1988-08-03 | Extension circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0243816A JPH0243816A (en) | 1990-02-14 |
| JPH07120964B2 true JPH07120964B2 (en) | 1995-12-20 |
Family
ID=16297381
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP19281188A Expired - Lifetime JPH07120964B2 (en) | 1988-08-03 | 1988-08-03 | Extension circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH07120964B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109217880B (en) * | 2018-11-15 | 2022-02-11 | 东南大学 | Linear type polar code decoder and design method thereof |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP6161298B2 (en) | 2013-01-21 | 2017-07-12 | 三菱電機株式会社 | Voice search display device |
-
1988
- 1988-08-03 JP JP19281188A patent/JPH07120964B2/en not_active Expired - Lifetime
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP6161298B2 (en) | 2013-01-21 | 2017-07-12 | 三菱電機株式会社 | Voice search display device |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0243816A (en) | 1990-02-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS61214025A (en) | Comparator for difference absolute value | |
| US5181184A (en) | Apparatus for multiplying real-time 2's complement code in a digital signal processing system and a method for the same | |
| JP2585649B2 (en) | Division circuit | |
| US4774686A (en) | Serial digital signal processing circuitry | |
| US4623872A (en) | Circuit for CSD-coding of a binary number represented in two's complement | |
| US6745219B1 (en) | Arithmetic unit using stochastic data processing | |
| US3982112A (en) | Recursive numerical processor | |
| JPH07120964B2 (en) | Extension circuit | |
| US3716843A (en) | Modular signal processor | |
| JP2621535B2 (en) | Code conversion circuit | |
| KR0129751B1 (en) | Apparatus and Method for Encoding and Decoding Data in Surplus Water Systems | |
| CN114895868B (en) | Division operation unit and divider based on two-bit quotient calculation | |
| JP3074958B2 (en) | Serial multiplier with addition function | |
| KR940007925B1 (en) | Accumulator with Code Processing | |
| JP2699358B2 (en) | Decoder circuit | |
| US4141077A (en) | Method for dividing two numbers and device for effecting same | |
| KR0182169B1 (en) | Log value calculation circuit | |
| KR100239631B1 (en) | Digital multiplier | |
| JPS58119046A (en) | Adder and subtracter | |
| SU1179322A1 (en) | Device for multiplying two numbers | |
| JP2890412B2 (en) | Code conversion circuit | |
| JP2513021B2 (en) | Signed digit number sign judgment circuit | |
| SU633013A1 (en) | Binary-to-decimal code converting arrangement | |
| SU1741271A2 (en) | Code converter | |
| SU1390608A1 (en) | Divider |