JPH04260921A - Signal processor - Google Patents
Signal processorInfo
- Publication number
- JPH04260921A JPH04260921A JP2406768A JP40676890A JPH04260921A JP H04260921 A JPH04260921 A JP H04260921A JP 2406768 A JP2406768 A JP 2406768A JP 40676890 A JP40676890 A JP 40676890A JP H04260921 A JPH04260921 A JP H04260921A
- Authority
- JP
- Japan
- Prior art keywords
- data
- memory
- processor
- bits
- rounding
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 claims description 4
- 230000006870 function Effects 0.000 claims 1
- 238000006243 chemical reaction Methods 0.000 abstract 1
- 230000001131 transforming effect Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 8
- 230000002457 bidirectional effect Effects 0.000 description 2
- GNLJOAHHAPACCT-UHFFFAOYSA-N 4-diethoxyphosphorylmorpholine Chemical compound CCOP(=O)(OCC)N1CCOCC1 GNLJOAHHAPACCT-UHFFFAOYSA-N 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
Landscapes
- Image Processing (AREA)
- Complex Calculations (AREA)
Abstract
Description
【0001】0001
【産業上の利用分野】この発明はプロセッサとメモリの
間のデータ処理に関するものであり、特に画像信号の処
理に多く用いられる。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to data processing between a processor and a memory, and is particularly widely used in image signal processing.
【0002】0002
【従来の技術】従来、この種の装置がよく用いられる例
として図4に示すような画像信号符号化装置があった。
図において1は映像入力端子、2は現在の映像入力と後
述する1フレーム前の局部復号された映像データとの差
を取る減算器、3は減算器2からの差分信号を量子化す
る量子化器、4は量子化器3からの信号を逆量子化する
逆量子化器、5は上記局部復号された1フレーム前の映
像データと逆量子化器4の出力を加算する加算器、6は
加算器5の出力が加えられるフレームメモリ、7は出力
端子である。2. Description of the Related Art Conventionally, there has been an image signal encoding device as shown in FIG. 4 as an example of this type of device often used. In the figure, 1 is a video input terminal, 2 is a subtracter that takes the difference between the current video input and locally decoded video data from one frame before, which will be described later, and 3 is a quantizer that quantizes the difference signal from subtracter 2. 4 is an inverse quantizer that inversely quantizes the signal from the quantizer 3; 5 is an adder that adds the locally decoded video data of one frame before and the output of the inverse quantizer 4; 6 is an A frame memory 7 is an output terminal to which the output of the adder 5 is added.
【0003】次に図4の動作について説明する。デジタ
ル映像入力データは映像入力端子1より入力され減算器
2により、局部復号された1フレーム前の映像データと
の差分をとってフレーム間映像データを出力する。この
フレーム間映像データは量子化器3で量子化され、出力
端子7から出力される。一方、量子化器3からの量子化
データは逆量子化器4で逆量子化されフレーム間差分デ
ータとなる。この差分データとフレームメモリ6からの
1フレーム前の局部復号データとを加算器5によって加
算し、その加算出力をフレームメモリ6に納める。この
時逆量子化されたフレーム間差分データが8ビットのデ
ジタル信号でフレームメモリ6からの1フレーム前の局
部復号データも8ビットのデジタル信号であると、加算
器5からの出力は最大で9ビットのデジタル信号になる
のでフレームメモリ6に納めるときに8ビットに丸めな
ければならない。Next, the operation of FIG. 4 will be explained. Digital video input data is input from a video input terminal 1, and a subtracter 2 calculates the difference between the digital video data and the locally decoded video data of the previous frame, and outputs interframe video data. This interframe video data is quantized by a quantizer 3 and output from an output terminal 7. On the other hand, the quantized data from the quantizer 3 is dequantized by the dequantizer 4 and becomes inter-frame difference data. This difference data and the locally decoded data of the previous frame from the frame memory 6 are added by an adder 5, and the added output is stored in the frame memory 6. At this time, if the dequantized inter-frame difference data is an 8-bit digital signal and the local decoded data of the previous frame from the frame memory 6 is also an 8-bit digital signal, the output from the adder 5 is a maximum of 9 bits. Since it is a bit digital signal, it must be rounded to 8 bits when stored in the frame memory 6.
【0004】ここで用いられるのが本装置であり従来、
この種の装置として、図3に示すようなものがあった。
この図は『MC68881 ユーザーズ・マニュアル
』(電波新聞社刊) 昭和63年6月20日の図1−
7に示されたもので、図3において8はプロセッサ、9
は8ビットでリードとライトが同一のデータ信号線をも
つメモリ、10はアドレスバス、11はデータバス、1
2はアドレス信号線、13はデータ信号線である。This device is used here, and conventionally,
An example of this type of device is the one shown in FIG. This diagram is from "MC68881 User's Manual" (published by Dempa Shimbunsha), Figure 1 from June 20, 1986.
7, in FIG. 3 8 is a processor, 9
is an 8-bit memory with the same data signal line for reading and writing, 10 is an address bus, 11 is a data bus, 1
2 is an address signal line, and 13 is a data signal line.
【0005】次にメモリに書込むために、プロセッサが
行うビット丸めこみの動作を説明する。ここではメモリ
からの読出しとメモリへの書込みのビット数が8ビット
である場合について説明する。プロセッサ8はデータバ
ス11を通してメモリまたは外部から送られてきたデー
タに演算を行うと、データのビット数が9ビット以上に
なってしまったとする。そこで、その演算後の9ビット
以上の演算後データを8ビットに丸める丸めこみ処理を
行い、データを8ビットに揃える。このデータを8ビッ
トに揃える作業が終わるとアドレスバス10からアドレ
ス信号線12を通りメモリ9にアドレスを出力する。そ
してそのアドレスに丸めこみ処理された8ビットの演算
後データをデータバス11を通じて出しデータ信号線1
3を通ってメモリ9に書き込む。Next, a description will be given of the bit rounding operation performed by the processor in order to write data into memory. Here, a case will be described in which the number of bits for reading from and writing to memory is 8 bits. Assume that when the processor 8 performs an operation on data sent from memory or the outside through the data bus 11, the number of bits of the data becomes 9 bits or more. Therefore, a rounding process is performed to round the post-operation data of 9 bits or more to 8 bits, and the data is adjusted to 8 bits. When the work of aligning this data to 8 bits is completed, the address is output from the address bus 10 to the memory 9 through the address signal line 12. Then, the 8-bit post-operation data rounded to that address is sent out through the data bus 11 to the data signal line 1.
3 and is written to memory 9.
【0006】このときのプロセッサ8の丸めこみ動作の
フローを図5に示す。まず、プロセッサがデータ演算を
終えると、その結果データXはステップ14において−
128未満かどうかを判定され、YESならステップ1
5においてX=−128とし、NOならステップ16に
おいて127より大きいかどうか判定され、YESなら
ステップ17においてX=127とし、NOならそのま
ま通しステップ18において出力される。このような構
成になっているため、X<−128の場合はステップ1
4、ステップ15、ステップ18の3ステップ、X>1
27の場合はステップ14、ステップ16、ステップ1
7、ステップ18の4ステップ、−128≦X≦127
の場合はステップ14、ステップ16、ステップ18の
3ステップを通過することになる。従ってどんなデータ
Xに対しても少なくとも3ステップはかかることになる
。FIG. 5 shows the flow of the rounding operation of the processor 8 at this time. First, when the processor finishes the data operation, the resulting data X is -
It is determined whether it is less than 128, and if YES, step 1
5, X=-128, and if NO, it is determined in step 16 whether it is greater than 127; if YES, X=127 is determined in step 17, and if NO, it is passed as is and outputted in step 18. Because of this configuration, if X<-128, step 1
4. 3 steps of step 15 and step 18, X>1
27, step 14, step 16, step 1
7. 4 steps of step 18, -128≦X≦127
In this case, three steps of step 14, step 16, and step 18 are passed. Therefore, it will take at least three steps for any data X.
【0007】[0007]
【発明が解決しようとする課題】従来のビット丸めこみ
は以上のようにプロセッサにより処理されていたので、
処理に少なくとも3ステップの処理時間がかかっていた
。この発明は上記のような問題点を解決するためになさ
れたもので、データのビット丸めこみの処理時間を短縮
することを目的とする。[Problem to be Solved by the Invention] Conventional bit rounding was processed by a processor as described above.
The process took at least three steps. This invention was made to solve the above-mentioned problems, and its purpose is to shorten the processing time for bit rounding of data.
【0008】[0008]
【課題を解決するための手段】この発明に係わる信号処
理装置は、従来はプロセッサが行なってきたビットの丸
めこみ処理を、プロセッサではなく、データを取り込み
データ形式を変換する専用のデータ変換器をメモリへの
書き込みの前段に設けた。[Means for Solving the Problems] A signal processing device according to the present invention uses a dedicated data converter that takes in data and converts the data format, instead of a processor, to perform bit rounding processing that has conventionally been performed by a processor. It is provided before writing to memory.
【0009】[0009]
【作用】この発明においては、演算結果データは専用の
データ変換器へ入り、データ形式を変換されてメモリに
入る。[Operation] In the present invention, the operation result data enters a dedicated data converter, has its data format converted, and enters the memory.
【0010】0010
【実施例】図1はこの発明の一実施例を示すブロック図
であり、8、10〜12は図3に示した従来装置と同一
のものである。13aはリードのデータ信号線、13b
はライトのデータ信号線、19はビット丸めこみの処理
を行うデータ変換器、20は8ビットでリードとライト
が別の片方向データ信号線を持つメモリである。次に動
作について説明する。ここで述べられる動作はプロセッ
サからの演算処理されたデータのビット数が必要なビッ
ト数(ここでは8ビット)よりも大きかった場合にプロ
セッサ8からの演算処理されたデータのビット数を必要
なビット数(ここでは8ビット)と同じにするために少
なくするビット丸めこみを行いメモリに書き込まれるま
での動作である。DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a block diagram showing an embodiment of the present invention, in which numerals 8, 10 to 12 are the same as the conventional device shown in FIG. 13a is a lead data signal line, 13b
19 is a data converter that performs bit rounding processing, and 20 is an 8-bit memory having separate unidirectional data signal lines for reading and writing. Next, the operation will be explained. The operation described here changes the number of bits of the processed data from the processor 8 to the required number of bits when the number of bits of the processed data from the processor is larger than the required number of bits (8 bits in this case). This is the operation that involves rounding down the bits to make them the same as the number (8 bits in this case) and writing them into memory.
【0011】プロセッサ8はデータバス11を通してメ
モリまたは外部から送られてきたデータに演算を行うと
データのビット数が9ビット以上になった。そこで演算
後の9ビット以上の演算後データをアドレスバス10か
らアドレス信号線12を通りメモリ20にアドレスを出
力する。一方、演算後の9ビット以上の演算後データを
データバス11を通じて出し、9ビット以上の演算後の
データを8ビットに丸める丸めこみ処理を行うデータ変
換器19を通す。そしてデータ変換器19を通って8ビ
ットに丸められた演算後データはデータ信号線13bを
通ってメモリのさきほどプロセッサがアドレス出力した
アドレスに書き込まれる。データを読みにくい時はリー
ドとライトが別なのでデータ変換器19を通らずにデー
タバス11から直接データ信号線13aを通りメモリ2
0に読みにいく。When the processor 8 performs an operation on the data sent from the memory or the outside through the data bus 11, the number of bits of the data becomes 9 bits or more. Therefore, the post-operation data of 9 bits or more is outputted as an address from the address bus 10 to the memory 20 through the address signal line 12. On the other hand, post-operation data of 9 bits or more after the operation is outputted through the data bus 11, and passed through a data converter 19 that performs a rounding process of rounding the 9-bit or more post-operation data to 8 bits. After passing through the data converter 19, the data after the operation is rounded to 8 bits and is written into the memory at the address outputted by the processor earlier through the data signal line 13b. When the data is difficult to read, reading and writing are different, so the data signal line 13a is passed directly from the data bus 11 to the memory 2 without passing through the data converter 19.
I'm going to read 0.
【0012】他の実施例としてメモリが双方向のデータ
信号線を持つ場合がある。図2はこの発明の他の実施例
を示すブロック図である。8〜13は図3に示した従来
装置と同一のものである。19はビット丸めの処理を行
うデータ変換器、21は片方向バッファである。In another embodiment, the memory may have bidirectional data signal lines. FIG. 2 is a block diagram showing another embodiment of the invention. 8 to 13 are the same as the conventional device shown in FIG. 19 is a data converter that performs bit rounding processing, and 21 is a one-way buffer.
【0013】次に動作について説明するがこれは先の実
施例とほぼ同じである。異なる点はメモリ9が先の実施
例とちがってリードとライトが同一の双方向データ信号
線をもつので、データを読みにいく時はデータ変換器1
9をハイインピーダンスの状態にしてデータがデータ変
換器19を通らずにデータ信号線13を通り、片方向バ
ッファ21を通り、データバス11を通じてプロセッサ
ー8に取り込まれる点である。またデータを書きにくい
時は片方向バッファ21があるので、データバス11か
らデータ変換器19を通りメモリ9に書きこまれる。Next, the operation will be explained, which is almost the same as the previous embodiment. The difference is that the memory 9 has the same bidirectional data signal line for reading and writing, unlike the previous embodiment, so when reading data, the data converter 1
9 is placed in a high impedance state, data passes through the data signal line 13 without passing through the data converter 19, passes through the one-way buffer 21, and is taken into the processor 8 via the data bus 11. Furthermore, when it is difficult to write data, since there is a one-way buffer 21, the data is written from the data bus 11 through the data converter 19 to the memory 9.
【0014】このように、ソフトウエアで行っていた処
理をハードウエアで行うことにより効率のよい処理が行
える。応用例としては図4に示した画像信号符号化装置
のブロック図において加算器5とフレームメモリ6の間
におかれ、逆量子化器4からの逆量子化されたフレーム
間差分データが8ビットでフレームメモリ6からの1フ
レーム前の局部復号データも8ビットであるとき、加算
器5からの出力は最大で9ビットになるので本装置によ
って8ビットに丸められ、フレームメモリ6に納められ
る。また他の応用例としてビット丸め以外にもサイン拡
張や切捨て、切上げ等が考えられる。[0014] In this way, efficient processing can be achieved by performing processing that was previously performed using software using hardware. As an application example, in the block diagram of the image signal encoding device shown in FIG. 4, it is placed between the adder 5 and the frame memory 6, and the dequantized inter-frame difference data from the dequantizer 4 is 8 bits. When the local decoded data of the previous frame from the frame memory 6 is also 8 bits, the output from the adder 5 is 9 bits at most, so this device rounds it to 8 bits and stores it in the frame memory 6. In addition to bit rounding, other application examples include sign extension, truncation, and rounding up.
【0015】[0015]
【発明の効果】以上のようにこの発明によれば、従来プ
ロセッサが行なっていた演算結果データのビット丸め込
みを専用のデータ変換器に行なわせるので、プロセッサ
の負担が軽くなり、処理時間を短縮できる効果がある。[Effects of the Invention] As described above, according to the present invention, a dedicated data converter is used to perform bit rounding of operation result data, which was conventionally performed by a processor, so that the burden on the processor is lightened and the processing time can be shortened. effective.
【図1】この発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing one embodiment of the present invention.
【図2】この発明の他の実施例を示すブロック図である
。FIG. 2 is a block diagram showing another embodiment of the invention.
【図3】従来のプロセッサとメモリ間の接続を示すブロ
ック図である。FIG. 3 is a block diagram illustrating connections between a conventional processor and memory.
【図4】画像信号符号化装置のブロック図である。FIG. 4 is a block diagram of an image signal encoding device.
【図5】従来のプロセッサによるビット丸め込み処理の
フローチャート図である。FIG. 5 is a flowchart of bit rounding processing by a conventional processor.
8 プロセッサ 9 メモリ 11 データバス 13 データ信号線 13bデータ信号線 19 データ変換器 8 Processor 9. Memory 11 Data bus 13 Data signal line 13b data signal line 19 Data converter
Claims (1)
処理前後のデータを記憶するメモリを備えた信号処理装
置において、上記プロセッサから上記メモリにデータを
書き込むときに、上記プロセッサと上記メモリとの間に
あってプロセッサからのデータ形式を専ら所定の形式に
変換する機能を持つデータ変換器を用いたことを特徴と
する信号処理装置。Claim 1: A signal processing device comprising a processor that processes data and a memory that stores data before and after processing, wherein when writing data from the processor to the memory, a A signal processing device characterized by using a data converter having a function of exclusively converting a data format from a processor into a predetermined format.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2406768A JPH04260921A (en) | 1990-12-26 | 1990-12-26 | Signal processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2406768A JPH04260921A (en) | 1990-12-26 | 1990-12-26 | Signal processor |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH04260921A true JPH04260921A (en) | 1992-09-16 |
Family
ID=18516392
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2406768A Pending JPH04260921A (en) | 1990-12-26 | 1990-12-26 | Signal processor |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH04260921A (en) |
-
1990
- 1990-12-26 JP JP2406768A patent/JPH04260921A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH04260921A (en) | Signal processor | |
JP3133677B2 (en) | Decoding processing device and decoding processing method thereof | |
JP2001045427A (en) | Electronic camera | |
JP3461640B2 (en) | Arithmetic encoding / decoding device | |
JPH04258084A (en) | Code rule converter | |
JP3818484B2 (en) | Decoding apparatus and recording medium for encoded moving image data | |
JP3937463B2 (en) | Huffman coding apparatus and method | |
JPS62243075A (en) | Image data transfer device | |
JP2581340B2 (en) | Conditional pixel replenishment method | |
JPH05244438A (en) | Compression expansion circuit | |
JPS6141273A (en) | Picture processor | |
JPH11341288A (en) | Digital video system | |
JP3270232B2 (en) | Data compression device | |
KR950023007A (en) | Digital video decoding apparatus and method | |
JP3092239B2 (en) | Information processing method and apparatus | |
JPH01195786A (en) | Signal conversion system | |
JP3456201B2 (en) | Inter-frame prediction coding / decoding device | |
JPH04371032A (en) | Digital data processing circuit | |
JPH0530497A (en) | Picture encoding device | |
JPS63180281A (en) | Buffering device in conversion and coding | |
JPH0634523B2 (en) | Color image high efficiency coding method | |
JPH03120914A (en) | Coding/decoding device | |
JP2000253237A (en) | Facsimile machine | |
JPH09282000A (en) | Data processing circuit | |
JPH03175875A (en) | Code data conversion device |