JPH06164945A - Facsimile equipment - Google Patents

Facsimile equipment

Info

Publication number
JPH06164945A
JPH06164945A JP52A JP22546093A JPH06164945A JP H06164945 A JPH06164945 A JP H06164945A JP 52 A JP52 A JP 52A JP 22546093 A JP22546093 A JP 22546093A JP H06164945 A JPH06164945 A JP H06164945A
Authority
JP
Japan
Prior art keywords
address
code
line
signal
change point
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
Application number
JP52A
Other languages
Japanese (ja)
Inventor
Kozo Nakamura
浩三 中村
Yasuyuki Kojima
康行 小嶋
Nagaharu Hamada
長晴 浜田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP52A priority Critical patent/JPH06164945A/en
Publication of JPH06164945A publication Critical patent/JPH06164945A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain flexible and high speed decoding processing by providing a code memory storing a sent coding signal, a decoding means generating a picture signal from the code and a picture memory storing it, and connecting the code memory and the picture memory with other signal bus. CONSTITUTION:The facsimile equipment is formed by separating a system bus of a microcomputer 8010 and a video bus of a CODEC 2000. A picture signal is transferred on a V bus and the code is transferred on the system bus. Thus, the coding and decoding processing are quickened. Furthermore, a DMAC 8060 is used for the system bus and the code is transferred thereby to relieve the load of the microcomputer 8010. Since the VM8020 is independently of an address space of the microcomputer 8010, a large sized VM is provided without limitation a space of 64k bytes being a general address space of the 8-bit microcomputer. That is, a change point is detected and a picture signal is decoded in parallel.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、高速ファクシミリで国
際規格として定められたMH符号(ModifiedHuffman Co
de)及びMR符号(Modified READ)の復号化及び復
号化を行う符号化、復号化装置を搭載したファクシミリ
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an MH code (Modified Huffman Co.) defined as an international standard for high speed facsimile.
De) and MR code (Modified READ) decoding and a facsimile equipped with a coding / decoding device for decoding.

【0002】[0002]

【従来の技術】図1は、ファクシミリの概略を示すブロ
ック図である。ファクシミリでは、読取部1000によ
って原稿を走査し、画像(Video Data:VD)信号を生
成する。画像信号(以下、画像信号VD、または単にV
Dという。)は、符号化復号化装置2000によって符
号(Code Word)に変換され、さらに変復調装置3000
によって伝送路帯域の周波数に変換され、網制御装置4
000を介して伝送回線上に送信される。受信側では、
上記と逆の手続きで、符号から画像信号に変換し、記録
部5000にてハードコピーを得る。図1では全体を制
御する制御部(通常はマイクロコンピュータが用いられ
る)の説明を省略している。
2. Description of the Related Art FIG. 1 is a block diagram showing an outline of a facsimile. In the facsimile, the reading unit 1000 scans a document to generate an image (Video Data: VD) signal. Image signal (hereinafter, image signal VD, or simply V
Called D. ) Is converted into a code (Code Word) by the encoding / decoding device 2000, and further, the modulation / demodulation device 3000.
Is converted to a frequency in the transmission line band by the network controller 4
000 over the transmission line. On the receiving side,
By the procedure reverse to the above, the code is converted into the image signal, and the recording unit 5000 obtains a hard copy. In FIG. 1, description of a control unit (normally a microcomputer is used) for controlling the whole is omitted.

【0003】画像電子学会誌‘77,Vol6,No.3及
び‘78,Vol7,No.1や画像電子学会誌“80,V
ol9,No.1等の文献に記載があるように、符号化復
号化装置2000では、国際規格のMH符号及びMR符
号が用いられることが多い。MH符号は、同一走査ライ
ン上における2つのとなり合ったビット変化点(画素の
色、例えば白か黒かが変化する点)の間のビット長の距
離(Run Length:RL)を“符号”として変換するもの
である。MR符号は、となり合った2つのライン上のビ
ット変化点を求め、すでに符号化して伝送したライン
(参照ライン)と、今符号化しようとしているライン(符
号化ライン)との変化点の相対的なビット位置の差を
“符号”として変換するものである。従来の符号化復号
化装置は、符号化時には画像信号の1ビットを1ワード
として記憶するメモリを複数ライン分用意し、シリアル
にメモリを走査して変化点を求めていた。また、復号化
時には、RLからカウンタ等を用いてシリアルに画像信
号を復元していた。
The Institute of Image Electronics Engineers, '77, Vol 6, No. 3 and '78, Vol 7, No. 1 and the Institute of Image Electronics Engineers, "80, V.
As described in documents such as ol9, No. 1 and the like, the encoding / decoding device 2000 often uses MH code and MR code of international standards. In the MH code, the bit length distance (Run Length: RL) between two adjacent bit change points (points at which pixel color changes, for example, white or black) on the same scan line is defined as “code”. It is to convert. The MR code is a line that has already been encoded and transmitted after finding the bit change points on two lines that are adjacent to each other.
The difference between the relative bit positions of the change points of the (reference line) and the line to be encoded (encoding line) is converted as "code". In the conventional encoding / decoding apparatus, a memory for storing one bit of an image signal as one word is prepared for a plurality of lines at the time of encoding, and the memory is serially scanned to obtain a change point. Moreover, at the time of decoding, the image signal is serially restored from the RL using a counter or the like.

【0004】[0004]

【発明が解決しようとする課題】このため、上記従来技
術はハードウエア量が多く、またメモリ等の高速動作が
要求されるという欠点があった。また、MH符号及びM
R符号は、高度な符号化方式であるため、通常マイクロ
コンピュータによるソフトウエアとハードウエアとを組
み合わせて処理する構成としている。しかし、ソフトウ
エアによる信号処理は低速であり、高速に符号化するに
は処理速度に限界があった。また、ハードウエアだけで
処理する構成とした場合でも、そのハードウエアが大規
模化し、またハードウエアがその処理に専用化されるの
で柔軟性に欠けるという問題があった。さらに、マイク
ロコンピュータのシステムバス上に画像信号記憶用のメ
モリ(例えば、通常8ビットが1ワードとなる)を接続
することにより、ハードウエア量を低減したものもある
が、ワード内のビット変化点は、シリアルに検出すると
いう手法を用いているため依然として高速化に問題が残
っていた。
For this reason, the above-mentioned prior art has drawbacks in that the amount of hardware is large and that high-speed operation of a memory or the like is required. Also, the MH code and M
Since the R code is an advanced coding system, it is usually configured to process by combining software and hardware by a microcomputer. However, signal processing by software is slow, and the processing speed is limited for high-speed encoding. Further, even when the processing is performed only by hardware, there is a problem that the hardware becomes large in scale and the hardware is dedicated to the processing, so that it lacks flexibility. Further, although there is one in which the amount of hardware is reduced by connecting a memory for storing an image signal (for example, 8 bits are usually 1 word) on the system bus of a microcomputer, the bit change point in the word Has a problem in speeding up because it uses a method of serial detection.

【0005】符号化復号化処理を処理する場合、処理す
べき画像の処理単位(画素,変化点,ライン,ページ)毎
に分離し、分離したそれぞれの処理を処理階層とする
と、本発明と従来技術との違いは図2に示すようにな
る。
In the case of processing the encoding / decoding processing, the processing unit (pixel, change point, line, page) of the image to be processed is separated, and each separated processing is a processing hierarchy. The difference from the technology is shown in Fig. 2.

【0006】従来装置は、画像信号をシリアルに走査し
て変化点を検出する画素単位の処理をハードウエアで行
い、変化点情報から符号を生成する変化点単位以後の処
理をマイクロコンピュータを用いたソフトウエアが分担
する例が多い。この例では柔軟性は高いけれどもマイク
ロコンピュータの負担が重なり、高速な回線(例えば4
8Kb/sまたはそれ以上の)には適用しずらいという
問題があった。また、画像処理における符号化,復号化
のアルゴリズムに軽微な変更を加えようとしてもハード
ウエアが専用化しているために困難であったり、マイク
ロコンピュータを用いたことによる特長(例えばバス接
続によるインタフェイスの容易性等)を活かした柔軟な
システム構築が困難であったりして容易に拡張性を持た
すことができなかった。
The conventional apparatus uses a microcomputer to perform processing in pixel units for serially scanning an image signal to detect a change point and to generate a code from the change point information. In many cases, software is shared. In this example, the flexibility is high, but the load of the microcomputer is overlapped, and a high-speed line (for example, 4
There is a problem that it is difficult to apply it to 8 Kb / s or more). In addition, even if a slight change is made to the encoding and decoding algorithms in image processing, it is difficult because the hardware is dedicated, and the advantage of using a microcomputer (for example, interface by bus connection) However, it was difficult to build a flexible system that takes advantage of the above (ease of the above), and it was not possible to easily provide expandability.

【0007】本発明の目的は、上記従来技術の問題点を
解消し、画像信号を高速に、符号化,復号化する装置を
搭載したファクシミリを提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to solve the above problems of the prior art and to provide a facsimile equipped with a device for encoding and decoding image signals at high speed.

【0008】[0008]

【課題を解決するための手段】上記目的を達成するた
め、本発明は次の技術的手段を採用したものである。
In order to achieve the above object, the present invention employs the following technical means.

【0009】原稿を読み取って画像信号を生成する読み
取り手段と、前記読み取った画像信号を符号信号に変換
する符号化手段と、符号信号を画像信号に復号化する復
号化手段とを有する符号化復号化装置と、前記読み取り
手段で生成した画像信号と符号化復号化装置で復号化し
た画像信号とを記録する画像メモリと、前記復号化され
た画像信号を前記画像メモリから呼出して記録する記録
手段と、前記符号化復号化装置と画像メモリと前記読み
取り手段と記録手段とを接続して前記画像信号を流す画
像バスと、システムを制御するマイクロコンピュータ
と、符号信号を外部と送受信する送受信手段と、前記受
信した符号信号と前記符号化復号化装置の符号信号を記
録する符号メモリと、符号信号とプログラムとを流す符
号バスとから構成したファクシミリ装置としたものであ
る。
Coding and decoding having reading means for reading an original to generate an image signal, coding means for converting the read image signal into a code signal, and decoding means for decoding the code signal into an image signal Apparatus, an image memory for recording the image signal generated by the reading means and the image signal decoded by the encoding / decoding apparatus, and recording means for calling and recording the decoded image signal from the image memory An image bus for connecting the encoding / decoding device, the image memory, the reading means and the recording means to pass the image signal, a microcomputer for controlling the system, and a transmitting / receiving means for transmitting / receiving the code signal to / from the outside. A code memory for recording the received code signal and the code signal of the encoding / decoding device, and a code bus for flowing the code signal and the program. It is obtained by the facsimile apparatus.

【0010】[0010]

【作用】本発明は、送信されてきた符号化された信号を
記録する符号メモリと、前記符号化された信号から画像
信号を生成する復号化手段と、前記復号化された画像信
号を記録する画像メモリとを有し、符号メモリと復号化
手段との間及び復号化手段と画像メモリ間をそれぞれ別
の信号バスで接続することにより、高速にデータ転送が
可能となり、且つ復号化手段も複数ビットを1ワードと
して、ワード単位でパラレルに変化点の検出ならびにこ
の変化点情報からの画像信号の復元を行い、マイクロコ
ンピュータから与えられる動作パラメータの指定により
柔軟にかつ高速に復号化処理を行うものである。
According to the present invention, a code memory for recording the transmitted encoded signal, a decoding means for generating an image signal from the encoded signal, and the decoded image signal are recorded. An image memory is provided, and high speed data transfer is possible by connecting the code memory and the decoding means and the decoding means and the image memory by different signal buses, respectively, and a plurality of decoding means are provided. One bit is one word, the change point is detected in parallel in word units, the image signal is restored from the change point information, and the decoding process is performed flexibly and at high speed by specifying the operation parameter given from the microcomputer. Is.

【0011】[0011]

【実施例】図3以下を用いて本発明の実施例を図面を用
いて説明する。
Embodiments of the present invention will be described with reference to the drawings with reference to FIG.

【0012】図3は、本発明になる符号化,復号化装置
(Codec)の全体ブロック図である。MPUI/F210
0は、マイクロコンピュータ(マイコン)とインタフェ
イスを取るもので、信号a−1〜信号a−10が入出力
される。信号a−1は、マイコンがCodec をアクセスす
るときのチップセレクト(Chip Select:CS)信号であ
る。信号a−2は、マイコンとCodec 間でデータの転送
を行うときのタイミング(Data Strobe :DS)信号で
ある。信号a−3は、マイコンからのCodec に対する読
み出しか書き込みを制御するリードライト(Read/Writ
e :R/W)信号である。信号a−1〜信号a−3は、
マイコンボードのコントロールバス(Control Bus :C
Bus)から入力される。信号a−4は、マイコンから
のアドレス(Address :A)信号である。信号a−1〜
信号a−4により、マイコンからCodec 内部の各レジス
タをアクセスするための信号C(外部制御信号と呼ぶ)が
作られる。信号a−5は、マイコンとCodec 間でデータ
のやりとりを行う信号(Data:D)で、マイコンのデー
タバス(Data Bus:DBus)と直結する。信号a−6
は、ダイレクトメモリアクセスコントローラ(Direct M
emory Access Controller :DMAC)に対して、外
部回路(通常はメモリ)とCodecの内のメモリ間で直接
にデータを転送するダイレクトメモリアクセス(Direct
Memory Access:DMA)を要求するDMA要求(DM
A Request:DRQT)信号である。信号a−7は、
DRQTに対する確認(DMA Acknowledge :DAC
K)信号を受けるものである。Codec は、DRQT信号
を出力すると、DACK信号が返るのを待ち、DACK
信号が返った後、DS信号のタイミングに合わせてData
の入出力を行う。信号a−8は、マイコンに対して割り
込み要求(Interrupt Request :IRQ)を行うもの
で、たとえば、1ライン分の処理が終了したときなどに
用いられる。信号でa−9はリセット(RESET)信
号で、Codec 内部が初期状態となる。信号a−10はク
ロック(CLK)信号で、Codec 内の処理のタイミング
の源となる。これらの信号を用いてマイコンとインタフ
ェイスする例は、通常市販されているマイコンと直結す
るLSIにあるので、ここでは、これ以上の説明は省略
する。このようにCodecは、MPU I/F2100を持
ち、マイコンのバスと直結できるため、システム構成が
容易でかつ小型化できるという効果がある。
FIG. 3 is an overall block diagram of an encoding / decoding device (Codec) according to the present invention. MPUI / F210
Reference numeral 0 denotes an interface with a microcomputer, and signals a-1 to a-10 are input / output. The signal a-1 is a chip select (CS) signal when the microcomputer accesses the Codec. The signal a-2 is a timing (Data Strobe: DS) signal when data is transferred between the microcomputer and the Codec. The signal a-3 is a read / write (Read / Writ) that controls reading or writing of the Codec from the microcomputer.
e: R / W) signal. The signals a-1 to a-3 are
Microcomputer board control bus (Control Bus: C
Bus). The signal a-4 is an address (Address: A) signal from the microcomputer. Signals a-1 to
The signal a-4 produces a signal C (referred to as an external control signal) for accessing each register in the Codec from the microcomputer. The signal a-5 is a signal (Data: D) for exchanging data between the microcomputer and the Codec, and is directly connected to the data bus (Data Bus: DBus) of the microcomputer. Signal a-6
Direct Memory Access Controller (Direct M
emory Access Controller: Direct memory access (Direct) that directly transfers data between the external circuit (usually a memory) and the memory inside the Codec for the DMAC
Memory Access (DMA) DMA request (DM)
A Request: DRQT) signal. The signal a-7 is
Acknowledgment for DRQT (DMA Acknowledge: DAC
K) It receives a signal. When the Codec outputs the DRQT signal, it waits for the DACK signal to return,
After the signal is returned, Data is synchronized with the timing of the DS signal.
Input and output. The signal a-8 makes an interrupt request (IRQ) to the microcomputer and is used, for example, when the processing for one line is completed. The signal a-9 is a reset (RESET) signal, and the inside of the Codec is in an initial state. The signal a-10 is a clock (CLK) signal, which serves as a timing source of processing in the Codec. An example of using these signals to interface with a microcomputer is an LSI that is directly connected to a commercially available microcomputer, so a further description will be omitted here. In this way, the Codec has the MPU I / F 2100 and can be directly connected to the bus of the microcomputer, so that the system configuration is easy and the size can be reduced.

【0013】制御部2200は、Codec 内の各ハードウ
エアに対して内部制御バスbを介してタイミングを供給
し、また各ハードウエアの状態を入力して次に何を行う
かを決定する部分で、マイクロプログラムを中心に構成
される。これについては図4を用いて詳細に説明する。
The control unit 2200 is a part that supplies timing to each piece of hardware in the Codec via the internal control bus b and also inputs the state of each piece of hardware to determine what to do next. , Composed mainly of microprograms. This will be described in detail with reference to FIG.

【0014】演算部2300は、ALU(Arithmetic L
ogic Unit:算術・論理演算部)とレジスタ群等から成
り、変化点のアドレスから、ランレグスRLを求めた
り、参照ラインと符号化ラインとの変化から位置の相対
差を求めたり、その逆の演算を行う部分である。これに
ついては図5を用いて詳細に説明する。
The arithmetic unit 2300 is an ALU (Arithmetic L
ogic Unit: arithmetic / logical operation unit) and a register group, etc., and calculates the run leg RL from the address of the change point, the relative difference in position from the change between the reference line and the encoding line, and vice versa. Is the part to do. This will be described in detail with reference to FIG.

【0015】ビデオアドレス(Video Address :VA)
発生部2400は、画像信号を記憶するビデオメモリ
(Video Memory:VM)に対して、ビデオアドレス(Vi
deo Address :VA)信号d−10を発生する部分であ
る。これについては図6を用いて詳細に説明する。
Video Address (VA)
The generation unit 2400 sends a video address (Vi) to a video memory (VM) that stores an image signal.
deo Address: VA) This is a part for generating the signal d-10. This will be described in detail with reference to FIG.

【0016】テーブル(Table )部2500は、MH符号
及びMR符号の符号化テーブル及び復号化テーブルから
成り、演算部2300からのRLや相対差と、制御部22
00からのモード信号を入力してMH符号やMR符号に変
換したり、その逆を行う部分である。これについては、
図8,図9,表1〜表3を用いて詳細な説明を行う。変
化点検出部2600は、参照ライン及び符号化ラインの
画像信号を複数ビットを1ワードとして記憶しているメ
モリから、ワード単位で画像信号を取り込み、ワード内
の変化点の位置(ビットアドレスと呼ぶ)をパラレル処
理で検出する部分である。これについては図10,図1
1,表4を用いて詳細に説明する。
A table unit 2500 is composed of an encoding table and a decoding table of MH code and MR code, and controls the RL and relative difference from the arithmetic unit 2300 and the control unit 22.
This is a part for inputting a mode signal from 00 and converting it to MH code or MR code, and vice versa. For this,
A detailed description will be given with reference to FIGS. 8 and 9 and Tables 1 to 3. The change point detection unit 2600 takes in the image signal in units of words from a memory that stores the image signals of the reference line and the encoded line as a plurality of bits in one word, and changes the position of the change point in the word (called a bit address). ) Is detected by parallel processing. About this,
1 and Table 4 will be described in detail.

【0017】画像信号復元部2700は、復号化ライン
上のとなり合った2つの変化点のビットアドレスと、2
つの変化点間にワードアドレスの差があるか否かの情報
と、変化点間の画像信号の色情報から、ワード単位でパ
ラレルに画像信号を復元する回路である。これについて
は、図12,図13,表5を用いて詳細に説明する。ビ
デオバスインタフェイス(Video BusInterface:VBU
SI/F)2800は、画像信号を記憶しているVMに
対するインタフェイス信号及び、ビデオバス(Video Bu
s:VBus)を制御する信号及び、外部装置からDM
Aで画像信号を転送するための信号が入出力される。
The image signal restoration unit 2700 uses the bit addresses of two adjacent change points on the decoding line and 2
It is a circuit that restores the image signal in parallel on a word-by-word basis based on the information indicating whether there is a difference in word address between the two changing points and the color information of the image signal between the changing points. This will be described in detail with reference to FIGS. 12, 13 and Table 5. Video Bus Interface (VBU)
The SI / F 2800 is an interface signal for the VM storing the image signal and a video bus (Video Bu).
s: VBus) control signal and DM from an external device
A signal for transferring the image signal is input and output at A.

【0018】信号d−1は、VBusをCodecが使うと
き、VBusの使用権の要求(VideoBus Request:BR
QT)信号で、Codec以外にも、VBus使用権を持つ
ものがある場合に出力される。
When the Codec uses the VBus, the signal d-1 is a request for the right to use the VBus (Video Bus Request: BR).
QT) signal is output when there is a VBus usage right other than the Codec.

【0019】信号d−2は、BRQT信号d−1に対す
る確認(Video Bus Acknowledge :BACK)信号であ
る。
The signal d-2 is a confirmation (Video Bus Acknowledge: BACK) signal for the BRQT signal d-1.

【0020】信号d−3は、Codec のVBus使用中
(Video Bus Enable:VBE)を示す信号である。
The signal d-3 is a signal indicating that the VBus of the Codec is being used (Video Bus Enable: VBE).

【0021】信号d−4は、Codecと外部装置(通常メモ
リ)間で画像信号の転送を行うとき、その転送タイミン
グ(Video Data Strobe :VDS)信号である。
The signal d-4 is a transfer timing (Video Data Strobe: VDS) signal when the image signal is transferred between the Codec and the external device (normal memory).

【0022】信号d−5は、Codec と外部装置間でデー
タの転送を行うとき、Codec から外部装置へのデータ転
送(書込み)か、外部装置からCodec へのデータ転送
(読出し) かを外部装置に知らせるビデオバス読出し/
書込み(Video Bus Read/Write:VR/W)信号であ
る。
When the data is transferred between the Codec and the external device, the signal d-5 indicates whether the data transfer (write) from the Codec to the external device or the data transfer (read) from the external device to the Codec is performed by the external device. Video bus read out /
This is a write (Video Bus Read / Write: VR / W) signal.

【0023】信号d−6は、画像信号生成部(通常ファ
クシミリでは読取部)からの画像信号のVMへの転送要
求(Trasport Data DMA Request:TDRQT)信号
である。
The signal d-6 is a transfer request (Trasport Data DMA Request: TDRQT) signal of an image signal from the image signal generating unit (a reading unit in a normal facsimile) to the VM.

【0024】信号d−7は、TDRQT信号に対する確
認(Transport Data DMA Acknowledge :TDACK)信
号である。
The signal d-7 is a confirmation (Transport Data DMA Acknowledge: TDACK) signal for the TDRQT signal.

【0025】信号d−8は、画像信号を受信する装置
(通常、ファクシミリでは記録部)からの、画像信号の受
信要求(Receive Data DMA Request:RDRQT)信号で
ある。信号d−9は、RDRQTに対する確認(RDRQT
Acknowledge :RDACK)信号である。
The signal d-8 is a device for receiving an image signal.
This is an image signal reception request (Receive Data DMA Request: RDRQT) signal from a recording unit (usually a recording unit in a facsimile). Signal d-9 is a confirmation for RDRQT (RDRQT
Acknowledge: RDACK) signal.

【0026】信号d−10は、ビデオメモリVMに対す
るCodec からのワードアドレス(Video Memory Word Ad
dress:VA)信号である。
The signal d-10 is a word address (Video Memory Word Ad) from the Codec for the video memory VM.
dress: VA) signal.

【0027】信号d−11はVMとCodec 間で、画像信
号をワード単位で転送するビデオデータバス(Video Da
ta Bus:VDBus)である。
The signal d-11 is a video data bus (Video Data Bus) for transferring an image signal in word units between the VM and the Codec.
ta Bus: VD Bus).

【0028】図4は、制御部2200の構成を詳細に説
明する図である。命令レジスタ(Instruction Registe
r:IR)2210は、外部制御装置(通常マイコン)
からのMH符号化命令等のマクロ命令を受けるレジスタ
である。マッピングROM(Read Only Memory)220
0は、命令レジスタIR2210に格納されたマクロ命令か
ら、そのマクロ命令を解読して実行するマイクロプログ
ラムを記憶しているROM2240 の先頭アドレスを発生する
ものである。シーケンサ2230は、マイクロプログラ
ムROM2240 のアドレスを発生するもので、割り込み制
御,サブルーチン制御,ジャンプアドレス発生等を行
う。パイプラインレジスタ2250は、マイクロプログ
ラムROM2240 からのマイクロ命令を格納するレジスタで
ある。パイプラインレジスタ2250の出力は、内部制
御バスbを介して各ハードウエアに動作指令として供給
される。また、その一部はシーケンサ2230にもフィ
ードバックされ、たとえば割り込み許可/不許可といっ
たふうにシーケンサ2230も制御する。スティタスレ
ジスタ(Status Register:SR)2260は、Codecの
内部状態を記憶するレジスタで、処理の終了状態や、デ
ータバッファレジスタ(Data Buffer Register:DB
R)2280のレデイ(Ready)状態をマイコンに知らせ
る。システムコントロールレジスタ(System Control R
egister :SCR)2270は、Codec のシステムを制
御する信号を格納するレジスタで、マイコンによって書
き込まれる。例えば、Codec がVBusを独占している
か否かや、Codec をウエイト(Wait)状態にしたり、1
ライン単位の処理か、マルチライン(ページモード:Pa
ge Mode)単位の処理かの制御等が、このレジスタで行わ
れる。マルチプレクサ(MPX)2290は、Codec が
アイドル状態(何もやる処理がない)や、Wait状態時
に、外部制御バスCの一部を内部制御バスbにつなぎ、
その他の状態時は、パイプラインレジスタ2250から
の信号を内部制御バスbにつなぐスイッチである。これ
により、マイコンが、内部制御バスbによって制御され
ているCodec 内のレジスタをアクセスすることができ
る。DBR2280 は、VDBusの信号d−11とDBusの信
号a−5との間のデータ転送を行うもので、マイコンか
らIR2210にシステムバス(System Bus:SBus)とV
Bus間のデータ転送指令を受けると、たとえば、VB
usからSBusへの転送時は、画像信号VDをDBR228
0 にセットし、SR2260のDBRレデイフラグをオン(O
N)してマイコンに知らせる。マイコンは、DBR2280 を
リードしてVDを得る。転送方向がこの逆の場合も同様
である。この動作については後で詳述する。
FIG. 4 is a diagram for explaining the configuration of the control unit 2200 in detail. Instruction Register (Instruction Registe
r: IR) 2210 is an external control device (usually a microcomputer)
It is a register for receiving a macro instruction such as an MH coded instruction. Mapping ROM (Read Only Memory) 220
0 generates a start address of the ROM 2240 which stores a micro program for decoding and executing the macro instruction stored in the instruction register IR2210. The sequencer 2230 generates an address of the microprogram ROM 2240 and performs interrupt control, subroutine control, jump address generation, and the like. The pipeline register 2250 is a register for storing the micro instruction from the micro program ROM 2240. The output of the pipeline register 2250 is supplied to each hardware as an operation command via the internal control bus b. Further, a part thereof is also fed back to the sequencer 2230, and the sequencer 2230 is also controlled, for example, interrupt enable / disable. A status register (Status Register: SR) 2260 is a register for storing the internal status of the Codec. The status of processing and the data buffer register (Data Buffer Register: DB).
R) Notifies the microcomputer of the ready state of 2280. System Control Register (System Control R
egister: SCR) 2270 is a register for storing a signal for controlling the Codec system and is written by the microcomputer. For example, whether the Codec is monopolizing the VBus, whether the Codec is in a wait state, or 1
Line-by-line processing or multi-line (Page mode: Pa
Control of processing in units of ge Mode) is performed in this register. The multiplexer (MPX) 2290 connects a part of the external control bus C to the internal control bus b when the Codec is in the idle state (no processing is performed) or in the Wait state,
In other states, the switch connects the signal from the pipeline register 2250 to the internal control bus b. As a result, the microcomputer can access the register in the Codec controlled by the internal control bus b. The DBR2280 transfers data between the VDBus signal d-11 and the DBus signal a-5. The microcomputer 22R2210 sends a system bus (SBus) and V
When receiving a data transfer command between Buses, for example, VB
When transferring from us to SBus, the image signal VD is set to DBR228.
Set to 0 and turn on the SR2260 DBR ready flag (O
N) and inform the microcomputer. The microcomputer reads DBR2280 to obtain VD. The same applies when the transfer direction is the opposite. This operation will be described later in detail.

【0029】このように、制御部2200は、マイクロ
プログラミング制御方式を用いているため、柔軟な処理
が可能で、またタイミングはこの部分で集中して制御し
ているためLSI化時の設計が容易であるという効果が
ある。
As described above, since the control unit 2200 uses the microprogramming control method, it is possible to perform flexible processing, and since the timing is centrally controlled in this portion, the design at the time of LSI implementation is easy. There is an effect that.

【0030】図5は、演算部2300を詳細に説明した
ものである。レジスタファイル2310は、例えば2ポート
RAM(2Port Random Access Memory)等で構成でき、
各種の信号を記憶するものである。以下、ここでは1ワ
ード=1バイトの場合で説明を進める。レジスタファイ
ル2310には、符号化時は符号化ラインの、復号化時
は復号化ラインのアドレスとなる仮想アドレスレジスタ
Aチャンネル(VirtualAddress Register Achannel :V
ARA)、参照ラインのアドレスとなる仮想アドレスレ
ジスタBチャンネル(VARB)、読取部や記録部とV
M間で画像信号をDMA転送するときのライン(転送ラ
イン)のアドレスとなる仮想アドレスレジスタCチャン
ネル(VARC)、符号化ラインあるいは符号化ライン
の変化点の位置を記憶する一時記憶アドレスレジスタA
(Temporal Address Register A:TARA)、参照ラ
インの変化点のアドレスを記憶する一時記憶アドレスレ
ジスタB(TARB)がある。これらのレジスタに格納
されるアドレスは、ラインの始端を仮想的にゼロアドレ
スとした仮想アドレスである。また、ワードアドレスと
ビットアドレスの両方を記憶するものである。演算部2
300では、全てこの仮想アドレスを用いている。仮想
アドレス方式の採用により、参照ラインの変化点と符号
化ラインの変化点の相対的アドレス差を求める場合に高
速に求めることができるという効果がある。また、水平
方向分のアドレス領域だけ記憶できる容量を持てば十分
であるため、レジスタファイルを小さくでき、かつ、AL
U2350を小さくできるという効果がある。また、一つの
レジスタでビットアドレスとワードアドレスの両方を記
憶しているため、ワード単位で画像信号をハンドリング
しているにもかかわらず、2つの変化点の距離が、ビッ
ト単位で高速に求まるという効果がある。レジスタファ
イル2310には、この他に、1ラインの画素数を記憶
するターミナルレジスタA,Bチャンネル(Terminal R
egister A,B Channel:TRAB)、ターミナルレジ
スタCチャンネル(TRC)と、画面の水平方向の画素
数を記憶する水平画素数レジスタ(Horizontal Width Re
gister:HWR)と、処理すべきライン数を記憶するラ
イン数レジスタ(Line Number Register:LNR)と、
1ラインの最小符号ビット数を記憶する最小符号長レジ
スタ(Minimum Code Length Register:MCLR)と、
Codec のワーキング用のレジスタA(General Register
A:GRA)、レジスタB(General Register B:GR
B)がある。これらのレジスタ群の使用方法の詳細につ
いてはマイクロプログラムフローの説明時に行う。Aラ
ッチ2320及びBラッチ2330は、レジスタファイ
ル2310のAポート及びBポートからの出力をラッチ
するものである。Aマスク2341及びBマスク234
2はそれぞれAラッチ2320及びBラッチ2330か
らの出力のうちビットアドレスをゼロにマスクするか、
あるいはマスクせずにビットアドレスを通すかを制御す
るものである。MPX2344 は、ALU2350 のAポートへの出
力を、Aラッチ2320の出力とするか、テーブル部2
500の出力とするかを選択するものである。MPX2343
は、ALU2350のBポートへの出力をBラッチ2330の
出力とするか、8とするかを選択するものである。ALU2
350 は、AポートとBポートから入力したデータを演算
するもので、例えばA−Bを出力するといったものであ
る。ALUSR2360は、ALU2350の演算結果の状態を記憶する
レジスタで、例えば、ゼロフラグやオーバフローフラグ
やアンダフローフラグ等である。等価比較器2370
は、ALU2350 の出力と、Bラッチ2330の出力が等価か否
かを判定する回路で、例えばAラッチ2320にVARAの
内容をラッチし、Bラッチ2330にTRABをラッチ
し、ALU2350 のAポートにAラッチ2350の出力でマ
スクされたものを入力し、Bポートに8を入力して、
(Aポート+Bポート)を実行してVARAのワードアド
レスをインクリメントしたとき、TRABと一致したか
否かを判定することができ、ライン端(LineEnd)が判定
できる。MPX2381 は、レジスタファイル2310へ書き
込データの下位3ビットを、ALU2350 の出力とするか、
変化点検出器2600からの変化点ビットアドレスとす
るかを選択するものである。これにより、変化点のビッ
トアドレスが高速にレジスタファイル2310に記憶で
きる効果がある。MPX2382 は、レジスタファイル231
0への書き込みデータをDBusのデータとするかALU2
350の出力とするかを選択するものである。これにより
TRAB,TRC,HWR,LNR,MCLRは、マイ
コンから直接パラメータとして設定できる。このためCo
dec は柔軟な処理が可能となる。例えば、TRABの値
をTRCの値より小さく設定すると、読取部からの画像
信号の一部を符号化できる。これらの更に詳しい説明は
マイクロプログラムフローを説明するときに行う。
FIG. 5 illustrates the calculation unit 2300 in detail. The register file 2310 can be composed of, for example, a 2-port RAM (2Port Random Access Memory),
It stores various signals. Hereafter, the description will be made assuming that 1 word = 1 byte. The register file 2310 has a virtual address register A channel (V) that serves as an address of an encoding line at the time of encoding and a decoding line at the time of decoding.
ARA), a virtual address register B channel (VARB) which becomes an address of a reference line, a reading unit and a recording unit, and V
Virtual address register C that becomes an address of a line (transfer line) when an image signal is DMA-transferred between M channels, a temporary storage address register A that stores a position of a coding line or a change point of the coding line.
(Temporal Address Register A: TARA) and a temporary storage address register B (TARB) for storing the address of the change point of the reference line. The addresses stored in these registers are virtual addresses in which the start of the line is virtually zero. It also stores both word addresses and bit addresses. Arithmetic unit 2
All the virtual addresses are used in 300. By adopting the virtual address method, there is an effect that the relative address difference between the change point of the reference line and the change point of the encoding line can be obtained at high speed. Also, since it is sufficient to have the capacity to store only the address area for the horizontal direction, the register file can be made smaller and the AL
This has the effect of making U2350 smaller. Moreover, since both a bit address and a word address are stored in one register, the distance between two transition points can be obtained at high speed in bit units, even though the image signal is handled in word units. effective. In addition to this, the register file 2310 also stores terminal registers A and B channels (Terminal R) for storing the number of pixels of one line.
egister A, B Channel: TRAB, terminal register C channel (TRC), and horizontal pixel number register (Horizontal Width Register) that stores the number of pixels in the horizontal direction of the screen.
gister: HWR), a line number register (LNR) for storing the number of lines to be processed,
A minimum code length register (MCLR) for storing the minimum code bit number of one line,
Codec working register A (General Register
A: GRA), register B (General Register B: GR)
There is B). Details of how to use these register groups will be given when the microprogram flow is described. The A latch 2320 and the B latch 2330 latch the outputs from the A port and the B port of the register file 2310. A mask 2341 and B mask 234
2 masks the bit address of the outputs from the A latch 2320 and the B latch 2330 to zero, or
Alternatively, it controls whether to pass the bit address without masking. The MPX2344 uses the output to the A port of the ALU2350 as the output of the A latch 2320 or the table unit 2
This is to select whether to output 500. MPX2343
Selects whether the output to the B port of the ALU2350 is the output of the B latch 2330 or 8. ALU2
Reference numeral 350 is for calculating data input from the A port and the B port, for example, for outputting A-B. The ALUSR2360 is a register that stores the state of the operation result of the ALU2350, and is, for example, a zero flag, an overflow flag, an underflow flag, or the like. Equivalent comparator 2370
Is a circuit that determines whether the output of the ALU2350 is equivalent to the output of the B latch 2330. For example, the contents of VARA are latched in the A latch 2320, TRAB is latched in the B latch 2330, and the A port of the ALU2350 is Input the masked output of the latch 2350, input 8 to the B port,
When (A port + B port) is executed and the word address of VARA is incremented, it can be determined whether or not it matches with TLAB, and the line end can be determined. The MPX2381 uses the lower 3 bits of the data written to the register file 2310 as the output of the ALU2350,
The change point detector 2600 selects whether to use the change point bit address. As a result, the bit address of the change point can be stored in the register file 2310 at high speed. MPX2382 is the register file 231
Whether to write data to 0 as DBus data or ALU2
It is to select whether to output 350. As a result, TLAB, TRC, HWR, LNR, and MCLR can be set as parameters directly from the microcomputer. Therefore Co
dec enables flexible processing. For example, if the value of TRAB is set smaller than the value of TRC, part of the image signal from the reading unit can be encoded. A more detailed description of these will be given when describing the microprogram flow.

【0031】図6はビデオアドレス発生部2400を詳
細に説明するものである。レジスタファイル2410
は、符号化あるいは復号化ラインの始端のVMの実ワー
ドアドレスを記憶するスタートアドレスレジスタA(St
art Address Register:SARA)と、参照ラインの始端の
VMの実ワードアドレスを記憶するスタートアドレスレ
ジスタB(SARB)と、転送ラインの始端のVMの実
ワードアドレスを記憶するスタートアドレスレジスタC
(SARC)から成る。アダー2420は、レジスタフ
ァイルの中のラインのスタートアドレスと演算部230
0からの仮想ワードアドレス(Virtual Word Address)を
加算して、VMの実ワードアドレス(ビデオアドレス:
Video Address)を生成する。このビデオアドレスは、ア
ドレスラッチ2430にラッチされ、VABusに出力
される。スタートアドレス(StartAddress)と仮想アド
レス(Virtual Address)とにより任意のビデオアドレス
を発生できる。MPX2450 は、レジスタファイル2410
への書き込みデータをVABUSd−11上の信号とするか、D
BUSa−5上の信号とするかを選択するものである。
1ライン分の処理が終了する毎に、マイコンに制御が移
るモード(ラインモードと呼ぶ)時は、1ライン毎にマ
イコンから直接スタートアドレスの設定をうける。これ
に対し、LNRに設定されたライン数分を連続して処理
するモード(ページ(Page)モードと呼ぶ)時は、ページ
の先頭でマイコンからスタートアドレスの設定をうける
だけで、後は、ライン毎にCodec が、レジスタファイル
2410のスタートアドレスとレジスタファイル231
0内のHWRの内容とを加算し、これを次のスタートア
ドレスとして記憶することにより、ページモード処理が
実現できる。この場合、マイコンは、1ページに1回ス
タートアドレスを設定するだけあとは全てCodec が行う
ため、マイコンの負荷が小さくなるという効果がある。
また、HWR及びLNR及びTR及びSARに適当な値
を設定することにより、Codec を用いて1画面内の任意
の矩形領域を高速に処理することができる。図7は、こ
のことを示すものである。図でHWは、画面の水平方向
の幅でこれをHWRに設定する。LNは、処理すべきラ
イン数でLNRに設定する。Tは1ラインの処理すべき
画素数でTRに設定する。SAは、ページの先頭のVM
のスタートアドレスでSARに設定する。しかる後に、
マイコンからマクロコマンドを受けると、Codec は、図
7の斜線部を連続して処理できる。
FIG. 6 illustrates the video address generator 2400 in detail. Register file 2410
Is a start address register A (St which stores the actual word address of the VM at the start of the encoding or decoding line.
art Address Register (SARA), a start address register B (SARB) that stores the actual word address of the VM at the start of the reference line, and a start address register C that stores the actual word address of the VM at the start of the transfer line.
(SARC). The adder 2420 is for the start address of the line in the register file and the arithmetic unit 230.
The virtual word address (Virtual Word Address) from 0 is added, and the real word address (video address:
Video Address) is generated. This video address is latched by the address latch 2430 and output to VABus. An arbitrary video address can be generated by using the start address (Start Address) and the virtual address (Virtual Address). MPX2450 is a register file 2410
Write data to VABUSd-11 signal or D
This is to select whether to use the signal on BUSa-5.
When the control is transferred to the microcomputer each time the processing for one line is completed (called a line mode), the start address is directly set from the microcomputer for each line. On the other hand, in the mode (called Page mode) in which the number of lines set in the LNR is continuously processed, the start address is only set from the microcomputer at the beginning of the page, and the line For each codec, the start address of the register file 2410 and the register file 231
The page mode processing can be realized by adding the content of HWR in 0 and storing it as the next start address. In this case, since the microcomputer does all the setting after setting the start address once per page, the load on the microcomputer is reduced.
Also, by setting appropriate values for HWR, LNR, TR, and SAR, it is possible to process any rectangular area in one screen at high speed using Codec. FIG. 7 shows this. In the figure, HW is the width of the screen in the horizontal direction and is set to HWR. LN is set to LNR by the number of lines to be processed. T is the number of pixels to be processed in one line and is set to TR. SA is the VM at the top of the page
Set to SAR with the start address of. After that,
When receiving a macro command from the microcomputer, the Codec can continuously process the shaded area in FIG.

【0032】図8は、テーブル部2500のうち、符号
化テーブル部の詳細を説明するものである。ラッチ25
01は、ALU2350 の演算結果をラッチするものである。
モード判定回路2502は、ALU2350 の演算結果より符
号化時のモード(例えば、MH符号化時は、RLが64
以上か未満か)を判定し、シーケンサ2230に伝え
る。アドレス発生回路2503は、内部制御Busから
の信号及びラッチ回路2501にラッチされたALUの
演算結果を元に、符号化テーブルROM2504 への適切なア
ドレスを発生する。符号化テーブルROM2504 の出力は、
シフトレジスタ2505にロードされ、1ビット単位で
シフトして順にシリアル/パラレル(Serial/Paralle
l:S/P)変換器2507に送られる。S/P変換器2
507に8ビット生成されるとファーストイン/ファー
ストアウト(First In FirstOut:FIFO)メモリ25
08に書き込まれる。S/P変換器2507に8ビット
の符号が生成されるのをカウントするのは、演算部23
00のGRBとALU2350 である。このように、カウンタ
を持たず、ALUとレジスタでカウントしているため、
タイミングが集中管理でき、タイミング制御が容易であ
るという効果がある。ターミネート検出回路2506
は、シフトレジスタ2505に入った符号の終端を検出
するもので、これについては後ほど詳述する。FIFO
メモリ2508は、符号転送効率を上げるためのもので
ある。FIFOメモリ2508に符号がセットされると、外
部制御Busを介して、DRQTが出力される。DMACが
接続されている場合は、DACKによってFIFOメモ
リ2508がセクセスされる。DMACが接続されてい
ない場合は、マイコンがFIFOメモリ2508を直接リー
ドすることにより、符号を得ることができる。このよう
に、符号が直接DBus上に出力されるため、システム
設計が容易となる効果がある。また、パラレルに符号が
転送されるため、タイミングが容易でかつ高速であると
いう効果がある。
FIG. 8 explains the details of the encoding table section of the table section 2500. Latch 25
01 latches the operation result of the ALU2350.
The mode determination circuit 2502 uses the calculation result of the ALU2350 to determine the mode at the time of encoding (for example, RL is 64 at the time of MH encoding).
It is determined whether it is greater than or less than) and notifies the sequencer 2230. The address generation circuit 2503 generates an appropriate address for the encoding table ROM 2504 based on the signal from the internal control Bus and the operation result of the ALU latched by the latch circuit 2501. The output of the encoding table ROM2504 is
It is loaded into the shift register 2505, and is shifted bit by bit in order of serial / parallel (Serial / Paralle).
l: S / P) converter 2507. S / P converter 2
When 8 bits are generated in 507, first in first out (FIFO) memory 25
Written at 08. The operation unit 23 counts the generation of the 8-bit code in the S / P converter 2507.
00 GRB and ALU2350. In this way, since it does not have a counter and counts with the ALU and the register,
The timing can be centrally managed, and the timing control is easy. Termination detection circuit 2506
Detects the end of the code entered in the shift register 2505, which will be described in detail later. FIFO
The memory 2508 is for improving code transfer efficiency. When the code is set in the FIFO memory 2508, DRQT is output via the external control Bus. When the DMAC is connected, the FIFO memory 2508 is accessed by DACK. When the DMAC is not connected, the microcomputer can directly read the FIFO memory 2508 to obtain the code. In this way, since the code is directly output to DBus, there is an effect that system design becomes easy. Further, since the codes are transferred in parallel, there is an effect that the timing is easy and the speed is high.

【0033】[0033]

【表1】 [Table 1]

【0034】表1は、符号化テーブルROM2504 を説明す
るものである。アドレス欄のRL及び差は、ALU2350 の
演算結果が、アドレスとなっているものである。他の部
分は、内部制御Busからの信号によりアドレス発生回
路2503が生成したものである。このようにALU2350
の演算結果が直接にテーブルのアドレスとなるため、高
速に符号化テーブルを引くことができる。
Table 1 describes the encoding table ROM 2504. For the RL and difference in the address column, the calculation result of the ALU2350 is the address. The other part is generated by the address generation circuit 2503 by a signal from the internal control Bus. Like this ALU2350
Since the calculation result of is directly the address of the table, the encoding table can be pulled at high speed.

【0035】[0035]

【表2】 [Table 2]

【0036】表2はMH符号でRLが4である符号(1
011)を例にとり、テーブルを用いて符号化し、S/
P変換器2507に送り、符号の終結をターミネート検
出回路2506で検出する手法を説明するものである。
白のRLが4(=(100)2)であるという演算結果がAL
U2350 で得られると、テーブルのアドレスは表2(a)の
ように(000000100)2 となる。このとき、テーブル25
04には、上位ビットから順に(10111000000000)2とい
うデータが入っている。この上位4ビットは符号で、そ
の次のD9 ビットの「1」は、符号の終端を示すものであ
る。シフトレジスタ2505には、この値がロードされ
る。このシフトレジスタ2505は、シフトパルスを入
力すると、最下位ビットに「0」をつめていくタイプの
ものである。表2(b)のようにシフトする毎にシフトレ
ジスタ2505の最上位ビットがS/P変換器2507
にシフトされていく。4回シフトすると(1000000000000
0)2となるが、このパターンをターミネート検出回路2
506に入力されると、終了(Terminate)であると検出
し、その旨シーケンサに知らせる。シフト回数を演算部
2300のGRAでカウントし、1ライン分の符号化処
理終了時に、GRAに記憶されている。1ライン分の総
符号ビット数と、MCLRの最小符号ビット数とを比較
し、フイル(Fill)符号の数を制御できる。
Table 2 shows the code (1
011) as an example, encoding is performed using a table, and S /
A method of sending to the P converter 2507 and detecting termination of the code by the termination detection circuit 2506 will be described.
The calculation result that the white RL is 4 (= (100) 2 ) is AL
When obtained by U2350, the address of the table becomes (000000100) 2 as shown in Table 2 (a). At this time, table 25
In 04, data of (10111000000000) 2 is stored in order from the upper bit. The upper 4 bits are a code, and the subsequent D 9 bit "1" indicates the end of the code. This value is loaded into the shift register 2505. The shift register 2505 is of a type that fills "0" in the least significant bit when a shift pulse is input. Every time shifting is performed as shown in Table 2 (b), the most significant bit of the shift register 2505 is the S / P converter 2507.
Will be shifted to. If you shift four times (1000000000000
0) 2 , but this pattern is the termination detection circuit 2
When it is input to 506, it is detected that the termination (Terminate) has occurred, and the sequencer is notified to that effect. The number of shifts is counted by the GRA of the arithmetic unit 2300 and stored in the GRA at the end of the encoding process for one line. The number of fill codes can be controlled by comparing the total number of code bits for one line with the minimum number of code bits of MCLR.

【0037】図9は、復号化テーブル部を詳細に説明す
るものである。FIFO2510は、符号受信バッファである。
パラレル/シリアル(P/S)変換器2511は、8ビ
ット単位で受信した符号を1ビット毎順次ライン端(En
d of Line :EOL)検出回路2512及びアドレス発
生回路2513に供給するものである。P/S変換器2
511に付随して必要なカウンタの機能は、演算部23
00のGRBが実行する。このため、独自でタイミング
を有するカウンタが不要である。EOL検出回路251
2は、12ビットのS/P変換器と、S/P変換器の出
力が(000000000001)2 と一致するか否かを検出するゲー
トから成り、受信した符号パターンがEOLか否かを判
定するものである。EOL検出回路2512を独立して
設けることにより、伝送路誤りが発生して符号語のきれ
目を誤って認識したとしても確実にかつ高速にEOLを
検出できるという効果がある。アドレス発生回路251
3は、復号化テーブルROM2514 のアドレスを発生するも
ので、復号化テーブルROM2514 の先頭アドレス作成や、
受信符号と復号化テーブルROM2514 の出力から次のアド
レスを作成を行う。復号化方式はツリーサーチ方式を用
いており、これについては特願昭55−174592号に詳しく
述べているのでここでは表3を用いて簡単に説明するに
とどめる。ラッチ2515は、復号化テーブルROM2514
の出力を一時記憶するものである。
FIG. 9 illustrates the decoding table section in detail. The FIFO 2510 is a code reception buffer.
The parallel / serial (P / S) converter 2511 sequentially receives the code received in 8-bit units bit by bit at the line end (En
It is supplied to the d of line (EOL) detection circuit 2512 and the address generation circuit 2513. P / S converter 2
The function of the counter necessary for the 511 is the calculation unit 23.
00 GRB executes. Therefore, a counter having its own timing is unnecessary. EOL detection circuit 251
2 includes a 12-bit S / P converter and a gate that detects whether or not the output of the S / P converter matches (000000000001) 2, and determines whether the received code pattern is EOL or not. It is a thing. By providing the EOL detection circuit 2512 independently, there is an effect that the EOL can be detected reliably and at high speed even when a transmission line error occurs and a code word break is erroneously recognized. Address generation circuit 251
3 generates the address of the decryption table ROM2514, and creates the start address of the decryption table ROM2514,
The next address is created from the received code and the output of the decoding table ROM2514. The decoding method uses a tree search method, which has been described in detail in Japanese Patent Application No. 55-174592, and therefore only a brief explanation will be given here using Table 3. The latch 2515 is a decoding table ROM 2514.
The output of is temporarily stored.

【0038】[0038]

【表3】 [Table 3]

【0039】表3は、復号化テーブルROM2514 を説明す
るもので、ツリーサーチ方式で復号化を行うのに好適な
ように作成している。復号化テーブルROM2514 は、大き
く分けて3つの部分にアドレスが分割されている。すな
わち、MH白符号の部分と、MH黒符号の部分と、MR
符号の部分である。復号化テーブルROM2514 の内容は、
復号が未終了すなわち符号語の途中の状態時は次にアク
セスすべきアドレスの一部であり、符号語が完結し復号
が終了したときは、その符号のもつ情報である。シーケ
ンサ2230は、符号1ビットにつき1回復号化テーブ
ルROM2514 をサーチ、その出力から復号化した符号の持
つ意味を知る。復号化した符号の持つ情報は、MPX2344
を介して直接ALU2350のAポートに入っているため、高
速に変化点の位置を求めることができる。
Table 3 describes the decoding table ROM 2514, which is created so as to be suitable for decoding by the tree search method. The decoding table ROM 2514 is roughly divided into three parts with addresses. That is, the MH white code portion, the MH black code portion, the MR
This is the part of the code. The contents of the decryption table ROM2514 are
When the decoding is not completed, that is, when the codeword is in the middle, it is a part of the address to be accessed next. When the codeword is completed and the decoding is completed, it is the information of the code. The sequencer 2230 searches the decoding table ROM 2514 once for each code bit, and knows the meaning of the decoded code from its output. The information of the decoded code is MPX2344
Since it directly enters the ALU2350's A port via, the position of the change point can be obtained at high speed.

【0040】図10は、変化点検出部2600を詳細に
説明するものである。参照ライン変化点検出器2610
と符号化ライン変化点検出器2620から成り、この2
つの動作はほぼ同じであるから、参照ライン変化点検出
器2610について説明する。MPX2614 は、VDBus
からのデータ→VDと、VDBusからのデータを反転
させたデータVDと、ラッチ2617からのデータのう
ち1つを選択するものである。マスク回路2616は、
MPX2614 から入力したデータを、ビットアドレスBAが
示すビットまで「1」にぬりつぶす回路で図11を用い
て詳細を説明する。ラッチ2617は、マスク回路26
16からの出力を一時記憶するものである。プライオリ
ティエンコーダ2618はラッチ2617から入力した
データに存在する最下位の「0」の位置を検出するもの
である。データに「0」が存在すると参照ライン変化点
フラグを「1」にして、変化点が存在することをシーケ
ンサ2230に知らせる。また、「0」の存在した位置
が変化点ビットアドレスとして演算部2300に出力さ
れる。このビットアドレスは直接レジスタファイル23
10に入力されるため、高速に変化点のビットアドレス
を記憶できる効果がある。またこの変化点ビットアドレ
スはMPX2619 を介してマスク回路2616にビットアド
レスBAとして出力される。MPX2619 は、演算部230
0のBラッチ2330からのBポートビットアドレス
(B-Port Bit Address )と、プライオリティエンコーダ
2618からの変化点ビットアドレスとを選択するもの
で、参照ラインの変化点の検出開始ビットアドレスを符
号化ラインの変化点のビットアドレスからにしたいとき
(これを、参照ラインアドレス戻しと呼ぶ)のみ、Bポ
ートビットアドレスが選択される。これについては、マ
イクロプログラムフローで詳細に説明する。排他OR(EXO
R)2611は、符号化開始点(a0 と呼ぶ)の色と、参
照ラインの変化点(b1 とb2 があり、b1 はa0 の真
上より右のa0 と反対色の変化点、b2 はb1 より右の
0 と同色の変化点)のうちb1 を検出するのかb2
検出するのかを選択する1 /b2信号を受け、MPX2614
を制御する。ゲート2612は、変化点フラグが「1」
でかつ参照ラインアドレス戻しが「0」のときのみ、MPX2
614 の入力データをラッチ2617の出力とするもので
ある。ORゲート2613は、変化点フラグが「1」かあ
るいはアドレス戻しが「1」のとき、マスク回路261
6をイネーブルにするものである。図11は、マスク回
路2616を詳細に説明するもので、デコーダ2616
−1とNANDゲート2616−2〜2616−9から
成る。
FIG. 10 illustrates the change point detection unit 2600 in detail. Reference line change point detector 2610
And a coded line change point detector 2620.
Since the two operations are almost the same, the reference line change point detector 2610 will be described. MPX2614 is VDBus
Data → VD from, and selects the data VD obtained by inverting the data from VDBus, one of the data from the latch 2617. The mask circuit 2616 is
A circuit that fills data input from the MPX2614 to "1" up to the bit indicated by the bit address BA will be described in detail with reference to FIG. The latch 2617 is provided in the mask circuit 26.
The output from 16 is temporarily stored. The priority encoder 2618 detects the position of the lowest "0" existing in the data input from the latch 2617. If "0" exists in the data, the reference line change point flag is set to "1" to inform the sequencer 2230 that there is a change point. In addition, the position where “0” exists is output to the operation unit 2300 as a change point bit address. This bit address is the direct register file 23
Since it is input to 10, there is an effect that the bit address of the change point can be stored at high speed. Further, this change point bit address is output as a bit address BA to the mask circuit 2616 via the MPX2619. The MPX2619 has a calculation unit 230.
The B port bit address (B-Port Bit Address) from the B latch 2330 of 0 and the change point bit address from the priority encoder 2618 are selected, and the detection start bit address of the change point of the reference line is set to the encoding line. The B port bit address is selected only when it is desired to start from the bit address of the change point of (this is referred to as reference line address return). This will be described in detail in the microprogram flow. Exclusive OR (EXO
R) 2611, the color of the encoding start point (referred to as a 0), there is a change point of the reference line (b 1 and b 2, b 1 is the opposite color and right a 0 from just above a 0 change point, b 2 receives b 1 / b 2 signal for selecting whether to detect the or b 2 detects a b 1 of the right a 0 and the same color change point) than b 1, MPX2614
To control. The change point flag of the gate 2612 is “1”.
And the reference line address return is "0", MPX2
The input data of 614 is used as the output of the latch 2617. The OR gate 2613, when the change point flag is “1” or the address return is “1”, the mask circuit 261.
6 is enabled. FIG. 11 illustrates the mask circuit 2616 in detail.
-1 and NAND gates 2616-2 to 2616-9.

【0041】[0041]

【表4】 [Table 4]

【0042】表4は、この変化点検出器の動作例を示し
たものである。初期条件として、VD=(00111000)2
0色=0,1 /b2=0,参照ライン変化点フラグ=
0,参照ラインアドレス戻し=0とする。第1回目のラ
ッチ時は、初期条件よりEXOR2611及びゲート2612の
出力は、共に「0」であるため、マスク回路2616への入
力データは、VDとなる。またマスク回路イネーブル信
号Eは、「0」であるため、マスク回路2616の出力
は、入力データを単に反転したものとなる。よってラッ
チ2617には(11000111)2 がラッチされる。よってプ
ライオリティエンコーダ2618の出力は、参照ライン
変化点フラグ=「1」、参照ライン変化点ビットアドレ
ス=3となる。第2回のラッチ時は、参照ライン変化点
フラグが「1」となっているため、ゲート2612の出
力が「1」となりマスク回路2616への入力データは
ラッチ2617の出力データ(11000111)2 となる。マス
ク回路イネーブル信号Eは「1」となっているため、マ
スク回路2616は入力データを反転し、かつ参照ライ
ン変化点ビットアドレスが示すビット位置まで「1」にぬ
りつぶしたデータ(00111111)2 を出力する。よって変化
点ビットアドレス6を得る。以下同様にして、変化点が
なくなるまでラッチをくり返すことにより、変化点ビッ
トアドレスを得ることができる。以上の説明から明らか
なように、この変化点検出器は8ビット内の任意の位置
の変化点のビットアドレスを1回のラッチで検出するこ
とができ、ラッチしたあと1ビット毎に調べる方式に比
べ高速に変化点を検出できるという効果がある。また、
変化点のビットアドレスを調べるのにカウンタを用いて
いないため、タイミング制御を全て制御部2200にて
行えるため、設計が容易で、LSI向きであるという効
果がある。
Table 4 shows an operation example of this change point detector. As an initial condition, VD = (00111000) 2 ,
a 0 color = 0, b 1 / b 2 = 0, reference line change point flag =
0, reference line address return = 0. At the time of the first latch, the outputs of the EXOR 2611 and the gate 2612 are both “0” from the initial condition, so the input data to the mask circuit 2616 is VD. Further, since the mask circuit enable signal E is "0", the output of the mask circuit 2616 is simply an inversion of the input data. Therefore, (11000111) 2 is latched in the latch 2617. Therefore, the output of the priority encoder 2618 is the reference line change point flag = “1” and the reference line change point bit address = 3. Since the reference line change point flag is "1" at the time of the second latch, the output of the gate 2612 is "1" and the input data to the mask circuit 2616 is the output data (11000111) 2 of the latch 2617. Become. Since the mask circuit enable signal E is "1", the mask circuit 2616 inverts the input data and outputs the data (00111111) 2 which is filled with "1" up to the bit position indicated by the reference line change point bit address. To do. Therefore, the change point bit address 6 is obtained. Similarly, the change point bit address can be obtained by repeating the latch until the change point disappears. As is clear from the above description, this change point detector can detect the bit address of the change point at an arbitrary position within 8 bits by one-time latching, and after latching, it is possible to check every bit. Compared with this, there is an effect that the change point can be detected at high speed. Also,
Since the counter is not used to check the bit address of the change point, the timing control can be entirely performed by the control unit 2200, which has an effect of being easy to design and suitable for an LSI.

【0043】図12,図13及び表5は画像信号復元部
2700を詳細に説明するものである。
FIGS. 12 and 13 and Table 5 describe the image signal restoration unit 2700 in detail.

【0044】画像信号復元回路2701は、復元開始点
及び終了点のビットアドレスを演算部2300からのA
ポート及びBポートのビットアドレスから入力し、復元
開始点と終了点のワードアドレス差をALU2350 の演算結
果より入力し、復元データを生成するもので、図13は
その詳細回路を示し、表5はその真理値表である。ワー
ドアドレス差は、Aラッチ2320に復元開始点のアド
レスをラッチし、Bラッチ2330に復元終了点のアド
レスをラッチし、Aマスク2341及びBマスク234
2をオンにして、この2つのアドレスをALU2350 に入力
し、(B−A)を実行した結果がゼロか否かで得ること
ができる。このように、ビットアドレスをマスクする回
路2342,2343を演算部2300に設けたことに
より、ファイルレジスタ2310には、ビットアドレス
とワードアドレスの両方が記憶されているにもかかわら
ず、1回の演算結果で高速にワードアドレス差の有無を
判定できる効果がある。図13は画像信号復元回路27
01の詳細回路図で、デコーダ2701−1及び270
1−2とANDゲートから成る。この回路の動作は、表
5に示す真理値表のようになる。
The image signal restoration circuit 2701 receives the bit addresses of the restoration start point and end point from the arithmetic unit 2300.
Inputting from the bit address of port and B port, inputting the word address difference between the restoration start point and the restoration point from the operation result of ALU2350, and generating the restoration data. Fig. 13 shows the detailed circuit, and Table 5 shows It is the truth table. As for the word address difference, the address of the restoration start point is latched in the A latch 2320, the address of the restoration end point is latched in the B latch 2330, and the A mask 2341 and the B mask 234.
It can be obtained by turning on 2 and inputting these two addresses into the ALU2350 and executing (BA) whether or not the result is zero. As described above, by providing the circuits 2342 and 2343 for masking the bit address in the operation unit 2300, even if both the bit address and the word address are stored in the file register 2310, one operation is performed. As a result, there is an effect that the presence or absence of the word address difference can be determined at high speed. FIG. 13 shows the image signal restoration circuit 27.
In the detailed circuit diagram of 01, decoders 2701-1 and 270
It consists of 1-2 and an AND gate. The operation of this circuit is as in the truth table shown in Table 5.

【0045】[0045]

【表5】 [Table 5]

【0046】すなわち、a0 の色が「0」の場合は、出
力は全て「0」となり、a0 の色が「1」で、ワードア
ドレス差がない場合は、Aポートビットアドレスの値を
x,Bポートビットアドレスの値をyとするとDx〜D
y-1までを「1」とし、他は「0」となり、a0 の色が
「1」でワードアドレス差がある場合、Dx〜D7までを
「1」となり、他は「0」となる。これより、ワード内
の復元画像信号は1回の演算で生成できる。これは、カ
ウンタを用いて1ビット毎に生成する方式に比べ、高速
でかつタイミング制御が容易であるという効果がある。
一時記憶レジスタ2702は、1つ前に復元した画像信
号を記憶するもので、メモリに1ワードの復元画像信号
が書き込まれるとクリアされる。論理和回路2703
は、画像信号復元回路2701の出力と、1時記憶レジ
スタ2702の出力の論理和をとるもので、これにより
1ワード内の画像信号が次々に復元できる。ラッチ回路
2704は、論理和回路2703からの1ワードの復元画像
信号をラッチし、VDBusに復元画像信号を出力する
ものである。復元画像信号は、1ワード毎にVMに書き
込まれる。以上詳述したように、画像信号復元部270
0は、完全にパラレルに画像信号を復元するため、高速
に画像信号を復元できるという効果がある。
That is, when the color of a 0 is "0", all outputs are "0", and when the color of a 0 is "1" and there is no word address difference, the value of the A port bit address is changed. x and B port bit address values are y, D x to D
up to y-1 is "1", the other is "0", when the color of a 0 there is a word address difference "1", "1" to D x to D 7, and the other is "0" Becomes As a result, the restored image signal in the word can be generated by one calculation. This has an effect that the timing is faster and the timing control is easier than the method of generating every bit by using the counter.
The temporary storage register 2702 stores the image signal restored immediately before, and is cleared when the restored image signal of 1 word is written in the memory. OR circuit 2703
Is a logical sum of the output of the image signal restoration circuit 2701 and the output of the temporary storage register 2702, whereby the image signals in one word can be restored one after another. Latch circuit
Reference numeral 2704 latches the restored image signal of 1 word from the logical sum circuit 2703 and outputs the restored image signal to VDBus. The restored image signal is written in the VM word by word. As described in detail above, the image signal restoration unit 270
0 has the effect that the image signal can be restored at high speed because it restores the image signal completely in parallel.

【0047】以上、図3から図13及び表1から表5を
用いて、Codec のハード構成の詳細と、その動作の概略
を説明した。次に、図14から図16を用いて、Codec
の各種の処理モードにおける動作を状態遷移図を用いて
説明する。
The details of the hardware configuration of the Codec and the outline of its operation have been described above with reference to FIGS. 3 to 13 and Tables 1 to 5. Next, using FIG. 14 to FIG.
The operation in each of the various processing modes will be described with reference to the state transition diagram.

【0048】図14は、符号化及び復号化処理モード時
の状態遷移図である。SI はアイドル状態をわ表わす。
FIG. 14 is a state transition diagram in the encoding and decoding processing modes. SI represents an idle state.

【0049】SI 状態時に、マイコンから適当なパラメ
ータの設定を受けた後に、マクロコマンド(例えばMH
符号化コマンド)を入力すると、S1 の状態に遷移す
る。S1は所定の処理を1ライン分実行している状態
で、この時の動作の詳細はマイクロプログラムフローの
説明時に行う。1ライン分の処理が終了するまではS1
の状態で処理を実行しつづける。1ライン分の処理が終
了するとページモードでない場合は、処理終了フラッグ
をオンしてSI 状態に戻る。ページモード時は、S2
態に移り、ここでSARの内容とHWRの内容を加算
し、これをSARに記憶させることによりスタートアド
レスの更新を行い、LNRをデクリメントしてページエ
ンドの判定を行う。LNRの内容がゼロでなければペー
ジ端(Page End)でないと判定してS1 状態に移る。ペ
ージ端の時は、SI に戻る。このように、マイコンは1
ラインあるいは1ページに1回マクロコマンドを発行す
るだけで良いため、マイコンの負荷が軽減できる。
In the SI state, after receiving appropriate parameter settings from the microcomputer, a macro command (for example, MH
When an encoded command) is input, the state transits to S 1 . S 1 is a state in which a predetermined process is executed for one line, and the details of the operation at this time will be described in the description of the microprogram flow. S 1 until processing for one line is completed
The process is continuously executed in the state of. When the processing for one line is completed and the page mode is not set, the processing completion flag is turned on and the state returns to the SI state. In the page mode, the state is shifted to the S 2 state, the contents of SAR and the contents of HWR are added here, the start address is updated by storing this in the SAR, and the LNR is decremented to determine the page end. . If the content of LNR is not zero, it is determined that it is not the page end (Page End) and the state shifts to S 1 . At the page edge, returns to SI. In this way, the microcomputer has 1
Since the macro command need only be issued once per line or page, the load on the microcomputer can be reduced.

【0050】図15は、VMリードのマクロコマンドを
発行したときの、ラインモード時の状態遷移図である。
このコマンドは、マイコンのシステムバスと、ビデオバ
スが分離されているとき、マイコンがビデオバス上のV
Mをアクセスする場合に発行される。状態SI はアイド
ル状態である。このとき、マイコンから適当なパラメー
タの設定を受けVMリードコマンドを受けると、状態S
1 に移る。
FIG. 15 is a state transition diagram in the line mode when a VM read macro command is issued.
This command is used when the microcomputer's system bus and video bus are separated
Issued when accessing M. State SI is idle. At this time, when a proper parameter setting is received from the microcomputer and a VM read command is received, the status S
Go to 1 .

【0051】S1 で、VBus専有権をCodec が持って
いる場合、ただちに状態S2 に移る。状態S1 でVBu
s専有権がない場合、BRQT信号を出力して、BAC
K信号を待つ。BACK信号が返ってくると状態S2
移る。状態S2では、SARの内容とVARの内容を加
算してビデオアドレスを出力し、VR/及びVDSを
出力してVMからVDを入力しDBRにラッチし、DB
Rレデイフラグをオンし、BRQTを解除し、状態S3
に移る。状態S3 は、マイコンからのDBRのリードあ
るいはDMACからのDACK信号入力を待つ。DBR
がアクセスされると、DBRレデイフラグをオフし、V
ARをインクリメントする。このとき、ライン端(Line
End)であればSI に移り、ライン端でなければS1
移る。このように、マイコンはDBRを介してVBus
上のメモリをアクセスできる。しかも、ビデオアドレス
はCodec が出力するため、アドレス空間の小さいマイコ
ンも大規模なメモリをアクセスできる効果がある。ま
た、ビデオアドレスはCodec が自動的にインクリメント
するため、高速にVMをアクセスできるという効果があ
る。
If the Codec has the exclusive right of VBus in S 1 , the state immediately shifts to S 2 . VBu in state S 1
s If you do not have the exclusive right, output the BRQT signal and
Wait for K signal. When the BACK signal is returned, the state moves to state S 2 . In the state S 2 , the contents of SAR and the contents of VAR are added to output the video address, VR / W and VDS are output, VD is input from VM and latched in DBR, and DB
R Ready flag is turned on, BRQT is released, state S 3
Move on to. In the state S 3 , the DBR is read from the microcomputer or the DACK signal is input from the DMAC. DBR
Is accessed, the DBR ready flag is turned off and V
Increment AR. At this time, the line end (Line
End), move to SI, and if not the line end, move to S 1 . In this way, the microcomputer can send VBus via DBR.
You can access the memory above. Moreover, since the video address is output by the Codec, even a microcomputer with a small address space can access a large-scale memory. Moreover, since the Codec automatically increments the video address, the VM can be accessed at high speed.

【0052】図16は、読取部あるいは記録部等とVM
間のデータ転送を行う場合の状態遷移図である。このデ
ータ転送は、マイコンからのマクロコマンドで実行する
のではなく、読取部あるいは記録部等からのTDRQT
あるいはRDRQTによって実行する。これらの信号
は、シーケンサ2230に割り込みとして入るため、図
20あるいは図21に示した動作を実行中もデータ転送
可能である。状態SI は転送終了フラグがオンとなって
いる状態である。このとき、マイコンからSARCにVMの
先頭アドレスの設定を受けると状態S1 に移る。状態S
1 は、TDRQTあるいはRDRQTを受け付けられる
状態である。状態S1 で、TDRQT信号あるいはRD
RQT信号が入力されると状態S2 に移る。状態S
2 は、Codec がVBus専有権を持っている場合は、何
ら意味をもたず、ただちに状態S3 に移る。Codec がV
Bus専有権を待っていない場合、状態S2 でBRQT
信号を出し、BACK信号が返えるまでこの状態にとど
まる。状態S2 でBACK信号が返えると状態S3 に移
る。状態S3 では、TDACK信号あるいはRDACK
信号を出力し、読取部あるいは記録部等に対しデータ転
送開始を知らせ、状態S4に移る。状態S4 では、ビデ
オアドレスと、VR/と、VDSを出力してVDを転
送した後、BRQTを解除し、状態S5 に移る。状態S
5 では、VARCをインクリメントする。このときライ
ン端でなければ状態S1 に移る。ライン端でかつページ
モードでなければ、転送終了フラグをオンして状態SI
に戻る。ライン端でかつページモードであれば状態S6
に移る。状態S6 では、スタートアドレスを更新し、L
NRをデクリメントする。このときページ端でなければ
状態S1 に移る。ページ端であれば、転送終了フラグを
オンして状態SI に戻る。以上詳述したように、例えば
符号化処理中にもデータ転送が行えるため、高速処理が
行えるという効果がある。また、データ転送は完全なパ
ラレル転送であるため、低速なメモリで高速にデータ転
送できるという効果がある。
FIG. 16 shows the reading unit or the recording unit and the VM.
It is a state transition diagram at the time of performing the data transfer between. This data transfer is not executed by a macro command from the microcomputer, but TDRQT from the reading unit or recording unit.
Alternatively, it is executed by RDRQT. Since these signals enter the sequencer 2230 as interrupts, data transfer is possible even while the operation shown in FIG. 20 or 21 is being executed. State SI is a state in which the transfer end flag is ON. At this time, when the SARC receives the setting of the VM start address from the microcomputer, the state moves to state S 1 . State S
1 is a state in which TDRQT or RDRQT can be accepted. In state S 1 , TDRQT signal or RD
When the RQT signal is input, the state moves to state S 2 . State S
2 has no meaning if the Codec has VBus exclusive rights and immediately moves to state S 3 . Codec is V
BRQT in state S 2 if not waiting for Bus monopoly
It issues a signal and stays in this state until the BACK signal is returned. When the BACK signal is returned in the state S 2 , the state moves to the state S 3 . In state S 3 , TDACK signal or RDACK
A signal is output to notify the reading unit or recording unit or the like of the start of data transfer, and the state moves to state S 4 . In the state S 4 , the video address, VR / W , and VDS are output and VD is transferred, then the BRQT is released and the state moves to the state S 5 . State S
At 5 , VARC is incremented. At this time, if it is not the line end, the state moves to state S 1 . If the line end and the page mode are not set, the transfer end flag is turned on and the status SI
Return to. If it is at the line end and in page mode, state S 6
Move on to. In state S 6 , the start address is updated and L
Decrement the NR. At this time, if it is not the page edge, the state moves to state S 1 . At the page edge, the transfer end flag is turned on and the state returns to SI. As described in detail above, for example, since data transfer can be performed even during the encoding process, there is an effect that high-speed processing can be performed. Further, since the data transfer is completely parallel transfer, there is an effect that data can be transferred at high speed with a low speed memory.

【0053】次に、MR符号化,復号化処理のマイクロ
プログラムフローを用いて、Codecの内部動作を更に詳
しく説明する。まず、MR符号の方式について図17を
用いて簡単に説明する。
Next, the internal operation of the Codec will be described in more detail using a microprogram flow of MR encoding / decoding processing. First, the MR code system will be briefly described with reference to FIG.

【0054】図17は、MR符号の方式を説明するもの
である。(イ)は変化点の定義を説明するもので、参照
ラインと符号化ラインの画素の状態を表わしている。斜
線の入った画素は黒画素を表わすものとする。図で、a
0 は符号化開始点、a1 ,a2 は符号化ラインの変化点
を表わす。b0 は、a0 の真上の参照ラインの点、b1
はb0 より右でa0 と反対色の第1番目の参照ライン変
化点、b2 は、b1より右で、a0 と同じ色の第1番目
の参照ラインの変化点を表わす。MR符号は、大きく分
けてパスモード(Pモードと略す)と垂直モード(Vモ
ードと略す)と水平モード(Hモードと略す)に分かれ
る。(ロ)はPモードとなる場合を示している。Pモー
ドとは、a1 が現われる以前にb1 とb2 が現われる場
合である。Pモード符号化を行うと、b2 の真下が新し
いa0 となる。
FIG. 17 illustrates the MR code system. (A) explains the definition of the change point, and shows the states of the pixels on the reference line and the coding line. Pixels with diagonal lines represent black pixels. In the figure, a
0 represents the coding start point, and a 1 and a 2 represent the change points of the coding line. b 0 is the point on the reference line directly above a 0 , b 1
A 0 and the first reference line changing points of opposite color, b 2 at the right of b 0 is at the right of b 1, representing the first-th reference line changing points of the same color as a 0. The MR code is roughly divided into a pass mode (abbreviated as P mode), a vertical mode (abbreviated as V mode) and a horizontal mode (abbreviated as H mode). (B) shows the case where the P mode is set. P-mode is when b 1 and b 2 appear before a 1 appears. When P-mode coding is performed, a new a 0 is created just below b 2 .

【0055】(ロ)は、垂直モードの例である。Pモード
でなく、かつa1 とb1 の距離の絶対値(相対アドレス
差あるいは、差とも呼ぶ)が3以下の場合である。a1
とb1の差が「0」のとき、V(0)符号となり、a1
1 より左にある場合は、VL(差)符号となり、a1
1 より右にある場合は、VR(差)符号となる。図の
ケースでは、VR(2)と符号化される。符号化後は、a
1 が新しくa0 となる。(ニ)は、水平モードの例で、
Pモードでなくかつa1 とb1 の差が3を越える場合、
H符号出力後a0 とa1 間のRLをMH符号化し、次に
0 とa2 間のRLをMH符号化する。符号化後は、a
2が新しいa0 となる。
(B) is an example of the vertical mode. This is a case where the mode is not the P mode and the absolute value of the distance between a 1 and b 1 (also referred to as a relative address difference or difference) is 3 or less. a 1
When the difference between b 1 is "0", V (0) becomes a sign, if a 1 is from b 1 to the left, it becomes VL (difference) code, if a 1 is to the right than b 1 and, It becomes a VR (difference) code. In the illustrated case, it is encoded as VR (2). After encoding, a
1 becomes new a 0 . (D) is an example of horizontal mode,
If not in P mode and the difference between a 1 and b 1 exceeds 3,
After outputting the H code, the RL between a 0 and a 1 is MH coded, and then the RL between a 0 and a 2 is MH coded. After encoding, a
2 becomes the new a 0 .

【0056】[0056]

【表6】 [Table 6]

【0057】表6は、MR符号化時の各レジスタの機能
を示すものである。VARAは、符号化ラインの現在走
査中の仮想ワードアドレスとビットアドレスを記憶する
ものである。VARBは参照ラインの走査点の仮想ワー
ドアドレスとビットアドレスを記憶するものである。T
ARAは、a0 あるいはa1 の仮想ワードアドレスとビ
ットアドレスを記憶するものである。TARBは、b1
の仮想ワードアドレスとビットアドレスを記憶するもの
である。GRAは1ラインの総符号ビット数カウント用
である。GRBは、S/P変換器2507の8ビットカ
ウント用である。SARAは符号化ラインのデータを記
憶しているVMの走査開始点の実ワードアドレスであ
る。SARBは、参照ラインのデータを記憶しているV
Mの走査開始点の実ワードアドレスである。
Table 6 shows the function of each register during MR encoding. VARA stores the virtual word address and bit address of the current scan of the encoded line. VARB stores the virtual word address and bit address of the scanning point of the reference line. T
The ARA stores the virtual word address and bit address of a 0 or a 1 . TARB is b 1
The virtual word address and the bit address of the are stored. GRA is for counting the total number of code bits in one line. GRB is for 8-bit counting of the S / P converter 2507. SARA is the actual word address of the scanning start point of the VM that stores the data of the encoded line. SARB is a V that stores the data of the reference line.
This is the actual word address of the scan start point of M.

【0058】図18から図23は、MR符号化時のマイ
クロプログラムのフローの一部である。VBus専有権
を持っているものとする。Codec は、マイコンからMR
符号化のマクロコマンドをIR2210に受けると、シーケン
サ2230は、処理6101を実行するアドレスを出力
してMR符号化処理を開始する。マイクロプログラムRO
M2240 は、シーケンサ2230によってアクセスされた
処理6101を行うマイクロプログラムのビットパター
ンをパイプラインレジスタ2250に出力し、処理が開
始される。処理6101は、イニシャライズで、例えば
ALU2350 の出力をゼロにしてALUの出力をVARAに
書き込みVARAをクリアしたり、a0の色を白とする
ことである。処理6102で、b1 検出モードに設定す
る。これは、EXOR2611への信号1 /b2を0とすること
を意味する(白=0とする)。処理6103では、VA
RBをAラッチ2320にラッチし、SARBとAラッ
チ2320の出力を加算してアドレスラッチ2430に
ラッチし、これをVABusに出力して、VR/信号をリ
ードにし、VDSを出力しVMをアクセスして、VDを
ラッチ2617にラッチする。この一連の動作を参照ラ
インのVD入力と呼ぶことにする。同様にして、処理6
104で符号化ラインのVDを入力し、これをラッチ2
624にラッチする。判定6105は変化点が存在した
か否かを判定するものである。プライオリテイエンコー
ダ2618及び2625は、入力したVDに変化点が存
在すればその旨シーケンサに知らせている。よってシー
ケンサは、変化点の有無を判定でき、各処理ブロックに
ジャンプできる。変化点がなければ、処理6106に移
り、変化があれば判定6109に移る。処理6106
は、VARA及びVARBのワードアドレスをインクリ
メントする。例えば、VARAの場合、これをAラッチ
2320にラッチし、Aマスク2341をONにしてこ
の出力をALU2350 のAポートに入力し、Bポートに8に
入力して(A+B)を実行し、ALU2360 の出力をVAR
Aに書き込む。これによりVARAのワードアドレスは
インクリメントされ、かつVARAのビットアドレスは
クリアされる。また、VARAをAラッチ2320にラ
ッチするとき、同時にTRABをBラッチ2330にラ
ッチしておくことにより、VARAをインクリメントし
たとき、同時にライン端か否かを等価比較器2370で
判定される。
18 to 23 show a part of the flow of the microprogram at the time of MR encoding. It is assumed that the user has the exclusive right to VBus. Codec is from microcomputer to MR
When the IR 2210 receives the macro command for encoding, the sequencer 2230 outputs the address for executing the process 6101 and starts the MR encoding process. Micro program RO
The M2240 outputs the bit pattern of the microprogram for performing the processing 6101 accessed by the sequencer 2230 to the pipeline register 2250, and the processing is started. Processing 6101 is initialization, for example,
This is to set the output of the ALU2350 to zero and write the output of the ALU to VARA to clear VARA, or to set the color of a 0 to white. In process 6102, the b 1 detection mode is set. This means that the signals b 1 / b 2 to the EXOR 2611 are set to 0 (white = 0). In process 6103, VA
RB is latched in A-latch 2320, outputs of SARB and A-latch 2320 are added together and latched in address latch 2430, this is output to VABus, VR / W signal is read, VDS is output and VM is accessed. Then, VD is latched in the latch 2617. This series of operations will be called VD input of the reference line. Similarly, process 6
At 104, input VD of the encoding line and latch it.
Latch at 624. The determination 6105 is to determine whether or not there is a change point. The priority encoders 2618 and 2625 notify the sequencer if there is a change point in the input VD. Therefore, the sequencer can determine whether there is a change point and can jump to each processing block. If there is no change point, the process proceeds to step 6106, and if there is a change, the process proceeds to determination 6109. Process 6106
Increments the word address of VARA and VARB. For example, in the case of VARA, this is latched in the A latch 2320, the A mask 2341 is turned on, the output is input to the A port of the ALU2350, the B port is input to 8 and (A + B) is executed to execute the ALU2360. VAR output
Write to A. As a result, the word address of VARA is incremented and the bit address of VARA is cleared. Further, when VARA is latched in the A latch 2320, and TRAB is latched in the B latch 2330 at the same time, when the VARA is incremented, it is determined by the equivalence comparator 2370 whether or not it is the line end at the same time.

【0059】VARBのインクリメントも同様にして行
われる。判定6107では、ライン端を判定し、Line E
ndでなければ、すなわち等価比較器2370のライン端
フラグがONになっていなければ、シーケンサは、処理
6103に戻り、今まで述べた処理をくり返す。ライン
端であれば、処理6108でV(0)符号出力サブルーチ
ンをコールした後、ライン端処理に移る。ライン端処理
は、Fillの制御等で、ここでは省略する。判定6109
及び判定6110で変化点の状態を判定する。符号化ラ
インのみに変化点があった場合は処理6201にジャン
プし、参照ラインのみに変化点があった場合は処理6301
ジャンプし、両方に変化点が存在する場合は処理640
1にジャンプする。このように、符号化ラインのビデオ
アドレスと参照ラインのビデオアドレスを交互に出力し
て走査するため、同一のVMに符号化ラインと参照ライ
ンが存在しても、あたかも符号化ラインと参照ラインを
同時に、かつ同じ相対位置で走査しているのと同等の効
果がある。もし、符号化ラインの変化点を検出してから
参照ラインの変化点を検出する方法をとると、パスモー
ドを符号化するのが遅くなる。また参照ラインの変化点
を検出してから符号化ラインの変化点を検出する場合、
1 がa1 より右の方に遠く離れて存在する場合、符号
化が遅れる。
VARB is incremented in the same manner. In the judgment 6107, the line end is judged and the Line E
If it is not nd, that is, if the line end flag of the equality comparator 2370 is not ON, the sequencer returns to processing 6103 and repeats the processing described above. If it is the line end, the V (0) code output subroutine is called in process 6108, and then the line end process is performed. The line end processing is control of Fill and the like, and is omitted here. Judgment 6109
Then, the state of the change point is determined in determination 6110. If there is a change point only in the coding line, the process jumps to processing 6201, and if there is a change point only in the reference line, processing 6301
Jump and if there is a change point in both, process 640
Jump to 1. In this way, since the video address of the coding line and the video address of the reference line are alternately output and scanned, even if the coding line and the reference line are present in the same VM, the coding line and the reference line are as if they exist. There is an effect equivalent to scanning at the same time and at the same relative position. If the method of detecting the change point of the reference line after detecting the change point of the encoding line is adopted, the encoding of the pass mode becomes slow. In addition, when detecting the change point of the coding line after detecting the change point of the reference line,
If b 1 exists farther to the right than a 1 , the coding will be delayed.

【0060】処理6201では、符号化ラインの変化点
のビットアドレスを記憶する。これは、VARAの内容
をAラッチ2320にラッチし、これをALU2350 のAポ
ートに入力し(A+0)を実行し、ファイルレジスタ2
310への入力下位3ビットを変化点検出部2600か
らの符号化ライン変化点ビットアドレスとなるようにMP
X2381 を制御し、VARAに書き込むことによって実現
できる。これにより、VARAのビットアドレスだけ
が、符号化ラインの変化点ビットアドレスとなり、ワー
ドアドレスは変化をうけず、a1 の位置がVARAに記
憶されたことになる。処理6202は、VARBのワー
ドアドレスをインクリメントする。判定6203では、
参照ラインがライン端か否かを判定する。ライン端であ
れば、処理6207に移りインクリメントされた値をb
1 としてTARBに記憶する。ライン端でなければ、処
理6204に移り参照ラインのVDを入力する。判定62
05では参照ラインにb1 が存在したか否かを判定する。
変化点がなければ、a1 とb1 の差が8以上あることに
なるから、H符号化処理に移る。このように、符号化ラ
インと参照ラインを並行して走査できるため、参照ライ
ンの変化点を検出する以前に、Hモードと判定できる効
果がある。変化点があれば、処理6206に移り、b1
の位置をTARBに記憶する。これは、a1 をVARA
に記憶した場合と同様の方法で実現できる。処理620
8では、(b1−a1=差)を実行する。これは、VARA
をAラッチ2320にラッチし、TARBをBラッチ2
330にラッチし、マスクをオフしてこれらの出力をAL
U2350 のA及びBポートに入力し、(B−A)を実行す
ることにより実現する。
In process 6201, the bit address of the change point of the encoded line is stored. This latches the contents of VARA in the A latch 2320, inputs this to the A port of the ALU2350, executes (A + 0), and executes the file register 2
MP so that the lower 3 bits input to 310 become the encoded line change point bit address from the change point detection unit 2600.
It can be realized by controlling X2381 and writing to VARA. As a result, only the bit address of VARA becomes the change point bit address of the encoding line, the word address remains unchanged, and the position of a 1 is stored in VARA. The process 6202 increments the word address of VARB. In the decision 6203,
It is determined whether the reference line is the end of the line. If it is a line end, the process 6207 shifts to the incremented value b
It is stored in TARB as 1 . If it is not the end of the line, step 6204 follows and the VD of the reference line is input. Decision 62
At 05, it is determined whether or not b 1 exists on the reference line.
If there is no change point, the difference between a 1 and b 1 is 8 or more, and therefore the H coding process is started. In this way, since the coding line and the reference line can be scanned in parallel, there is an effect that the H mode can be determined before the change point of the reference line is detected. If there is a change point, the process moves to step 6206 and b 1
The position of is stored in the TARB. This is a 1 for VARA
It can be realized by the same method as that stored in. Process 620
In step 8, (b 1 −a 1 = difference) is executed. This is VARA
To the A latch 2320, and TARB to the B latch 2
Latch to 330, turn off mask and turn these outputs AL
It is realized by inputting into the A and B ports of U2350 and executing (BA).

【0061】ALU2350 の出力はラッチ2501にラッチ
され、モード判定回路2502によって差が3以内であ
るか否かを判定される。差が3以内であればVL符号化
処理に移り、差が3を越えていればH符号化処理に移
る。
The output of the ALU2350 is latched by the latch 2501 and the mode determination circuit 2502 determines whether the difference is within 3 or not. If the difference is within 3, the process proceeds to the VL encoding process, and if the difference exceeds 3, the process proceeds to the H encoding process.

【0062】判定6110で参照ラインのみに変化点が
あった場合、処理6301に移る。処理6301では、
1 をTARBに記憶する。処理6302でb2 検出モ
ードを設定する。処理6303では、参照ライン変化点
検出器2610のラッチ2617にラッチパルスを出力する
ことにより、処理6103で入力した参照ラインのVD
にb1 以外にb2 も存在するかどうかを検出する。この
動作をワード内変化点検出と呼ぶことにする。この動作
は、図10,図11及び表4を用いて詳しく説明したも
のである。判定6304では、b2 が存在したか否かを
判定している。b2 が存在すれば、a1 以前にb1 とb
2 の両方が存在したことになり、P符号化処理に移る。
2 が存在しなければ処理6305に移る。処理630
5及び処理6306で、VARB及びVARAのワード
アドレスをインクリメントする。判定6307で、ライ
ン端を判定し、ライン端であれば処理6319へ移り、
ライン端でなければ処理6308に移る。処理6308
及び処理6309で、参照ラインのVD及び符号化ライ
ンのVDを変化点検出器2600に入力してb及びa
を検出する。変化点がなければ処理6305に移
る。参照ラインにのみ変化点があれば、a1 以前にb1
とb2 の変化点が存在したことになり、P符号化処理に
移る。符号化ラインのみに変化点が存在すれば、処理6
313に移る。処理6313では、a1 のビットアドレ
スをVARAに記憶する。処理6314でVARAとT
ARBの差を取ることにより(a1−b2=差)を求め
る。判定6315で差が3以下か否かを判定する。差が
3以下であればVR符号化処理へ移り、3を越えていれ
ばH符号化処理へ移る。判定6310から判定6312
で参照ラインと符号化ラインの両方に変化点があれば、
処理6316に移る。処理6316では、VARAにa
1 を記憶し、VARBにb2 を記憶する。処理6317で
(VARB−VARA)を実行し、a1 とb2 の位置関係
を検出する。(b2 −a1)が負、すなわちALU2350がア
ンダフローを起こしていれば、b2 はa1 より左にあっ
たと判定しP符号化処理に移る。アンダフローを起こし
ていなければ処理6314に移る。判定6307で、ラ
イン端と判定されたとき、処理6319に移る。処理6
319では、ライン端のアドレスをa1 の位置とみな
し、このアドレスをVARAに記憶し、(VARA−T
ARB)を実行して(a1−b1=差)を求める。差が3以
下であれば処理6327でVR符号出力サブルーチンを
コールした後、ライン端処理に移る。差が3を越えてい
れば、処理6321に移る。処理6321ではH符号出
力サブルーチンをコールする。処理6322で、(VARA
−TARA)を実行して(a1−a0=RL)を得る。このRL
はラッチ2501にラッチされる。処理6323ではM
H符号出力サブルーチンをコールする。処理6324でa0
の色を反転する。処理6325でALU2350 の出力をゼロ
にしてこれをラッチ2501にラッチさせることにより
(RL=0)を作り出す。処理6326でMH符号出力
サブルーチンをコールして(RL=0)を符号化し、ラ
イン端処理に移る。判定6110で、符号化ラインと参
照ライン共に変化点が存在した場合、処理6401に移
る。処理6401でa1 をVARAに記憶し、処理64
02でb1 をTARBに記憶する。処理6403で(V
ARA−TARB)を実行し、(a1−b1=差)を算出
する。差がゼロのとき、V(0)符号化処理に移る。差が
正であれば、b1 よりa1 が右に存在したこととなるた
め、a1 より前にb2が存在するか否かを検出する必要
がある。よって処理6407に移り、b2 検出モードと
し、処理6408で参照ラインのワード内の変化点を検
出する。変化点があれば処理6412に移らなければ処
理6410に移る。処理6412でb2をVARBに記
憶する。処理6413にて(VARB−VARA)を実
行することにより(b2−a1=差)を求める。差が負であ
れば、b2 はa1 より左に存在したことになるため、P
符号化処理に移る。差が負でなければ、b2はa1 以降に
存在したことになり、処理6410に移る。処理641
0では、a1 より左にb2が存在しないからPモードで
ないと判定でき、(VARA−TARB)を実行して
(a1−b1=差)を求める。差が3以下であればVL符
号化処理に移り、3を越えていればH符号化処理に移
る。判定6406で差が負であれば、b1 はa1より右
に存在したことになり処理6415に移る。処理641
5で、(TARB−VARA)を実行することにより、
(b1−a1=差)を求める。差が3以下であればVR符
号化処理に移り、3を越えていれば、H符号化処理に移
る。以上で、VMを走査して変化点を検出しモードを判
定する部分は終了した。次に各モードの符号化処理の説
明に移る。
If there is a change point only in the reference line in the judgment 6110, the process goes to the process 6301. In process 6301,
Store b 1 in TARB. In process 6302, the b 2 detection mode is set. In process 6303, by outputting a latch pulse to the latch 2617 of the reference line change point detector 2610, the VD of the reference line input in process 6103 is output.
It is detected whether or not b 2 exists in addition to b 1 . This operation is called intra-word change point detection. This operation has been described in detail with reference to FIGS. 10 and 11 and Table 4. At decision 6304, it is decided whether or not b 2 exists. If b 2 exists, b 1 and b before a 1
Since both 2 existed, the P encoding process is started.
If b 2 does not exist, the process proceeds to process 6305. Process 630
In step 5 and step 6306, the word addresses of VARB and VARA are incremented. In the determination 6307, the line end is determined, and if it is the line end, the process proceeds to Step 6319.
If it is not the end of the line, the process moves to 6308. Process 6308
Then, in process 6309, the VD of the reference line and the VD of the encoded line are input to the change point detector 2600, and b 2 and a are input.
1 is detected. If there is no change point, the process moves to process 6305. If there is only a change point in the reference line, b 1 to a 1 previously
Since there is a change point between b and b 2 , the process moves to the P coding process. If there is a change point only in the coding line, process 6
Move to 313. In process 6313, the bit address of a 1 is stored in VARA. VARA and T in process 6314
(A 1 −b 2 = difference) is obtained by taking the difference of ARB. In the determination 6315, it is determined whether the difference is 3 or less. If the difference is 3 or less, the VR coding process is started, and if it exceeds 3, the H coding process is started. Decision 6310 to Decision 6312
If there is a change point on both the reference line and the encoding line,
Move to processing 6316. In process 6316, a is added to VARA.
Store 1 and store b 2 in VARB. In process 6317
(VARB-VARA) is executed to detect the positional relationship between a 1 and b 2 . If (b 2 −a 1 ) is negative, that is, if the ALU 2350 underflows, it is determined that b 2 is on the left of a 1 , and the P encoding process is started. If underflow has not occurred, the process proceeds to process 6314. If it is determined at the determination 6307 that the line end is reached, the process proceeds to processing 6319. Process 6
At 319, the address at the line end is regarded as the position of a 1 , and this address is stored in VARA, and (VARA-T
Run the ARB) seek (a 1 -b 1 = difference). If the difference is 3 or less, the VR code output subroutine is called in process 6327, and then the line end process is performed. If the difference exceeds 3, the process proceeds to process 6321. In process 6321, an H code output subroutine is called. In Process 6322, (VARA
-TARA) running obtain (a 1 -a 0 = RL) . This RL
Are latched in the latch 2501. In process 6323, M
Call the H code output subroutine. Process 6324: a 0
Invert the color of. In process 6325, the output of the ALU2350 is set to zero, and this is latched by the latch 2501 to generate (RL = 0). In process 6326, the MH code output subroutine is called to code (RL = 0), and the line end process is started. In the determination 6110, when there is a change point on both the coding line and the reference line, the process moves to the processing 6401. In process 6401, a 1 is stored in VARA, and process 64
At step 02, b 1 is stored in TARB. In processing 6403 (V
ARA-TARB) is executed, it calculates the (a 1 -b 1 = difference). When the difference is zero, the V (0) coding process is started. If the difference is positive, it means that a 1 exists to the right of b 1 , so it is necessary to detect whether or not b 2 exists before a 1 . Therefore, the processing shifts to the processing 6407, the b 2 detection mode is set, and the processing 6408 detects the change point in the word of the reference line. If there is a change point, the process moves to the process 6412 if it does not move to the process 6412. In process 6412, b 2 is stored in VARB. By executing in process 6413 a (VARB-VARA) obtaining the (b 2 -a 1 = difference). If the difference is negative, it means that b 2 exists to the left of a 1 , so P
Move on to encoding processing. If the difference is not negative, it means that b 2 exists after a 1 and the process 6410 starts. Process 641
At 0, it can be determined that the mode is not the P mode because b 2 does not exist to the left of a 1 , and (VARA-TARB) is executed to obtain (a 1 -b 1 = difference). If the difference is 3 or less, the process proceeds to the VL encoding process, and if it exceeds 3, the process proceeds to the H encoding process. If the difference is negative in the judgment 6406, it means that b 1 exists to the right of a 1 , and the process 6415 is entered. Process 641
In step 5, by executing (TARB-VARA),
(B 1 −a 1 = difference) is calculated. When the difference is 3 or less, the VR coding process is started, and when the difference is more than 3, the H coding process is started. With the above, the part of determining the mode by scanning the VM to detect the change point is completed. Next, a description will be given of the encoding processing in each mode.

【0063】H符号化処理は、処理6501から始め
る。処理6501でH符号出力サブルーチンをコールす
る。処理6502で、(VARA−TARA)を実行し
て(a1−a0=RL)を求め、これを符号化テーブル部
2500のラッチ2501にラッチする。処理6503
ではMH符号出力サブルーチンをコールする。処理65
04でa0 の色を反転する。処理6505でVARAの
内容をTARAに移し、a1 をTARAに記憶する。処
理6506で、符号化ラインのワード内の変化点を検出
する。変化点があれば処理6513に移る。変化点がな
ければ、処理6508に移る。処理6508で、VAR
Aのワードアドレスをインクリメントする。このとき、
Lin End であれば処理6511に移る。Line Endでなけ
れば、処理6510に移り符号化ラインのVDを入力し
て変化点の有無を検出し、処理6507に移る。処理6
511では、ライン端の点をa2 として、(VARA−
TARA)を実行し、(a2−a1=RL)を求める。処
理6512で、MH符号出力サブルーチンをコールし、
ライン端処理へと移る。判定6507で変化点が存在す
れば、処理6513に移る。処理6513で、符号化ラ
インの変化点のビットアドレスをVARAに記憶するこ
とにより、a2 の位置を記憶する。処理6514で、
(VARA−TARA)を実行し、(a2−a1=RL)
を求める。処理6514でMH符号出力サブルーチンを
コールする。処理6522から処理6527は、再び参
照ラインと符号化ラインを並行して走査し、モードの判
定処理に移るためのあと処理である。まず、処理652
2でa2 の色を反転する。処理6523でVARAの内
容をTARAに移すことにより、a1 あるいはa2 を新
しくa0 として記憶する。処理6524では、参照ライ
ンと符号化ラインの走査アドレスずれを元に戻すため
に、TARAの内容をVARBに移すことにより、a0
とb0 の位置を一致させる。処理6525でb1 検出モ
ードにする。処理6526では、TARAの内容をBラ
ッチ2330にラッチし、VARBの内容をAラッチ2
320にラッチし、参照ライン変化点検出器2610の
参照ラインアドレス戻しをONにして、参照ラインのV
Dをラッチ2617にラッチする。これにより、マスク
回路2616が動作し、Bラッチ2330のビットアド
レスすなわちa0 のビットアドレスまで入力した参照ラ
インのVDはマスクされてラッチ2617にラッチされ
る。これにより、a0 の真上すなわちb0 より右の変化
点を検出できる。処理6526により、参照ラインと符
号化ラインの走査開始アドレスをビット単位で正確にか
つ高速に一致させることができるという効果がある。処
理6527で、符号化ラインのワード内の変化点検出動
作を行い、判定6105に移り再びモード判定を開始す
る。次にVL符号化処理の説明を行う。VL符号化処理
は、処理6521から始まる。処理6521でVL符号
出力サブルーチンをコールし、処理6522に移る。処
理6522以下の処理は、すでに説明した。
The H encoding process starts from process 6501. In process 6501, the H code output subroutine is called. In process 6502, (VARA-TARA) is executed to obtain (a 1 −a 0 = RL), which is latched in the latch 2501 of the encoding table unit 2500. Process 6503
Then, the MH code output subroutine is called. Process 65
In 04, the color of a 0 is inverted. In process 6505, the contents of VARA are moved to TARA and a 1 is stored in TARA. In operation 6506, the change point in the word of the encoded line is detected. If there is a change point, the process 6513 is entered. If there is no change point, the process moves to process 6508. In process 6508, VAR
Increment the word address of A. At this time,
If it is Lin End, the process moves to processing 6511. If it is not Line End, the process shifts to the process 6510, the VD of the coding line is input to detect the presence / absence of a change point, and the process shifts to the process 6507. Process 6
In 511, the point at the end of the line is set to a 2 and (VARA-
Run the TARA), determine the (a 2 -a 1 = RL) . In process 6512, the MH code output subroutine is called,
Move to line end processing. If there is a change point in the determination 6507, the process moves to the process 6513. In process 6513, the position of a 2 is stored by storing the bit address of the change point of the encoded line in VARA. In process 6514,
(VARA-TARA) is executed, (a 2 -a 1 = RL )
Ask for. In process 6514, the MH code output subroutine is called. Processes 6522 to 6527 are post-processes for scanning the reference line and the encoding line again in parallel and shifting to the mode determination process. First, processing 652
In 2 inverts the color of a 2 . By transferring the contents of VARA to TARA in process 6523, a 1 or a 2 is newly stored as a 0 . In process 6524, the contents of TARA are transferred to VARB in order to restore the scan address shift between the reference line and the encoded line, and thus a 0
And b 0 are aligned. In process 6525, the b 1 detection mode is set. In process 6526, the contents of TARA are latched in the B latch 2330 and the contents of VARB are latched in the A latch 2
The reference line address return of the reference line change point detector 2610 is turned on, and the reference line V
Latch D in latch 2617. As a result, the mask circuit 2616 operates and the VD of the reference line input up to the bit address of the B latch 2330, that is, the bit address of a 0 is masked and latched by the latch 2617. This makes it possible to detect a change point immediately above a 0 , that is, to the right of b 0 . The processing 6526 has an effect that the scanning start addresses of the reference line and the coded line can be matched accurately and at high speed in bit units. In process 6527, the change point detection operation in the word of the encoded line is performed, the process proceeds to decision 6105, and the mode decision is started again. Next, the VL encoding process will be described. The VL encoding process starts from process 6521. In process 6521, the VL code output subroutine is called, and the process 6522 follows. The processings after the processing 6522 have already been described.

【0064】次に、VR符号化処理を説明する。まず、
処理6531でVR符号出力サブルーチンをコールし、
処理6522に移る。処理6522以下は、すでに説明
した。
Next, the VR encoding process will be described. First,
In process 6531, the VR code output subroutine is called,
Move to processing 6522. The process 6522 and subsequent steps have already been described.

【0065】次に、V(0)符号化処理に移る。まず、処
理6541でV(0)符号出力サブルーチンをコールす
る。処理6542以下は、再びモード判定処理に移るた
めの後処理である。V(0)の場合、参照ラインと符号化
ラインの走査点は一致しているため、走査点を一致させ
るための特別な処理は不要である。処理6542でa0
の色を反転する。処理6543でVARAの内容をTA
RAに移すことにより、a1を新しくa0とする。処理6
544で、参照ラインのワード内の変化点を検出する。
処理6545で符号化ラインのワード内の変化点を検出
し、判定6105に戻り、再びモード判定処理を続け
る。
Next, the V (0) coding process is started. First, in process 6541, a V (0) code output subroutine is called. Process 6542 and subsequent processes are post-processes for moving to the mode determination process again. In the case of V (0), since the scanning points of the reference line and the encoding line match, no special processing for matching the scanning points is necessary. In processing 6542, a 0
Invert the color of. In processing 6543, the contents of VARA are TA
By moving to RA, a 1 is newly set as a 0 . Process 6
At 544, the change point within the word of the reference line is detected.
In process 6545, the change point in the word of the encoded line is detected, the process returns to the determination 6105, and the mode determination process is continued again.

【0066】次に、P符号化処理の説明を行う。処理6
551でP符号出力サブルーチンをコールする。処理6
552で、VARBのビットアドレスにb2 のビットア
ドレスを書き込むことにより、b2 の位置をb0 の位置
としてVARBに記憶する。処理6553で、VARB
の内容をTARAに移すことにより、a0 とb0 を一致
させ、b2 の位置を新しくa0 としてTARAに記憶す
る。処理6555で、b1 検出モードとし、処理655
6で参照ラインのワード内変化点検出動作を行い、判定
6105に戻る。
Next, the P coding process will be described. Process 6
At 551, the P code output subroutine is called. Process 6
At 552, the bit address of b 2 is written to the bit address of VARB to store the position of b 2 as the position of b 0 in VARB. In processing 6553, VARB
By moving the contents of the above to TARA, a 0 and b 0 are made to coincide, and the position of b 2 is newly stored in TARA as a 0 . In processing 6555, the b 1 detection mode is set, and processing 655
At 6, the intra-word change point detection operation of the reference line is performed, and the process returns to the determination 6105.

【0067】以上で、各モードの符号化処理の説明を終
了する。次に、各モードの符号出力サブルーチンの説明
を行う。各符号の出力は全て、符号化テーブル部250
0を動作させることにより行う。すなわち、ラッチ25
01にラッチしたALU2350 の出力、すなわちRLあるい
は差と、モード判定を行った制御部2200からのモー
ド信号によりアドレス発生回路2503に特定のアドレ
スを発生させ、符号化テーブルROM2504 をアクセスする
ことにより実現する。ここでは、V(0)符号出力サブル
ーチンを例に説明し、他は省略する。
This is the end of the description of the encoding process in each mode. Next, the code output subroutine of each mode will be described. The output of each code is all the encoding table unit 250.
This is done by operating 0. That is, the latch 25
This is realized by causing the address generating circuit 2503 to generate a specific address according to the output of the ALU 2350 latched at 01, that is, RL or difference, and the mode signal from the control unit 2200 that has performed the mode determination, and accessing the encoding table ROM 2504. . Here, the V (0) code output subroutine is described as an example, and the others are omitted.

【0068】V(0)符号出力サブルーチンは、処理66
01から始まる。処理6601で、アドレス発生回路2
503にV(0)符号が格納されているアドレス(1000000
00)2を発生させる。処理6602で、符号化テーブルRO
M2504 の内容をシフトレジスタ2505にロードする。
V(0)符号は「1」と定義されているため、シフトレジ
スタ2505には(11000000000000)2 がロードされるこ
とになる。最上位ビットはV(0)符号で、2ビット目の
「1」は終了検出用である。判定6603で、シフトレ
ジスタ2505の出力が(10000000000000)2 であるか否
かを検出することにより、終了(Terminate)を検出する
ターミネート検出回路2506からのターミネートフラ
グにより、終了を判定する。終了であればリターンす
る。終了でなければ、処理6604に移る。処理660
4で、シフトレジスタ2505及びS/P変換器250
7にシフトパルスを出力し、シフトレジスタ2505の
最上位ビットすなわちこの場合、「1」をS/P変換器
2507にシフト入力させる。処理6605で、ファイ
ルレジスタ2310のGRAをAラッチ2320にラッ
チし、Aマスク2341をオフにしてALU2350に入力
し、ALU2350 で(A+1)を実行し、この出力をGRA
に書き込むことにより、GRAをインクリメントし、総
符号ビット数のカウントを実行する。処理6606で、
GRBの内容を、処理6606と同様な手法でデクリメ
ントする。GRBは、S/P変換器2507に符号が8
ビット生成されたか否かを判定するものである。判定6
607で、GRBの内容がゼロか否かを判定する。ゼロ
であれば、S/P変換器2507に符号が8ビット生成
されたと判定でき、判定6608に移る。判定6608
で、FIFOメモリ2508が入力レデイか否かを判定
する。入力レデイでなければ、待機(Wait)する。入力
レデイであれば、処理6609に移る。処理6609
で、FIFO2508にS/P変換器2507の符号8ビットを
ロードし、処理6610で、ALU2350 のBポートに8を
入力し、(O+B)を実行し、この出力をGRBに書き込
むことにより、GRBに8をセットする。次に判定66
03に移る。判定6603では、この場合、シフトレジ
スタ2505の内容が(10000000000000)2となっている
ため、終了と判定されリターンする。以上で、MR符号
化処理のマイクロプログラムフローの詳細な説明を終了
する。
The V (0) code output subroutine is executed in process 66.
It starts from 01. In processing 6601, the address generation circuit 2
The address (1000000) where the V (0) code is stored in 503
00) 2 is generated. In process 6602, the encoding table RO
The contents of M2504 are loaded into the shift register 2505.
Since the V (0) code is defined as “1”, the shift register 2505 is loaded with (11000000000000) 2 . The most significant bit is a V (0) code, and the second bit "1" is for end detection. At decision 6603, the termination is determined by the termination flag from the termination detection circuit 2506 which detects the termination (Terminate) by detecting whether the output of the shift register 2505 is (10000000000000) 2 . If it is finished, it returns. If not, the process 6604 is entered. Process 660
4, the shift register 2505 and the S / P converter 250
7 outputs a shift pulse to shift the most significant bit of the shift register 2505, that is, “1” in this case to the S / P converter 2507. In process 6605, GRA of the file register 2310 is latched in the A latch 2320, the A mask 2341 is turned off and input to the ALU2350, (A + 1) is executed by the ALU2350, and this output is GRA.
By writing to, the GRA is incremented and the total number of code bits is counted. In process 6606,
The contents of GRB are decremented by the same method as the processing 6606. GRB has a code of 8 in the S / P converter 2507.
It is to determine whether or not a bit has been generated. Judgment 6
At 607, it is determined whether the content of GRB is zero. If it is zero, it can be determined that the S / P converter 2507 generated the code of 8 bits, and the process proceeds to the determination 6608. Judgment 6608
Then, it is determined whether or not the FIFO memory 2508 is an input ready. If it is not input ready, it waits. If it is an input ready, the process proceeds to step 6609. Process 6609
Then, load the 8-bit code of the S / P converter 2507 into the FIFO2508, input 8 to the B port of the ALU2350 in step 6610, execute (O + B), and write this output to GRB to write to GRB. Set 8. Next decision 66
Move to 03. In the determination 6603, in this case, the content of the shift register 2505 is (10000000000000) 2 , so it is determined to end and the process returns. This is the end of the detailed description of the microprogram flow of the MR encoding process.

【0069】次にMR復号化処理について表7,図24
から図27を用いて説明する。
Next, regarding MR decoding processing, Table 7 and FIG.
From FIG. 27 will be described.

【0070】[0070]

【表7】 [Table 7]

【0071】表7は、MR復号化処理時の各レジスタの
機能を説明するものである。VARAは、復元データを復号
化ラインのVMに書き込む位置の仮想ワード及びビット
アドレスである。VARBは、参照ラインの走査位置の
仮想ワード及びビットアドレスである。TARAは、a
1 あるいはa2 の仮想ワード及びビットアドレスであ
る。GRBは、P/S変換器2511の8ビットカウン
ト用である。SARA及びSARBは、それぞれ復号化
ライン及び参照ラインの先頭の実ワードアドレスであ
る。TRABは、1ラインの画素数である(ワード単
位)。復号化処理と並行して、記録部とVM間でVDの
転送を行えるが、ここには、VARC,TRC,SAR
Cが割り当てられる。VARCは、転送ラインの仮想ワ
ードアドレス、TRCは、転送画素数で、ワード単位で
ある。SARCは、転送ラインの先頭の実ワードアドレ
スである。SARAとSARC及びTRABとTRCの
値を任意に選ぶことにより、復元したVDをワード単位
の任意の1部分を記録部に転送できる。
Table 7 describes the function of each register during the MR decoding process. VARA is a virtual word and bit address of a position where the restored data is written in the VM of the decoding line. VARB is the virtual word and bit address of the scan position of the reference line. TARA is a
It is a virtual word and bit address of 1 or a 2 . GRB is for 8-bit counting of the P / S converter 2511. SARA and SARB are the real word addresses at the beginning of the decoding line and the reference line, respectively. TRAB is the number of pixels in one line (word unit). The VD can be transferred between the recording unit and the VM in parallel with the decoding process, but here, VARC, TRC, SAR
C is assigned. VARC is a virtual word address of the transfer line, and TRC is the number of transfer pixels in word units. SARC is the real word address at the beginning of the transfer line. By arbitrarily selecting the values of SARA and SARC, and TRAB and TRC, it is possible to transfer an arbitrary one portion of the restored VD to the recording unit.

【0072】図24〜図27は、MR復号化処理のマイ
クロプログラムである。処理7102及びAで示した範囲の
処理はMR符号を復号化してモードを判定する部分であ
る。処理7101は、ラインの先頭でのイニシャライズ
である。たとえばVARA及びVARBのクリアといっ
た処理である。処理7102で、図19に示す復号化テ
ーブル部のアドレス発生回路2513にMR符号復号化
の先頭アドレスを発生させる。復号化テーブルROM2514
が、表3に示すような構成となっているので、A9 〜A
1 に「10000000」が発生する。判定7103で、GRBの
内容がゼロか否かを判定する。ゼロであればP/S変換
器2511に符号が存在しないと判定でき、判定710
4に移る。ゼロでなければ処理7107に移る。判定7
104で、FIFO2510に符号が存在するか否かを判定す
る。符号が存在しなければ待機する。符号が存在すれば
処理7105に移る。処理7105でP/S変換器25
11にFIFO2510の出力をロードする。処理7106で、
処理6610と同様にしてGRBに8をセットし、P/
S変換器2511に符号が8ビット存在することを記憶
する。処理7107で、P/S変換器2511にシフト
パルスを出力し、P/S変換器2511の先頭の符号を
EOL検出回路2512及びアドレス発生回路2513
にロードする。処理7108で、P/S変換器2511
の符号が1ビット減少したことを記憶するために、GR
Bをデクリメントする。判定7109でEOLを判定す
る。これはEOL検出回路2512で実行される。EO
L検出回路2512はP/S変換器2511から入力される
符号の系列が「000000000001」であるか否かを判定するも
ので、S/P変換器とゲートで構成できる。EOLであ
ればライン端処理に移り、EOLでなければ処理711
0に移る。処理7110で、復号化テーブルROM2514 を
アクセスし、その出力をラッチ2515にラッチする。
判定7111で符号が完結したか否かを判定する。これ
は、復号化テーブルROM2514 が表3に示すように構成さ
れているため、ラッチ2515にラッチした復号化テー
ブルROM2514 の内容の最下位ビットが1か0かで判定で
きる。符号として完結していない場合、処理7112に
移る。処理7112で、ラッチ2515にラッチされた復号
化テーブルROM2514 の内容のうち、D1 〜D7 をアドレ
ス発生回路2513にフィードバックしA1〜A7として
用いる。次に判定7103に戻り、符号が完結するまで
Aで示される範囲の処理を続ける。判定7111で符号
として完結したと判定されると、ラッチ2515にラッ
チされた復号化テーブルROM2514 の内容からMR符号の
モードを判定し、各モードの復号化処理プログラムに移
る。
24 to 27 are microprograms for MR decoding processing. The processing within the range indicated by processing 7102 and A is a portion for decoding the MR code and determining the mode. Process 7101 is initialization at the beginning of the line. For example, it is a process of clearing VARA and VARB. In process 7102, the head address of MR code decoding is generated in the address generation circuit 2513 of the decoding table section shown in FIG. Decryption table ROM2514
However, since the structure is as shown in Table 3, A 9 to A 9
"10000000" occurs in 1. At decision 7103, it is decided whether or not the content of GRB is zero. If it is zero, it can be determined that there is no code in the P / S converter 2511.
Go to 4. If it is not zero, the process moves to step 7107. Judgment 7
At 104, it is determined whether a code exists in the FIFO 2510. If there is no code, wait. If the code exists, the process moves to 7105. In process 7105, the P / S converter 25
Load the output of FIFO 2510 into 11. In process 7106,
Set GRB to 8 and P /
It is stored that the S converter 2511 has 8 bits of codes. In process 7107, a shift pulse is output to the P / S converter 2511, and the code at the beginning of the P / S converter 2511 is the EOL detection circuit 2512 and the address generation circuit 2513.
To load. In process 7108, the P / S converter 2511
In order to remember that the sign of
Decrement B. In the determination 7109, EOL is determined. This is done in the EOL detection circuit 2512. EO
The L detection circuit 2512 determines whether or not the code sequence input from the P / S converter 2511 is "000000000001", and can be configured by an S / P converter and a gate. If it is EOL, move to line end processing, and if it is not EOL, process 711
Move to 0. In process 7110, the decryption table ROM 2514 is accessed and the output is latched in the latch 2515.
At decision 7111, it is determined whether the code is completed. This is because the decoding table ROM 2514 is configured as shown in Table 3, so that it can be determined whether the least significant bit of the contents of the decoding table ROM 2514 latched in the latch 2515 is 1 or 0. If the code is not completed, the process proceeds to step 7112. In process 7112, D 1 to D 7 of the contents of the decoding table ROM 2514 latched in the latch 2515 are fed back to the address generation circuit 2513 and used as A 1 to A 7 . Next, returning to the determination 7103, the processing in the range indicated by A is continued until the code is completed. If it is determined in decision 7111 that the code has been completed, the MR code mode is determined from the contents of the decoding table ROM 2514 latched in the latch 2515, and the process proceeds to the decoding processing program for each mode.

【0073】まず、P復号化処理を説明する。処理72
01では、参照ラインのVDを入力し、a0 より右にあ
る変化点b1 を検出する。この処理は、処理6526を
説明するときに詳しく述べた手法と同じである。変化点
が存在すれば処理7206に移る。変化点が存在しなけ
れば処理7203に移る。処理7203では、VARBのワ
ードアドレスをインクリメントする。判定7204で、
VARBのワードアドレスをインクリメントした値とT
RABの値が一致、すなわちライン端となったとき、エ
ラー処理に移る。ライン端でなければ、処理7205に
移る。処理7205で、参照ラインのVDを入力し、b1
出を行い、判定7202に戻る。b1 が検出されると処
理7206に移る。処理7206で、参照ラインのワー
ド内の変化点b2 を検出する。判定7207で変化点が
存在すれば処理7211に移り、存在しなければ処理72
08に移る。処理7208で、VARBのワードアドレス
をインクリメントする。判定7209でライン端を判定
し、ライン端であればエラー処理に移り、ライン端でな
ければ処理7210に移る。処理7210で、参照ライ
ンのVDを入力しb2 の検出処理を行い判定7207に
移る。処理7211で、VARBのワードアドレスと、
参照ラインの変化点ビットアドレスをTARAに書き込む。
処理7212で画像信号復元サブルーチンをコールし、
処理7102に戻る。画像信号復元サブルーチンは、V
ARAの示す位置からTARAの示す位置まで画像信号
を復元するプログラムで、これについては後で詳細に説
明する。以上でP復号化処理は終了である。
First, the P decoding process will be described. Process 72
At 01, the VD of the reference line is input, and the change point b 1 on the right of a 0 is detected. This processing is the same as the method described in detail when the processing 6526 is described. If there is a change point, the process moves to process 7206. If there is no change point, the process moves to process 7203. In process 7203, the word address of VARB is incremented. At decision 7204,
The value obtained by incrementing the word address of VARB and T
When the RAB values match, that is, when the line ends, the error process is started. If it is not the line end, the process moves to 7205. In process 7205, the VD of the reference line is input, b 1 detection is performed, and the process returns to determination 7202. When b 1 is detected, the process proceeds to process 7206. In operation 7206, the change point b 2 in the word of the reference line is detected. If there is a change point in the judgment 7207, the process moves to the process 7211, and if it does not exist, the process 72
Go to 08. In process 7208, the word address of VARB is incremented. The line end is determined in the determination 7209, and if it is a line end, the process proceeds to error processing, and if it is not a line end, the process 7210 proceeds. In process 7210, the VD of the reference line is input, the b 2 detection process is performed, and the process proceeds to determination 7207. In processing 7211, the word address of VARB,
Write the change point bit address of the reference line to TARA.
In process 7212, the image signal restoration subroutine is called,
The procedure returns to processing 7102. The image signal restoration subroutine is V
This program restores an image signal from the position indicated by ARA to the position indicated by TARA, which will be described in detail later. This is the end of the P decoding process.

【0074】次にV(0)復号化処理を説明する。処理7
213で、参照ラインのVDを入力し、a0 より右の変
化点b1 を検出する。判定7214で変化点の有無を判
定し、変化点が存在すれば処理7218に移り、存在し
なければ処理7215に移る。処理7215でVARB
のワードアドレスをインクリメントする。判定7216でラ
イン端を判定し、ライン端であれば、ライン端をb1
して処理7218に移る。ライン端でなければ処理72
17に移る。処理7217で、参照ラインのVDを入力
し、b1 検出を行い、判定7214に戻る。b1 が存在
すると、処理7218に移り、VARBのワードアドレ
スと参照ラインの変化点ビットアドレスをa1 としてT
ARAに書き込み、処理7219で画像信号復元サブル
ーチンをコールする。処理7220でa0 の色を反転
し、処理7102に戻る。以上でV(0)復号化処理は終
了である。
Next, the V (0) decoding process will be described. Process 7
At 213, the VD of the reference line is input and the change point b 1 on the right of a 0 is detected. In decision 7214, the presence / absence of a change point is determined. If a change point exists, the process proceeds to process 7218, and if not, the process proceeds to process 7215. VARB in process 7215
Increment the word address of. The line edge is determined in the determination 7216, and if it is the line edge, the line edge is set to b 1 and the process 7218 is entered. If it is not the line end, process 72
Move to 17. In process 7217, VD of the reference line is input, b 1 is detected, and the process returns to decision 7214. If b 1 exists, the process proceeds to step 7218, and T is set with the word address of VARB and the change point bit address of the reference line as a 1.
Write to ARA and call image signal restoration subroutine in process 7219. In process 7220, the color of a 0 is inverted, and the process returns to process 7102. This is the end of the V (0) decoding process.

【0075】次にVL復号化処理について説明する。処
理7301で、参照ラインのVDを入力し、a0 より右
のb1 を検出する。判定7302で変化点が存在すれば
処理7306に移り、存在しなければ処理7303に移
る。処理7303では、VARBのワードアドレスをインク
リメントする。判定7304でライン端を判定し、ライ
ン端であれば、ライン端をb1 として処理7325に移
る。ライン端でなければ処理7305に移り、参照ライ
ンのVDを入力しb1 を検出して判定7302に移る。
変化点があれば処理7306に移り、参照ラインの変化
点ビットアドレスをVARBに記憶することにより、b
1 の位置をVARBに記憶する。処理7325で、ラッ
チ2515にラッチされているb1とa1の差をALU2350
のAポートに入力し、VARBの値をBラッチ2330
にラッチし、Bマスク2342をオフにしてALU23
50のBポートに入力し、(B−A)を実行することによ
り(b1 −差=a1 )を求め、これをTARAに記憶す
る。このように、復号化テーブルの出力が直接ALU2350
に入っているため、高速にa1 の位置を求めることがで
きるという効果がある。判定7326で、ALU2350 の演
算結果が負であればエラーと判定する。判定7307で
(TARA−VARA)を行い、結果が負であればエラ
ーと判定する。処理7308で画像信号復元サブルーチ
ンをコールする。処理7309で、VARAの内容をV
ARBに書き込むことにより、新しいa0 とb0 の位置
を一致させる。処理7310でa0 の色を反転し、処理
7102に戻る。以上でVLの処理は終了である。
Next, the VL decoding process will be described. In process 7301, the VD of the reference line is input and b 1 on the right of a 0 is detected. If there is a change point in the determination 7302, the process moves to process 7306, and if it does not exist, the process moves to process 7303. In processing 7303, the word address of VARB is incremented. The line edge is determined in the determination 7304, and if it is the line edge, the line edge is set to b 1 and the process 7325 is entered. If it is not the end of the line, the process proceeds to step 7305, the VD of the reference line is input, b 1 is detected, and the process proceeds to determination 7302.
If there is a change point, the process proceeds to step 7306, and the change point bit address of the reference line is stored in VARB to obtain b
Store the position of 1 in VARB. In processing 7325, the difference between b 1 and a 1 latched by the latch 2515 is calculated by ALU2350.
Input to the A port of the
To the ALU 23 by turning off the B mask 2342.
Enter the 50 B port, (B-A) by the run - seeking (b 1 difference = a 1), stores it in the TARA. In this way, the output of the decoding table is directly ALU2350
Since it is inside, there is an effect that the position of a 1 can be obtained at high speed. At decision 7326, if the operation result of the ALU2350 is negative, it is decided as an error. In the determination 7307, (TARA-VARA) is performed, and if the result is negative, it is determined to be an error. In process 7308, the image signal restoration subroutine is called. In process 7309, the contents of VARA are changed to V
The new a 0 and b 0 positions are aligned by writing to the ARB. In process 7310, the color of a 0 is inverted, and the process
Return to 7102. This is the end of the VL processing.

【0076】次にVR復号化処理を説明する。処理73
11で参照ラインのVDを入力し、a0 より右の変化点
1 を検出する。判定7312で変化点が存在すれば処
理7315に移り、変化点が存在しなければ処理732
2に移る。処理7322で、VARBのワードアドレス
をインクリメントする。判定7313でライン端を判定
し、ライン端であればエラー処理に移る。ライン端でな
ければ、処理7314に移る。処理7314で、参照ライン
のVDを入力し、b1 を検出し、判定7312に移る。変化
点が存在すれば、処理7315で、参照ライン変化点の
ビットアドレスをVARBに記憶する。処理7316で
復号化テーブルからの差とVARBを加算し、a1 とし
てTARAに記憶する。判定7317で、加算した結果
がオーバフローであればエラー処理に移る。オーバフロ
ーでなければ、処理7318で画像信号復元サブルーチ
ンをコールし、処理7319でTARAの内容をVARBに
移し、新しいa0 とb0 を一致させる。処理7320で
0 の色を反転し、処理7102に戻る。以上でVR復
号化処理は終了である。
Next, the VR decoding process will be described. Process 73
At 11, the VD of the reference line is input, and the change point b 1 on the right of a 0 is detected. If the change point exists in the judgment 7312, the process moves to the process 7315, and if the change point does not exist, the process 732.
Move to 2. In process 7322, the word address of VARB is incremented. The line edge is determined in the determination 7313, and if it is the line edge, error processing is performed. If it is not the line end, the process moves to processing 7314. In process 7314, VD of the reference line is input, b 1 is detected, and the process proceeds to determination 7312. If there is a change point, in process 7315, the bit address of the reference line change point is stored in VARB. In process 7316, the difference from the decoding table and VARB are added and stored in TARA as a 1 . If the result of addition at decision 7317 is an overflow, then error processing is entered. If there is no overflow, the image signal restoration subroutine is called in step 7318, the contents of TARA are transferred to VARB in step 7319, and new a 0 and b 0 are made to match. In process 7320, the color of a 0 is inverted, and the process returns to process 7102. This is the end of the VR decoding process.

【0077】次にH復号化処理を説明する。処理740
1でアドレス発生回路2513に、MH符号の復号化の
先頭アドレスを発生させる。表3に示すような構成にな
っている場合、a0 の色が白であれば、A9〜A1を「00
0000000」とし、a0 の色が黒であれば「010000000」とす
ることである。処理7402でAで示す領域の処理を行
うことにより、MH符号を見つけ出す。判定7403
で、ラッチ2515にラッチされた復号化テーブルROM2
514 のD7 ビットの判定を行い、「0」であれば終了コ
ード(Terminating Code)と判定して処理7406に移
る。「1」であればメークアップコード(Make up Cod
e)と判定し、処理7404に移る。処理7404で、
ラッチ2515の出力D1 からD7 をRLの26 から2
11ビットとしてALU2350 のAポートに入力し、TARA
の内容と加算し、これをTARAに書き込む。判定74
05で、加算した結果がオーバフローか否かを判定し、
オーバフローであればエラー処理に移り、オーバフロー
でなければ処理7401に移る。
Next, the H decoding process will be described. Process 740
At 1, the address generation circuit 2513 is caused to generate a start address for decoding the MH code. In the case of the configuration shown in Table 3, if the color of a 0 is white, set A 9 to A 1 to “00
0000000 ”, and if the color of a 0 is black, it is“ 010000000 ”. The MH code is found by performing the processing of the area indicated by A in processing 7402. Decision 7403
Then, the decryption table ROM2 latched in the latch 2515
The D 7 bit of 514 is determined, and if it is “0”, it is determined to be a terminating code and the process proceeds to step 7406. If it is "1", make up code
e) is determined, and the process 7404 is performed. In process 7404,
The outputs D 1 to D 7 of the latch 2515 are changed from 2 6 to 2 of RL.
Input it to the A port of ALU2350 as 11 bits, and TARA
Is added to the contents of, and this is written to TARA. Decision 74
In 05, it is determined whether the added result is an overflow,
If it is an overflow, it moves to error processing, and if it is not an overflow, it moves to processing 7401.

【0078】終了コードを検出すると、処理7406に
移り、ラッチ2515の出力D1〜D7 をRLの26
ら211ビットとしてALU2350 のAポートに入力し、TA
RAの内容と加算しその結果をTARAに書き込む。判
定7407で、加算した結果がオーバフローか否かを判
定し、オーバフローであればエラー処理に移り、オーバ
フローでなければ処理7408に移る。処理7408で
画像信号復元サブルーチンをコールし、処理7409で
0 の色を反転する。処理7410で、Bで示す領域の
処理を行う。処理7411でTARAの内容をVARB
に移し、新しいa0 とb0 を一致させ、処理7102に
移る。以上で全てのモードでの復号化処理の説明は終了
である。
When the end code is detected, the process proceeds to step 7406, and the outputs D 1 to D 7 of the latch 2515 are input to the A port of the ALU2350 as 2 6 to 2 11 bits of RL, and TA
The contents of RA are added and the result is written to TARA. In the determination 7407, it is determined whether or not the added result is an overflow. If it is an overflow, the process proceeds to error processing, and if it is not an overflow, the process proceeds to process 7408. The process 7408 calls the image signal restoration subroutine, and the process 7409 inverts the color of a 0 . In process 7410, the region indicated by B is processed. In process 7411, the content of TARA is VARB
Then, the new a 0 and b 0 are matched and the process 7102 is started. This is the end of the description of the decoding process in all modes.

【0079】次に画像信号復元サブルーチンの説明を行
う。ここでは、VARAにa0 が記憶され、TARAに
1 が記憶されている。よってVARAからTARAが
示す位置までa0 の色にすることである。処理7412
で、VARAとTARAのワードアドレス差を検出す
る。これは、VARAをAラッチ2320にラッチし、
TARAをBラッチ2330にラッチし、Aマスク23
41及びBマスク2342をオンにして、ALU2350 に入力
し、B−Aを実行する。結果がゼロであればワード差な
しである。このように、ビットアドレスをマスクする回
路が存在するため、高速にワードアドレス差が求まると
いう効果がある。また、このとき画像信号復元回路27
01にワード差有無信号及び書き込み開始、終了点のビ
ットアドレスが供給されているため、処理7413でラ
ッチ回路2704及び1時記憶レジスタ2702にラッ
チパルスを出力するだけで、ワード内の画像信号が高速
に復元できるという効果がある。判定7414でワード
アドレス差の有無を判定し、ワードアドレス差がなけれ
ばTARAが示すa1 の点まで画像信号が復元できてい
るため、リターンする。ワードアドレス差があれば、処
理7415に移る。ワードアドレス差があれば、1ワー
ドの画像信号がラッチ回路2704に復元できているた
め、処理7415でラッチ回路の出力を、(VARA+
SARA)のワードアドレスが示す番地に書き込むこと
により復号化ラインに画像信号を復元する。処理741
6で一時記憶レジスタ2702をクリアする。処理74
17でVARAのワードアドレスをインクリメントする。こ
れは、VARAの内容をAラッチ2320にラッチし、TR
ABの内容をBラッチ2330にラッチしAマスク23
41をONにしてALU2350 のAポートに入力し、ALU235
0 のBポートに8を入力して(A+B)を実行し、その結
果をVARAに書き込むため、VARAのワードアドレ
スのインクリメントと同時にVARAのビットアドレス
のクリア及び等価比較器2370によるライン端の検出
ができるという効果がある。判定7418でライン端か
否かを判定する。ライン端でなければ処理7412に戻
り、画像信号復元処理を続ける。ライン端であれば、判
定7419に移り、VARAとTARAが一致している
か否かを判定する。一致していなければエラー処理に、
一致していればライン端処理に移る。
Next, the image signal restoration subroutine will be described. Here, a 0 is stored in the VARA, a 1 is stored in the TARA. Therefore, it is necessary to change the color to a 0 from VARA to the position indicated by TARA. Process 7412
Then, the word address difference between VARA and TARA is detected. This latches VARA into the A latch 2320,
TARA is latched in the B latch 2330, and the A mask 23
41 and B mask 2342 are turned on, input to ALU2350, and BA is executed. If the result is zero, there is no word difference. Thus, since there is a circuit for masking the bit address, there is an effect that the word address difference can be obtained at high speed. At this time, the image signal restoration circuit 27
Since the word difference presence / absence signal and the bit address of the write start and end points are supplied to 01, the image signal in the word can be output at high speed simply by outputting the latch pulse to the latch circuit 2704 and the temporary storage register 2702 in process 7413. There is an effect that can be restored to. In decision 7414, it is determined whether there is a word address difference, and if there is no word address difference, the image signal has been restored up to the point a 1 indicated by TARA, and the process returns. If there is a word address difference, the process proceeds to process 7415. If there is a word address difference, the image signal of one word has been restored in the latch circuit 2704, and therefore the output of the latch circuit is changed to (VARA +
The image signal is restored to the decoding line by writing to the address indicated by the word address of (SARA). Process 741
At 6, the temporary storage register 2702 is cleared. Process 74
At 17, the VARA word address is incremented. This latches the contents of VARA into the A latch 2320, and TR
The contents of AB are latched in the B latch 2330 and the A mask 23
Turn on 41 and input to A port of ALU2350, ALU235
Since 8 is input to the B port of 0 and (A + B) is executed and the result is written to VARA, clearing of the bit address of VARA and detection of the line end by the equality comparator 2370 are performed at the same time when the word address of VARA is incremented. The effect is that you can do it. At decision 7418, it is decided whether the line end is reached or not. If it is not the line end, the process returns to step 7412 and the image signal restoration process is continued. If it is the end of the line, the flow shifts to determination 7419, and it is determined whether VARA and TARA match. If they do not match, error processing is performed.
If they match, the process goes to line end processing.

【0080】以上でMR復号化処理のマイクロプログラ
ムフローの説明を終了する。
This is the end of the description of the microprogram flow of the MR decoding process.

【0081】図28及び図29は、Codec とマイコン等
で、ファクシミリを構成した例である。
28 and 29 show an example in which a facsimile is constituted by a Codec, a microcomputer and the like.

【0082】図28は、Codec 2000のVBusとマ
イコン8010のシステムバスを共用した場合の例であ
る。マイコン8010は、インテル社の8085やモト
ロール社の6800等の汎用マイコンで良い。マイコン
8010は、Codec 2000に対し適当なパラメータ設
定と、マクロコマンドを発行する。例えば符号化処理の
場合、まず読取部1000に走査命令を発行する。読取
部1000は、マイコン8010から走査命令を受ける
と原稿を走査し画像信号(VD)を生成する。そしてCode
c 2000に対し、TDRQTを出力する。Codec 20
00は、図16を用いて説明した方法で、読取部100
0からのVDをDMAでビデオメモリ(VM)8020に
転送する。1ライン分の転送を終了すると、Codec 20
00はマイコン8010に対し割り込み要求(IRQ)を
出力する。このようにして、マイコン8010は1Line
に1回の割でCodec 2000にパラメータを設定するだ
けで1ライン分のVDの転送できる。また、マイコン8
010は、Codec 2000に対し、符号化処理のマクロコマ
ンドを発行すると、Codec 2000は、VMからVDを
入力し、符号化処理を行い、符号をマイコン8010の
DBusに出力する。マイコン8010は、符号を符号
メモリ8030に格納する。また、マイコン8010は
符号メモリ中の符号を変復調装置3000に出力する。
このようにしてファクシミリ送信機が容易に構成でき
る。受信機も同様にこのシステムで構成できる。またマ
イコン8010のシステムバスとCodec のビデオバスが
共用されている。VM8020と符号メモリ8030が、同一
のチップで良く、小型化,低価格化の効果がある。
FIG. 28 shows an example in which the VBus of Codec 2000 and the system bus of the microcomputer 8010 are shared. The microcomputer 8010 may be a general-purpose microcomputer such as Intel 8085 or Motorol 6800. The microcomputer 8010 issues an appropriate parameter setting and macro command to the Codec 2000. For example, in the case of encoding processing, first, a scanning command is issued to the reading unit 1000. When the reading unit 1000 receives a scanning command from the microcomputer 8010, the reading unit 1000 scans the document and generates an image signal (VD). And Code
c Output TDRQT to 2000. Codec 20
00 indicates the reading unit 100 by the method described with reference to FIG.
The VD from 0 is transferred to the video memory (VM) 8020 by DMA. When the transfer of one line is completed, Codec 20
00 outputs an interrupt request (IRQ) to the microcomputer 8010. In this way, the microcomputer 8010 has 1 line
It is possible to transfer the VD for one line by setting the parameter in Codec 2000 once every two times. Also, the microcomputer 8
When 010 issues a macro command for encoding processing to Codec 2000, Codec 2000 inputs VD from VM, performs encoding processing, and outputs the code to DBus of microcomputer 8010. The microcomputer 8010 stores the code in the code memory 8030. Further, the microcomputer 8010 outputs the code in the code memory to the modulation / demodulation device 3000.
In this way, the facsimile transmitter can be easily constructed. The receiver can be configured with this system as well. Further, the system bus of the microcomputer 8010 and the video bus of Codec are shared. The VM 8020 and the code memory 8030 may be the same chip, which has the effect of downsizing and cost reduction.

【0083】図29は、マイコン8010のシステムバ
スとCodec 2000のビデオバスとを分離したシステム
例である。画像信号はVBus上で転送し、符号はシス
テムバス上で転送するため、高速に符号化,復号化処理
ができるという効果がある。また、システムバス側にDM
AC8060を用い、符号の転送はこのDMAC8060によって行う
ことができるため、更にマイコン8010の負荷を軽減
できるという効果がある。また、VM8020は、マイコン8
010のアドレス空間に無関係であるため、8ビットマ
イコンの一般的なアドレス空間である64キロバイト
(K byte)の空間に制限されず、大規模なVMを持つこ
とができるという効果がある。例えば、VA発生部24
00内のハードウエアを24ビット構成とするだけで、
Codec 2000のVA空間を16メガバイト(M byte)
にすることができる。
FIG. 29 is an example of a system in which the system bus of the microcomputer 8010 and the video bus of Codec 2000 are separated. Since the image signal is transferred on the VBus and the code is transferred on the system bus, there is an effect that encoding and decoding can be performed at high speed. Also, DM on the system bus side
Since the AC8060 is used and the code can be transferred by the DMAC8060, there is an effect that the load on the microcomputer 8010 can be further reduced. In addition, VM8020 is a microcomputer 8
Since it is irrelevant to the address space of 010, it is not limited to the space of 64 kilobytes (K byte) which is a general address space of an 8-bit microcomputer, and has an effect of having a large-scale VM. For example, the VA generator 24
By configuring the hardware in 00 with a 24-bit configuration,
Codec 2000 VA space is 16 megabytes (M byte)
Can be

【0084】以上、本発明をファクシミリに用いる場合
を例に説明したが、MH符号あるいはMR符号、または
その両方を扱うシステムであれば何んでも良く、例えば
画像ファイルシステムなどに応用できる。また、リフレ
シュタイミングを発生する回路及びリフレッシュアドレ
スを記憶するレジスタを設けると、VMにリフレッシュ
RAMを用いることができる。
The case where the present invention is applied to a facsimile has been described above as an example, but any system that handles MH code, MR code, or both can be used, and can be applied to, for example, an image file system. Further, by providing a circuit for generating refresh timing and a register for storing a refresh address, the refresh RAM can be used for the VM.

【0085】[0085]

【発明の効果】本願の発明によって得られる効果は次の
通りである。
The effects obtained by the present invention are as follows.

【0086】(1) 変化点検出及び画像信号復元がパラレ
ル処理であるため、高速処理ができる。
(1) Since the change point detection and the image signal restoration are parallel processing, high speed processing can be performed.

【0087】(2) マイコンバスI/Fを持つため、マイ
コンバスに直結でき、システムを小型でかつ容易に構成
できる。
(2) Since it has a microcomputer bus I / F, it can be directly connected to the microcomputer bus, and the system can be made compact and easy.

【0088】(3) ビデオバス(VB)とシステムバス
(SB)を共用できるため、符号メモリと画像メモリを
共用できる。
(3) Since the video bus (VB) and the system bus (SB) can be shared, the code memory and the image memory can be shared.

【0089】(4) ビデオバス(VB)とシステムバス
(SB)を分離できるため、符号と画像が異なるバス上
を同時に移動できるため、高速処理ができる。また、マ
イコンのアドレス空間に制限されずに大きなVMを持つ
ことができる。
(4) Since the video bus (VB) and the system bus (SB) can be separated, it is possible to move simultaneously on buses with different codes and images, so that high speed processing can be performed. Further, it is possible to have a large VM without being limited to the address space of the microcomputer.

【0090】(5) Codec 内にマイクロプログラムとシー
ケンサを持っているため、マイコンからの1ライン又は
1ページ毎のマクロコマンドで動作でき、マイコンの負
荷が小さい。
(5) Since the codec has a micro program and a sequencer, it can be operated by a macro command for each line or page from the microcomputer, and the load on the microcomputer is small.

【0091】(6) マイコンからCodec 内の各レジスタに
パラメータを設定できるため、柔軟な処理が可能であ
る。
(6) Since a parameter can be set in each register in the Codec from the microcomputer, flexible processing is possible.

【0092】(7) 水平画素数レジスタ(HWR),ライ
ン数レジスタ(LNR),スタートアドレスレジスタ
(SAR),ターミナルレジスタ(TR)を持つため、
1画面の任意の矩形領域を処理できる。
(7) Since it has a horizontal pixel number register (HWR), a line number register (LNR), a start address register (SAR), and a terminal register (TR),
Arbitrary rectangular area of one screen can be processed.

【0093】(8) 演算部のALUと,テーブル部,変化
点検出部,画像信号復元部が直結しているため、高速処
理できる。
(8) Since the ALU of the arithmetic unit, the table unit, the change point detection unit and the image signal restoration unit are directly connected, high speed processing is possible.

【0094】(9) 演算部に、仮想アドレス方式を採用し
たため、演算部のハード量を小さくでき、かつ高速に演
算できる。
(9) Since the virtual address system is adopted in the arithmetic unit, the hardware amount of the arithmetic unit can be reduced and the arithmetic operation can be performed at high speed.

【0095】(10)ワードアドレスとビットアドレスの両
方を同時に扱えるため、変化点処理が高速に行える。
(10) Since both the word address and the bit address can be handled at the same time, the change point processing can be performed at high speed.

【0096】(11)タイミング制御は、マイクロプログラ
ムとシーケンサから成る制御部で一括して管理している
ため、設計が容易でかつLSI化が容易である。
(11) Since the timing control is collectively managed by the control unit composed of the microprogram and the sequencer, the design is easy and the LSI is easy.

【0097】(12)符号化,復号化処理用のチャネルと、
転送用のチャネルを独立に持っているため、読取部から
の画像信号の任意の一部分を符号化したり、復号化した
画像信号の任意の一部分を記録部に転送できる。
(12) Channels for encoding and decoding processing,
Since the transfer channel is independently provided, it is possible to encode an arbitrary part of the image signal from the reading section or transfer an arbitrary part of the decoded image signal to the recording section.

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

【図1】ファクシミリの全体ブロック図。FIG. 1 is an overall block diagram of a facsimile.

【図2】符号化,復号化処理の階層構成の説明図。FIG. 2 is an explanatory diagram of a hierarchical structure of encoding / decoding processing.

【図3】Codec の全体ブロック図。FIG. 3 is an overall block diagram of Codec.

【図4】制御部のブロック図。FIG. 4 is a block diagram of a control unit.

【図5】演算部のブロック図。FIG. 5 is a block diagram of a calculation unit.

【図6】ビデオアドレス発生部のブロック図。FIG. 6 is a block diagram of a video address generator.

【図7】ページモード処理の説明図。FIG. 7 is an explanatory diagram of page mode processing.

【図8】符号化テーブル部のブロック図。FIG. 8 is a block diagram of an encoding table unit.

【図9】復号化テーブル部のブロック図。FIG. 9 is a block diagram of a decoding table unit.

【図10】変化点検出部のブロック図。FIG. 10 is a block diagram of a change point detection unit.

【図11】変化点検出部内のマスク回路の詳細回路図。FIG. 11 is a detailed circuit diagram of a mask circuit in the change point detection unit.

【図12】画像信号復元部のブロック図。FIG. 12 is a block diagram of an image signal restoration unit.

【図13】画像信号復元回路の詳細回路図。FIG. 13 is a detailed circuit diagram of an image signal restoration circuit.

【図14】符号化・復号化処理時のCodecの状態遷移
図。
FIG. 14 is a state transition diagram of Codec during encoding / decoding processing.

【図15】マイコンがCodecを介してVMをアクセスす
るときのCodecの状態遷移図。
FIG. 15 is a state transition diagram of the Codec when the microcomputer accesses the VM via the Codec.

【図16】画像信号転送時のCodecの状態遷移図。FIG. 16 is a state transition diagram of Codec during image signal transfer.

【図17】MR符号化方式の説明図。FIG. 17 is an explanatory diagram of an MR encoding system.

【図18】MR符号化処理のマイクロプログラムフロ
ー。
FIG. 18 is a microprogram flow of MR encoding processing.

【図19】MR符号化処理のマイクロプログラムフロ
ー。
FIG. 19 is a microprogram flow of MR encoding processing.

【図20】MR符号化処理のマイクロプログラムフロ
ー。
FIG. 20 is a microprogram flow of MR encoding processing.

【図21】MR符号化処理のマイクロプログラムフロ
ー。
FIG. 21 is a microprogram flow of MR encoding processing.

【図22】MR符号化処理のマイクロプログラムフロ
ー。
FIG. 22 is a microprogram flow of MR encoding processing.

【図23】MR符号化処理のマイクロプログラムフロ
ー。
FIG. 23 is a microprogram flow of MR encoding processing.

【図24】MR復号化処理のマイクロプログラムフロ
ー。
FIG. 24 is a microprogram flow of MR decoding processing.

【図25】MR復号化処理のマイクロプログラムフロ
ー。
FIG. 25 is a microprogram flow of MR decoding processing.

【図26】MR復号化処理のマイクロプログラムフロ
ー。
FIG. 26 is a microprogram flow of MR decoding processing.

【図27】MR復号化処理のマイクロプログラムフロ
ー。
FIG. 27 is a microprogram flow of MR decoding processing.

【図28】Codecを用いたファクシミリシステムのブロ
ック図である。
FIG. 28 is a block diagram of a facsimile system using a Codec.

【図29】Codecを用いたフアクシミリシステムのブロ
ック図である。
FIG. 29 is a block diagram of a facsimile system using a Codec.

【符号の説明】[Explanation of symbols]

2100…MPUI/F、2200…制御部、2300
…演算部、2400…ビデオアドレス(Video Addres
s)発生部、2500…テーブル(Table)部、2600
…変化点検出部、2700…画像信号復元部、2800
…VBus I/F。
2100 ... MPUI / F, 2200 ... control section, 2300
... Calculation unit, 2400 ... Video address (Video Addres
s) Generation unit 2500 ... Table unit 2600
... Change point detection unit, 2700 ... Image signal restoration unit, 2800
… VBus I / F.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】原稿を読み取って画像信号を生成する読み
取り手段と、前記読み取った画像信号を符号信号に変換
する符号化手段と、符号信号を画像信号に復号化する復
号化手段とを有する符号化復号化装置と、前記読み取り
手段で生成した画像信号と符号化復号化装置で復号化し
た画像信号とを記録する画像メモリと、前記復号化され
た画像信号を前記画像メモリから呼出して記録する記録
手段と、前記符号化復号化装置と画像メモリと前記読み
取り手段と記録手段とを接続して前記画像信号を流す画
像バスと、システムを制御するマイクロコンピュータ
と、符号信号を外部と送受信する送受信手段と、前記受
信した符号信号と前記符号化復号化装置の符号信号を記
録する符号メモリと、符号信号とプログラムとを流す符
号バスとから構成したことを特徴とするファクシミリ装
置。
1. A code having reading means for reading an original to generate an image signal, coding means for converting the read image signal into a code signal, and decoding means for decoding the code signal into an image signal. An encoding / decoding device, an image memory for recording the image signal generated by the reading means and an image signal decoded by the encoding / decoding device, and the decoded image signal is called from the image memory and recorded. A recording means, an image bus for connecting the encoding / decoding device, the image memory, the reading means, and the recording means to flow the image signal, a microcomputer for controlling the system, and transmission / reception for transmitting / receiving the code signal to / from the outside. Means, a code memory for recording the received code signal and the code signal of the encoding / decoding device, and a code bus for flowing the code signal and the program. Facsimile apparatus characterized by.
JP52A 1993-09-10 1993-09-10 Facsimile equipment Pending JPH06164945A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP52A JPH06164945A (en) 1993-09-10 1993-09-10 Facsimile equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP52A JPH06164945A (en) 1993-09-10 1993-09-10 Facsimile equipment

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP1184646A Division JP2624843B2 (en) 1989-07-19 1989-07-19 Encoding device

Publications (1)

Publication Number Publication Date
JPH06164945A true JPH06164945A (en) 1994-06-10

Family

ID=16829688

Family Applications (1)

Application Number Title Priority Date Filing Date
JP52A Pending JPH06164945A (en) 1993-09-10 1993-09-10 Facsimile equipment

Country Status (1)

Country Link
JP (1) JPH06164945A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5610774A (en) * 1979-07-09 1981-02-03 Ricoh Co Ltd Facsimile device
JPS56111370A (en) * 1980-02-07 1981-09-03 Ricoh Co Ltd Memory device of facsimile

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5610774A (en) * 1979-07-09 1981-02-03 Ricoh Co Ltd Facsimile device
JPS56111370A (en) * 1980-02-07 1981-09-03 Ricoh Co Ltd Memory device of facsimile

Similar Documents

Publication Publication Date Title
USRE33632E (en) Encoding/decoding system
US4107648A (en) Scan encoding of two dimensional pictorial entities
US4760461A (en) Binary data compression and expansion processing apparatus
JPH0220195B2 (en)
JP2551397B2 (en) Image signal coding system
JPH06164945A (en) Facsimile equipment
JPH07274008A (en) Facsimile equipment
JPH06113150A (en) Decoder
JP2624843B2 (en) Encoding device
CA1293818C (en) Data processor
US20020024525A1 (en) Image encoding apparatus and method
EP0542318A2 (en) Digital processor and method for controlling the same
JP3461640B2 (en) Arithmetic encoding / decoding device
JP3255808B2 (en) Compression / expansion device
US5349369A (en) Image interpolation circuit
Huang et al. Invoice code recognition system based on fpga acceleration
JPS6341273B2 (en)
JP2001243112A (en) Memory access device for image
JP3342380B2 (en) Encoding and decoding apparatus and image processing apparatus to which the same is applied
JP3028122U (en) Parallel processor for run length code
JPS6282769A (en) Coding device
JP3346853B2 (en) Color image processing equipment
JPS6281881A (en) Encoding device
JPS61212967A (en) Mr encoding system
JPH05122537A (en) Two-dimensional encoder