JPH04207818A - Data compressor - Google Patents

Data compressor

Info

Publication number
JPH04207818A
JPH04207818A JP34045690A JP34045690A JPH04207818A JP H04207818 A JPH04207818 A JP H04207818A JP 34045690 A JP34045690 A JP 34045690A JP 34045690 A JP34045690 A JP 34045690A JP H04207818 A JPH04207818 A JP H04207818A
Authority
JP
Japan
Prior art keywords
data
shift register
bit
bits
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.)
Granted
Application number
JP34045690A
Other languages
Japanese (ja)
Other versions
JP2573746B2 (en
Inventor
Takeshi Okada
健 岡田
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP34045690A priority Critical patent/JP2573746B2/en
Priority to US07/711,013 priority patent/US5325240A/en
Priority to GB9112422A priority patent/GB2246220B/en
Priority to DE4121122A priority patent/DE4121122A1/en
Publication of JPH04207818A publication Critical patent/JPH04207818A/en
Application granted granted Critical
Publication of JP2573746B2 publication Critical patent/JP2573746B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PURPOSE:To obtain a signal processing circuit at low cost by using a shift register which performs the serial/parallel conversion for writing the data into a memory also for compression of data and therefore carrying out the compression concurrently with the conversion of the data. CONSTITUTION:The selectors 24, 25, 30 and 31 select the input A respectively in a normal mode. At the same time, the latches 26 sand 27 hold the higher significant 8 bits out of the PCM data of 16 bits in the timings of the gate signals G1 and G2. Then the selectors 24-31 select the input B respectively in an LP mode. Under such conditions, the latch 26 holds the output of a binary counter 33 equivalent to the higher significant 4 bits of the compression data of 12 bits, a code bit Q0, and the output of an exclusive OR (3 bits) obtained by the EXOR 34, 35 and 36 with use of the signal G1 and in the timing where the higher significant 8 bits (Q0-Q7) of a shift register 23 are all equal to the same code.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、ディジタルオーディオテープレコーダ(以下
DATという)などの記録再生装置に適応されるもので
、データの記録モードとして圧縮モードと非圧縮モード
を有する場合に、両モードに対応してデータを出力でき
るデータ圧縮装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention is applied to a recording and reproducing device such as a digital audio tape recorder (hereinafter referred to as DAT), which has a compressed mode and a non-compressed mode as data recording modes. The present invention relates to a data compression device that can output data in both modes.

従来の技術 記録再生装置において、情報の記録密度を高める方法の
一つとして情報を圧縮して記録する方法が採用されてい
る。たとえば、DATの場合、16ビツトのPCMデー
タをそのまま信号処理して記録するノーマルモードに対
して、16ビツトのPCMデータを12ビツトに圧縮し
たのち信号処理して記録するLP(Long  Pla
y:ロングプレイ)モードがある。
2. Description of the Related Art In conventional technical recording and reproducing apparatuses, a method of compressing and recording information has been adopted as one method of increasing the recording density of information. For example, in the case of DAT, 16-bit PCM data is processed and recorded as is in the normal mode, whereas LP (Long Pla...
y: long play) mode.

ここで、LPモードにおけるデータの圧縮について説明
する。
Here, data compression in LP mode will be explained.

第3図は、LPモードにおける12ビツト圧縮データと
16ビツト非圧縮データとの間の圧縮/伸長の変換則を
示す概略図である。第3図において、16ビツトのPC
Mデータの最上位ビット(15ビツト)を符号ビットと
して12ビツト圧縮データの最上位ビット(11ビツト
)に割り当てて、符号ビットと同じ値が連続するビット
数に応じて“°000′から“111″までの8通りを
第1Oビツトから第8ビツトに割り当てる。そして、符
号ビットと異なる値になったビットにつづ(8ビツト(
“ABCDEFGH”)を第7ビツト〜第0ビツトに割
り当てる。ただし、符号ビットと同じ値か8個以上つづ
いた場合には下位8ビツトを第7ビツト〜第0ビツトに
割り当てる。以上のようにして12ビツトの圧縮データ
に変換する。12ビツトの圧縮データは、第4図に示す
ように、対を成すLチャンネルとRチャンネルのワード
データ(Ll。
FIG. 3 is a schematic diagram showing the compression/expansion conversion rule between 12-bit compressed data and 16-bit uncompressed data in LP mode. In Figure 3, a 16-bit PC
The most significant bit (15 bits) of the M data is assigned as the sign bit to the most significant bit (11 bits) of the 12-bit compressed data, and the code is set from “°000” to “111” depending on the number of consecutive bits with the same value as the sign bit. '' are assigned to the 1st O bit to the 8th bit. Then, the bits that have a value different from the sign bit are assigned (8 bits (
"ABCDEFGH") is assigned to the 7th bit to the 0th bit. However, if the same value as the sign bit or 8 or more consecutive bits are present, the lower 8 bits are assigned to the 7th to 0th bits. The data is converted into 12-bit compressed data as described above. As shown in FIG. 4, the 12-bit compressed data is word data (Ll.

Ri:12ビツト)毎にそれぞれの上位8ヒツトデータ
(Liu、Riu)と、両方の下位4ヒツトを合成した
8ピツトデータ(LRil)との、合わせて3バイトの
シンボルデータとしてメモリーに書き込まれる。一方、
ノーマルモートのときにはLチャンネルとRチャンネル
のワードデータ(16ビツト)毎にそれぞれの上位8ピ
ツトデータ(L i u、  Ri u)と下位8ピツ
トデータ(Li1、R11)の、合わせて4/1イトの
シンボルデータとしてメモリーに書き込まれる。
The upper 8 hit data (Liu, Riu) and the 8 pit data (LRil) which is a combination of both lower 4 hits are written into the memory as 3-byte symbol data for each (Ri: 12 bits). on the other hand,
In normal mode, each word data (16 bits) of the L channel and R channel has a symbol of the upper 8 pit data (L i u, Ri u) and the lower 8 pit data (Li1, R11), totaling 4/1 ite. written to memory as data.

従来のDATでは、以Tの処理を第5図のような構成で
行っていた。ここて、第5図を用いて従来のDATにお
ける記録時の信号処理について説明する。第5図におい
て、外部から入力されたPCMデータは、ロード信号L
Dlによってシフトレジスタ1にロードされてLSBか
ら順に補間・ミュート処理部2にシリアル出力される。
In the conventional DAT, the following processing was performed with a configuration as shown in FIG. Here, signal processing during recording in a conventional DAT will be explained using FIG. In FIG. 5, the PCM data input from the outside is the load signal L
It is loaded into the shift register 1 by Dl and serially output to the interpolation/mute processing unit 2 in order starting from the LSB.

補間・ミュート処理部2ては、PCMデータとともに入
力されたバリデイティ・フラグ(PCMデータの有効性
を示す情報)やシステム・マイコンからのソフトミュー
ト指令(レベルの減衰や消音など)に応じてPCMデー
タを加工する。補間・ミュート処理部2からの出力は、
シフトレジスタ3において16ビツトのパラレル・デー
タに変換される。
The interpolation/mute processing unit 2 processes the PCM data according to the validity flag (information indicating the validity of the PCM data) input with the PCM data and the soft mute command (level attenuation, muting, etc.) from the system microcontroller. Process. The output from the interpolation/mute processing section 2 is
The data is converted into 16-bit parallel data in the shift register 3.

ノーマル・モードの場合(セレクト信号MODE=“0
”)、16ビツトのパラレル・データを上位8ビツトと
下位8ビツトに分けて、それぞれをラッチ4とラッチ5
に保持する。保持したデータは、セレクタ6においてセ
レクト信号5ELIによって定まる所定のタイミングで
上位8ビツトと下位8ビツトをそれぞれ選択し、セレク
タ7を介してデータ・バスに出力されてメモリー8に書
き込まれる。
In the case of normal mode (select signal MODE="0"
”), the 16-bit parallel data is divided into the upper 8 bits and the lower 8 bits, and each is sent to latch 4 and latch 5.
to hold. The high-order 8 bits and low-order 8 bits of the held data are selected by the selector 6 at predetermined timing determined by the select signal 5ELI, and output to the data bus via the selector 7 and written into the memory 8.

一方、LPモードの場合(MODE=“1”)、シフト
レジスタ3から出力された16ビツトのパラレル・デー
タはロード信号LD2によって一旦、シフトレジスタ9
にロードされる。このシフトレジスタ9は、下位の方向
(QOからQF)にデータをシフトし、その際に出力Q
Oをシリアル入力S■に再入力することによってQOに
ロードした最上位ビットMSBを保持しながらシフトす
る。
On the other hand, in the case of LP mode (MODE="1"), the 16-bit parallel data output from shift register 3 is temporarily transferred to shift register 9 by load signal LD2.
loaded into. This shift register 9 shifts data in the lower direction (from QO to QF), and at that time outputs Q.
By re-inputting O to the serial input S■, the most significant bit MSB loaded into QO is retained and shifted.

そして、シフトレジスタ9のパラレル出力のうち、上位
8ビツト(QO−07)かすへて同符号になるまでシフ
トさせる。また、シフトレジスタ9にデータをロードす
ると同時に、バイナリ・カウンタ10をクリア信号CL
Rてリセットしてシフトレジスタ9の上位8ピツトかす
へて同符号になるまでシフト数をカウントする。以上の
ようにして得られたカウント値を排他論理和手段(以下
EXORという’) 11. 12. 13て符号ビッ
トMSBと排他論理和した出力と符号ヒツトMSBをラ
ッチ14(Lチャンネル)とラッチ15(Rチャンネル
)に保持する。また、シフトレジスタ9の下位8ビツト
(Q8〜QF)をラッチ16(Lチャンネル)とラッチ
17(Rチャンネル)にそれぞれ保持することによって
、前述したLPモードの圧縮・伸長側に従った12ビツ
トの圧縮データか生成される。すなわち、ラッチ16に
は第4図における12ビツトワークデータLiの下位8
ビツトか保持され、同様に、ラッチ17には12ピツト
ワークデータRiの下位8ヒツトか保持され、さらに、
ラッチ14とラッチ15には12ヒツトワークデータL
i、Riの上位4ビツトかそれぞれラッチされる。これ
らの圧縮データは、セレクタ18においてセレクト信号
5EL2によって第4図における8ビツト×3バイトの
ノンポルデータに合成されて、Liu、LRil、Ri
uの順にセレクタ7を介してデータ・バスに出力され、
メモリー8に書き込まれる。
Then, among the parallel outputs of the shift register 9, the upper 8 bits (QO-07) are shifted until they have the same sign. Also, at the same time as loading data into the shift register 9, the binary counter 10 is cleared by the clear signal CL.
R is reset, and the number of shifts is counted until the upper eight pits of the shift register 9 reach the same sign. 11. Exclusive OR means (hereinafter referred to as EXOR') uses the count value obtained as described above. 12. 13, the output of the exclusive OR with the sign bit MSB and the sign hit MSB are held in latch 14 (L channel) and latch 15 (R channel). In addition, by holding the lower 8 bits (Q8 to QF) of shift register 9 in latch 16 (L channel) and latch 17 (R channel), 12-bit data processing according to the compression/decompression side of the LP mode described above can be performed. Compressed data is generated. That is, the latch 16 contains the lower 8 of the 12-bit work data Li in FIG.
Similarly, the latch 17 holds the lower eight bits of the 12-pit work data Ri, and further,
12 human work data L for latch 14 and latch 15
The upper 4 bits of i and Ri are each latched. These compressed data are synthesized by the selector 18 with the select signal 5EL2 into 8 bits x 3 bytes of non-pol data in FIG.
output to the data bus via selector 7 in the order of
Written to memory 8.

以上のように、第5図に示す従来のDATの構成ではL
Pモードの場合に16ビツトのシリアルデータをシフト
レジスタでシリアル/パラレル変換したあと、ノーマル
モードとは別に専用のシフトレジスタて圧縮処理を行っ
ていた。
As mentioned above, in the conventional DAT configuration shown in FIG.
In the P mode, 16-bit serial data is converted from serial to parallel using a shift register, and then compression processing is performed using a dedicated shift register, separate from the normal mode.

発明が解決しようとする課題 上記従来の構成では、LPモードの12ビツト圧縮デー
タを生成するための専用のシフトレジスタとその制御手
段、およびデータ保持のためにLPモード専用ラッチか
必要であり、データ圧縮回路を含めた信号処理回路の小
型化と低価格化か十分に実現てきないという問題を有し
ていた。
Problems to be Solved by the Invention The conventional configuration described above requires a dedicated shift register and its control means for generating 12-bit compressed data in LP mode, and a latch dedicated to LP mode to hold data. The problem has been that the miniaturization and cost reduction of signal processing circuits including compression circuits have not been sufficiently realized.

本発明は上記従来の問題を解決するもので、記録再生デ
ータをメモリーに出力するためのシリアル/パラレル変
換用シフトレジスタと、LPモード記録時に16ビツト
のデータを12ビツト圧縮データに変換するためのシフ
トレジスタとを兼用し、また、データを保持するための
ラッチをノーマルモードとLPモードで兼用することに
よって全体の回路規模を小さくすることかできて低価格
化することかできるデータ圧縮装置を提供することを目
的とするものである。
The present invention solves the above-mentioned conventional problems, and includes a shift register for serial/parallel conversion for outputting recorded and reproduced data to memory, and a shift register for converting 16-bit data into 12-bit compressed data when recording in LP mode. Provides a data compression device that can be used both as a shift register and as a latch for holding data in both normal mode and LP mode, thereby reducing the overall circuit size and cost. The purpose is to

課題を解決するための手段 上記課題を解決するために本発明のデータ圧縮装置は、
Nビットのパラレルデータをシリアルデータに変換して
NのM倍(Mal)のビットレートで最下位ピッ) (
LSB)から順に出力し、かつ、その際に最上位ビット
(MSB)を次のパラレルデータのロードまで保持する
第1のシフトレジスタと、前記シリアルデータをパラレ
ルデータに変換する第2のシフトレジスタと、前記第2
のシフトレジスタ中のデータのシフト数をカウントした
カウント値を用いてデータの一部を圧縮する圧縮手段と
、前記第2のシフトレジスタおよび圧縮手段の出力を、
圧縮モードあるいは非圧縮モードに対応して選択する第
1のセレクタと、前記第1のセレクタの出力および第2
のシフトレジスタの出力を保持するラッチ手段と、前記
ラッチ手段の出力を適宜遅延して出力するフリップ・フ
ロップ手段と、前記ラッチ手段の出力および前記フリッ
プ・フロップ手段の出力を、前記圧縮モードあるいは非
圧縮モードに対応して選択する第2のセレクタとを備え
、前記第2のセレクタとラッチ手段の出力として圧縮デ
ータあるいは非圧縮データを得る構成としたものである
Means for Solving the Problems In order to solve the above problems, the data compression device of the present invention includes:
Convert N-bit parallel data to serial data and convert it to the lowest bit at a bit rate of N times M (Mal).
a first shift register that sequentially outputs the serial data starting from the LSB and holds the most significant bit (MSB) until the next load of parallel data; and a second shift register that converts the serial data into parallel data. , said second
compression means for compressing a part of the data using a count value obtained by counting the number of shifts of data in the shift register; and outputs of the second shift register and the compression means;
a first selector that selects a compressed mode or an uncompressed mode, and an output of the first selector and a second selector;
a latch means for holding the output of the shift register; a flip-flop means for appropriately delaying and outputting the output of the latch means; A second selector is provided to select a compression mode in accordance with the compression mode, and compressed data or uncompressed data is obtained as outputs of the second selector and the latch means.

作用 上記構成により、外部から入力されたNビットのデータ
をLSB方向にNのM倍(M>1)のビットレートでシ
フトして、あらかじめ符号ビットである最上位ビットを
余分に付加してシリアル出力し、そして、余分に付加し
た符号ビットとともにPCMデータの処理を行うことに
より、LPモード時のデータ圧縮は、シリアル/パラレ
ル変換を行うシフトレジスタからたとえばメモリーに書
き込むためのデータをラッチするタイミングを制御する
ことて行い、データのシリアル/パラレル変換とデータ
の圧縮を同一のシフトレジスタで行う。したがって、従
来用いていた、記録再生データをメモリーに出力するた
めのシリアル/パラレル変換用シフトレジスタと、LP
モード記録時にたとえば16ビツトのデータを12ビツ
ト圧縮データに変換するためのシフトレジスタとを兼用
し、また、データを保持するためのラッチをノーマルモ
ードとLPモードで兼用するので、全体の回路規模か小
さくなり低コストとなる。
Effect With the above configuration, N-bit data input from the outside is shifted in the LSB direction at a bit rate of M times N (M>1), and an extra most significant bit, which is a sign bit, is added in advance and the data is serialized. By outputting and processing the PCM data along with an extra sign bit, data compression in LP mode improves the timing of latching data from a shift register that performs serial/parallel conversion to, for example, writing to memory. The serial/parallel data conversion and data compression are performed in the same shift register. Therefore, the conventionally used shift register for serial/parallel conversion for outputting recording/reproducing data to memory and the LP
During mode recording, it is also used as a shift register to convert, for example, 16-bit data to 12-bit compressed data, and a latch for holding data is also used in normal mode and LP mode, so the overall circuit size is reduced. Smaller and lower cost.

実施例 以下、本発明の一実施例について図面を参照しながら説
明する。
EXAMPLE Hereinafter, an example of the present invention will be described with reference to the drawings.

第1図は本発明をDATに適用した一実施例によるデー
タ圧縮装置の構成を示すブロック図である。第1図にお
いて、21は16ビツトのシフトレジスタであり、16
ビツトのパラレルデータをシリアルデータに変換して1
6ビツトの16のM倍(M>1)のヒツトレートて最下
位ヒツト(L S B)から順に出力し、かっ、その際
に最上位ヒツト(MSB)を次のパラレルデータのロー
ドまで保持する。すなわち、あらかじめ符号ビットであ
る最上位ヒツトを(M−1)  ・Nの絶対値たけ余分
に付加してシリアル出力する。22は補間・ミュート処
理部であり、PC〜1データとともに入力されたバリデ
イティ・フラグやシステム・マイコンからのソフトミュ
ート指令に応じてPCMデータを加工する。23は16
ビツトのシフトレジスタであり、シリアルデータをパラ
レルデータに変換する。24.25はセレクタであり、
シフトレジスタ23と後述する圧縮手段の出力を、圧縮
モードあるいは非圧縮モードに対応して選択する。26
.27.28.29はラッチであり、セレクタ24.2
5の出力およびシフトレジスタ23の出力を保持する。
FIG. 1 is a block diagram showing the configuration of a data compression device according to an embodiment in which the present invention is applied to a DAT. In FIG. 1, 21 is a 16-bit shift register;
Convert bit parallel data to serial data
A hit rate of 16 M times (M>1) of 6 bits is output in order from the least significant hit (LSB), and at this time, the most significant hit (MSB) is held until the next parallel data is loaded. That is, the most significant hit, which is a sign bit, is added in advance by the absolute value of (M-1).multidot.N, and the result is serially output. Reference numeral 22 denotes an interpolation/mute processing section, which processes the PCM data according to the validity flag inputted with the PC~1 data and a soft mute command from the system microcomputer. 23 is 16
A bit shift register that converts serial data to parallel data. 24.25 is a selector,
The outputs of the shift register 23 and compression means, which will be described later, are selected depending on the compression mode or non-compression mode. 26
.. 27.28.29 are latches and selectors 24.2
5 and the output of shift register 23 are held.

33はバイナリ・カウンタ、34.35.36はEXO
Rてあり、バイナリ・カウンタ33とEXOR34,3
5,36で圧縮手段を構成し、シフトレジスタ23中の
データのシフト数をカウントしたカウント値を用いてデ
ータの一部を圧縮する。37.38.39はフリップ・
フロップ(D−FF’)であり、ラッチ26.27.2
8.29の出力を適宜遅延して出力する。30.31は
セレクタであり、ラッチ26.27.28の出力および
フリップ・フロップ38.39の出力を、圧縮モードあ
るいは非圧縮モードに対応して選択する。32はメモリ
ーであり、セレクタ30.31とラッチ29の出力とし
て圧縮データあるいは非圧縮データを得、データ・バス
を介してこれを記録する。
33 is binary counter, 34.35.36 is EXO
R, binary counter 33 and EXOR 34,3
5 and 36 constitute a compression means, which compresses a part of the data using a count value obtained by counting the number of shifts of data in the shift register 23. 37.38.39 is flip
Flop (D-FF') and latch 26.27.2
8.29 is delayed and output as appropriate. 30.31 is a selector which selects the outputs of the latches 26, 27, 28 and the flip-flops 38, 39 depending on the compression mode or the non-compression mode. 32 is a memory, which obtains compressed data or uncompressed data as outputs of selectors 30, 31 and latch 29, and records this via a data bus.

第1図の動作を第2図のLPモード時におけるタイミン
グ図を用いて説明する。第1図および第2図において、
まず、外部から入力された16ビツトのPCMデータは
、シフトレジスタ21にロード信号LDのタイミングで
ロードされた後、64Fsのビットレートで下位の方向
にシフトされる。その際、符号ビットである最上位ビッ
トをシリアル人力Srに再入力することによって、ロー
ドした16ビツトの符号ビットか連続してシリアル出力
される。符号ビットを付加した32ビツトのPCMデー
タについて、補間・ミュート処理部22においてPCM
データとともに入力されたバリデイティ・フラグやシス
テム・マイコンからのソフトミュート指令に応じてデー
タを加工し、その出力はLBSから順にシフトレジスタ
23に出力される。
The operation shown in FIG. 1 will be explained using the timing diagram in the LP mode shown in FIG. 2. In Figures 1 and 2,
First, 16-bit PCM data input from the outside is loaded into the shift register 21 at the timing of the load signal LD, and then shifted downward at a bit rate of 64Fs. At this time, by re-inputting the most significant bit, which is the code bit, to the serial input Sr, the loaded 16 code bits are serially output. Regarding 32-bit PCM data with a sign bit added, the interpolation/mute processing unit 22 performs PCM
The data is processed according to the validity flag input with the data and the soft mute command from the system microcomputer, and the output is output to the shift register 23 in order from the LBS.

以下、ノーマルモード(MODE=“0”)の場合とL
Pモード(MODE=“l”)の場合に分けてその動作
を説明する。
Below, the case of normal mode (MODE="0") and L
The operation will be explained separately for the case of P mode (MODE="l").

ノーマルモードのとき、セレクタ24.25.30.3
1は入力Aを選択する。このとき、ラッチ26.27は
ゲート信号Gl、G2のタイミング(この場合、ゲート
信号Gl、G2は同じタイミング)で16ビツトのPC
Mデータの上位8ビツトを保持する。
When in normal mode, selector 24.25.30.3
1 selects input A. At this time, the latches 26 and 27 control the 16-bit PC at the timing of the gate signals Gl and G2 (in this case, the gate signals Gl and G2 are at the same timing).
Holds the upper 8 bits of M data.

同様に、ラッチ28.29はゲート信号G3.G4のタ
イミング(この場合、ゲート信号G3.G4は同じタイ
ミング)で16ビツトのPCMデータの下位8ビツトを
保持する。保持したデータは、所定タイミングでセレク
タ30.31を介してデータ・バスに出力されたりてメ
モリー32に書き込まれる。
Similarly, latches 28,29 are connected to gate signals G3. The lower 8 bits of the 16-bit PCM data are held at the timing of G4 (in this case, the gate signals G3 and G4 are at the same timing). The held data is output to the data bus or written into the memory 32 via the selectors 30 and 31 at predetermined timings.

一方、LPモードのとき、セレクタ24.25.30.
3■は入力Bを選択する。このとき、ラッチ26は、シ
フトレジスタ23の上位8ビツト(QO−07)か全て
同符号になるタイミングでゲート信号Glにより12ビ
ツト圧縮データの上位4ビツトに相当する、バイナリ・
カウンタ33の出力と符号ビットQOとのEXOR34
,35,36による排他的論理和(3ビツト)の出力お
よび符号ビットQOを保持する。このデータは第4図の
上位4ヒツトに相当する。バイナリ・カウンタ33は、
各サンプルのPCMデータの先頭ビット(LSB)かシ
フトレジスタ23中をシフトして出力QFに出力される
タイミングでクリア信号CLRによりリセットされ、P
CMデータかシフトレジスタ23中をシフトするのと同
期してカウントアツプする。また、ラッチ27は、Lチ
ャンネルのデータがシフトレジスタ23中をシフトする
際に、上位7ピツト(QO〜Q6)が同符号になるタイ
ミングでゲート信号G2によりシフトレジスタ23のビ
ットQC−QFをラッチする。同様に、ラッチ29は、
Rチャンネルのデータかソフトレジスタ23中をシフト
する際に、上位7ピツト(QO−06)か同符号になる
タイミングてケート信号G4によりシフトレジスタ23
のヒツトQC−QFをラッチする。ラッチ27.29に
ラッチされたデータは、それぞれ第4図における12ビ
ツトワークデータのL/R各サンプルの下位4ヒツトに
相当する。ラッチ28は、L/R各チャンネルのデータ
がシフトレジスタ23中をシフトする際に、上位7ピツ
ト(QO〜Q6)か同符号になるタイミングでゲート信
号G3によりシフトレジスタ23のビット08〜QBを
ラッチする。
On the other hand, in the LP mode, selectors 24.25.30.
3) selects input B. At this time, the latch 26 receives a binary signal corresponding to the upper 4 bits of the 12-bit compressed data by the gate signal Gl at the timing when the upper 8 bits (QO-07) of the shift register 23 all have the same sign.
EXOR34 of the output of the counter 33 and the sign bit QO
, 35, 36 and the sign bit QO are held. This data corresponds to the top four hits in FIG. The binary counter 33 is
It is reset by the clear signal CLR at the timing when the first bit (LSB) of the PCM data of each sample is shifted in the shift register 23 and output to the output QF.
The count is increased in synchronization with the shift of CM data in the shift register 23. Furthermore, when the L channel data is shifted in the shift register 23, the latch 27 latches bits QC-QF of the shift register 23 using the gate signal G2 at the timing when the upper 7 pits (QO to Q6) become the same sign. do. Similarly, the latch 29 is
When shifting the R channel data in the soft register 23, the shift register 23 is shifted by the gate signal G4 at the timing when the upper 7 pits (QO-06) have the same sign.
latches the hit QC-QF. The data latched in latches 27 and 29 correspond to the lower four hits of each L/R sample of the 12-bit work data in FIG. 4, respectively. When the data of each L/R channel is shifted in the shift register 23, the latch 28 uses a gate signal G3 to shift bits 08 to QB of the shift register 23 at the timing when the upper 7 pits (QO to Q6) have the same sign. Latch.

このデータは、第4図における12ビツトワークデータ
のL/R各チャンネルのビット7〜ピツト4に相当する
。この保持したデータのうち、12ビツト圧縮データの
上位8ビツトに相当するラッチ26.28の出力は、フ
リップ・フロップ37、さらにその後段のフリップ・フ
ロップ38によって1サンプル周期たけ遅延した後にセ
レクタ30を介してデータ・バスに出力されてメモリー
32に書き込まれる。
This data corresponds to bits 7 to 4 of each L/R channel of the 12-bit work data in FIG. Outputs of the latches 26 and 28 corresponding to the upper 8 bits of the 12-bit compressed data of this held data are delayed by one sample period by a flip-flop 37 and a subsequent flip-flop 38, and then sent to the selector 30. via the data bus and written into the memory 32.

また、ラッチ27に保持した12ビツト圧縮データのL
チャンネルの下位4ビツトに相当するデータは、フリッ
プ・フロップ39によって1 / 2サンプル周期たけ
遅延した後にセレクタ31を介して、ラッチ29に保持
した12ビツト圧縮データのRチャンネルの下位4ビツ
トに相当するデータとともにデータ・バスに出力されて
メモリー32に書き込まれる。
Also, the L of the 12-bit compressed data held in the latch 27
The data corresponding to the lower 4 bits of the channel is delayed by 1/2 sample period by the flip-flop 39 and then sent via the selector 31 to the lower 4 bits of the R channel of the 12-bit compressed data held in the latch 29. It is output along with the data to the data bus and written into the memory 32.

以上のようにして、第4図における3バイトの8ピツト
シンボルデータか、Liu、LRil、Riuの順にメ
モリー32に書き込まれる。
As described above, the 3-byte 8-pit symbol data in FIG. 4 is written into the memory 32 in the order of Liu, LRil, and Riu.

これによって、データの圧縮処理とシリアル/パラレル
変換を同一のシフトレジスタでおこなうことかできる。
This allows data compression processing and serial/parallel conversion to be performed in the same shift register.

また、圧縮したデータを保持するラッチおよびデータの
遅延に用いるフリップ・フロップの数を最小限にするこ
とができる。
Additionally, the number of latches that hold compressed data and flip-flops used to delay data can be minimized.

発明の効果 以上のように本発明によれば、データをメモリーに書き
込むためにシリアル/パラレル変換するシフトレジスタ
をデータ圧縮用に兼用し、変換と同時に圧縮も行うこと
かできるもので、また、メモリーに書き込むデータを保
持するラッチの数を最小限にととめることかできるため
、全体の回路規模、ひいてはコストをより少なくするこ
とかできるものである。したかって、回路規模の小さい
データ圧縮回路でノーマルモートとLPモードの両モー
ドに対応可能な信号処理回路を低コストで構成すること
かできるものである。
Effects of the Invention As described above, according to the present invention, the shift register that performs serial/parallel conversion for writing data into memory can also be used for data compression, and compression can be performed at the same time as the conversion. Since the number of latches that hold data to be written can be kept to a minimum, the overall circuit scale and cost can be further reduced. Therefore, a signal processing circuit capable of supporting both normal mode and LP mode can be constructed at low cost using a data compression circuit with a small circuit scale.

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

第1図は本発明をDATに適用した一実施例によるデー
タ圧縮装置の構成を示すブロック図、第2図はLPモー
ド時における第1図の回路動作を示すタイミングチャー
ト図、第3図はDATのLPモードにおけるデータ圧縮
/伸長の変換則を示す概略図、第4図はLPモードでの
12ビツトのワークデータを8ビツトのシンボルデータ
に変換する規則を示す概略図、第5図は従来のDATに
おけるデータ圧縮装置の構成を示すブロック図である。 21.23・・・シフトレジスタ、24.25.30.
31・・・セレクタ、26.27.28.29・・・ラ
ッチ、32・・・メモリー、33・・・バイナリ・カウ
ンタ、34.35.36・・・EXOR,37,38,
39・・・フリップ・フロップ。
FIG. 1 is a block diagram showing the configuration of a data compression device according to an embodiment of the present invention applied to a DAT, FIG. 2 is a timing chart showing the circuit operation of FIG. 1 in LP mode, and FIG. 3 is a DAT. Figure 4 is a schematic diagram showing the rules for converting 12-bit work data into 8-bit symbol data in the LP mode, and Figure 5 is a schematic diagram showing the rules for converting 12-bit work data into 8-bit symbol data in the LP mode. FIG. 2 is a block diagram showing the configuration of a data compression device in DAT. 21.23...Shift register, 24.25.30.
31... Selector, 26.27.28.29... Latch, 32... Memory, 33... Binary counter, 34.35.36... EXOR, 37, 38,
39...Flip flop.

Claims (1)

【特許請求の範囲】[Claims] 1、Nビットのパラレルデータをシリアルデータに変換
してNのM倍(M>1)のビットレートで最下位ビット
(LSB)から順に出力し、かつ、その際に最上位ビッ
ト(MSB)を次のパラレルデータのロードまで保持す
る第1のシフトレジスタと、前記シリアルデータをパラ
レルデータに変換する第2のシフトレジスタと、前記第
2のシフトレジスタ中のデータのシフト数をカウントし
たカウント値を用いてデータの一部を圧縮する圧縮手段
と、前記第2のシフトレジスタおよび圧縮手段の出力を
、圧縮モードあるいは非圧縮モードに対応して選択する
第1のセレクタと、前記第1のセレクタの出力および第
2のシフトレジスタの出力を保持するラッチ手段と、前
記ラッチ手段の出力を適宜遅延して出力するフリップ・
フロップ手段と、前記ラッチ手段の出力および前記フリ
ップ・フロップ手段の出力を、前記圧縮モードあるいは
非圧縮モードに対応して選択する第2のセレクタとを備
え、前記第2のセレクタとラッチ手段の出力として圧縮
データあるいは非圧縮データを得る構成としたデータ圧
縮装置。
1. Convert N-bit parallel data to serial data and output it sequentially from the least significant bit (LSB) at a bit rate that is M times N (M>1), and at the same time output the most significant bit (MSB). A first shift register that holds until the next parallel data is loaded, a second shift register that converts the serial data into parallel data, and a count value that counts the number of shifts of data in the second shift register. a first selector that selects the output of the second shift register and the compression means according to a compression mode or a non-compression mode; a latch means for holding the output and the output of the second shift register; and a flip-flop for appropriately delaying and outputting the output of the latch means.
flop means, and a second selector for selecting the output of the latch means and the output of the flip-flop means in accordance with the compression mode or the non-compression mode, the outputs of the second selector and the latch means; A data compression device configured to obtain compressed data or uncompressed data.
JP34045690A 1990-06-27 1990-11-30 Data compression device Expired - Fee Related JP2573746B2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP34045690A JP2573746B2 (en) 1990-11-30 1990-11-30 Data compression device
US07/711,013 US5325240A (en) 1990-06-27 1991-06-06 Data compression and expansion apparatus for audio recorders
GB9112422A GB2246220B (en) 1990-06-27 1991-06-10 Digital audio tape recorder apparatus
DE4121122A DE4121122A1 (en) 1990-06-27 1991-06-26 DIGITAL AUDIO TAPE RECORDING DEVICE

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP34045690A JP2573746B2 (en) 1990-11-30 1990-11-30 Data compression device

Publications (2)

Publication Number Publication Date
JPH04207818A true JPH04207818A (en) 1992-07-29
JP2573746B2 JP2573746B2 (en) 1997-01-22

Family

ID=18337141

Family Applications (1)

Application Number Title Priority Date Filing Date
JP34045690A Expired - Fee Related JP2573746B2 (en) 1990-06-27 1990-11-30 Data compression device

Country Status (1)

Country Link
JP (1) JP2573746B2 (en)

Also Published As

Publication number Publication date
JP2573746B2 (en) 1997-01-22

Similar Documents

Publication Publication Date Title
US7130952B2 (en) Data transmit method and data transmit apparatus
JP3259323B2 (en) De-interleave circuit
US4910780A (en) Audio signal recording and reproducing apparatus utilizing digital data compression and extension
JPH0135426B2 (en)
US5197101A (en) Data compression circuit of a digital audio tape recorder
JPH04207818A (en) Data compressor
US5325240A (en) Data compression and expansion apparatus for audio recorders
JPH087935B2 (en) Data expansion circuit
JPH01314023A (en) Digital signal processing circuit
US5099446A (en) Data transfer apparatus and data transfer system
JP2708994B2 (en) Delta-sigma D / A converter
JPH0821228B2 (en) Level detector peak detection circuit
KR930004340B1 (en) Audio data expanding circuit and method for dat
JPH04195423A (en) Multiplier
JPS596638A (en) Signal conversion circuit
JPS6064573A (en) Picture signal reducing system
JPH05315971A (en) Serial/parallel conversion circuit
US5034680A (en) Digital level display device
JPS60263531A (en) Code error compensating device
JP3423004B2 (en) Interface circuit
JPH07123214B2 (en) D / A converter
JPS60253323A (en) Companding processing circuit
JPS63299511A (en) Digital filter device
JPH05211446A (en) Linear interpolation device
JPS58121844A (en) Signal compander

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081024

Year of fee payment: 12

LAPS Cancellation because of no payment of annual fees