JPH088645B2 - Image signal encoding / decoding large-scale integrated circuit - Google Patents

Image signal encoding / decoding large-scale integrated circuit

Info

Publication number
JPH088645B2
JPH088645B2 JP63196608A JP19660888A JPH088645B2 JP H088645 B2 JPH088645 B2 JP H088645B2 JP 63196608 A JP63196608 A JP 63196608A JP 19660888 A JP19660888 A JP 19660888A JP H088645 B2 JPH088645 B2 JP H088645B2
Authority
JP
Japan
Prior art keywords
circuit
decoding
change point
input
dimensional
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 - Fee Related
Application number
JP63196608A
Other languages
Japanese (ja)
Other versions
JPH0244966A (en
Inventor
博之 下大沢
等 堀江
透 尾崎
秀行 白井
俊子 西田
Original Assignee
松下電送株式会社
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 松下電送株式会社 filed Critical 松下電送株式会社
Priority to JP63196608A priority Critical patent/JPH088645B2/en
Publication of JPH0244966A publication Critical patent/JPH0244966A/en
Publication of JPH088645B2 publication Critical patent/JPH088645B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、ファクシミリ装置等に用いられる画信号符
号化・復号化大規模集積回路に係り、特にMH,MRおよびM
MR符号化方式による符号化および復号化を行う画信号符
号化・復号化大規模集積回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image signal encoding / decoding large-scale integrated circuit used in a facsimile apparatus or the like, and particularly to MH, MR and M
The present invention relates to a large-scale integrated circuit for picture signal coding / decoding that performs coding and decoding by the MR coding method.

従来の技術 現在、ファクシミリにおける符号化方式としては、CC
ITT(国際電信電話諮問委員会)の勧告T.4により、一次
元符号化方式についてはMH符号化方式、二次元符号化に
ついてはMR符号化方式が国際的に標準化されている。
Conventional technology Currently, CC is the encoding method for facsimile.
According to Recommendation T.4 of the ITT (International Telegraph and Telephone Consultative Committee), the MH coding system for the one-dimensional coding system and the MR coding system for the two-dimensional coding system are internationally standardized.

ここで、MH符号化方式とは、符号化ライン画信号の変
化点を検出し、そのランレングス及びランの黒、白の別
に対応するMH符号を用いる方式であり、このMH符号に
は、第5図(a)に示すように0〜63のランレングスに
対応するターミネーティング符号と、第5図(b)に示
すように64〜2560までの64ラン毎のランレングスに対す
るメークアップ符号とがある。すなわち、64以上のラン
は、メークアップ符号とそれに続くターミネーティング
符号との組み合わせにより符号化される。また、MR符号
化方式とは、符号化ライン画信号の変化点と、参照ライ
ン(符号化ラインの直前のライン)画信号の変化点とを
検出し、その相対位置から符号化ラインを逐次符号化す
る方式である。このMR符号化方式において、符号化ライ
ン及び参照ラインの変化点は、次のように定義される。
Here, the MH coding method is a method in which a change point of a coded line image signal is detected and an MH code corresponding to the run length and the black and white of the run is used. As shown in FIG. 5 (a), the termination code corresponding to the run length of 0 to 63 and the makeup code for the run length of every 64 runs from 64 to 2560 are shown in FIG. 5 (b). is there. That is, 64 or more runs are encoded by a combination of the makeup code and the subsequent terminating code. The MR coding method detects a change point of a coded line image signal and a change point of a reference line (the line immediately before the coded line) image signal, and sequentially codes the coded lines from their relative positions. It is a method to convert. In this MR coding method, the change points of the coding line and the reference line are defined as follows.

a0:符号化ラインの起点となる変化点 符号化ラインの始めでは、a0はラインの最初の画素の直
前の仮想的白変化点上に置かれる。符号ラインの符号化
の間はa0の位置は直前の符号モードにより規定される。
a 0 : Change point that is the starting point of the coding line At the beginning of the coding line, a 0 is placed on the virtual white change point immediately before the first pixel of the line. During coding of the code line, the position of a 0 is defined by the immediately preceding code mode.

a1:符号化ライン上でa0より右の最初の変化点 a2:符号化ライン上でa1より右の最初の変化点 b1:参照ライン上の変化画素のうちa0より右でa0と反対
の色を持つ最初の変化点 b2:参照ライン上でb1の右の最初の変化点 第6図は上述の変化点の位置関係の例を示す。また、
第7図は変化点の相対位置によるモードの区分と対応す
る符号を示す。
a 1 : The first change point to the right of a 0 on the coding line a 2 : The first change point to the right of a 1 on the coding line b 1 : The change pixel on the reference line to the right of a 0 First change point having color opposite to a 0 b 2 : First change point to the right of b 1 on the reference line FIG. 6 shows an example of the positional relationship of the above change points. Also,
FIG. 7 shows the reference numerals corresponding to the mode division according to the relative position of the change points.

第7図を用いてモードを決める手順を説明する。 The procedure for determining the mode will be described with reference to FIG.

手順1 (ア) a1の左側にb2が存在するときパスモードとして
検出し、このモード符号語‘0001'を用いて符号化す
る。この後、b2の真下の画素が新しい起点画素a0とな
る。
Procedure 1 (a) When b 2 exists on the left side of a 1 , it is detected as a pass mode and is encoded using this mode code word '0001'. After this, the pixel directly below b 2 becomes the new starting pixel a 0 .

(イ) パスモードが検出されないときは手順2へ進
む。
(A) If the pass mode is not detected, proceed to step 2.

手順2 (ア) 相対距離a1b1の絶対値を決定する。Step 2 (a) Determine the absolute value of the relative distance a 1 b 1 .

(イ) |a1b1|≦3ならば垂直モードとして検出し第
7図に示すようにa1b1の距離を符号化する。その後、画
素a1が新しい起点画素a0となる。a1b1>0はa1がb1の右
側にあることを示しVRで表し、a1b1>0はa1がb1の左側
にあることを示しVLで表す。
(A) If | a 1 b 1 | ≦ 3, it is detected as a vertical mode and the distance of a 1 b 1 is encoded as shown in FIG. After that, the pixel a 1 becomes the new starting pixel a 0 . a 1 b 1 > 0 indicates that a 1 is on the right side of b 1 and is represented by V R , and a 1 b 1 > 0 indicates that a 1 is on the left side of b 1 and is represented by V L.

(ウ) |a1b2|>3ならば水平モードとして検出し、
第7図に示すように符号‘001'に引き続いてa0a1および
a1a2をおのおのの一次元符号化M(a0a1),M(a1a2)す
る。この後画素a2が新しい起点画素a0となる。
(C) If | a 1 b 2 |> 3, it is detected as horizontal mode,
As shown in FIG. 7, the code '001' is followed by a 0 a 1 and
Each one-dimensional encoding of a 1 a 2 is performed by M (a 0 a 1 ) and M (a 1 a 2 ). After this, the pixel a 2 becomes the new starting pixel a 0 .

また、MMR符号化方式については、その符号化アルゴ
リズムはMR符号化方式と同一である。
Also, regarding the MMR coding method, the coding algorithm is the same as the MR coding method.

従来のファクシミリ装置におけるMH・MR・MMR符号化
・復号化回路には、通常大規模集積化された専用ハード
ウェア回路(以下これをCODEC・LSIと称す)が使用され
ていた。
For a conventional MH / MR / MMR encoding / decoding circuit in a facsimile apparatus, a large-scale integrated dedicated hardware circuit (hereinafter referred to as CODEC / LSI) is usually used.

発明が解決しようとする課題 しかし、かかるCODEC・LSIの製造立上げ時には回路設
計上のミスや製造上のミスが発生する可能性があり、チ
ップテストを行う必要がある。
DISCLOSURE OF THE INVENTION Problems to be Solved by the Invention However, there is a possibility that an error in circuit design or an error in manufacturing may occur at the time of starting the manufacturing of such a CODEC / LSI, and it is necessary to perform a chip test.

このため、CODEC・LSIに実際に一定の画信号を入力し
MH,MR,MMR符号化方式各々の符号コードを取り出し所定
の符号コードと比較する方法や、また逆にCODEC・LSIに
MH,MR,MMR符号化方式各々の所定の符号コードを入力し
復元された画信号を所定いの画信号と比較するという方
法が考えられるがこの場合には、CODEC・LSIチップ全体
としての良,不良の見分けしかつかないとい問題があっ
た。
For this reason, a fixed image signal is actually input to the CODEC / LSI.
MH, MR, MMR encoding method A method of extracting each code code and comparing it with a predetermined code code, and vice versa.
MH, MR, MMR encoding method It is possible to input a predetermined code code for each and compare the restored image signal with a predetermined image signal.In this case, the CODEC / LSI chip is good as a whole. , I had a problem that I could only identify the defect.

本発明は、上述の問題点に鑑みて為されたもので、チ
ップテスト時にチップ全体の良,不良を見分けることの
みならず内部回路の所定の1ブロックについてその動作
確認をすることができる画信号符号化・復号化大規模集
積回路を提供することを目的とする。
The present invention has been made in view of the above problems, and an image signal capable of not only discriminating whether a chip is good or bad during a chip test but also confirming the operation of a predetermined one block of an internal circuit. An object is to provide a large-scale encoding / decoding integrated circuit.

課題を解決するための手段 上記課題は、符号データを入出力するシステムバスイ
ンターフェイス回路と、符号化ライン画信号と二次元符
号化時には参照ライン画信号、復元された画信号を入出
力するイメージバスインターフェイス回路と、二次元符
号化時には前記符号化ライン画信号と前記参照ライン画
信号を入力しそれぞれの変化点を検出して符号化モード
と前記符号化ライン画信号の変化点アドレスを出力し、
一次元符号化時には前記符号化ライン画信号の変化点ア
ドレスと色情報を出力し、二次元復号化時には復号化モ
ードと復号ランレングスのアドレス情報と参照ライン画
信号を入力し、一次元復号化時には色情報と復号ランレ
ングスのアドレス情報を入力して画像を復元するモード
判定画像復元回路と、二次元符号化時に前記符号化モー
ドと符号化ラインの符号ランレングスとを入力し、一次
元符号化時に前記色情報と符号化ラインの符号化ランレ
ングスを入力してそれぞれ符号データを前記システムバ
スインターフェイス回路に出力し、前記システムバスイ
ンターフェイス回路より符号データを入力し、二次元復
号化時に前記モード判定画像復元回路に前記復号化モー
ドを出力すると共に復号ランレングスを出力し、一次元
復号化時には色情報と復号ランレングスを出力するテー
ブル検索回路と、データメモリと演算器を有し一次元お
よび二次元符号化時に前記符号化ライン信号の変化点ア
ドレスを入力し前記符号化ラインの符号ランレングスを
演算して前記テーブル検索回路に出力し、一次元および
二次元復号時前記復号ランサングスを入力し前記復号ラ
ンレングスの前記アドレス情報を演算して前記モード判
定画像復元回路に出力すると共に、前記各回路を制御す
るシーケンサ回路と、からなり該シーケンサ回路の制御
により、前記システムバスインターフェイス回路より符
号化モードと符号ランレングスを前記データメモリを介
して前記テーブル検索回路に入力して符号データを前記
システムバスインターフェイス回路に出力し、また符号
データを前記システムバスインターフェイス回路より前
記テーブル検索回路に入力して復号化モードと復号ラン
レングスを前記データメモリを介して前記システムバス
インターフェイス回路に出力する画信号符号化・復号化
大規模集積回路によって達成される。また、前記モード
判定画像復号回路が、二次元符号化時に符号化ラインの
変化点アドレスと参照ラインの変化点アドレスとを入力
して符号化モードを判定し前記テーブル検索回路に出力
し、二次元復号化時に前記テーブル検索回路より前記復
号化モードを入力し、前記シーケンサ回路より前記復号
ランレングスの前記アドレス情報を入力し、参照ライン
の変化点アドレスを入力して画像復元データを出力し、
一次元復号化時に前記テーブル検索回路より前記色情報
を入力し前記シーケンサ回路より前記復号ランレングス
の前記アドレス情報を入力して画像復元データを出力す
るモード判定回路と、該画像復元データを入力して画像
を復元する画像復元回路と、二次元符号化時符号化ライ
ン画信号と参照ライン画信号を入力し前記符号化ライン
の変化点アドレスと前記参照ラインの変化点アドレスを
前記モード判定回路に出力すると共に、該符号化ライン
の変化点アドレスをシーケンサ回路に出力し、一次元符
号化時・符号化ライン画信号を入力して色情報と変化点
アドレスを出力し、二次元復号化時参照ライン画信号を
入力して前記モード判定回路に前記参照ラインの変化点
アドレスを出力する変化点検出回路と、からなり前記シ
ーケンサ回路の制御により、前記イメージバスインター
フェイス回路より画像データを前記変化点検出回路へ入
力し、該画像データの変化点アドレス情報を前記データ
メモリを介して前記システムバスインターフェイス回路
へ出力する画信号化・復号化大規模集積回路としてもよ
い。また、前記シーケンサ回路の制御により、前記シス
テムバスインターフェイス回路よりパターンデータを前
記データメモリを介して前記変化点検出回路へ入力して
変化点アドレス情報を前記データメモリを介して前記シ
ステムバスインターフェイス回路より出力する画信号化
・復号化大規模集積回路としてもよい。また、前記シス
テムバスインターフェイス回路、前記イメージバスイン
ターフェイス回路よりデータを入力でき前記変化点検出
回路へ該データを出力する先入れ先出しメモリを設け、
前記シーケンサ回路の制御により、前記システムバスイ
ンターフェイス回路よりパターンデータを前記先入れ先
出しメモリを介して前記変化点検出回路へ入力して変化
点アドレス情報を前記データメモリを介して前記システ
ムバスインターフェイス回路より出力する画信号化・復
号化大規模集積回路としてよい。
Means for Solving the Problems The problems described above include a system bus interface circuit for inputting and outputting coded data, and an image bus for inputting and outputting a coded line image signal and a reference line image signal at the time of two-dimensional encoding and a restored image signal. An interface circuit, at the time of two-dimensional encoding, inputs the encoded line image signal and the reference line image signal, detects respective change points, and outputs an encoding mode and a change point address of the encoded line image signal,
At the time of one-dimensional encoding, the change point address and color information of the encoded line image signal is output, and at the time of two-dimensional decoding, the address information of the decoding mode and the decoding run length and the reference line image signal are input, and the one-dimensional decoding is performed. Sometimes, a mode determination image restoration circuit that restores an image by inputting color information and decoding run length address information, and the one-dimensional code by inputting the encoding mode and the code run length of the encoding line during two-dimensional encoding At the time of encoding, the color information and the encoding run length of the encoding line are input, the respective code data are output to the system bus interface circuit, the code data is input from the system bus interface circuit, and the mode is set at the time of two-dimensional decoding. The decoding run length is output together with the decoding mode to the judgment image restoration circuit, and the color information is output during one-dimensional decoding. And a table search circuit for outputting a decoding run length, a data memory and an arithmetic unit, and inputs a change point address of the encoded line signal at the time of one-dimensional and two-dimensional encoding to calculate a code run length of the encoded line. And outputs to the table search circuit, inputs the decoding run length at the time of one-dimensional and two-dimensional decoding, calculates the address information of the decoding run length, and outputs the address information to the mode determination image restoration circuit. A sequencer circuit for controlling the sequencer circuit, and by the control of the sequencer circuit, the encoding mode and the code run length are input from the system bus interface circuit to the table search circuit via the data memory to transmit the code data to the system bus interface. Output to the circuit, and the code data is output to the system bus interface. It is achieved by an image signal coding and decoding a large scale integrated circuit and outputs the input from Eisu circuit to the table search circuit and the decoding mode to decode the run length to said system bus interface circuit via said data memory. In addition, the mode determination image decoding circuit inputs the change point address of the coding line and the change point address of the reference line at the time of two-dimensional coding, determines the coding mode, and outputs the table to the table search circuit to perform two-dimensional coding. At the time of decoding, the decoding mode is input from the table search circuit, the address information of the decoding run length is input from the sequencer circuit, a change point address of a reference line is input, and image restoration data is output,
At the time of one-dimensional decoding, the color information is input from the table search circuit, the address information of the decoding run length is input from the sequencer circuit, and image restoration data is output, and the image restoration data is input. An image restoration circuit that restores an image by inputting a coded line image signal and a reference line image signal at the time of two-dimensional coding, and inputs the change point address of the coded line and the change point address of the reference line to the mode determination circuit. At the same time as outputting, the change point address of the coded line is output to the sequencer circuit, the color information and the change point address are output by inputting the coded line image signal at the time of one-dimensional coding, and the time of two-dimensional decoding is referred to. A change point detection circuit that inputs a line image signal and outputs a change point address of the reference line to the mode determination circuit, and a control circuit for the sequencer circuit. The image signal conversion / decoding large size which inputs the image data from the image bus interface circuit to the change point detection circuit and outputs the change point address information of the image data to the system bus interface circuit via the data memory. It may be a large scale integrated circuit. Further, under the control of the sequencer circuit, pattern data is input from the system bus interface circuit to the change point detection circuit via the data memory and change point address information is input from the system bus interface circuit via the data memory. It may be a large-scale integrated circuit for outputting / decoding image signals. Further, there is provided a first-in first-out memory capable of inputting data from the system bus interface circuit and the image bus interface circuit and outputting the data to the change point detection circuit.
Under the control of the sequencer circuit, pattern data is input from the system bus interface circuit to the change point detection circuit via the first-in first-out memory and change point address information is output from the system bus interface circuit via the data memory. It may be an image signal / decoding large-scale integrated circuit.

作用 1) 符号化時 イメージバスインターフェイス回路に外部より符号化
ライン画信号と、二次元符号化時には参照ライン画信号
が入力されモード判定画像復元回路へ出力される。モー
ド判定画像復元回路では二次元符号化時には符号化ライ
ン画信号と参照ライン画信号を入力しそれぞれの変化点
を検出して符号化モードをテーブル検索回路に出力する
と共に符号化ライン画信号の変化点アドレスをシーケン
サ回路に出力し、一次元符号化時には符号化ライン画信
号を入力して符号化ライン画信号の変化点アドレスと色
情報を生成し、変化点アドレスをシーケンサ回路に出力
し、色情報をテーブル検索回路へ出力する。シーケンサ
回路は各回路を制御すると共に、変化点アドレスを入力
して演算器により符号化ラインの符号ランレングスを演
算してテーブル検索回路に出力する。テーブル検索回路
は、二次元符号化時には符号化モードをモード判定画像
復元回路より、符号ランレングスをシーケンサ回路より
それぞれ入力し、一次元符号化時には色情報をモード判
定画像復元回路より、符号ランレングスをシーケンサ回
路より入力し、それぞれ符号データをシステムバスイン
ターフェイス回路に出力する。システムバスインターフ
ェイス回路はこの符号データを外部に出力する。
Operation 1) A coded line image signal and a reference line image signal are input from the outside to the image bus interface circuit during encoding and output to the mode determination image restoration circuit during two-dimensional encoding. In the mode determination image restoration circuit, at the time of two-dimensional encoding, the encoded line image signal and the reference line image signal are input, each change point is detected, the encoding mode is output to the table search circuit, and the encoded line image signal changes. The point address is output to the sequencer circuit, the coded line image signal is input at the time of one-dimensional encoding, the change point address and color information of the coded line image signal are generated, and the change point address is output to the sequencer circuit. The information is output to the table search circuit. The sequencer circuit controls each circuit, inputs the change point address, calculates the code run length of the coding line by the calculator, and outputs the code run length to the table search circuit. The table retrieval circuit inputs the coding mode from the mode determination image restoration circuit and the code run length from the sequencer circuit at the time of two-dimensional encoding, and the color information from the mode determination image restoration circuit to the code run length at the time of one-dimensional encoding. Is input from the sequencer circuit and the code data is output to the system bus interface circuit. The system bus interface circuit outputs this code data to the outside.

2) 復号化時 システムバスインターフェイス回路に外部より符号デ
ータが入力されテーブル検索回路に出力される。テーブ
ル検索回路ではこの符号データに基づき、二次元復号化
時には復号化モードと復号ランレングスを検索して、復
号化モードをモード判定画像復元回路に出力し、復号ラ
ンレングスをシーケンサ回路に出力し、一次元復号化時
には色情報と復号ランレングスを検索して色情報をモー
ド判定画像復元回路に出力し、復号ランレングスをシー
ケンサ回路に出力する。シーケンサ回路は各回路を制御
すると共に、復号ランレングスを入力して演算器により
アドレス情報を演算してモード判定画像復元回路に出力
する。モード判定画像復元回路は、二次元復号化時には
復号化モードとアドレス情報とイメージバスインターフ
ェイス回路より参照画信号を入力して画像を復元し、一
次元復号化時には色情報とアドレス情報とから画像を復
元してイメージバスインターフェイス回路へ出力する。
イメージバスインターフェイス回路は復元された画信号
を外部へ出力する。
2) At the time of decoding Code data is input to the system bus interface circuit from the outside and output to the table search circuit. Based on this code data, the table search circuit searches the decoding mode and the decoding run length at the time of two-dimensional decoding, outputs the decoding mode to the mode determination image restoration circuit, and outputs the decoding run length to the sequencer circuit. At the time of one-dimensional decoding, the color information and the decoded run length are searched, the color information is output to the mode determination image restoration circuit, and the decoded run length is output to the sequencer circuit. The sequencer circuit controls each circuit, inputs the decoding run length, calculates the address information by the calculator, and outputs the address information to the mode determination image restoration circuit. The mode determination image restoration circuit restores an image by inputting a decoding mode and address information and a reference image signal from the image bus interface circuit during two-dimensional decoding, and restores an image based on color information and address information during one-dimensional decoding. It is restored and output to the image bus interface circuit.
The image bus interface circuit outputs the restored image signal to the outside.

3) テーブル検索回路テスト時 シーケンサ回路の制御により、システムバスインター
フェイス回路より符号化モードと符号ランレングスをシ
ーケンサ回路のデータメモリに一旦入力し、テーブル検
索回路に出力する。テーブル検索回路で符号化モードと
符号ランレングスに基づき符号データを検索してシステ
ムバスインターフェイス回路に出力する。また、符号デ
ータをシステムバスインターフェイス回路よりテーブル
検索回路に入力して復号化モードと復号ランレングスを
検索してシーケンサ回路のデータメモリに入力した後、
システムバスインターフェイス回路に出力する。このよ
うにしてテーブル検索回路のテストが行える。
3) During table search circuit test Under control of the sequencer circuit, the coding mode and code run length are once input to the data memory of the sequencer circuit from the system bus interface circuit and output to the table search circuit. The table search circuit searches code data based on the coding mode and the code run length and outputs the code data to the system bus interface circuit. In addition, after inputting coded data from the system bus interface circuit to the table search circuit to search for the decoding mode and decoding run length and input to the data memory of the sequencer circuit,
Output to system bus interface circuit. In this way, the table search circuit can be tested.

4) 変化点検出回路テスト−1 モード判定画像復元回路をモード判定回路と画像復元
回路と変化点検出回路より構成し、 イ) 符号化時 変化点検出回路は、イメージバスインターフェイス回
路より符号化ライン画信号と二次元符号化時には参照ラ
イン画信号を入力し、それぞれの変化点アドレスをモー
ド判定回路に出力すると共に符号化ラインの変化点アド
レスをシーケンサ回路に出力し、一次元符号化時には符
号化ライン画信号を入力して色情報と変化点アドレスを
生成し色情報をテーブル検索回路に出力し変化点アドレ
スをシーケンサ回路に出力する。モード判定回路は、二
次元符号化時には符号化ラインの変化点アドレスと参照
ラインの変化点アドレスを入力して符号化モードを判定
しテーブル検索回路に出力する。
4) Change point detection circuit test-1 Mode decision image restoration circuit is composed of a mode decision circuit, an image restoration circuit and a change point detection circuit, and a) At the time of coding, the change point detection circuit is coded by the image bus interface circuit Image signal and reference line image signal at the time of two-dimensional encoding, each change point address is output to the mode determination circuit, and the change point address of the encoded line is output to the sequencer circuit. A line image signal is input to generate color information and a change point address, the color information is output to a table search circuit, and the change point address is output to a sequencer circuit. The mode determination circuit inputs the change point address of the coding line and the change point address of the reference line at the time of two-dimensional coding, determines the coding mode, and outputs it to the table search circuit.

ロ) 復号化時 モード判定回路は、二次元復号時にはテーブル検索回
路より復号化モードを入力し、シーケンサ回路より復号
ランレングスのアドレス情報を入力し、変化点検出回路
より参照ライン画信号の変化点アドレスを入力し、一次
元復号化時にはテーブル検索回路より色情報を入力し、
シーケンサ回路より復号ランレングスのアドレス情報を
入力して画像復元データを画像復元回路に出力する。画
像復元回路は画像復元データを入力してイメージバスイ
ンターフェイス回路に復元された画信号を出力する。変
化点検出回路は、二次元復号化時には参照ライン画信号
をイメージバスインターフェイス回路より入力して参照
ラインの変化点アドレスをモード判定回路に出力する。
(B) The decoding mode determination circuit inputs the decoding mode from the table search circuit, the decoding run length address information from the sequencer circuit, and the change point of the reference line image signal from the change point detection circuit during two-dimensional decoding. Enter the address, and input the color information from the table search circuit during one-dimensional decoding,
Decoding run length address information is input from the sequencer circuit and image restoration data is output to the image restoration circuit. The image restoration circuit inputs the image restoration data and outputs the restored image signal to the image bus interface circuit. The change point detection circuit inputs the reference line image signal from the image bus interface circuit at the time of two-dimensional decoding and outputs the change point address of the reference line to the mode determination circuit.

ハ) 変化点検出回路テスト時 シーケンサ回路の制御により、イメージバスインター
フェイス回路より画像データを変化点検出回路へ入力し
て画像データの変化点アドレス情報をシーケンサ回路の
データメモリに入力する。そしてデータメモリよりこの
変化点アドレス情報をシステムバスインターフェイス回
路へ出力することにより変化点検出回路の機能をテスト
する。
C) During change point detection circuit test Under the control of the sequencer circuit, the image data is input to the change point detection circuit from the image bus interface circuit and the change point address information of the image data is input to the data memory of the sequencer circuit. Then, the function of the change point detection circuit is tested by outputting the change point address information from the data memory to the system bus interface circuit.

5) 変化点検出回路テスト−2 変化点検出回路テスト−1の回路構成を用いて、シー
ケンサ回路の制御により、システムバスインターフェイ
ス回路よりパターンデータをシーケンサ回路のデータメ
モリに入力した後変化点検出回路へ出力して変化点アド
レス情報とし、この変化点アドレス情報をデータメモリ
に再び入れた後システムバスインターフェイス回路を介
して出力することにより変化点検出回路の機能をテスト
する。
5) Change point detection circuit test-2 Change point detection circuit after inputting pattern data from the system bus interface circuit to the data memory of the sequencer circuit under the control of the sequencer circuit using the circuit configuration of the change point detection circuit test-1. Then, the function of the change point detection circuit is tested by outputting the change point address information to the change point address information, inputting the change point address information into the data memory again, and then outputting it through the system bus interface circuit.

6) 変化点検出回路テスト−3 変化点検出回路テスト−1の回路構成に加えてシステ
ムバスインターフェイス回路、イメージバスインターフ
ェイス回路よりデータを入力でき、このデータを変化点
検出回路へ出力する先入れ先出しメモリを設けたことに
より、シーケンサ回路の制御によって、システムバスイ
ンターフェイス回路よりパターンデータを先入れ先出し
メモリに一旦入れた後変化点検出回路へ入力する。変化
点検出回路ではこのパターンデータに基づき変化点アド
レス情報をシーケンサ回路のデータメモリに出力する。
データメモリより変化点アドレス情報をシステムバスイ
ンターフェイス回路を介して出力することにより変化点
検出回路テストの機能をテストする。
6) Change point detection circuit test-3 In addition to the circuit configuration of change point detection circuit test-1, data can be input from the system bus interface circuit and image bus interface circuit, and a first-in first-out memory that outputs this data to the change point detection circuit is provided. By providing the pattern data, the pattern data is once stored in the first-in first-out memory from the system bus interface circuit and then input to the change point detection circuit under the control of the sequencer circuit. The change point detection circuit outputs change point address information to the data memory of the sequencer circuit based on this pattern data.
The change point detection circuit test function is tested by outputting the change point address information from the data memory through the system bus interface circuit.

実施例 以下、本発明の第1〜第4実施例を第1図〜第4図に
より説明する。
Embodiments Hereinafter, first to fourth embodiments of the present invention will be described with reference to FIGS. 1 to 4.

第1図は本発明の第1実施例によるCODEC・LSIの概略
構成を示すものである。その構成は、外部のマイクロコ
ンピュータに接続され、このバスに対し符号データを入
出力できると共に制御レジスタを備えたシステムバスイ
ンターフェイス回路1、二次元符号化時に符号化モード
とそのランレングスから符号化テーブルを検索し符号デ
ータを出力し、一次元符号化時には色情報とランレング
スから符号データを出力し、復号化時に符号データから
復号化テーブルを検索し二次元復号化時には複合化モー
ドとそのランレングスを出力し、一次元復号化時には色
情報とランレングスを出力する回路2であってその詳細
は、二次元符号化モードとランレングスを入力し、一次
元符号化時には色情報とランレングスを入力して符号化
アドレスを発生する符号化アドレス発生回路2aとこの符
号化アドレスに基づき符号化テーブルROMを検索して符
号データを出力する符号化テーブルROM2bとこの符号デ
ータを桁数を揃える符号化パッキング回路2cと符号デー
タを入出力する先入れ先出しメモリ2dと、復号化時先入
れ先出しメモリ2dより符号データを入力してパラレル・
シリアル変換する復号パッキング回路2eとパラレル・シ
リアル変換されたデータを入力して復号化アドレスを発
生する復号化アドレス発生回路2fと復号化アドレスに基
づき復号化ROMを検索して二次元復号化時には復号化モ
ードと復号ランレングスを出力し、一次元復号化時には
色情報と復号ランレングスを出力する復号化テーブルRO
M2gと各回路2a〜2gを制御するテーブル制御回路2hとか
ら構成されるテーブル検索回路2、演算機能を有しCODE
C・LSI全体の制御を行うマイクロプログラム方式の回路
3であってその詳細はシーケンサのアドレスを決定する
シーケンサアドレス制御回路3a、命令コードが格納され
ているマイクロプログラムROM3b、命令コードを内部ク
ロックの1サイクルの間保持する命令レジスタ3c、内部
データバス7に接続されるRAM3d、命令コードにより指
定された演算を行う演算器3eより構成されるシーケンサ
回路3、二次元符号化時に参照ライン画信号と符号化ラ
イン画信号とから変化点を検出し、MR符号化、MMR符号
化方式のモードを検出し一次元符号化時には符号化ライ
ン画信号から色情報と変化点を検出し、二次元復号化時
は復号化モードとそのランレングスのアドレス情報によ
り、また一次元復号化時には色情報とランレングスのア
ドレス情報により画像を復元するモード判定画像復元回
路4、外部メモリ回路に接続され、参照ライン画信号、
符号化ライン画信号、復元された画信号を入出力するイ
メージバスインターフェイス回路5より成る。以上のよ
うに構成された画信号符号化・復号化大規模集積回路に
ついて、以下その動作を説明する。シーケンサ回路3で
は、マイクロプログラムROM3b内に格納された命令コー
ドがシーケンサアドレス制御回路3aにより示されるアド
レスによって逐次出力され、命令レジスタ3cで内部クロ
ックの1サイクルの間保持される。シーケンサアドレス
制御回路3aでは通常内部クロックの1サイクル毎にアド
レスをインクリメントしていくが、命令レジスタ3cより
命令コードを入力し、これにより無条件ジャンプや条件
ジャンプを行う。この場合のジャンプアドレスも命令コ
ードで指定する。また、シーケンサアドレス制御回路3a
内にアドレスのスタックメモリを設けると、サブルーチ
ンやループ動作を行うことができる。演算器3eでは命令
コードにより演算を行い、結果を内部データバス7を通
じRAM3dや各回路へ転送する。RAM3dも命令コードで制御
され内部データバス7上のデータを入出力する。命令レ
ジスタ3cからの命令コードは内部制御信号バス6を通じ
各回路に出力され、また、この内部制御信号バス6を通
じ各回路からの状態信号、応答信号をシーケンサ回路3
から入力し、全体の制御を行う。次に全体の回路の動作
を説明する。
FIG. 1 shows a schematic structure of a CODEC / LSI according to the first embodiment of the present invention. The configuration is a system bus interface circuit 1 which is connected to an external microcomputer and is capable of inputting / outputting coded data to / from this bus and having a control register, and a coding table from a coding mode and its run length during two-dimensional coding. To output the code data, output the code data from the color information and run length at the time of one-dimensional encoding, search the decoding table from the code data at the time of decoding, and perform the composite mode and its run length at the time of two-dimensional decoding. Is a circuit 2 for outputting color information and run length at the time of one-dimensional decoding. For details thereof, the two-dimensional encoding mode and the run length are input, and at the time of one-dimensional encoding, the color information and the run length are input. To generate a coded address and generate a coded address generation circuit 2a and a coded table ROM based on this coded address. The code table ROM 2b for searching and outputting code data, the coding packing circuit 2c for aligning the number of digits of this code data, the first-in first-out memory 2d for inputting / outputting code data, and the code data from the first-in first-out memory 2d for decoding are input. Parallel
Decoding packing circuit 2e for serial conversion and parallel / serial conversion data input to generate decoding address Decoding address generation circuit 2f and decoding ROM is searched based on the decoding address and decoding is performed at the time of two-dimensional decoding Decoding table RO that outputs the coding mode and decoding run length, and outputs color information and decoding run length during one-dimensional decoding.
A table search circuit 2 including an M2g and a table control circuit 2h for controlling each circuit 2a to 2g, and a CODE having an arithmetic function.
A microprogram type circuit 3 for controlling the entire C-LSI, the details of which are a sequencer address control circuit 3a for determining an address of a sequencer, a microprogram ROM 3b in which an instruction code is stored, and an instruction code of an internal clock 1 A sequencer circuit 3 including an instruction register 3c for holding during a cycle, a RAM 3d connected to the internal data bus 7, an arithmetic unit 3e for performing an operation specified by an instruction code, a reference line image signal and a code at the time of two-dimensional encoding The change point is detected from the encoded line image signal and the mode of MR encoding and MMR encoding method is detected.When the one-dimensional encoding is performed, the color information and the change point are detected from the encoded line image signal and the two-dimensional decoding is performed. Restores the image using the decoding mode and its run-length address information, and the color information and run-length address information when performing one-dimensional decoding. Mode determination image restoration circuit 4, connected to an external memory circuit, and a reference line image signal,
The image bus interface circuit 5 inputs and outputs the encoded line image signal and the restored image signal. The operation of the image signal encoding / decoding large-scale integrated circuit configured as described above will be described below. In the sequencer circuit 3, the instruction code stored in the microprogram ROM 3b is sequentially output by the address indicated by the sequencer address control circuit 3a and held in the instruction register 3c for one cycle of the internal clock. In the sequencer address control circuit 3a, the address is normally incremented every cycle of the internal clock, but an instruction code is input from the instruction register 3c to perform an unconditional jump or a conditional jump. The jump address in this case is also specified by the instruction code. In addition, the sequencer address control circuit 3a
If an address stack memory is provided inside, a subroutine or loop operation can be performed. The arithmetic unit 3e performs an arithmetic operation according to the instruction code and transfers the result to the RAM 3d and each circuit through the internal data bus 7. The RAM 3d is also controlled by the instruction code and inputs / outputs data on the internal data bus 7. The instruction code from the instruction register 3c is output to each circuit through the internal control signal bus 6, and the status signal and the response signal from each circuit are sent through the internal control signal bus 6 to the sequencer circuit 3
Input from and control the whole. Next, the operation of the entire circuit will be described.

符号化時は、まず外部のCPUからシステムバスインタ
ーフェイス回路1内の制御レジスタを設定する。これに
よりシーケンサ回路3では符号化プログラムが動作しイ
メージバスインターフェイス回路5へ参照ライン画信
号、符号化ライン画信号(MH符号化方式の場合は符号化
ライン画信号のみ)を入力するよう要求する。入力した
画信号はモード判定画像復元回路4へ転送され、ここで
変化点を検出し、二次元符号化時には符号化モードを判
定し、一次元符号化時には色情報を検出してこれをテー
ブル検索回路2へ出力する。また変化点アドレスをシー
ケンサ回路3へ出力し、シーケンサ回路3では変化点ア
ドレスの減算を演算器3eで行うことでそのランレングス
を求めこれをテーブル検索回路2へ出力する。テーブル
検索回路2では、符号化アドレス発生回路2aでそのアド
レスを発生する。符号化テーブルROM2bより出力した符
号データは符号化パッキング回路2cでそのビット数が揃
えられFIFO2dを通じてシステムバスインターフェイス回
路1より外部へ出力する。
At the time of encoding, first, a control register in the system bus interface circuit 1 is set by an external CPU. As a result, the sequencer circuit 3 operates the encoding program and requests the image bus interface circuit 5 to input the reference line image signal and the encoded line image signal (only the encoded line image signal in the case of the MH encoding method). The input image signal is transferred to the mode determination image restoration circuit 4, where a change point is detected, the encoding mode is determined at the time of two-dimensional encoding, color information is detected at the time of one-dimensional encoding, and the table is searched. Output to circuit 2. The change point address is output to the sequencer circuit 3, and the sequencer circuit 3 subtracts the change point address by the arithmetic unit 3e to obtain its run length and outputs it to the table search circuit 2. In the table search circuit 2, the coded address generation circuit 2a generates the address. The code data output from the encoding table ROM2b has the same number of bits in the encoding packing circuit 2c and is output from the system bus interface circuit 1 to the outside through the FIFO2d.

復号化時は、同じく外部のCPUからシステムバスイン
ターフェイス回路1内の制御レジスタを設定し、これよ
りシーケンサ回路3では復号化プログラムが動作する。
符号データはシステムバスインターフェイス回路1を通
し、テーブル検索回路2のFIFO2dへ入力する。この符号
データは復号化パッキング回路2eでパラレル・シリアル
変換され、復号化アドレス発生回路2fで復号化テーブル
ROM2gを検索するアドレスを発生する。復号化テーブルR
OM2gではそのアドレスより復号化テーブルを検索して二
次元復号化時には復号化モードとそのランレングスを決
定し、一次元復号化時には色情報とランレングスを決定
する。復号化モード又は色情報はモード判定画像復号回
路4へ出力され、ランレングスはシーケンサ回路3の演
算器3eで加算され、つまりこの演算結果画がアドレス情
報となってモード判定画像復元回路4へ転送される。モ
ード判定画像復元回路4では二次元復号化時には復号化
モード、アドレス情報、参照ライン画信号とから、一次
元復号化時には色情報とアドレス情報とから画像を復元
し、イメージバスインターフェイス回路5を通して外部
へ出力する。
At the time of decoding, a control register in the system bus interface circuit 1 is also set from an external CPU, so that the decoding program operates in the sequencer circuit 3.
The code data is input to the FIFO 2d of the table search circuit 2 through the system bus interface circuit 1. This code data is parallel / serial converted by the decoding packing circuit 2e, and the decoding table is generated by the decoding address generation circuit 2f.
Generate an address to search ROM2g. Decryption table R
The OM2g searches the decoding table from the address to determine the decoding mode and its run length at the time of two-dimensional decoding, and the color information and run length at the time of one-dimensional decoding. The decoding mode or color information is output to the mode determination image decoding circuit 4, and the run length is added by the calculator 3e of the sequencer circuit 3, that is, the calculation result image is transferred to the mode determination image restoration circuit 4 as address information. To be done. The mode determination image restoration circuit 4 restores an image from the decoding mode, address information, and reference line image signal at the time of two-dimensional decoding, and color information and address information at the time of one-dimensional decoding. Output to.

ここでチップテストを行う場合、当然実際にデータを
入力して符号化、復号化されたデータと基準のデータと
を比較するということは可能である。さらに、システム
バスインターフェイス回路1を通し、シーケンサ回路3
内のRAM3dへ符号化モードとランレングスの情報である
中間符号を入力する。この場合にはシーケンサ回路3の
制御として、イメージバスインターフェイス回路5、モ
ード判定画像復元回路4の動作を停止させ、テーブル検
索回路2内の符号化アドレス発生回路2aには予め中間符
号を入力したRAM3dのデータを入力する。以後テーブル
検索回路2では通常の符号化動作を行い、符号データを
システムバスインターフェイス回路1より外部へ出力す
る。また、システムバスインターフェイス回路1より入
力した符号データをテーブル検索回路2で復号化モード
とランレングスとし、復号化テーブルROM2gから出力
し、これをRAM3dに入力するようシーケンサ回路3を動
作させる。そして、このRAM3dのデータはシステムバス
インターフェイス回路1を通じ外部へ出力する。これに
よってテーブル検索回路2の機能テストができる。
When the chip test is performed here, it is naturally possible to actually input the data and compare the encoded and decoded data with the reference data. Further, through the system bus interface circuit 1, the sequencer circuit 3
The intermediate code which is the information of the encoding mode and the run length is input to the RAM 3d therein. In this case, as the control of the sequencer circuit 3, the operations of the image bus interface circuit 5 and the mode determination image restoration circuit 4 are stopped, and the coded address generation circuit 2a in the table search circuit 2 has a RAM 3d in which an intermediate code is input in advance. Enter the data of. After that, the table search circuit 2 performs a normal encoding operation, and the code data is output from the system bus interface circuit 1 to the outside. Further, the code data input from the system bus interface circuit 1 is set to the decoding mode and run length in the table search circuit 2, is output from the decoding table ROM2g, and the sequencer circuit 3 is operated to input this into the RAM3d. Then, the data in the RAM 3d is output to the outside through the system bus interface circuit 1. This allows a functional test of the table search circuit 2.

第2図は本発明の第2実施例によるCODEC・LSIの概略
構成を示し、第1図と同一符号は同一内容を表示する。
第1図と相違する点について説明する。第2図では第1
図のモード判定画像復元回路4が、符号化方式のモード
を検出するモード判定回路4aと復元画像を生成する画像
復元回路4bと二次元符号化時には符号化ランレングス画
信号、参照ライン画信号から変化点を検出し、一次元符
号化時には符号化ライン画信号より変化点と色情報を検
出する変化点検出回路4cから構成される。
FIG. 2 shows a schematic structure of a CODEC / LSI according to a second embodiment of the present invention, and the same symbols as those in FIG. 1 indicate the same contents.
Differences from FIG. 1 will be described. In Figure 2 the first
The mode determination image restoration circuit 4 shown in the figure includes a mode determination circuit 4a for detecting a mode of an encoding method, an image restoration circuit 4b for generating a restored image, and a coded run length picture signal and a reference line picture signal at the time of two-dimensional coding. A change point detection circuit 4c that detects the change point and detects the change point and color information from the encoded line image signal at the time of one-dimensional encoding.

次に動作について説明する。 Next, the operation will be described.

符号化時は、まず外部のCPUからシステムバスインタ
ーフェイス回路1内の制御レジスタを設定する。これに
より、シーケンサ回路3では符号化プログラムが動作
し、イメージバスインターフェイス回路5へ参照ライン
画信号、符号化ライン画信号(MH符号化方式の場合は符
号化ライン画信号のみ)を入力するよう要求する。入力
した画信号は変化点検出回路4cへ転送され、ここで変化
点を検出し一次元符号化時には色情報も検出し、その変
化点アドレスをモード判定回路4a及びシーケンサ回路3
へ出力し、色情報はテーブル検索回路2へ出力する。モ
ード判定回路4aでは符号化モードを判定してこれをテー
ブル検索回路2へ出力する。シーケンサ回路3では変化
点アドレスの減算を演算器3eでおこなうことでそのラン
レングスを求め、これをテーブル検索回路2へ出力す
る。テーブル検索回路2では、二次元符号化時には符号
化モード及びランレングス情報から一次元符号化時には
色情報とランレングス情報から符号化テーブルを検索
し、符号データのビット揃えを行って、システムバスイ
ンターフェイス回路1へ出力する。符号データはここよ
り外部へ出力する。
At the time of encoding, first, a control register in the system bus interface circuit 1 is set by an external CPU. As a result, the encoding program operates in the sequencer circuit 3 and requests the image bus interface circuit 5 to input the reference line image signal and the encoded line image signal (only the encoded line image signal in the case of the MH encoding method). To do. The input image signal is transferred to the change point detection circuit 4c, where the change point is detected and color information is also detected at the time of one-dimensional encoding, and the change point address is used for the mode determination circuit 4a and the sequencer circuit 3
And the color information is output to the table search circuit 2. The mode determination circuit 4a determines the encoding mode and outputs it to the table search circuit 2. In the sequencer circuit 3, the change point address is subtracted by the arithmetic unit 3e to obtain the run length, and the run length is output to the table search circuit 2. The table search circuit 2 searches the coding table from the coding mode and run length information at the time of two-dimensional coding and from the color information and run length information at the time of one-dimensional coding, aligns the bits of the code data, and executes the system bus interface. Output to circuit 1. The code data is output from here.

復号化時は、同じく外部のCPUからシステムバスイン
ターフェイス回路1内の制御レジスタを設定し、これに
よりシーケンサ回路3では復号化プログラムが動作す
る。符号データはシステムバスインターフェイス回路1
を通し、テーブル検索回路2へ入力する。テーブル検索
回路2では、符号データより復号化テーブルを検索し、
二次元復号化時には復号化モードとそのランレングスを
決定し、一次元復号化時には色情報とランレングスを決
定する。復号化モードおよび色情報はモード判定回路4a
へ出力され、ランレングス情報はシーケンサ回路3へ出
力される。シーケンサ回路3では、このランレングスを
演算器3cで加算し、この演算結果であるアドレス情報を
モード判定回路4aへ転送する。また、二次元復号化時に
は、イメージバスインターフェイス回路5より参照ライ
ン画信号を入力し、これを変化点検出回路4cへ転送し
て、ここで参照ラインの変化点を検出し、その変化点ア
ドレスをモード判定回路4aへ出力する。モード判定回路
4aではこれらから復元画信号の色(黒または白)及び復
元先頭アドレス、終了アドレスを画像復元回路4bへ出力
し、画像復元回路4bではこの指示に従って順次画像を復
元していく。復元された画信号はイメージバスインター
フェイス回路5を通して外部へ出力する。
At the time of decoding, a control register in the system bus interface circuit 1 is also set from an external CPU, so that the decoding program operates in the sequencer circuit 3. Code data is the system bus interface circuit 1
To the table search circuit 2. The table search circuit 2 searches the decoding table from the code data,
The decoding mode and its run length are determined during two-dimensional decoding, and the color information and run length are determined during one-dimensional decoding. The decoding mode and the color information are the mode determination circuit 4a.
And the run length information is output to the sequencer circuit 3. In the sequencer circuit 3, this run length is added by the arithmetic unit 3c, and the address information as the result of this arithmetic is transferred to the mode determination circuit 4a. At the time of two-dimensional decoding, the reference line image signal is input from the image bus interface circuit 5, transferred to the change point detection circuit 4c, the change point of the reference line is detected, and the change point address is obtained. Output to the mode determination circuit 4a. Mode decision circuit
In 4a, the color (black or white) of the restored image signal, the restoration start address and the end address are output from these to the image restoration circuit 4b, and the image restoration circuit 4b sequentially restores the image in accordance with this instruction. The restored image signal is output to the outside through the image bus interface circuit 5.

ここでチップテストを行う場合、当然実際にデータを
入力してCODEC・LSIが出力する符号化、復号化されたデ
ータをチェックするという方法が実施可能である。さら
にイメージバスインターフェイス回路5より入力する画
像信号を変化点検出回路4cへ逐次転送する。ここで、シ
ーケンサ回路3の動作として、変化点検出回路4cより出
力する変化点情報をシーケンサ回路3内のRAM3dに格納
していく。一定量の変化点情報が格納されたら、このデ
ータはRAM3dよりシステムバスインターフェイス回路1
を通し外部へ出力する。これによって変化点検出回路の
機能をテストすることができる。
When the chip test is performed here, naturally, a method of actually inputting data and checking the coded and decoded data output by the CODEC / LSI can be implemented. Further, the image signal input from the image bus interface circuit 5 is sequentially transferred to the change point detection circuit 4c. Here, as the operation of the sequencer circuit 3, the change point information output from the change point detection circuit 4c is stored in the RAM 3d in the sequencer circuit 3. When a certain amount of change point information is stored, this data is transferred from RAM3d to the system bus interface circuit 1
To output to the outside. This allows the function of the change point detection circuit to be tested.

第3図は本発明の第3実施例によるCODEC・LSIの概略
構成を示し、第1図、第2図と同一符号は同一内容を表
示する。
FIG. 3 shows a schematic structure of a CODEC / LSI according to a third embodiment of the present invention, and the same reference numerals as those in FIGS. 1 and 2 indicate the same contents.

第2図と第3図の相違は、システムバスインターフェ
イス1よりシーケンサ回路3を介して変化点検出回路4c
へパターンデータを転送できるようにした点である。
The difference between FIG. 2 and FIG. 3 is that the change point detection circuit 4c from the system bus interface 1 via the sequencer circuit 3
The point is that the pattern data can be transferred to.

符号化時、復号化時の動作は第2図の場合と同じであ
り、変化点検出回路4cのテスト方法が異なるのでこのテ
スト方法について説明する。
The operation at the time of encoding and decoding is the same as in the case of FIG. 2, and the test method of the change point detection circuit 4c is different, so this test method will be described.

システムバスインターフェイス回路1を通し、シーケ
ンサ回路3内のRAM3dにパターンデータを入力する。こ
の場合のシーケンサ回路3の制御としては、イメージバ
スインターフェイス回路5の参照ライン画信号、符号化
ライン画信号入力の代わりに、RAM3dに格納されたデー
タを変化点検出回路4cに入力する。変化点検出回路4cで
は入力された画信号の変化点を検出し、ここでこの変化
点情報をシーケンサ回路3内のRAM3dに格納していく。
予めRAM3dに入力したパターンデータについての変化点
検出動作が終了したら、RAM3dに格納されている変化点
情報データをシステムバスインターフェイス回路1を通
し外部へ出力する。これによりシステムバスインターフ
ェイス回路からのみで変化点検出回路4cの機能をテスト
できる。
The pattern data is input to the RAM 3d in the sequencer circuit 3 through the system bus interface circuit 1. In order to control the sequencer circuit 3 in this case, instead of inputting the reference line image signal and the encoded line image signal of the image bus interface circuit 5, the data stored in the RAM 3d is input to the change point detection circuit 4c. The change point detection circuit 4c detects a change point of the input image signal and stores the change point information in the RAM 3d in the sequencer circuit 3.
When the change point detection operation for the pattern data previously input to the RAM 3d is completed, the change point information data stored in the RAM 3d is output to the outside through the system bus interface circuit 1. As a result, the function of the change point detection circuit 4c can be tested only from the system bus interface circuit.

第4図は本発明の第4実施例によるCODEC・LSIの概略
構成を示し、第1図〜第3図と同一符号は同一内容を表
示する。
FIG. 4 shows a schematic structure of a CODEC / LSI according to a fourth embodiment of the present invention, and the same reference numerals as those in FIGS. 1 to 3 indicate the same contents.

第3図と第4図との相違は、システムバスインターフ
ェイス回路1、イメージバスインターフェイス回路5よ
りデータを入力でき変化点検出回路へこのデータを出力
する先入れ先出しメモリを設けた点であり、符号化時、
復号化時の動作はイメージバスインターフェイス回路5
よりデータを変化点検出回路へ転送するだけであり、第
3図の場合と変わりないので回路全体の動作説明は省略
する。
The difference between FIG. 3 and FIG. 4 is that a first-in first-out memory is provided which can input data from the system bus interface circuit 1 and the image bus interface circuit 5 and outputs this data to the change point detection circuit. ,
The operation at the time of decoding is the image bus interface circuit 5
Since only the data is transferred to the change point detection circuit, which is the same as the case of FIG. 3, the description of the operation of the entire circuit is omitted.

チップテストを行う場合、当然実際にデータを入力し
てCODEC・LSIが出力する符号化、復号化されたデータを
チェックするという方法が実施できる。さらに、システ
ムバスインターフェイス回路1を通し、FIFOメモリ4dに
パターンデータを入力する。この場合のシーケンサ回路
3の制御としては、イメージバスインターフェイス回路
5の参照ライン画信号、符号化ライン画信号入力を中止
して、FIFOメモリ4dへイメージバスインターフェイス回
路5より画信号を入力しないようにする。FIFOメモリ4d
に格納されたパターンデータは順次変化点検出回路4cに
入力し、ここでこのパターンデータの変化点を検出し、
この変化点情報をシーケンサ回路3内のRAM3dに格納し
ていく。予めFIFOメモリ4dに入力したパターンデータの
変化点検出動作が終了したら、RAM3dに格納されている
変化点情報データをシステムバスインターフェイス回路
1を通し外部へ出力する。FIFOメモリ4dの容量が少ない
場合には、以上の動作を幾度か繰り返すことも可能であ
る。また、パターンデータをFIFOメモリ4dに入力する場
合、一旦RAM3dにパターンデータを格納した後FIFOメモ
リ4dに転送することも可能である。これにより変化点検
出回路4cの機能をテストすることができる。
When performing a chip test, naturally, a method of actually inputting data and checking the encoded and decoded data output by the CODEC / LSI can be implemented. Further, the pattern data is input to the FIFO memory 4d through the system bus interface circuit 1. In this case, the sequencer circuit 3 is controlled so that the reference line image signal and the encoded line image signal input to the image bus interface circuit 5 are stopped and the image signal is not input from the image bus interface circuit 5 to the FIFO memory 4d. To do. FIFO memory 4d
The pattern data stored in is sequentially input to the change point detection circuit 4c, where the change point of this pattern data is detected,
This change point information is stored in the RAM 3d in the sequencer circuit 3. When the change point detection operation of the pattern data input to the FIFO memory 4d in advance is completed, the change point information data stored in the RAM 3d is output to the outside through the system bus interface circuit 1. If the capacity of the FIFO memory 4d is small, the above operation can be repeated several times. Further, when the pattern data is input to the FIFO memory 4d, it is possible to store the pattern data in the RAM 3d once and then transfer the pattern data to the FIFO memory 4d. As a result, the function of the change point detection circuit 4c can be tested.

発明の効果 本発明によれば、システムバスインターフェイス回
路、イメージバスインターフェイス回路、テーブル検索
回路、モード判定画像復元回路、シーケンサ回路よりな
る画信号符号化・復号化大規模集積回路において、チッ
プ全体のテストのみならずテーブル検索回路の単独機能
テストが行え、またモード判定画像復元回路を構成する
変化点検出回路の単独機能テストを実施することがで
き、それら単独機能の良否の判定が容易にできるという
優れた効果がある。
According to the present invention, in the image signal coding / decoding large-scale integrated circuit including the system bus interface circuit, the image bus interface circuit, the table search circuit, the mode determination image restoration circuit, and the sequencer circuit, the entire chip is tested. Not only is it possible to perform a single function test of the table search circuit, and it is also possible to perform a single function test of the change point detection circuit that constitutes the mode determination image restoration circuit, which makes it easy to determine the quality of these single functions. There is an effect.

【図面の簡単な説明】[Brief description of drawings]

第1図は本発明の第1実施例をしめすブロック図、第2
図は本発明の第2実施例を示すブロック図、第3図は本
発明の第3実施例を示すブロック図、第4図は本発明の
第4実施例を示すブロック図、第5図(a)はターミネ
ーティング符号をしめし、第5図(b)はメークアップ
符号を示す図、第6図はMR、MMR符号化方式における変
化点の位置関係を示す図、第7図は二次元符号を表す図
である。 1……システムバスインターフェイス回路、2……テー
ブル検索回路、3……シーケンサ回路、3a……シーケン
サアドレス制御回路、3b……マイクロプログラムROM、3
c……命令レジスタ、3d……RAM、3e……演算器、4……
モード判定画像復元回路、4a……モード判定回路、4b…
…画像復元回路、4c……変化点検出回路、4d……FIFOメ
モリ、5……イメージバスインターフェイス回路、6…
…内部制御信号バス、7……内部データバス。
FIG. 1 is a block diagram showing the first embodiment of the present invention, and FIG.
FIG. 4 is a block diagram showing a second embodiment of the present invention, FIG. 3 is a block diagram showing a third embodiment of the present invention, FIG. 4 is a block diagram showing a fourth embodiment of the present invention, and FIG. a) shows the terminating code, FIG. 5 (b) shows the make-up code, FIG. 6 shows the positional relationship of the change points in the MR and MMR coding systems, and FIG. 7 shows the two-dimensional code. It is a figure showing. 1 ... System bus interface circuit, 2 ... Table search circuit, 3 ... Sequencer circuit, 3a ... Sequencer address control circuit, 3b ... Micro program ROM, 3
c …… instruction register, 3d …… RAM, 3e …… operation unit, 4 ……
Mode decision image restoration circuit, 4a ... Mode decision circuit, 4b ...
... Image restoration circuit, 4c ... Change point detection circuit, 4d ... FIFO memory, 5 ... Image bus interface circuit, 6 ...
… Internal control signal bus, 7 …… Internal data bus.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 白井 秀行 東京都目黒区下目黒2丁目3番8号 松下 電送株式会社内 (72)発明者 西田 俊子 東京都目黒区下目黒2丁目3番8号 松下 電送株式会社内 ─────────────────────────────────────────────────── ─── Continuation of front page (72) Hideyuki Shirai, Inventor Hideyuki Shimeguro 2-3-8, Meguro-ku, Tokyo Matsushita Densen Co., Ltd. (72) Inventor Toshiko Nishida 2-3-8 Shimeguro, Meguro-ku, Tokyo Matsushita Electric Transmission Co., Ltd.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】符号データを入出力するシステムバスイン
ターフェイス回路と、符号化ライン画信号と二次元符号
化時には参照ライン画信号、復元された画信号を入出力
するイメージバスインターフェイス回路と、二次元符号
化時には前記符号化ライン画信号と前記参照ライン画信
号を入力しそれぞれの変化点を検出して符号化モードと
前記符号化ライン画信号の変化点アドレスを出力し、一
次元符号化時には前記符号化ライン画信号の変化点アド
レスと色情報を出力し、二次元復号化時には復号化モー
ドと復号ランレングスのアドレス情報と参照ライン画信
号を入力し、一次元復号化時には色情報と復号ランレン
グスのアドレス情報を入力して画像を復元するモード判
定画像復元回路と、二次元符号化時に前記符号化モード
と符号化ラインの符号ランレングスとを入力し、一次元
符号化時に前記色情報と符号化ラインの符号化ランレン
グスを入力してそれぞれ符号データを前記システムバス
インターフェイス回路に出力し、前記システムバスイン
ターフェイス回路より符号データを入力し、二次元復号
化時には前記モード判定画像復元回路に前記復号化モー
ドを出力すると共に復号ランレングスを出力し、一次元
復号化時には色情報と復号ランレングス出力するテーブ
ル検索回路と、データメモリと演算器を有し一次元およ
び二次元符号化時に前記符号化ライン信号の変化点アド
レスを入力し前記符号化ラインの符号ランレングスを演
算して前記テーブル検索回路に出力し、一次元および二
次元復号時前記復号ランサングスを入力し前記復号ラン
レングスの前記アドレス情報を演算して前記モード判定
画像復元回路に出力すると共に、前記各回路を制御する
シーケンサ回路と、からなり該シーケンサ回路の制御に
より、前記システムバスインターフェイス回路より符号
化モードと符号ランレングスを前記データメモリを介し
て前記テーブル検索回路に入力して符号データを前記シ
ステムバスインターフェイス回路に出力し、また符号デ
ータを前記システムバスインターフェイス回路より前記
テーブル検索回路に入力して復号化モードと復号ランレ
ングスを前記データメモリを介して前記システムバスイ
ンターフェイス回路に出力することを特徴とする画信号
符号化・復号化大規模集積回路。
1. A system bus interface circuit for inputting / outputting code data, an image bus interface circuit for inputting / outputting a coded line image signal and a reference line image signal at the time of two-dimensional encoding, and a restored image signal, and a two-dimensional At the time of encoding, the encoded line image signal and the reference line image signal are input, the respective change points are detected, the encoding mode and the change point address of the encoded line image signal are output, and at the time of one-dimensional encoding, the The change point address and color information of the encoded line image signal are output, the address information of the decoding mode and decoding run length and the reference line image signal are input during two-dimensional decoding, and the color information and decoding run are input during one-dimensional decoding. A mode determination image restoration circuit that restores an image by inputting address information of length, and a coding mode and a coding line of the coding mode at the time of two-dimensional coding. No. run length is input, the color information and the coding run length of the coding line are input at the time of one-dimensional coding, and code data is output to the system bus interface circuit, and the code data is output from the system bus interface circuit. A table search circuit that outputs the decoding mode and the decoding run length to the mode determination image restoration circuit at the time of two-dimensional decoding, and outputs color information and decoding run length at the time of one-dimensional decoding, and It has a memory and a computing unit, inputs a change point address of the coded line signal at the time of one-dimensional and two-dimensional coding, calculates a code run length of the coded line, and outputs it to the table search circuit. At the time of two-dimensional decoding, the decoding run length is input and the address information of the decoding run length is calculated. A sequencer circuit for controlling each circuit by outputting the encoded mode and the code run length from the system bus interface circuit via the data memory. Input to the table search circuit to output code data to the system bus interface circuit, and input code data from the system bus interface circuit to the table search circuit to input a decoding mode and a decoding run length to the data memory. A large-scale integrated circuit for image signal encoding / decoding, which is output to the system bus interface circuit via the.
【請求項2】前記モード判定画像復元回路が、二次元符
号化時に符号化ラインの変化点アドレスと参照ラインの
変化点アドレスとを入力して符号化モードを判定し前記
テーブル検索回路に出力し、二次元復号化時に前記テー
ブル検索回路より前記復号化モードを入力し、前記シー
ケンサ回路より前記復号ランレングスの前記アドレス情
報を入力し、参照ラインの変化点アドレスを入力して画
像復元データを出力し、一次元復号化時に前記テーブル
検索回路より前記色情報を入力し前記シーケンサ回路よ
り前記復号ランレングスの前記アドレス情報を入力して
画像復元データを出力するモード判定回路と、該画像復
元データを入力して画像を復元する画像復元回路と、二
次元符号化時符号化ライン画信号と参照ライン画信号を
入力し前記符号化ラインの変化点アドレスと前記参照ラ
インの変化点アドレスを前記モード判定回路に出力する
と共に、該符号化ラインの変化点アドレスをシーケンサ
回路に出力し、一次元符号化時・符号化ライン画信号を
入力して色情報と変化点アドレスを出力し、二次元復号
化時参照ライン画信号を入力して前記モード判定回路に
前記参照ラインの変化点アドレスを出力する変化点検出
回路と、からなり前記シーケンサ回路の制御により、前
記イメージバスインターフェイス回路より画像データを
前記変化点検出回路へ入力し、該画像データの変化点ア
ドレス情報を前記データメモリを介して前記システムバ
スインターフェイス回路へ出力することを特徴とする請
求項1記載の画信号化・復号化大規模集積回路。
2. The mode decision image restoration circuit inputs a change point address of a coding line and a change point address of a reference line at the time of two-dimensional coding, judges a coding mode and outputs it to the table search circuit. During the two-dimensional decoding, the decoding mode is input from the table search circuit, the address information of the decoding run length is input from the sequencer circuit, the change point address of the reference line is input, and the image restoration data is output. Then, at the time of one-dimensional decoding, the color information is input from the table search circuit, the address information of the decoding run length is input from the sequencer circuit, and image restoration data is output, and the image restoration data is output. An image restoration circuit for inputting and restoring an image, and for inputting a coded line image signal and a reference line image signal during two-dimensional coding The change point address of the input line and the change point address of the reference line are output to the mode determination circuit, and the change point address of the encoded line is output to the sequencer circuit to generate the one-dimensional encoding / encoded line image signal. A change point detection circuit for inputting color information and a change point address, inputting a reference line image signal at the time of two-dimensional decoding, and outputting the change point address of the reference line to the mode determination circuit; Image data is input from the image bus interface circuit to the change point detection circuit under the control of a sequencer circuit, and change point address information of the image data is output to the system bus interface circuit via the data memory. The image signal conversion / decoding large-scale integrated circuit according to claim 1.
【請求項3】前記シーケンサ回路の制御により、前記シ
ステムバスインターフェイス回路よりパターンデータを
前記データメモリを介して前記変化点検出回路へ入力し
て変化点アドレス情報を前記データメモリを介して前記
システムバスインターフェイス回路より出力することを
特徴とする請求項2記載の画信号化・復号化大規模集積
回路。
3. Under the control of the sequencer circuit, pattern data is input from the system bus interface circuit to the change point detection circuit via the data memory, and change point address information is sent to the system bus via the data memory. The large-scale integrated circuit for image signal decoding / decoding according to claim 2, wherein the large-scale integrated circuit is output from an interface circuit.
【請求項4】前記システムバスインターフェイス回路、
前記イメージバスインターフェイス回路よりデータを入
力でき前記変化点検出回路へ該データを出力する先入れ
先出しメモリを設け、前記シーケンサ回路の制御によ
り、前記システムバスインターフェイス回路よりパター
ンデータを前記先入れ先出しメモリを介して前記変化点
検出回路へ入力して変化点アドレス情報を前記データメ
モリを介して前記システムバスインターフェイス回路よ
り出力することを特徴とする精求項2記載の画信号化・
復号化大規模集積回路。
4. The system bus interface circuit,
A first-in first-out memory that can input data from the image bus interface circuit and outputs the data to the change point detection circuit is provided, and the pattern data is changed from the system bus interface circuit through the first-in first-out memory under the control of the sequencer circuit. The image signal conversion according to claim 2, wherein the change point address information is input to the point detection circuit and is output from the system bus interface circuit via the data memory.
Decoding large scale integrated circuit.
JP63196608A 1988-08-05 1988-08-05 Image signal encoding / decoding large-scale integrated circuit Expired - Fee Related JPH088645B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63196608A JPH088645B2 (en) 1988-08-05 1988-08-05 Image signal encoding / decoding large-scale integrated circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63196608A JPH088645B2 (en) 1988-08-05 1988-08-05 Image signal encoding / decoding large-scale integrated circuit

Publications (2)

Publication Number Publication Date
JPH0244966A JPH0244966A (en) 1990-02-14
JPH088645B2 true JPH088645B2 (en) 1996-01-29

Family

ID=16360585

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63196608A Expired - Fee Related JPH088645B2 (en) 1988-08-05 1988-08-05 Image signal encoding / decoding large-scale integrated circuit

Country Status (1)

Country Link
JP (1) JPH088645B2 (en)

Also Published As

Publication number Publication date
JPH0244966A (en) 1990-02-14

Similar Documents

Publication Publication Date Title
US6212234B1 (en) Color image encoding apparatus and color image decoding apparatus
USRE33632E (en) Encoding/decoding system
JP2924964B2 (en) Image information encoding device, image information decoding device, and image information encoding / decoding device
JPS6338913B2 (en)
JPS63138881A (en) Mr code expander
JPH088645B2 (en) Image signal encoding / decoding large-scale integrated circuit
JPH088646B2 (en) Image signal encoding / decoding large-scale integrated circuit
JPH01106573A (en) Data communication equipment
JPS6341273B2 (en)
KR100235327B1 (en) Text identification method
JPS6282769A (en) Coding device
JPS63184479A (en) Pattern coding device
JPS63299682A (en) Changing point detector in two-dimension encoder
JP2868533B2 (en) Drawing reading device
JPS60169276A (en) Data compressing system
JP2551397B2 (en) Image signal coding system
JPH02131673A (en) Document decompression system
JPS6281881A (en) Encoding device
JP2001148790A (en) Coding method and coding unit
JPS63288570A (en) Decoding device
JPS58101562A (en) Facsimile deivce
JPS61234664A (en) Decoding circuit
JPH09266575A (en) Method and device for encoding dynamic image
JPH0548027B2 (en)
JPH01318463A (en) Picture information coding device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees