JPH0220178B2 - - Google Patents
Info
- Publication number
- JPH0220178B2 JPH0220178B2 JP59110218A JP11021884A JPH0220178B2 JP H0220178 B2 JPH0220178 B2 JP H0220178B2 JP 59110218 A JP59110218 A JP 59110218A JP 11021884 A JP11021884 A JP 11021884A JP H0220178 B2 JPH0220178 B2 JP H0220178B2
- Authority
- JP
- Japan
- Prior art keywords
- parallel
- bits
- processing
- data
- pcm signal
- 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)
- Transmission Systems Not Characterized By The Medium Used For Transmission (AREA)
Description
【発明の詳細な説明】
〔発明の技術分野〕
この発明は、折線処理によつて例えば10ビツト
のパルス符号変調(以下、PCMと称する)信号
を8ビツトに圧縮したり、8ビツトから10ビツト
に伸張するための圧伸処理回路に関する。[Detailed Description of the Invention] [Technical Field of the Invention] This invention compresses, for example, a 10-bit pulse code modulation (hereinafter referred to as PCM) signal to 8 bits, or converts 8 bits to 10 bits by polygon processing. The present invention relates to a companding processing circuit for decompressing.
テープ幅が約8mmの磁気テープを用いるヘリカ
ルスキヤン方式のビデオテープレコーダ(以下、
VTRと称する)、いわゆる8mmVTRにおいては、
PCM化された音声信号の記録がオプシヨンとし
て考えられている。この場合、PCM化された音
声信号はビデオトラツクの延長上に記録される。
すなわち、シリンダに対するテープの巻付け角度
を1つのヘツドの角度割より多くとり、複数のヘ
ツドが同時にテープに接する期間を設け、この期
間にPCM化された音声信号を記録するようにな
つている。
A helical scan video tape recorder (hereinafter referred to as
In the so-called 8mm VTR (referred to as VTR),
Recording of PCM audio signals is considered as an option. In this case, the PCM audio signal is recorded on an extension of the video track.
That is, the winding angle of the tape around the cylinder is greater than the angle of one head, a period is provided in which a plurality of heads are in contact with the tape at the same time, and a PCM audio signal is recorded during this period.
磁気テープに記録される音声信号は8ビツトで
あるが、折線処理による圧伸変換により、10ビツ
ト相当のダイナミツクレンジを得ている。 Although the audio signal recorded on magnetic tape is 8 bits, the dynamic range equivalent to 10 bits is obtained through companding conversion using fold line processing.
第3図はPCM記録される音声信号の記録、再
生系のデジタル処理部分を示す回路図である。 FIG. 3 is a circuit diagram showing the digital processing part of the recording and reproducing system of audio signals recorded in PCM.
第3図において、まず記録系の回路を説明する
と、端子11に印加されるアナログの音声信号は
アナログ/デジタル変換回路12に入力され、10
ビツトのデジタルデータに変換される。そして、
10ビツト/8ビツト折線圧縮処理回路13で8ビ
ツトのデジタルデータに圧縮される。この8ビツ
トのデジタルデータは記録処理回路14にて、イ
ンターリーフ、エラー訂正検出コードの付加の処
理を受け、その後、テープフオーマツトに従つた
所定の変調を受ける。この信号を記録増幅回路1
5にて増幅し、最適記録電流にしてヘツド16に
て磁気テープ17に記録する。 In FIG. 3, to first explain the recording system circuit, an analog audio signal applied to a terminal 11 is input to an analog/digital conversion circuit 12,
It is converted into bit digital data. and,
The data is compressed into 8-bit digital data by the 10-bit/8-bit linear compression processing circuit 13. This 8-bit digital data is processed by the recording processing circuit 14 to add an interleaf and an error correction detection code, and then subjected to predetermined modulation according to the tape format. Record this signal Amplifier circuit 1
The signal is amplified at step 5 and recorded on the magnetic tape 17 at the head 16 at an optimum recording current.
次に、再生系の回路を説明すると、ヘツド16
より取り出された電気信号は再生増幅回路18に
て増幅される。そして、再生処理回路19にて、
復調、デインターリーブ、エラー訂正を施された
後、8ビツトのデジタルデータとして取り出され
る。この8ビツトのデジタルデータは8ビツト/
10ビツト折線伸長処理回路20で10ビツトのデジ
タルデータに戻される。このデータはデジタル/
アナログ変換回路21によりアナログ信号に変換
され、端子22に導びかれる。 Next, to explain the reproduction system circuit, the head 16
The electric signal extracted from the regenerative amplifier circuit 18 is amplified. Then, in the reproduction processing circuit 19,
After being subjected to demodulation, deinterleaving, and error correction, it is extracted as 8-bit digital data. This 8-bit digital data is 8-bit/
The data is returned to 10-bit digital data by the 10-bit polygonal line expansion processing circuit 20. This data is digital/
It is converted into an analog signal by an analog conversion circuit 21 and guided to a terminal 22.
8ビツトと10ビツトの圧伸処理は次のようにし
て行われる。10ビツトのデジタルデータは、10進
数で(+511〜−512)の数値情報を表すことがで
きる。これを8ビツト(+127〜−128)で表す為
に、全体を7つのランクに分けて圧伸処理を行
う。圧伸率は0に近い程小さく、0から遠い程大
きい。圧縮の方式としては、2進数の桁の大きい
数になると、下位桁を切り捨てて8ビツトとする
ことを基本としている。ここで、最小値より−3
〜+3(0を含む)を7ランクと名付ける。 8-bit and 10-bit companding processing is performed as follows. 10-bit digital data can represent numerical information (+511 to -512) in decimal notation. In order to represent this in 8 bits (+127 to -128), the whole is divided into seven ranks and the companding process is performed. The closer the companding ratio is to 0, the lower it is, and the farther it is from 0, the higher it is. The basic compression method is that when a binary number has a large number of digits, the lower digits are truncated to 8 bits. Here, -3 from the minimum value
〜+3 (including 0) is named as 7th rank.
まず、記録時の圧縮処理を示す。0ランクは−
16〜+15(1111110000〜0000001111)の範囲で、
この間の数値は単純に下位8ビツトが出力され、
何の処理も受けない。よつて、8ビツトでも、−
16〜+15(11110000〜00001111)である。 First, compression processing during recording will be explained. 0 rank is -
In the range of 16 to +15 (1111110000 to 0000001111),
The lower 8 bits of the numerical value during this period are simply output,
No processing will be done. Therefore, even with 8 bits, -
16 to +15 (11110000 to 00001111).
+1ランコは+16〜+63(0000010000〜
0000111111)の範囲で、ここではLSBが切捨て
られる。切り捨てて下位8ビツトを出力すると、
+16は+8となつて0ランクと同じデータとな
る。これを防ぎ、8ビツトデータを充分に使うた
めに、補正数として8も加える。よつて、8ビツ
トのデジタル信号は+16〜+39(00010000〜
00100111)となる。−1ランクは−17〜−64
(1111101111〜1111000000)の範囲で、補正数が
−8となる以外は+1ランクと同じ処理を受け
る。よつて、出力は−17〜−40(11101111〜
11011000)となる。 +1 Ranko is +16~+63 (0000010000~
0000111111), where the LSB is truncated. If you truncate and output the lower 8 bits,
+16 becomes +8, which is the same data as 0 rank. To prevent this and make full use of 8-bit data, 8 is also added as a correction number. Therefore, an 8-bit digital signal is +16 to +39 (00010000 to
00100111). -1 rank is -17 to -64
(1111101111 to 1111000000), undergoes the same processing as +1 rank except that the correction number is -8. Therefore, the output is −17 to −40 (11101111 to
11011000).
+2ランクは+64〜+319(0001000000〜
0100111111)の範囲で、ここでは、下位2ビツト
が切り捨てられる。加えられる補正数は24で、こ
の結果出力される8ビツトのデータは+40〜+
103(00101000〜01100111)である。−2ランクは
−65〜−320(1110111111〜1011000000)の範囲
で、ここでの処理は、補正数が−24となる以外は
+2ランクの処理と同じである。よつて、出力さ
れる8ビツトデータは−41〜−104(11010111〜
10011000)となる。 +2 rank is +64~+319 (0001000000~
0100111111), and here the lower two bits are truncated. The number of corrections added is 24, and the resulting 8-bit data output is +40 to +
103 (00101000 to 01100111). -2 rank is in the range of -65 to -320 (1110111111 to 1011000000), and the processing here is the same as the processing for +2 rank except that the correction number is -24. Therefore, the output 8-bit data is -41 to -104 (11010111 to
10011000).
+3ランクは+320〜+511(0101000000〜
0111111111)の範囲で、切り捨てるビツトは下位
3桁となり、補正数も+64と大きくなる。この結
果、出力される8ビツトデータは+104〜+127
(01101000〜01111111)となる。−3ランクは−
321〜−512(1010111111〜1000000000)の範囲で、
補正数が−64である以外は+3ランクと同じ処理
を受ける。よつて出力される8ビツトデータは−
105〜−128(10010111〜1000000)である。 +3 rank is +320~+511 (0101000000~
0111111111), the bits to be truncated are the lower three digits, and the correction number is also large, +64. As a result, the output 8-bit data is +104 to +127
(01101000 to 01111111). -3rd rank is-
In the range of 321 to −512 (1010111111 to 1000000000),
It receives the same processing as +3 rank except that the correction number is -64. The 8-bit data thus output is -
105 to −128 (10010111 to 1000000).
再生時は記録時と逆の処理が行われる。すなわ
ち、桁上げを行つた後補正数が引かれる。この場
合、無の情報から、切り捨てられた下位ビツトの
再生はできないので、この切り捨てられたビツト
に対してはすべての0を定めて再生する。 During playback, the reverse processing to that during recording is performed. That is, the correction number is subtracted after carrying. In this case, it is not possible to reproduce the lower bits that have been truncated from the null information, so all 0s are determined and reproduced for the truncated bits.
次に、従来の圧縮処理回路13及び伸張処理回
路20についてそれぞれ第4図及び第5図を参照
しながら説明する。 Next, the conventional compression processing circuit 13 and decompression processing circuit 20 will be explained with reference to FIGS. 4 and 5, respectively.
まず、第4図において、シリアルな10ビツトの
音声PCMデータは、入力端子25より入力され、
シリアル/パラレル変換回路26でパラレルなデ
ータとして記憶される。ここで、ビツト列はaが
LSB(最下位ビツト)、jがMSB(最上位ビツト)
となり、桁順に並んでいる。 First, in FIG. 4, serial 10-bit audio PCM data is input from the input terminal 25,
The serial/parallel conversion circuit 26 stores the data as parallel data. Here, the bit string is a
LSB (least significant bit), j is MSB (most significant bit)
and are arranged in digit order.
この10ビツトの入力データの上位6ビツトはラ
ンク判定回路27に入力され、上記入力データの
7つのランクの判定がなされる。この判定結果に
従つて選択回路28では、8桁のスイツチが連動
して動作し、出力データとするビツト列の桁を10
ビツトの入力データのビツト列から選択すること
で、前述の下位ビツトの切り捨て処理を行う。加
算回路29は上記ランクの判定結果に従つて補正
数を設定し、選択回路28によつて8ビツトとさ
れたデータに加算する。これにより、圧縮された
8ビツトの音声PCMデータが得られたことにな
り、このパラレルな8ビツトデータは、パラレ
ル/シリアル変換回路30にて、シリアルなデー
タに変換され、出力端子31よりLSB“a”から
出力される。 The upper 6 bits of this 10-bit input data are input to a rank determination circuit 27, and the seven ranks of the input data are determined. According to this judgment result, the selection circuit 28 operates 8-digit switches in conjunction to select 10 digits of the bit string to be output data.
By selecting bits from the bit string of the input data, the above-mentioned process of truncating lower bits is performed. The adder circuit 29 sets a correction number according to the above-mentioned rank determination result, and adds it to the data set to 8 bits by the selection circuit 28. As a result, compressed 8-bit audio PCM data is obtained. This parallel 8-bit data is converted into serial data by the parallel/serial conversion circuit 30, and the LSB " a” is output.
次に、第5図を用いて伸張処理を説明する。再
生された8ビツトのシリアルなデータは入力端子
35よりシリアル/パラレル変換回路36に与え
られ、パラレルなデータに変換される。この8ビ
ツトの入力データの上位5ビツトはランク判定回
路37に入力されてランクの判定がなされる。加
算回路38は判定ランクに従つた補正数を設定
し、これを入力データから引く処理を行う。選択
回路39はこの補正加算された入力データをビツ
ト付加により伸張し、10ビツトのパラレルデータ
を得る。このパラレルデータはパラレン/シリア
ル変換回路40にてシリアルなデぶタに変換さ
れ、出力端子41よりLSB“a”から出力され
る。 Next, the decompression process will be explained using FIG. The reproduced 8-bit serial data is applied from an input terminal 35 to a serial/parallel conversion circuit 36, where it is converted into parallel data. The upper 5 bits of this 8-bit input data are input to a rank determination circuit 37 to determine the rank. The addition circuit 38 sets a correction number according to the judgment rank, and performs a process of subtracting this from the input data. The selection circuit 39 expands the corrected and added input data by adding bits to obtain 10-bit parallel data. This parallel data is converted into serial data by the parallel/serial conversion circuit 40, and is output from the output terminal 41 from the LSB "a".
ところで、第4図の圧縮処理回路と第5図の伸
張処理回路を比べた場合、例えば加算回路29と
加算回路38にみられるように、似たような機能
を果す回路が多い。したがつて、各回路を1つに
し、これを圧縮処理と伸張処理で兼用することが
望まれる。
By the way, when comparing the compression processing circuit of FIG. 4 with the decompression processing circuit of FIG. 5, many circuits perform similar functions, as can be seen in the addition circuit 29 and the addition circuit 38, for example. Therefore, it is desirable to have one circuit for each circuit and use it for both compression processing and decompression processing.
しかしながら、従来は圧縮処理と伸張処理にお
ける補正数の演算処理と下位ビツトの処理の順序
が逆である点や後者のビツト処理がデータのパラ
レル処理によつて行われるため、これを実行する
選択回路28と選択回路39の配線が全く異なる
点などにより、圧伸処理と伸張処理を同一回路で
実現することができなかつた。 However, conventionally, the order of calculation of correction numbers and processing of lower bits in compression processing and decompression processing is reversed, and the latter bit processing is performed by parallel processing of data, so the selection circuit that executes this is Due to the fact that the wiring of the selection circuit 28 and the selection circuit 39 are completely different, it has been impossible to realize companding processing and decompression processing with the same circuit.
この発明は上記の事情に対処すべくなされたも
ので、圧縮処理と伸張処理を1つの回路で兼用す
ることができる圧伸処理回路を提供することを目
的とする。
The present invention has been made to address the above-mentioned circumstances, and an object of the present invention is to provide a companding processing circuit that can perform both compression processing and decompression processing in one circuit.
この発明は、圧縮処理における補正数の加算や
伸張処理における補正数の引算といつた補正数の
演算処理を、圧縮処理における下位ビツトの切捨
てや伸張処理における下位ビツトの付加といつた
ビツト処理の前に設定することにより、圧縮処理
と伸張処理を1つの回路で実現することをねらつ
たものである。
The present invention combines correction number arithmetic processing such as addition of correction numbers in compression processing and subtraction of correction numbers in expansion processing, and bit processing such as truncation of lower-order bits in compression processing and addition of lower-order bits in expansion processing. The aim is to realize compression processing and decompression processing in one circuit by setting this before the .
そこで、圧縮処理にて加算される補正数は下位
ピツトを考慮して予め桁上げすることにより、こ
の加算処理をビツトの切捨て処理の前に行うこと
ができるようにしてある。また補正数の演算処理
の済んだデータに対する上記ビツト処理をシリア
ルに行うことにより、圧縮時のビツト切捨てと伸
張時のビツト付加を同一回路で行い得るようにし
てある。すなわち、補正数の演算処理の済んだデ
ータをパラレルに記憶し、これを下位方向にシフ
トしながらシリアルに出力するパラレル/シリア
ル変換主段が設けられる。圧縮時は、これに補正
数が加算されたデータが記憶される。伸張時は、
補正数が引算されたデータの下位に圧縮時の最大
切捨てビツト数と同じビツト数のデータの付加さ
れたものが記憶される。この付加データの各ビツ
トは同じ2進値とらなつている、そしてこのよう
にして得られたパラレルデータをシリアルに出力
する際に、そのLSBをランクの判定結果に従つ
て設定することにより、上記ビツト処理を実現す
るものである。この場合、LSBの選択対称とな
るパラレルデータの下位ビツト数は、上記最大切
捨てビツト数より1多い数となつている。 Therefore, the correction number added in the compression process is carried forward in consideration of the lower pit, so that this addition process can be performed before the bit truncation process. Further, by serially performing the above-mentioned bit processing on the data for which the correction number has been calculated, the same circuit can perform bit truncation during compression and bit addition during expansion. That is, a parallel/serial conversion main stage is provided which stores data in parallel after which the correction number has been calculated, and serially outputs the data while shifting it downward. At the time of compression, the data to which the correction number has been added is stored. When expanding,
Data with the same number of bits as the maximum number of bits to be cut off during compression is added to the lower part of the data from which the correction number has been subtracted. Each bit of this additional data has the same binary value, and when outputting the parallel data obtained in this way serially, by setting its LSB according to the rank determination result, the above This realizes bit processing. In this case, the number of lower bits of the parallel data that is the target of LSB selection is one more than the maximum number of truncated bits.
以下、図面を参照してこの発明の一実施例を詳
細に説明する。
Hereinafter, one embodiment of the present invention will be described in detail with reference to the drawings.
第1図及び第2図は一実施例の構成を示す回路
図で、それぞれ圧縮処理モード、伸張処理モード
を示す。 FIG. 1 and FIG. 2 are circuit diagrams showing the configuration of one embodiment, and show a compression processing mode and an expansion processing mode, respectively.
第1図において、まず、記録時の圧縮処理動作
を説明する。入力端子45には、10ビツトの
PCM信号がシリアルデータ(下位よりa〜j)
として入力される。このシリアルデータは10ビツ
トのシリアル/パラレル変換回路46にてパラレ
ルデータに変換される。ランク判定回路47は上
記パラレルデータの上位6ビツトのデータを用い
てこのパラレルデータのランクを判定する。この
判定結果は加算回路48、LSB選択スイツチ回
路51に送られる。 In FIG. 1, first, the compression processing operation during recording will be explained. The input terminal 45 has a 10-bit
PCM signal is serial data (a to j from the bottom)
is entered as . This serial data is converted into parallel data by a 10-bit serial/parallel conversion circuit 46. The rank determination circuit 47 determines the rank of the parallel data using the upper six bits of the parallel data. This determination result is sent to the adder circuit 48 and the LSB selection switch circuit 51.
加算回路48は上記判定結果に従つて、上述し
たような下位ビツトの切捨てに伴つてランク間で
数値が重なることを避けるための補正数を設定
し、これを上記パラレルデータに加算する。この
場合、加算される補正数は、この加算処理が上述
した従来回路と違つて下位ビツトの切捨て処理の
前に行われるので、切り捨てられるビツト数だけ
桁上げした形で行われる。例えば、+3ランクの
補正数は、前述のように、+64である。これを2
進数で示すと、7桁目“g”に1がたつ。しか
し、後で下位3ビツト切り捨てるので、この発明
では、3桁上の10桁目“j”に1を加えるよう
に、上記加算処理を行う。これは、2進法で下位
3ビツトを切り捨てることは、10進法では8で割
ることだから、その除算の後で加える数を、除算
の前に8倍して加えることに等しいから問題がな
い。なお、数値が負の場合は、桁あふれが生じる
ので、加算回路48の出力ビツトには桁あふれビ
ツトが用意され、全体で11ビツト(下位よりa〜
k)とされている。 The adder circuit 48 sets a correction number in order to avoid overlapping of numerical values between ranks due to the above-described truncation of the lower bits, and adds this to the parallel data, according to the above-mentioned determination result. In this case, the correction number to be added is carried in the form of a carry by the number of bits to be truncated, because unlike the conventional circuit described above, this addition process is performed before the truncation process of the lower bits. For example, the correction number for +3 rank is +64, as described above. This 2
When expressed in base numbers, the 7th digit "g" is 1. However, since the lower 3 bits will be discarded later, in the present invention, the above addition process is performed so that 1 is added to the 10th digit "j" which is three digits higher. This is not a problem because cutting off the lower 3 bits in binary system means dividing by 8 in decimal system, so it is equivalent to multiplying the number added after the division by 8 and adding it before the division. . Note that when the numerical value is negative, overflow occurs, so an overflow bit is prepared for the output bits of the adder circuit 48, and a total of 11 bits (from a to
k).
このようにして得られた11ビツトのパラレルデ
ータは11ビツトのパラレル/シリアル変換回路5
0に入力される。加算回路48の下位3ビツトと
パラレル/シリアル変換回路49の下位3ビツト
との間には、スイツチ回路49が挿入されてい
る。このスイツチ回路49は、便宜上、機械的ス
イツチで示される3個のスイツチ491〜493
を有する。各スイツチ491〜493は上記11ビ
ツトデータの下位3ビツトの各ビツトに対応す
る。圧縮処理においては、各スイツチ491〜4
93の可動接片xはいずれも固定接点yに接続さ
れており、下位3ビツト“a”〜“c”のデータ
はそれぞれスイツチ491〜493を介してパラ
レル/シリアル変換回路50に入力される。 The 11-bit parallel data obtained in this way is sent to the 11-bit parallel/serial converter circuit 5.
It is input to 0. A switch circuit 49 is inserted between the lower three bits of the adder circuit 48 and the lower three bits of the parallel/serial conversion circuit 49. This switch circuit 49 includes three switches 491 to 493, which are shown as mechanical switches for convenience.
has. Each of the switches 491-493 corresponds to the lower three bits of the 11-bit data. In the compression process, each switch 491 to 4
The movable contacts x 93 are all connected to the fixed contact y, and the data of the lower three bits "a" to "c" are input to the parallel/serial conversion circuit 50 via switches 491 to 493, respectively.
スイツチ回路49のスイツチ数は、圧縮処理に
おいて切り捨てられる最大ビツト数、今の例で
は、±3ランクで切り捨てられる3ビツトに一致
する。 The number of switches in the switch circuit 49 corresponds to the maximum number of bits to be truncated in the compression process, in this example, 3 bits to be truncated at ±3 ranks.
パラレル/シリアル変換回路50に記憶された
11ビツトのパラレルデータは、LSB選択スイツ
チ回路51にて適宜LSBを設定され、このLSB
も含めた上位ビツトのパラレルデータが8ビツト
圧縮PCM信号としてシリアルに出力端子52に
導びかれる。 stored in the parallel/serial conversion circuit 50
The LSB of the 11-bit parallel data is set appropriately by the LSB selection switch circuit 51, and this LSB
The high-order bit parallel data including the 8-bit compressed PCM signal is serially led to the output terminal 52.
すなわち、便宜上、機械的スイツチで示される
スイツチ回路51は、パラレル/シリアル変換回
路50の下位4ビツトに接続される4つの固定接
点q1〜q4を有する。そして、ランク判定回路47
にて判定されたランクに従つて可動接片pが固定
接点q1〜q4のいずれか1つに接続され、接続され
た固定接点に対応するビツトをLSBとして選択
すようになつている。例えば、可動接片pが固定
接点q1に接続されると、圧縮PCM信号としては、
aをLSBとしてa〜hの下位8ビツトのデータ
が出力される。これは、下位ビツトの切捨てが
0、つまり下位ビツトの切捨てが無いから0ラン
クの処理に相当する。固定接点q2に対する接続で
は、出力はb〜iの8ビツトとなり、aは切り捨
てられる。固定接点q3に対する接続では、出力は
c〜jの8ビツトとなり、a、b2桁が切り捨て
られる。固定接点q4に対する接続では、出力はd
〜kの8ビツトとなり、1a〜cの3桁が切り捨
てられる。このようにして、0、±1〜±3ラン
クの下位ビツトの切捨てによる圧縮処理が行わ
れ、8ビツトのPCM信号がシリアルデータとし
て出力端子52より出力される。 That is, the switch circuit 51, which is shown as a mechanical switch for convenience, has four fixed contacts q 1 to q 4 connected to the lower four bits of the parallel/serial conversion circuit 50. And rank determination circuit 47
The movable contact piece p is connected to any one of the fixed contacts q 1 to q 4 according to the rank determined in , and the bit corresponding to the connected fixed contact is selected as the LSB. For example, when the movable contact p is connected to the fixed contact q 1 , the compressed PCM signal is
The lower 8 bits of data a to h are output, with a being the LSB. This corresponds to 0-rank processing because the lower bits are truncated to 0, that is, the lower bits are not truncated. When connected to the fixed contact q2 , the output is 8 bits b to i, and a is truncated. When connected to fixed contact q3 , the output is 8 bits c to j, with two digits a and b being truncated. For the connection to fixed contact q 4 , the output is d
~k is 8 bits, and 3 digits 1a~c are truncated. In this way, compression processing is performed by truncating the lower bits of ranks 0, ±1 to ±3, and an 8-bit PCM signal is output from the output terminal 52 as serial data.
なお、スイツチ回路51において、下位ビツト
に接続される固定接点の数は、切り捨てられる最
大ビツト数より1多くなつている。 In the switch circuit 51, the number of fixed contacts connected to the lower bits is one more than the maximum number of bits to be discarded.
次に、第2図を用いて再生時の伸張処理を説明
する。この場合は、先の圧縮処理に比べて各回路
の処理が若干異なる点を除いて、圧縮処理と同じ
ような流れで処理される。 Next, the decompression process during playback will be explained using FIG. In this case, processing is performed in the same flow as the compression processing, except that the processing of each circuit is slightly different from the previous compression processing.
すなわち、再生された8ビツトのシリアルな
PCM信号は入力端子45よりシリアル/パラレ
ル変換回路46に入力され8ビツトのパラレルデ
ータとされる。ランク判定回路47は、今度は、
8ビツトのパラレルデータの上位ビツトを使つて
このパラレルデータのランクを判定する。加算回
路48は判定されたランクに応じた補正数を設定
し、上記8ビツトのパラレルデータに加算する。
この場合の補正数は上記圧縮処理において加算さ
れる補正数(但し、桁上げをしない状態の補正
数)の逆の補正数である。つまり、この伸張処理
においては、加算回路48は、実質的に圧縮処理
において加算された補正数を引く演算を行う。 That is, the reproduced 8-bit serial
The PCM signal is inputted from an input terminal 45 to a serial/parallel conversion circuit 46 and converted into 8-bit parallel data. The rank determination circuit 47 then:
The rank of this parallel data is determined using the upper bits of the 8-bit parallel data. The adder circuit 48 sets a correction number according to the determined rank and adds it to the 8-bit parallel data.
The number of corrections in this case is the inverse of the number of corrections added in the compression process (however, the number of corrections without carry). That is, in this expansion process, the addition circuit 48 essentially performs an operation of subtracting the correction number added in the compression process.
このようにして、補正数の減算された8ビツト
のパラレルデータは上記11ビツトのパラレル/シ
リアル変換回路50の上位8ビツトに入力され
る。また、スイツチ回路49の各スイツチ491
〜493の可動接片xは固定接点zに接続されて
いる。したがつて、上記パラレル/シリアル変換
回路50の下位3ビツトにはそれぞれ2進値、図
示の場合、“0”がセツトされる。 In this way, the 8-bit parallel data from which the correction number has been subtracted is input to the upper 8 bits of the 11-bit parallel/serial conversion circuit 50. In addition, each switch 491 of the switch circuit 49
The movable contact pieces x of ~493 are connected to the fixed contact z. Therefore, the lower three bits of the parallel/serial conversion circuit 50 are each set to a binary value, in the case shown, "0".
このようにして得られた11ビツトのパラレルデ
ータはLSB選択スイツチ回路51によつて下位
4ビツトのいずれか1つがLSBとして選択され、
10ビツトのシリアルデータとして出力端子52か
ら出力される。すなわち、ランク判定回路47の
判定結果が0ランクである場合は、可動接片pは
固定接点q4に接続され、dがLSBとして選択され
る。この場合、10ビツトの伸張シリアルデータは
kを3回繰り返すことにより、“kkkjihgfed”と
して得られる。2進法の数値は、数値情報以上の
桁(例えば“15”は“1111”で4桁までが数値情
報となる)は、正のときは全て“0”、負のとき
は“1”である。したがつて、0ランクでは6桁
以上は数値情報が入らないので、上述したような
処理を行つても問題はない。±1ランクでは、可
動接片pは端子q3に接続され、LSBとして“c”
が選択される。これによりLSBに“0”が付加
され、“kkjihgfedc”なる10ビツトデータがシリ
アルに出力される。同様に、±2ランクでは、可
動接片pは固定接点q2に接続され、下位2ビツト
“cb”に“0”を付加して“kjihgfedcb”なる10
ビツトデータが出力される。±3ランクでは、可
動接片pは固定接点q1に接続され、下位3ビツト
“cba”に“0”を付加して、“jihgfedcba”なる
10ビツトデータが出力される。この場合、“k”
が切り捨てられるが、これは次のような理由によ
り問題はない。すなわち、±3ランクのデータは、
圧縮処理において下位3ビツトを切り捨てて実質
的に7ビツトとなつており、圧縮処理によつて得
られた8ビツトデータのMSB(k)は既に情報を含
んでいないので問題はない。 The LSB selection switch circuit 51 selects one of the lower 4 bits of the 11-bit parallel data thus obtained as the LSB.
It is output from the output terminal 52 as 10-bit serial data. That is, when the determination result of the rank determination circuit 47 is 0 rank, the movable contact p is connected to the fixed contact q4 , and d is selected as the LSB. In this case, 10-bit decompressed serial data is obtained as "kkkjihgfed" by repeating k three times. For binary numbers, all digits greater than numerical information (for example, "15" is "1111" and up to 4 digits are numerical information) are all "0" when positive, and "1" when negative. be. Therefore, since numerical information is not entered for 6 digits or more in the 0 rank, there is no problem even if the above-mentioned processing is performed. In the ±1 rank, the movable contact p is connected to terminal q 3 , and “c” is the LSB.
is selected. As a result, "0" is added to the LSB, and 10-bit data "kkjihgfedc" is serially output. Similarly, in the ±2 rank, the movable contact p is connected to the fixed contact q 2 , and "0" is added to the lower two bits "cb" to make "kjihgfedcb" 10
Bit data is output. In the ±3 rank, the movable contact p is connected to the fixed contact q 1 , and "0" is added to the lower 3 bits "cba", resulting in "jihgfedcba".
10 bit data is output. In this case, “k”
is truncated, but this is not a problem for the following reasons. In other words, the data of ±3 ranks is
In the compression process, the lower 3 bits are discarded to essentially become 7 bits, and the MSB(k) of the 8-bit data obtained by the compression process does not contain any information, so there is no problem.
このように、スイツチ回路51は、伸張処理
時、圧縮処理によつて切り捨てられた下位ビツト
を付加することにより、10ビツトの伸張PCM信
号をシリアルに得る。 In this manner, the switch circuit 51 serially obtains a 10-bit expanded PCM signal by adding the lower bits that were discarded during the compression process during the expansion process.
以上詳述したようにこの実施例によれば、圧縮
処理と伸張処理を1つの回路で処理することがで
きるので、従来の圧伸処理回路に比べ、回路規模
を半減できる。 As described in detail above, according to this embodiment, compression processing and decompression processing can be performed in one circuit, so that the circuit scale can be halved compared to the conventional companding processing circuit.
また、下位ビツトの切捨てや付加はシリアルに
処理されずので、その回路構成が単純化され、従
来の選択回路28,39にみられるように上記処
理をパラレルに行う場合のような複雑な配線を必
要としない。 In addition, since the truncation and addition of lower bits are not processed serially, the circuit configuration is simplified, and the complicated wiring required when performing the above processing in parallel, as seen in the conventional selection circuits 28 and 39, is simplified. do not need.
さらに、スイツチ回路49,51で用いられる
スイツチの数は従来の選択回路28,39で用い
られるスイツチの数に比べかなり少なく、これに
よる素子数の削減も期待できる。 Furthermore, the number of switches used in the switch circuits 49, 51 is considerably smaller than the number of switches used in the conventional selection circuits 28, 39, and a reduction in the number of elements can be expected as a result.
以上のような効果により、集積回路化の際に
も、回路バターンの単純化、集積回路のチツプサ
イズが小型化され大幅なコストダウンが見込まれ
る。また、補正数に演算処理の後にビツト処理を
行うようにし、かつ、後者のビツト処理をスイツ
チ回路51によるLSB選択処理により行うよう
にしたので、ビツト処理の後に捕正数の演算処理
を行う構成に比べ、全体の処理時間の短縮するこ
ととができる。すなわち、ビツト処理の後に妹正
数の減算処理を行う場合は、ビツト処理とパラレ
ル/シリアル変換処理を独立に行わなければなら
ない。これに対し、この実施例では、パラレル/
シリアル変換を行うことにより、結果的にビツト
処理を行うことができるため、ビツト処理専用の
時間が不要となり、それだけ全体の処理時間を短
縮することができるわけである。 As a result of the above-mentioned effects, it is expected that the circuit pattern will be simplified and the chip size of the integrated circuit will be reduced, leading to a significant cost reduction when integrating the circuit. In addition, bit processing is performed on the correction number after arithmetic processing, and the latter bit processing is performed by LSB selection processing by the switch circuit 51. Therefore, the structure is such that the correction number is subjected to arithmetic processing after the bit processing. The overall processing time can be shortened compared to . That is, when subtracting a younger positive number after bit processing, the bit processing and parallel/serial conversion processing must be performed independently. In contrast, in this embodiment, parallel/
By performing serial conversion, bit processing can be performed as a result, so time dedicated to bit processing is no longer required, and the overall processing time can be reduced accordingly.
なお、この発明は先の実施例に限定されるもの
ではなく、この他にも発明の要旨を逸脱しない範
異で種々様々変形実施可能である。 It should be noted that the present invention is not limited to the above-mentioned embodiments, and various other modifications can be made without departing from the gist of the invention.
このようにこの発明によれば、圧縮処理と伸張
処理に兼用できる圧伸処理回路を提供することが
できる。
As described above, according to the present invention, it is possible to provide a companding processing circuit that can be used for both compression processing and decompression processing.
第1図はこの発明の一実施例の構成を示す回路
図で、特に圧縮処理モードを示す図、第2図は同
様に、伸張処理モードを示す回路図、第3図は8
mmVTRにおける従来のPCM処理回路の全体的な
構成を示す回路図、第4図は第3図に示す圧縮処
理回路の構成を示す回路図、第5図は同様に伸長
処理回路の構成を示す回路である。
45……入力端子、46……シリアル/パラレ
ル変換回路、47……ランク判定回路、48……
加算回路、49……スイツチ回路、50……パラ
レル/シリアル変換回路、51……LSB選択ス
イツチ回路、52……出力端子。
FIG. 1 is a circuit diagram showing the configuration of an embodiment of the present invention, particularly showing the compression processing mode, FIG. 2 is a circuit diagram similarly showing the decompression processing mode, and FIG.
A circuit diagram showing the overall configuration of a conventional PCM processing circuit in mmVTR, Figure 4 is a circuit diagram showing the configuration of the compression processing circuit shown in Figure 3, and Figure 5 is a circuit diagram showing the configuration of the decompression processing circuit. It is. 45...Input terminal, 46...Serial/parallel conversion circuit, 47...Rank determination circuit, 48...
Adder circuit, 49... switch circuit, 50... parallel/serial conversion circuit, 51... LSB selection switch circuit, 52... output terminal.
Claims (1)
クに分け、このランクに従つて下位の切捨てビツ
ト数やランク間での数値の重なりを防ぐ補正数を
設定することにより、折線処理によつて上記
PCM信号の圧縮及びこの圧縮されたPCM信号の
伸張を行う圧伸処理回路において、 シリアルに入力されるPCM信号をパラレルに
出力するシリアル/パラレル変換手段と、 このシリアル/パラレル変換手段によりパラレ
ルデータに変換されたPCM信号に基づいてこの
PCM信号のランクを判定するランク判定手段と、 このランク判定手段によつて判定されたランク
に応じた補正数を、圧縮処理時は上記シリアル/
パラレル変換手段によりパラレルデータに変換さ
れたPCM信号に加算し、伸張処理時はこのPCM
信号から減算する演算手段と、 この演算手段から出力されるPCM信号をパラ
レルに記憶し、この記憶データを下位方向にシフ
トしながらシリアルに出力可能なパラレル/シリ
アル変換手段と、 圧縮処理時は上記演算手段から出力される
PCM信号を上記パラレル/シリアル変換手段に
入力し、伸張処理時は、圧縮処理にて切り捨てら
れる最大ビツト数と同じビツト数で各ビツトに同
じ2進値が設定されたデータを上記演算手段から
出力されるPCM信号の下位に付加して上記パラ
レル/シリアル変換手段に入力する入力切換え手
段と、 上記パラレル/シリアル変換手段から出力され
るシリアルデータのLSBを、上記最大切捨てビ
ツト数より1多い下位ビツトの中から上記ランク
判定手段によつて判定されたランクに従つて選択
するLSB選択手段とを具備し、 上記圧縮処理において加算される補正数は切捨
てビツト数に応じて桁上げされるように構成され
ていることを特徴とする圧伸処理回路。[Claims] 1. By dividing the PCM signal into a plurality of ranks according to their levels, and setting the number of lower bits to be cut off according to the ranks and the correction number to prevent numerical overlap between ranks, By processing the above
In the companding processing circuit that compresses the PCM signal and expands the compressed PCM signal, there is a serial/parallel converter that outputs the serially input PCM signal in parallel, and the serial/parallel converter converts the PCM signal into parallel data. This based on the converted PCM signal
A rank determining means for determining the rank of a PCM signal, and a correction number corresponding to the rank determined by this rank determining means, are used for the serial/compression processing during compression processing.
It is added to the PCM signal converted to parallel data by the parallel conversion means, and this PCM signal is added during decompression processing.
An arithmetic means for subtracting from the signal, a parallel/serial conversion means that stores the PCM signal output from this arithmetic means in parallel, and outputs the stored data serially while shifting it downward; and the above during compression processing. output from the calculation means
A PCM signal is input to the parallel/serial conversion means, and during decompression processing, data is output from the calculation means with the same number of bits as the maximum number of bits that can be discarded during compression processing, and the same binary value is set for each bit. an input switching means that adds the lower part of the PCM signal to be input to the parallel/serial converter, and sets the LSB of the serial data output from the parallel/serial converter to one lower bit than the maximum number of bits to be truncated. and LSB selection means for selecting an LSB from among them according to the rank determined by the rank determination means, and configured such that the correction number added in the compression processing is carried in accordance with the number of truncated bits. A companding processing circuit characterized by:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP11021884A JPS60253323A (en) | 1984-05-30 | 1984-05-30 | Companding processing circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP11021884A JPS60253323A (en) | 1984-05-30 | 1984-05-30 | Companding processing circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS60253323A JPS60253323A (en) | 1985-12-14 |
| JPH0220178B2 true JPH0220178B2 (en) | 1990-05-08 |
Family
ID=14530066
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP11021884A Granted JPS60253323A (en) | 1984-05-30 | 1984-05-30 | Companding processing circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS60253323A (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS62276928A (en) * | 1986-05-24 | 1987-12-01 | Kenwood Corp | Signature conversion circuit |
| JPH03155220A (en) * | 1989-11-14 | 1991-07-03 | Matsushita Electric Ind Co Ltd | Data compressor and data expander |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS58156239A (en) * | 1982-03-12 | 1983-09-17 | Hitachi Ltd | Broken line compression/expansion circuit |
-
1984
- 1984-05-30 JP JP11021884A patent/JPS60253323A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS60253323A (en) | 1985-12-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0501755B1 (en) | Video signal recording/reproducing apparatus | |
| US4961204A (en) | PCM signal generating/reproducing apparatus | |
| US4583074A (en) | Expansion circuit for digital signals | |
| JPH0795694B2 (en) | Data compression circuit | |
| JPH0469455B2 (en) | ||
| JPS60253323A (en) | Companding processing circuit | |
| CA1251558A (en) | Method of magnetically recording video signals and an apparatus therefor | |
| US5325240A (en) | Data compression and expansion apparatus for audio recorders | |
| JPS60247333A (en) | Expansion processing circuit | |
| JPH0675339B2 (en) | Magnetic tape recording / playback device | |
| KR970010528B1 (en) | Digital Modulation Method and Apparatus | |
| JP2589475B2 (en) | Digital level display | |
| JP2978181B2 (en) | NTM modulation method | |
| JP2708994B2 (en) | Delta-sigma D / A converter | |
| JP2638344B2 (en) | Digital data converter | |
| JPS5952850B2 (en) | AD conversion device | |
| JP3303365B2 (en) | Error rate display device | |
| JPH04195423A (en) | multiplier | |
| JPH07240071A (en) | Frame generation method for PCM data | |
| JPH07281866A (en) | Data conversion device and data conversion method | |
| JPH087935B2 (en) | Data expansion circuit | |
| JPS6011499B2 (en) | Digital signal loss compensation method | |
| JPS63104261A (en) | Information signal recorder | |
| JPH0792982B2 (en) | PCM data generation circuit and reproduction circuit | |
| JPH06215489A (en) | Recording modulator |