Multi-bit Gray code generator

The multi-bit Gray code generation circuit addresses the frequency limitations of conventional counters by eliminating logic circuits between flip-flops, achieving higher output frequencies and versatile code conversion.

JP7570899B2Active Publication Date: 2024-10-22SHARP SEMICON INNOVATION CORP TENRI CITY
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2020195431
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-11-25
Publication Date
2024-10-22
Estimated Expiration
2040-11-25

AI Technical Summary

Technical Problem

Conventional multi-bit Gray code counters face limitations in increasing the driving frequency of the clock signal due to the presence of numerous logic circuits between flip-flop circuits, leading to increased delay times and hindered performance.

Method used

A multi-bit Gray code generation circuit is designed with a 0th Gray code generation circuit and subsequent Gray code generation circuits configured with flip-flop circuits, where the output of the final stage is inverted and held by the first stage, eliminating logic circuits between flip-flops and allowing synchronization with half a clock period.

Benefits of technology

This configuration reduces delay time, enabling higher driving frequencies and enabling the output of Gray codes at faster rates, with the option to start at any desired timing and convert between Gray and binary codes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007570899000001
    Figure 0007570899000001
  • Figure 0007570899000002
    Figure 0007570899000002
  • Figure 0007570899000003
    Figure 0007570899000003
Patent Text Reader

Abstract

To provide a multi-bit gray code generation circuit capable of outputting a gray code at a high frequency.SOLUTION: A Bit2 gray code generation circuit (4) is constituted by a plurality of flip-flop circuits (41-44). Outputs of the flip-flop circuits (41-43) of the previous stage are input to the flip-flop circuits (42-44) of the next stage, respectively. An output of the flip-flop circuit (44) of the final stage is inverted and held by the flip-flop circuit (41) of the first stage. An output signal of the flip-flop circuit (43) is output as a gray code corresponding to a bit 2.SELECTED DRAWING: Figure 9
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a multi-bit Gray code generating circuit that generates and outputs a multi-bit Gray code. [Background technology]

[0002] Conventionally, various techniques for generating multi-bit Gray codes have been developed, including the invention disclosed in Patent Document 1 below.

[0003] Patent Document 1 relates to a multi-bit Gray code counter that counts pulse signals and outputs a Gray code corresponding to the count value. This multi-bit Gray code counter includes an N-bit Gray code up / down counter with an up / down function and an M-bit Gray code counter. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] Japanese Patent Application Publication No. 6-053818 Summary of the Invention [Problem to be solved by the invention]

[0005] In the multi-bit Gray code counter disclosed in the above-mentioned Patent Document 1, many logic circuits other than flip-flop (hereinafter abbreviated as FF) circuits are connected between the FF circuits that constitute the Gray code counter. The driving frequency of the clock signal input to the FF circuit is determined by the delay time of the FF circuit in the previous stage, the delay time of the logic circuit, and the setup time of the FF circuit in the next stage.

[0006] In other words, if there are a large number of logic circuits between the FF circuits, the delay time will be large, the driving frequency of the clock signal input to the FF circuit cannot be increased, and the frequency of the Gray code output from the Gray code counter cannot be increased either.

[0007] An object of one aspect of the present invention is to provide a multi-bit Gray code generation circuit capable of outputting Gray codes at a high frequency. [Means for solving the problem]

[0008] In order to solve the above problems, a multi-bit Gray code generation circuit according to one embodiment of the present invention includes a 0th Gray code generation circuit that generates a Gray code corresponding to bit 0 of a multi-bit Gray code, and a plurality of Gray code generation circuits that generate Gray codes corresponding to each bit higher than bit 0 of the multi-bit Gray code, each of the plurality of Gray code generation circuits being composed of a plurality of flip-flop circuits, in which the output of the previous stage flip-flop circuit is input to the next stage flip-flop circuit, the output of the final stage flip-flop circuit is inverted and held in the first stage flip-flop circuit, and the output of any one of the plurality of flip-flop circuits is output as a Gray code corresponding to each bit. Effect of the Invention

[0009] According to one aspect of the present invention, it is possible to provide a multi-bit Gray code generation circuit capable of outputting Gray codes at high frequencies. [Brief description of the drawings]

[0010] [Figure 1] 1 is a block diagram showing a schematic configuration of a multi-bit Gray code generation circuit according to a first embodiment of the present invention. [Diagram 2] 4 is a timing chart for explaining an outline of the operation of the multi-bit Gray code generation circuit according to the first embodiment of the present invention. [Diagram 3] FIG. 2 is a diagram illustrating a circuit configuration of a clock delay circuit. [Figure 4] 4 is a timing chart for explaining the operation of the clock delay circuit. [Diagram 5] FIG. 13 is a diagram illustrating a circuit configuration of a Bit0 Gray code generation circuit. [Figure 6] 11 is a timing chart for explaining the operation of the Bit0 Gray code generation circuit. [Figure 7] FIG. 13 is a diagram illustrating a circuit configuration of a Bit1 Gray code generation circuit. [Figure 8] 11 is a timing chart for explaining the operation of the Bit1 Gray code generation circuit. [Figure 9] FIG. 2 is a diagram illustrating a circuit configuration of a Bit 2 Gray code generation circuit. [Figure 10] 11 is a timing chart for explaining the operation of the Bit 2 Gray code generation circuit. [Figure 11] FIG. 2 is a diagram illustrating a circuit configuration of a Bit 3 Gray code generation circuit. [Figure 12] 11 is a timing chart for explaining the operation of the Bit 3 Gray code generation circuit. [Figure 13] 5 is a timing chart for explaining details of the operation of the multi-bit Gray code generation circuit according to the first embodiment of the present invention. [Figure 14] FIG. 11 is a block diagram showing a schematic configuration of a multi-bit Gray code generation circuit according to a second embodiment of the present invention. [Figure 15] 10 is a timing chart for explaining an operation when a SEL signal is "0" in the multi-bit Gray code generation circuit according to the second embodiment of the present invention. [Figure 16] 10 is a timing chart for explaining an operation when a SEL signal is "1" in the multi-bit Gray code generation circuit according to the second embodiment of the present invention. [Figure 17] FIG. 11 is a block diagram showing a schematic configuration of a multi-bit Gray code generation circuit according to a third embodiment of the present invention. [Figure 18] 13 is a timing chart for explaining an operation when a SEL signal is "0" in the multi-bit Gray code generation circuit according to the third embodiment of the present invention. [Figure 19] 13 is a timing chart for explaining an operation when a SEL signal is "1" in the multi-bit Gray code generation circuit according to the third embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] [Embodiment 1] Hereinafter, an embodiment of the present invention will be described in detail. For the sake of convenience, the same members are denoted by the same reference numerals, and their names and functions are also the same. Therefore, detailed description thereof will not be repeated.

[0012] <Configuration and Operation of Gray Code Generation Circuit 100> 1 is a block diagram showing a schematic configuration of a multi-bit Gray code generation circuit 100 according to a first embodiment of the present invention. The Gray code generation circuit 100 includes a clock delay circuit 1, a Bit0 Gray code generation circuit (also referred to as the 0th Gray code generation circuit) 2, a Bit1 Gray code generation circuit (also referred to as the first Gray code generation circuit) 3, a Bit2 Gray code generation circuit (also referred to as the second Gray code generation circuit) 4, a Bit3 Gray code generation circuit (also referred to as the third Gray code generation circuit) 5, and a Bit4 Gray code generation circuit (also referred to as the fourth Gray code generation circuit) 6.

[0013] The clock delay circuit 1 starts outputting the clock signal CK0 several clocks after the reset signal XRST goes from low level (hereinafter abbreviated as "0") to high level (hereinafter abbreviated as "1").

[0014] The Bit0 Gray code generation circuit 2, the Bit1 Gray code generation circuit 3, the Bit2 Gray code generation circuit 4, the Bit3 Gray code generation circuit 5, and the Bit4 Gray code generation circuit 6 output Gray codes of the corresponding bits in synchronization with the clock signal CK0 output from the clock delay circuit 1. The Gray code generation circuits 2 to 6 corresponding to each bit will be described in detail later.

[0015] 2 is a timing chart for explaining an outline of the operation of the multi-bit Gray code generation circuit 100 according to the first embodiment of the present invention. At timing T1, the reset signal XRST becomes "1". At T2, several clocks later, the clock delay circuit 1 starts outputting the clock signal CK0. Then, at T3, several clocks later, the Gray code generation circuits 2 to 6 corresponding to each bit start outputting the Gray code D<4:0>.

[0016] <Configuration and operation of clock delay circuit 1> 3 is a diagram showing a circuit configuration of the clock delay circuit 1. The clock delay circuit 1 includes FF circuits 11 to 13, a latch circuit 14, and an AND circuit 15. The same clock signal CK is connected to the FF circuits 11 to 13 and the latch circuit 14. In addition, the same reset signal XRST is connected to the FF circuits 11 to 13.

[0017] The FF circuits 11 to 13 are reset when the XRST signal is "0", and hold the value input to the input terminal D at the rising edge of the CK signal when the XRST signal is "1", and output the value to the output terminal Q.

[0018] The FF circuits 11 to 13 operate on the rising edge of the clock signal, but may also operate on the falling edge of the clock signal. Therefore, the FF circuits 11 to 13 may operate on either the rising edge or the falling edge of the clock signal, and may also be described as operating in synchronization with the clock signal.

[0019] The latch circuit 14 holds the value input to terminal D at the rising edge of the CK signal, outputs it to terminal Q, and maintains that state while the CK signal is "1." When the CK signal is "0," the value input to terminal D is output (through) to terminal Q as is.

[0020] Figure 4 is a timing chart for explaining the operation of the clock delay circuit 1. At timing T1, the reset signal XRST becomes "1". At T2, the output signal n0 of the FF circuit 11 changes from "0" to "1". At T3, the output signal n1 of the FF circuit 12 changes from "0" to "1". At T4, the output signal n2 of the FF circuit 13 changes from "0" to "1".

[0021] At T5, the output signal n3 of the latch circuit 14 changes from "0" to "1". At T6, the AND circuit 15 starts to output the clock signal CK0.

[0022] <Configuration and Operation of Bit0 Gray Code Generation Circuit 2> Figure 5 is a diagram showing the circuit configuration of the Bit0 gray code generation circuit 2. The Bit0 gray code generation circuit 2 includes an FF circuit 21. The clock signal CK0 and the reset signal XRST output from the clock delay circuit 1 are connected to the FF circuit 21.

[0023] The FF circuit 21 is reset when the XRST signal is "0", holds the value of the terminal XD at the falling edge of the CK0 signal when the XRST signal is "1", and outputs it to the terminal Q. The XD terminal inputs the value output from the terminal Q after inverting it, so it outputs the value output from the terminal Q after inverting it every time the CK0 signal falls. The value output to the output terminal Q of this FF circuit 21 becomes the gray code D0 of bit 0.

[0024] Note that the FF circuit 21 operates at the falling edge of the clock signal, but it may also be made to operate at the rising edge of the clock signal. Therefore, since the FF circuit 21 may operate at either the rising edge or the falling edge of the clock signal, it can also be described as operating in synchronization with the clock signal.

[0025] FIG. 6 is a timing chart for explaining the operation of the Bit0 Gray code generation circuit 2. At timing T1, the output of the clock signal CK0 from the clock delay circuit 1 starts, but the output signal D0 of the FF circuit 21 is "0". At T2, the output signal D0 of the FF circuit 21 changes from "0" to "1" at the falling edge of the CK0 signal. At T3, the output signal D0 of the FF circuit 21 holds "1". At T4, the output signal D0 of the FF circuit 21 changes from "1" to "0".

[0026] At T5, the output signal D0 of the FF circuit 21 holds "0". At T6, the output signal D0 of the FF circuit 21 changes from "0" to "1". At T7, the output signal D0 of the FF circuit 21 holds "1". Thereafter, the same operation is performed.

[0027] <Configuration and Operation of the Bit1 Gray Code Generation Circuit 3> FIG. 7 is a diagram showing the circuit configuration of the Bit1 Gray code generation circuit 3. The Bit1 Gray code generation circuit 3 includes FF circuits 31 and 32. The clock signal CK0 and the reset signal XRST output from the clock delay circuit 1 are connected to the FF circuits 31 and 32.

[0028] The FF circuit 31 is reset when the XRST signal is "0", holds the value of the terminal XD at the rising edge of the CK0 signal when the XRST signal is "1", and outputs it to the terminal Q. The XD terminal inputs the value output from the output terminal Q of the FF circuit 32 after inverting it, so that the value output from the output terminal Q of the FF circuit 32 is inverted and output every time the CK0 signal rises.

[0029] The FF circuit 32 is reset when the XRST signal is "0", holds the value of the terminal D at the rising edge of the CK0 signal when the XRST signal is "1", and outputs it to the terminal Q. The value output to the output terminal Q of this FF circuit 32 becomes the Gray code D1 of bit 1.

[0030] Note that the FF circuits 31 and 32 operate on the rising edge of the clock signal, but they may also be made to operate on the falling edge of the clock signal. Therefore, since the FF circuits 31 and 32 may operate on either the rising or falling edge of the clock signal, it can also be described that they operate in synchronization with the clock signal.

[0031] Figure 8 is a timing chart for explaining the operation of the Bit1 Gray code generation circuit 3. At timing T1, the output of the clock signal CK0 from the clock delay circuit 1 is started, and the value (n0) of the output terminal Q of the FF circuit 31 changes from "0" to "1". At T2, the output signal n0 of the FF circuit 31 is held at "1". At T3, the value (D1) of the output terminal Q of the FF circuit 32 changes from "0" to "1". At T4, the output signals n0 and D1 of the FF circuits 31 and 32 are held at "1".

[0032] At T5, the output signal n0 of the FF circuit 31 changes from "1" to "0". At T6, the output signal n0 of the FF circuit 31 is held at "0", and the output signal D1 of the FF circuit 32 is held at "1". At T7, the output signal D1 of the FF circuit 32 changes from "1" to "0". At T8, the output signals n0 and D1 of the FF circuits 31 and 32 are held at "0". Thereafter, the same operation is performed.

[0033] <Configuration and Operation of the Bit2 Gray Code Generation Circuit 4> Figure 9 is a diagram showing the circuit configuration of the Bit2 Gray code generation circuit 4. The Bit2 Gray code generation circuit 4 includes FF circuits 41 to 44. The clock signal CK0 and the reset signal XRST output from the clock delay circuit 1 are connected to the FF circuits 41 to 44.

[0034] The FF circuit 41 is reset when the XRST signal is "0", and when the XRST signal is "1", it holds the value of the terminal XD at the rising edge of the CK0 signal and outputs it to the terminal Q. Since the XD terminal inputs an inverted value output from the output terminal Q of the FF circuit 44, it outputs an inverted value output from the output terminal Q of the FF circuit 44 at each rising edge of the CK0 signal.

[0035] The FF circuits 42 to 44 are reset when the XRST signal is "0", and when the XRST signal is "1", they hold the value at terminal D at the rising edge of the CK0 signal and output it to terminal Q. The value output to the output terminal Q of the FF circuit 43 becomes the Gray code D2 of bit 2.

[0036] The FF circuits 41 to 44 operate on the rising edge of the clock signal, but may also operate on the falling edge of the clock signal. Therefore, the FF circuits 41 to 44 may operate on either the rising edge or the falling edge of the clock signal, and may also be described as operating in synchronization with the clock signal.

[0037] 10 is a timing chart for explaining the operation of the Bit2 Gray code generation circuit 4. At timing T1, the clock delay circuit 1 starts outputting the clock signal CK0, and the value (n0) of the output terminal Q of the FF circuit 41 changes from "0" to "1". At T2, the output signal n0 of the FF circuit 41 is held at "1". At T3, the value (n1) of the output terminal Q of the FF circuit 42 changes from "0" to "1". At T4, the output signals n0 and n1 of the FF circuits 41 and 42 are held at "1".

[0038] At T5, the output signal D2 of the FF circuit 43 changes from "0" to "1". At T6, the output signals n0, n1 and D2 of the FF circuits 41 to 43 are held at "1". At T7, the output signal n2 of the FF circuit 44 changes from "0" to "1". At T8, the output signals n0, n1, D2 and n2 of the FF circuits 41 to 44 are held at "1".

[0039] At T9, the output signal n0 of the FF circuit 41 changes from "1" to "0". At T10, the FF circuits 41 to 44 hold the same value. At T11, the output signal n1 of the FF circuit 42 changes from "1" to "0". At T12, the FF circuits 41 to 44 hold the same value. At T13, the output signal D2 of the FF circuit 43 changes from "1" to "0". Thereafter, the same operation is performed.

[0040] <Configuration and Operation of Bit3 Gray Code Generation Circuit 5> FIG. 11 is a diagram showing the circuit configuration of the Bit3 gray code generation circuit 5. The Bit3 gray code generation circuit 5 includes FF circuits 51 to 58. The clock signal CK0 and the reset signal XRST output from the clock delay circuit 1 are connected to the FF circuits 51 to 58.

[0041] The FF circuit 51 is reset when the XRST signal is "0", holds the value of the terminal XD at the rising edge of the CK0 signal when the XRST signal is "1", and outputs it to the terminal Q. Since the XD terminal inputs the value output from the output terminal Q of the FF circuit 58 after inverting it, it outputs the value output from the output terminal Q of the FF circuit 58 after inverting it every time the CK0 signal rises.

[0042] The FF circuits 52 to 58 are reset when the XRST signal is "0", hold the value of the terminal D at the rising edge of the CK0 signal when the XRST signal is "1", and output it to the terminal Q. The value output to the output terminal Q of the FF circuit 55 becomes the gray code D3 of bit 3.

[0043] Note that the FF circuits 51 to 58 operate at the rising edge of the clock signal, but they may also operate at the falling edge of the clock signal. Therefore, since the FF circuits 51 to 58 may operate at either the rising edge or the falling edge of the clock signal, it can also be described that they operate in synchronization with the clock signal.

[0044] 12 is a timing chart for explaining the operation of the Bit 3 Gray code generation circuit 5. At timing T1, the clock delay circuit 1 starts outputting the clock signal CK0, and the value (n0) of the output terminal Q of the FF circuit 51 changes from "0" to "1". At T2, the output signal n0 of the FF circuit 51 is held at "1". At T3, the value (n1) of the output terminal Q of the FF circuit 52 changes from "0" to "1". At T4, the output signals n0 and n1 of the FF circuits 51 and 52 are held at "1".

[0045] At T5, the output signal n2 of the FF circuit 53 changes from "0" to "1". At T6, the output signals n0, n1, and n2 of the FF circuits 51 to 53 are held at "1". At T7, the output signal n3 of the FF circuit 54 changes from "0" to "1". At T8, the output signals n0, n1, n2, and n3 of the FF circuits 51 to 54 are held at "1".

[0046] At T9, the output signal D3 of the FF circuit 55 changes from "0" to "1". At T10, the FF circuits 51 to 58 hold the same values. At T11, the output signal n4 of the FF circuit 56 changes from "0" to "1". At T12, the FF circuits 51 to 58 hold the same values. At T13, the output signal n5 of the FF circuit 57 changes from "0" to "1".

[0047] At T14, the FF circuits 51 to 58 hold the same values. At T15, the output signal n6 of the FF circuit 58 changes from "0" to "1." The same operation is repeated, and at T16, the output signal D3 of the FF circuit 55 changes from "1" to "0."

[0048] Note that a detailed description will not be given of the configuration and operation of the Bit4 Gray code generation circuit 6. However, a person skilled in the art would be able to easily infer what is happening with bits higher than Bit 3 by referring to the configurations and operations of the Bit0 Gray code generation circuit 2 to Bit3 Gray code generation circuit 5.

[0049] <Operation of the Multi-Bit Gray Code Generation Circuit 100> 13 is a timing chart for explaining in detail the operation of the multi-bit Gray code generation circuit 100. At timing T1, the clock delay circuit 1 starts outputting the clock signal CK0, but the output signal D0 of the Bit0 Gray code generation circuit 2 is "0". At this time, the multi-bit Gray code is expressed as "0" in decimal notation.

[0050] At timing T2, the output signal D0 of the Bit0 Gray code generation circuit 2 becomes “1”, and there is no change in the output signals of the other Gray code generation circuits 3 to 6. At this time, the multi-bit Gray code becomes “1” in decimal notation.

[0051] At timing T3, the output signal D1 of the Bit1 Gray code generation circuit 3 becomes “1”, and the output signals of the other Gray code generation circuits 2 and 4 to 6 do not change. At this time, the multi-bit Gray code becomes “3” in decimal notation.

[0052] At timing T4, the output signal D0 of the Bit0 Gray code generation circuit 2 becomes “0”, and there is no change in the output signals of the other Gray code generation circuits 3 to 6. At this time, the multi-bit Gray code becomes “2” in decimal notation.

[0053] At timing T5, the output signal D2 of the Bit2 Gray code generation circuit 4 becomes “1”, and the output signals of the other Gray code generation circuits 2, 3, 5 and 6 do not change. At this time, the multi-bit Gray code becomes “6” in decimal notation.

[0054] At timing T6, the output signal D0 of the Bit0 Gray code generation circuit 2 becomes “1”, and there is no change in the output signals of the other Gray code generation circuits 3 to 6. At this time, the multi-bit Gray code becomes “7” in decimal notation.

[0055] At timing T7, the output signal D1 of the Bit1 Gray code generation circuit 3 becomes “0”, and there are no changes in the output signals of the other Gray code generation circuits 2 and 4 to 6. At this time, the multi-bit Gray code becomes “5” in decimal notation.

[0056] At timing T8, the output signal D0 of the Bit0 Gray code generation circuit 2 becomes “0”, and there is no change in the output signals of the other Gray code generation circuits 3 to 6. At this time, the multi-bit Gray code becomes “4” in decimal notation.

[0057] At timing T9, the output signal D3 of the Bit3 Gray code generation circuit 5 becomes “1”, and there is no change in the output signals of the other Gray code generation circuits 2 to 4 and 6. At this time, the multi-bit Gray code becomes “12” in decimal notation.

[0058] At timing T10, the output signal D0 of the Bit0 Gray code generation circuit 2 becomes “1”, and there is no change in the output signals of the other Gray code generation circuits 3 to 6. At this time, the multi-bit Gray code becomes “13” in decimal notation.

[0059] At timing T11, the output signal D1 of the Bit1 Gray code generation circuit 3 becomes “1”, and the output signals of the other Gray code generation circuits 2 and 4 to 6 do not change. At this time, the multi-bit Gray code becomes “15” in decimal notation.

[0060] At timing T12, the output signal D0 of the Bit0 Gray code generation circuit 2 becomes “0”, and there is no change in the output signals of the other Gray code generation circuits 3 to 6. At this time, the multi-bit Gray code becomes “14” in decimal notation.

[0061] At timing T13, the output signal D2 of the Bit2 Gray code generation circuit 4 becomes “0”, and there is no change in the output signals of the other Gray code generation circuits 2, 3, 5 and 6. At this time, the multi-bit Gray code becomes “10” in decimal notation.

[0062] At timing T14, the output signal D0 of the Bit0 Gray code generation circuit 2 becomes “1”, and there is no change in the output signals of the other Gray code generation circuits 3 to 6. At this time, the multi-bit Gray code becomes “11” in decimal notation.

[0063] At timing T15, the output signal D1 of the Bit1 Gray code generation circuit 3 becomes “0”, and there are no changes in the output signals of the other Gray code generation circuits 2 and 4 to 6. At this time, the multi-bit Gray code becomes “9” in decimal notation.

[0064] At timing T16, the output signal D0 of the Bit0 Gray code generation circuit 2 becomes “0”, and there is no change in the output signals of the other Gray code generation circuits 3 to 6. At this time, the multi-bit Gray code becomes “8” in decimal notation.

[0065] At timing T17, the output signal D4 of the Bit4 Gray code generation circuit 6 becomes "1", and the output signals of the other Gray code generation circuits 2 to 5 do not change. At this time, the multi-bit Gray code becomes "24" in decimal notation. After that, the same operation is performed.

[0066] As described above, in the multi-bit Gray code generation circuit 100 according to this embodiment, the Bit1 Gray code generation circuit 3 to Bit3 Gray code generation circuit 5 have the following circuit configuration. That is, the output of the FF circuit in the previous stage is input to the FF circuit in the next stage, and the output of the FF circuit in the final stage is inverted and held in the FF circuit in the first stage, so that a plurality of FF circuits are connected in a loop. Then, the output of any one of the plurality of FF circuits is made into a Gray code corresponding to each bit.

[0067] With this configuration, there is no logic circuit between the FF circuits, the delay time is small, and the driving frequency of the clock signal input to the FF circuits can be increased, which makes it possible to increase the frequency of the Gray code output from the multi-bit Gray code generation circuit 100.

[0068] In addition, since the Bit0 Gray code generation circuit 2 and the other Gray code generation circuits 3 to 6 operate with a shift of half a cycle of the clock signal, the circuits can operate with a half cycle of the clock signal as a whole. Therefore, it is possible to further increase the frequency of the Gray code output from the multi-bit Gray code generation circuit 100.

[0069] Furthermore, since the clock delay circuit 1 starts outputting a clock signal a predetermined number of clocks after the reset is released by the reset signal XRST, it is possible to start outputting a multi-bit Gray code at any timing.

[0070] [Embodiment 2] Other embodiments of the present invention will be described below. For ease of explanation, the same reference numerals are given to members having the same functions as those described in the first embodiment, and detailed explanations thereof will not be repeated.

[0071] <Configuration and Operation of Gray Code Generation Circuit 100a> Fig. 14 is a block diagram showing a schematic configuration of a multi-bit Gray code generation circuit 100a according to embodiment 2 of the present invention. The only difference from the multi-bit Gray code generation circuit 100 according to embodiment 1 shown in Fig. 1 is that buffers 61-63, inverters (inverting circuits) 64-65, and selectors (selecting circuits) 66-67 are added.

[0072] The buffers 61 to 63 directly output, as SD0 to SD2, the values ​​of the output signals D0 to D2 from the Bit0 Gray code generation circuit 2 to Bit2 Gray code generation circuit 4. The buffers 61 to 63 are not essential.

[0073] The inverter 64 inverts and outputs the value of the output signal D3 from the Bit 3 Gray code generation circuit 5. When the SEL signal is "0", the selector 66 selects the value of the output signal D3 from the Bit 3 Gray code generation circuit 5 and outputs it as SD3. When the SEL signal is "1", the selector 66 selects the value of D3 inverted by the inverter 64 and outputs it as SD3.

[0074] The inverter 65 inverts and outputs the value of the output signal D4 from the Bit4 Gray code generation circuit 6. When the SEL signal is "0", the selector 67 selects the value of the output signal D4 from the Bit4 Gray code generation circuit 6 and outputs it as SD4. When the SEL signal is "1", the selector 67 selects the value obtained by inverting D4 by the inverter 65 and outputs it as SD4.

[0075] Fig. 15 is a timing chart for explaining the operation of the multi-bit Gray code generation circuit 100a according to the second embodiment of the present invention when the SEL signal is "0". This timing chart is similar to the timing chart shown in Fig. 13. Therefore, detailed description will not be repeated.

[0076] 16 is a timing chart for explaining the operation of the multi-bit Gray code generation circuit 100a according to the second embodiment of the present invention when the SEL signal is "1". At timing T1, the clock delay circuit 1 starts outputting the clock signal CK0, but the output signals D0 to D2 of the Bit0 Gray code generation circuit 2 to Bit2 Gray code generation circuit 4 are "0", and SD0 to SD3 are "0". In addition, the output signals D3 and D4 of the Bit3 Gray code generation circuit 5 and the Bit4 Gray code generation circuit 6 are "0", and SD3 to SD4 are "1". At this time, the multi-bit Gray code is "24" in decimal notation.

[0077] At timing T2, the output signal D0 of the Bit0 Gray code generation circuit 2 becomes “1”, and there is no change in the output signals of the other Gray code generation circuits 3 to 6. At this time, the multi-bit Gray code becomes “25” in decimal notation.

[0078] At timing T3, the output signal D1 of the Bit1 Gray code generation circuit 3 becomes “1”, and the output signals of the other Gray code generation circuits 2 and 4 to 6 do not change. At this time, the multi-bit Gray code becomes “27” in decimal notation.

[0079] At timing T4, the output signal D0 of the Bit0 Gray code generation circuit 2 becomes “0”, and there is no change in the output signals of the other Gray code generation circuits 3 to 6. At this time, the multi-bit Gray code becomes “26” in decimal notation.

[0080] At timing T5, the output signal D2 of the Bit2 Gray code generation circuit 4 becomes “1”, and there is no change in the output signals of the other Gray code generation circuits 2, 3, 5 and 6. At this time, the multi-bit Gray code becomes “30” in decimal notation.

[0081] At timing T6, the output signal D0 of the Bit0 Gray code generation circuit 2 becomes “1”, and there is no change in the output signals of the other Gray code generation circuits 3 to 6. At this time, the multi-bit Gray code becomes “31” in decimal notation.

[0082] At timing T7, the output signal D1 of the Bit1 Gray code generation circuit 3 becomes “0”, and there are no changes in the output signals of the other Gray code generation circuits 2 and 4 to 6. At this time, the multi-bit Gray code becomes “29” in decimal notation.

[0083] At timing T8, the output signal D0 of the Bit0 Gray code generation circuit 2 becomes “0”, and there is no change in the output signals of the other Gray code generation circuits 3 to 6. At this time, the multi-bit Gray code becomes “28” in decimal notation.

[0084] At timing T9, the output signal D3 of the Bit3 Gray code generation circuit 5 becomes "1" and SD3 becomes "0." The output signals of the other Gray code generation circuits 2 to 4 and 6 do not change. At this time, the multi-bit Gray code is expressed as "20" in decimal notation.

[0085] At timing T10, the output signal D0 of the Bit0 Gray code generation circuit 2 becomes “1”, and there is no change in the output signals of the other Gray code generation circuits 3 to 6. At this time, the multi-bit Gray code becomes “21” in decimal notation.

[0086] At timing T11, the output signal D1 of the Bit1 Gray code generation circuit 3 becomes “1”, and the output signals of the other Gray code generation circuits 2 and 4 to 6 do not change. At this time, the multi-bit Gray code becomes “23” in decimal notation.

[0087] At timing T12, the output signal D0 of the Bit0 Gray code generation circuit 2 becomes “0”, and there is no change in the output signals of the other Gray code generation circuits 3 to 6. At this time, the multi-bit Gray code becomes “22” in decimal notation.

[0088] At timing T13, the output signal D2 of the Bit2 Gray code generation circuit 4 becomes “0”, and there is no change in the output signals of the other Gray code generation circuits 2, 3, 5 and 6. At this time, the multi-bit Gray code becomes “18” in decimal notation.

[0089] At timing T14, the output signal D0 of the Bit0 Gray code generation circuit 2 becomes “1”, and there is no change in the output signals of the other Gray code generation circuits 3 to 6. At this time, the multi-bit Gray code becomes “19” in decimal notation.

[0090] At timing T15, the output signal D1 of the Bit1 Gray code generation circuit 3 becomes “0”, and there are no changes in the output signals of the other Gray code generation circuits 2 and 4 to 6. At this time, the multi-bit Gray code becomes “17” in decimal notation.

[0091] At timing T16, the output signal D0 of the Bit0 Gray code generation circuit 2 becomes “0”, and there is no change in the output signals of the other Gray code generation circuits 3 to 6. At this time, the multi-bit Gray code becomes “16” in decimal notation.

[0092] At timing T17, the output signal D4 of the Bit4 Gray code generation circuit 6 becomes "1" and SD4 becomes "0". The output signals of the other Gray code generation circuits 2 to 5 do not change. At this time, the multi-bit Gray code becomes "0" in decimal notation. After that, the same operation is performed.

[0093] As described above, in the multi-bit Gray code generation circuit 100a according to this embodiment, the selectors 66 and 67 select the values ​​of the output signals D3 and D4 from the Bit3 Gray code generation circuit 5 and the Bit4 Gray code generation circuit 6 when the SEL signal is "0", and output them as SD3 and SD4. Also, when the SEL signal is "1", the selectors 66 and 67 select the values ​​obtained by inverting D3 and D4 by the inverters 64 and 65, and output them as SD3 and SD4.

[0094] Therefore, by changing the SEL signal from "0" to "1", the start code of the Gray code can be changed from "0" to "24" in decimal notation, making it possible to provide a highly versatile multi-bit Gray code generation circuit.

[0095] [Embodiment 3] Other embodiments of the present invention will be described below. For ease of explanation, the same reference numerals are given to members having the same functions as those described in the first embodiment, and detailed explanations thereof will not be repeated.

[0096] <Configuration and Operation of Gray Code Generation Circuit 100b> 17 is a block diagram showing a schematic configuration of a multi-bit Gray code generation circuit 100b according to the third embodiment of the present invention. The only difference from the multi-bit Gray code generation circuit 100 according to the first embodiment shown in FIG. 1 is that FF circuits 71 to 73 and selectors (selection circuits) 74 to 78 are added.

[0097] The FF circuits 71 to 73 are reset when the XRST signal is "0", and when the XRST signal is "1", they hold the value at the terminal D at the falling edge of the CK0 signal and output it to the terminal Q.

[0098] When the SEL signal is "0", the selector 74 selects the output signal D0 from the Bit0 Gray code generation circuit 2 and outputs it as GB_D0. When the SEL signal is "1", the selector 74 selects the clock signal CK0 and outputs it as GB_D0.

[0099] When the SEL signal is "0", the selector 75 selects the output signal D1 from the Bit1 Gray code generation circuit 3 and outputs it as GB_D1. When the SEL signal is "1", the selector 75 selects the output signal D0 from the Bit0 Gray code generation circuit 2 and outputs it as GB_D1.

[0100] When the XRST signal is "1", the FF circuit 71 holds the value of the output signal D1 from the Bit1 Gray code generation circuit 3 at the falling edge of the CK0 signal and outputs it to the selector 76. When the SEL signal is "0", the selector 76 selects the output signal D2 from the Bit2 Gray code generation circuit 4 and outputs it as GB_D2. When the SEL signal is "1", the selector 76 selects the output signal from the FF circuit 71 and outputs it as GB_D2.

[0101] When the XRST signal is "1", the FF circuit 72 holds the value of the output signal n2 of the Bit2 Gray code generation circuit 4 at the falling edge of the CK0 signal and outputs it to the selector 77. When the SEL signal is "0", the selector 77 selects the output signal D3 from the Bit3 Gray code generation circuit 5 and outputs it as GB_D3. Also, when the SEL signal is "1", the selector 77 selects the output signal from the FF circuit 72 and outputs it as GB_D3.

[0102] When the XRST signal is "1", the FF circuit 73 holds the value of the output signal n6 of the Bit3 Gray code generation circuit 5 at the falling edge of the CK0 signal and outputs it to the selector 78. When the SEL signal is "0", the selector 78 selects the output signal D4 from the Bit4 Gray code generation circuit 6 and outputs it as GB_D4. When the SEL signal is "1", the selector 78 selects the output signal from the FF circuit 73 and outputs it as GB_D4.

[0103] Hereinafter, the output signals GB_D0 to GB_D4 of the selectors 74 to 78 will be referred to as binary codes.

[0104] Fig. 18 is a timing chart for explaining the operation of the multi-bit Gray code generation circuit 100b according to the third embodiment of the present invention when the SEL signal is "0". This timing chart is similar to the timing chart shown in Fig. 13. Therefore, detailed description will not be repeated.

[0105] 19 is a timing chart for explaining the operation of the multi-bit Gray code generation circuit 100b according to the third embodiment of the present invention when the SEL signal is "1". At timing T1, the output signals GB_D0 to GB_D4 of the selectors 74 to 78 all become "0". At this time, the binary code is represented as "0" in decimal notation.

[0106] At timing T2, the clock delay circuit 1 starts outputting the clock signal CK0, and the selector 74 selects the clock signal CK0 and outputs it as GB_D0. At this time, the binary code is expressed as "1" in decimal notation. After that, the selector 74 outputs the same timing waveform as the clock signal CK0 to GB_D0.

[0107] At timing T3, the output signal D0 of the Bit0 Gray code generation circuit 2 becomes "1", and the selector 75 outputs "1" to GB_D1. At this time, the binary code becomes "2" in decimal notation.

[0108] At timing T4, the output signal D1 of the Bit1 Gray code generation circuit 3 becomes “1”, but the output of the output terminal Q of the FF circuit 71 remains “0”. At this time, the binary code becomes “3” in decimal notation.

[0109] At timing T5, the output signal D0 of the Bit0 Gray code generation circuit 2 becomes "0", and the selector 75 outputs "0" to GB_D1. The FF circuit 71 holds the value "1" of the output signal D1 of the Bit1 Gray code generation circuit 3 and outputs it to the selector 76. The selector 76 selects the value "1" held by the FF circuit 71 and outputs it as GB_D2. At this time, the binary code becomes "4" in decimal notation.

[0110] At timing T6, there is no change in the values ​​of the outputs GB_D1 to GB_D4 of the selectors 75 to 78. At this time, the binary code is "5" in decimal notation.

[0111] At timing T7, the output signal D0 of the Bit0 Gray code generation circuit 2 becomes “1”, and the selector 75 outputs “1” to GB_D1. At this time, the binary code becomes “6” in decimal notation.

[0112] At timing T8, there is no change in the values ​​of the outputs GB_D1 to GB_D4 of the selectors 75 to 78. At this time, the binary code is "7" in decimal notation.

[0113] At timing T9, the FF circuit 71 holds the value "0" of the output signal D1 of the Bit1 Gray code generation circuit 3 and outputs it to the selector 76. The selector 76 selects the value "0" held by the FF circuit 71 and outputs it as GB_D2. The FF circuit 72 holds the value "1" of the output signal n2 of the Bit2 Gray code generation circuit 4 and outputs it to the selector 77. The selector 77 selects the value "1" held by the FF circuit 72 and outputs it as GB_D3. At this time, the binary code is "8" in decimal notation.

[0114] At timing T10, there is no change in the values ​​of the outputs GB_D1 to GB_D4 of the selectors 75 to 78. At this time, the binary code is "9" in decimal notation.

[0115] At timing T11, the output signal D0 of the Bit0 Gray code generation circuit 2 becomes "1", and the selector 75 outputs "1" to GB_D1. At this time, the binary code becomes "10" in decimal notation.

[0116] At timing T12, there is no change in the values ​​of the outputs GB_D1 to GB_D4 of the selectors 75 to 78. At this time, the binary code is "11" in decimal notation.

[0117] At timing T13, the output signal D0 of the Bit0 Gray code generation circuit 2 becomes "0", and the selector 75 outputs "0" to GB_D1. The FF circuit 71 holds the value "1" of the output signal D1 of the Bit1 Gray code generation circuit 3 and outputs it to the selector 76. The selector 76 selects the value "1" held by the FF circuit 71 and outputs it as GB_D2. At this time, the binary code becomes "12" in decimal notation.

[0118] At timing T14, there is no change in the values ​​of the outputs GB_D1 to GB_D4 of the selectors 75 to 78. At this time, the binary code is "13" in decimal notation.

[0119] At timing T15, the output signal D0 of the Bit0 Gray code generation circuit 2 becomes “1”, and the selector 75 outputs “1” to GB_D1. At this time, the binary code becomes “14” in decimal notation.

[0120] At timing T16, there is no change in the values ​​of the outputs GB_D1 to GB_D4 of the selectors 75 to 78. At this time, the binary code is "15" in decimal notation.

[0121] At timing T17, the FF circuit 71 holds the value "0" of the output signal D1 of the Bit1 Gray code generation circuit 3 and outputs it to the selector 76. The selector 76 selects the value "0" held by the FF circuit 71 and outputs it as GB_D2. The FF circuit 72 holds the value "0" of the output signal n2 of the Bit2 Gray code generation circuit 4 and outputs it to the selector 77. The selector 77 selects the value "0" held by the FF circuit 72 and outputs it as GB_D3. The FF circuit 73 holds the value "1" of the output signal n6 of the Bit3 Gray code generation circuit 5 and outputs it to the selector 78. The selector 78 selects the value "1" held by the FF circuit 73 and outputs it as GB_D4. At this time, the binary code becomes "16" in decimal notation.

[0122] As described above, according to the multi-bit Gray code generation circuit 100b of this embodiment, when the SEL signal is "1", the selector 74 selects and outputs the clock signal CK0. Also, the selector 75 selects and outputs the output signal D0 from the Bit0 Gray code generation circuit 2. Also, the selectors 76 to 78 select and output the output signals from the FF circuits 71 to 73. With this configuration, the multi-bit Gray code generation circuit 100b can convert a 5-bit Gray code into a 5-bit binary code.

[0123] <Summary> A multi-bit Gray code generation circuit according to aspect 1 of the present invention includes a 0th Gray code generation circuit that generates a Gray code corresponding to bit 0 of a multi-bit Gray code, and a plurality of Gray code generation circuits that generate Gray codes corresponding to each bit higher than bit 0 of the multi-bit Gray code, each of which is composed of a plurality of flip-flop circuits, in which the output of the previous stage flip-flop circuit is input to the next stage flip-flop circuit, the output of the final stage flip-flop circuit is inverted and held in the first stage flip-flop circuit, and the output of any one of the plurality of flip-flop circuits is output as a Gray code corresponding to each bit.

[0124] According to the above configuration, since there is no logic circuit between the flip-flop circuits, the delay time is small, and the driving frequency of the clock signal input to the flip-flop circuits can be increased, and therefore the frequency of the Gray code output from the multi-bit Gray code generation circuit can also be increased.

[0125] A multi-bit Gray code generation circuit according to a second aspect of the present invention is similar to the first aspect, in that the 0th Gray code generation circuit and the plurality of Gray code generation circuits operate with a shift of a half cycle of the clock signal.

[0126] According to the above configuration, it is possible to further increase the frequency of the Gray code output from the multi-bit Gray code generation circuit.

[0127] A multi-bit Gray code generation circuit according to aspect 3 of the present invention is the same as in aspect 1 or 2 above, in which the 0th Gray code generation circuit includes a first flip-flop circuit that holds an inverted output value in synchronization with a clock signal and outputs the inverted output as bit 0 of the Gray code.

[0128] According to the above configuration, the driving frequency of the clock signal input to the flip-flop circuit can be increased.

[0129] A multi-bit Gray code generation circuit according to aspect 4 of the present invention is any of aspects 1 to 3 above, wherein the multiple Gray code generation circuits include a first Gray code generation circuit including a second flip-flop circuit that holds and outputs an inverted value of an input in synchronization with a clock signal, and a third flip-flop circuit that holds the output value of the second flip-flop circuit in synchronization with the clock signal and outputs the output to the second flip-flop circuit, with the output being bit 1 of the Gray code.

[0130] According to the above configuration, there is no logic circuit between the flip-flop circuits, so the delay time is small and the driving frequency of the clock signal input to the flip-flop circuits can be made high.

[0131] A multi-bit Gray code generation circuit according to a fifth aspect of the present invention is configured as in the above-mentioned fourth aspect, wherein the plurality of Gray code generation circuits further comprises a second Gray code generation circuit including a fourth flip-flop circuit that holds and outputs an inverted value of an input in synchronization with a clock signal, a fifth flip-flop circuit that holds and outputs the output value of the fourth flip-flop circuit in synchronization with the clock signal, a sixth flip-flop circuit that holds and outputs the output value of the fifth flip-flop circuit in synchronization with the clock signal, the output being bit 2 of the Gray code, and a seventh flip-flop circuit that holds the output value of the sixth flip-flop circuit in synchronization with the clock signal and outputs it to the fourth flip-flop circuit.

[0132] According to the above configuration, there is no logic circuit between the flip-flop circuits, so the delay time is small and the driving frequency of the clock signal input to the flip-flop circuits can be made high.

[0133] A multi-bit Gray code generation circuit according to a sixth aspect of the present invention is the same as in the fifth aspect, wherein the plurality of Gray code generation circuits further include an eighth flip-flop circuit that holds and outputs an inverted value of an input in synchronization with a clock signal, a ninth flip-flop circuit that holds and outputs an output value of the eighth flip-flop circuit in synchronization with the clock signal, a tenth flip-flop circuit that holds and outputs an output value of the ninth flip-flop circuit in synchronization with the clock signal, an eleventh flip-flop circuit that holds and outputs an output value of the tenth flip-flop circuit in synchronization with the clock signal, and a 12th flip-flop circuit that holds and outputs the output value of the 11th flip-flop circuit in synchronization with the clock signal, the output being set as bit 3 of the Gray code, a 13th flip-flop circuit that holds and outputs the output value of the 12th flip-flop circuit in synchronization with the clock signal, a 14th flip-flop circuit that holds and outputs the output value of the 13th flip-flop circuit in synchronization with the clock signal, and a 15th flip-flop circuit that holds and outputs the output value of the 14th flip-flop circuit in synchronization with the clock signal and outputs it to the eighth flip-flop circuit.

[0134] According to the above configuration, there is no logic circuit between the flip-flop circuits, so the delay time is small and the driving frequency of the clock signal input to the flip-flop circuits can be made high.

[0135] A multi-bit Gray code generation circuit according to a seventh aspect of the present invention is the same as in the sixth aspect, further comprising a fourth Gray code generation circuit which generates bit 4 of the Gray code, a first selection circuit which selectively outputs the output value from the third Gray code generation circuit and an inverted value of the output from the third Gray code generation circuit, and a second selection circuit which selectively outputs the output value from the fourth Gray code generation circuit and an inverted value of the output from the fourth Gray code generation circuit.

[0136] According to the above configuration, the start code of the Gray code can be changed, making it possible to provide a highly versatile multi-bit Gray code generation circuit.

[0137] A multi-bit Gray code generation circuit according to an eighth aspect of the present invention is the multi-bit Gray code generation circuit of the sixth aspect, further comprising a fourth Gray code generation circuit which generates bit 4 of the Gray code, a sixteenth flip-flop circuit which holds and outputs the output value of the first Gray code generation circuit in synchronization with a clock signal, a seventeenth flip-flop circuit which holds and outputs the output value of the seventh flip-flop circuit of the second Gray code generation circuit in synchronization with the clock signal, an eighteenth flip-flop circuit which holds and outputs the output value of the fifteenth flip-flop circuit of the third Gray code generation circuit in synchronization with the clock signal, and the third selection circuit selectively outputs the output from the 0th Gray code generation circuit and the clock signal; a fourth selection circuit selectively outputs the output from the first Gray code generation circuit and the output from the 0th Gray code generation circuit; a fifth selection circuit selectively outputs the output from the second Gray code generation circuit and the output from the 16th flip-flop circuit; a sixth selection circuit selectively outputs the output from the third Gray code generation circuit and the output from the 17th flip-flop circuit; and a seventh selection circuit selectively outputs the output from the fourth Gray code generation circuit and the output from the 18th flip-flop circuit.

[0138] According to the above configuration, the multi-bit Gray code generation circuit is capable of converting the Gray code into a binary code.

[0139] A multi-bit Gray code generation circuit according to a ninth aspect of the present invention is any one of the above first to eighth aspects, further comprising a clock delay circuit that starts outputting a clock signal a predetermined number of clocks after reset is released.

[0140] According to the above configuration, the multi-bit Gray code generation circuit can start outputting the multi-bit Gray code at any timing.

[0141] The present invention is not limited to the above-described embodiments, and various modifications are possible within the scope of the claims. The technical scope of the present invention also includes embodiments obtained by appropriately combining the technical means disclosed in the different embodiments. Furthermore, new technical features can be formed by combining the technical means disclosed in the respective embodiments. [Explanation of symbols]

[0142] 1 Clock Delay Circuit 2 Bit 0 Gray Code Generator 3 Bit 1 Gray Code Generator 4 Bit 2 Gray Code Generator Circuit 5 Bit 3 Gray Code Generator Circuit 6 Bit 4 Gray Code Generator Circuit 11~13,21,31,32,41~44,51~58,71~73 Flip-flop circuit 14 Latch Circuit 15 AND Circuit 61~63 Buffer 64,65 Inverter (inverting circuit) 66, 67, 74~78 Selector (selection circuit) 100,100a,100b Multi-bit Gray code generator

Claims

1. a 0th Gray code generation circuit for generating a Gray code corresponding to bit 0 of the multi-bit Gray code; a plurality of Gray code generation circuits for generating Gray codes corresponding to each bit higher than bit 0 of the multi-bit Gray code; each of the plurality of Gray code generation circuits is configured with a plurality of flip-flop circuits; The output of the previous flip-flop circuit is input to the next flip-flop circuit, The output of the last flip-flop circuit is inverted and held by the first flip-flop circuit, outputting an output of any one of the plurality of flip-flop circuits as a Gray code corresponding to each bit; a multi-bit Gray code generation circuit, wherein the 0th Gray code generation circuit and the plurality of Gray code generation circuits operate with a shift of a half cycle of a clock signal;

2. 2. The multi-bit Gray code generation circuit according to claim 1, wherein the 0 Gray code generation circuit includes a first flip-flop circuit that holds an inverted output value in synchronization with a clock signal and outputs the inverted output as bit 0 of the Gray code.

3. The plurality of Gray code generation circuits include a second flip-flop circuit that holds and outputs an inverted value of an input in synchronization with a clock signal; 3. The multi-bit Gray code generation circuit according to claim 1, further comprising: a first Gray code generation circuit including: a third flip-flop circuit that holds the value of the output of the second flip-flop circuit in synchronization with the clock signal, outputs the value to the second flip-flop circuit, and sets the output as bit 1 of the Gray code.

4. The plurality of Gray code generation circuits further include a fourth flip-flop circuit that holds and outputs an inverted value of an input in synchronization with a clock signal; a fifth flip-flop circuit that holds and outputs the value of the output of the fourth flip-flop circuit in synchronization with the clock signal; a sixth flip-flop circuit that holds and outputs the output value of the fifth flip-flop circuit in synchronization with the clock signal, the output being set as bit 2 of the Gray code; a seventh flip-flop circuit that holds a value of an output of the sixth flip-flop circuit in synchronization with the clock signal and outputs the value to the fourth flip-flop circuit.

5. The plurality of Gray code generation circuits further include an eighth flip-flop circuit that holds and outputs an inverted value of an input in synchronization with a clock signal; a ninth flip-flop circuit that holds and outputs the value of the output of the eighth flip-flop circuit in synchronization with the clock signal; a tenth flip-flop circuit that holds and outputs the value of the output of the ninth flip-flop circuit in synchronization with the clock signal; an eleventh flip-flop circuit that holds and outputs the value of the output of the tenth flip-flop circuit in synchronization with the clock signal; a twelfth flip-flop circuit that holds and outputs the value of the output of the eleventh flip-flop circuit in synchronization with the clock signal, the output being set as bit 3 of the Gray code; a thirteenth flip-flop circuit that holds and outputs the value of the output of the twelfth flip-flop circuit in synchronization with the clock signal; a fourteenth flip-flop circuit that holds and outputs the value of the output of the thirteenth flip-flop circuit in synchronization with the clock signal; a fifteenth flip-flop circuit that holds the value of the output of the fourteenth flip-flop circuit in synchronization with the clock signal and outputs the value to the eighth flip-flop circuit,

6. the multi-bit Gray code generation circuit further includes a fourth Gray code generation circuit for generating bit 4 of the Gray code; a first selection circuit that selectively outputs a value of an output from the third Gray code generation circuit and a value obtained by inverting the output from the third Gray code generation circuit; 6. The multi-bit Gray code generation circuit according to claim 5, further comprising: a second selection circuit that selectively outputs a value of the output from said fourth Gray code generation circuit and a value obtained by inverting the output from said fourth Gray code generation circuit.

7. the multi-bit Gray code generation circuit further includes a fourth Gray code generation circuit for generating bit 4 of the Gray code; a sixteenth flip-flop circuit that holds and outputs the value of the output of the first Gray code generation circuit in synchronization with the clock signal; a seventeenth flip-flop circuit that holds and outputs the output value of the seventh flip-flop circuit of the second Gray code generation circuit in synchronization with the clock signal; an eighteenth flip-flop circuit that holds and outputs the value of the output of the fifteenth flip-flop circuit of the third Gray code generation circuit in synchronization with the clock signal; a third selection circuit that selectively outputs the output from the 0th Gray code generation circuit and the clock signal; a fourth selection circuit that selectively outputs an output from the first Gray code generation circuit and an output from the 0th Gray code generation circuit; a fifth selection circuit that selectively outputs an output from the second Gray code generation circuit and an output from the sixteenth flip-flop circuit; a sixth selection circuit that selectively outputs an output from the third Gray code generation circuit and an output from the seventeenth flip-flop circuit; 6. The multi-bit Gray code generation circuit according to claim 5, further comprising a seventh selection circuit which selectively outputs an output from said fourth Gray code generation circuit and an output from said eighteenth flip-flop circuit.

8. The multi-bit Gray code generation circuit according to any one of claims 1 to 7, further comprising a clock delay circuit that starts outputting a clock signal a predetermined number of clocks after reset release.

Citation Information

Patent Citations

  • Code conversion unit

    JP1977120734A

  • Multi-bit gray code counter

    JP1994053818A

  • Cray code counter

    JP2002111482A

  • Device for generating gray code

    JP2003037504A

  • Gray code counter

    US4618849A