Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4188965B2 - Gray binary conversion apparatus and gray binary conversion method - Google Patents
[go: Go Back, main page]

JP4188965B2 - Gray binary conversion apparatus and gray binary conversion method - Google Patents

Gray binary conversion apparatus and gray binary conversion method Download PDF

Info

Publication number
JP4188965B2
JP4188965B2 JP2005341847A JP2005341847A JP4188965B2 JP 4188965 B2 JP4188965 B2 JP 4188965B2 JP 2005341847 A JP2005341847 A JP 2005341847A JP 2005341847 A JP2005341847 A JP 2005341847A JP 4188965 B2 JP4188965 B2 JP 4188965B2
Authority
JP
Japan
Prior art keywords
code
gray
error
input
binary
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2005341847A
Other languages
Japanese (ja)
Other versions
JP2006109508A (en
Inventor
三六 塚本
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.)
Fujitsu Semiconductor Ltd
Original Assignee
Fujitsu Semiconductor 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 Fujitsu Semiconductor Ltd filed Critical Fujitsu Semiconductor Ltd
Priority to JP2005341847A priority Critical patent/JP4188965B2/en
Publication of JP2006109508A publication Critical patent/JP2006109508A/en
Application granted granted Critical
Publication of JP4188965B2 publication Critical patent/JP4188965B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Analogue/Digital Conversion (AREA)
  • Error Detection And Correction (AREA)

Description

この発明は、グレー・バイナリー変換装置及びグレー・バイナリー変換方法に関するものである。
近年、A/D変換器は種々の電子機器に使用され、そのA/D変換速度の向上が益々要請されている。高速動作に有利な並列型及び直並列型A/D変換器は、主にアナログ入力信号とアナログ基準電圧とを比較する複数のコンパレータと、そのコンパレータの出力信号を複数ビットのデジタル信号に変換するエンコーダとから構成される。そして、A/D変換速度の高速化及びA/D変換精度の向上を図るために、エンコーダの動作速度の高速化及び動作精度の向上を図る必要がある。
The present invention relates to a gray binary conversion apparatus and a gray binary conversion method .
In recent years, A / D converters are used in various electronic devices, and an increase in the A / D conversion speed has been increasingly demanded. Parallel type and serial parallel type A / D converters advantageous for high-speed operation mainly convert a plurality of comparators for comparing an analog input signal and an analog reference voltage, and convert the output signal of the comparator into a multi-bit digital signal. It consists of an encoder. In order to increase the A / D conversion speed and improve the A / D conversion accuracy, it is necessary to increase the operation speed and the operation accuracy of the encoder.

A/D変換器の一種類である並列型あるいは直並列型A/D変換器は、そのA/D変換速度において、他の形式のA/D変換器に対し優れている。一般的な並列型A/D変換器は、コンパレータ部と、そのコンパレータの出力信号の論理境界を検出する論理境界検出部と、エンコーダ部とから構成される。エンコーダ部には、Wired ORによるROM形式の回路が広く採用されている。   A parallel or series-parallel A / D converter, which is one type of A / D converter, is superior to other types of A / D converters in its A / D conversion speed. A general parallel A / D converter includes a comparator unit, a logical boundary detection unit that detects a logical boundary of an output signal of the comparator, and an encoder unit. A ROM-type circuit based on Wired OR is widely used in the encoder section.

図39は、並列型A/D変換器の第一の従来例として、5ビットのデジタル出力信号を出力する並列型A/D変換器を示す。
高電位側基準電圧VRHと、低電位側基準電圧VRLとの間には、32本の抵抗Rが直列に接続されている。前記抵抗Rは、両端に位置する抵抗の抵抗値がその他の抵抗の抵抗値の1/2に設定されている。
FIG. 39 shows a parallel A / D converter that outputs a 5-bit digital output signal as a first conventional example of a parallel A / D converter.
Thirty-two resistors R are connected in series between the high potential side reference voltage VRH and the low potential side reference voltage VRL. In the resistor R, the resistance values of the resistors located at both ends are set to ½ of the resistance values of the other resistors.

前記各抵抗R間は、31個のコンパレータCM1〜CM31の一方の入力端子にそれぞれ接続されている。従って、各コンパレータCM1〜CM31には、前記基準電圧VRH,VRLを前記抵抗Rで抵抗分割した基準電圧VR1〜VR31 がそれぞれ入力される。   The resistors R are connected to one input terminals of 31 comparators CM1 to CM31, respectively. Therefore, the reference voltages VR1 to VR31 obtained by dividing the reference voltages VRH and VRL by the resistor R are input to the comparators CM1 to CM31, respectively.

前記コンパレータCM1〜CM31の他方の入力端子にはアナログ入力信号Ainがそれぞれ入力される。各コンパレータCM1〜CM31は、制御回路(図示しない)から出力される制御信号に基づいて、それぞれ前記基準電圧VR1〜VR31 と、アナログ入力信号Ainとを比較する。   An analog input signal Ain is input to the other input terminals of the comparators CM1 to CM31. Each of the comparators CM1 to CM31 compares the reference voltages VR1 to VR31 with the analog input signal Ain based on a control signal output from a control circuit (not shown).

そして、各コンパレータCM1〜CM31は、アナログ入力信号Ainの電位が基準電圧VR1〜VR31 より低いとき、Hレベルの出力信号S1〜S31と、Lレベルの出力信号・バーS1〜バーS31を出力する。   When the potential of the analog input signal Ain is lower than the reference voltages VR1 to VR31, the comparators CM1 to CM31 output H level output signals S1 to S31 and L level output signals and bars S1 to S31.

また、アナログ入力信号Ainの電位が基準電圧VR1〜VR31 より高いとき、Lレベルの出力信号S1〜S31と、Hレベルの出力信号・バーS1〜バーS31を出力する。
従って、例えばアナログ入力信号Ainの電位が基準電圧VR4より高く、基準電圧VR5より低いと、コンパレータCM1〜CM4は出力信号S1〜S4がLレベル、出力信号・バーS1〜バーS4がHレベルとなるサーモメータコードを出力する。また、コンパレータCM5〜CM31は出力信号S5〜S31がHレベル、出力信号・バーS5〜バーS31がLレベルとなるサーモメータコードを出力する。このようなコンパレータCM1〜CM31及び抵抗Rにより、コンパレータ部1が構成される。
When the potential of the analog input signal Ain is higher than the reference voltages VR1 to VR31, the L level output signals S1 to S31 and the H level output signals S1 to S31 are output.
Therefore, for example, when the potential of the analog input signal Ain is higher than the reference voltage VR4 and lower than the reference voltage VR5, the comparators CM1 to CM4 have the output signals S1 to S4 at the L level and the output signals / bars S1 to S4 at the H level. Output thermometer code. The comparators CM5 to CM31 output thermometer codes in which the output signals S5 to S31 are H level and the output signals and bars S5 to S31 are L level. The comparator unit 1 is constituted by the comparators CM1 to CM31 and the resistor R.

前記コンパレータCM1〜CM31の出力信号S1,バーS1〜S31,バーS31は、アドレスデコーダとして動作する32個のNOR回路DE0〜DE31に入力される。
すなわち、前記コンパレータCM1〜CM31の出力信号S1〜S31は、NOR回路DE1〜DE31の一方の入力端子に入力され、コンパレータCM1〜CM31の出力信号・バーS1〜バーS31は、NOR回路DE0〜DE30の他方の入力端子に入力される。また、NOR回路DE0,DE31の一方の入力端子は、グランドGNDに接続される。
The output signals S1, bars S1 to S31, and bar S31 of the comparators CM1 to CM31 are input to 32 NOR circuits DE0 to DE31 that operate as address decoders.
That is, the output signals S1 to S31 of the comparators CM1 to CM31 are input to one input terminal of the NOR circuits DE1 to DE31, and the output signals of the comparators CM1 to CM31 and the bars S1 to S31 are output from the NOR circuits DE0 to DE30. Input to the other input terminal. One input terminal of the NOR circuits DE0 and DE31 is connected to the ground GND.

このような構成により、各NOR回路DE0〜DE31は入力信号がともにLレベルとなると、Hレベルの信号を出力し、Hレベルの信号を出力するNOR回路は、前記コンパレータCM1〜CM31の動作によりいずれか一つとなり、論理境界検出部2が構成される。   With such a configuration, each of the NOR circuits DE0 to DE31 outputs an H level signal when both of the input signals are at the L level, and the NOR circuit that outputs the H level signal depends on the operation of the comparators CM1 to CM31. Thus, the logical boundary detection unit 2 is configured.

前記NOR回路DE0〜DE31の出力信号は、ROMで構成されるエンコード部3aのワード線WL0〜WL31に出力される。前記エンコード部3aには5ビットのデジタル出力信号B0〜B4に対応して、5本のビット線BL0〜BL4が配設される。   The output signals of the NOR circuits DE0 to DE31 are output to the word lines WL0 to WL31 of the encoding unit 3a composed of ROM. The encoding unit 3a is provided with five bit lines BL0 to BL4 corresponding to the 5-bit digital output signals B0 to B4.

そして、各ワード線WL0〜WL31とビット線BL0〜BL4との間の所定位置には、バイナリーコードによる出力信号B0〜B4を出力するためのROMセル4がそれぞれ接続されている。前記ROMセル4は、図40に示すようにNチャネルMOSトランジスタで構成され、そのトランジスタのゲートは前記ワード線WLに接続され、ドレインは前記ビット線BLに接続され、ソースはグランドGNDに接続される。   ROM cells 4 for outputting output signals B0 to B4 based on binary codes are connected to predetermined positions between the word lines WL0 to WL31 and the bit lines BL0 to BL4, respectively. As shown in FIG. 40, the ROM cell 4 is composed of an N-channel MOS transistor, the gate of which is connected to the word line WL, the drain is connected to the bit line BL, and the source is connected to the ground GND. The

前記ビット線BL0〜BL4はそれぞれスイッチ回路SW0〜SW4を介して電源VDDに接続され、同スイッチ回路SW0〜SW4が閉路されると、各ビット線BL0〜BL4がプリチャージされる。なお、スイッチ回路SW0〜SW4はPチャネルMOSトランジスタで構成される。   The bit lines BL0 to BL4 are connected to the power source VDD via switch circuits SW0 to SW4, respectively. When the switch circuits SW0 to SW4 are closed, the bit lines BL0 to BL4 are precharged. Switch circuits SW0 to SW4 are formed of P channel MOS transistors.

そして、前記スイッチ回路SW0〜SW4が開路された後に、いずれかのワード線がHレベルとなると、当該ワード線に接続されたROMセル4がオンされ、当該ROMセル4に接続されたビット線がLレベルとなる。   Then, when any of the word lines becomes H level after the switch circuits SW0 to SW4 are opened, the ROM cell 4 connected to the word line is turned on, and the bit line connected to the ROM cell 4 is turned on. L level.

従って、例えばワード線WL0がHレベルとなると、デジタル出力信号B0〜B4は「00000」となり、ワード線WL2がHレベルとなると、デジタル出力信号B0〜B4は「01000」となる。   Therefore, for example, when the word line WL0 becomes H level, the digital output signals B0 to B4 become “00000”, and when the word line WL2 becomes H level, the digital output signals B0 to B4 become “01000”.

上記のようなA/D変換器では、エンコード部3aにはプリチャージ動作を必要とするROM形式の回路が使用されているが、コンパレータ部1の動作速度はエンコード部3aの動作速度より遅い。従って、変換速度を決定するのは、エンコード部3aではなくコンパレータ部1であるため、このようなエンコード部3aが採用されている。   In the A / D converter as described above, a ROM-type circuit that requires a precharge operation is used for the encoding unit 3a, but the operation speed of the comparator unit 1 is slower than the operation speed of the encoding unit 3a. Therefore, since it is not the encoding unit 3a but the comparator unit 1 that determines the conversion speed, such an encoding unit 3a is employed.

このようなA/D変換器では、コンパレータ部1の出力信号は正常時には論理境界が1個所しかないサーモメータコードが出力されるか、あるいはすべて同一論理となる。
ところが、サーモメータコードにバブルエラーが発生することがある。確率的に最も多く発生するバブルエラーは、コンパレータCM1〜CM31の出力信号バーS1〜バーS31において、「・・11101000・・」のように1つの出力論理が反転するものである。このようなバブルエラーがNOR回路DE0〜DE31に入力されると、二本のワード線が同時にHレベルとなり、正常な出力信号B0〜B4が出力されない。
In such an A / D converter, when the output signal of the comparator unit 1 is normal, a thermometer code having only one logical boundary is output or all have the same logic.
However, a bubble error may occur in the thermometer code. The most probabilistic bubble error is one in which one output logic is inverted as "..11101000 .." in the output signals S1 to S31 of the comparators CM1 to CM31. When such a bubble error is input to the NOR circuits DE0 to DE31, the two word lines simultaneously become H level, and normal output signals B0 to B4 are not output.

特に、バイナリーコードの出力信号B0〜B4を出力するように構成されたエンコード部3aでは、上記バブルエラーにより出力信号B0〜B4に大きな誤差が生じることがある。すなわち、上記バブルエラーにより図41に示すワード線WL14,WL16とが同時にHレベルとなると、出力信号B0〜B4はオール0となってしまい、ワード線WL14だけがHレベルとなる場合あるいはワード線WL15だけがHレベルとなる場合の出力信号B0〜B4に比して大きな誤差が発生する。   In particular, in the encoding unit 3a configured to output the binary code output signals B0 to B4, a large error may occur in the output signals B0 to B4 due to the bubble error. That is, when the word lines WL14 and WL16 shown in FIG. 41 simultaneously become H level due to the bubble error, the output signals B0 to B4 are all 0, and only the word line WL14 becomes H level or the word line WL15. A large error occurs as compared with the output signals B0 to B4 when only the signal becomes H level.

そこで、このような不具合を解決するために、論理境界検出部2を図42に示す構成としたA/D変換器が提案されている。このA/D変換器は論理境界検出部2を構成するNOR回路DE0〜DE31を3入力構成とし、n番目のNOR回路をNOR回路DEnとすれば、NOR回路DEnにはコンパレータCMnの出力信号Snと、その上位のコンパレータCM(n+1),CM(n+2)の出力信号・バーS(n+1),バーS(n+2)を入力するように構成したものである。   In order to solve such a problem, an A / D converter in which the logical boundary detection unit 2 is configured as shown in FIG. 42 has been proposed. In this A / D converter, if the NOR circuits DE0 to DE31 constituting the logic boundary detection unit 2 have a three-input configuration and the nth NOR circuit is a NOR circuit DEn, the NOR circuit DEn has an output signal Sn of the comparator CMn. The output signals of the higher-order comparators CM (n + 1) and CM (n + 2) and the bars S (n + 1) and S (n + 2) are input.

このような構成により、上記のようにサーモメータコードに異なる論理が1つ挟まれたようなバブルエラーが発生した場合には、バブルエラー部分を論理境界と判定することが防止され、いずれか一本のワード線WLだけがHレベルとなって、出力信号B0〜B4として正常値あるいは正常値に近い値が出力される。   With such a configuration, when a bubble error occurs in which one different logic is sandwiched between thermometer codes as described above, it is possible to prevent the bubble error portion from being determined as a logical boundary. Only the word line WL becomes H level, and normal values or values close to normal values are output as the output signals B0 to B4.

ところが、上記のようにNOR回路DE0〜DE31を3入力構成としても、コンパレータCM1〜CM31の出力信号バーS1〜バーS31において、例えば「・・111001000・・」あるいは「・・111011000・・」のように、出力論理が2つ以上離れて反転するバブルエラーが発生した場合には、2本のワード線を隔てた2本のワード線が同時にHレベルとなることがある。   However, even if the NOR circuits DE0 to DE31 have a three-input configuration as described above, in the output signal bars S1 to S31 of the comparators CM1 to CM31, for example, “•• 111001000 ••” or “•• 111011000 ••” In addition, when a bubble error occurs in which the output logic is inverted by two or more, the two word lines separating the two word lines may be simultaneously at the H level.

そして、例えば図41に示すワード線WL14,WL17が同時にHレベルとなると、出力信号B0〜B4がオール0となり、ワード線WL14〜WL17のいずれかがHレベルとなる場合の出力信号B0〜B4に比して大きな誤差が発生する。   For example, when the word lines WL14 and WL17 shown in FIG. 41 are simultaneously at the H level, the output signals B0 to B4 are all 0, and the output signals B0 to B4 when any of the word lines WL14 to WL17 is at the H level. A large error occurs.

このような不具合を解決するために、図43に示すように、バイナリーコードに代えてグレーコード(交番2進信号)を出力可能としたエンコード部3bを備えたA/D変換器が提案されている。   In order to solve such a problem, as shown in FIG. 43, an A / D converter including an encoding unit 3b that can output a gray code (alternate binary signal) instead of a binary code has been proposed. Yes.

前記エンコード部3bは、バイナリーコードの出力信号B0〜B4を出力する前記エンコード部3aとはROMセル4の位置が異なり、いずれか一本のワード線WLがHレベルとなることにより、5ビットのグレーコードの出力信号G0〜G4を出力する。前記サーモメータコードを10進数(Decimal)として認識した場合、そのサーモメータコードに対するバイナリーコード(Binary)の出力信号B0〜B4と、グレーコード(Gray)の出力信号G0〜G4との対照関係を図47に示す。そして、出力信号G0〜G4はグレーコードをバイナリーコードに変換する変換回路を介して次段の回路に出力される。   The encoding unit 3b is different from the encoding unit 3a that outputs binary code output signals B0 to B4 in the position of the ROM cell 4, and any one of the word lines WL is set to the H level, so that the 5-bit Gray code output signals G0 to G4 are output. When the thermometer code is recognized as a decimal number (Decimal), the binary code (Binary) output signals B0 to B4 corresponding to the thermometer code and the gray code (Gray) output signals G0 to G4 are shown in FIG. 47. The output signals G0 to G4 are output to the next stage circuit through a conversion circuit that converts the gray code into a binary code.

上記のようなA/D変換器では、コンパレータ部1からバブルエラーが出力されて、論理境界検出部2により、図44において例えばワード線WL14,WL17が同時にHレベルとなっても、エンコード部3bの出力信号G0〜G4はワード線WL14のみがHレベルとなった場合と同一となる。従って、ワード線WL15あるいはワード線WL16がHレベルとなる場合が最も確からしい値であったとしても、前記バイナリーコードのエンコード部3aのように大きな誤差が生じた出力信号を出力することはない。   In the A / D converter as described above, even if a bubble error is output from the comparator unit 1 and the logical boundary detection unit 2 causes the word lines WL14 and WL17 to simultaneously become H level in FIG. Output signals G0 to G4 are the same as when only the word line WL14 is at the H level. Therefore, even if the most probable value is when the word line WL15 or the word line WL16 is at the H level, an output signal in which a large error occurs like the binary code encoder 3a is not output.

このように3入力のNOR回路で構成される論理境界検出部2と、グレーコードの出力信号G0〜G4を出力するエンコード部3bを備えたA/D変換器では、コンパレータ部1の出力信号に上記のようなバブルエラーが発生したとしても、図50〜図52に示すように、デジタル出力信号に発生する誤差を抑制することが可能となる。   As described above, in the A / D converter including the logic boundary detection unit 2 including the three-input NOR circuit and the encoding unit 3b that outputs the gray code output signals G0 to G4, the output signal of the comparator unit 1 is Even if a bubble error as described above occurs, it is possible to suppress an error occurring in the digital output signal as shown in FIGS.

図50は、サーモメータコードの出力論理が1つ離れて反転するタイプb1のバブルエラー「・11101000・・」が、2入力のNOR回路で構成される論理境界検出部2に入力され、その論理境界検出部2aの出力信号を前記エンコード部3bでグレーコードに変換した場合の動作を示し、横軸は正常なサーモメータコードの10進値であり、縦軸はエンコード部3bから出力されるグレーコードの出力信号を10進数に置換した値である。   In FIG. 50, a bubble error “· 11101000 ··” of type b1 in which the output logic of the thermometer code is inverted by one is input to the logic boundary detection unit 2 composed of a two-input NOR circuit. The operation when the output signal of the boundary detection unit 2a is converted into a gray code by the encoding unit 3b is shown, the horizontal axis is a decimal value of a normal thermometer code, and the vertical axis is the gray value output from the encoding unit 3b. This is a value obtained by replacing the code output signal with a decimal number.

図51は、サーモメータコードの出力論理が2つ離れて反転するタイプb2Hのバブルエラー「・111001000・・」が、3入力のNOR回路で構成される論理境界検出部2に入力され、その論理境界検出部2の出力信号を前記エンコード部3bでグレーコードに変換した場合の動作を示し、横軸は正常なサーモメータコードの10進値であり、縦軸はエンコード部3bから出力されるグレーコードの出力信号を10進数に置換した値である。   In FIG. 51, a b2H type bubble error “· 111001000 ··” in which the output logic of the thermometer code is inverted by two is input to the logic boundary detection unit 2 composed of a three-input NOR circuit. The operation when the output signal of the boundary detection unit 2 is converted into a gray code by the encoding unit 3b is shown, the horizontal axis is a decimal value of a normal thermometer code, and the vertical axis is the gray output from the encoding unit 3b. This is a value obtained by replacing the code output signal with a decimal number.

図52は、サーモメータコードの「1」の出力論理が論理境界から2つ離れて「0」に反転するタイプb2Lのバブルエラー「・111011000・・」が、3入力のNOR回路で構成される論理境界検出部2に入力され、その論理境界検出部2の出力信号を前記エンコード部3bでグレーコードに変換した場合の動作を示し、横軸は正常なサーモメータコードの10進値であり、縦軸はエンコード部3bから出力されるグレーコードの出力信号を10進数に置換した値である。   In FIG. 52, the output error of the thermometer code “1” is separated from the logical boundary by two and inverted to “0”, and the type b2L bubble error “· 111011000 ···” is configured by a three-input NOR circuit. An operation when the output signal of the logical boundary detection unit 2 is input to the logical boundary detection unit 2 and converted into a gray code by the encoding unit 3b is shown, and the horizontal axis is a decimal value of a normal thermometer code, The vertical axis represents the value obtained by replacing the output signal of the gray code output from the encoding unit 3b with a decimal number.

上記のように、グレーコードを出力するエンコード部は、バイナリーコードを出力するエンコード部に比して誤差を抑制することができるので、グレーコードをバイナリーコードに変換する変換回路が必要となるにも関わらず、広く使用されている。しかし、依然として最も確からしいと考えられる値に対して誤差が生じている。   As described above, the encoding unit that outputs the gray code can suppress the error as compared with the encoding unit that outputs the binary code. Therefore, a conversion circuit that converts the gray code into the binary code is necessary. Regardless, it is widely used. However, there is still an error with respect to the value that seems most likely.

これを解決するために、コンパレータ部から出力されるサーモメータコードに多数決回路による論理処理を施すようにしたA/D変換器が提案されているが、多数決回路の搭載がA/D変換器の回路規模を増大させてしまう。そのため、回路規模の増大を抑制するために、多数決回路をアナログ回路で構成することが提案されている(非特許文献1)。しかし、このような多数決回路でも、上記タイプb2H、タイプb2Lに示すような出力論理が2つ離れて反転するバブルエラーに対しては、十分な効果を挙げられていない。   In order to solve this problem, an A / D converter has been proposed in which the thermometer code output from the comparator unit is subjected to logic processing by a majority circuit, but the majority circuit is mounted on the A / D converter. This increases the circuit scale. Therefore, in order to suppress an increase in circuit scale, it has been proposed to configure the majority circuit with an analog circuit (Non-Patent Document 1). However, even such a majority circuit has not been sufficiently effective against a bubble error in which the output logic is inverted by two as shown in the type b2H and type b2L.

また、サーモメータコードの論理境界検出部に変則デコード論理を設定して、バブルエラーが発生しても最も確からしいデジタル出力信号を出力するようにしたもの(非特許文献2)、あるいはサーモメータコードの隣接する出力間にて行っていた論理境界検出を上位ビットと下位ビットとに2分割して行うもの(非特許文献3)、また論理境界検出部において、サーモメータコードの論理比較を1つおきに行うことによりバブルエラーの発生を抑制するもの(非特許文献4)等が提案されている。   Also, an irregular decoding logic is set in the logic boundary detection part of the thermometer code so that the most probable digital output signal is output even if a bubble error occurs (Non-Patent Document 2), or the thermometer code Boundary detection performed between adjacent outputs is divided into upper and lower bits (Non-Patent Document 3), and one logical comparison of thermometer codes is performed in the logical boundary detection unit. An apparatus that suppresses the occurrence of a bubble error by performing it every other time (Non-Patent Document 4) has been proposed.

上記A/D変換器は、いずれもサーモメータコードに発生したバブルエラーを論理境界検出部で排除あるいは訂正するものである。
これに対して、バブルエラーをエンコーダ部で訂正する構成としたものでは、PチャネルMOSトランジスタで構成したエンコーダと、NチャネルMOSトランジスタで構成したエンコーダの出力信号の平均をとるようにしたツインエンコーダ型があるが、エンコーダの回路規模が2倍となる(非特許文献5)。
Each of the A / D converters eliminates or corrects a bubble error generated in the thermometer code by a logical boundary detection unit.
On the other hand, in the configuration in which the bubble error is corrected by the encoder unit, the twin encoder type in which the average of the output signals of the encoder configured by the P channel MOS transistor and the encoder configured by the N channel MOS transistor is taken. However, the circuit scale of the encoder is doubled (Non-Patent Document 5).

また、グレーコードをバイナリーコードに変換するための変換回路の論理段数を削減するために、Quasiグレーコードを出力するエンコーダを採用することにより、エンコーダとしての動作速度を向上させるようにしたもの(非特許文献6)がある。
J.van de Valburg and R.J.van de Plassche,"An 8-bit 650-MHz folding ADC",IEEE Journal of Solid-State Circuits,vol.27,Dec.1992,pp.1662-1666 C.W.Mangelsdorf,"A 400-MHz Input Flash Converter with Error Correction",Journal of Solid-State Circuits,vol.25,Feb.1990,pp.184-191 Y.Gendai et al.,"An 8b 500-MHzADC",Digest of International Solid-State Circuit Conference, TPM 10.5,Feb.1991,pp.172-173 A.Matsuzawa et al.,"An 8b 600-MHz Flash A/D with mutistage deplex gray coding",Symp.VLSI Circ. Dig. Tech.Papers,May.1991,pp.113-114 M.Ito et al.,"A 10bit 20MS/s 3V Supply CMOS AD Converter",1994 Journal of Solid-State Circuits,vol.25,Feb.1990,pp.184-191 Y.Akazawa,"A 400MSPS 8b Flash A/D Conversion LSI",ISSCC Digest of Tecnical Papers,Feb.1987,pp.98-99
In addition, in order to reduce the number of logical stages of the conversion circuit for converting gray code into binary code, an encoder that outputs a quasi gray code is employed to improve the operation speed as an encoder (non- There exists patent document 6).
J.van de Valburg and RJvan de Plassche, "An 8-bit 650-MHz folding ADC", IEEE Journal of Solid-State Circuits, vol. 27, Dec. 1992, pp. 1662-1666 CWMangelsdorf, "A 400-MHz Input Flash Converter with Error Correction", Journal of Solid-State Circuits, vol. 25, Feb. 1990, pp. 184-191 Y. Gendai et al., "An 8b 500-MHz ADC", Digest of International Solid-State Circuit Conference, TPM 10.5, Feb. 1991, pp. 172-173 A. Matsuzawa et al., "An 8b 600-MHz Flash A / D with mutistage deplex gray coding", Symp. VLSI Circ. Dig. Tech. Papers, May. 1991, pp. 113-114 M. Ito et al., "A 10bit 20MS / s 3V Supply CMOS AD Converter", 1994 Journal of Solid-State Circuits, vol. 25, Feb. 1990, pp. 184-191 Y. Akazawa, "A 400MSPS 8b Flash A / D Conversion LSI", ISSCC Digest of Tecnical Papers, Feb. 1987, pp. 98-99

上記のように、並列型A/D変換器のエンコード部は、いずれもWired OR回路によるROM形式で構成される。この構成では、1サイクルの動作毎にプリチャージ動作が必要となり、そのプリチャージ動作は1サイクルの動作時間のほぼ半分の時間を要する。従って、エンコード部の動作速度の向上を図る上で障害となっている。   As described above, all the encoding units of the parallel A / D converter are configured in the ROM format by the wired OR circuit. In this configuration, a precharge operation is required for each cycle operation, and the precharge operation takes approximately half of the cycle operation time. Therefore, this is an obstacle to improving the operation speed of the encoding unit.

また、エンコード部にはサーモメータコードに発生するバブルエラーによる誤差を訂正する機能がないため、バブルエラーの訂正は主に論理境界検出部で訂正されている。しかし、このような構成では誤差の程度の少ないグレーコードを出力するエンコード部を使用しても、バブルエラーによる出力信号の誤差を完全に除去することはできないという問題点がある。   Further, since the encoding unit does not have a function of correcting an error due to a bubble error occurring in the thermometer code, the correction of the bubble error is mainly corrected by the logical boundary detection unit. However, in such a configuration, there is a problem that even if an encoding unit that outputs a gray code with a low error level is used, an error in an output signal due to a bubble error cannot be completely removed.

また、上記ツインエンコーダ型では、バブルエラーをエンコード部で訂正する構成であるが、エンコード部の回路規模が2倍となるという問題点がある。
この発明の目的は、入力されるサーモメータコードに含まれるバブルエラーの訂正機能を備えたエンコーダの動作速度を向上させ得るグレー・バイナリー変換方法及びグレー・バイナリー変換装置を提供することにある。
The twin encoder type has a configuration in which a bubble error is corrected by the encoding unit, but has a problem that the circuit scale of the encoding unit is doubled.
The object of the invention is to provide a gray-binary conversion method and gray binary conversion equipment that can improve the operation speed of the encoder with a correction function of the bubble errors in the thermometer code input.

請求項1では、複数ビットのグレーコードから複数ビットのバイナリーコードを生成するグレー・バイナリー変換回路において最下位ビットのバイナリーコードを生成するグレー・バイナリー変換方法であって、最下位ビットのグレーコードを分解した複数ビットの分解グレーコードを第1の論理処理して第1のバイナリーコードを生成し前記最下位ビットと異なるビットのバイナリーコードを生成するために入力される複数の信号を第2の論理処理して第2のバイナリーコードを生成し、前記第1及び第2のバイナリーコードを第3の論理処理して前記最下位ビットのバイナリーコードを生成する。
請求項2では、前記第2の論理処理において、前記最下位ビットと異なるビットのグレーコードを含む複数の信号を処理する。
請求項3では、前記第2の論理処理において、サーモメータコードの論理境界を検出することにより少なくとも3ビットのグレーコードを生成するエンコード部において前記グレーコードの生成に際して生成され下位から3ビット目のバイナリーコードに相当する信号を含む複数の信号を処理する。
The gray-binary conversion method for generating a binary code of the least significant bit in a gray-binary conversion circuit for generating a binary code of a plurality of bits from a plurality of gray codes, wherein the gray code of the least significant bit is The decomposed multi-bit decomposed gray code is first logically processed to generate a first binary code, and a plurality of signals inputted to generate a binary code of a bit different from the least significant bit are converted into a second A logical process is performed to generate a second binary code, and the first and second binary codes are subjected to a third logical process to generate the least significant bit binary code.
According to a second aspect of the present invention, in the second logical process, a plurality of signals including a gray code of a bit different from the least significant bit are processed.
According to a third aspect of the present invention, in the second logical processing, an encoder that generates a gray code of at least 3 bits by detecting a logical boundary of a thermometer code, is generated when the gray code is generated, and the third bit from the least significant bit is generated. A plurality of signals including a signal corresponding to a binary code are processed.

請求項では、複数ビットの分解グレーコードを論理処理して、同一ビットの複数のバイナリーコードを生成する論理回路と、前記複数のバイナリーコードを論理処理して1ビットのバイナリーコードを生成する論理回路とを備えた。
請求項5では、前記第2の論理回路に入力される信号は、前記最下位ビットと異なるビットのグレーコードを含む。
請求項6では、前記第2の論理回路に入力される信号は、サーモメータコードの論理境界を検出することにより少なくとも3ビットのグレーコードを生成するエンコード部において前記グレーコードの生成に際して生成され下位から3ビット目のバイナリーコードに相当する信号を含む。
According to claim 4, the decomposition Gray code of a plurality of bits by logic processing, generates a logic circuit for generating a plurality of binary code of the same bit, the binary code of 1-bit logically processing the plurality of binary code logic Circuit.
The signal input to the second logic circuit includes a gray code of a bit different from the least significant bit.
The signal input to the second logic circuit according to claim 6 is generated when the gray code is generated in an encoding unit that generates a gray code of at least 3 bits by detecting a logical boundary of a thermometer code. To a signal corresponding to the binary code of the third bit.

この発明は入力されるサーモメータコードに含まれるバブルエラーの訂正機能を備えたエンコーダの動作速度を向上させ得るグレー・バイナリー変換方法及びグレー・バイナリー変換装置を提供することができる。 This invention can provide a gray-binary conversion method and gray binary conversion equipment that can improve the operation speed of the encoder with a correction function of the bubble errors in the thermometer code input.

(第一の実施の形態)
まず、本発明のエンコーダにおけるエラー訂正の原理について説明する。
図47は、10進値(Decimal)が5ビットのバイナリーコードB0〜B4及びグレーコードG0〜G4に正常に変換された場合のコード値を示す。
(First embodiment)
First, the principle of error correction in the encoder of the present invention will be described.
FIG. 47 shows code values when decimal values (Decimal) are normally converted into 5-bit binary codes B0 to B4 and gray codes G0 to G4.

グレーコードG0〜G4は、例えば図45に示すグレーコードによるビット独立デコード方式エンコーダで、10進値としてのサーモメータコードをグレーコード形式で論理境界検出を行うことにより生成される。なお、図45に示すROMセルCEの具体的構成は、図46に示すものであり、サーモメータコードは下位から順に「1」となる。   The gray codes G0 to G4 are generated, for example, by performing a logical boundary detection on a thermometer code as a decimal value in a gray code format with a bit-independent decoding encoder based on the gray code shown in FIG. The specific configuration of the ROM cell CE shown in FIG. 45 is shown in FIG. 46, and the thermometer code is “1” in order from the lower order.

グレーコードG0〜G4は、G0が最下位ビット、G4が最上位ビットであり、隣り合う10進値に対応するコードでは、いずれか1ビットの信号のみが反転する交番2進符号となる。B0〜B4は、G0〜G4に対応するバイナリーコードであり、B0が最下位ビット、B4が最上位ビットである。   In the gray codes G0 to G4, G0 is the least significant bit and G4 is the most significant bit, and in a code corresponding to an adjacent decimal value, only one bit signal is an inverted binary code. B0 to B4 are binary codes corresponding to G0 to G4, where B0 is the least significant bit and B4 is the most significant bit.

G0〜G4は、図45に示す通常のエンコーダでは、それぞれ1本ずつのビット線BL0〜BL4によるWired OR回路から出力されるため、例えばG0とG1との組み合わせでは、「00」「10」「01」「11」のすべての組み合わせが存在するため、G0とG1との少なくともいずれかが誤データであったとしても、組み合わせからエラーの有無を検出することはできない。   In the normal encoder shown in FIG. 45, G0 to G4 are output from a wired OR circuit using one bit line BL0 to BL4, respectively. For example, in the combination of G0 and G1, “00” “10” “ Since all combinations of “01” and “11” exist, the presence or absence of an error cannot be detected from the combination even if at least one of G0 and G1 is erroneous data.

そこで、G0はビット線BL0に接続された9個のROMセルCEの出力信号のOR論理をとって生成されているので、G0を9個のROMセルCEの出力信号Z1〜Z8に分解する。   Therefore, since G0 is generated by ORing the output signals of the nine ROM cells CE connected to the bit line BL0, G0 is decomposed into the output signals Z1 to Z8 of the nine ROM cells CE.

同様に、G1,G2についても分解すると、G1=Y1+Y2+Y3+Y4、G2=X1+X2となる。なお、W1=G3、V1=G4である。
このとき、X1とZ2との関係に着目すると、Z2=1のとき、X1=1となる。従って、Z2=1のとき、X1=0であれば、エラーが検出され、バブルエラーを含むサーモメータコードで、エンコーダが動作していることになる。
Similarly, when G1 and G2 are decomposed, G1 = Y1 + Y2 + Y3 + Y4 and G2 = X1 + X2. Note that W1 = G3 and V1 = G4.
At this time, focusing on the relationship between X1 and Z2, when Z2 = 1, X1 = 1. Therefore, when Z2 = 1, if X1 = 0, an error is detected, and the encoder is operating with a thermometer code including a bubble error.

同様に、Z3=1のとき、X1=1となり、Z4=1のとき、W1=1となり、Z5=1のとき、W1=V1=1となり、Z6=1のとき、X2=W1=V1=1となり、Z7=1のとき、X2=V1=1となり、Z8=1のとき、V1=1となり、これらの条件を満足しないとき、サーモメータコードにバブルエラーが存在することが検出可能である。   Similarly, when Z3 = 1, X1 = 1, when Z4 = 1, W1 = 1, when Z5 = 1, W1 = V1 = 1, and when Z6 = 1, X2 = W1 = V1 = 1. When Z7 = 1, X2 = V1 = 1, and when Z8 = 1, V1 = 1. When these conditions are not satisfied, it can be detected that a bubble error exists in the thermometer code. .

一方、例えば10進値「3」「4」に対応するコードでは、Z1〜Z8が同時に「0」となり、このような部分では、上記のような特定の関係を見出すことはできない。すなわち、Z1〜Z8が「1」という対象論理側であるとき、上記特定の関係を見出すことができるが、Z1〜Z8が「0」という非対象論理側であるとき、上記特定の関係を見出すことができない。   On the other hand, for example, in codes corresponding to the decimal values “3” and “4”, Z1 to Z8 are simultaneously “0”, and such a specific relationship as described above cannot be found. That is, the above specific relationship can be found when Z1 to Z8 are the target logical side “1”, but the above specific relationship is found when Z1 to Z8 are the non-target logical side “0”. I can't.

そこで、上記のような原理を非対象論理側を含めて、10進値の全域にわたって展開するために、前記Z1〜Z8を表コードとしたとき、Z1〜Z8の裏コードP1〜P7を設定する。   Therefore, in order to develop the above principle over the whole range of decimal values including the non-target logic side, when Z1 to Z8 are used as table codes, back codes P1 to P7 of Z1 to Z8 are set. .

前記P1〜P7は、図45に示すように、最下位ビットのビット線BL0に接続された各ROMセルCE間にそれぞれ接続されたROMセルCEbから出力されるコードである。従って、裏コードP1〜P7は最下位ビットのビット線BL0に接続された各ROMセルCEでは検出されないサーモメータコードの論理境界をROMセルCEbで検出したコードとなる。   45. As shown in FIG. 45, P1 to P7 are codes output from ROM cells CEb connected between the ROM cells CE connected to the bit line BL0 of the least significant bit. Accordingly, the back codes P1 to P7 are codes in which the logical boundary of the thermometer code that is not detected in each ROM cell CE connected to the bit line BL0 of the least significant bit is detected in the ROM cell CEb.

上記のような裏コードにより、P1=1のとき、Y1=1となり、P2=1のとき、X1=1となり、P3=1のとき、Y2,W1=1となり、P4=1のとき、W1=1となり、P5=1のとき、Y3,W1,V1=1となり、P6=1のとき、X2,V2=1となり、P7=1のとき、Y4,V1=1となる。   With the back cord as described above, when P1 = 1, Y1 = 1, when P2 = 1, X1 = 1, when P3 = 1, Y2, W1 = 1, and when P4 = 1, W1 = 1, P5 = 1, Y3, W1, V1 = 1, P6 = 1, X2, V2 = 1, and P7 = 1, Y4, V1 = 1.

上記のような表コード及び裏コードを設定することにより、サーモメータコードの全域にわたって、サーモメータコードにバブルエラーが含まれるか否かが検出可能となる。
図48は、各10進値に対応するサーモメータコードに、「・・110100・・」すなわち前記タイプb1のバブルエラーがそれぞれ含まれる場合の各コードの値を示す。図中、網掛け部分は前記グレーコードの表コードのみによりエラーとして検出可能な部分である。訂正前Dout は、エラー未訂正のエンコーダ出力を10進値に置換したものである。
By setting the front code and the back code as described above, it is possible to detect whether or not a bubble error is included in the thermometer code over the entire range of the thermometer code.
FIG. 48 shows the value of each code when the thermometer code corresponding to each decimal value includes “..110100 ..”, that is, the type b1 bubble error. In the figure, the shaded portion is a portion that can be detected as an error only by the table code of the gray code. The pre-correction Dout is obtained by replacing the error-uncorrected encoder output with a decimal value.

この網掛け部分を反転させると、検出されたエラーは最も確からしい値に訂正され、訂正後のエンコーダの出力を図53に示す。図53において、横軸はA/D変換器に入力されたアナログ値を示し、縦軸はエンコーダ出力をアナログ値に変換したものである。   When this shaded portion is inverted, the detected error is corrected to the most probable value, and the corrected encoder output is shown in FIG. In FIG. 53, the horizontal axis represents the analog value input to the A / D converter, and the vertical axis represents the encoder output converted into an analog value.

図49は、図48に示すコードについて、表コード及び裏コードを用いてエラー検出を行い、エラーとして検出された網掛け部分を反転させた訂正後のコードを示す。この結果、訂正後のグレイコードは最も確からしい値に訂正され、図37に示す正常なグレイコードと一致する。図54は、図49に示す訂正後のコードに基づくエンコーダの出力を示す。   FIG. 49 shows a corrected code obtained by performing error detection on the code shown in FIG. 48 using the front code and the back code, and inverting the shaded portion detected as an error. As a result, the corrected gray code is corrected to the most probable value and matches the normal gray code shown in FIG. FIG. 54 shows the output of the encoder based on the corrected code shown in FIG.

次に、上記のような原理に基づいて、サーモメータコードに含まれるバブルエラーの訂正機能を備えたエンコーダについて説明する。
図2は、前記従来例と同様なコンパレータ部から出力されるサーモメータコードe1〜e31の入力に基づいて、5ビットのバイナリーコードのデジタル信号B0Z〜B4Zを生成して出力するエンコーダの概略構成を示す。
Next, an encoder having a function of correcting a bubble error included in the thermometer code will be described based on the above principle.
FIG. 2 shows a schematic configuration of an encoder that generates and outputs 5-bit binary code digital signals B0Z to B4Z based on the input of thermometer codes e1 to e31 output from the comparator unit similar to the conventional example. Show.

このエンコーダは、サーモメータコードe1〜e31に基づいて、5ビットのグレーコードを生成する第一〜第四のエンコード部11〜14と、生成されたグレーコードに基づいて、サーモメータコードe1〜e31中のバブルエラーの有無を検出して、バブルエラーが存在するときはエラー信号を出力するエラー信号生成部15と、前記エラー信号に基づいてグレーコード中のエラーを訂正するエラー訂正部16と、訂正されたグレーコードからバイナリーコードを生成するグレー・バイナリー変換部17とから構成される。   The encoder includes first to fourth encoding units 11 to 14 that generate a 5-bit gray code based on the thermometer codes e1 to e31, and thermometer codes e1 to e31 based on the generated gray code. An error signal generation unit 15 that detects the presence or absence of a bubble error and outputs an error signal when a bubble error exists, an error correction unit 16 that corrects an error in the gray code based on the error signal, And a gray / binary converter 17 for generating a binary code from the corrected gray code.

前記第一のエンコード部11の具体的構成を図3に示す。17個の論理境界検出回路18a〜18qは3つの入力端子IB,IA,IXを備えている。各論理境界検出回路18a〜18pの入力端子IAには、前記サーモメータコードe1〜e31のうち、奇数番のサーモメータコードe1,e3・・・e31がそれぞれ入力される。また、最上位の論理境界検出回路18qの入力端子IA,IBにはグランドGNDレベルが供給される。   A specific configuration of the first encoding unit 11 is shown in FIG. The seventeen logical boundary detection circuits 18a to 18q have three input terminals IB, IA, and IX. Of the thermometer codes e1 to e31, odd-numbered thermometer codes e1, e3... E31 are input to the input terminals IA of the logic boundary detection circuits 18a to 18p, respectively. Further, the ground GND level is supplied to the input terminals IA and IB of the uppermost logic boundary detection circuit 18q.

前記各論理境界検出回路18b〜18qの入力端子IXには、奇数番のサーモメータコードe1,e3・・・e31がそれぞれ入力されている。また、最下位の論理境界検出回路18aの入力端子IXには、電源Vccが供給される。   The odd-numbered thermometer codes e1, e3,... E31 are input to the input terminals IX of the logic boundary detection circuits 18b to 18q, respectively. The power supply Vcc is supplied to the input terminal IX of the lowest logical boundary detection circuit 18a.

前記論理境界検出回路18a〜18pの具体的構成を図10に示す。入力端子IB,IAは、NOR回路19の入力端子に接続される。入力端子IXは、インバータ回路20の入力端子に入力され、そのインバータ回路20の出力端子が前記NOR回路19に接続される。   A specific configuration of the logic boundary detection circuits 18a to 18p is shown in FIG. The input terminals IB and IA are connected to the input terminal of the NOR circuit 19. The input terminal IX is input to the input terminal of the inverter circuit 20, and the output terminal of the inverter circuit 20 is connected to the NOR circuit 19.

このような論理境界検出回路18b〜18qでは、入力端子IB,IAの入力レベルがLレベル、入力端子IXの入力レベルがHレベルとなったときに限り、出力信号OがHレベルとなる。   In such logic boundary detection circuits 18b to 18q, the output signal O becomes H level only when the input levels of the input terminals IB and IA are L level and the input level of the input terminal IX is H level.

前記論理境界検出回路18a〜18qの出力信号Oは、それぞれROMセル21a〜21qの端子Aに入力され、そのROMセル21a〜21qの端子Cは、ビット線BL0a〜BL0Xbのいずれかに接続され、端子BはグランドGNDに接続される。   The output signals O of the logic boundary detection circuits 18a to 18q are respectively input to the terminals A of the ROM cells 21a to 21q, and the terminals C of the ROM cells 21a to 21q are connected to any of the bit lines BL0a to BL0Xb, Terminal B is connected to ground GND.

前記ROMセル21a〜21qは、図11に示すように、NチャネルMOSトランジスタCTで構成され、端子Aはゲートに接続され、端子Cはドレインに接続され、端子Bはソースに接続される。   As shown in FIG. 11, the ROM cells 21a to 21q are composed of an N-channel MOS transistor CT, the terminal A is connected to the gate, the terminal C is connected to the drain, and the terminal B is connected to the source.

従って、前記論理境界検出回路18a〜18qの出力信号OがHレベルとなると、当該出力信号Oが入力されるROMセル21a〜21qのNチャネルMOSトランジスタCTがオンされ、当該ROMセル21a〜21qが接続されたビット線BL0a,BL0b,BL0Xa,BL0Xbから出力されるグレーコードg0a,g0b,g0Xa,g0XbがグランドGNDレベルとなる。   Therefore, when the output signal O of the logic boundary detection circuits 18a to 18q becomes H level, the N channel MOS transistors CT of the ROM cells 21a to 21q to which the output signal O is input are turned on, and the ROM cells 21a to 21q are turned on. Gray codes g0a, g0b, g0Xa, and g0Xb output from the connected bit lines BL0a, BL0b, BL0Xa, and BL0Xb become the ground GND level.

前記ビット線BL0aには、前記ROMセル21aを最下位として、4つおきのROMセル21e,21i,21m,21qが接続される。前記ビット線BL0bには、前記ROMセル21cを最下位として、4つおきのROMセル21g,21k,21oが接続される。   Every four ROM cells 21e, 21i, 21m, and 21q are connected to the bit line BL0a with the ROM cell 21a at the bottom. Every fourth ROM cell 21g, 21k, 21o is connected to the bit line BL0b with the ROM cell 21c at the bottom.

前記ビット線BL0Xaには、前記ROMセル21bを最下位として、4つおきのROMセル21f,21j,21nが接続される。前記ビット線BL0Xbには、前記ROMセル21dを最下位として、4つおきのROMセル21h,21l,21pが接続される。   Every four ROM cells 21f, 21j, and 21n are connected to the bit line BL0Xa with the ROM cell 21b at the bottom. Every four ROM cells 21h, 21l, and 21p are connected to the bit line BL0Xb with the ROM cell 21d at the bottom.

前記第二のエンコード部12の具体的構成を図4に示す。9個の論理境界検出回路22a〜22iは、前記論理境界検出回路18a〜18qと同一構成である。
各論理境界検出回路22a〜22hの入力端子IAには、前記サーモメータコードe1〜e31のうち、偶数番のサーモメータコードe2,e6,e10,e14,e18,e22,e26,e30がそれぞれ入力される。また、最上位の論理境界検出回路22iの入力端子IA,IBにはグランドGNDレベルが供給される。
A specific configuration of the second encoding unit 12 is shown in FIG. The nine logical boundary detection circuits 22a to 22i have the same configuration as the logical boundary detection circuits 18a to 18q.
Of the thermometer codes e1 to e31, even-numbered thermometer codes e2, e6, e10, e14, e18, e22, e26, and e30 are input to the input terminals IA of the logic boundary detection circuits 22a to 22h, respectively. The The ground GND level is supplied to the input terminals IA and IB of the uppermost logic boundary detection circuit 22i.

前記各論理境界検出回路22a〜22gの入力端子IBには、偶数番のサーモメータコードe4,e8,e12,e16,e20,e24,e28がそれぞれ入力されている。
前記論理境界検出回路22bの入力端子IXには、サーモメータコードe2,e4のNOR論理の反転信号、すなわちOR論理が入力される。同様に、論理境界検出回路22c〜22hの入力端子IXには、サーモメータコードe6,e8、e10,e12、e14,e16、e18,e20、e22,e24、e26,e28のOR論理がそれぞれ入力される。
Even-numbered thermometer codes e4, e8, e12, e16, e20, e24, e28 are input to the input terminals IB of the logic boundary detection circuits 22a to 22g, respectively.
An inverted signal of the NOR logic of the thermometer codes e2 and e4, that is, an OR logic is input to the input terminal IX of the logic boundary detection circuit 22b. Similarly, OR logics of thermometer codes e6, e8, e10, e12, e14, e16, e18, e20, e22, e24, e26, e28 are input to the input terminals IX of the logic boundary detection circuits 22c to 22h, respectively. The

また、論理境界検出回路22aの入力端子IXには電源Vccが入力され、論理境界検出回路22iの入力端子IXには、サーモメータコードe30が入力される。
前記論理境界検出回路22a〜22iの出力信号Oは、それぞれROMセル23a〜23iの端子Aに入力され、そのROMセル23a〜23iの端子Cは、ビット線BL1〜BL1Xのいずれかに接続され、端子BはグランドGNDに接続される。
The power supply Vcc is input to the input terminal IX of the logic boundary detection circuit 22a, and the thermometer code e30 is input to the input terminal IX of the logic boundary detection circuit 22i.
The output signals O of the logic boundary detection circuits 22a to 22i are respectively input to the terminals A of the ROM cells 23a to 23i, and the terminals C of the ROM cells 23a to 23i are connected to any of the bit lines BL1 to BL1X. Terminal B is connected to ground GND.

ROMセル23a〜23iは、前記ROMセル21a〜21qと同様に構成される。
従って、前記論理境界検出回路22a〜22iの出力信号OがHレベルとなると、当該出力信号Oが入力されるROMセル23a〜23iのNチャネルMOSトランジスタCTがオンされ、当該ROMセル23a〜23iが接続されたビット線BL1〜BL1Xから出力されるグレーコード信号g1,g1XがグランドGNDレベルとなる。
The ROM cells 23a to 23i are configured similarly to the ROM cells 21a to 21q.
Therefore, when the output signal O of the logic boundary detection circuits 22a to 22i becomes H level, the N channel MOS transistor CT of the ROM cells 23a to 23i to which the output signal O is input is turned on, and the ROM cells 23a to 23i are turned on. Gray code signals g1 and g1X output from the connected bit lines BL1 to BL1X are at the ground GND level.

前記ビット線BL1には、前記ROMセル23aを最下位として、1つおきのROMセル23c,23e,23g,23iが接続される。前記ビット線BL1Xには、前記ROMセル23bを最下位として、1つおきのROMセル23d,23f,23hが接続される。   Every other ROM cell 23c, 23e, 23g, 23i is connected to the bit line BL1 with the ROM cell 23a at the bottom. Every other ROM cell 23d, 23f, 23h is connected to the bit line BL1X with the ROM cell 23b at the bottom.

前記第三のエンコード部13の具体的構成を図5に示す。8個の論理境界検出回路24a〜24hは、前記論理境界検出回路18a〜18qと同一構成である。
各論理境界検出回路24a〜24gの入力端子IAには、前記サーモメータコードe1〜e31のうち、偶数番のサーモメータコードe4,e8,e12,e16,e20,e24,e28がそれぞれ入力される。また、最上位の論理境界検出回路24hの入力端子IA,IBにはグランドGNDレベルが供給される。
A specific configuration of the third encoding unit 13 is shown in FIG. The eight logical boundary detection circuits 24a to 24h have the same configuration as the logical boundary detection circuits 18a to 18q.
Of the thermometer codes e1 to e31, even-numbered thermometer codes e4, e8, e12, e16, e20, e24, and e28 are input to the input terminals IA of the logic boundary detection circuits 24a to 24g, respectively. The ground GND level is supplied to the input terminals IA and IB of the uppermost logic boundary detection circuit 24h.

前記各論理境界検出回路24a〜22gの入力端子IBには、偶数番のサーモメータコードe6,e10,e14,e18,e22,e26,e30がそれぞれ入力されている。   Even-numbered thermometer codes e6, e10, e14, e18, e22, e26, e30 are input to the input terminals IB of the logic boundary detection circuits 24a to 22g, respectively.

前記論理境界検出回路24bの入力端子IXには、サーモメータコードe4,e6のNOR論理の反転信号、すなわちOR論理が入力される。同様に、論理境界検出回路24c〜24hの入力端子IXには、サーモメータコードe8,e10、e12,e14、e16,e18、e20,e22、e24,e26、e28,e30のOR論理がそれぞれ入力される。また、論理境界検出回路24aの入力端子IXには電源Vccが入力される。   An NOR logic inversion signal of thermometer codes e4 and e6, that is, an OR logic is input to the input terminal IX of the logic boundary detection circuit 24b. Similarly, OR logic of thermometer codes e8, e10, e12, e14, e16, e18, e20, e22, e24, e26, e28, e30 are input to the input terminals IX of the logic boundary detection circuits 24c to 24h, respectively. The The power supply Vcc is input to the input terminal IX of the logic boundary detection circuit 24a.

前記論理境界検出回路24a〜24hの出力信号Oは、出力信号ga〜ghとして出力されるとともに、それぞれROMセル25a〜25hの端子Aに入力される。前記ROMセル25a〜25hの端子Cは、ビット線BL2a〜BL2bのいずれかに接続され、端子BはグランドGNDに接続される。   The output signals O of the logic boundary detection circuits 24a to 24h are output as output signals ga to gh and also input to terminals A of the ROM cells 25a to 25h, respectively. The terminals C of the ROM cells 25a to 25h are connected to any one of the bit lines BL2a to BL2b, and the terminal B is connected to the ground GND.

ROMセル25a〜25hは、前記ROMセル21a〜21qと同様に構成される。
従って、前記論理境界検出回路24a〜24hの出力信号OがHレベルとなると、当該出力信号Oが入力されるROMセル25a〜25hのNチャネルMOSトランジスタCTがオンされ、当該ROMセル25a〜25hが接続されたビット線BL2a〜BL2bから出力されるバイナリーコード信号g2a,g2bがグランドGNDレベルとなる。
The ROM cells 25a to 25h are configured similarly to the ROM cells 21a to 21q.
Therefore, when the output signal O of the logic boundary detection circuits 24a to 24h becomes H level, the N-channel MOS transistor CT of the ROM cells 25a to 25h to which the output signal O is input is turned on, and the ROM cells 25a to 25h are turned on. The binary code signals g2a and g2b output from the connected bit lines BL2a to BL2b are at the ground GND level.

前記ビット線BL2aには、前記ROMセル25aを最下位として、1つおきのROMセル25c,25e,25gが接続される。前記ビット線BL2aには、前記ROMセル25bを最下位として、1つおきのROMセル25d,25f,25hが接続される。   Every other ROM cell 25c, 25e, 25g is connected to the bit line BL2a with the ROM cell 25a at the bottom. Every other ROM cell 25d, 25f, 25h is connected to the bit line BL2a with the ROM cell 25b at the bottom.

前記第四のエンコード部14を図6に従って説明する。前記ビット線BL0Xa,BL0Xbの出力信号g0Xa,g0XbはNAND回路27aに入力され、そのNAND回路27aの出力信号がインバータ回路28aで反転されて、グレーコードg0Xが生成される。   The fourth encoding unit 14 will be described with reference to FIG. The output signals g0Xa and g0Xb of the bit lines BL0Xa and BL0Xb are input to the NAND circuit 27a, and the output signal of the NAND circuit 27a is inverted by the inverter circuit 28a to generate the gray code g0X.

前記ビット線BL0a,BL0bの出力信号g0a,g0bはNAND回路27bに入力され、そのNAND回路27bの出力信号がインバータ回路28bで反転されて、グレーコードg0が生成される。   The output signals g0a and g0b of the bit lines BL0a and BL0b are input to the NAND circuit 27b, and the output signal of the NAND circuit 27b is inverted by the inverter circuit 28b to generate the gray code g0.

前記論理境界検出回路24b,24cの出力信号gb,gcは、NOR回路26aに入力され、前記論理境界検出回路24f,24gの出力信号gf,ggは、NOR回路26bに入力される。前記NOR回路26a,26bの出力信号は、NAND回路27cに入力され、そのNAND回路27cからグレーコードg2が出力される。   The output signals gb and gc of the logic boundary detection circuits 24b and 24c are input to the NOR circuit 26a, and the output signals gf and gg of the logic boundary detection circuits 24f and 24g are input to the NOR circuit 26b. The output signals of the NOR circuits 26a and 26b are input to the NAND circuit 27c, and the gray code g2 is output from the NAND circuit 27c.

前記論理境界検出回路24c,24dの出力信号gc,gdは、NOR回路26cに入力され、前記論理境界検出回路24e,24fの出力信号ge,gfは、NOR回路26dに入力され、前記論理境界検出回路24g,24hの出力信号gg,ghは、NOR回路26eに入力される。   The output signals gc and gd of the logical boundary detection circuits 24c and 24d are input to the NOR circuit 26c, and the output signals ge and gf of the logical boundary detection circuits 24e and 24f are input to the NOR circuit 26d to detect the logical boundary detection. The output signals gg and gh from the circuits 24g and 24h are input to the NOR circuit 26e.

前記NOR回路26cの出力信号は、NAND回路27dに入力され、前記NOR回路26dの出力信号は、NAND回路27d,27eに入力され、前記NOR回路26eの出力信号は前記NAND回路27eに入力される。   The output signal of the NOR circuit 26c is input to the NAND circuit 27d, the output signal of the NOR circuit 26d is input to the NAND circuits 27d and 27e, and the output signal of the NOR circuit 26e is input to the NAND circuit 27e. .

そして、前記NAND回路27dからグレーコードg3が出力され、前記NAND回路27eからグレーコードg4が出力される。
前記エラー信号生成部15の具体的構成を図7に従って説明する。前記ビット線BL1の出力信号g1は、NAND回路29aに入力され、前記ビット線BL0aの出力信号g0aは、インバータ回路28cで反転されて、NAND回路29aに入力される。
Then, the gray code g3 is output from the NAND circuit 27d, and the gray code g4 is output from the NAND circuit 27e.
A specific configuration of the error signal generator 15 will be described with reference to FIG. The output signal g1 of the bit line BL1 is input to the NAND circuit 29a, and the output signal g0a of the bit line BL0a is inverted by the inverter circuit 28c and input to the NAND circuit 29a.

前記ビット線BL1Xの出力信号g1Xは、NAND回路29bに入力され、前記ビット線BL0bの出力信号g0bは、インバータ回路28dで反転されて、NAND回路29bに入力される。   The output signal g1X of the bit line BL1X is input to the NAND circuit 29b, and the output signal g0b of the bit line BL0b is inverted by the inverter circuit 28d and input to the NAND circuit 29b.

前記NAND回路29aの出力信号ER1A及び前記NAND回路29bの出力信号ER1AはNAND回路29eに入力され、同NAND回路29eからエラー信号er1が出力される。   The output signal ER1A of the NAND circuit 29a and the output signal ER1A of the NAND circuit 29b are input to the NAND circuit 29e, and the error signal er1 is output from the NAND circuit 29e.

前記ビット線BL2aの出力信号g2aは、NAND回路29cに入力され、前記ビット線BL0Xaの出力信号g0Xaは、インバータ回路28eで反転されて、NAND回路29cに入力される。   The output signal g2a of the bit line BL2a is input to the NAND circuit 29c, and the output signal g0Xa of the bit line BL0Xa is inverted by the inverter circuit 28e and input to the NAND circuit 29c.

前記ビット線BL2bの出力信号g2bは、NAND回路29dに入力され、前記ビット線BL0Xbの出力信号g0Xbは、インバータ回路28fで反転されて、NAND回路29dに入力される。   The output signal g2b of the bit line BL2b is input to the NAND circuit 29d, and the output signal g0Xb of the bit line BL0Xb is inverted by the inverter circuit 28f and input to the NAND circuit 29d.

前記NAND回路29cの出力信号ER2A及び前記NAND回路29dの出力信号ER2BはNAND回路29fに入力され、同NAND回路29fからエラー信号er2が出力される。   The output signal ER2A of the NAND circuit 29c and the output signal ER2B of the NAND circuit 29d are input to the NAND circuit 29f, and the error signal er2 is output from the NAND circuit 29f.

前記エラー信号er1,er2は、前記エラー訂正部16に出力されるとともに、図2に示すように、エラー信号生成部15に設けられた出力端子から外部へ出力される。
前記エラー訂正部16の具体的構成を図8に従って説明する。前記エラー信号er2及び前記信号g1Xは、NAND回路30aに入力され、前記グレーコードg2は、インバータ回路33aで反転されて、NAND回路30aに入力される。
The error signals er1 and er2 are output to the error correction unit 16 and output from an output terminal provided in the error signal generation unit 15 to the outside as shown in FIG.
A specific configuration of the error correction unit 16 will be described with reference to FIG. The error signal er2 and the signal g1X are input to the NAND circuit 30a, and the gray code g2 is inverted by the inverter circuit 33a and input to the NAND circuit 30a.

前記NAND回路30aの出力信号及び前記グレーコードg4は、EOR回路32aに入力され、同EOR回路32aの出力信号はインバータ回路33cで反転されて訂正グレーコードg4Zとして出力される。   The output signal of the NAND circuit 30a and the gray code g4 are input to the EOR circuit 32a, and the output signal of the EOR circuit 32a is inverted by the inverter circuit 33c and output as a corrected gray code g4Z.

前記エラー信号er2、前記信号g1X及び前記グレーコードg2は、NAND回路30bに入力される。
前記NAND回路30bの出力信号及び前記グレーコードg3は、EOR回路32bに入力され、同EOR回路32bの出力信号はインバータ回路33dで反転されて訂正グレーコードg3Zとして出力される。
The error signal er2, the signal g1X, and the gray code g2 are input to the NAND circuit 30b.
The output signal of the NAND circuit 30b and the gray code g3 are input to the EOR circuit 32b, and the output signal of the EOR circuit 32b is inverted by the inverter circuit 33d and output as a corrected gray code g3Z.

前記エラー信号er2及び前記グレーコードg1は、NAND回路30cに入力される。
前記NAND回路30cの出力信号及び前記グレーコードg2は、EOR回路32cに入力され、同EOR回路32cの出力信号はインバータ回路33eで反転されて訂正グレーコードg2Zとして出力される。
The error signal er2 and the gray code g1 are input to the NAND circuit 30c.
The output signal of the NAND circuit 30c and the gray code g2 are input to the EOR circuit 32c, and the output signal of the EOR circuit 32c is inverted by the inverter circuit 33e and output as a corrected gray code g2Z.

前記エラー信号er1は、インバータ回路33bで反転されてEOR回路32dに入力され、同EOR回路32dには前記グレーコード信号g1が入力される。
前記EOR回路32dの出力信号はインバータ回路33fで反転されて訂正グレーコードg1Zとして出力される。
The error signal er1 is inverted by the inverter circuit 33b and input to the EOR circuit 32d, and the gray code signal g1 is input to the EOR circuit 32d.
The output signal of the EOR circuit 32d is inverted by the inverter circuit 33f and output as the corrected gray code g1Z.

前記エラー信号er2,er1は、NOR回路31に入力され、同NOR回路31の出力信号及び前記グレーコード信号g0はEOR回路32eに入力される。前記EOR回路32eの出力信号はインバータ回路33gで反転されて訂正グレーコードg0Zとして出力される。   The error signals er2 and er1 are input to the NOR circuit 31, and the output signal of the NOR circuit 31 and the gray code signal g0 are input to the EOR circuit 32e. The output signal of the EOR circuit 32e is inverted by the inverter circuit 33g and output as a corrected gray code g0Z.

前記グレー・バイナリー変換部17の具体的構成を図9に示す。前記訂正グレーコードg4Zは、EOR回路35aに入力されるとともに、2段のインバータ回路34a,34bを介してバイナリーコードB4Zとして出力される。   A specific configuration of the gray binary conversion unit 17 is shown in FIG. The corrected gray code g4Z is input to the EOR circuit 35a and output as a binary code B4Z through the two-stage inverter circuits 34a and 34b.

前記訂正グレーコードg3Zは、前記EOR回路35aに入力され、同EOR回路35aの出力信号は、バイナリーコードB3Zとして出力されるとともに、EOR回路35bに入力される。   The corrected gray code g3Z is input to the EOR circuit 35a, and the output signal of the EOR circuit 35a is output as a binary code B3Z and also input to the EOR circuit 35b.

前記訂正グレーコードg2Zは、前記EOR回路35bに入力され、同EOR回路35bの出力信号は、バイナリーコードB2Zとして出力されるとともに、EOR回路35cに入力される。   The corrected gray code g2Z is input to the EOR circuit 35b, and an output signal of the EOR circuit 35b is output as a binary code B2Z and also input to the EOR circuit 35c.

前記訂正グレーコードg1Zは、前記EOR回路35cに入力され、同EOR回路35cの出力信号は、バイナリーコードB1Zとして出力されるとともに、EOR回路35dに入力される。   The corrected gray code g1Z is input to the EOR circuit 35c, and an output signal of the EOR circuit 35c is output as a binary code B1Z and also input to the EOR circuit 35d.

前記訂正グレーコードg0Zは、前記EOR回路35dに入力され、同EOR回路35dの出力信号は、バイナリーコードB0Zとして出力される。
上記グレー・バイナリー変換部17は、グレーコードをバイナリーコードに変換する回路として一般的に使用されるものである。
The corrected gray code g0Z is input to the EOR circuit 35d, and the output signal of the EOR circuit 35d is output as a binary code B0Z.
The gray / binary conversion unit 17 is generally used as a circuit for converting a gray code into a binary code.

前記ビット線BL1,BL1X間には、図12、図14に示すプリチャージ回路36,37のいずれかが接続される。なお、BL2a,BL2b間にも同様なプリチャージ回路が接続される。   Any of the precharge circuits 36 and 37 shown in FIGS. 12 and 14 is connected between the bit lines BL1 and BL1X. A similar precharge circuit is connected between BL2a and BL2b.

前記プリチャージ回路36は、一対のPチャネルMOSトランジスタTrp1 ,Trp2 のソースが電源Vccに接続され、同トランジスタTrp1 ,Trp2 のゲートは、互いのドレインに接続される。   In the precharge circuit 36, the sources of the pair of P-channel MOS transistors Trp1 and Trp2 are connected to the power supply Vcc, and the gates of the transistors Trp1 and Trp2 are connected to the drains of each other.

前記トランジスタTrp1 のドレインと電源Vssとの間には、複数のNチャネルMOSトランジスタTrnが並列に接続され、各トランジスタTrnのゲートには、前記ROMセルを介して前記ビット線BL1を制御する論理境界検出回路23a,23c,23e,23g,23iの出力信号がゲート信号V1としてそれぞれ入力される。   A plurality of N-channel MOS transistors Trn are connected in parallel between the drain of the transistor Trp1 and the power source Vss, and a logic boundary for controlling the bit line BL1 via the ROM cell is connected to the gate of each transistor Trn. The output signals of the detection circuits 23a, 23c, 23e, 23g, and 23i are input as the gate signal V1, respectively.

前記トランジスタTrp2 のドレインと電源Vssとの間には、複数のNチャネルMOSトランジスタTrnx が並列に接続され、各トランジスタTrnx のゲートには、前記ROMセルを介して前記ビット線BL1Xを制御する論理境界検出回路23b,23d,23f,23hの出力信号がゲート信号V1Xとしてそれぞれ入力される。   A plurality of N-channel MOS transistors Trnx are connected in parallel between the drain of the transistor Trp2 and the power supply Vss, and a logical boundary for controlling the bit line BL1X via the ROM cell is connected to the gate of each transistor Trnx. The output signals of the detection circuits 23b, 23d, 23f, and 23h are input as the gate signal V1X, respectively.

また、前記トランジスタTrp1 のドレインがビット線BL1に接続され、前記トランジスタTrp2 のドレインがビット線BL1Xに接続される。
このように構成されたプリチャージ回路36では、図13に示すように、例えばトランジスタTrn1 のゲート信号V1のいずれかがHレベルとなってトランジスタTrn1 のいずれかがオンされるとともに、トランジスタTrnx のゲート信号V1XがすべてLレベルとなると、トランジスタTrp1 がオフされるとともに、トランジスタTrp2 がオンされる。すると、ビット線BL1がLレベルとなるとともにビット線BL1XがHレベルとなり、ビット線BL1Xが電源Vccレベルにプリチャージされる。
The drain of the transistor Trp1 is connected to the bit line BL1, and the drain of the transistor Trp2 is connected to the bit line BL1X.
In the precharge circuit 36 configured in this way, as shown in FIG. 13, for example, one of the gate signals V1 of the transistor Trn1 becomes H level and any of the transistors Trn1 is turned on, and the gate of the transistor Trnx is turned on. When all the signals V1X become L level, the transistor Trp1 is turned off and the transistor Trp2 is turned on. Then, the bit line BL1 becomes L level, the bit line BL1X becomes H level, and the bit line BL1X is precharged to the power supply Vcc level.

また、トランジスタTrnx のゲート信号V1XのいずれかがHレベルとなってトランジスタTrnxのいずれかがオンされるとともに、トランジスタTrnのゲート信号V1がすべてLレベルとなると、トランジスタTrp1 がオンされるとともに、トランジスタTrp2 がオフされる。すると、ビット線BL1がHレベルとなるとともにビット線BL1XがLレベルとなり、ビット線BL1が電源Vccレベルにプリチャージされる。   When any one of the gate signals V1X of the transistor Trnx becomes H level and any of the transistors Trnx is turned on, and when all the gate signals V1 of the transistors Trn become L level, the transistor Trp1 is turned on and Trp2 is turned off. Then, the bit line BL1 becomes H level, the bit line BL1X becomes L level, and the bit line BL1 is precharged to the power supply Vcc level.

図14に示すプリチャージ回路37では、トランジスタTrp1 ,Trp2 のゲートが互いに接続されるとともに、トランジスタTrp1 のドレインに接続されている点が前記プリチャージ回路36と相違する。   The precharge circuit 37 shown in FIG. 14 is different from the precharge circuit 36 in that the gates of the transistors Trp1 and Trp2 are connected to each other and are connected to the drain of the transistor Trp1.

このプリチャージ回路37は、前記プリチャージ回路36ではビット線BL1,BL1Xの一方が立ち下がった後に、他方がプリチャージされるのに対し、図15に示すように、ビット線BL1,BL1Xの一方の立ち下がりと同時に他方がプリチャージされるので、プリチャージ動作の応答速度が速くなる。   In the precharge circuit 37, one of the bit lines BL1 and BL1X is precharged after one of the bit lines BL1 and BL1X falls in the precharge circuit 36, as shown in FIG. Since the other is precharged simultaneously with the fall of, the response speed of the precharge operation is increased.

前記第一のエンコード部11のビット線BL0a,BL0b,BL0Xa,BL0Xbには、図16に示すプリチャージ回路38a〜38dがそれぞれ接続される。
前記プリチャージ回路38aは、ビット線BL0aと電源Vccとの間に並列に接続される3つのPチャネルMOSトランジスタで構成され、各トランジスタのゲートには、前記グレーコードg0b,g0Xa,g0Xbがそれぞれ入力される。
Precharge circuits 38a to 38d shown in FIG. 16 are connected to the bit lines BL0a, BL0b, BL0Xa, and BL0Xb of the first encoding unit 11, respectively.
The precharge circuit 38a is composed of three P-channel MOS transistors connected in parallel between the bit line BL0a and the power source Vcc, and the gray codes g0b, g0Xa, and g0Xb are respectively input to the gates of the transistors. Is done.

前記グレーコードg0aがLレベルとならないときは、グレーコードg0b,g0Xa,g0XbのいずれかがLレベルとなるため、ビット線BL0aが電源Vccレベルにプリチャージされる。   When the gray code g0a does not become L level, any one of the gray codes g0b, g0Xa, g0Xb becomes L level, so that the bit line BL0a is precharged to the power supply Vcc level.

前記プリチャージ回路38bは、ビット線BL0bと電源Vccとの間に並列に接続される3つのPチャネルMOSトランジスタで構成され、各トランジスタのゲートには、前記グレーコードg0a,g0Xa,g0Xbがそれぞれ入力される。   The precharge circuit 38b is composed of three P-channel MOS transistors connected in parallel between the bit line BL0b and the power source Vcc, and the gray codes g0a, g0Xa, and g0Xb are respectively input to the gates of the transistors. Is done.

前記グレーコードg0bがLレベルとならないときは、グレーコードg0a,g0Xa,g0XbのいずれかがLレベルとなるため、ビット線BL0bが電源Vccレベルにプリチャージされる。   When the gray code g0b does not become L level, any one of the gray codes g0a, g0Xa, g0Xb becomes L level, so that the bit line BL0b is precharged to the power supply Vcc level.

前記プリチャージ回路38cは、ビット線BL0Xaと電源Vccとの間に並列に接続される3つのPチャネルMOSトランジスタで構成され、各トランジスタのゲートには、前記グレーコードg0a,g0b,g0Xbがそれぞれ入力される。   The precharge circuit 38c is composed of three P-channel MOS transistors connected in parallel between the bit line BL0Xa and the power source Vcc, and the gray codes g0a, g0b and g0Xb are input to the gates of the transistors, respectively. Is done.

前記グレーコードg0XaがLレベルとならないときは、グレーコードg0a,g0b,g0XbのいずれかがLレベルとなるため、ビット線BL0Xaが電源Vccレベルにプリチャージされる。   When the gray code g0Xa does not become L level, any one of the gray codes g0a, g0b, and g0Xb becomes L level, so that the bit line BL0Xa is precharged to the power supply Vcc level.

前記プリチャージ回路38dは、ビット線BL0Xbと電源Vccとの間に並列に接続される3つのPチャネルMOSトランジスタで構成され、各トランジスタのゲートには、前記グレーコードg0a,g0b,g0Xaがそれぞれ入力される。   The precharge circuit 38d is composed of three P-channel MOS transistors connected in parallel between the bit line BL0Xb and the power source Vcc, and the gray codes g0a, g0b, g0Xa are respectively input to the gates of the transistors. Is done.

前記グレーコードg0XbがLレベルとならないときは、グレーコードg0a,g0b,g0XaのいずれかがLレベルとなるため、ビット線BL0Xbが電源Vccレベルにプリチャージされる。   When the gray code g0Xb does not become L level, any one of the gray codes g0a, g0b, and g0Xa becomes L level, so that the bit line BL0Xb is precharged to the power supply Vcc level.

次に、上記のように構成されたエンコーダの動作を説明する。
第一のエンコード部11は、サーモメータコードe1〜e31から5ビットのグレーコードg0〜g4を生成する際に、最下位のグレーコードg0を生成するためのグレーコードg0a,g0b,g0Xa,g0Xbをビット独立デコード方式で生成するものである。
Next, the operation of the encoder configured as described above will be described.
The first encoding unit 11 generates gray codes g0a, g0b, g0Xa, and g0Xb for generating the lowest gray code g0 when generating the 5-bit gray codes g0 to g4 from the thermometer codes e1 to e31. It is generated by the bit independent decoding method.

論理境界検出回路18a〜18qには、奇数番のサーモメータコードe1〜e31が下位から順に3つずつ入力される。このような論理境界検出回路18a〜18qに正常なサーモメータコードe1〜e31が入力されたとき、第一のエンコード部11のビット線BL0a,BL0b,BL0Xa,BL0Xbから図17に示すようなグレーコードg0a,g0b,g0Xa,g0Xbが出力される。   The odd numbered thermometer codes e1 to e31 are input to the logic boundary detection circuits 18a to 18q in order of three from the lower order. When normal thermometer codes e1 to e31 are input to the logical boundary detection circuits 18a to 18q, gray codes as shown in FIG. 17 are generated from the bit lines BL0a, BL0b, BL0Xa, and BL0Xb of the first encoding unit 11. g0a, g0b, g0Xa, g0Xb are output.

グレーコードg0aは、図47に示す信号Z1,Z3,Z5,Z7のOR論理をとった信号に相当し、グレーコードg0bは、図47に示す信号Z2,Z4,Z6,Z8のOR論理をとった信号に相当する。   The gray code g0a corresponds to the signal obtained by ORing the signals Z1, Z3, Z5, and Z7 shown in FIG. 47, and the gray code g0b takes the OR logic of the signals Z2, Z4, Z6, and Z8 shown in FIG. It corresponds to the signal.

グレーコードg0Xaは、グレーコードg0aに対する裏コードであり、図47に示す信号P1,P3,P5,P7のOR論理をとったものに相当する。グレーコードg0Xbは、グレーコードg0bに対する裏コードであり、図47に示す信号P2,P4,P6のOR論理をとったものに相当する。   The gray code g0Xa is a back code for the gray code g0a, and corresponds to the one obtained by taking the OR logic of the signals P1, P3, P5, and P7 shown in FIG. The gray code g0Xb is a back code for the gray code g0b, and corresponds to the OR logic of the signals P2, P4, and P6 shown in FIG.

そして、グレーコードg0a,g0b,g0Xa,g0Xbは、サーモメータコードe1〜e31に基づいて、いずれか一つがLレベルとなる。
上記のような論理は、論理境界検出回路18a〜18qで駆動されるROMセル21a〜21qをビット線BL0a,BL0Xa,BL0b,BL0Xbに順次接続することにより生成される。すなわち、各ビット線BL0a,BL0Xa,BL0b,BL0Xbには、4つおきの論理境界検出回路がROMセルを介して接続され、各ビット線BL0a,BL0Xa,BL0b,BL0Xbに順次接続される4つの論理境界検出回路を1周期とすれば、各ビット線BL0a,BL0Xa,BL0b,BL0Xbに論理境界検出回路18a〜18qが1周期間隔で接続される。
And any one of the gray codes g0a, g0b, g0Xa, and g0Xb becomes L level based on the thermometer codes e1 to e31.
The logic as described above is generated by sequentially connecting the ROM cells 21a to 21q driven by the logic boundary detection circuits 18a to 18q to the bit lines BL0a, BL0Xa, BL0b, and BL0Xb. That is, every four logic boundary detection circuits are connected to each bit line BL0a, BL0Xa, BL0b, BL0Xb via ROM cells, and four logics are sequentially connected to each bit line BL0a, BL0Xa, BL0b, BL0Xb. If the boundary detection circuit has one cycle, the logical boundary detection circuits 18a to 18q are connected to the bit lines BL0a, BL0Xa, BL0b, and BL0Xb at intervals of one cycle.

第一のエンコード部11に、「・・110100・・」すなわち前記b1タイプのバブルエラーを含むサーモメータコードe1〜e31が入力されると、図18に示すように、グレーコードg0a,g0b,g0Xa,g0Xbには、そのバブルエラーに起因するエラーが含まれる。   When thermometer codes e1 to e31 including b1 type bubble errors are input to the first encoding unit 11, as shown in FIG. 18, gray codes g0a, g0b, g0Xa are entered. , G0Xb includes an error due to the bubble error.

また、第一のエンコード部11に、「・・1100100・・」すなわち前記b2Hタイプのバブルエラーを含むサーモメータコードe1〜e31が入力されると、論理境界検出回路18a〜18qには奇数番のサーモメータコードe1〜e31が下位から順に3つずつ入力されているので、図19に示すように、グレーコードg0a,g0b,g0Xa,g0Xbは、前記b1タイプのバブルエラーの場合と同様なエラーを含む信号に訂正される。   When the thermometer codes e1 to e31 including the b2H type bubble error are input to the first encoding unit 11, odd numbers are input to the logical boundary detection circuits 18a to 18q. Since three thermometer codes e1 to e31 are input in order from the lower order, as shown in FIG. 19, the gray codes g0a, g0b, g0Xa, and g0Xb have the same errors as in the case of the b1 type bubble error. Corrected to include signal.

また、第一のエンコード部11に、「・・1101100・・」すなわち前記b2Lタイプのバブルエラーを含むサーモメータコードe1〜e31が入力されると、図20に示すように、グレーコードg0a,g0b,g0Xa,g0Xbは、図17に示すバブルエラーを含まないサーモメータコードe1〜e31によるグレーコードg0a,g0b,g0Xa,g0Xbと等しくなるように訂正される。   When the thermometer codes e1 to e31 including the b2L type bubble error are input to the first encoding unit 11, as shown in FIG. 20, gray codes g0a and g0b are input. , G0Xa, and g0Xb are corrected to be equal to the gray codes g0a, g0b, g0Xa, and g0Xb by the thermometer codes e1 to e31 not including the bubble error shown in FIG.

なお、グレーコードg0a,g0b,g0Xa,g0Xbは、上記いずれの場合にもいずれか1つがLレベルとなり、他はHレベルとなる。従って、ビット線BL0a,BL0Xa,BL0b,BL0Xbのうち、Lレベルのグレーコードを出力しないビット線は、前記プリチャージ回路38a〜38dの動作により、上記エンコード動作と並行して電源Vccにプリチャージされる。   Note that one of the gray codes g0a, g0b, g0Xa, and g0Xb is L level in any of the above cases, and the other is H level. Therefore, of the bit lines BL0a, BL0Xa, BL0b, and BL0Xb, the bit line that does not output the L level gray code is precharged to the power source Vcc in parallel with the encoding operation by the operation of the precharge circuits 38a to 38d. The

前記第二のエンコード部12は、サーモメータコードe1〜e31から5ビットのグレーコードg0〜g4を生成する際に、下位から2番目のグレーコードg1と、その相補信号であるg1Xを、ビット独立デコード方式で生成するものである。   When the second encoding unit 12 generates the 5-bit gray codes g0 to g4 from the thermometer codes e1 to e31, the second gray code g1 from the lower order and the complementary signal g1X are bit-independently generated. It is generated by the decoding method.

論理境界検出回路22a〜22iには、偶数番のサーモメータコードe2〜e30に基づく信号が下位から順に3つずつ入力される。このような論理境界検出回路22a〜22iに正常なサーモメータコードe2〜e30が入力されたとき、第二のエンコード部12のビット線BL1,BL1Xから図17に示すようなグレーコードg1,g1Xが出力される。   Signals based on the even-numbered thermometer codes e2 to e30 are input to the logical boundary detection circuits 22a to 22i in order of three from the lower order. When normal thermometer codes e2 to e30 are input to the logical boundary detection circuits 22a to 22i, gray codes g1 and g1X as shown in FIG. 17 are generated from the bit lines BL1 and BL1X of the second encoding unit 12. Is output.

グレーコードg1は、図47に示すグレーコードG1に相当し、グレーコードg1Xは、グレーコードg1の裏コードとなり、互いに相補関係となる。
上記のような論理は、論理境界検出回路22a〜22iで駆動されるROMセル23a〜23iをビット線BL1,BL1Xに交互に接続することにより生成される。すなわち、各ビット線BL1,BL1Xには、1つおきの論理境界検出回路がROMセルを介して接続され、各ビット線BL1,BL1Xに交互に接続される2つの論理境界検出回路を1周期とすれば、各ビット線BL1,BL1Xに論理境界検出回路22a〜22iが1周期間隔で接続される。
The gray code g1 corresponds to the gray code G1 shown in FIG. 47, and the gray code g1X is a back code of the gray code g1 and is complementary to each other.
The logic as described above is generated by alternately connecting the ROM cells 23a to 23i driven by the logic boundary detection circuits 22a to 22i to the bit lines BL1 and BL1X. That is, every other logical boundary detection circuit is connected to each bit line BL1, BL1X via a ROM cell, and two logical boundary detection circuits alternately connected to each bit line BL1, BL1X are defined as one cycle. Then, the logic boundary detection circuits 22a to 22i are connected to the bit lines BL1 and BL1X at intervals of one cycle.

第二のエンコード部12に、「・・110100・・」すなわち前記b1タイプのバブルエラーを含むサーモメータコードe2〜e30が入力されると、図18に示すように、グレーコードg1,g1Xには、そのバブルエラーに起因するエラーが含まれる。   When the thermometer codes e2 to e30 including the b1 type bubble error are input to the second encoding unit 12, gray codes g1 and g1X have gray codes g1 and g1X as shown in FIG. , Errors due to that bubble error are included.

また、第二のエンコード部12に、「・・1100100・・」すなわち前記b2Hタイプのバブルエラーを含むサーモメータコードe2〜e30が入力されると、論理境界検出回路22a〜22iには偶数番のサーモメータコードe2〜e30に基づく信号が下位から順に3つずつ入力されているので、図19に示すように、グレーコードg1,g1Xは、前記b1タイプのバブルエラーの場合と同様なエラーを含む信号に訂正される。   When the thermometer codes e2 to e30 including the b2H type bubble error are input to the second encoding unit 12, an even number is input to the logical boundary detection circuits 22a to 22i. Since three signals based on the thermometer codes e2 to e30 are inputted in order from the lower order, as shown in FIG. 19, the gray codes g1 and g1X include an error similar to the case of the b1 type bubble error. Corrected to signal.

また、第二のエンコード部12に、「・・1101100・・」すなわち前記b2Lタイプのバブルエラーを含むサーモメータコードe2〜e30が入力されると、図20に示すように、グレーコードg1,g1Xは、図17に示すバブルエラーを含まないサーモメータコードe2〜e30によるグレーコードg1,g1Xと等しくなるように訂正される。   When the thermometer codes e2 to e30 including the b2L type bubble error are input to the second encoding unit 12, as shown in FIG. 20, gray codes g1, g1X Is corrected to be equal to the gray codes g1 and g1X by the thermometer codes e2 to e30 not including the bubble error shown in FIG.

なお、グレーコードg1,g1Xは、上記いずれの場合にも相補信号となる。従って、ビット線BL1,BL1Xのうち、Lレベルのグレーコードを出力しないビット線は、前記プリチャージ回路36あるいはプリチャージ回路37の動作により、上記エンコード動作と並行して電源Vccレベルにプリチャージされる。   The gray codes g1 and g1X are complementary signals in either case. Accordingly, of the bit lines BL1 and BL1X, the bit line that does not output the L level gray code is precharged to the power supply Vcc level in parallel with the encoding operation by the operation of the precharge circuit 36 or the precharge circuit 37. The

前記第三のエンコード部13は、サーモメータコードe1〜e31から5ビットのグレーコードg0〜g4を生成する際に、下位から3番目〜5番目のグレーコードg2〜g4を生成するための論理境界検出信号ga〜ghと、バイナリーコードg2a,g2bをビット独立デコード方式で生成するものである。   When the third encoding unit 13 generates the 5-bit gray codes g0 to g4 from the thermometer codes e1 to e31, a logical boundary for generating the third to fifth gray codes g2 to g4 from the lower order The detection signals ga to gh and the binary codes g2a and g2b are generated by the bit independent decoding method.

論理境界検出回路24a〜24hには、偶数番のサーモメータコードe4〜e30に基づく信号が下位から順に3つずつ入力される。このような論理境界検出回路24a〜24hに正常なサーモメータコードe4〜e30が入力されたとき、第三のエンコード部13のビット線BL2a,BL2bから図17に示すようなバイナリーコードg2a,g2bが出力される。   Signals based on the even-numbered thermometer codes e4 to e30 are input to the logic boundary detection circuits 24a to 24h in order of three from the lower order. When normal thermometer codes e4 to e30 are input to the logical boundary detection circuits 24a to 24h, binary codes g2a and g2b as shown in FIG. 17 are generated from the bit lines BL2a and BL2b of the third encoding unit 13. Is output.

バイナリーコードg2a,g2bは、互いに相補関係にあり、図47において前記グレーコードg1,g1Xを10進値において2つ上位側へシフトさせた値となる。すなわち、g2aはバイナリーコードB2に相当する。   The binary codes g2a and g2b are in a complementary relationship with each other, and are the values obtained by shifting the gray codes g1 and g1X by two higher-order decimal values in FIG. That is, g2a corresponds to the binary code B2.

上記のような論理は、論理境界検出回路24a〜24hで駆動されるROMセル25a〜25hをビット線BL2a,BL2bに交互に接続することにより生成される。すなわち、各ビット線BL2a,BL2bには、1つおきの論理境界検出回路がROMセルを介して接続され、各ビット線BL2a,BL2bに交互に接続される2つの論理境界検出回路を1周期とすれば、各ビット線BL2a,BL2bに論理境界検出回路24a〜24hが1周期間隔で接続される。   The logic as described above is generated by alternately connecting the ROM cells 25a to 25h driven by the logic boundary detection circuits 24a to 24h to the bit lines BL2a and BL2b. In other words, every other logical boundary detection circuit is connected to each bit line BL2a, BL2b via a ROM cell, and two logical boundary detection circuits alternately connected to each bit line BL2a, BL2b are defined as one cycle. Then, the logic boundary detection circuits 24a to 24h are connected to the bit lines BL2a and BL2b at intervals of one cycle.

また、各論理境界検出回路24a〜24hから論理境界検出信号ga〜ghが出力される。
第三のエンコード部13に、「・・110100・・」すなわち前記b1タイプのバブルエラーを含むサーモメータコードe4〜e30が入力されると、図18に示すように、バイナリーコードg2a,g2bには、そのバブルエラーに起因するエラーが含まれる。
Also, logical boundary detection signals ga to gh are output from the logical boundary detection circuits 24a to 24h.
When the thermometer codes e4 to e30 including the b1 type bubble error are input to the third encoding unit 13, as shown in FIG. 18, the binary codes g2a and g2b include , Errors due to that bubble error are included.

また、第三のエンコード部13に、「・・1100100・・」すなわち前記b2Hタイプのバブルエラーを含むサーモメータコードe4〜e30が入力されると、論理境界検出回路24a〜24hには偶数番のサーモメータコードe4〜e30に基づく信号が下位から順に3つずつ入力されているので、図19に示すように、バイナリーコードg2a,g2bは、前記b1タイプのバブルエラーの場合と同様なエラーを含む信号に訂正される。   When the thermometer codes e4 to e30 including the b2H type bubble error are input to the third encoding unit 13, even numbers are input to the logic boundary detection circuits 24a to 24h. Since three signals based on the thermometer codes e4 to e30 are input in order from the lower order, as shown in FIG. 19, the binary codes g2a and g2b include errors similar to those of the b1 type bubble error. Corrected to signal.

また、第三のエンコード部13に、「・・1101100・・」すなわち前記b2Lタイプのバブルエラーを含むサーモメータコードe4〜e30が入力されると、図20に示すように、バイナリーコードg2a,g2bは、図17に示すバブルエラーを含まないサーモメータコードe4〜e30によるバイナリーコードg2a,g2bと等しくなるように訂正される。   When the thermometer codes e4 to e30 including the b2L type bubble error are input to the third encoding unit 13, as shown in FIG. 20, binary codes g2a and g2b are input. Is corrected to be equal to the binary codes g2a and g2b by the thermometer codes e4 to e30 not including the bubble error shown in FIG.

なお、バイナリーコードg2a,g2bは、上記いずれの場合にも相補信号となる。従って、ビット線BL2a,BL2bのうち、Lレベルのバイナリーコードを出力しないビット線は、前記プリチャージ回路36あるいはプリチャージ回路37の動作により、上記エンコード動作と並行して電源Vccレベルにプリチャージされる。   The binary codes g2a and g2b are complementary signals in either case. Therefore, of the bit lines BL2a and BL2b, the bit line that does not output the L level binary code is precharged to the power supply Vcc level in parallel with the encoding operation by the operation of the precharge circuit 36 or the precharge circuit 37. The

前記第四のエンコード部14は、前記グレーコード信号g0a,g0b,g0Xa,g0Xbの論理処理に基づいて、最下位のグレーコードg0,g0Xとを生成し、前記論理境界検出信号gb〜ghの論理処理に基づいて、下位から3番目〜5番目のグレーコードg2〜g4を生成する論理回路である。   The fourth encoding unit 14 generates the lowest gray codes g0 and g0X based on the logical processing of the gray code signals g0a, g0b, g0Xa, and g0Xb, and generates the logic of the logical boundary detection signals gb to gh. This is a logic circuit that generates the third to fifth gray codes g2 to g4 from the lower order based on the processing.

このような第四のエンコード部14に、正常なサーモメータコードe1〜e31による正常なグレーコード信号g0a,g0b,g0Xa,g0Xb及び論理境界検出信号gb〜ghが入力されると、図17に示すように、エラーを含まないグレーコードg0,g2〜g4が生成される。なお、下位から2番目のグレーコードg1は、前記第二のエンコード部12で生成されている。   When normal gray code signals g0a, g0b, g0Xa, g0Xb and logical boundary detection signals gb-gh by normal thermometer codes e1-e31 are input to the fourth encoding unit 14 as shown in FIG. In this way, gray codes g0, g2 to g4 that do not include an error are generated. The second lowest gray code g1 is generated by the second encoding unit 12.

第四のエンコード部14に、「・・110100・・」すなわち前記b1タイプのバブルエラーに基づくエラーを含むグレーコード信号g0a,g0b,g0Xa,g0Xb及び論理境界検出信号gb〜ghが入力されると、図18に示すように、グレーコードg0〜g4にはそのバブルエラーに起因するエラーが含まれる。   When the gray code signals g0a, g0b, g0Xa, g0Xb and the logic boundary detection signals gb to gh including errors based on the b1 type bubble error are input to the fourth encoding unit 14. As shown in FIG. 18, the gray codes g0 to g4 include errors due to the bubble error.

また、第四のエンコード部13に、「・・1100100・・」すなわち前記b2Hタイプのバブルエラーに基づくエラーを含むグレーコード信号g0a,g0b,g0Xa,g0Xb及び論理境界検出信号gb〜ghが入力されると、図19に示すように、グレーコードg0〜g4は前記b1タイプのバブルエラーの場合と同様なエラーを含む信号となる。   Further, the gray code signals g0a, g0b, g0Xa, g0Xb including the error based on the b2H type bubble error and the logical boundary detection signals gb to gh are input to the fourth encoding unit 13. Then, as shown in FIG. 19, the gray codes g0 to g4 are signals including an error similar to the case of the b1 type bubble error.

また、第四のエンコード部14に、「・・1101100・・」すなわち前記b2Lタイプのバブルエラーに基づくエラーを含むグレーコード信号g0a,g0b,g0Xa,g0Xb及び論理境界検出信号gb〜ghが入力されると、図20に示すように、グレーコードg0〜g4はエラーを含まない信号となり、図17と同様となる。   Further, the gray code signals g0a, g0b, g0Xa, g0Xb and the logical boundary detection signals gb to gh including errors based on the b2L type bubble error are input to the fourth encoding unit 14. Then, as shown in FIG. 20, the gray codes g0 to g4 are signals that do not include an error, and are the same as those in FIG.

前記エラー信号生成部15は、前記グレーコード信号g0a,g0b,g0Xa,g0Xb,g1,g1X及びバイナリーコードg2a,g2bを、図47に示す各グレーコードの関係を満足するか否かを検出する回路であり、満足しない場合には、Hレベルのエラー信号er1,er2を出力する。   The error signal generator 15 detects whether the gray code signals g0a, g0b, g0Xa, g0Xb, g1, g1X and the binary codes g2a, g2b satisfy the relationship between the gray codes shown in FIG. If not satisfied, H level error signals er1 and er2 are output.

すなわち、NAND回路29aでは正常なグレーコードg1,g0aが入力されているとき、図17に示すように、グレーコードg0aがLレベルのとき、グレーコードg1はLレベルとなるので、出力信号ER1Aは必ずHレベルとなる。   That is, when normal gray codes g1 and g0a are input to the NAND circuit 29a, as shown in FIG. 17, when the gray code g0a is at the L level, the gray code g1 is at the L level, so the output signal ER1A is It must be H level.

NAND回路29bでは正常なグレーコードg1X,g0bが入力されているとき、グレーコードg0bがLレベルのとき、グレーコードg1XはLレベルとなるので、出力信号ER1Bは必ずHレベルとなる。   In the NAND circuit 29b, when normal gray codes g1X and g0b are input, when the gray code g0b is at L level, the gray code g1X is at L level, so the output signal ER1B is always at H level.

従って、正常なグレーコードg1,g1X,g0a,g0bが入力されているときは、NAND回路29a,29bの出力信号ER1A,ER1BはともにHレベルとなり、NAND回路29eから出力されるエラー信号er1はLレベルとなる。   Therefore, when normal gray codes g1, g1X, g0a, and g0b are input, the output signals ER1A and ER1B of the NAND circuits 29a and 29b are both H level, and the error signal er1 output from the NAND circuit 29e is L. Become a level.

同様に、NAND回路29cでは、正常なバイナリーコードg2aとグレーコードg0Xaが入力されているとき、グレーコードg0XaがLレベルのとき、バイナリーコードg2aはLレベルとなるので、出力信号ER2Aは必ずHレベルとなる。   Similarly, in the NAND circuit 29c, when the normal binary code g2a and the gray code g0Xa are input, when the gray code g0Xa is at the L level, the binary code g2a is at the L level, so the output signal ER2A is always at the H level. It becomes.

NAND回路29dでは、正常なバイナリーコードg2bとグレーコードg0Xbが入力されているとき、グレーコードg0XbがLレベルのとき、バイナリーコードg2bはLレベルとなるので、出力信号ER2bは必ずHレベルとなる。   In the NAND circuit 29d, when the normal binary code g2b and the gray code g0Xb are input, when the gray code g0Xb is at the L level, the binary code g2b is at the L level, so the output signal ER2b is always at the H level.

従って、正常なグレーコードg2a,g2b,g0Xa,g0Xbが入力されているときは、NAND回路29c,29dの出力信号ER2A,ER2BはともにHレベルとなり、NAND回路29fから出力されるエラー信号er2はLレベルとなる。   Therefore, when normal gray codes g2a, g2b, g0Xa, and g0Xb are input, the output signals ER2A and ER2B of the NAND circuits 29c and 29d are both H level, and the error signal er2 output from the NAND circuit 29f is L. Become a level.

一方、図18及び図19に示すように、グレーコード信号g0a,g0b,g0Xa,g0Xb,g1,g1X及びバイナリーコードg2a,g2bにエラーが含まれる場合には、上記のような正常時の条件が満足できなくなって、NAND回路29a〜29dの出力信号ER1A〜ER2BがLレベルとなることがあり、この場合にはエラー信号er1,er2がHレベルとなる。   On the other hand, when the gray code signals g0a, g0b, g0Xa, g0Xb, g1, g1X and the binary codes g2a, g2b include errors as shown in FIGS. In some cases, the output signals ER1A to ER2B of the NAND circuits 29a to 29d become L level. In this case, the error signals er1 and er2 become H level.

図8に示す前記エラー訂正部16は、前記エラー信号er1,er2に基づいて、エラーを含んだグレーコードg0〜g4を確からしい値に訂正するように動作する。その訂正動作は、前記訂正原理で示したように、グレーコードg0〜g4のうちエラーが検出されたコードを反転させるものである。   The error correction unit 16 shown in FIG. 8 operates so as to correct the gray codes g0 to g4 including errors to a probable value based on the error signals er1 and er2. In the correcting operation, as shown in the correcting principle, the code in which the error is detected is inverted among the gray codes g0 to g4.

すなわち、図18及び図19に示すように、グレーコードg4がエラーを出力しているとき、エラー信号er2及びグレーコード信号g1XはHレベル、グレーコード信号g2はLレベルとなり、NAND回路30aの出力信号はLレベルとなる。すると、EOR回路32a及びインバータ回路33cの動作により、グレーコードg4が反転された訂正グレーコードg4Zが出力される。   That is, as shown in FIGS. 18 and 19, when the gray code g4 outputs an error, the error signal er2 and the gray code signal g1X are at the H level and the gray code signal g2 is at the L level, and the output of the NAND circuit 30a The signal becomes L level. Then, the corrected gray code g4Z obtained by inverting the gray code g4 is output by the operations of the EOR circuit 32a and the inverter circuit 33c.

また、エラー信号er2、グレーコード信号g1X,g2が上記以外の場合には、グレーコードg4は正常であり、NAND回路30aの出力信号はHレベルとなるため、訂正グレーコードg4Zはグレーコードg4と同相となる。   When the error signal er2 and the gray code signals g1X and g2 are other than the above, the gray code g4 is normal and the output signal of the NAND circuit 30a is at the H level, so the corrected gray code g4Z is the gray code g4. Be in phase.

グレーコードg3がエラーを出力しているとき、エラー信号er2及びグレーコード信号g1X、g2はHレベルとなり、NAND回路30aの出力信号はLレベルとなる。すると、EOR回路32b及びインバータ回路33dの動作により、グレーコードg3が反転された訂正グレーコードg3Zが出力される。   When the gray code g3 outputs an error, the error signal er2 and the gray code signals g1X and g2 are at H level, and the output signal of the NAND circuit 30a is at L level. Then, the corrected gray code g3Z obtained by inverting the gray code g3 is output by the operations of the EOR circuit 32b and the inverter circuit 33d.

また、エラー信号er2、グレーコード信号g1X,g2が上記以外の場合には、グレーコードg3は正常であり、NAND回路30bの出力信号はHレベルとなるため、訂正グレーコードg3Zはグレーコードg3と同相となる。   When the error signal er2 and the gray code signals g1X and g2 are other than the above, the gray code g3 is normal and the output signal of the NAND circuit 30b is at the H level, so the corrected gray code g3Z is the gray code g3. Be in phase.

グレーコードg2がエラーを出力しているとき、エラー信号er2及びグレーコード信号g1はHレベルとなり、NAND回路30cの出力信号はLレベルとなる。すると、EOR回路32c及びインバータ回路33eの動作により、グレーコードg2が反転された訂正グレーコードg2Zが出力される。   When the gray code g2 outputs an error, the error signal er2 and the gray code signal g1 are at H level, and the output signal of the NAND circuit 30c is at L level. Then, the corrected gray code g2Z obtained by inverting the gray code g2 is output by the operations of the EOR circuit 32c and the inverter circuit 33e.

また、エラー信号er2、グレーコード信号g1が上記以外の場合には、グレーコードg2は正常であり、NAND回路30cの出力信号はHレベルとなるため、訂正グレーコードg2Zはグレーコードg2と同相となる。   When the error signal er2 and the gray code signal g1 are other than the above, the gray code g2 is normal and the output signal of the NAND circuit 30c is at the H level, so the corrected gray code g2Z is in phase with the gray code g2. Become.

グレーコードg1がエラーを出力しているとき、エラー信号er1はHレベルとなり、インバータ回路33bの出力信号はLレベルとなる。すると、EOR回路32d及びインバータ回路33fの動作により、グレーコードg1が反転された訂正グレーコードg1Zが出力される。   When the gray code g1 outputs an error, the error signal er1 becomes H level and the output signal of the inverter circuit 33b becomes L level. Then, the corrected gray code g1Z obtained by inverting the gray code g1 is output by the operations of the EOR circuit 32d and the inverter circuit 33f.

また、エラー信号er2がLレベルの場合には、グレーコードg1は正常であり、インバータ回路33bの出力信号はHレベルとなるため、訂正グレーコードg1Zはグレーコードg1と同相となる。   When the error signal er2 is at L level, the gray code g1 is normal and the output signal of the inverter circuit 33b is at H level, so that the corrected gray code g1Z is in phase with the gray code g1.

グレーコードg0がエラーを出力しているとき、エラー信号er1,er2の少なくともいずれかはHレベルとなり、NOR回路31の出力信号はLレベルとなる。すると、EOR回路32e及びインバータ回路33gの動作により、グレーコードg0が反転された訂正グレーコードg0Zが出力される。   When the gray code g0 outputs an error, at least one of the error signals er1 and er2 becomes H level, and the output signal of the NOR circuit 31 becomes L level. Then, the corrected gray code g0Z obtained by inverting the gray code g0 is output by the operations of the EOR circuit 32e and the inverter circuit 33g.

また、エラー信号er1,er2がともにLレベルの場合には、グレーコードg0は正常であり、NOR回路31の出力信号はHレベルとなるため、訂正グレーコードg0Zはグレーコードg0と同相となる。   When the error signals er1 and er2 are both at the L level, the gray code g0 is normal and the output signal of the NOR circuit 31 is at the H level, so the corrected gray code g0Z is in phase with the gray code g0.

図9に示す前記グレー・バイナリー変換部17は、訂正グレーコードg4ZをバイナリーコードB4Zとして出力し、訂正グレーコードg4Z,g3ZのEOR論理をバイナリーコードB3Zとして出力し、バイナリーコードB3Zと訂正グレーコードg2ZとのEOR論理をバイナリーコードB2Zとして出力し、バイナリーコードB2Zと、訂正グレーコードg1ZとのEOR論理をバイナリーコードB1Zとして出力し、バイナリーコードB1Zと、訂正グレーコードg0ZとのEOR論理をバイナリーコードB0Zとして出力する。   9 outputs the corrected gray code g4Z as the binary code B4Z, outputs the EOR logic of the corrected gray codes g4Z and g3Z as the binary code B3Z, and outputs the binary code B3Z and the corrected gray code g2Z. The EOR logic of the binary code B2Z and the corrected gray code g1Z is output as the binary code B1Z, and the EOR logic of the binary code B1Z and the corrected gray code g0Z is output as the binary code B0Z. Output as.

このような動作により、訂正グレーコードg0Z〜g4ZがバイナリーコードB0Z〜B4Zに変換される。
上記のように構成されたエンコーダでは、次に示す作用効果を得ることができる。
By such an operation, the corrected gray codes g0Z to g4Z are converted into binary codes B0Z to B4Z.
With the encoder configured as described above, the following operational effects can be obtained.

(1)入力されるサーモメータコードe1〜e31にb1タイプ、b2Hタイプあるいはb2Lタイプのバブルエラーが含まれていても、そのバブルエラーを訂正したバイナリーコードB0Z〜B4Zを生成することができる。   (1) Even if b1 type, b2H type, or b2L type bubble errors are included in the input thermometer codes e1 to e31, binary codes B0Z to B4Z in which the bubble errors are corrected can be generated.

(2)第一のエンコード部11を構成する論理境界検出回路は、インバータ回路とNOR回路とからなる3入力回路で構成され、サーモメータコードe1〜e31のうち奇数番のサーモメータコードが入力されるので、b1タイプのバブルエラーは訂正せず、b2Hタイプのバブルエラーはb1タイプのバブルエラーが入力された場合と同等となるように訂正することができ、b2Lタイプのバブルエラーを確からしい値に訂正することができる。   (2) The logical boundary detection circuit constituting the first encoding unit 11 is constituted by a three-input circuit including an inverter circuit and a NOR circuit, and an odd-numbered thermometer code among the thermometer codes e1 to e31 is input. Therefore, b1 type bubble error is not corrected, b2H type bubble error can be corrected to be equivalent to the case where b1 type bubble error is input, and b2L type bubble error is a probable value. Can be corrected.

(3)第二及び第三のエンコード部12,13を構成する論理境界検出回路は、インバータ回路とNOR回路とからなる3入力回路で構成され、サーモメータコードe1〜e31のうち偶数番のサーモメータコードと、そのサーモメータコードのOR論理が入力されるので、b1タイプのバブルエラーは訂正せず、b2Hタイプのバブルエラーはb1タイプのバブルエラーが入力された場合と同等となるように訂正することができ、b2Lタイプのバブルエラーを確からしい値に訂正することができる。   (3) The logical boundary detection circuit constituting the second and third encoding units 12 and 13 is composed of a three-input circuit including an inverter circuit and a NOR circuit, and an even-numbered thermometer among the thermometer codes e1 to e31. Since the meter code and the OR logic of the thermometer code are input, the b1 type bubble error is not corrected, and the b2H type bubble error is corrected to be equivalent to the case where the b1 type bubble error is input. The b2L type bubble error can be corrected to a probable value.

(4)第一のエンコード部11では、論理境界検出回路18a〜18qの出力信号に基づいて動作するROMセル21a〜21qをビット線BL0a,BL0b,BL0Xa,BL0Xbに順次接続することにより、最下位のグレーコードg0を分解した表コードg0a,g0bと、その裏コードg0Xa,g0Xbとを生成することができる。   (4) In the first encoding unit 11, the ROM cells 21a to 21q that operate based on the output signals of the logic boundary detection circuits 18a to 18q are sequentially connected to the bit lines BL0a, BL0b, BL0Xa, and BL0Xb. Table codes g0a and g0b obtained by decomposing the gray code g0 and back codes g0Xa and g0Xb can be generated.

(5)第二のエンコード部12では、論理境界検出回路22a〜22iの出力信号に基づいて動作するROMセル23a〜23iをビット線BL1,BL1Xに順次接続することにより、下位から2番目のグレーコードg1と、その裏コードg1Xとを生成することができる。   (5) In the second encoding unit 12, the ROM cells 23a to 23i that operate based on the output signals of the logic boundary detection circuits 22a to 22i are sequentially connected to the bit lines BL1 and BL1X, so that the second gray level from the bottom is obtained. The code g1 and the back code g1X can be generated.

(6)第三のエンコード部13では、論理境界検出回路24a〜24hの出力信号に基づいて動作するROMセル23a〜23iをビット線BL1,BL1Xに順次接続することにより、下位から2番目のグレーコードg1と、その裏コードg1Xとを10進値において2つ上位側へシフトさせた信号、すなわちバイナリーコードB2と同等の信号を生成することができる。また、各論理境界検出回路24a〜24hから論理境界検出信号ga〜ghを出力することができる。   (6) In the third encoding unit 13, the ROM cells 23a to 23i that operate based on the output signals of the logic boundary detection circuits 24a to 24h are sequentially connected to the bit lines BL1 and BL1X, so that the second gray level from the lower order is displayed. A signal obtained by shifting the code g1 and the back code g1X by two in the decimal value, that is, a signal equivalent to the binary code B2 can be generated. Further, the logical boundary detection signals ga to gh can be output from the logical boundary detection circuits 24a to 24h.

(7)第四のエンコード部14では、第三のエンコード部13で生成された論理境界検出信号gb〜ghを論理処理することにより下位から3番目から5番目のグレーコードg2〜g4を生成することができる。また、第一のエンコード部11で生成されたグレーコードg0a,g0b,g0Xa,g0Xbを論理処理することにより、最下位のグレーコードg0を生成することができる。   (7) The fourth encoding unit 14 performs logic processing on the logical boundary detection signals gb to gh generated by the third encoding unit 13 to generate the third to fifth gray codes g2 to g4 from the lower order. be able to. Further, the lowest gray code g0 can be generated by logically processing the gray codes g0a, g0b, g0Xa, and g0Xb generated by the first encoding unit 11.

(8)エラー信号生成部15では、第一〜第三のエンコード部11,12,13の出力信号を論理処理することにより、図47に示すエラー検出原理に基づいてエラー検出を行い、エラーが存在するときにはHレベルのエラー信号er1,er2を生成することができる。   (8) The error signal generation unit 15 performs error detection on the basis of the error detection principle shown in FIG. 47 by logically processing the output signals of the first to third encoding units 11, 12, and 13, and an error is detected. When present, the H level error signals er1 and er2 can be generated.

(9)エラー訂正部16では、前記エラー信号er1,er2と、グレーコード信号g1,g1X,g2とに基づいて、タイプb1のエラーを含むグレーコードg0〜g4に訂正を施して、訂正グレーコードg0Z〜g4Zを生成することができる。   (9) The error correction unit 16 corrects the gray codes g0 to g4 including the type b1 error based on the error signals er1 and er2 and the gray code signals g1, g1X, and g2, thereby correcting the corrected gray code. g0Z to g4Z can be generated.

(10)グレー・バイナリー変換部17では、訂正グレーコードg0Z〜g4ZをバイナリーコードB0Z〜B4Zに変換することができる。
(11)第一のエンコード部11の4本のビット線BL0a,BL0b,BL0Xa,BL0Xbには、プリチャージ回路38a〜38dが接続されて、いずれか一本のビット線から出力されるLレベルのグレーコードにより、他の3本のビット線が電源Vccレベルにプリチャージされる。従って、サーモメータコードe1〜e31をグレーコードg0a,g0b,g0Xa,g0Xbにエンコードする動作と並行してビット線のプリチャージ動作を行うことができる。
(10) The gray / binary conversion unit 17 can convert the corrected gray codes g0Z to g4Z into binary codes B0Z to B4Z.
(11) The precharge circuits 38a to 38d are connected to the four bit lines BL0a, BL0b, BL0Xa, and BL0Xb of the first encoding unit 11, and the L level output from any one bit line The other three bit lines are precharged to the power supply Vcc level by the gray code. Accordingly, the bit line precharge operation can be performed in parallel with the operation of encoding the thermometer codes e1 to e31 into the gray codes g0a, g0b, g0Xa, and g0Xb.

(12)第二及び第三のエンコード部12,13の各ビット線BL1,BL1X、BL2a,BL2bにはプリチャージ回路36,37のいずれかが接続されて、一方のビット線から出力されるLレベルの信号に基づいて、他方のビット線がプリチャージされる。従って、サーモメータコードe2〜e30をグレーコードg1,g1X及びバイナリーコードg2a,g2bにエンコードする動作と並行してビット線のプリチャージ動作を行うことができる。   (12) Each of the bit lines BL1, BL1X, BL2a, BL2b of the second and third encoding units 12, 13 is connected to one of the precharge circuits 36, 37, and is output from one bit line. The other bit line is precharged based on the level signal. Accordingly, the bit line precharge operation can be performed in parallel with the operation of encoding the thermometer codes e2 to e30 into the gray codes g1 and g1X and the binary codes g2a and g2b.

(13)サーモメータコードのエンコード動作と、ビット線のプリチャージ動作とを並行して行うことができるので、エンコード動作の1サイクル中にプリチャージのための時間を設定する必要がない。従って、エンコード動作の高速化を図ることができる。   (13) Since the thermometer code encode operation and the bit line precharge operation can be performed in parallel, it is not necessary to set a precharge time during one cycle of the encode operation. Therefore, the encoding operation can be speeded up.

(14)第一のエンコード部11では、ビット線が4本に分割され、各ビット線にそれぞれ同数のROMセルが接続されるので、各ビット線に接続されるROMセルの数が少なくなる。従って、各ROMセルに対する負荷を軽減することができるので、エンコード動作を高速化することができる。また、図42,43に示すエンコード部とは異なり、上記実施の形態では各論理境界検出回路にそれぞれ一つずつのROMセルが接続されるため、各論理境界検出回路の負荷が一定となる。従って、各論理境界検出回路の負荷条件の差に基づくエラーの発生を防止することができる。   (14) In the first encoding unit 11, the bit lines are divided into four, and the same number of ROM cells are connected to each bit line, so the number of ROM cells connected to each bit line is reduced. Therefore, the load on each ROM cell can be reduced, and the encoding operation can be speeded up. In addition, unlike the encoding unit shown in FIGS. 42 and 43, in the above embodiment, one ROM cell is connected to each logical boundary detection circuit, so that the load on each logical boundary detection circuit is constant. Therefore, it is possible to prevent the occurrence of an error based on the difference in load conditions of each logical boundary detection circuit.

(15)図45に示す通常のグレーコード方式のエンコーダに比して、上記実施の形態では、グレーコードg0a,g0b,g1の裏コードを設定するために、論理境界検出回路及びROMセルの数が増大するが、通常のグレーコード方式のエンコーダは直接バイナリーコードを出力するエンコーダに比して論理境界検出回路及びROMセルの数が削減されているので、上記実施の形態のエンコーダは、直接バイナリーコードを出力するエンコーダより素子数及び回路面積を増大させるものではない。   (15) Compared to the normal gray code encoder shown in FIG. 45, in the above embodiment, the number of logic boundary detection circuits and ROM cells is set in order to set the back codes of gray codes g0a, g0b, and g1. However, since the number of logic boundary detection circuits and ROM cells is reduced in a normal gray code encoder as compared with an encoder that directly outputs a binary code, the encoder of the above embodiment is not directly binary. It does not increase the number of elements and the circuit area compared to an encoder that outputs a code.

(16)エラー信号生成部15で生成されたエラー信号er1,er2が、エラー信号出力端子から外部へ出力される。そして、このA/D変換器の動作試験を行う際に、このエラー信号er1,er2を試験装置で検出することにより、サーモメータコードe1〜e31にエラーが発生しているか否かを容易に検出することができる。   (16) The error signals er1 and er2 generated by the error signal generation unit 15 are output from the error signal output terminal to the outside. Then, when performing an operation test of the A / D converter, the error signals er1 and er2 are detected by a test device, thereby easily detecting whether or not an error has occurred in the thermometer codes e1 to e31. can do.

従来のA/D変換器の動作試験では、バイナリーコードのデジタル出力信号に基づいて、サーモメータコードのエラーの有無を検出している。すなわち、サーモメータコードのエラーによるデジタル出力信号のリニアリティあるいはS/N比の悪化を、周波数成分のスペクトラムを求める高速フーリエ変換処理等を行って検出することにより、デジタル出力信号からサーモメータコードのエラーを検出している。   In a conventional A / D converter operation test, the presence or absence of an error in a thermometer code is detected based on a binary code digital output signal. That is, by detecting the linearity of the digital output signal due to the thermometer code error or the deterioration of the S / N ratio by performing a fast Fourier transform process for obtaining the spectrum of the frequency component, the error of the thermometer code from the digital output signal is detected. Is detected.

従って、本実施の形態では、従来のような高速フーリエ変換処理等の複雑な処理を行うことなく、A/D変換器の動作試験を行うことができるので、試験コストを低減することができる。   Therefore, in this embodiment, the operation test of the A / D converter can be performed without performing complicated processing such as the conventional fast Fourier transform processing, so that the test cost can be reduced.

(第二の実施の形態)
図21は、この発明を具体化したエンコーダの第二の実施の形態を示す。この実施の形態は、第一〜第四のエンコード部41〜44と、エラー信号生成部45と、グレー・バイナリー変換部46とから構成される。
(Second embodiment)
FIG. 21 shows a second embodiment of an encoder embodying the present invention. This embodiment includes first to fourth encoding units 41 to 44, an error signal generation unit 45, and a gray binary conversion unit 46.

前記第一〜第三のエンコード部41〜43及びエラー信号生成部45は、前記第一の実施の形態と同様な構成であるので、その説明を省略する。図23に示す前記第四のエンコード部44は、第三のエンコード部43から出力される論理境界検出信号gb,gc,gf,ggをNOR回路47a,47b及びNAND回路48で論理処理することにより、グレーコードg2を生成するものであり、前記第一の実施の形態の第四のエンコード部14でグレーコードg2を生成する回路と同様である。   Since the first to third encoding units 41 to 43 and the error signal generation unit 45 have the same configuration as that of the first embodiment, description thereof is omitted. The fourth encoding unit 44 shown in FIG. 23 logically processes the logical boundary detection signals gb, gc, gf, and gg output from the third encoding unit 43 by the NOR circuits 47a and 47b and the NAND circuit 48. The gray code g2 is generated, and is the same as the circuit that generates the gray code g2 in the fourth encoding unit 14 of the first embodiment.

グレー・バイナリー変換部46は、前記第一の実施の形態のエラー訂正部16と、グレー・バイナリー変換部17との機能を併せ持つものであり、前記第一〜第四のエンコード部41〜44及びエラー信号生成部45で生成された信号に基づいて、バイナリーコードB0Z〜B4Zを生成するものである。   The gray binary conversion unit 46 has the functions of the error correction unit 16 and the gray binary conversion unit 17 of the first embodiment, and the first to fourth encoding units 41 to 44 and Based on the signal generated by the error signal generator 45, binary codes B0Z to B4Z are generated.

図22に示すように、グレーコードg2はインバータ回路49aで反転されてNAND回路50aに入力され、そのNAND回路50aにはグレーコードg1X、エラー信号er2が入力される。前記NAND回路50aの出力信号はEOR回路52aに入力される。   As shown in FIG. 22, the gray code g2 is inverted by the inverter circuit 49a and input to the NAND circuit 50a, and the gray code g1X and the error signal er2 are input to the NAND circuit 50a. The output signal of the NAND circuit 50a is input to the EOR circuit 52a.

前記論理境界検出信号gf,geは、NOR回路51aに入力され、前記論理境界検出信号gh,ggは、NOR回路51bに入力され、前記論理境界検出信号gd,gcは、NOR回路51cに入力される。   The logical boundary detection signals gf and ge are input to the NOR circuit 51a, the logical boundary detection signals gh and gg are input to the NOR circuit 51b, and the logical boundary detection signals gd and gc are input to the NOR circuit 51c. The

前記NOR回路51a,51bの出力信号は、NAND回路50bに入力され、そのNAND回路50bの出力信号は前記EOR回路52aに入力される。そして、前記EOR回路52aの出力信号がインバータ回路49bで反転されて、バイナリーコードB4Zとして出力される。NAND回路50a,50bは、エラーを訂正したバイナリーコードB4Zを生成するためのバイナリーコードを出力する。   The output signals of the NOR circuits 51a and 51b are input to the NAND circuit 50b, and the output signal of the NAND circuit 50b is input to the EOR circuit 52a. The output signal of the EOR circuit 52a is inverted by the inverter circuit 49b and output as a binary code B4Z. The NAND circuits 50a and 50b output a binary code for generating a binary code B4Z in which an error is corrected.

前記NOR回路51b,51cの出力信号は、NAND回路50cに入力され、そのNAND回路50cの出力信号はEOR回路52bに入力される。
グレーコードg1X及びエラー信号er2は、NAND回路50dに入力され、そのNAND回路50dの出力信号は前記EOR回路52bに入力される。そして、前記EOR回路52bの出力信号がインバータ回路49cで反転されて、バイナリーコードB3Zとして出力される。
The output signals of the NOR circuits 51b and 51c are input to the NAND circuit 50c, and the output signal of the NAND circuit 50c is input to the EOR circuit 52b.
The gray code g1X and the error signal er2 are input to the NAND circuit 50d, and the output signal of the NAND circuit 50d is input to the EOR circuit 52b. The output signal of the EOR circuit 52b is inverted by the inverter circuit 49c and output as a binary code B3Z.

NAND回路50c,50dは、エラーを訂正したバイナリーコードB3Zを生成するためのバイナリーコードを出力する。
前記第三のエンコード部43で生成されるバイナリーコードg2aは、EOR回路52cに入力され、前記エラー信号er2はインバータ回路49dで反転されて、EOR回路52cに入力される。
The NAND circuits 50c and 50d output a binary code for generating a binary code B3Z in which an error is corrected.
The binary code g2a generated by the third encoding unit 43 is input to the EOR circuit 52c, and the error signal er2 is inverted by the inverter circuit 49d and input to the EOR circuit 52c.

前記EOR回路52cの出力信号はインバータ回路49fで反転されて、バイナリーコードB2Zとして出力されるとともに、EOR回路52eに入力される。
前記グレーコードg1は、EOR回路52dに入力され、前記エラー信号er1はインバータ回路49eで反転されて、EOR回路52dに入力される。前記EOR回路52dの出力信号は、インバータ回路49gで反転されて前記EOR回路52eに入力される。そして、前記EOR回路52eからバイナリーコードB1Zが出力される。
The output signal of the EOR circuit 52c is inverted by the inverter circuit 49f and output as the binary code B2Z and also input to the EOR circuit 52e.
The gray code g1 is input to the EOR circuit 52d, and the error signal er1 is inverted by the inverter circuit 49e and input to the EOR circuit 52d. The output signal of the EOR circuit 52d is inverted by the inverter circuit 49g and input to the EOR circuit 52e. A binary code B1Z is output from the EOR circuit 52e.

インバータ回路49f,49gは、バイナリーコードB1Zを生成するためのバイナリーコードを出力する。
前記第一のエンコード部41で生成されるグレーコードg0a,g0bは、NAND回路50eに入力され、そのNAND回路50eの出力信号がEOR回路52gに入力される。
Inverter circuit 49f, 49 g outputs a binary code to generate a binary code B1Z.
The gray codes g0a and g0b generated by the first encoding unit 41 are input to the NAND circuit 50e, and the output signal of the NAND circuit 50e is input to the EOR circuit 52g.

前記バイナリーコードg2a及びグレーコードg1はEOR回路52fに入力され、そのEOR回路52fの出力信号がインバータ回路49hで反転されて前記EOR回路52gに入力される。そして、前記EOR回路52gからバイナリーコードB0Zが出力される。   The binary code g2a and the gray code g1 are input to the EOR circuit 52f, and the output signal of the EOR circuit 52f is inverted by the inverter circuit 49h and input to the EOR circuit 52g. A binary code B0Z is output from the EOR circuit 52g.

NAND回路50e及びインバータ回路49hは、バイナリーコードB0Zを生成するためのバイナリーコードを出力する。
また、グレーコードg0b,g0a,g0Xa,g0Xb,g1及びバイナリーコードg2aに基づいて、インバータ回路49i,49j、NOR回路51d〜51i及びNAND回路50fの論理処理に基づいて、バイナリーコードB0が出力される。このバイナリーコードB0は、第一〜第三のエンコード部41〜43で生成された信号にバブルエラーに基づくエラーが含まれていても、そのエラーが訂正されない。
The NAND circuit 50e and the inverter circuit 49h output a binary code for generating the binary code B0Z.
Further, based on the gray codes g0b, g0a, g0Xa, g0Xb, g1 and the binary code g2a, the binary code B0 is output based on the logical processing of the inverter circuits 49i and 49j, the NOR circuits 51d to 51i, and the NAND circuit 50f. . Even if the binary code B0 includes an error based on a bubble error in the signals generated by the first to third encoding units 41 to 43, the error is not corrected.

次に、上記のように構成されたエンコーダの動作を説明する。前記第一〜第四のエンコード部41〜44は、前記第一の実施の形態の第一〜第四のエンコード部11〜14の動作と同様に、図26に示すようにタイプb2Hのバブルエラーを含むサーモメータコードe1〜e31が入力されると、図25に示すタイプb1のバブルエラーが入力されたときと同等の信号を出力し、図27に示すようにタイプb2Lのバブルエラーを含むサーモメータコードe1〜e31が入力されると、そのエラーを完全に訂正した信号を出力し、図25に示すようにタイプb1のバブルエラーを含むサーモメータコードe1〜e31が入力されると、そのエラーを含む信号を出力する。   Next, the operation of the encoder configured as described above will be described. As in the operation of the first to fourth encoding units 11 to 14 of the first embodiment, the first to fourth encoding units 41 to 44 are of type b2H bubble error as shown in FIG. When a thermometer code e1 to e31 including is input, a signal equivalent to that when a type b1 bubble error shown in FIG. 25 is input is output, and as shown in FIG. 27, a thermostat including a type b2L bubble error is output. When meter codes e1 to e31 are input, a signal in which the error is completely corrected is output. When thermometer codes e1 to e31 including a bubble error of type b1 are input as shown in FIG. A signal containing is output.

また、エラー信号生成部45では第一の実施の形態のエラー信号生成部15と同様なエラー信号er1,er2を生成する。
グレー・バイナリー変換部46では、論理境界検出信号gf,ge,gh,ggに基づくNOR回路51a,51b及びNAND回路50bの論理処理により、バイナリーコードが生成される。図24に示すように、入力されるサーモメータコードe1〜e31にバブルエラーが含まれていないときには、エラー信号er2がLレベルとなるため、NAND回路50aの出力信号はHレベルとなる。すると、NAND回路50bの出力信号と同相の信号がバイナリーコードB4Zとして出力される。
Further, the error signal generation unit 45 generates error signals er1 and er2 similar to the error signal generation unit 15 of the first embodiment.
In the gray / binary conversion unit 46, a binary code is generated by logical processing of the NOR circuits 51a and 51b and the NAND circuit 50b based on the logical boundary detection signals gf, ge, gh, and gg. As shown in FIG. 24, when a bubble error is not included in the input thermometer codes e1 to e31, the error signal er2 becomes L level, so that the output signal of the NAND circuit 50a becomes H level. Then, a signal in phase with the output signal of the NAND circuit 50b is output as the binary code B4Z.

また、図22及び図25に示すように、エラー信号er2がHレベルとなって、グレーコードg2がLレベル、グレーコードg1XがHレベルとなったとき、NAND回路50bの出力信号が反転されて、バイナリーコードB4Zとして出力される。グレーコードg2,g1X及びエラー信号er2が上記条件以外では、NAND回路50bの出力信号と同相の信号がバイナリーコードB4Zとして出力される。   Further, as shown in FIGS. 22 and 25, when the error signal er2 becomes H level, the gray code g2 becomes L level, and the gray code g1X becomes H level, the output signal of the NAND circuit 50b is inverted. Are output as binary code B4Z. When the gray codes g2 and g1X and the error signal er2 are other than the above conditions, a signal in phase with the output signal of the NAND circuit 50b is output as the binary code B4Z.

論理境界検出信号gh,gg,gd,gcに基づくNOR回路51b,51c及びNAND回路50cの論理処理により、バイナリーコードが生成され、エラー信号er2がLレベルであれば、NAND回路50cの出力信号と同相の信号がバイナリーコードB3Zとして出力される。   If a binary code is generated by the logical processing of the NOR circuits 51b and 51c and the NAND circuit 50c based on the logical boundary detection signals gh, gg, gd, and gc, and the error signal er2 is at the L level, the output signal of the NAND circuit 50c An in-phase signal is output as a binary code B3Z.

また、図22及び図25に示すように、エラー信号er2及びグレーコードg1XがともにHレベルとなると、NAND回路50cの出力信号が反転されて、バイナリーコードB3Zとして出力される。   As shown in FIGS. 22 and 25, when both the error signal er2 and the gray code g1X become H level, the output signal of the NAND circuit 50c is inverted and output as the binary code B3Z.

バイナリーコードB2Zは、エラー信号er2がLレベルのとき、バイナリーコードg2aと同相の信号が出力され、エラー信号er2がHレベルのとき、バイナリーコードg2aの反転信号となる。   The binary code B2Z is a signal in phase with the binary code g2a when the error signal er2 is at the L level, and becomes an inverted signal of the binary code g2a when the error signal er2 is at the H level.

バイナリーコードB1Zは、バイナリーコードB2ZがHレベルであって、エラー信号er1がLレベルのとき、グレーコードg1の反転信号となり、エラー信号er1がHレベルのとき、グレーコードg1と同相の信号となる。また、バイナリーコードB2ZがLレベルであって、エラー信号er1がLレベルのとき、グレーコードg1のと同相信号となり、エラー信号er1がHレベルのとき、グレーコードg1の反転信号となる。   The binary code B1Z becomes an inverted signal of the gray code g1 when the binary code B2Z is at the H level and the error signal er1 is at the L level, and becomes a signal in phase with the gray code g1 when the error signal er1 is at the H level. . When the binary code B2Z is at L level and the error signal er1 is at L level, the signal is in phase with the gray code g1, and when the error signal er1 is at H level, it is an inverted signal of the gray code g1.

バイナリーコードB0Zは、グレーコードg1及びバイナリーコードg2aがともにHレベル、あるいはともにLレベルであるとき、グレーコードg0a,g0bがともにHレベルとなるとHレベルとなり、グレーコードg0a,g0bの少なくともいずれかがLレベルとなると、Lレベルとなる。   The binary code B0Z is at the H level when both the gray code g1 and the binary code g2a are at the H level or the L level, and when both the gray codes g0a and g0b are at the H level, and at least one of the gray codes g0a and g0b is present. When it becomes L level, it becomes L level.

また、グレーコードg1及びバイナリーコードg2aの一方がHレベル、他方がLレベルであるとき、グレーコードg0a,g0bがともにHレベルとなるとLレベルとなり、グレーコードg0a,g0bの少なくともいずれかがLレベルとなると、Hレベルとなる。   Further, when one of the gray code g1 and the binary code g2a is at the H level and the other is at the L level, the gray code g0a and g0b are both at the L level, and at least one of the gray codes g0a and g0b is at the L level. Then, it becomes H level.

上記のような動作により、図24〜図27に示すように、サーモメータコードe1〜e31にバブルエラーが含まれていても、エラーが訂正されたバイナリーコードB0Z〜B4Zが出力される。   By the above operation, as shown in FIGS. 24 to 27, even if the thermometer codes e1 to e31 include a bubble error, binary codes B0Z to B4Z in which the error is corrected are output.

前記第二及び第三のエンコード部42,43のビット線BL1,BL1X及びビット線BL2a,BL2bには、図28に示すプリチャージ回路53が接続される。
前記プリチャージ回路53は、前記プリチャージ回路36にNチャネルMOSトランジスタ54〜57を付加した構成である。前記トランジスタ54のドレイン及びゲートは、ビット線BL1に接続され、前記トランジスタ55のドレイン及びゲートは、ビット線BL1Xに接続される。
A precharge circuit 53 shown in FIG. 28 is connected to the bit lines BL1 and BL1X and the bit lines BL2a and BL2b of the second and third encoding units 42 and 43, respectively.
The precharge circuit 53 is configured by adding N-channel MOS transistors 54 to 57 to the precharge circuit 36. The drain and gate of the transistor 54 are connected to the bit line BL1, and the drain and gate of the transistor 55 are connected to the bit line BL1X.

前記トランジスタ57のソースはビット線BL1に接続され、前記トランジスタ55のソースはビット線BL1Xに接続される。
前記トランジスタ54,56のソースと、前記トランジスタ55,57のドレインとは互いに接続されるとともに、トランジスタ55,57のゲートに接続される。
The source of the transistor 57 is connected to the bit line BL1, and the source of the transistor 55 is connected to the bit line BL1X.
The sources of the transistors 54 and 56 and the drains of the transistors 55 and 57 are connected to each other and to the gates of the transistors 55 and 57.

このようなプリチャージ回路53では、その動作により例えばビット線BL1がHレベル、ビット線BL1XがLレベルとなると、トランジスタ54,55がオンされ、トランジスタ56,57がオフされる。このとき、各トランジスタ54,55はドレインとゲートとが接続されているので、ダイオードとして動作し、ビット線BL1,BL1Xの電位差は、トランジスタ54,55のしきい値分にクランプされる。   In such a precharge circuit 53, for example, when the bit line BL1 becomes H level and the bit line BL1X becomes L level by the operation, the transistors 54 and 55 are turned on and the transistors 56 and 57 are turned off. At this time, since the drains and the gates of the transistors 54 and 55 are connected, they operate as diodes, and the potential difference between the bit lines BL1 and BL1X is clamped to the threshold value of the transistors 54 and 55.

また、ビット線BL1がLレベル、ビット線BL1XがHレベルとなると、トランジスタ54,55がオフされ、トランジスタ56,57がオンされる。このとき、各トランジスタ56,57はドレインとゲートとが接続されているので、ダイオードとして動作し、ビット線BL1,BL1Xの電位差は、トランジスタ56,57のしきい値分にクランプされる。   When the bit line BL1 is at L level and the bit line BL1X is at H level, the transistors 54 and 55 are turned off and the transistors 56 and 57 are turned on. At this time, since the drains and the gates of the transistors 56 and 57 are connected, they operate as diodes, and the potential difference between the bit lines BL1 and BL1X is clamped to the threshold value of the transistors 56 and 57.

なお、上記プリチャージ回路53は、前記第一の実施の形態の第二及び第三のエンコード部12,13のビット線のプリチャージ回路として使用することもできる。
上記のように構成されたエンコーダでは、第一の実施の形態のエンコーダで得られる作用効果に加えて、次に示す作用効果を得ることができる。
The precharge circuit 53 can also be used as a precharge circuit for bit lines of the second and third encoding units 12 and 13 of the first embodiment.
In the encoder configured as described above, the following operational effects can be obtained in addition to the operational effects obtained by the encoder of the first embodiment.

(1)第一の実施の形態で生成した訂正グレーコードG0Z〜G4Zを生成することなく、第一〜第四のエンコード部41〜44で生成された信号に基づいて、エラー訂正と並行して、バイナリーコードB0Z〜B4Zを生成することができる。従って、図9に示すようなグレー・バイナリー変換部17を必要とすることなく、バイナリーコードB0Z〜B4Zを生成することができるので、回路規模を縮小することができる。   (1) In parallel with error correction based on the signals generated by the first to fourth encoding units 41 to 44 without generating the corrected gray codes G0Z to G4Z generated in the first embodiment. , Binary codes B0Z to B4Z can be generated. Therefore, since the binary codes B0Z to B4Z can be generated without the need for the gray / binary conversion unit 17 as shown in FIG. 9, the circuit scale can be reduced.

(2)図9に示すグレー・バイナリー変換部17では、バイナリーコードB0Z〜B4Zの下位ビットほど論理回路の段数が増大して出力速度が遅くなり、最下位ビットの出力速度により、エンコーダの動作速度が決定されるが、この実施の形態では、上記グレー・バイナリー変換部17を使用することなく、バイナリーコードB0Z〜B4Zを生成することができるので、エンコーダの動作速度を高速化することができる。   (2) In the gray / binary conversion unit 17 shown in FIG. 9, the number of logic circuit stages increases as the lower bits of the binary codes B0Z to B4Z, and the output speed decreases, and the operation speed of the encoder depends on the output speed of the least significant bit. However, in this embodiment, since the binary codes B0Z to B4Z can be generated without using the gray / binary conversion unit 17, the operation speed of the encoder can be increased.

(3)グレー・バイナリー変換部46は、第一〜第四のエンコード部41〜44で生成される分解グレーコード及び分解バイナリーコードのうち、3ビット以内の分解グレーコード及び分解バイナリーコードに基づいて、バイナリーコードB0Z〜B4Zを生成することができる。従って、上位のバイナリーコードの生成と並行して下位のバイナリーコードを生成することができるので、エンコーダの動作速度を高速化することができる。   (3) The gray / binary conversion unit 46 is based on the decomposition gray code and the decomposition binary code within 3 bits among the decomposition gray code and the decomposition binary code generated by the first to fourth encoding units 41 to 44. , Binary codes B0Z to B4Z can be generated. Accordingly, since the lower binary code can be generated in parallel with the generation of the upper binary code, the operation speed of the encoder can be increased.

(4)プリチャージ回路53でプリチャージされるビット線の振幅は、NチャネルMOSトランジスタ2個分のしきい値以下にクランプされるので、ROMセルによるビット線電位の引き下げ速度を向上させることができる。従って、エンコーダの動作速度を向上させることができる。   (4) Since the amplitude of the bit line precharged by the precharge circuit 53 is clamped below the threshold value of two N-channel MOS transistors, the bit line potential pulling speed of the ROM cell can be improved. it can. Therefore, the operation speed of the encoder can be improved.

なお、ビット線のクランプレベルは、ダイオード接続するNチャネルMOSトランジスタの段数を変更することにより調整可能である。また、NチャネルMOSトランジスタに換えて、PNジャンクションダイオードを使用してもよい。   The clamp level of the bit line can be adjusted by changing the number of diode-connected N channel MOS transistors. Further, a PN junction diode may be used in place of the N-channel MOS transistor.

(第三の実施の形態)
この実施の形態は、前記第一の実施の形態のエラー訂正動作をプログラムに基づいて動作するコンピュータを使用して行うようにしたものであり、便宜的に3ビットのバイナリーコードのデジタル信号B0Z〜B3Zを生成するエンコーダとして説明する。
(Third embodiment)
In this embodiment, the error correction operation of the first embodiment is performed using a computer that operates based on a program. For convenience, a 3-bit binary code digital signal B0Z˜ This will be described as an encoder that generates B3Z.

図29は、この実施の形態のエンコーダの概要を示す。エンコード部61には、サーモメータコードe1〜e7が入力される。前記エンコード部61は、そのサーモメータコードe1〜e7に基づいて、3ビットのグレーコードのデジタル信号G0〜G2を生成して出力する。前記エンコード部61は、例えば図43あるいは図45に示すエンコーダを3ビット構成としたものであり、サーモメータコードe1〜e7に含まれるバブルエラーを訂正する機能を持たない。   FIG. 29 shows an outline of the encoder of this embodiment. Thermometer codes e1 to e7 are input to the encoding unit 61. The encoding unit 61 generates and outputs 3-bit gray code digital signals G0 to G2 based on the thermometer codes e1 to e7. The encoder 61 has, for example, the encoder shown in FIG. 43 or 45 having a 3-bit configuration and does not have a function of correcting bubble errors included in the thermometer codes e1 to e7.

前記エンコード部61から出力されるグレーコードG0〜G3は、コンピュータにてなる演算処理部62に入力される。前記演算処理部62には、処理プログラムを格納したプログラム格納部63が接続されている。   The gray codes G0 to G3 output from the encoding unit 61 are input to an arithmetic processing unit 62 formed by a computer. A program storage unit 63 that stores a processing program is connected to the arithmetic processing unit 62.

そして、演算処理部62は処理プログラムに基づいて動作して、前記グレーコードG0〜G3の下位ビットを分解する分解グレーコード生成手段と、分解された下位ビットと上位ビットとが特定の関係にあるか否かを判定することにより、生成されたグレーコードにエラーが存在するか否かを検出するエラー検出手段と、検出されたエラーを訂正するエラー訂正手段と、訂正されたグレーコードをバイナリーコードのデジタル信号B0〜B2として出力するグレー・バイナリー変換手段として動作する。   The arithmetic processing unit 62 operates based on the processing program, and the decomposed gray code generating means for decomposing the lower bits of the gray codes G0 to G3 has a specific relationship between the decomposed lower bits and the upper bits. An error detecting means for detecting whether or not an error exists in the generated gray code, an error correcting means for correcting the detected error, and the corrected gray code as a binary code. It operates as a gray binary conversion means for outputting as digital signals B0 to B2.

前記演算処理部62は、プログラム格納部63に格納されたプログラムに基づいて、以下のような動作のいずれかでエラー訂正動作を行う。
<第一の動作>
図30〜図32は、前記演算処理部62の第一の動作を示す。演算処理部62にエンコード部61からグレーコードG0〜G2が入力されると、演算処理部62は最下位のグレーコードG0を前記第一の実施の形態と同様な表コードの分解グレーコードg0a,g0bに分解する(ステップ1)。
Based on the program stored in the program storage unit 63, the arithmetic processing unit 62 performs an error correction operation by one of the following operations.
<First action>
30 to 32 show a first operation of the arithmetic processing unit 62. When the gray codes G0 to G2 are input from the encoding unit 61 to the arithmetic processing unit 62, the arithmetic processing unit 62 converts the lowest gray code G0 into a table code decomposition gray code g0a, Decompose into g0b (step 1).

プログラム格納部63には、図31に示すように、正常なグレーコードG0〜G2のうち、最下位のグレーコードG0を分解グレーコードg0a,g0bに分解した場合の各コード及びそのグレーコードに対応するバイナリーコードがあらかじめ格納されている。   As shown in FIG. 31, the program storage unit 63 corresponds to each code when the lowest gray code G0 among the normal gray codes G0 to G2 is decomposed into the decomposed gray codes g0a and g0b and the gray code. Binary code to be stored is stored in advance.

また、図31において分解グレーコードg0bが「1」となるときは、グレーコードG2は必ず「0」となり、分解グレーコードg0aが「1」となるときは、グレーコードG2は必ず「1」となるため、この条件を満足するか否かでエラーの有無が検出可能となる。   In FIG. 31, when the separation gray code g0b is “1”, the gray code G2 is always “0”, and when the separation gray code g0a is “1”, the gray code G2 is always “1”. Therefore, the presence or absence of an error can be detected depending on whether or not this condition is satisfied.

正常なグレーコードG0〜G2が入力されていると、図32に示す正常時の分解グレーコードg0a,g0bと、グレーコードG1,G2が得られる。
次いで、演算処理部62は分解グレーコードg0a,g0bと、グレーコードG2とに基づいてエラー信号を生成する(ステップ2)。このエラー信号生成処理は、エラー信号Ea,Ebを次式で算出するものである。
When normal gray codes G0 to G2 are input, the normal decomposition gray codes g0a and g0b and the gray codes G1 and G2 shown in FIG. 32 are obtained.
Next, the arithmetic processing unit 62 generates an error signal based on the separated gray codes g0a and g0b and the gray code G2 (step 2). In this error signal generation process, error signals Ea and Eb are calculated by the following equations.

Ea=g0a×G2バー
Eb=g0b×G2
{×はAND論理を示す}
すなわち、エラー信号Eaは分解グレーコードg0aが「1」のときの同g0a,G2バーのAND論理をとった信号であり、エラー信号Ebは分解グレーコードg0bが「1」のときの同g0b,G2のAND論理をとった信号である。
Ea = g0a × G2 bar
Eb = g0b × G2
{X indicates AND logic}
That is, the error signal Ea is a signal obtained by ANDing the same g0a and G2 bar when the separated gray code g0a is “1”, and the error signal Eb is the same g0b when the separated gray code g0b is “1”. This signal is the AND logic of G2.

そして、各グレーコードが正常であれば、エラー信号Ea,Ebはいずれも「0」となり、エラーが存在すれば、エラー信号Ea,Ebの一方が「1」となる。
次いで、演算処理部62はエラー信号Ea,Ebの少なくともいずれかが「1」であるか否かによりエラーの有無を判定する(ステップ3)。
If each gray code is normal, the error signals Ea and Eb are both “0”, and if there is an error, one of the error signals Ea and Eb is “1”.
Next, the arithmetic processing unit 62 determines the presence or absence of an error depending on whether or not at least one of the error signals Ea and Eb is “1” (step 3).

エラー信号Ea,Ebがともに「0」であって、エラー無しと判定すると、演算処理部62は入力されたグレーコードG0〜G2を訂正グレーコードg0Z〜g2Zとする(ステップ4)。   When the error signals Ea and Eb are both “0” and it is determined that there is no error, the arithmetic processing unit 62 sets the input gray codes G0 to G2 as corrected gray codes g0Z to g2Z (step 4).

次いで、演算処理部62は訂正グレーコードg0Z〜g2Zにグレー・バイナリー変換を施し、訂正バイナリーコードB0Z〜B2Zを生成して(ステップ5)、エラー訂正動作を終了する。このグレー・バイナリー変換は、第一の実施の形態において図9に示す論理回路で行った論理処理を演算処理部62で行う。   Next, the arithmetic processing unit 62 performs gray / binary conversion on the corrected gray codes g0Z to g2Z, generates corrected binary codes B0Z to B2Z (step 5), and ends the error correction operation. In the gray / binary conversion, the arithmetic processing unit 62 performs the logical processing performed in the logic circuit shown in FIG. 9 in the first embodiment.

一方、ステップ3においてエラー信号Ea,Ebの少なくともいずれかが「1」となって、エラー有りと判定されると、演算処理部62はエラービットの訂正を行う(ステップ6)。   On the other hand, if at least one of the error signals Ea and Eb becomes “1” in step 3 and it is determined that there is an error, the arithmetic processing unit 62 corrects the error bit (step 6).

この訂正動作は、図32に示すようにエラー信号Ea,Ebが「1」となったグレーコードg0a,g0b,G2に次式で示す処理を施して、訂正グレーコードg0Z,g2Zを生成する。   In this correction operation, as shown in FIG. 32, the gray codes g0a, g0b, G2 in which the error signals Ea, Eb are “1” are processed by the following expression to generate corrected gray codes g0Z, g2Z.

g2Z=(Ea+Eb)@G2
g0Z=(Ea+Eb)@(g0a+g0b)
{+はOR論理、@はEOR論理を示す}
すなわち、エラー信号Ea,Ebの少なくともいずれかが「1」であれば、G2が反転されてg2Zが生成されるとともに、「1」となったg0a若しくはg0bが反転されてg0Zが生成される。言い換えれば、エラーとなった各ビットの双方が反転されて、訂正グレーコードg0Z,g2Zが生成される。
g2Z = (Ea + Eb) @ G2
g0Z = (Ea + Eb) @ (g0a + g0b)
{+ Indicates OR logic, @ indicates EOR logic}
That is, if at least one of the error signals Ea and Eb is “1”, G2 is inverted to generate g2Z, and g0a or g0b that has become “1” is inverted to generate g0Z. In other words, both corrected bits are inverted, and corrected gray codes g0Z and g2Z are generated.

次いで、グレーコードG1はそのまま訂正グレーコードg1Zとされて、訂正グレーコードg0Z〜g2Zが生成され、グレー・バイナリー変換が行われて、訂正バイナリーコードB0Z〜B2Zが生成される(ステップ4,5)。   Next, the gray code G1 is directly used as the corrected gray code g1Z, the corrected gray codes g0Z to g2Z are generated, the gray binary conversion is performed, and the corrected binary codes B0Z to B2Z are generated (steps 4 and 5). .

このような動作により、図32に示すように訂正バイナリーコードB0Z〜B2Zは、未訂正グレーコードG0〜G2に基づいて生成される未訂正バイナリーコードB0〜B2に比して、より確からしい値となる。   By such an operation, as shown in FIG. 32, the corrected binary codes B0Z to B2Z are more likely values than the uncorrected binary codes B0 to B2 generated based on the uncorrected gray codes G0 to G2. Become.

<第二の動作>
図33〜図35は、前記演算処理部62の第二の動作を示す。演算処理部62にエンコード部61からグレーコードG0〜G2が入力されると、演算処理部62は最下位のグレーコードG0を前記第一の実施の形態と同様な裏コードの分解グレーコードg0Xa,g0Xbに分解する(ステップ11)。
<Second operation>
33 to 35 show a second operation of the arithmetic processing unit 62. FIG. When the gray codes G0 to G2 are input from the encoding unit 61 to the arithmetic processing unit 62, the arithmetic processing unit 62 converts the lowest gray code G0 into a reverse code decomposition gray code g0Xa, as in the first embodiment. Decompose into g0Xb (step 11).

プログラム格納部63には、図34に示すように、正常なグレーコードG0〜G2のうち、最下位のグレーコードG0を分解グレーコードg0Xa,g0Xbに分解した場合の各コード及びそのグレーコードに対応するバイナリーコードがあらかじめ格納されている。   As shown in FIG. 34, the program storage unit 63 corresponds to each code and its gray code when the lowest gray code G0 among the normal gray codes G0 to G2 is decomposed into the decomposed gray codes g0Xa and g0Xb. Binary code to be stored is stored in advance.

また、図34において分解グレーコードg0Xaが「1」となるときは、グレーコードG1は必ず「0」となり、分解グレーコードg0Xbが「1」となるときは、グレーコードG1は必ず「1」となるため、この条件を満足するか否かでエラーの有無が検出可能となる。   In FIG. 34, when the separation gray code g0Xa is “1”, the gray code G1 is always “0”, and when the separation gray code g0Xb is “1”, the gray code G1 is always “1”. Therefore, the presence or absence of an error can be detected depending on whether or not this condition is satisfied.

正常なグレーコードG0〜G2が入力されていると、図35に示す正常時の分解グレーコードg0Xa,g0Xbと、グレーコードG1,G2が得られる。
次いで、演算処理部62は分解グレーコードg0Xa,g0XbとグレーコードG1とに基づいてエラー信号の生成処理を行う(ステップ12)。このエラー信号生成処理は、エラー信号EXa,EXbを次式で算出するものである。
When normal gray codes G0 to G2 are input, normal gray codes g0Xa and g0Xb and gray codes G1 and G2 shown in FIG. 35 are obtained.
Next, the arithmetic processing unit 62 performs error signal generation processing based on the separated gray codes g0Xa, g0Xb and the gray code G1 (step 12). In this error signal generation process, the error signals EXa and EXb are calculated by the following equations.

EXa=g0Xa×G1
EXb=g0Xb×G1バー
{×はAND論理を示す}
すなわち、エラー信号EXaは分解グレーコードg0Xaが「1」のときの同g0Xa,G1のAND論理をとった信号であり、エラー信号EXbは分解グレーコードg0Xbが「1」のときの同g0Xb,G1バーのAND論理をとった信号である。
EXa = g0Xa × G1
EXb = g0Xb × G1 bar
{X indicates AND logic}
That is, the error signal EXa is an AND logic of the same g0Xa and G1 when the decomposition gray code g0Xa is “1”, and the error signal EXb is the same g0Xb and G1 when the decomposition gray code g0Xb is “1”. It is a signal that takes the AND logic of the bar.

そして、各グレーコードが正常であれば、エラー信号EXa,EXbはいずれも「0」となり、エラーが存在すれば、エラー信号EXa,EXbの一方が「1」となる。
次いで、演算処理部62はエラー信号EXa,EXbの少なくともいずれかが「1」であるか否かによりエラーの有無を判定する(ステップ13)。
If each gray code is normal, the error signals EXa and EXb are both “0”, and if there is an error, one of the error signals EXa and EXb is “1”.
Next, the arithmetic processing unit 62 determines the presence or absence of an error based on whether or not at least one of the error signals EXa and EXb is “1” (step 13).

エラー信号EXa,EXbがともに「0」であって、エラー無しと判定すると、演算処理部62は入力されたグレーコードG0〜G2を訂正グレーコードg0Z〜g2Zとする(ステップ14)。   If the error signals EXa and EXb are both “0” and it is determined that there is no error, the arithmetic processing unit 62 sets the input gray codes G0 to G2 as corrected gray codes g0Z to g2Z (step 14).

次いで、演算処理部62は訂正グレーコードg0Z〜g2Zにグレー・バイナリー変換を施し、訂正バイナリーコードB0Z〜B2Zを生成して(ステップ15)、エラー訂正動作を終了する。   Next, the arithmetic processing unit 62 performs gray / binary conversion on the corrected gray codes g0Z to g2Z, generates corrected binary codes B0Z to B2Z (step 15), and ends the error correction operation.

一方、ステップ13においてエラー信号EXa,EXbの少なくともいずれかが「1」となって、エラー有りと判定されると、演算処理部62はエラービットの訂正を行う(ステップ16)。   On the other hand, if at least one of the error signals EXa and EXb becomes “1” in step 13 and it is determined that there is an error, the arithmetic processing unit 62 corrects the error bit (step 16).

この訂正動作は、図35に示すようにエラー信号EXa,EXbが「1」となったグレーコードg0Xa,g0Xb,G1に次式で示す処理を施して、訂正グレーコードg0Z,g1Zを生成する。   In this correction operation, as shown in FIG. 35, the gray codes g0Xa, g0Xb, and G1 in which the error signals EXa and EXb are “1” are subjected to processing represented by the following expression to generate corrected gray codes g0Z and g1Z.

g1Z=(EXa+EXb)@G1
g0Z=[(EXa+EXb)@(g0Xa+g0Xb)]バー
{+はOR論理、@はEOR論理、バーは反転論理を示す}
すなわち、エラー信号EXa,EXbの少なくともいずれかが「1」であれば、G1が反転されてg1Zが生成されるとともに、「1」となったg0Xa若しくはg0Xbが反転されてg0Zが生成される。言い換えれば、エラーとなった各ビットの双方が反転されて、訂正グレーコードg0Z,g1Zが生成される。
g1Z = (EXa + EXb) @ G1
g0Z = [(EXa + EXb) @ (g0Xa + g0Xb)] bar
{+ Indicates OR logic, @ indicates EOR logic, and bar indicates inverted logic}
That is, if at least one of the error signals EXa and EXb is “1”, G1 is inverted to generate g1Z, and g0Xa or g0Xb that has become “1” is inverted to generate g0Z. In other words, both corrected bits are inverted and corrected gray codes g0Z and g1Z are generated.

次いで、グレーコードG2はそのまま訂正グレーコードg2Zとされて、訂正グレーコードg0Z〜g2Zが生成され、グレー・バイナリー変換が行われて、訂正バイナリーコードB0Z〜B2Zが生成される(ステップ14,15)。   Next, the gray code G2 is directly used as the corrected gray code g2Z, the corrected gray codes g0Z to g2Z are generated, the gray binary conversion is performed, and the corrected binary codes B0Z to B2Z are generated (steps 14 and 15). .

このような動作により、図35に示すように、訂正バイナリーコードB0Z〜B2Zは、未訂正グレーコードG0〜G2に基づいて生成される未訂正バイナリーコードB0〜B2に比して、より確からしい値となる。   By such an operation, as shown in FIG. 35, the corrected binary codes B0Z to B2Z are more likely values than the uncorrected binary codes B0 to B2 generated based on the uncorrected gray codes G0 to G2. It becomes.

<第三の動作>
図36〜図38は、前記演算処理部62の第三の動作を示す。演算処理部62にエンコード部61からグレーコードG0〜G2が入力されると、演算処理部62は最下位のグレーコードG0を前記第一の実施の形態と同様な表コード及び裏コードの分解グレーコードg0a,g0b,g0Xa,g0Xbに分解する(ステップ21)。
<Third operation>
36 to 38 show a third operation of the arithmetic processing unit 62. When the gray codes G0 to G2 are input from the encoding unit 61 to the arithmetic processing unit 62, the arithmetic processing unit 62 converts the lowest gray code G0 into the gray code for the front and back codes similar to that of the first embodiment. The code is decomposed into g0a, g0b, g0Xa, and g0Xb (step 21).

プログラム格納部63には、図37に示すように、正常なグレーコードG0〜G2のうち、最下位のグレーコードG0を分解グレーコードg0a,g0b,g0Xa,g0Xbに分解した場合の各コード及びそのグレーコードに対応するバイナリーコードがあらかじめ格納されている。   As shown in FIG. 37, the program storage unit 63 stores each code when the lowest gray code G0 among the normal gray codes G0 to G2 is decomposed into decomposed gray codes g0a, g0b, g0Xa, and g0Xb, and the codes thereof. A binary code corresponding to the gray code is stored in advance.

また、図37において分解グレーコードg0bが「1」となるときは、グレーコードG2は必ず「0」となり、分解グレーコードg0aが「1」となるときは、グレーコードG2は必ず「1」となり、分解グレーコードg0Xaが「1」となるときは、グレーコードG1は必ず「0」となり、分解グレーコードg0Xbが「1」となるときは、グレーコードG1は必ず「1」となるため、この条件を満足するか否かでエラーの有無が検出可能となる。   In FIG. 37, when the separation gray code g0b is “1”, the gray code G2 is always “0”, and when the separation gray code g0a is “1”, the gray code G2 is always “1”. When the separation gray code g0Xa is “1”, the gray code G1 is always “0”, and when the separation gray code g0Xb is “1”, the gray code G1 is always “1”. Whether or not there is an error can be detected depending on whether or not the condition is satisfied.

正常なグレーコードG0〜G2が入力されていると、図38に示す正常時の分解グレーコードg0a,g0b,g0Xa,g0Xbと、グレーコードG1,G2が得られる。
次いで、演算処理部62は分解グレーコードg0Xa,g0Xb、グレーコードG1,G2に基づいてエラー信号を生成する(ステップ22)。このエラー信号生成処理は、エラー信号Er,ErXを次式で算出するものである。
When normal gray codes G0 to G2 are input, normal gray codes g0a, g0b, g0Xa, g0Xb and gray codes G1, G2 shown in FIG. 38 are obtained.
Next, the arithmetic processing unit 62 generates an error signal based on the separated gray codes g0Xa and g0Xb and the gray codes G1 and G2 (step 22). In this error signal generation process, the error signals Er and ErX are calculated by the following equation.

Er=(g0a×G2バー)+(g0b×G2=1)
ErX=(g0Xa×G1)+(g0Xb×G1バー)
{×はAND論理、+はOR論理、バーは反転論理を示す}
各グレーコードが正常であれば、エラー信号Er,ErXはいずれも「0」となり、エラーが存在すれば、エラー信号Er,ErXの一方が「1」となる。
Er = (g0a × G2 bar) + (g0b × G2 = 1)
ErX = (g0Xa × G1) + (g0Xb × G1 bar)
{X represents AND logic, + represents OR logic, and bar represents inverted logic}
If each gray code is normal, the error signals Er and ErX are both “0”, and if there is an error, one of the error signals Er and ErX is “1”.

次いで、演算処理部62はエラー信号Er,ErXの少なくともいずれかが「1」であるか否かによりエラーの有無を判定する(ステップ23)。
エラー信号Er,ErXがともに「0」であって、エラー無しと判定すると、演算処理部62は入力されたグレーコードG0〜G2を訂正グレーコードg0Z〜g2Zとする(ステップ14)。
Next, the arithmetic processing unit 62 determines the presence or absence of an error based on whether or not at least one of the error signals Er and ErX is “1” (step 23).
If the error signals Er and ErX are both “0” and it is determined that there is no error, the arithmetic processing unit 62 sets the input gray codes G0 to G2 as corrected gray codes g0Z to g2Z (step 14).

次いで、演算処理部62は訂正グレーコードg0Z〜g2Zにグレー・バイナリー変換を施し、訂正バイナリーコードB0Z〜B2Zを生成して(ステップ25)、エラー訂正動作を終了する。   Next, the arithmetic processing unit 62 performs gray / binary conversion on the corrected gray codes g0Z to g2Z, generates corrected binary codes B0Z to B2Z (step 25), and ends the error correction operation.

一方、ステップ23においてエラー信号Er,ErXの少なくともいずれかが「1」となって、エラー有りと判定されると、演算処理部62はエラービットの訂正を行う(ステップ26)。   On the other hand, if at least one of the error signals Er and ErX becomes “1” in step 23 and it is determined that there is an error, the arithmetic processing unit 62 corrects the error bit (step 26).

この訂正動作は、図38に示すようにエラー信号Er,ErXが「1」となった分解グレーコードg0a,g0b,g0Xa,g0Xbと、グレーコードG1,G2に次式で示す処理を施して、訂正グレーコードg0Z〜g2Zを生成する。   In this correction operation, as shown in FIG. 38, the processing shown in the following equation is performed on the decomposed gray codes g0a, g0b, g0Xa, g0Xb in which the error signals Er, ErX are “1”, and the gray codes G1, G2. Correction gray codes g0Z to g2Z are generated.

g2Z=(Er@G2)バー
g1Z=(ErX@G1)バー
g0Z=(Er+ErX)@(g0a+g0b)
{+はOR論理、@はEOR論理、バーは反転論理を示す}
すなわち、エラーとなった各ビットの双方が反転されて、訂正グレーコードg0Z〜g2Zが生成される。
g2Z = (Er @ G2) bar
g1Z = (ErX @ G1) bar
g0Z = (Er + ErX) @ (g0a + g0b)
{+ Indicates OR logic, @ indicates EOR logic, and bar indicates inverted logic}
That is, both of the bits in error are inverted, and corrected gray codes g0Z to g2Z are generated.

次いで、訂正グレーコードg0Z〜g2Zにグレー・バイナリー変換が施されて、訂正バイナリーコードB0Z〜B2Zが生成される(ステップ24,25)。
このような動作により、図38に示すように、訂正バイナリーコードB0Z〜B2Zは、未訂正グレーコードG0〜G2に基づいて生成される未訂正バイナリーコードB0〜B2に比して、より確からしい値となり、前記第一及び第二の動作に基づく訂正バイナリーコードB0Z〜B2Zに比して、より確からしい値となる。
Next, the corrected binary codes B0Z to B2Z are generated by performing the gray binary conversion on the corrected gray codes g0Z to g2Z (steps 24 and 25).
By such an operation, as shown in FIG. 38, the corrected binary codes B0Z to B2Z are more likely values than the uncorrected binary codes B0 to B2 generated based on the uncorrected gray codes G0 to G2. Thus, the value is more probable than the corrected binary codes B0Z to B2Z based on the first and second operations.

以上のように動作するエンコーダでは、入力されるサーモメータコードに含まれるバブルエラーを訂正したバイナリーコードを、プログラム格納部63に格納されたプログラムに基づいて動作する演算処理部62で高速に生成することができる。   In the encoder that operates as described above, a binary code in which a bubble error included in the input thermometer code is corrected is generated at high speed by the arithmetic processing unit 62 that operates based on the program stored in the program storage unit 63. be able to.

本発明の原理説明図である。It is a principle explanatory view of the present invention. 第一の実施の形態を示すブロック図である。It is a block diagram which shows 1st embodiment. 第一のエンコード部を示す回路図である。It is a circuit diagram which shows a 1st encoding part. 第二のエンコード部を示す回路図である。It is a circuit diagram which shows a 2nd encoding part. 第三のエンコード部を示す回路図である。It is a circuit diagram which shows a 3rd encoding part. 第四のエンコード部を示す回路図である。It is a circuit diagram which shows a 4th encoding part. エラー信号生成部を示す回路図である。It is a circuit diagram which shows an error signal generation part. エラー訂正部を示す回路図である。It is a circuit diagram which shows an error correction part. グレー・バイナリー変換部を示す回路図である。It is a circuit diagram which shows a gray binary conversion part. 論理境界検出回路を示す回路図である。It is a circuit diagram which shows a logic boundary detection circuit. ROMセルを示す回路図である。It is a circuit diagram which shows a ROM cell. プリチャージ回路を示す回路図である。It is a circuit diagram which shows a precharge circuit. 図12のプリチャージ回路の動作を示す波形図である。FIG. 13 is a waveform diagram showing an operation of the precharge circuit of FIG. 12. プリチャージ回路を示す回路図である。It is a circuit diagram which shows a precharge circuit. 図14のプリチャージ回路の動作を示す波形図である。FIG. 15 is a waveform diagram showing an operation of the precharge circuit of FIG. 14. プリチャージ回路を示す回路図である。It is a circuit diagram which shows a precharge circuit. 第一の実施の形態の動作(バブルエラー無し)を示す波形図である。It is a wave form diagram which shows operation | movement (no bubble error) of 1st embodiment. b1タイプのバブルエラーが入力された場合の動作を示す波形図である。It is a wave form diagram which shows operation | movement when b1 type bubble error is input. b2Hタイプのバブルエラーが入力された場合の動作を示す波形図である。It is a wave form diagram which shows operation | movement when b2H type bubble error is input. b2Lタイプのバブルエラーが入力された場合の動作を示す波形図である。It is a wave form diagram which shows operation | movement when a b2L type bubble error is input. 第二の実施の形態を示すブロック図である。It is a block diagram which shows 2nd embodiment. グレー・バイナリー変換部を示す回路図である。It is a circuit diagram which shows a gray binary conversion part. 第四のエンコード部を示す回路図である。It is a circuit diagram which shows a 4th encoding part. 第二の実施の形態の動作(バブルエラー無し)を示す波形図である。It is a wave form diagram which shows operation | movement (no bubble error) of 2nd embodiment. b1タイプのバブルエラーが入力された場合の動作を示す波形図である。It is a wave form diagram which shows operation | movement when b1 type bubble error is input. b2Hタイプのバブルエラーが入力された場合の動作を示す波形図である。It is a wave form diagram which shows operation | movement when b2H type bubble error is input. b2Lタイプのバブルエラーが入力された場合の動作を示す波形図である。It is a wave form diagram which shows operation | movement when a b2L type bubble error is input. プリチャージ回路を示す回路図である。It is a circuit diagram which shows a precharge circuit. 第三の実施の形態のエンコーダを示すブロック図である。It is a block diagram which shows the encoder of 3rd embodiment. 第三の実施の形態の第一の動作を示すフローチャート図である。It is a flowchart figure which shows the 1st operation | movement of 3rd embodiment. 第一の動作の分解グレーコードを示す説明図である。It is explanatory drawing which shows the decomposition | disassembly gray code | cord | chord of a 1st operation | movement. 第一の動作の過程で生成されるコードを示す説明図である。It is explanatory drawing which shows the code produced | generated in the process of a 1st operation | movement. 第三の実施の形態の第二の動作を示すフローチャート図である。It is a flowchart figure which shows the 2nd operation | movement of 3rd embodiment. 第二の動作の分解グレーコードを示す説明図である。It is explanatory drawing which shows the decomposition | disassembly gray code | cord | chord of a 2nd operation | movement. 第二の動作の過程で生成されるコードを示す説明図である。It is explanatory drawing which shows the code | symbol produced | generated in the process of a 2nd operation | movement. 第三の実施の形態の第三の動作を示すフローチャート図である。It is a flowchart figure which shows the 3rd operation | movement of 3rd embodiment. 第三の動作の分解グレーコードを示す説明図である。It is explanatory drawing which shows the decomposition | disassembly gray code | cord | chord of a 3rd operation | movement. 第三の動作の過程で生成されるコードを示す説明図である。It is explanatory drawing which shows the code | symbol produced | generated in the process of a 3rd operation | movement. 従来例を示す回路図である。It is a circuit diagram which shows a prior art example. ROMセルを示す回路図である。It is a circuit diagram which shows a ROM cell. エンコード部内のROMセルの接続を示す説明図である。It is explanatory drawing which shows the connection of the ROM cell in an encoding part. 従来例を示す回路図である。It is a circuit diagram which shows a prior art example. 従来例を示す回路図である。It is a circuit diagram which shows a prior art example. エンコード部内のROMセルの接続を示す説明図である。It is explanatory drawing which shows the connection of the ROM cell in an encoding part. グレーコードを出力するエンコーダを示す回路図である。It is a circuit diagram which shows the encoder which outputs a gray code. 図45の論理境界検出回路及びROMセルを示す回路図である。FIG. 46 is a circuit diagram showing a logic boundary detection circuit and a ROM cell of FIG. 45. グレーコードとバイナリーコードの関係を示す説明図である。It is explanatory drawing which shows the relationship between a gray code and a binary code. b1タイプのバブルエラーを含むサーモメータコードをエンコードした場合のグレーコードとバイナリーコードの関係を示す説明図である。It is explanatory drawing which shows the relationship between the gray code at the time of encoding the thermometer code containing b1 type bubble error, and a binary code. エラーを訂正した場合のグレーコードとバイナリーコードの関係を示す説明図である。It is explanatory drawing which shows the relationship between the gray code at the time of correcting an error, and a binary code. b1タイプのバブルエラーを含むサーモメータコードをグレーコード方式でエンコードした場合の入出力値を示す説明図である。It is explanatory drawing which shows the input / output value at the time of encoding the thermometer code containing b1 type bubble error by a gray code system. b2Hタイプのバブルエラーを含むサーモメータコードをグレーコード方式でエンコードした場合の入出力値を示す説明図である。It is explanatory drawing which shows the input / output value at the time of encoding the thermometer code containing a b2H type bubble error by a gray code system. b2Lタイプのバブルエラーを含むサーモメータコードをグレーコード方式でエンコードした場合の入出力値を示す説明図である。It is explanatory drawing which shows the input / output value at the time of encoding the thermometer code containing a b2L type bubble error by a gray code system. b1タイプのバブルエラーを含むサーモメータコードをグレーコードの表コードのみで訂正した場合の入出力値を示す説明図である。It is explanatory drawing which shows the input / output value at the time of correcting the thermometer code containing b1 type bubble error only with the table code | cord | chord of a gray code. b1タイプのバブルエラーを含むサーモメータコードをグレーコードの表コード及び裏コードを使用して訂正した場合の入出力値を示す説明図である。It is explanatory drawing which shows the input / output value at the time of correcting the thermometer code containing b1 type bubble error using the front code and back code | cord | chord of a gray code.

符号の説明Explanation of symbols

41〜44 エンコード部
45 エラー信号生成部(エラー検出部)
46 グレー・バイナリー変換部(エラー訂正部)
e1〜e31 サーモメータコード
G0〜G3 グレーコード
B0Z〜B4Z バイナリーコード
41 to 44 Encoding unit 45 Error signal generation unit (error detection unit)
46 Gray Binary Conversion Unit (Error Correction Unit)
e1-e31 Thermometer code G0-G3 Gray code B0Z-B4Z Binary code

Claims (6)

複数ビットのグレーコードから複数ビットのバイナリーコードを生成するグレー・バイナリー変換回路において最下位ビットのバイナリーコードを生成するグレー・バイナリー変換方法であって、
最下位ビットのグレーコードを分解した複数ビットの分解グレーコードを第1の論理処理して第1のバイナリーコードを生成し
前記最下位ビットと異なるビットのバイナリーコードを生成するために入力される複数の信号を第2の論理処理して第2のバイナリーコードを生成し、
前記第1及び第2のバイナリーコードを第3の論理処理して前記最下位ビットのバイナリーコードを生成することを特徴とするグレー・バイナリー変換方法。
A gray binary conversion method for generating a binary code of a least significant bit in a gray binary conversion circuit that generates a multi-bit binary code from a multi-bit gray code,
A first logical processing of the multi-bit decomposed gray code obtained by decomposing the least significant bit gray code to generate a first binary code ;
A plurality of signals input to generate a binary code having a bit different from the least significant bit to perform a second logical process to generate a second binary code;
A gray-binary conversion method, wherein the first and second binary codes are subjected to a third logical process to generate the least significant bit binary code.
前記第2の論理処理において、前記最下位ビットと異なるビットのグレーコードを含む複数の信号を処理すること、
を特徴とする請求項1に記載のグレー・バイナリー変換方法
Processing a plurality of signals including a gray code of a bit different from the least significant bit in the second logic processing;
The gray binary conversion method according to claim 1, wherein:
前記第2の論理処理において、サーモメータコードの論理境界を検出することにより少なくとも3ビットのグレーコードを生成するエンコード部において前記グレーコードの生成に際して生成され下位から3ビット目のバイナリーコードに相当する信号を含む複数の信号を処理すること、  In the second logic processing, an encoder that generates a gray code of at least 3 bits by detecting a logic boundary of the thermometer code corresponds to a binary code of the third bit from the lower order that is generated when the gray code is generated. Processing multiple signals, including signals,
を特徴とする請求項1又は請求項2に記載のグレー・バイナリー変換方法。The gray binary conversion method according to claim 1 or 2, wherein
複数ビットのグレーコードから複数ビットのバイナリーコードを生成するグレー・バイナリー変換回路であって、  A gray binary conversion circuit that generates a multi-bit binary code from a multi-bit gray code,
最下位ビットのグレーコードを分解した複数ビットの分解グレーコードを論理処理して第1のバイナリーコードを生成する第1の論理回路と、  A first logic circuit that logically processes a multi-bit decomposed gray code obtained by decomposing the least significant bit gray code to generate a first binary code;
前記最下位ビットと異なるビットのバイナリーコードを生成するために入力される複数の信号を論理処理して第2のバイナリーコードを生成する第2の論理回路と、  A second logic circuit for logically processing a plurality of input signals to generate a binary code of a bit different from the least significant bit to generate a second binary code;
前記第1及び第2のバイナリーコードを論理処理して前記最下位ビットのバイナリーコードを生成する第3の論理回路と、  A third logic circuit that logically processes the first and second binary codes to generate the least significant bit binary code;
を有することを特徴とするグレー・バイナリー変換装置。A gray binary conversion device characterized by comprising:
前記第2の論理回路に入力される信号は、前記最下位ビットと異なるビットのグレーコードを含むこと、  The signal input to the second logic circuit includes a gray code of a bit different from the least significant bit;
を特徴とする請求項4に記載のグレー・バイナリー変換装置。The gray binary conversion apparatus according to claim 4, wherein:
前記第2の論理回路に入力される信号は、サーモメータコードの論理境界を検出することにより少なくとも3ビットのグレーコードを生成するエンコード部において前記グレーコードの生成に際して生成され下位から3ビット目のバイナリーコードに相当する信号を含むこと、  A signal input to the second logic circuit is generated when the gray code is generated in an encoding unit that generates a gray code of at least 3 bits by detecting a logic boundary of a thermometer code. Including a signal equivalent to a binary code,
を特徴とする請求項4又は請求項5に記載のグレー・バイナリー変換装置。The gray binary conversion apparatus according to claim 4 or 5, characterized in that:
JP2005341847A 1997-07-18 2005-11-28 Gray binary conversion apparatus and gray binary conversion method Expired - Fee Related JP4188965B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005341847A JP4188965B2 (en) 1997-07-18 2005-11-28 Gray binary conversion apparatus and gray binary conversion method

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP19368897 1997-07-18
JP2005341847A JP4188965B2 (en) 1997-07-18 2005-11-28 Gray binary conversion apparatus and gray binary conversion method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP24137697A Division JP3756638B2 (en) 1997-07-18 1997-09-05 Encoder, error correction method of encoded signal, A / D converter, and test method of A / D converter

Publications (2)

Publication Number Publication Date
JP2006109508A JP2006109508A (en) 2006-04-20
JP4188965B2 true JP4188965B2 (en) 2008-12-03

Family

ID=36378578

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005341847A Expired - Fee Related JP4188965B2 (en) 1997-07-18 2005-11-28 Gray binary conversion apparatus and gray binary conversion method

Country Status (1)

Country Link
JP (1) JP4188965B2 (en)

Also Published As

Publication number Publication date
JP2006109508A (en) 2006-04-20

Similar Documents

Publication Publication Date Title
KR100458187B1 (en) Analog to digital converter with encoder circuit and testing method therefore
KR101394640B1 (en) Encode circuit and analog-digital converter
JPH0884077A (en) Analog / digital converter
JP3756638B2 (en) Encoder, error correction method of encoded signal, A / D converter, and test method of A / D converter
US9041580B2 (en) Solid-state imaging apparatus and semiconductor device
JP4639153B2 (en) Digital / analog converter
JP2003283336A (en) A / D conversion circuit
US5315301A (en) Binary data generating circuit and A/D converter having immunity to noise
US6590518B1 (en) Apparatus and method for an improved subranging ADC architecture using ladder-flip bussing
US20080180295A1 (en) Digital-to-analog converter
JP4188965B2 (en) Gray binary conversion apparatus and gray binary conversion method
US6703951B2 (en) Analog to digital converter with encoder circuit and testing method therefor
JPWO2004086628A1 (en) Encoder circuit and A / D conversion circuit
KR20020022159A (en) Folding interpolation A/D converter
JP2775774B2 (en) AD conversion circuit
JP2775775B2 (en) AD conversion circuit
JP3157778B2 (en) Encoder and A / D converter
JP2778058B2 (en) AD conversion circuit
JP3221131B2 (en) Analog / digital conversion circuit
US7256722B2 (en) D/A converter
JP2778059B2 (en) AD conversion circuit
JPH0697832A (en) Code conversion circuit and A / D converter including the same
JP3141265B2 (en) Analog / digital conversion circuit
TW298689B (en) Multiple phase binary analog-to-digital converter
KR100460700B1 (en) Method of digital error correction of analog-to-digital converter

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20071004

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20071127

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080125

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080513

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080711

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20080730

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20080909

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080911

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110919

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110919

Year of fee payment: 3

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110919

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120919

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120919

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130919

Year of fee payment: 5

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees