JPS5855526B2 - buffer memory - Google Patents
buffer memoryInfo
- Publication number
- JPS5855526B2 JPS5855526B2 JP12707675A JP12707675A JPS5855526B2 JP S5855526 B2 JPS5855526 B2 JP S5855526B2 JP 12707675 A JP12707675 A JP 12707675A JP 12707675 A JP12707675 A JP 12707675A JP S5855526 B2 JPS5855526 B2 JP S5855526B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- circuit
- storage
- amount
- storage amount
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired
Links
Landscapes
- Compression, Expansion, Code Conversion, And Decoders (AREA)
- Dc Digital Transmission (AREA)
- Communication Control (AREA)
Description
【発明の詳細な説明】
本発明は、バッファ・メモリ特にフレーム間符号化方式
等に使用される速度整合用バッファ・メモリに関するも
のである。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a buffer memory, particularly a speed matching buffer memory used in an interframe encoding system.
フレーム間符号化方式のように可変長符号を使う装置に
おいては、伝送路速度に整合させるためのバッファ・メ
モリを使用する必要がある。In devices that use variable length codes, such as interframe coding systems, it is necessary to use a buffer memory to match the transmission line speed.
このバッファ・メモリは伝送系列を記憶する0)が理想
的であるが、この場合には書き込み、読出し速度に問題
が生ずる場合がある。Ideally, this buffer memory stores the transmission sequence (0), but in this case, problems may arise in writing and reading speeds.
例えばサンプル間隔で出力を発生する符号器があるもの
とし、出力が可変長符号化されて伝送されるものとする
。For example, assume that there is an encoder that generates output at sample intervals, and that the output is variable-length coded and transmitted.
この場合符号長が1ビツトの場合にはサンプル間隔で1
ビツトずつバッファ・メモリに書き込めば良く、サンプ
ル周波数が低ければ困難はない。In this case, if the code length is 1 bit, the sample interval is 1
All you have to do is write bit by bit to the buffer memory, which is not difficult if the sampling frequency is low.
しかしながら符号長が10ビツトないし20ビツトとな
るとサンプル間隔の1 / 10 r、、;いし1/2
0で書き込みを行わなければならず必要な処理速度が早
すぎて問題となる。However, when the code length is 10 bits to 20 bits, 1/10 r, ... or 1/2 of the sample interval.
Writing must be done with 0, which causes a problem because the required processing speed is too fast.
該バッファ・メモリに入力系列を直列に書き込む方式に
対応して、各サンプルの情報を並列に書き込む方式が知
られておりこの方式の場合処理速度の面からは多くの利
点をもっているが、可変長符号を取扱う場合並列書き込
み方式を採用しようとすると、ハードウェア量が大きく
なるという問題がある。Corresponding to the method of serially writing the input series to the buffer memory, a method of writing the information of each sample in parallel is known.This method has many advantages in terms of processing speed, but If a parallel writing method is used when handling codes, there is a problem in that the amount of hardware increases.
本発明は、以上述べて来たような在来の方式の問題点を
解決するものであり、バッファ・メモリ記憶量は伝送系
列そのもので計算して各種制御のために利用するが、実
際のデータ蓄積には伝送系列の形ではなく別の符号形式
に交換して行う方式を採用し、処理速度に余裕を与える
と共に、ノ\ツファ・メモリのハードウェアを簡単化す
る方式を提供することを目的としている。The present invention solves the problems of the conventional methods as described above, and the buffer memory storage capacity is calculated for the transmission sequence itself and used for various controls. The purpose is to provide a method for storing data by exchanging it to another code format rather than in the form of a transmission sequence, thereby increasing the processing speed and simplifying the hardware of the computer memory. It is said that
第1図は本発明の実施例構成を示し、回路は入力端子1
、出力端子2記憶量計算回路3、データ蓄積回路4、デ
ータ変換回路5、データ再変換回路6で構成されている
。FIG. 1 shows the configuration of an embodiment of the present invention, and the circuit includes an input terminal 1
, an output terminal 2, a storage capacity calculation circuit 3, a data storage circuit 4, a data conversion circuit 5, and a data reconversion circuit 6.
本実施例では符号器からの入力データはO〜7までの数
字であり、伝送路への出力データならびに蓄積データの
形式は第2図に示す形式であるものとする。In this embodiment, it is assumed that the input data from the encoder is a number from 0 to 7, and that the format of the output data to the transmission line and the accumulated data is the format shown in FIG.
入力端子1に入力された8進数字はデータ変換回路5に
供給され、ここで3ビツト固定長2進符号に変換される
。The octal digits input to the input terminal 1 are supplied to the data conversion circuit 5, where they are converted into 3-bit fixed length binary codes.
これと同時に、この信号が伝送路符号形式にされた場合
の符号長(可変長符号の符号長例えば入力が96“のと
きは符号長7)が決定されて記憶量計算回路3に送出さ
れる。At the same time, the code length when this signal is converted into a transmission line code format (code length of a variable length code, for example, code length 7 when the input is 96") is determined and sent to the storage amount calculation circuit 3. .
データ変換回路5で作られた3ビット固定長符号はデー
タ蓄積回路4に送られ蓄積される。The 3-bit fixed length code created by the data conversion circuit 5 is sent to the data storage circuit 4 and stored therein.
同時に記憶量計算回路3でそのときの符号長が加算され
る。At the same time, the memory amount calculation circuit 3 adds the code length at that time.
一方データ蓄積回路4の出力側ではデータ再変換回路6
から要求があるたびに3ビット固定長信号を供給し、デ
ータ再変換回路6ではこの信号が可変長符号に変換され
て伝送路へ送出される。On the other hand, on the output side of the data storage circuit 4, a data reconversion circuit 6
A 3-bit fixed length signal is supplied each time there is a request from the data reconversion circuit 6, and the data reconversion circuit 6 converts this signal into a variable length code and sends it to the transmission line.
同時に該符号長は記憶量計算回路3へ送られ、記憶量か
ら減算される。At the same time, the code length is sent to the storage amount calculation circuit 3 and subtracted from the storage amount.
なお上記において記憶量計算回路3が記憶量を計算する
のは次の理由にもとづくものと考えてよい。Note that the reason why the storage amount calculation circuit 3 calculates the storage amount in the above description can be considered to be based on the following reason.
即ち、第2図より明らかなように、入力端子1からデー
タが入力されるたびに、データ変換回路5から3ビツト
固定長のデータがデータ蓄積回路4に供給される。That is, as is clear from FIG. 2, each time data is input from the input terminal 1, 3-bit fixed length data is supplied from the data conversion circuit 5 to the data storage circuit 4.
このようにデータ蓄積回路4はデータが入力されるたひ
に3ビツトずつ蓄積量が増加することになる。In this manner, the amount of data stored in the data storage circuit 4 increases by three bits each time data is input.
ところで、蓄積されたデータの各3ビツトの値は、その
2進符号形式で表わす数値″X″に1を加えた値をとっ
て出力端子2から送出される可変長符号の長さと対応し
ている。By the way, each 3-bit value of the accumulated data corresponds to the length of the variable length code sent from the output terminal 2 by adding 1 to the numerical value "X" expressed in binary code format. There is.
すなわち、蓄積データの符号長と、その符号が意味する
実効データの符号長とは次のような関係になる。That is, the relationship between the code length of accumulated data and the code length of effective data that the code signifies is as follows.
蓄積データの符号長 実効データの符号長1110“
)3ビツト 16“+1+7ビツト一方、データ蓄積
回路4から読み出された3ビツトのデータはデータ再変
換回路6において“X“+1の長さをとる可変長符号に
変換される。Code length of accumulated data Effective data code length 1110"
) 3 bits 16"+1+7 bits On the other hand, the 3-bit data read from the data storage circuit 4 is converted by the data reconversion circuit 6 into a variable length code having a length of "X"+1.
このゝX“+1ビツトのデータ全部が出力端子2に送出
された後、次の3ビツト固定長データがデータ蓄積回路
4から読み出される。After all of this "X"+1 bit data is sent to the output terminal 2, the next 3-bit fixed length data is read out from the data storage circuit 4.
以上の説明から明らかなように、実際に伝送路に送出さ
れるべきデータ量がデータ蓄積回路4に何ビット(実効
データの記憶量)記憶されているかは固定長符号の3ビ
ツトずつを累算した値では表わすことはできない。As is clear from the above explanation, how many bits (effective data storage amount) of the amount of data to be actually sent to the transmission path is stored in the data storage circuit 4 is calculated by accumulating 3 bits each of the fixed length code. It cannot be expressed with a value.
記憶量計算回路3はこの実効データの記憶量を計算する
回路であって、データ蓄積回路4に3ビツトデータが書
き込まれるたびに、そのデータが表わす符号長ゝX“1
+1をそれまでの記憶量に加算し、また、データ蓄積回
路4から3ビツトデータが読み出されるたびに、そのデ
ータが表わす符号長ゝXo”+1をそれまでの記憶量か
ら減算する。The storage amount calculation circuit 3 is a circuit that calculates the storage amount of this effective data, and each time 3-bit data is written to the data storage circuit 4, the code length represented by that data is
+1 is added to the amount of storage up to that point, and each time 3-bit data is read out from the data storage circuit 4, the code length "Xo"+1 represented by that data is subtracted from the amount of storage up to that point.
通常、バッファメモリは読み出しデータ量と書き込みデ
ータ量が異なっており、書き込みデータ量の方が大幅に
多い場合はバッファメモリがオーバーフローする危険が
ある。Normally, the amount of read data and the amount of written data in a buffer memory are different, and if the amount of written data is significantly larger, there is a risk that the buffer memory will overflow.
このオーバーフローを防止するためにはバッファメモリ
の前段に接続されている符号化回路たとえばビデオ用前
値DPCM等の予測符号化回路を制御し、■サンプルお
きに符号化停止する等により情報発生量を抑圧する。In order to prevent this overflow, the amount of information generated can be reduced by controlling the encoding circuit connected to the front stage of the buffer memory, such as a predictive encoding circuit such as a pre-value DPCM for video, and stopping encoding every other sample. suppress.
また、書き込みデータ量の方が大幅に少ない場合はバッ
ファメモリかアンダーフローする危険がある。Furthermore, if the amount of written data is significantly smaller, there is a risk that the buffer memory will underflow.
アンダーフローを防止する場合には例えば符号化回路で
帯域圧縮することすく、原信号そのものをバッファメモ
リに書き込む。To prevent underflow, the original signal itself can be written into a buffer memory, for example by compressing the band using an encoding circuit.
通常のバッファメモリのオーバーフロー、アンダーフロ
ー制御は実効データの記憶量を監視し、記憶量が所定の
閾値を越えたか否かで行う。Normal buffer memory overflow and underflow control is performed by monitoring the effective data storage amount and determining whether the storage amount exceeds a predetermined threshold.
しかしながら本発明の実施例のように固定長符号形式で
記憶する場合には、前述したように、データ蓄積回路4
におけるデータ蓄積量と記憶量計算回路3で計算した記
憶量とが異なっている。However, when storing in a fixed length code format as in the embodiment of the present invention, as described above, the data storage circuit 4
The amount of data accumulated in , and the amount of storage calculated by the storage amount calculation circuit 3 are different.
従って、記憶量計算回路3における計算結果がオーバー
フロー、アンダーフローモードの状態になっていない場
合でも、データ蓄積回路4の蓄積量について見れはオー
バーフローあるいはアンダーフローする場合がある。Therefore, even if the calculation result in the storage amount calculation circuit 3 is not in an overflow or underflow mode, the storage amount in the data storage circuit 4 may overflow or underflow.
この場合は記憶量計算回路3の記憶量の如何に関らず、
強制的に、前段に接続されている符号化回路を制御する
必要がある。In this case, regardless of the memory capacity of the memory capacity calculation circuit 3,
It is necessary to forcibly control the encoding circuit connected to the previous stage.
このような形式で記憶を行うことにより記憶量計算回路
3における記憶量は伝送路符号形式で計算されるが、デ
ータ蓄積回路4における実際の蓄積は3ビット固定長符
号で行われるために書き込み、読み出しの速度に余裕を
与えることができ、またハードウェアの構成が非常に容
易となる。By storing in this format, the storage amount in the storage amount calculation circuit 3 is calculated in the transmission line code format, but since the actual storage in the data storage circuit 4 is performed in a 3-bit fixed length code, A margin can be given to the reading speed, and the hardware configuration is extremely easy.
第1図に示したような構成を取る場合、記憶量計算回路
3中の記憶量とデータ蓄積回路4中に実際に蓄積されて
いる量との間には統計的にみである一定の比率が保たれ
るはずであるが、長さの長い符号が連続する場合には記
憶量としては大きくなり、データ蓄積回路4に蓄積され
るビット数は少なくなり、その逆の場合には記憶量はあ
まり増太しないのにデータ蓄積回路4に蓄積されるビッ
ト数のみが増加する事態が発生することがある。When adopting the configuration shown in FIG. 1, there is a certain statistical ratio between the amount of storage in the storage amount calculation circuit 3 and the amount actually stored in the data storage circuit 4. should be maintained, but if long codes are consecutive, the amount of storage will be large and the number of bits stored in the data storage circuit 4 will be small, and vice versa, the amount of storage will be A situation may occur in which only the number of bits stored in the data storage circuit 4 increases even though the data size is not increased much.
通常の場合記憶量計算回路3の記憶量をもとにして各種
の制御が行われる。Normally, various controls are performed based on the storage capacity of the storage capacity calculation circuit 3.
一方データ蓄積回路4の容量が有限であるために、デー
タ蓄積回路4上ではデータが一杯になりそうな状態でも
記憶量が少なく実にデータの入力を許容する状態を設定
するような状況が発生する。On the other hand, since the capacity of the data storage circuit 4 is finite, even if the data storage circuit 4 is about to be filled with data, there is a situation where the storage capacity is small and the state is set to allow data input. .
このような難点を避けるために、上述の如く、データ蓄
積回路4の蓄積量を記憶量計算回路3に供給し、蓄積量
が所定量に達したら記憶量計算量をそのときの値がどの
ような値であっても最大とするような制御をとらせるよ
うにしている。In order to avoid such difficulties, as described above, the amount of storage in the data storage circuit 4 is supplied to the storage amount calculation circuit 3, and when the amount of storage reaches a predetermined amount, the amount of storage calculation is calculated based on the value at that time. Even if the value is small, the control is made to maximize it.
またこれとは逆にデータ蓄積回路4中の蓄積量が少ない
にもかかわらず記憶量が大きな値を示す状況も発生する
。Conversely, a situation may occur in which the storage amount shows a large value even though the storage amount in the data storage circuit 4 is small.
このために蓄積量がある一定値以下となると情報を記憶
量計算回路3に与え、記憶量を小さな値に設定する制御
も行っている。For this reason, when the storage amount becomes less than a certain value, information is given to the storage amount calculation circuit 3, and control is performed to set the storage amount to a small value.
以上のような記憶方式および制御方式をとることにより
、必要な処理速度に余裕を与えると共にハードウェア構
成が簡単なバッファ・メモリを得ることができる。By employing the storage system and control system as described above, it is possible to obtain a buffer memory that provides sufficient processing speed and has a simple hardware configuration.
なお本実施例では第2図に示す符号形式を用いたがこれ
以外の符号形式のものが本発明に適用できることは明ら
かである。Although the code format shown in FIG. 2 is used in this embodiment, it is obvious that code formats other than this can be applied to the present invention.
第1図は本発明の一実施例の構成図であり、第2図は第
1図に示す実施例における符号形式を示すものである。
図中1は入力端子、2は出力端子、3は記憶量計算回路
、4はデータ蓄積回路、5はデータ変換回路、6はデー
タ再変換回路を示す。FIG. 1 is a block diagram of an embodiment of the present invention, and FIG. 2 shows a code format in the embodiment shown in FIG. In the figure, 1 is an input terminal, 2 is an output terminal, 3 is a storage amount calculation circuit, 4 is a data storage circuit, 5 is a data conversion circuit, and 6 is a data reconversion circuit.
Claims (1)
れらを整合するためのバッファ・メモリにおいて、伝送
符号形式で記憶量を計算する記憶量計算回路、および実
際のデータ蓄積を別な符号形式で行うデータ蓄積回路を
もうけ、上記記憶量計算回路により速度整合処理制御を
行うようにしたことを特徴とするバッファ・メモリ。1. When the information generation speed and the information transmission speed are different, in a buffer memory for matching them, a storage amount calculation circuit that calculates the storage amount in a transmission code format, and a storage amount calculation circuit that calculates the storage amount in a transmission code format, and a storage amount calculation circuit that calculates the storage amount in a transmission code format when the information generation speed and information transmission speed are different. 1. A buffer memory comprising a data storage circuit for performing speed matching processing control using the storage amount calculation circuit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP12707675A JPS5855526B2 (en) | 1975-10-22 | 1975-10-22 | buffer memory |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP12707675A JPS5855526B2 (en) | 1975-10-22 | 1975-10-22 | buffer memory |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5250644A JPS5250644A (en) | 1977-04-22 |
| JPS5855526B2 true JPS5855526B2 (en) | 1983-12-10 |
Family
ID=14950972
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP12707675A Expired JPS5855526B2 (en) | 1975-10-22 | 1975-10-22 | buffer memory |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5855526B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5928749A (en) * | 1982-08-11 | 1984-02-15 | Hitachi Ltd | Data transmitter |
-
1975
- 1975-10-22 JP JP12707675A patent/JPS5855526B2/en not_active Expired
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5250644A (en) | 1977-04-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN114556956B (en) | Low-latency encoding using bypassed and entropy coded substreams | |
| JPS63148466A (en) | Data compressing/restoring method | |
| US3764986A (en) | Magnetic tape data processing system | |
| JPS61237520A (en) | Data processing method | |
| JPS5855526B2 (en) | buffer memory | |
| JPH02121027A (en) | Image processing device | |
| JP2638426B2 (en) | Variable length coding device | |
| SU491980A1 (en) | Device for recording digital information | |
| JPS6130294B2 (en) | ||
| SU746673A1 (en) | Device for data transmission with information redundancy reducing | |
| JPH0375906B2 (en) | ||
| CN110727402B (en) | High-speed FC data real-time receiving and frame loss-free storage method | |
| JPH0152955B2 (en) | ||
| SU378832A1 (en) | DEVICE INPUT INFORMATION | |
| JPH05219133A (en) | Coded data reception circuit | |
| JPS60194671A (en) | Run length encoding device | |
| JPS5917456B2 (en) | Buffer memory write control method | |
| JPH04258084A (en) | Code rule converter | |
| SU840914A2 (en) | Information processing and compressing device | |
| JPS6346627B2 (en) | ||
| JPS61131032A (en) | Voice data accumulating system | |
| JPH02218224A (en) | Data transferring method | |
| JPH0427754B2 (en) | ||
| JPS6228906B2 (en) | ||
| JPS5881376A (en) | facsimile transmitter |