Oscillation circuit

The use of inverters and logic inversion circuits in a ring oscillator addresses the issue of increased circuit scale and susceptibility to frequency injection attacks, achieving efficient load management and improved randomness and security in random number generation.

WO2024202522A1PCT designated stage expired Publication Date: 2024-10-03SONY SEMICON SOLUTIONS CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2024/003291
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-27
Filing Date
2024-02-01
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

Conventional ring oscillators using NAND gates face an increased circuit scale, which complicates load management and makes them susceptible to frequency injection attacks.

Method used

Implementing a ring oscillator with inverters at each stage, where the logic inversion circuit equalizes loads and includes power switches and latch circuits to manage power and generate random numbers, while also providing isolators and varying configurations to enhance resistance to frequency injection attacks.

Benefits of technology

This configuration allows for controlled load management, reduced circuit scale, improved resistance to frequency injection attacks, and enhanced predictability and randomness of generated random numbers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2024003291_03102024_PF_FP_ABST
    Figure JP2024003291_03102024_PF_FP_ABST
Patent Text Reader

Abstract

The present invention makes it possible to set a load to be applied to each stage of a ring oscillator while suppressing an increase in the circuit scale of the ring oscillator. This oscillation circuit comprises: a ring oscillator in which an inverter is used in each stage; and a plurality of logic inversion circuits respectively connected to outputs of inverters in stages different from each other. The output of the ring oscillator is outputted via at least one of the logic inversion circuits. The logic inversion circuits may make the loads of the inverters in the respective stages uniform with each other. The logic inversion circuit may be provided in each stage of the ring oscillator. The logic inversion circuits in the respective stages may be configured by the same logic gate. The logic inversion circuit in each stage may be an inverter.
Need to check novelty before this filing date? Find Prior Art

Description

Oscillator circuit

[0001] The present technology relates to an oscillator circuit, and more particularly to an oscillator circuit provided with a ring oscillator.

[0002] A ring oscillator is sometimes used as an oscillation circuit. For example, a ring oscillator using a NAND gate has been proposed to generate highly random true random numbers even in the first sampling immediately after the start of circuit operation (see, for example, Patent Document 1).

[0003] JP 2012-129784 A

[0004] However, in the above-mentioned conventional technology, since NAND gates are used as logic gates that constitute the ring oscillator, there is a risk that the circuit scale of the ring oscillator will increase.

[0005] This technology was developed in light of these circumstances, and aims to make it possible to set the load on each stage of a ring oscillator while suppressing an increase in the circuit size of the ring oscillator.

[0006] The present technology has been made to solve the above-mentioned problems, and a first aspect thereof is an oscillation circuit including a ring oscillator in which an inverter is used in each stage, and a plurality of logic inversion circuits connected to the outputs of the inverters in different stages, the output of the ring oscillator being output via at least one of the logic inversion circuits, thereby providing the effect of making it possible to set the load applied to each stage of the ring oscillator while suppressing an increase in the circuit size of the ring oscillator.

[0007] In the first aspect, the logic inversion circuit may equalize the loads of the inverters in each stage, thereby suppressing an increase in the circuit size of the ring oscillator and equalizing the loads on each stage of the ring oscillator.

[0008] In the first aspect, the logic inversion circuit may be provided for each stage of the ring oscillator, thereby improving resistance to frequency injection attacks while suppressing an increase in the circuit size of the ring oscillator.

[0009] In the first aspect, the logic inversion circuits of the respective stages may be configured with the same logic gate, thereby providing an effect of equalizing the load on each stage of the ring oscillator.

[0010] In the first aspect, the logic inversion circuit of each stage may be an inverter, which suppresses an increase in the circuit size of the logic inversion circuit and equalizes the load on each stage of the ring oscillator.

[0011] In addition, in the first aspect, the circuit may further include a power switch that cuts off power to the ring oscillator based on an enable signal, thereby providing an effect that the ring oscillator can be configured with an inverter while stopping oscillation of the ring oscillator.

[0012] In the first aspect, the clock generator may further include a latch circuit that latches the output of the ring oscillator via the logic inversion circuit based on a sampling clock, thereby producing an effect that a random number is generated based on the output of the ring oscillator.

[0013] In the first aspect, the output of the ring oscillator may be used to generate random numbers, thereby improving the difficulty of predicting random numbers while suppressing an increase in the circuit size of the ring oscillator.

[0014] In the first aspect, a plurality of ring oscillators each having the same configuration and connected to the logic inversion circuit may be provided, the latch circuit may be provided for each ring oscillator, and the random number may be generated based on the output of an exclusive OR circuit having the output of the latch circuit as an input. This provides the effect of improving the randomness of the random number while suppressing an increase in the circuit size of the ring oscillator.

[0015] In the first aspect, a plurality of ring oscillators having different configurations, each connected to the logic inversion circuit, may be provided, the latch circuit may be provided for each ring oscillator, and the random number may be generated based on the output of an exclusive OR circuit having the output of the latch circuit as an input. This improves the difficulty of predicting the random number while increasing resistance to frequency injection attacks.

[0016] In the first aspect, the ring oscillators may have different numbers of stages, thereby providing an effect that the configurations of the ring oscillators to which the logic inversion circuits are respectively connected are changed.

[0017] In the first aspect, the circuit may further include an isolator that blocks the output of the ring oscillator via the logic inversion circuit based on an isolation signal, thereby providing an effect that the output of the ring oscillator can be extracted only after the output of the ring oscillator has stabilized.

[0018] In the first aspect, the logic inversion circuit may make the loads of the inverters in the respective stages uneven, thereby improving sensitivity to frequency injection attacks.

[0019] In the first aspect, the logic inversion circuit may be provided in at least one of the stages of the ring oscillator, thereby providing an effect of making the loads of the inverters in the respective stages uneven.

[0020] In the first aspect, the logic inversion circuit may be an inverter, which suppresses an increase in the circuit size of the logic inversion circuit and makes the loads on the stages of the ring oscillator uneven.

[0021] In the first aspect, the number of inverters connected to each stage of the ring oscillator may be different from each other, thereby suppressing an increase in the circuit size of the logic inversion circuit and achieving uneven loads on each stage of the ring oscillator.

[0022] In the first aspect, the output of the ring oscillator may be used to detect a change in frequency, thereby making it possible to detect a frequency injection attack.

[0023] FIG. 1 is a diagram showing a configuration example of an oscillator circuit according to a first embodiment; FIG. 2 is a timing chart showing waveforms of each part of the oscillator circuit according to the first embodiment; FIG. 3 is a diagram showing a configuration example of an oscillator circuit according to a second embodiment; FIG. 4 is a diagram showing a configuration example of an oscillator circuit according to a third embodiment; FIG. 5 is a diagram showing a configuration example of an oscillator circuit according to a fourth embodiment; FIG. 6 is a diagram showing a configuration example of an oscillator circuit according to a fifth embodiment; FIG. 7 is a diagram showing a configuration example of an oscillator circuit according to a seventh embodiment;

[0024] Hereinafter, modes for implementing the present technology (hereinafter referred to as embodiments) will be described. The description will be made in the following order: 1. First embodiment (an example in which an inverter is connected as a load on the output of an inverter in each stage of a ring oscillator, and power switches for cutting off the power supply to the ring oscillator are provided on the high power supply potential side and the low power supply potential side) 2. Second embodiment (an example in which an inverter is connected as a load on the output of an inverter in each stage of a ring oscillator, and power switches for cutting off the power supply to the ring oscillator are provided on the high power supply potential side) 3. Third embodiment (an example in which an inverter is connected as a load on the output of an inverter in each stage of a ring oscillator, and power switches for cutting off the power supply to the ring oscillator are provided on the low power supply potential side) 4. Fourth embodiment (an example in which an inverter is connected as a load on the output of an inverter in each stage of a ring oscillator, and power switches for cutting off the power supply to the ring oscillator are omitted) 5. 5. Fifth embodiment (an example in which a plurality of ring oscillators with the same number of stages, each with an inverter connected as a load to the output of the inverter at each stage, are provided, and a random number is generated based on the exclusive OR of the outputs of the plurality of ring oscillators) 6. Sixth embodiment (an example in which a plurality of ring oscillators with different numbers of stages, each with an inverter connected as a load to the output of the inverter at each stage, are provided, and a random number is generated based on the exclusive OR of the outputs of the plurality of ring oscillators) 7. Seventh embodiment (an example in which different loads are connected to the outputs of the inverters at each stage of the ring oscillator)

[0025] 1 is a diagram showing a configuration example of an oscillator circuit according to a first embodiment. Note that this embodiment shows an example in which the oscillator circuit is applied to a random number generator.

[0026] In the figure, the oscillator circuit includes a ring oscillator 100 and inverters 111 to 113. This oscillator circuit can be applied to, for example, a random number generator. This random number generator can be used, for example, for cryptographic processing or security processing. Note that each of the inverters 111 to 113 is an example of a logic inversion circuit as defined in the claims.

[0027] The ring oscillator 100 includes an odd number of inverters 101 to 103. These inverters 101 to 103 are connected in a ring shape.

[0028] Each of the inverters 111 to 113 is connected to the output of the inverters 101 to 103 in different stages. Here, each of the inverters 111 to 113 can equalize the loads of the inverters 101 to 103 in each stage of the ring oscillator 100. The output of the ring oscillator 100 is output via one of the inverters 101 to 103. For example, the output of the ring oscillator 100 can be output via the inverter 113. The outputs of the inverters 111 and 112 can be left unconnected to the outside. In this case, an isolator 120 is connected to the downstream of the ring oscillator 100 via the inverter 113, and a latch circuit 130 is connected to the downstream of the isolator 120.

[0029] Based on the isolation signal ISO, the isolator 120 cuts off the output RO of the ring oscillator 100 via the inverter 113. For example, a NAND circuit can be used as the isolator 120. In this case, a first input terminal of the NAND circuit is connected to the output of the inverter 113, and the isolation signal ISO is input to a second input terminal of the NAND circuit.

[0030] The latch circuit 130 latches the output RO of the ring oscillator 100 via the inverter 113 based on the sampling clock SCK. For example, a D flip-flop can be used as the latch circuit 130. In this case, the D terminal of the D flip-flop is connected to the output of the isolator 120, the sampling clock SCK is input to the clock terminal of the D flip-flop, and the random number RN is output from the Q terminal of the D flip-flop.

[0031] The oscillator circuit also includes power switches 141 and 142. Each of the power switches 141 and 142 cuts off the power supply to the ring oscillator 100 based on an enable signal ENB or EN, respectively. At this time, the power supplies of the inverters 101 to 103 and 111 to 113 are connected to a high power supply potential VDD via the power switch 141 and to a low power supply potential VSS via the power switch 142. The low power supply potential VSS may be ground potential. The power switch 141 may be, for example, a P-channel field-effect transistor, and the power switch 142 may be, for example, an N-channel field-effect transistor. The enable signal ENB is input to the gate of the P-channel field-effect transistor, and the enable signal EN is input to the gate of the N-channel field-effect transistor.

[0032] FIG. 2 is a timing chart showing waveforms at various parts of the oscillator circuit according to the first embodiment.

[0033] In the figure, when the enable signal EN rises and the enable signal ENB falls, power is supplied to each of the inverters 101 to 103 and 111 to 113 (t11). At this time, the ring oscillator 100 starts oscillating, and the output of the ring oscillator 100 is input to the isolator 120 via the inverter 113. Immediately after power is supplied to each of the inverters 101 to 103 and 111 to 113, the output RO of the ring oscillator 100 via the inverter 113 is undefined. Therefore, the isolator 120 cuts off the output RO of the ring oscillator 100 via the inverter 113 at the timing when the enable signal EN rises and the enable signal ENB falls.

[0034] When the output RO of the ring oscillator 100 via the inverter 113 becomes stable, the isolation signal ISO rises (t12). At this time, the isolator 120 passes the output RO of the ring oscillator 100 via the inverter 113 and outputs it to the latch circuit 130.

[0035] The latch circuit 130 latches the output RO of the ring oscillator 100 via the inverter 113 in accordance with the rising timing of the sampling clock SCK. Then, the latch circuit 130 outputs the sampled value in accordance with the rising timing of the sampling clock SCK as a random number RN (t13 to t15).

[0036] As described above, in the first embodiment, inverters 111 to 113 are connected as loads on the outputs of inverters 101 to 103 in each stage of ring oscillator 100. This allows output to be extracted from any one of inverters 101 to 103 in ring oscillator 100, while equalizing the loads on inverters 101 to 103 in each stage of ring oscillator 100. This improves the resistance of the oscillator circuit to frequency injection attacks, ensuring the unpredictability of the random number RN generated based on sampling of the output of ring oscillator 100. Note that a frequency injection attack is an act of intentionally biasing the frequency of the output of ring oscillator 100 by externally superimposing an AC component on the DC power supply level of the high power supply potential VDD.

[0037] Furthermore, the ring oscillator 100 is composed of inverters 101 to 103, and the logic inversion circuits connected to the outputs of the inverters 101 to 103 are composed of inverters 111 to 113. This makes it possible to equalize the loads on the inverters 101 to 103 of each stage of the ring oscillator 100 while suppressing an increase in the circuit size of the oscillation circuit.

[0038] Furthermore, power switches 141 and 142 for cutting off the power supply to ring oscillator 100 are provided on the high power supply potential VDD side and the low power supply potential VSS side. This allows ring oscillator 100 to be configured with inverters 101 to 103 while stopping the oscillation operation of ring oscillator 100. At this time, ring oscillator 100 can be started to oscillate based on the switching of power switches 141 and 142, and the starting point of oscillation of ring oscillator 100 can be randomized. Therefore, even in the first sampling in latch circuit 130 immediately after ring oscillator 100 starts oscillating, a random number RN with high non-reproducibility and randomness can be generated.

[0039] In the above embodiment, an example has been shown in which inverters 111 to 113 are connected as loads on the outputs of inverters 101 to 103 in each stage of ring oscillator 100. The loads on the outputs of inverters 101 to 103 in each stage of ring oscillator 100 are not necessarily limited to inverters 111 to 113, and may be other logic gates, such as NAND gates.

[0040] 2. Second Embodiment In the first embodiment described above, the power switches 141 and 142 that cut off the power supply to the ring oscillator 100 are provided on the high power supply potential VDD side and the low power supply potential VSS side. In this second embodiment, the power switch 141 that cuts off the power supply to the ring oscillator 100 is provided on the high power supply potential VDD side.

[0041] FIG. 3 is a diagram illustrating an example of the configuration of an oscillator circuit according to the second embodiment.

[0042] In the figure, the power switch 142 of the first embodiment described above is omitted from this oscillator circuit. In this case, the low potential side of the power supply of each of the inverters 101 to 103 and 111 to 113 is connected to the low power supply potential VSS. Other configurations of the oscillator circuit of the second embodiment are the same as those of the oscillator circuit of the first embodiment described above.

[0043] In this way, in the second embodiment described above, the power switch 141 that cuts off the power supply to the ring oscillator 100 is provided on the high power supply potential VDD side. This makes it possible to stop the oscillation operation of the ring oscillator 100 while still configuring the ring oscillator 100 with the inverters 101 to 103.

[0044] 3. Third Embodiment In the first embodiment described above, the power switches 141 and 142 that cut off the power supply to the ring oscillator 100 are provided on the high power supply potential VDD side and the low power supply potential VSS side. In this third embodiment, the power switch 142 that cuts off the power supply to the ring oscillator 100 is provided on the low power supply potential VSS side.

[0045] FIG. 4 is a diagram illustrating an example of the configuration of an oscillator circuit according to the third embodiment.

[0046] In the figure, the power switch 141 of the first embodiment described above is omitted from this oscillator circuit. In this case, the high potential side of the power supply of each of the inverters 101 to 103 and 111 to 113 is connected to the high power supply potential VDD. Other configurations of the oscillator circuit of the third embodiment are the same as those of the oscillator circuit of the first embodiment described above.

[0047] As described above, in the third embodiment, the power switch 142 that cuts off the power supply to the ring oscillator 100 is provided on the low power supply potential VSS side. This allows the ring oscillator 100 to be configured with the inverters 101 to 103 while stopping the oscillation operation of the ring oscillator 100.

[0048] 4. Fourth Embodiment In the first embodiment described above, the power switches 141 and 142 that cut off the power supply to the ring oscillator 100 are provided on the high power supply potential VDD side and the low power supply potential VSS side. In this fourth embodiment, the power switches 141 and 142 that cut off the power supply to the ring oscillator 100 are omitted.

[0049] FIG. 5 is a diagram illustrating an example of the configuration of an oscillator circuit according to the fourth embodiment.

[0050] In the figure, this oscillator circuit does not include the power switches 141 and 142 and the isolator 120 of the first embodiment. In this case, the high-potential side of the power supply of each of the inverters 101 to 103 and 111 to 113 is connected to a high power supply potential VDD, and the low-potential side is connected to a low power supply potential VSS. The output of the inverter 113 is input to a latch circuit 130. Since the output of the ring oscillator 100 always alternates between 0 and 1 and is not indefinite, the isolator 120 may be omitted. The remaining configuration of the oscillator circuit of the fourth embodiment is the same as that of the oscillator circuit of the first embodiment.

[0051] As described above, in the fourth embodiment, the power switches 141 and 142 that cut off the power supply to the ring oscillator 100 are omitted, and the ring oscillator 100 is constantly oscillating. This allows the circuit size of the oscillation circuit to be reduced, while always stabilizing the output of the ring oscillator 100.

[0052] 5. Fifth Embodiment In the first embodiment described above, inverters 111 to 113 are connected as loads to the outputs of inverters 101 to 103 in each stage of ring oscillator 100, and the oscillation circuit is applied to a random number generator. In this fifth embodiment, a plurality of ring oscillators with the same number of stages, each with an inverter connected as a load to the output of the inverter in each stage, are provided, and random numbers are generated based on the exclusive OR of the outputs of these plurality of ring oscillators.

[0053] FIG. 6 is a diagram illustrating an example of the configuration of an oscillator circuit according to the fifth embodiment.

[0054] In the figure, this oscillation circuit includes ring oscillators 100-1 to 100-3. Each of the ring oscillators 100-1 to 100-3 can be configured in the same manner as the ring oscillator 100 of the first embodiment described above. In this case, each of the ring oscillators 100-1 to 100-3 can be provided with an odd number of inverters 101 to 103. In each of the ring oscillators 100-1 to 100-3, inverters 111 to 113 are connected to the outputs of the inverters 101 to 103, respectively. The outputs of the ring oscillators 100-1 to 100-3 can be output via the inverters 113 provided for each of the ring oscillators 100-1 to 100-3. At this time, isolators 120-1 to 120-3 are connected to the rear stages of the ring oscillators 100-1 to 100-3, respectively, via inverters 113 provided for the ring oscillators 100-1 to 100-3. Latch circuits 130-1 to 130-3 are connected to the rear stages of the isolators 120-1 to 120-3, respectively.

[0055] Each of the isolators 120-1 to 120-3 blocks the output of each of the ring oscillators 100-1 to 100-3 based on the isolation signal ISO. Each of the isolators 120-1 to 120-3 may be implemented, for example, as a NAND circuit. A first input terminal of each of the NAND circuits is connected to the output of an inverter 113 provided for each of the ring oscillators 100-1 to 100-3, and the isolation signal ISO is input to a second input terminal of each of the NAND circuits.

[0056] Each latch circuit 130-1 to 130-3 latches the output of each ring oscillator 100-1 to 100-3 based on the sampling clock SCK. Each latch circuit 130-1 to 130-3 can be, for example, a D flip-flop. At this time, the D terminal of each D flip-flop is connected to the output of each isolator 120-1 to 120-3, respectively. The sampling clock SCK is input to the clock terminal of each D flip-flop, and the Q terminal of each D flip-flop is connected to an exclusive OR circuit 150. A random number RN is output from the exclusive OR circuit 150. At this time, the exclusive OR circuit 150 performs an exclusive OR on the values ​​sampled by each latch circuit 130-1 to 130-3, thereby improving the randomness of the random number RN.

[0057] The oscillator circuit also includes power switches 141-1 to 141-3 and 142-1 to 142-3. Each of the power switches 141-1 to 141-3 and 142-1 to 142-3 cuts off the power supply to each of the ring oscillators 100-1 to 100-3 based on the enable signals ENB and EN, respectively. At this time, in each of the ring oscillators 100-1 to 100-3, the power supplies of the inverters 101 to 103 and 111 to 113 are connected to the high power supply potential VDD via the power switches 141-1 to 141-3, respectively. In each of the ring oscillators 100-1 to 100-3, the power supplies of the inverters 101 to 103 and 111 to 113 are connected to the low power supply potential VSS via the power switches 142-1 to 142-3, respectively. Each of the power switches 141-1 to 141-3 can be, for example, a P-channel field effect transistor, and each of the power switches 142-1 to 142-3 can be, for example, an N-channel field effect transistor.

[0058] In this way, in the fifth embodiment described above, multiple ring oscillators 100-1 to 100-3 are provided with the same number of stages, with the output load of each stage being equalized, and the random number RN is generated based on the exclusive OR of the outputs of these multiple ring oscillators 100-1 to 100-3. This makes it possible to improve the resistance of the oscillator circuit to frequency injection attacks while also improving the randomness of the random number RN.

[0059] 6. Sixth Embodiment In the fifth embodiment described above, the random number RN is generated based on the exclusive OR of the outputs of multiple ring oscillators 100-1 to 100-3 of the same number of stages, with the output load of each stage being equalized. In this sixth embodiment, multiple ring oscillators of different numbers of stages, with the output load of each stage being equalized, are provided, and a random number is generated based on the exclusive OR of the outputs of these multiple ring oscillators.

[0060] FIG. 7 is a diagram illustrating an example of the configuration of an oscillator circuit according to the sixth embodiment.

[0061] In the figure, this oscillation circuit includes ring oscillators 100-4 to 100-6 instead of the ring oscillators 100-1 to 100-3 of the fifth embodiment described above. The other configuration of the oscillation circuit of the sixth embodiment is the same as the configuration of the oscillation circuit of the fifth embodiment described above.

[0062] The ring oscillators 100-4 to 100-6 have different numbers of stages. Each of the ring oscillators 100-4 to 100-6 is provided with a logic inversion circuit for each output stage according to the number of stages, thereby equalizing the load on the output of each stage. The remaining configuration of the ring oscillators 100-4 to 100-6 is the same as that of the ring oscillators 100-1 to 100-3 of the fifth embodiment.

[0063] As described above, in the sixth embodiment, multiple ring oscillators 100-4 to 100-6 are provided, each with a different number of stages, and the load on the output of each stage is equalized. The random number RN is generated based on the exclusive OR of the outputs of these multiple ring oscillators 100-4 to 100-6. This further improves the oscillator circuit's resistance to frequency injection attacks while also improving the randomness of the random number RN.

[0064] In the sixth embodiment, in order to further improve the resistance of the oscillation circuit to frequency injection attacks, multiple ring oscillators 100-4, 100-5, and 100-6 with different numbers of stages are provided. In addition to the configuration in which the numbers of stages of the ring oscillators 100-4, 100-5, and 100-6 are different, the characteristics of each ring oscillator may also be different.

[0065] 7. Seventh Embodiment In the first embodiment described above, the ring oscillator 100 in which the loads on the outputs of each stage are equalized is applied to a random number generator. In this seventh embodiment, the loads on the outputs of each stage of the ring oscillator are made uneven, making it possible to detect changes in frequency.

[0066] FIG. 8 is a diagram illustrating a configuration example of an oscillator circuit according to the seventh embodiment.

[0067] In the figure, the oscillation circuit comprises a ring oscillator 200, inverters 211 to 214, and a capacitor 215. This oscillation circuit can be applied to, for example, a detection circuit that detects changes in frequency.

[0068] The ring oscillator 200 includes an odd number of inverters 201 to 207. These inverters 201 to 207 are connected in a ring shape.

[0069] The output of inverter 201 is connected to inverter 211, the output of inverter 202 is connected to inverters 212 and 213, and the output of inverter 207 is connected to inverter 214. The output of inverter 203 is connected to wiring 221, and the output of inverter 204 is connected to capacitor 215. Wiring 221 may be branched from the wiring connecting inverters 203 and 204. The output of inverter 205 is connected to the input of inverter 206 via wiring 222. Wiring 222 may be longer than the wiring connected to the outputs of other inverters 201 to 204, 206, and 207. Here, the loads connected to the outputs of each inverter 201 to 207 may be made uneven. Furthermore, the output of ring oscillator 200 may be output via inverter 214. Furthermore, the outputs of inverters 211 to 213 may be left unconnected to the outside.

[0070] This oscillator circuit also includes power switches 141 and 142. Each of the power switches 141 and 142 cuts off the power supply to the ring oscillator 200 based on enable signals ENB and EN, respectively. At this time, the power supplies of the inverters 201 to 207 and 211 to 214 are connected to the high power supply potential VDD via the power switch 141 and to the low power supply potential VSS via the power switch 142.

[0071] Here, by making the loads of each stage of the ring oscillator 200 uneven, it is possible to reduce the resistance to frequency injection attacks. When a frequency injection attack is performed, the oscillation frequency of the ring oscillator 200 changes depending on the injected frequency. Therefore, by detecting the change in the oscillation frequency of the ring oscillator 200, the oscillator circuit can be used as a detection circuit for frequency injection attacks. This detection circuit is not limited to detecting frequency injection attacks, and may be used for other purposes. For example, this detection circuit may be used to detect a unique frequency within a circuit.

[0072] In this way, in the seventh embodiment described above, different loads are connected to the outputs of the inverters 201 to 207 of each stage of the ring oscillator 200. This makes it possible to detect changes in the frequency of the oscillation circuit, and to detect frequency injection attacks against the oscillation circuit.

[0073] In the seventh embodiment, the number of inverters connected to the output of each stage is changed, a capacitor is connected, or the length of the wiring is made different in order to make the load of each stage of the ring oscillator 200 uneven. In addition to this, a resistive element may be connected to the output of each stage, or different types of logic gates may be connected.

[0074] Furthermore, the above-described embodiment shows an example for realizing the present technology, and the matters in the embodiment and the matters specifying the invention in the claims correspond to each other. Similarly, the matters specifying the invention in the claims and the matters in the embodiment of the present technology with the same title correspond to each other. However, the present technology is not limited to the embodiment, and can be realized by applying various modifications to the embodiment within the scope of the gist. Furthermore, the effects described in this specification are merely examples and are not limited, and other effects may also be present.

[0075] The present technology may also be configured as follows: (1) An oscillation circuit comprising: a ring oscillator using an inverter in each stage; and a plurality of logic inversion circuits connected to outputs of the inverters in different stages, respectively; wherein the output of the ring oscillator is output via at least one of the logic inversion circuits. (2) The oscillation circuit according to (1), wherein the logic inversion circuit equalizes the loads of the inverters in each stage. (3) The oscillation circuit according to (1) or (2), wherein the logic inversion circuit is provided for each stage of the ring oscillator. (4) The oscillation circuit according to any of (1) to (3), wherein the logic inversion circuits in each stage are configured with the same logic gate. (5) The oscillation circuit according to any of (1) to (4), wherein the logic inversion circuits in each stage are inverters. (6) The oscillation circuit according to any of (1) to (5), further comprising: a power switch that cuts off power to the ring oscillator based on an enable signal. (7) The oscillation circuit according to any one of (1) to (6), further comprising a latch circuit that latches the output of the ring oscillator via the logic inversion circuit based on a sampling clock. (8) The oscillation circuit according to any one of (1) to (7), wherein the output of the ring oscillator is used to generate random numbers. (9) The oscillation circuit according to (8), wherein a plurality of ring oscillators of the same configuration each connected to the logic inversion circuit are provided, the latch circuit is provided for each of the ring oscillators, and the random numbers are generated based on the output of an exclusive-OR circuit that receives the output of the latch circuit as an input. (10) The oscillation circuit according to (8), wherein a plurality of ring oscillators of different configurations each connected to the logic inversion circuit are provided, the latch circuit is provided for each of the ring oscillators, and the random numbers are generated based on the output of an exclusive-OR circuit that receives the output of the latch circuit as an input. (11) The oscillation circuit according to (10), wherein the ring oscillators have different numbers of stages. (12) The oscillation circuit according to any one of (1) to (11), further comprising an isolator that cuts off the output of the ring oscillator via the logic inversion circuit based on an isolation signal.(13) The oscillation circuit according to any one of (1) to (12), wherein the logic inversion circuit makes the loads of the inverters in each stage unequal to each other. (14) The oscillation circuit according to any one of (1) to (13), wherein the logic inversion circuit is provided in at least one of the stages of the ring oscillator. (15) The oscillation circuit according to (13), wherein the logic inversion circuit is an inverter. (16) The oscillation circuit according to (15), wherein the number of inverters connected to each stage of the ring oscillator is different from each other. (17) The oscillation circuit according to (15), wherein the output of the ring oscillator is used to detect a change in frequency.

[0076] 100 Ring oscillator 101 to 103, 111 to 113 Inverter 141, 142 Power switch 120 Isolator 130 Latch circuit

Claims

1. An oscillation circuit comprising: a ring oscillator in which an inverter is used in each stage; and a plurality of logic inversion circuits each connected to the output of the inverters in different stages, wherein the output of the ring oscillator is output via at least one of the logic inversion circuits.

2. The oscillator circuit according to claim 1, wherein the logic inversion circuit equalizes the loads of the inverters in each stage.

3. The oscillation circuit according to claim 1, wherein the logic inversion circuit is provided for each stage of the ring oscillator.

4. The oscillator circuit according to claim 1, wherein the logic inversion circuits of each stage are composed of the same logic gate.

5. The oscillator circuit according to claim 1, wherein the logic inversion circuit of each stage is an inverter.

6. The oscillator circuit according to claim 1, further comprising a power switch for cutting off power to the ring oscillator based on an enable signal.

7. The oscillation circuit according to claim 1, further comprising a latch circuit that latches the output of said ring oscillator via said logic inversion circuit based on a sampling clock.

8. The oscillator circuit according to claim 1, wherein the output of the ring oscillator is used to generate random numbers.

9. The oscillation circuit according to claim 8, further comprising: a plurality of ring oscillators of the same configuration, each connected to the logic inversion circuit; a latch circuit provided for each of the ring oscillators; and the random number is generated based on the output of an exclusive OR circuit having the output of the latch circuit as an input.

10. The oscillation circuit according to claim 8, further comprising: a plurality of ring oscillators having different configurations, each connected to the logic inversion circuit; a latch circuit provided for each of the ring oscillators; and the random number is generated based on the output of an exclusive OR circuit having the output of the latch circuit as an input.

11. The oscillation circuit according to claim 10, wherein the ring oscillators have different numbers of stages.

12. The oscillation circuit according to claim 1, further comprising an isolator that cuts off the output of said ring oscillator via said logic inversion circuit based on an isolation signal.

13. The oscillator circuit according to claim 1, wherein the logic inversion circuit makes the loads of the inverters in each stage unequal to each other.

14. The oscillation circuit according to claim 1, wherein the logic inversion circuit is provided in at least one of the stages of the ring oscillator.

15. The oscillator circuit according to claim 13, wherein the logic inversion circuit is an inverter.

16. The oscillator circuit according to claim 15, wherein the number of inverters connected to each stage of the ring oscillator is different from each other.

17. The oscillator circuit of claim 13, wherein the output of the ring oscillator is used to detect a change in frequency.

Citation Information

Patent Citations

  • Oscillation circuit and pll circuit using it

    JP2002353783A

  • Semiconductor device, and testing method of the same

    JP2010010515A