JPS5927504B2 - decoding circuit - Google Patents
decoding circuitInfo
- Publication number
- JPS5927504B2 JPS5927504B2 JP3070078A JP3070078A JPS5927504B2 JP S5927504 B2 JPS5927504 B2 JP S5927504B2 JP 3070078 A JP3070078 A JP 3070078A JP 3070078 A JP3070078 A JP 3070078A JP S5927504 B2 JPS5927504 B2 JP S5927504B2
- Authority
- JP
- Japan
- Prior art keywords
- output
- code
- circuit
- decoding
- counter
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired
Links
Landscapes
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Description
本発明はファクシミリ装置等に於いて使用する文字情報
等の復号化回路に関する。
近年の高速ファクシミリ装置に於いては、伝送時間の短
縮及び伝送帯域の圧縮等の目的から、文字情報のランレ
ングスを適当な圧縮化符号に変換して伝送する方法が採
用されており、斯る圧縮符号化の一方法としてモデイフ
アイドホフマン(MH)符号を使用するものが最近クロ
ーズアップされるようになつてきた。
ところで、このMH符号は別表に示すように、ランレン
グス63以下のものに対しては個々に決められているが
、ランレングス64以上のものでは64毎に決められて
おり、例えば白ランレングス70では70=64+6で
あるから〔110111110〕として、また、白ラン
レL−ー9−ーーンL−ヘーーノングス64は同様に〔
1101100110101〕L−−り−−Jとして符
号化されるようになつている。
このため、斯るMH符号を元のランレングスに相当する
信号にデコードする場合には、デコード用のメモリをラ
ンレングス63以下(以後、下位桁と云う)に対応する
ものとランレングス64以上(以後、上位桁と云う)に
対応するものとにそれぞれ個別に用意しなければならな
いことになる。
しかしながら、このようなデコード用メモリには高価な
ROM(リードオンリーメモリ)等が用いられるので、
このメモリを二組使用することは復号化回路を安価に実
現できないことを意味する。そこで、本発明は斯る点に
注目し、土述のMH符号の如く圧縮符号化された2値コ
ード信号をデコードする際に、一つのデコード用メモリ
を上位桁及び下位桁に対して共通に設けてデコードを行
えるようにした復号化回路を提案するものである。以下
、本発明復号化回路の詳細を図面lこ示す一実施例に於
いて白ランレングス70のMH符号をデコードする場合
に従つて説明する。人力端子1にシリアルに導人された
白ランレングス70に対応する〔110111110〕
のMH信号はクロツクパルスφ。
によつてパラレル変換用のシフトレジスタ2に順次ロー
ドされ、先ず、そのMH信号のうち白ランレングス64
に対応する〔11011〕がこのシフトレジスタにロー
ドされた時点で、その〔11011〕に対応するパラレ
ル変換出力がROMで構成されるデコード用メモリ3に
読出し用のアドレス信号として印加される。その際、上
記シフトレジスタ2には別表に示す白のMH符号の最大
ビツト数9よりも大きい例えば10ビツトのものが使用
されており、且つ、このシフトレジスタ2への各MH信
号の導入に先立つて先ず図示しない回路によつてその各
MH信号の最初の1ビツトの内容(0又は1)と逆の4
1n又は80nの信号がそのシフトレジスタの全てのビ
ツトに亘つてロードされ、その後にこのシフトレジスタ
2に各MH信号が導入されるようになつている。このた
め、前述の白ランレングス64の〔11011〕がロー
ドされた時点では、このシフトレジスタ2のパラレル出
力は〔0000011011〕となり、これが前記メモ
リ3のアドレス入力となるが、斯る点は本発明の要旨に
直接関係しないので、これ以上の説明は省略する。
前記メモリ3は、シフトレジスタ2からの上記アドレス
入力が別表に示す下位桁(ランレングス63以下)のM
H符号に対応するものである場合には、そのMH符号に
対応するランレングス数の2進コードをその6つのパラ
レル出力端子01〜06に導出すると共に他の出力端子
07,08にそれぞれ07=60共,08−61″なる
出力を導出し、また、上記アドレス入力が上位桁(ラン
レングス64以上)のMH符号に対応するものである場
合には、そのMH符号に対応するランレングス数をa×
64とした時のaに相当する2進数コードを前記出力端
子01〜06に導出すると共に前記出力端子07,08
にそれぞれ07−61”,08=“0゛なる出力を導出
するよう予め構成されている。
このため、白ランレングス64に対応するアドレス信号
〔シフトレジスタ2の前記パラレル出力]がメモリ3に
印加された時は、このメモリ3の01〜06の出力はa
−1であるから〔000001〕となり、且つ、07−
81Z08−801となる。
この07−゛1”の出力(土位桁判定出力)は第1の1
ビツト切出し回路4を動作させて、クロツクパルスφ2
を1ビツト分A,だけ導出させ、このA1によつて第1
バイナリ−ダウンカウンタ5に前記メモリ3からの2進
数出力〔000000がロードされる。な卦、この時、
08=″O゛であるから第2の1ビツト切出し回路6は
動作されず、従つて、前記メモリ3からの上記2進数出
力が第2バイナリ−ダウンカウンタ7にロードされるこ
とはない。
次に、前記シフトレジスタ2に白ランレングス6に対応
するMH信号〔1110〕がロードされた(この時には
、前述の理由により、このシフトレジスタ2のパラレル
出力は〔.00000q、1110〕となる)時点では
、シフトレジスタ2からのこのアドレス信号に対してメ
モリ3の0,〜06の出力は〔000110]となり、
且つ、07=601,08−6r”となる。この08−
61″の出力(下位桁判定出力)は第2の1ビツト切出
し回路6を動作させ、前記クロツクパルスφ2を前述と
同様に1ビツト分A2だけ導出させ、このA2によつて
第2バイナリ−ダウンカウンタ7に前記メモリ3からの
2進数出力〔000110]−6がロードされる。なお
、第1第2カウンタ5,7は前記メモリ3からの各2進
数出力がロードされる前の状態では、この各カウンタが
ロードされているか否かをそれぞれ表わす出力Cl,C
2は何れも6・・イ゛になつていて、それによつてアン
ドゲート9の出力も・イ2゛になつており1このアンド
ゲートの出力でフリツブフロツブ10が予めりセツトさ
れている。
そして、この両カウンタ5,7に前記各2進数コード〔
000001〕及び〔000110〕がロードされた状
態では、このカウンタの上記各出力Cl,C2は何れも
601となつている。次に、第3の1ビツト切出し回路
8によつて第2の1ビツト切出し回路6の出力A2より
も1ビツト遅れたクロツクパルスφ2の次の1ビツト分
A3が導出されると、このA3によつてフリツプフロツ
ブ10がセツトされ、その出力が“ハイ1になるので、
上記クロツクパルスφ2がアンドゲート11を介して第
2カウンタ7に印加され、このカウンタはそれによつて
順次カウントダウンする。それと同時に、上記アンドゲ
ート11を介して導出された上記クロツクパルスφ2は
出力用のシフトレジスタ12に順次導入される。このよ
うにして第2カウンタ7に6個のクロツクパルスφ2が
印加された時点で、このカウンタはその全てのビツトの
内容カピO″となり、このカウンタの出力C2は6ハイ
1になるが、この時には第1カウンタ5の出力C1は6
ロー7であるので、フリツプフロツプ10はりセツトさ
れない。
この状態から第2カウンタ7に前記クロツクパルスφ2
が更に1パルス印加されると、この第2カウンタ7の内
容が〔111111〕となると同時にボロ一出力Bを生
じ、この出力Bによつて第1カウンタ5の桁下げが行な
われるので、この第1カウンタ5はThe present invention relates to a decoding circuit for character information, etc. used in facsimile machines and the like. In recent years, high-speed facsimile devices have adopted a method of converting the run length of character information into an appropriate compressed code and transmitting it for the purpose of shortening transmission time and compressing the transmission band. Recently, the use of modified Hoffmann (MH) codes as a compression encoding method has been attracting attention. By the way, as shown in the attached table, this MH code is determined individually for run lengths of 63 or less, but for run lengths of 64 or more, it is determined for each 64. For example, a white run length of 70 Then, since 70 = 64 + 6, [110111110], and White Lanre L--9-- L-Heonongs 64 is also [110111110].
1101100110101] It is encoded as L--ri--J. Therefore, when decoding such an MH code into a signal corresponding to the original run length, the decoding memory is used for run lengths of 63 or less (hereinafter referred to as lower digits) and for run lengths of 64 or more (hereinafter referred to as lower digits). Henceforth, it will be necessary to prepare separately for those corresponding to the upper digits. However, since such decoding memory uses expensive ROM (read only memory), etc.
Using two sets of memories means that the decoding circuit cannot be realized at low cost. Therefore, the present invention focuses on this point, and when decoding a compression-encoded binary code signal such as the MH code mentioned above, one decoding memory is used in common for upper and lower digits. The present invention proposes a decoding circuit that can be installed to perform decoding. The details of the decoding circuit of the present invention will be explained below in accordance with the case where an MH code with a white run length of 70 is decoded in an embodiment shown in FIG. Corresponds to white run length 70 serially connected to manual terminal 1 [110111110]
The MH signal is a clock pulse φ. are sequentially loaded into the shift register 2 for parallel conversion by
When [11011] corresponding to [11011] is loaded into this shift register, the parallel conversion output corresponding to [11011] is applied as a reading address signal to the decoding memory 3 constituted by a ROM. In this case, the shift register 2 uses a 10-bit code that is larger than the maximum number of bits of the white MH code, 9, shown in the attached table, and that each MH signal is inserted into the shift register 2 before being introduced. First, a circuit (not shown) converts the content of the first bit (0 or 1) of each MH signal to 4.
1n or 80n signals are loaded across all bits of the shift register, after which each MH signal is introduced into the shift register 2. Therefore, when [11011] of the white run length 64 mentioned above is loaded, the parallel output of this shift register 2 becomes [0000011011], which becomes the address input of the memory 3. Since this is not directly related to the gist of this topic, further explanation will be omitted. The memory 3 is configured such that the address input from the shift register 2 has the lower digits (run length 63 or less) M as shown in the attached table.
If it corresponds to the H code, the binary code of the run length number corresponding to the MH code is derived to the six parallel output terminals 01 to 06, and 07=07 is output to the other output terminals 07 and 08, respectively. 60, derive the output 08-61'', and if the address input above corresponds to the MH code of the upper digits (run length 64 or more), calculate the run length number corresponding to the MH code. a×
The binary code corresponding to a when 64 is derived to the output terminals 01 to 06, and the output terminals 07 and 08 are
It is configured in advance to derive outputs of 07-61'' and 08="0'', respectively. Therefore, when the address signal [the parallel output of the shift register 2] corresponding to the white run length 64 is applied to the memory 3, the outputs of 01 to 06 of this memory 3 are a
Since it is -1, it becomes [000001], and 07-
81Z08-801. This 07-゛1” output (earth digit judgment output) is the first 1
The bit extraction circuit 4 is operated to generate the clock pulse φ2.
is derived by 1 bit A, and by this A1, the first
The binary down counter 5 is loaded with the binary output [000000] from the memory 3. Well, at this time,
Since 08="O", the second 1-bit extraction circuit 6 is not operated, and therefore the binary output from the memory 3 is not loaded into the second binary down counter 7. At the time when the MH signal [1110] corresponding to the white run length 6 is loaded into the shift register 2 (at this time, the parallel output of the shift register 2 becomes [.00000q, 1110] due to the above-mentioned reason). Then, in response to this address signal from shift register 2, the output of memory 3 from 0 to 06 becomes [000110],
And, 07=601,08-6r".This 08-
The output of 61'' (lower digit judgment output) operates the second 1-bit extraction circuit 6, derives the clock pulse φ2 by 1 bit A2 in the same manner as described above, and uses this A2 to output the second binary down counter. 7 is loaded with the binary number output [000110]-6 from the memory 3. Note that the first and second counters 5 and 7 are in this state before each binary number output from the memory 3 is loaded. Outputs Cl and C each represent whether each counter is loaded or not.
2 are both set to 6...I, so that the output of the AND gate 9 is also set to I2, and the flipflop 10 is preset by the output of this AND gate. Then, each of the binary codes [
000001] and [000110], the respective outputs Cl and C2 of this counter are both 601. Next, when the third 1-bit extraction circuit 8 derives the next 1-bit portion A3 of the clock pulse φ2, which is delayed by 1 bit from the output A2 of the second 1-bit extraction circuit 6, this A3 is used. Then the flip-flop 10 is set and its output becomes "high 1", so
The clock pulse φ2 is applied to the second counter 7 through the AND gate 11, and this counter thereby counts down sequentially. At the same time, the clock pulse φ2 derived through the AND gate 11 is sequentially introduced into the output shift register 12. When six clock pulses φ2 are applied to the second counter 7 in this way, this counter has the contents of all its bits capiO'', and the output C2 of this counter becomes 6 high 1, but at this time The output C1 of the first counter 5 is 6
Since it is low 7, flip-flop 10 is not reset. From this state, the second counter 7 outputs the clock pulse φ2.
When one more pulse is applied, the content of the second counter 7 becomes [111111] and at the same time a boro-1 output B is generated, and this output B causes the first counter 5 to be downgraded. 1 counter 5 is
〔000000〕の
状態となり、且つ、その出力C,が6ハイ゛となる。こ
の状態から第2カウンタ7に〔111111〕−63個
のクロツクパルスφ2が印加されると、この第2カウン
タ7は再びThe state becomes [000000], and the output C becomes 6 high. From this state, when [111111]-63 clock pulses φ2 are applied to the second counter 7, the second counter 7 again
〔000000〕となり、その出力C2が1
・・イ”となる。従つて、この時には、アンドゲート9
の出力は・イ7となり、これによつてフリツプフロツプ
10をりセツトし、それによつてアンドゲート11を閉
じるので、第2カウンタ7及び出力用シフトレジスタ1
2へのクロックパルスφ2の印加が阻止される。従つて
この状態では上記シフトレジスタ12に6+1+63=
70個のクロツクパルスφ2が導入されたことになり、
白ランレングス70のデコードが終了した事になる。ま
た、白ランレングス63以下のMH信号が人力端子1に
導入された時は、メモリ3の01〜06の出力は第1カ
ウンタ5にはロードされず第2カウンタ7のみにロード
され、それによつて第2カウンタ7が″″O゛の状態に
なつた時点で直ちにクロツクパルスφ2のこのカウンタ
7及び出力用シフトレジスタ12への印加が阻止される
ことになるが、この場合の動作は以上の説明から明らか
である。
な}、これまでの説明は白のMH符号をデコードする場
合について述べたが、黒のMH符号のデコードについて
も同様である。
その際フアクシミリ画信号のように白、黒両MH符号を
利用するような場合には、白符号に対してはクロツクパ
ルスφ2が出力用シフトレジスタ12に導入された時に
、そのクロツクパルスの数だけ10゛の信号がこのシフ
トレジスタにロードされ、黒符号に対しては同様にその
シフトレジスタに11゛の信号がロードされるように構
成すればよく、また、その逆であつてもよい。また、本
実施例のように第1第2カウンタ5,7にバーナリーダ
カウンタを使用する代りに、メモリ3を前述の2進数コ
ードを反転したものを導出するように構成することによ
つて、バイナリーアツプカウンタを使用することも可能
である。
また、本発明はMH符号たけでなく、これと同様に符号
化された2値コード信号をデコードする場合にも適用で
きるのは申すまでもない。以上の如く、本発明の復号化
回路は文字情報等のランレングスMをM−a(N+1)
+nとした時のa(N+1)に対応するコードとnに対
応するコードとのシリアルな組合せによつて符号化され
たMH信号の如き2値コード信号をデコードする場合l
こ、そのMH信号のパラレル変換出力をアドレスとして
上記a及びnにそれぞれ対応する2進数コードを順次導
出すると共に、その2進数コード出力が上記A,nの何
れに対応するものであるかを表わす出力を導出するよう
に構成したメモリを使用してデコードを行なうようにし
ているので、ランレングスnのMH符号とランレングス
a(N+1)のMH符号に対してそれぞれ別個にデコー
ド用メモリを設ける必要がなく、従つて斯種復号化回路
を安価に実現できることになり、ファタンミリ装置等の
信号圧縮回路に於ける復号化回路として好適である。[000000], and its output C2 is 1
...I". Therefore, at this time, AND gate 9
The output of is 7, which resets the flip-flop 10 and closes the AND gate 11, so that the second counter 7 and the output shift register 1
The application of clock pulse φ2 to φ2 is blocked. Therefore, in this state, the shift register 12 has 6+1+63=
This means that 70 clock pulses φ2 have been introduced,
This means that the decoding of the white run length 70 has been completed. Furthermore, when an MH signal with a white run length of 63 or less is introduced to the human input terminal 1, the outputs of 01 to 06 of the memory 3 are not loaded to the first counter 5 but only to the second counter 7, and thereby As soon as the second counter 7 reaches the "O" state, the application of the clock pulse φ2 to the counter 7 and the output shift register 12 is immediately blocked, but the operation in this case is explained above. It is clear from this. Although the explanation so far has been made regarding the case of decoding the white MH code, the same applies to the decoding of the black MH code. At this time, when both white and black MH codes are used like a facsimile image signal, when the clock pulse φ2 is introduced into the output shift register 12 for the white code, the clock pulse φ2 is changed to 10° by the number of clock pulses. The signal of 11' may be loaded into this shift register, and the signal of 11' may be similarly loaded into the shift register for the black code, or vice versa. Furthermore, instead of using burner reader counters for the first and second counters 5 and 7 as in this embodiment, by configuring the memory 3 to derive the inverted binary code, It is also possible to use a binary up counter. It goes without saying that the present invention is applicable not only to MH codes, but also to decoding binary code signals encoded in a similar manner. As described above, the decoding circuit of the present invention converts the run length M of character information etc. into M-a(N+1)
When decoding a binary code signal such as an MH signal encoded by a serial combination of a code corresponding to a(N+1) and a code corresponding to n when +n
Using the parallel conversion output of the MH signal as an address, sequentially derive binary codes corresponding to the above a and n, and indicate which of the above A and n the binary code output corresponds to. Since decoding is performed using a memory configured to derive the output, it is necessary to provide separate decoding memories for the MH code with run length n and the MH code with run length a(N+1). Therefore, this type of decoding circuit can be realized at low cost, and is suitable as a decoding circuit in a signal compression circuit such as a fatanmiri device.
図面は本発明復号化回路の一実施例を示す回路プロツク
図である。
2:パラレル変換用シフトレジスタ、3:デコード用メ
モリ、4,6,8:1ビツト切出し回路、5,7:第1
第2カウンタ、10:フリツプフロツプ、12:出力用
シフトレジスタ。The drawing is a circuit block diagram showing one embodiment of the decoding circuit of the present invention. 2: Shift register for parallel conversion, 3: Memory for decoding, 4, 6, 8: 1 bit extraction circuit, 5, 7: 1st
2nd counter, 10: flip-flop, 12: output shift register.
Claims (1)
n(ただし、aは零または正の整数、nは0≦n≦Nな
る整数)とした時に、a=0の場合はnに対応するコー
ドのみが割り当てられ、a≧1の場合はa(N+1)に
対応するコードとnに対応するコードとのシリアルな組
合せが割り当てられるようにして符号化されたモデイフ
アイドホフマン信号の如き2値コード信号をデコードす
るための回路であつて、上記2値コード信号のシリアル
・パラレル変換用のシフトレジスタと、このシフトレジ
スタのパラレル出力をアドレスとして上記a及びnにそ
れぞれ相当する2進数コードを順次導出すると共にその
2進数コード出力が上記a、nの何れに対応するもので
あるかを表わす判定出力を導出するよう構成されたデコ
ード用メモリと、このメモリからのa及びnに対応する
上記各2進数コードが上記メモリからの判定信号に応じ
てそれぞれロードされる互いに縦続して設けた第1第2
カウンタと、上記メモリからの判定出力を得て第1第2
カウンタのカウント動作を開始させ、この両カウンタが
所定の状態になつた時にそのカウント動作を停止させる
回路と、第1第2カウンタでカウントされたクロックパ
ルスをデコード出力として取り出す回路接続を備えてな
る復号化回路。1 Run length M of character information, etc. M=a(N+1)+
n (where a is zero or a positive integer, n is an integer such that 0≦n≦N), when a=0, only the code corresponding to n is assigned, and when a≧1, a( A circuit for decoding a binary code signal such as a modified Huffman signal encoded in such a manner that a serial combination of a code corresponding to N+1) and a code corresponding to n is assigned, the circuit comprising: A shift register for serial-to-parallel conversion of the value code signal and the parallel output of this shift register are used as addresses to sequentially derive binary codes corresponding to the above a and n, and the binary code outputs are the same as the above a and n. A decoding memory configured to derive a judgment output representing which one corresponds, and each of the above binary codes corresponding to a and n from this memory in accordance with a judgment signal from the memory. The first and second
a counter, and a first and second
The circuit includes a circuit that starts the counting operation of the counter and stops the counting operation when both counters reach a predetermined state, and a circuit connection that takes out the clock pulses counted by the first and second counters as a decoded output. decoding circuit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3070078A JPS5927504B2 (en) | 1978-03-15 | 1978-03-15 | decoding circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3070078A JPS5927504B2 (en) | 1978-03-15 | 1978-03-15 | decoding circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS54122022A JPS54122022A (en) | 1979-09-21 |
| JPS5927504B2 true JPS5927504B2 (en) | 1984-07-06 |
Family
ID=12310919
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3070078A Expired JPS5927504B2 (en) | 1978-03-15 | 1978-03-15 | decoding circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5927504B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS58202651A (en) * | 1982-05-21 | 1983-11-25 | Canon Inc | Decoding device of modified huffman code |
-
1978
- 1978-03-15 JP JP3070078A patent/JPS5927504B2/en not_active Expired
Also Published As
| Publication number | Publication date |
|---|---|
| JPS54122022A (en) | 1979-09-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4316222A (en) | Method and apparatus for compression and decompression of digital image data | |
| GB1396900A (en) | Data handling system | |
| TW200832962A (en) | Single wire communication systems and methods | |
| KR870008446A (en) | Binary data compression and extension processing unit | |
| JPS60140981A (en) | Method and device for decoding digital coded word of coded word system | |
| JPS60140982A (en) | Method and device for detecting digital code word | |
| US3984833A (en) | Apparatus for encoding extended run-length codes | |
| JPS5927504B2 (en) | decoding circuit | |
| JPS5938770B2 (en) | PCM decoder | |
| JPS6228113Y2 (en) | ||
| JP2812064B2 (en) | Image processing device | |
| JPS5829917B2 (en) | Weyl code encoding circuit | |
| JPH054876B2 (en) | ||
| JPS5920223B2 (en) | Run-length information encoding and transfer method | |
| JPS6377270A (en) | Image transmitting device | |
| JPH0763151B2 (en) | Variable length code decoding circuit | |
| SU1536511A1 (en) | Device for decoding codes with minimum redundancy | |
| JPS6228901B2 (en) | ||
| JPH0270128A (en) | Transmitter for variable length encoding signal | |
| SU518026A1 (en) | Intermediate data character store | |
| JPH0145793B2 (en) | ||
| JPS60194672A (en) | Run-length encoding device | |
| JPS6193770A (en) | Band compression coding device | |
| JPS5829916B2 (en) | Weyl code decoding circuit | |
| JPH0360225B2 (en) |