JPS63269833A - Mh code decoder - Google Patents

Mh code decoder

Info

Publication number
JPS63269833A
JPS63269833A JP10582587A JP10582587A JPS63269833A JP S63269833 A JPS63269833 A JP S63269833A JP 10582587 A JP10582587 A JP 10582587A JP 10582587 A JP10582587 A JP 10582587A JP S63269833 A JPS63269833 A JP S63269833A
Authority
JP
Japan
Prior art keywords
code
decoding logic
circuit
logic circuit
bits
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP10582587A
Other languages
Japanese (ja)
Other versions
JP2833743B2 (en
Inventor
Yuko Takahashi
優子 高橋
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP62105825A priority Critical patent/JP2833743B2/en
Publication of JPS63269833A publication Critical patent/JPS63269833A/en
Application granted granted Critical
Publication of JP2833743B2 publication Critical patent/JP2833743B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PURPOSE:To reduce the hardware quantity of a decode logic circuit, by shifting the prescribed number of bits of data in an inputting shift circuit by detecting a prescribed pattern by the decode logic circuit which detects a specific pattern in an MH code. CONSTITUTION:Sixteen bits of the MH code are inputted to a shift register 101, and the low-order 9 bits are supplied to the decode logic circuits 121-123. If continuous 8 bits of the least significant bit is not 0000 0001 in order from the LSB, the circuit 121 outputs a runlength, the designation of a T/M code, and a code length. When the code is an M code, a color inversion signal 105 becomes inactive, and the runlength is integrated even in the next decoding. Also, a circuit 132 becomes inactive, and the next decoding results in white run. When the code is a T code, the signal 105 becomes active, and the runlength is integrated newly from the next decoding. Also, the circuit 132 becomes active, and the next decoding results in black run. A code length integrator 110 generates the same number of shift pulses 112 as that of the code length, and the content of the shift register 101 is shifted by the code length.

Description

【発明の詳細な説明】 [産業上の利用分野コ 本発明は、MH符号復号器に間する。[Detailed description of the invention] [Industrial application fields] The present invention relates to an MH code decoder.

[従来の技術] MH符号復号器は、MH符号に符号化されたものを復号
して、ラン長を出力する。MH符号の符号長は2から1
3までである。したがって、連続する13ビツトずつ復
号すればよい。
[Prior Art] An MH code decoder decodes an MH code and outputs a run length. The code length of MH code is 2 to 1
Up to 3. Therefore, it is sufficient to decode successive 13 bits at a time.

従来、この種のMH符号復号器では、連続する13ビツ
トの符号をそのまま人力としていた。
Conventionally, in this type of MH code decoder, consecutive 13-bit codes were manually generated.

第3図に、従来のMH符号復号器の一例を示す。FIG. 3 shows an example of a conventional MH code decoder.

同図に於て、シフトレジスタ301はMH符号の符号列
を復号化論理回路302へ順次人力させるレジスタであ
る。同図で最上位ビットをMSB、最下位ビットをLS
Bとする。シフトレジスタ301は16ビツトで、後述
するラッチ信号311によりMH符号を8ビツトずつラ
ッチする。また、保持されているデータは、後述するシ
フトパルス312によりLSB方向へ1ビツトずつシフ
トされる。復号化論理回路302はリードオンリメモリ
(以下、ROMという)を使用して実現されており、シ
フトレジスタ301からMH符号を13ビットずつ人力
してラン長積算器303ヘラン長を、色反転回路304
へTコード/Mコードの別を、符号長積算器310へ符
号長をそれぞれ出力する。ラン長積算器303は色反転
回路304から色反転信号305が来るまでラン長を積
算する。
In the figure, a shift register 301 is a register that sequentially inputs a code string of MH codes to a decoding logic circuit 302. In the same figure, the most significant bit is MSB, and the least significant bit is LS.
Let it be B. The shift register 301 has 16 bits, and latches the MH code 8 bits at a time in response to a latch signal 311, which will be described later. Further, the held data is shifted one bit at a time in the LSB direction by a shift pulse 312, which will be described later. The decoding logic circuit 302 is realized using a read-only memory (hereinafter referred to as ROM), and manually inputs the MH code from the shift register 301 in 13-bit increments to obtain the run length in the run length integrator 303 and the color inversion circuit 304.
The code lengths are output to the code length integrator 310 for each T code/M code. The run length integrator 303 integrates the run length until a color inversion signal 305 is received from the color inversion circuit 304 .

色反転回路304は復号化論理回路302からTコード
/Mコードの別を表す信号を入力し、Tコードであるこ
とを検出すると色反転信号305と復号化論理選択信号
306とを出力する。色反転信号305は前述したよう
にラン長積算器303につながる。また、復号化論理選
択信号306は復号化論理回路302へ出力される。符
号長積算器310は復号化論理回路302から符号長を
人力して、符号長と同数のシフトパルス312を発生す
る。また、符号長を積算して8ビツトごとにラッチ信号
311を出力する。
The color inversion circuit 304 inputs a signal representing T code/M code from the decoding logic circuit 302, and outputs a color inversion signal 305 and a decoding logic selection signal 306 when detecting a T code. Color inversion signal 305 is coupled to run length integrator 303 as previously described. Furthermore, the decoding logic selection signal 306 is output to the decoding logic circuit 302. The code length integrator 310 inputs the code length from the decoding logic circuit 302 and generates the same number of shift pulses 312 as the code length. Furthermore, the code length is integrated and a latch signal 311 is output for every 8 bits.

同図に於て、MH符号を復号する動作を考える。In the figure, consider the operation of decoding an MH code.

まず、シフトレジスタ301に図示していない開始信号
によりMH符号16ビツトを入力する。始めは白ランで
あるとする。人力した16ビツトのうち下位13ビツト
が復号化論理回路302にはいり、ラン長、Tコード/
Mコードの別、符号長を出力する。符号がMコードであ
れば、色反転信号305はインアクティブになリラン長
は次の復号でも積算される。また。復号化論理選択信号
306もインアクティブであり次の復号も白ランになる
。Tコードであれば、色反転信号305はアクティブに
なりラン長は次の復号から新に積算される。また、復号
化論理選択信号306もアクティブになり次の復号は黒
ランになる。符号長積算器310は符号長と同数のシフ
トパルス312を発生し、シフトレジスタ301の内容
は符号長分だけシフトされる。また、ラッチ信号311
がアクティブになれば、シフトレジスタ301にMH符
号が8ビツト人力される。符号がTコードになったとき
のラン長積算器303の出力が復号されたデータである
First, a 16-bit MH code is input to the shift register 301 by a start signal (not shown). Assume that the starting point is white run. The lower 13 bits of the 16 manually generated bits are input to the decoding logic circuit 302, and the run length, T code/
Outputs the code length for each M code. If the code is an M code, the color inversion signal 305 becomes inactive and the rerun length is integrated in the next decoding. Also. The decoding logic selection signal 306 is also inactive, and the next decoding will also be a white run. If it is a T code, the color inversion signal 305 becomes active and the run length is newly accumulated from the next decoding. Further, the decoding logic selection signal 306 also becomes active, and the next decoding will be a black run. The code length integrator 310 generates the same number of shift pulses 312 as the code length, and the contents of the shift register 301 are shifted by the code length. In addition, the latch signal 311
When becomes active, an 8-bit MH code is input to the shift register 301. The output of the run length integrator 303 when the code becomes a T code is the decoded data.

この例で、第1表より、ラン長は最大2560であるか
らラン長積算器303へ出力するラン長は12ビツト、
符号長積算器310へ出力する符号長は4ビツトである
。従って、Tコードの別を1ビツトで表すとすれば、復
号化論理回路302からの出力は合計7ビツトとなる。
In this example, from Table 1, the maximum run length is 2560, so the run length output to the run length integrator 303 is 12 bits.
The code length output to code length integrator 310 is 4 bits. Therefore, if each T code is represented by 1 bit, the output from the decoding logic circuit 302 will be 7 bits in total.

このとき、復号化論理回路302をROMで構成すると
総ビット数は、2”Xl 7=272にビットとなる。
At this time, if the decoding logic circuit 302 is configured with a ROM, the total number of bits will be 2''Xl 7 = 272 bits.

[発明が解決しようとする問題点] 上述したように、従来のMH符合復号器では、復号化論
理回路をROMで構成しようとすると総ビット数が、2
+4X17=272にビットとなり、ハードウェア量が
大きすぎるという問題点がある。
[Problems to be Solved by the Invention] As mentioned above, in the conventional MH code decoder, when the decoding logic circuit is configured with a ROM, the total number of bits is reduced to 2.
There is a problem that the number of bits is +4X17=272, and the amount of hardware is too large.

したがって、本発明の目的は少ないハードウェア量でM
H符合復号器を実現することである。
Therefore, the object of the present invention is to
The objective is to realize an H code decoder.

[問題点を解決するための手段] 本発明はMH符号を復号する復号器にして該復号器は特
定パタンを検出する復号論理回路を含む複数個の復号論
理回路と、前記特定パタンを検出する復号論理回路のう
ちいずれを選択するかを決める復号論理選択信号を形成
する復号論理選択回路と、復号論理選択回路から出力さ
れる復号論理選択信号によって制御されるマルチプレク
サと、入力用シフト回路とを有し、前記特定パタンを検
出する′復号論理回路によって特定パタンを検出すると
前記入力用シフト回路中のデータを所定ビット数だけシ
フトすることを特徴としている。
[Means for Solving the Problems] The present invention provides a decoder for decoding MH codes, and the decoder includes a plurality of decoding logic circuits including a decoding logic circuit for detecting a specific pattern, and a decoding logic circuit for detecting the specific pattern. A decoding logic selection circuit that forms a decoding logic selection signal for determining which one of the decoding logic circuits to select, a multiplexer controlled by the decoding logic selection signal output from the decoding logic selection circuit, and an input shift circuit. When the specific pattern is detected by the decoding logic circuit that detects the specific pattern, the data in the input shift circuit is shifted by a predetermined number of bits.

し々がって、上述した従来のMH符合復号器に対し、本
発明はMl符号のうち特定のパターンに対して処理を加
えることにより、復号論理回路のハードウェア量を削減
するという独創的内容を有する。
Therefore, compared to the conventional MH code decoder described above, the present invention has an original content of reducing the amount of hardware of the decoding logic circuit by adding processing to a specific pattern of the Ml code. has.

[実施例コ 次に、本発明の実施例について図面を参照して説明する
[Embodiments] Next, embodiments of the present invention will be described with reference to the drawings.

策上尖忘] 第1図は本発明の第1実施例を示すブロック図である。[Strictly superior] FIG. 1 is a block diagram showing a first embodiment of the present invention.

同図に於て、シフトレジスタ101は、MH符号の符号
列を復号化論理回路121、復号化論理回路122、復
号化論理回路123へ供給するレジスタである。同図で
上側をMSB、下側をLSBとする。シフトレジスタ1
01は16ビツトで、後述するラッチ信号111により
MH符号を8ビツトずつラッチする。また、中のデータ
は、後述するシフトパルス112によりLSB方向へ1
ビツトずつシフトされる。本実施例では、復号化論理回
路121は白ランに対する復号化論理回路、復号化論理
回路122は黒ランと白黒共通ランに対する復号化論理
回路、復号化論理回路123は一部の黒ランに対する復
号化論理回路である。復号化論理回路121、復号化論
理回路122、復号化論理回路123はいずれも、シフ
トレジスタ101からMH符号を9ビツトずつ入力して
、ラン長、Tコード/Mコードの別、符号長を、マルチ
プレクサ130に出力する。また、復号化論理回路12
2とは、連続ゼロ検出信号を出力する。マルチプレクサ
130は後述する復号化論理選択信号132にしたがっ
て、前記3つの復号化論理回路から出力された各情報の
うちいずれかを選び、ラン長積算器103ヘラン長を、
色反転回路104へTコード/Mコードの別を、符号長
積算器110へ符号長を、復号化論理選択回路131へ
連続ゼロ検出信号をそれぞれ出力する。
In the figure, a shift register 101 is a register that supplies a code string of MH codes to a decoding logic circuit 121, a decoding logic circuit 122, and a decoding logic circuit 123. In the figure, the upper side is the MSB and the lower side is the LSB. shift register 1
01 is 16 bits, and the MH code is latched 8 bits at a time by a latch signal 111, which will be described later. Furthermore, the data inside is shifted by 1 in the LSB direction by a shift pulse 112, which will be described later.
Shifted bit by bit. In this embodiment, the decoding logic circuit 121 is a decoding logic circuit for white runs, the decoding logic circuit 122 is a decoding logic circuit for black runs and monochrome common runs, and the decoding logic circuit 123 is a decoding logic circuit for some black runs. It is a logic circuit. The decoding logic circuit 121, the decoding logic circuit 122, and the decoding logic circuit 123 all input the MH code from the shift register 101 in 9 bits each, and determine the run length, T code/M code distinction, and code length. Output to multiplexer 130. In addition, the decoding logic circuit 12
2 outputs a continuous zero detection signal. The multiplexer 130 selects one of the pieces of information output from the three decoding logic circuits according to a decoding logic selection signal 132 described later, and sets the Heran length of the run length integrator 103 to
It outputs the T code/M code distinction to the color inversion circuit 104, the code length to the code length integrator 110, and the continuous zero detection signal to the decoding logic selection circuit 131, respectively.

復号化論理選択回路131はマルチプレクサ130に復
号化論理選択信号132を出力する。ラン長積算器10
3は色反転回路104から色反転信号105が来るまて
ラン長を積算する。色反転回路104は、マルチプレク
サ130からTコード/Mコードの別を表す信号を人力
し、Tコードであることを検出すると色反転信号105
と復号化論理選択信号132とを出力する。符号長積算
器110は、マルチプレクサ130から符号長を入力し
て、符号長と同数のシフトパルス112を発生する。ま
た、符号長を積算して8ビツトごとにラッチ信号111
を出力する。
The decoding logic selection circuit 131 outputs a decoding logic selection signal 132 to the multiplexer 130. Run length integrator 10
3, the run length is integrated until the color inversion signal 105 is received from the color inversion circuit 104. The color inversion circuit 104 inputs a signal representing T code/M code from the multiplexer 130, and when detecting the T code, outputs a color inversion signal 105.
and a decoding logic selection signal 132. The code length integrator 110 receives the code length from the multiplexer 130 and generates the same number of shift pulses 112 as the code length. Also, the code length is integrated and the latch signal 111 is generated every 8 bits.
Output.

次に、動作の説明を行う。処理の概要フローを第4図に
示す。
Next, the operation will be explained. FIG. 4 shows a general flow of the process.

シフトレジスタ101に図示していない開始信号により
MH符号16ビツトを入力する。簡単のため、始めが白
ランであるとする。入力した16ビツトのうち下位9ビ
ツトが復号化論理回路121、復号化論理回路122、
復号化論理回路123に供給される。始めを白ランとし
たので、復号化論理回路121からの出力がマルチプレ
クサ130で選択される。ここで、別表の関係から、も
し人力した9ビツトのうち最下位の連続する8ビツトが
LSBから順に”0000 0001”でなければ、復
号化論理回路121は、ラン長、Tコード/Mコードの
別、符号長を出力する。符号がMコードであれば、色反
転信号105はインアクティブになりラン長は次の復号
ても積算される。
A 16-bit MH code is input to the shift register 101 by a start signal (not shown). For simplicity, assume that the beginning is a white run. The lower 9 bits of the input 16 bits are the decoding logic circuit 121, the decoding logic circuit 122,
A decoding logic circuit 123 is provided. Since the beginning is a white run, the output from the decoding logic circuit 121 is selected by the multiplexer 130. Here, from the relationship in the attached table, if the lowest consecutive 8 bits of the 9 manually generated bits are not "0000 0001" in order from the LSB, the decoding logic circuit 121 will be able to determine the run length, T code/M code. Separately, the code length is output. If the code is an M code, the color inversion signal 105 becomes inactive and the run length is integrated even in the next decoding.

また、復号化論理選択信号132もインアクティブであ
り次の復号も白ランになる。Tコードであれば、色反転
信号105はアクティブになりラン長は次の復号から新
たに積算される。また、復号化論理選択信号132もア
クティブになり次の復号は黒ランになる。符号長積算機
110は符号長と同数のシフトパルス112を発生し、
シフトレジスタ101の内容は符号長外だけシフトされ
る。
Further, the decoding logic selection signal 132 is also inactive, and the next decoding will also be a white run. If it is a T code, the color inversion signal 105 becomes active and the run length is newly integrated from the next decoding. Further, the decoding logic selection signal 132 also becomes active, and the next decoding becomes a black run. The code length integrator 110 generates the same number of shift pulses 112 as the code length,
The contents of shift register 101 are shifted by an amount outside the code length.

また、ラッチ信号111がアクティブになれば、シフト
レジスタ101に次の8ビツトのMH符号が入力される
。符号がTコードになったときのラン長積算器103の
出力が復号されたデータである。もし入力した9ビツト
のうち最下位の連続する8ビツトが”0000 000
1”であれば、復号化論理回路121は、ラン長、Tコ
ード/Mコードの別、符号長のほかに、連続ゼロ検出信
号を出力する。この時のラン長は”0”、Tコード/M
コードの別はMコード、符号長は“4゛とする。色反転
信号105はインアクティブになリラン長は次の復号て
も積算される。また、復号化論理選択回路131は、連
続ゼロ検出信号と色反転信号105とを入力して復号化
論理選択信号132を出力し、次の復号も白ランである
が選択すべき復号化論理回路を復号化論理回路122に
切り換えることを指示する。符号長積算器110はシフ
トパルス112を符号長と同数、すなわち4個発生する
。シフトレジスタ101の内容は所定ビットである4ビ
ツト分だけシフトされる。次に、再びシフトレジスタ1
01から下位9ビツトが復帰化論理回路121、復号化
論理回路122、復号化論理回路123にはいる。前述
の動作により、今回は復号化論理回路122からの出力
がマルチプレクサ130で選択される。以下の動作は、
前述したものと同様である。
Furthermore, when the latch signal 111 becomes active, the next 8-bit MH code is input to the shift register 101. The output of the run length integrator 103 when the code becomes a T code is the decoded data. If the lowest 8 consecutive bits of the 9 input bits are “0000 000”
1", the decoding logic circuit 121 outputs a continuous zero detection signal in addition to the run length, T code/M code distinction, and code length. At this time, the run length is "0", and the T code /M
The code is M code, and the code length is "4".The color inversion signal 105 becomes inactive and the rerun length is accumulated even in the next decoding.The decoding logic selection circuit 131 detects consecutive zeros. It inputs the signal and the color inversion signal 105 and outputs a decoding logic selection signal 132, instructing to switch the decoding logic circuit to be selected to the decoding logic circuit 122, although the next decoding is also a white run. The code length integrator 110 generates the same number of shift pulses 112 as the code length, that is, 4.The contents of the shift register 101 are shifted by 4 predetermined bits.Next, the shift register 1 is shifted again.
The lower 9 bits from 01 are input to the restoration logic circuit 121, the decoding logic circuit 122, and the decoding logic circuit 123. Due to the operation described above, the output from decoding logic circuit 122 is now selected by multiplexer 130. The following operation is
This is the same as described above.

次に、黒ランの場合について考える。シフトレジスタ1
01から入力されたMH符号9ビットが復号化論理回路
121、復号化論理回路122、復号化論理回路123
にはいる。黒ランの場合、別表の関係から、もし人力し
た9ビツトのうち最下位の連続する4ビツトがLSBか
ら順に”0000゛′でなければ、復号化論理回路12
3からの出力がマルチプレクサ130て選択される。復
号化論理回路123は、ラン長、Tコード/Mコードの
別、符号長を出力する。この場合符号はTコードである
から、色反転信号105はアクティブになリラン長は次
の復号から新たに積算される。
Next, consider the case of black orchid. shift register 1
The 9 bits of the MH code input from 01 are sent to the decoding logic circuit 121, the decoding logic circuit 122, and the decoding logic circuit 123.
Enter. In the case of a black run, from the relationship in the attached table, if the lowest consecutive 4 bits of the 9 manually generated bits are not "0000" in order from the LSB, the decoding logic circuit 12
3 is selected by multiplexer 130. The decoding logic circuit 123 outputs the run length, T code/M code distinction, and code length. In this case, since the code is a T code, the color inversion signal 105 becomes active and the rerun length is newly integrated from the next decoding.

また、復号化論理選択信号106もアクティブになり次
の復号は白ランになる。符号長積算器110は符号長と
同数のシフトパルス112を発生し、シフトレジスタ1
01の内容は符号長分だけシフトされる。また、ラッチ
信号111がアクティブになれば、シフトレジスタ10
1に次の8ビツトのMH符号が入力される。ラン長積算
器103の出力が復号されたデータである。もし人力し
た9ビツトのうち最下位の連続する4ビツトが”000
0パてあれば、復号化論理回路122が選択される。復
号化論理回路122は、ラン長、Tコード/Mコードの
別、符号長のほかに、連続ゼロの検出信号を出力する。
Further, the decoding logic selection signal 106 also becomes active, and the next decoding becomes a white run. The code length integrator 110 generates the same number of shift pulses 112 as the code length, and the shift register 1
The contents of 01 are shifted by the code length. Furthermore, if the latch signal 111 becomes active, the shift register 10
1, the next 8-bit MH code is input. The output of run length integrator 103 is decoded data. If the lowest 4 consecutive bits of the 9 manually generated bits are “000”
If it is 0, decoding logic circuit 122 is selected. The decoding logic circuit 122 outputs a continuous zero detection signal in addition to the run length, T code/M code distinction, and code length.

この時のラン長は11011、Tコード/Mコードの別
はMコード、符号長は4”とする。色反転信号105は
インアクティブになりラン長は次の復号ても積算される
。また、復号化論理選択回路131は、連続ゼロ検出信
号と色反転信号105とを人力して復号化論理選択信号
106を出力し、次の復号も黒ランてあり選択すべき復
号化論理回路を再び復号化論理回路122にすることを
指示する。符号長積算器110はシフトパルス112を
符号長と同数、すなわち4個発生する。シフトレジスタ
101の内容は4ビツト分だけシフトされる。次に、再
びシフトレジスタ101から下位9ビツトが復号化論理
回路121、復号化論理回路122、復号化論理回路1
23にはいる。前述の動作により、今回も復号化論理回
路122からの出力がマルチプレクサ130で選択され
る。以下の動作は、前述したものと同様になる。
The run length at this time is 11011, the T code/M code is an M code, and the code length is 4''.The color inversion signal 105 becomes inactive and the run length is integrated in the next decoding. The decoding logic selection circuit 131 outputs the decoding logic selection signal 106 by manually inputting the continuous zero detection signal and the color inversion signal 105, and decodes the decoding logic circuit to be selected again since there is a black run in the next decoding. The code length integrator 110 generates the same number of shift pulses 112 as the code length, that is, 4. The contents of the shift register 101 are shifted by 4 bits. The lower 9 bits from the shift register 101 are the decoding logic circuit 121, the decoding logic circuit 122, and the decoding logic circuit 1.
I'm 23 years old. Due to the above-described operation, the output from the decoding logic circuit 122 is selected by the multiplexer 130 this time as well. The following operations are similar to those described above.

本実施例によれば、復号化論理回路への入力は9ビツト
でよい。また、復号化論理回路123ては短い黒ランの
場合を扱うだけなので、復号化論理回路123は簡単な
論理回路で構成できる。残り2つの復号化論理回路をR
OMで構成しようとすると総ビット数は、29X17X
2=17にビットとなる。これに、復号化論理回路12
3の論理回路とマルチプレクサ130と復号化論理選択
回路131とのハードウェアを加えても、21’X17
=272にビットのROMのハードウェア量には、はる
かに及ばない。
According to this embodiment, the input to the decoding logic circuit may be 9 bits. Furthermore, since the decoding logic circuit 123 only deals with the case of short black runs, the decoding logic circuit 123 can be constructed from a simple logic circuit. The remaining two decoding logic circuits are R
When trying to configure with OM, the total number of bits is 29X17X
2=17 bits. In addition, the decoding logic circuit 12
Even if you add the hardware of 3 logic circuits, multiplexer 130, and decoding logic selection circuit 131, the
= 272 bits, which is far less than the hardware amount of a ROM.

呆λ叉丘コ 第2図は、本発明の第2実施例を示すブロック図である
。同図に於て、入力レジスタ241、入力レジスタ24
2は、それぞれ後述するラッチ信号243、ラッチ信号
244によりMH符号を入力する。バレルシフタ201
は、MH符号の符号列を復号化論理回路221、復号化
論理回路222、復号化論理回路223へ人力させるレ
ジスタである。バレルシフタ201は16ビツトで、後
述するラッチ信号211によりMH符号の符号列を人力
レジスタ241、入力レジスタ242から入力する。同
図で上をMSB、下をLSBとする。
FIG. 2 is a block diagram showing a second embodiment of the present invention. In the same figure, input register 241, input register 24
2 inputs the MH code using a latch signal 243 and a latch signal 244, which will be described later, respectively. barrel shifter 201
is a register for manually inputting the code string of the MH code to the decoding logic circuit 221, the decoding logic circuit 222, and the decoding logic circuit 223. The barrel shifter 201 has 16 bits, and inputs the code string of the MH code from the manual register 241 and the input register 242 in response to a latch signal 211, which will be described later. In the figure, the top is the MSB and the bottom is the LSB.

また、中のデータは、後述するシフトパルス212によ
りLSB方向へシフト数213で指示されるビット数ず
つシフトされる。本実施例では、復号化論理回路221
は白ランに対する復号化論理回路、復号化論理回路22
2は黒ランと白黒共通ランに対する復号化論理回路、復
号化論理回路223は一部の黒ランに対する復号化論理
回路である。復号化論理回路221、復号化論理回路2
22、復号化論理回路223はいずれも、バレルシフタ
201からMH符号を9ビツトずつ入力して、ラン長、
Tコード/Mコードの別、符号長を、マルチプレクサ2
30に出力する。復号化論理回路221と復号化論理回
路222は、連続ゼロ検出信号を出力する。マルチプレ
クサ230は、後述する復号化論理選択信号232にし
たがって、前記3つの復号化論理回路から出力された各
情報のうちいずれかを選び、ラン長積算器203ヘラン
長を、色反転回路204へTコード/Mコードの別を、
符号長積算器210へ符号長を、復号化論理選択回路2
31へ連続ゼロ検出信号をそれぞれ出力する。復号化論
理選択回路231は、マルチプレクサ230に復号化論
理選択信号232を出力する。ラン長積算器203は、
色反転回路204から色反転信号205が来るまてラン
長を積算する。色反転回路204は、マルチプレクサ2
30からTコード/Mコードの別を表す信号を入力し、
Tコードであることを検出すると色反転信号205と復
号化論理選択信号206とを出力する。
Furthermore, the data inside is shifted in the LSB direction by the number of bits indicated by the shift number 213 by a shift pulse 212 to be described later. In this embodiment, the decoding logic circuit 221
is a decoding logic circuit for white run, decoding logic circuit 22
2 is a decoding logic circuit for the black run and the monochrome common run, and a decoding logic circuit 223 is a decoding logic circuit for some of the black runs. Decoding logic circuit 221, decoding logic circuit 2
22, the decoding logic circuit 223 inputs the MH code from the barrel shifter 201 in 9 bits each, and calculates the run length,
Multiplexer 2 determines T code/M code and code length.
Output to 30. The decoding logic circuit 221 and the decoding logic circuit 222 output continuous zero detection signals. The multiplexer 230 selects one of the pieces of information output from the three decoding logic circuits according to a decoding logic selection signal 232 to be described later, and transmits the Heran length of the run length integrator 203 to the color inversion circuit 204. The difference between code/M code,
The code length is sent to the code length integrator 210, and the decoding logic selection circuit 2
A continuous zero detection signal is output to 31, respectively. The decoding logic selection circuit 231 outputs a decoding logic selection signal 232 to the multiplexer 230. The run length integrator 203 is
The run length is integrated until the color inversion signal 205 is received from the color inversion circuit 204. The color inversion circuit 204 is connected to the multiplexer 2
Input a signal indicating the T code/M code from 30,
When it detects that it is a T code, it outputs a color inversion signal 205 and a decoding logic selection signal 206.

符号長積算器210は、マルチプレクサ230から符号
長を入力して、シフトパルス212とシフト数213と
を発生する。また、符号長を積算して8ビツトごとにラ
ッチ信号211を出力する。
The code length integrator 210 receives the code length from the multiplexer 230 and generates a shift pulse 212 and a shift number 213. Further, the code length is integrated and a latch signal 211 is output every 8 bits.

この実施例では、符号長積算器210の動作が第1の実
施例とは異となる。符号長積算器210は、マルチプレ
クサ230から符号長を人力すると、シフトパルス21
2を発生する。また、この時同時にシフト数213を出
力するが、この値は、符号長の積算値の8の剰余数で与
えられる。また、ラッチ信号211をバレルシフタ20
1に対して出力するとともに、入力レジスタ241、人
力レジスタ242のいずれかに対しても出力する。この
時のラッチ信号243、ラッチ信号244は、ラッチ信
号211から作られる。
In this embodiment, the operation of code length integrator 210 is different from that in the first embodiment. When the code length is input manually from the multiplexer 230, the code length integrator 210 generates a shift pulse 21.
Generates 2. Also, at this time, a shift number 213 is outputted at the same time, and this value is given by the remainder of 8 of the cumulative value of the code lengths. In addition, the latch signal 211 is transmitted to the barrel shifter 20.
1, and also to either the input register 241 or the manual register 242. The latch signal 243 and the latch signal 244 at this time are generated from the latch signal 211.

この実施例では、MH符号のシフトを、バレルシフタを
用いて1クロツクで行うので、第1実施例よりも処理が
高速になるという利点がある。
In this embodiment, since the MH code is shifted in one clock using a barrel shifter, there is an advantage that processing is faster than in the first embodiment.

[発明の効果コ 以上説明してきたように、本発明によればMH符号復号
器のハードウェア量を減少させることができるという効
果を奏する。
[Effects of the Invention] As explained above, according to the present invention, the amount of hardware of the MH code decoder can be reduced.

ターミネイティング符号語 (以下次頁に続く) (以下次頁に続く) (以下次頁に続く) (以下次頁に続く)terminating codeword (continued on next page) (continued on next page) (continued on next page) (continued on next page)

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

第1図は本発明の第1実施例を示すブロック図、第2図
は本発明の第2実施例を示すブロック図、第3図は従来
のMH符号復号器の例を示すブロック図、 第4図は第1実施例の処理の概要フローを示すフローチ
ャート図である。 101、、、シフトレジスタ、 10318.ラン長積算器、 104、、、色反転回路、 105、、、色反転信号、 110、、、符号長積算器、 111、、、ラッチ信号、 112、、、シフトパルス、 121.122,123.、、復号化論理回路、130
、、、マルチプレクサ、 131、、、復号化論理選択回路、 132、、、復号化論理選択信号、 201、、、バレルシフト、 203、、、ラン長積算器、 204、、、色反転回路、 205、、、色反転信号、 210、、、符号長積算器、 211、、、ラッチ信号、 212、、、シフトパルス、 213、、、シフト数、 221.222,223.、、復号化論理回路、230
、、、マルチプレクサ、 231、、、復号化論理選択回路、 232、、、復号化論理選択信号、 241.242.、、入力レジスタ、 243.244.、、ラッチ信号。 特許出願人  日本電気株式会社 代理人 弁理士  桑 井 清 − 第1図 第3図
FIG. 1 is a block diagram showing a first embodiment of the present invention, FIG. 2 is a block diagram showing a second embodiment of the present invention, FIG. 3 is a block diagram showing an example of a conventional MH code decoder, FIG. 4 is a flowchart showing a general flow of processing in the first embodiment. 101, Shift register, 10318. Run length integrator, 104, Color inversion circuit, 105, Color inversion signal, 110, Code length integrator, 111, Latch signal, 112, Shift pulse, 121, 122, 123. ,,decoding logic circuit, 130
, multiplexer 131 , decoding logic selection circuit 132 , decoding logic selection signal 201 , barrel shift 203 , run length integrator 204 , color inversion circuit 205 , , Color inversion signal 210 , Code length integrator 211 , Latch signal 212 , Shift pulse 213 , Shift number 221.222, 223 . ,,decoding logic circuit, 230
, ,Multiplexer, 231, ,Decoding logic selection circuit, 232, ,Decoding logic selection signal, 241.242. ,,input register, 243.244. ,,Latch signal. Patent applicant Kiyoshi Kuwai, agent for NEC Corporation, patent attorney - Figure 1 Figure 3

Claims (1)

【特許請求の範囲】[Claims] MH符号を復号する復号器にして該復号器は特定パタン
を検出する復号論理回路を含む複数個の復号論理回路と
、前記特定パタンを検出する復号論理回路のうちいずれ
を選択するかを決める復号論理選択信号を形成する復号
論理選択回路と、復号論理選択回路から出力される復号
論理選択信号によって制御されるマルチプレクサと、入
力用シフト回路とを有し、前記特定パタンを検出する復
号論理回路によって特定パタンを検出すると前記入力用
シフト回路中のデータを所定ビット数だけシフトするこ
とを特徴とするMH符号復号器。
A decoder for decoding an MH code, the decoder includes a plurality of decoding logic circuits including a decoding logic circuit for detecting a specific pattern, and a decoding circuit for determining which one to select from among the decoding logic circuits for detecting the specific pattern. The decoding logic circuit has a decoding logic selection circuit that forms a logic selection signal, a multiplexer controlled by the decoding logic selection signal output from the decoding logic selection circuit, and an input shift circuit, and detects the specific pattern. An MH code decoder characterized in that when a specific pattern is detected, data in the input shift circuit is shifted by a predetermined number of bits.
JP62105825A 1987-04-28 1987-04-28 MH code decoder Expired - Lifetime JP2833743B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62105825A JP2833743B2 (en) 1987-04-28 1987-04-28 MH code decoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62105825A JP2833743B2 (en) 1987-04-28 1987-04-28 MH code decoder

Publications (2)

Publication Number Publication Date
JPS63269833A true JPS63269833A (en) 1988-11-08
JP2833743B2 JP2833743B2 (en) 1998-12-09

Family

ID=14417836

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62105825A Expired - Lifetime JP2833743B2 (en) 1987-04-28 1987-04-28 MH code decoder

Country Status (1)

Country Link
JP (1) JP2833743B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03253120A (en) * 1990-03-02 1991-11-12 Nec Corp Change point detecting circuit

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5579565A (en) * 1978-12-12 1980-06-16 Fujitsu Ltd Picture signal decoding system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5579565A (en) * 1978-12-12 1980-06-16 Fujitsu Ltd Picture signal decoding system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03253120A (en) * 1990-03-02 1991-11-12 Nec Corp Change point detecting circuit

Also Published As

Publication number Publication date
JP2833743B2 (en) 1998-12-09

Similar Documents

Publication Publication Date Title
JP3524057B2 (en) Method and circuit for searching for minimum / maximum values in a set of numbers
US5696791A (en) Apparatus and method for decoding a sequence of digitally encoded data
US5008668A (en) Method and apparatus for encoding and decoding data in residue number system
JP2635750B2 (en) Priority determination device
US20030179848A1 (en) Gray code counter
US6269138B1 (en) Low power counters
JPS63269833A (en) Mh code decoder
KR880002075A (en) Binary data compression and decompression processing device
US4551706A (en) Apparatus for decoding run-length encoded data
JP2565730B2 (en) Overflow detection circuit
JPS6126853B2 (en)
JPS6341271B2 (en)
JPH0132702B2 (en)
SU1656574A1 (en) Data compressor
JP2966437B2 (en) Run length code encoder
JP3083119B2 (en) Encoding / decoding circuit using adaptive delta modulation scheme
JPS6231265A (en) Modified huffman decoding system
JPH0551932B2 (en)
KR940004431B1 (en) Intermediate value decision circuit of 4 bit binary data
JPH06187125A (en) Bcd data decision circuit
JP3257002B2 (en) Packet majority circuit
JPH0427754B2 (en)
KR0142792B1 (en) Data interpolation circuit
JPH0783703A (en) Absolute encoder
JPS63279619A (en) Semiconductor circuit