Physical unclonable function circuit, chip and equipment

By using control registers, monostable flip-flops and ring oscillators in physically uncloned function circuits, unpredictable response data is solved, and the problems of high complexity and low complexity are achieved. Cost physically uncloned function circuit application.

CN118916930APending Publication Date: 2024-11-08BEIJING TONGFANG MICROELECTRONICS
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410971927.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

The existing physically uncloned function circuits have high complexity and high cost, which limit their application.

Method used

A physical non-clone function circuit including a control register, a monostable trigger and a ring oscillator is designed. The rising edge signal is output by the control register and the ring oscillator is triggered, and the oscillation is counted using the counter to count the number of oscillations. , generate unpredictable response data.

Benefits of technology

It reduces the complexity and cost of physically uncloned function circuits, and realizes the response to generating unpredictable data based on monostable flip-flops and ring oscillators, avoiding application limitations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118916930A_ABST
    Figure CN118916930A_ABST
Patent Text Reader

Abstract

The invention discloses a physical unclonable function circuit, a chip and equipment. The physical unclonable function circuit comprises a control register, a monostable trigger, a ring oscillator and a counter, the control register is used for outputting a rising edge signal to the input end of the monostable trigger after receiving the excitation signal, so that the monostable trigger enters a transient state, the output end of the monostable trigger outputs a high level, the ring oscillator is triggered to start oscillation, and the counter is controlled to count the oscillation times of the ring oscillator; and after the monostable trigger recovers the steady state, determining response data corresponding to the excitation signal according to the oscillation frequency of the ring oscillator in the transient period of the monostable trigger, and outputting the response data. According to the embodiment of the invention, unpredictable data can be generated based on a monostable trigger and a ring oscillator as a response to an excitation signal, the complexity is low, and the implementation is easy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a physical unclonable function circuit, chip and device. Background Art

[0002] Physical Unclonable Functions (PUF) is a hardware security technology. A PUF circuit is usually set inside the chip. After other modules in the chip input an excitation signal into the PUF circuit, the PUF circuit will output an unpredictable response using the random differences in the inherent physical structure.

[0003] In the related art, the commonly used physical unclonable function circuit includes multiple ring oscillators. After other modules in the chip input an excitation signal into the physical unclonable function circuit, the physical unclonable function circuit will generate a random data as a response to the excitation signal by comparing the count values ​​of multiple ring oscillators, and output the response to the excitation signal. The physical unclonable function circuit based on multiple ring oscillators is highly complex and costly, which limits the application of the physical unclonable function circuit. Summary of the invention

[0004] The present invention provides a physical unclonable function circuit, a chip and a device to solve the problem in the related art that the physical unclonable function circuit has high complexity and high cost, which limits the application of the physical unclonable function circuit.

[0005] According to one aspect of the present invention, there is provided a physical unclonable function circuit, comprising: a control register, a monostable trigger, a ring oscillator and a counter;

[0006] The input end of the monostable trigger is connected to the control register, the monostable trigger includes a NOR gate, a capacitor, a resistor and a NOT gate, the output end of the monostable trigger is connected to the input end of the ring oscillator, the ring oscillator includes an AND gate and an odd number of NOT gates, and the counter is connected to the control register and the output end of the ring oscillator;

[0007] The counter is used to count the number of oscillations of the ring oscillator within the transient period of the monostable trigger;

[0008] The control register is used to output a rising edge signal to the input end of the monostable trigger after receiving an excitation signal, so that the monostable trigger enters a transient state, and the output end of the monostable trigger outputs a high level, thereby triggering the ring oscillator to start oscillating, and controlling the counter to count the number of oscillations of the ring oscillator from 0; after determining that the monostable trigger has recovered to a steady state, controlling the counter to stop counting, and determining the count value of the counter as the number of oscillations of the ring oscillator in the current transient period of the monostable trigger; and determining the response data corresponding to the excitation signal according to the number of oscillations of the ring oscillator in the current transient period of the monostable trigger, and outputting the response data.

[0009] The monostable trigger includes an NOR gate, a capacitor, a resistor and a first NOR gate, wherein the first input end of the NOR gate is connected to the control register, the second input end of the NOR gate is connected to the output end of the first NOR gate and the second input end of the AND gate, the output end of the NOR gate is connected to one end of the capacitor, the other end of the capacitor is connected to one end of the resistor and the input end of the first NOR gate, and the other end of the resistor is connected to a power supply.

[0010] The ring oscillator includes an AND gate, a second NOT gate, a third NOT gate and a fourth NOT gate, wherein the first input end of the AND gate is connected to the output end of the fourth NOT gate and the counter, the output end of the AND gate is connected to the input end of the second NOT gate, the output end of the second NOT gate is connected to the input end of the third NOT gate, and the output end of the third NOT gate is connected to the input end of the fourth NOT gate.

[0011] The first input end of the NOR gate is the input end of the monostable trigger, the output end of the first NOT gate is the output end of the monostable trigger, the second input end of the AND gate is the input end of the ring oscillator, and the output end of the fourth NOT gate is the output end of the ring oscillator;

[0012] The control register is used to output a rising edge signal to the first input terminal of the NOR gate after receiving the excitation signal, so that the monostable trigger enters a transient state, and the output terminal of the first NOR gate outputs a high level, thereby triggering the ring oscillator to start oscillating.

[0013] The control register is used to enable the counter while outputting a rising edge signal to the first input terminal of the NOR gate, control the counter to be cleared and start counting the number of oscillations of the ring oscillator.

[0014] When the output end of the first NOT gate outputs a high level, the ring oscillator generates a pulse signal, and transmits the generated pulse signal to the counter through the output end of the fourth NOT gate. The counter counts the pulse signal generated by the ring oscillator to obtain the number of oscillations of the ring oscillator.

[0015] The control register is connected to the output end of the first NOT gate, and is used to determine that the monostable trigger is restored to a stable state after detecting that the level of the output end of the first NOT gate is restored to a low level.

[0016] The control register is used to determine the response data corresponding to the number of oscillations of the ring oscillator in the current transient period of the monostable trigger according to the number of oscillations of the ring oscillator in the current transient period of the monostable trigger and the corresponding relationship between the preset number of oscillations and the response data; determine the response data corresponding to the number of oscillations of the ring oscillator in the current transient period of the monostable trigger as the response data corresponding to the excitation signal, and output the response data.

[0017] According to another aspect of the present invention, a chip is provided, comprising the physical unclonable function circuit described in any embodiment of the present invention.

[0018] According to another aspect of the present invention, an electronic device is provided, comprising the chip described in any embodiment of the present invention.

[0019] In the technical solution of the embodiment of the present invention, after receiving the excitation signal, the control register outputs a rising edge signal to the input end of the monostable trigger, so that the monostable trigger enters a transient state, and the output end of the monostable trigger outputs a high level, thereby triggering the ring oscillator to start oscillating, and controlling the counter to count the number of oscillations of the ring oscillator from 0; after determining that the monostable trigger has recovered to a steady state, the control register controls the counter to stop counting, and determines the count value of the counter as the number of oscillations of the ring oscillator in the current transient period of the monostable trigger; the control register determines the response data corresponding to the excitation signal according to the number of oscillations of the ring oscillator in the current transient period of the monostable trigger, and outputs the response data, which solves the problem that the physical unclonable function circuit in the related art is of high complexity and high cost, which limits the application of the physical unclonable function circuit, and can generate unpredictable data as a response to the excitation signal based on a monostable trigger and a ring oscillator, and output the response to the excitation signal, which has low complexity, low cost, and is easy to implement, thereby avoiding the limitation of the application of the physical unclonable function circuit.

[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0022] Figure 1 A schematic diagram of the structure of a physical unclonable function circuit provided by an embodiment of the present invention.

[0023] Figure 2 A schematic diagram of the structure of a physical unclonable function circuit provided by an embodiment of the present invention.

[0024] Figure 3 A schematic diagram of the structure of a physical unclonable function circuit provided by an embodiment of the present invention.

[0025] Figure 4 A schematic diagram of the structure of a chip provided by an embodiment of the present invention.

[0026] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0028] It should be noted that the terms "target", "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "comprise", "include" and "have" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0029] Embodiment 1

[0030] Figure 1 The schematic diagram of the structure of a physical unclonable function circuit provided by an embodiment of the present invention. This embodiment is applicable to the case where after other modules in the chip input an excitation signal into the physical unclonable function circuit, the physical unclonable function circuit outputs an unpredictable response by using the random differences of the inherent physical structure. Figure 1 As shown, the physical unclonable function circuit may specifically include: a control register 101, a monostable trigger 102, a ring oscillator 103 and a counter 104, and the structure and function thereof are described below.

[0031] Among them, the input end of the monostable trigger 102 is connected to the control register 101, the monostable trigger 102 includes a NOR gate, a capacitor, a resistor and a NOT gate, the output end of the monostable trigger 102 is connected to the input end of the ring oscillator 103, the ring oscillator 103 includes an AND gate and an odd number of NOT gates, and the counter 104 is connected to the control register 101 and the output end of the ring oscillator 103.

[0032] The counter 104 is used to count the number of oscillations of the ring oscillator 103 within the transient period of the monostable trigger 102 .

[0033] The control register 101 is used to output a rising edge signal to the input end of the monostable trigger 102 after receiving the excitation signal, so that the monostable trigger 102 enters a transient state, and the output end of the monostable trigger 102 outputs a high level, thereby triggering the ring oscillator 103 to start oscillating, and controlling the counter 104 to count the number of oscillations of the ring oscillator 103 from 0; after determining that the monostable trigger 102 recovers to a steady state, control the counter 104 to stop counting, and determine the count value of the counter 104 as the number of oscillations of the ring oscillator 103 in the current transient period of the monostable trigger 102; according to the number of oscillations of the ring oscillator 103 in the current transient period of the monostable trigger 102, determine the response data corresponding to the excitation signal, and output the response data.

[0034] Optionally, the physical unclonable function circuit is arranged in the chip. The chip may be a vehicle-standard chip for vehicle control.

[0035] Optionally, the monostable trigger 102 has only one steady state and one transient state. When the monostable trigger 102 is in the steady state, the output end of the monostable trigger 102 outputs a low level. When the monostable trigger 102 is in the transient state, the output end of the monostable trigger 102 outputs a high level. Normally, the monostable trigger 102 is in a steady state. When the control register 101 outputs a rising edge signal to the input end of the monostable trigger 102, under the action of the external rising edge signal, the monostable trigger 102 can flip from the steady state to the transient state. Due to the delay effect of the resistor and capacitor in the monostable trigger 102, the transient state of the monostable trigger 102 is maintained for a period of time and then returns to the original steady state. The duration of the transient state depends on the parameter values ​​of the resistor and capacitor in the monostable trigger 102.

[0036] Optionally, the NOR gate, the capacitor, the resistor, and the NOT gate constitute a monostable trigger 102. The transient period of the monostable trigger 102 is the period in which the monostable trigger 102 is in a transient state. Each time after the output terminal of the monostable trigger 102 outputs a high level until the level of the output terminal of the monostable trigger 102 returns to a low level is a transient period.

[0037] Optionally, the ring oscillator 103 starts oscillating means that the ring oscillator 103 generates a pulse signal and transmits the pulse signal to the counter 104. The number of oscillations of the ring oscillator 103 refers to the number of pulse signals generated by the ring oscillator 103. The ring oscillator 103 includes an AND gate and an odd number of NOT gates. The number of NOT gates in the ring oscillator 103 can be an odd number greater than or equal to 3. Exemplarily, the ring oscillator 103 can include an AND gate and 3 NOT gates. The ring oscillator 103 can also include an AND gate and 5 NOT gates. When the output end of the monostable trigger 102 outputs a high level, it triggers the ring oscillator 103 to start oscillating. The ring oscillator 103 generates a pulse signal and transmits the generated pulse signal to the counter 104.

[0038] Optionally, the excitation signal may be a pre-set signal for triggering the physical unclonable function circuit to output an unpredictable response. The excitation signal may be sent by other modules set in the chip. After receiving the excitation signal, the control register 101 outputs a rising edge signal to the input end of the monostable trigger 102 to make the monostable trigger 102 enter a transient state, and the output end of the monostable trigger 102 outputs a high level, thereby triggering the ring oscillator 103 to start oscillating.

[0039] Optionally, the control register 101 is used to determine the response data corresponding to the number of oscillations of the ring oscillator 103 in the current transient period of the monostable trigger 102 based on the number of oscillations of the ring oscillator 103 in the current transient period of the monostable trigger 102 and the correspondence between the preset number of oscillations and the response data; determine the response data corresponding to the number of oscillations of the ring oscillator 103 in the current transient period of the monostable trigger 102 as the response data corresponding to the excitation signal, and output the response data.

[0040] Optionally, the oscillation period of the ring oscillator 103 may refer to the period in which the ring oscillator 103 generates a pulse signal and outputs the pulse signal. Each time from the ring oscillator 103 generating a pulse signal to the ring oscillator 103 transmitting the generated pulse signal to the counter 104 is an oscillation period. Ideally, the duration of the transient period of the monostable trigger 102 is a fixed value. However, the process differences between the various components in the monostable trigger 102 will cause the transient period of the monostable trigger 102 to have a randomly distributed error, and each transient period of the monostable trigger 102 is unpredictable. Ideally, the duration of the oscillation period of the ring oscillator 103 is a fixed value. However, the process differences between the various components in the ring oscillator 103 will cause the oscillation period of the ring oscillator 103 to have a randomly distributed error, and each oscillation period of the ring oscillator 103 is unpredictable. The monostable trigger 102 and the ring oscillator 103 use the same basic logic unit, that is, the sizes of the PMOS and NMOS constituting the monostable trigger 102 and the ring oscillator 103 are exactly the same, indicating that the monostable trigger 102 and the ring oscillator 103 have consistent voltage characteristics and temperature characteristics. Only due to the process differences between the various components involved, the duration of the transient period of the monostable trigger 102 and the duration of the oscillation period of the ring oscillator 103 have randomly distributed errors.

[0041] Optionally, the number of oscillations of the ring oscillator 103 within the transient period of the monostable trigger 102 is generally equal to the ratio of the duration of the transient period of the monostable trigger 102 to the duration of the oscillation period of the ring oscillator 103. Since there is a randomly distributed error between the duration of the transient period of the monostable trigger 102 and the duration of the oscillation period of the ring oscillator 103, each determined number of oscillations of the ring oscillator 103 within the transient period of the monostable trigger 102 will also be a stable (not affected by voltage and temperature) and randomly distributed value, meeting the unpredictable data requirement.

[0042] Optionally, in a specific example, in an ideal state, the duration of the transient period of the monostable trigger 102 is 10ns, the duration of the oscillation period of the ring oscillator 103 is 100ps, and the number of oscillations of the ring oscillator 103 within the transient period of the monostable trigger 102 is equal to 100. However, due to process differences between the various components involved, there are randomly distributed errors in the duration of the transient period of the monostable trigger 102 and the duration of the oscillation period of the ring oscillator 103. The duration of the transient period of the monostable trigger 102 may be any duration between 9.6ns and 10.4ns. The duration of the oscillation period of the ring oscillator 103 may be any duration between 96ps and 104ps. The determined oscillation number of each ring oscillator 103 within the transient period of the monostable trigger 102 may be any one of 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, and 108.

[0043] Optionally, the control register 101 stores a correspondence between a preset number of oscillations and response data. The correspondence between the preset number of oscillations and the response data includes each number of oscillations and the response data corresponding to each number of oscillations. Each number of oscillations is the number of oscillations of each different ring oscillator 103 that may be determined within the transient period of the monostable trigger 102. The response data corresponding to each number of oscillations is the response data corresponding to the excitation signal that needs to be output when the determined number of oscillations of the ring oscillator 103 within the transient period of the monostable trigger 102 is equal to the number of oscillations. The response data corresponding to the excitation signal is an unpredictable data determined after receiving the excitation signal, which is a response to the excitation signal. The response data corresponding to different numbers of oscillations are different.

[0044] Optionally, according to the number of oscillations of the ring oscillator 103 in the current transient period of the monostable trigger 102 and the correspondence between the preset number of oscillations and the response data, determining the response data corresponding to the number of oscillations of the ring oscillator 103 in the current transient period of the monostable trigger 102 includes: searching for a target number of oscillations that is the same as the number of oscillations of the ring oscillator 103 in the current transient period of the monostable trigger 102 from each number of oscillations in the correspondence between the preset number of oscillations and the response data; and determining the response data corresponding to the target number of oscillations as the response data corresponding to the number of oscillations of the ring oscillator 103 in the current transient period of the monostable trigger 102. The target number of oscillations is the same as the number of oscillations of the ring oscillator 103 in the current transient period of the monostable trigger 102, and the response data corresponding to the target number of oscillations is the response data corresponding to the number of oscillations of the ring oscillator 103 in the current transient period of the monostable trigger 102.

[0045] Optionally, the number of oscillations of the ring oscillator 103 in the current transient period of the monostable trigger 102 is an unpredictable value, and the corresponding response data corresponding to the number of oscillations of the ring oscillator 103 in the current transient period of the monostable trigger 102 is also an unpredictable data, which can be used as a response to the excitation signal.

[0046] Optionally, in a specific example, under an ideal state, the number of oscillations of the ring oscillator 103 within the transient period of the monostable trigger 102 is less than 100. Due to the process differences between the various components involved, there are randomly distributed errors in the duration of the transient period of the monostable trigger 102 and the duration of the oscillation period of the ring oscillator 103. Each determined number of oscillations of the ring oscillator 103 within the transient period of the monostable trigger 102 may be any one of 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, and 108. The correspondence between the preset number of oscillations and the response data includes each number of oscillations and the response data corresponding to each number of oscillations. The response data corresponding to each number of oscillations is 4-bit binary data. The respective oscillation numbers include 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, and 108. The response data corresponding to 93 is 0000. The response data corresponding to 94 is 0001. The response data corresponding to 95 is 0010. The response data corresponding to 96 is 0011. The response data corresponding to 97 is 0100. The response data corresponding to 98 is 0101. The response data corresponding to 99 is 0110. The response data corresponding to 100 is 0111. The response data corresponding to 101 is 1000. The response data corresponding to 102 is 1001. The response data corresponding to 103 is 1010. The response data corresponding to 104 is 1011. The response data corresponding to 105 is 1100. The response data corresponding to 106 is 1101. The response data corresponding to 107 is 1110. The response data corresponding to 108 is 1111.

[0047] Optionally, the number of oscillations of the ring oscillator 103 within the current transient period of the monostable trigger 102 is an unpredictable value, and the corresponding response data corresponding to the number of oscillations of the ring oscillator 103 within the current transient period of the monostable trigger 102 is also an unpredictable 4-bit binary data, which can be used as a response to the excitation signal.

[0048] Optionally, when the bit width of the required response data is large, the response data output by multiple physical unclonable function circuits can be spliced. The response data output by one physical unclonable function circuit is an unpredictable 4-bit binary data. The response data output by 16 physical unclonable function circuits can be spliced ​​into an unpredictable 64-bit binary data.

[0049] Optionally, in another specific example, under an ideal state, the number of oscillations of the ring oscillator 103 within the transient period of the monostable trigger 102 is greater than 100. Due to the process differences between the various components involved, there are randomly distributed errors in the duration of the transient period of the monostable trigger 102 and the duration of the oscillation period of the ring oscillator 103. Each determined number of oscillations of the ring oscillator 103 within the transient period of the monostable trigger 102 may be any one of 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, and 107. The correspondence between the preset number of oscillations and the response data includes each number of oscillations and the response data corresponding to each number of oscillations. The response data corresponding to each number of oscillations is 4-bit binary data. The respective oscillation numbers include 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, and 107. The response data corresponding to 92 is 0000. The response data corresponding to 93 is 0001. The response data corresponding to 94 is 0010. The response data corresponding to 95 is 0011. The response data corresponding to 96 is 0100. The response data corresponding to 97 is 0101. The response data corresponding to 98 is 0110. The response data corresponding to 99 is 0111. The response data corresponding to 100 is 1000. The response data corresponding to 101 is 1001. The response data corresponding to 102 is 1010. The response data corresponding to 103 is 1011. The response data corresponding to 104 is 1100. The response data corresponding to 105 is 1101. The response data corresponding to 106 is 1110. The response data corresponding to 107 is 1111.

[0050] Optionally, outputting the response data includes: sending the response data to a module that sends the excitation signal. The module that sends the excitation signal may be any software module or hardware module set in the chip except a physical unclonable function circuit.

[0051] In the technical solution of the embodiment of the present invention, after receiving the excitation signal, the control register outputs a rising edge signal to the input end of the monostable trigger, so that the monostable trigger enters a transient state, and the output end of the monostable trigger outputs a high level, thereby triggering the ring oscillator to start oscillating, and controlling the counter to count the number of oscillations of the ring oscillator from 0; after determining that the monostable trigger has recovered to a steady state, the control register controls the counter to stop counting, and determines the count value of the counter as the number of oscillations of the ring oscillator in the current transient period of the monostable trigger; the control register determines the response data corresponding to the excitation signal according to the number of oscillations of the ring oscillator in the current transient period of the monostable trigger, and outputs the response data, which solves the problem that the physical unclonable function circuit in the related art is of high complexity and high cost, which limits the application of the physical unclonable function circuit, and can generate unpredictable data as a response to the excitation signal based on a monostable trigger and a ring oscillator, and output the response to the excitation signal, which has low complexity, low cost, and is easy to implement, thereby avoiding the limitation of the application of the physical unclonable function circuit.

[0052] Embodiment 2

[0053] Figure 2 The schematic diagram of the structure of a physical unclonable function circuit provided by an embodiment of the present invention. The embodiment of the present invention can be combined with each optional solution in one or more of the above embodiments. Figure 2 As shown, the physical unclonable function circuit may specifically include: a control register 101, a monostable trigger 102, a ring oscillator 103 and a counter 104, and the structure and function thereof are described below.

[0054] Among them, the input end of the monostable trigger 102 is connected to the control register 101, the monostable trigger 102 includes an OR gate G0, a capacitor C, a resistor R and a first NOT gate G1, the output end of the monostable trigger 102 is connected to the input end of the ring oscillator 103, the ring oscillator 103 includes an AND gate G2, a second NOT gate G3, a third NOT gate G4 and a fourth NOT gate G5, and the counter 104 is connected to the control register 101 and the output end of the ring oscillator 103.

[0055] The counter 104 is used to count the number of oscillations of the ring oscillator 103 within the transient period of the monostable trigger 102 .

[0056] The control register 101 is used to output a rising edge signal to the input end of the monostable trigger 102 after receiving the excitation signal, so that the monostable trigger 102 enters a transient state, and the output end of the monostable trigger 102 outputs a high level, thereby triggering the ring oscillator 103 to start oscillating, and controlling the counter 104 to count the number of oscillations of the ring oscillator 103 from 0; after determining that the monostable trigger 102 recovers to a steady state, control the counter 104 to stop counting, and determine the count value of the counter 104 as the number of oscillations of the ring oscillator 103 in the current transient period of the monostable trigger 102; according to the number of oscillations of the ring oscillator 103 in the current transient period of the monostable trigger 102, determine the response data corresponding to the excitation signal, and output the response data.

[0057] Optionally, the first input end of the NOR gate G0 is connected to the control register 101, the second input end of the NOR gate G0 is connected to the output end of the first NOT gate G1 and the second input end of the AND gate G2, the output end of the NOR gate G0 is connected to one end of the capacitor C, the other end of the capacitor C is connected to one end of the resistor R and the input end of the first NOT gate G1, and the other end of the resistor R is connected to the power supply V DD Connected to the power supply V DD It can be a power supply provided in the chip for supplying power to a physical unclonable function circuit.

[0058] Optionally, the first input terminal of the AND gate G2 is connected to the output terminal of the fourth NOT gate G5 and the counter 104, the output terminal of the AND gate G2 is connected to the input terminal of the second NOT gate G3, the output terminal of the second NOT gate G3 is connected to the input terminal of the third NOT gate G4, and the output terminal of the third NOT gate G4 is connected to the input terminal of the fourth NOT gate G5.

[0059] Optionally, the first input end of the NOR gate G0 is the input end of the monostable trigger 102, the output end of the first NOT gate G1 is the output end of the monostable trigger 102, the second input end of the AND gate G2 is the input end of the ring oscillator 103, and the output end of the fourth NOT gate G5 is the output end of the ring oscillator 103; the control register 101 is used to output a rising edge signal to the first input end of the NOR gate G0 after receiving the excitation signal, so that the monostable trigger 102 enters a transient state, and the output end of the first NOT gate G1 outputs a high level, thereby triggering the ring oscillator 103 to start oscillating.

[0060] Optionally, the NOR gate G0, the capacitor C, the resistor R and the first NOR gate G1 constitute a monostable trigger 102. The first input end of the NOR gate G0 is the input end of the monostable trigger 102, and the output end of the first NOR gate G1 is the output end of the monostable trigger 102. The first input end of the NOR gate G0 is connected to the control register 101. The output end of the first NOR gate G1 is connected to the second input end of the NOR gate G0 and the second input end of the gate G2. When the monostable trigger 102 is in a stable state, the output end of the first NOR gate G1 outputs a low level. When the monostable trigger 102 is in a transient state, the output end of the first NOR gate G1 outputs a high level. Normally, the monostable trigger 102 is in a stable state, and the output end of the first NOR gate G1 outputs a low level. When the control register 101 outputs a rising edge signal to the first input end of the NOR gate G0, under the action of the externally applied rising edge signal, the monostable trigger 102 flips from a stable state to a transient state, and the output end of the first NOR gate G1 outputs a high level. The output terminal of the first NOT gate G1 outputs a high level transient state for a period of time and then returns to the original stable state of the output terminal of the first NOT gate G1 outputting a low level. The time for the output terminal of the first NOT gate G1 to output a high level depends on the parameter values ​​of the resistor R and the capacitor C in the monostable trigger 102.

[0061] Optionally, the transient period of the monostable trigger 102 is the period in which the monostable trigger 102 is in a transient state. Each time from the output end of the first NOT gate G1 outputting a high level to the level of the output end of the first NOT gate G1 returning to a low level is a transient period.

[0062] Optionally, the ring oscillator 103 starts to oscillate means that the ring oscillator 103 generates a pulse signal and transmits the pulse signal to the counter 104. The number of oscillations of the ring oscillator 103 refers to the number of pulse signals generated by the ring oscillator 103. The AND gate G2, the second NOT gate G3, the third NOT gate G4 and the fourth NOT gate G5 constitute the ring oscillator 103. The second input end of the AND gate G2 is the input end of the ring oscillator 103, and the output end of the fourth NOT gate G5 is the output end of the ring oscillator 103. The second input end of the AND gate G2 is connected to the output end of the first NOT gate G1. The output end of the fourth NOT gate G5 is connected to the first input end of the AND gate G2 and the counter 104. When the output end of the first NOT gate G1 outputs a high level, it triggers the ring oscillator 103 to start oscillating. The ring oscillator 103 generates a pulse signal and transmits the generated pulse signal to the counter 104 through the output end of the fourth NOT gate G5.

[0063] Optionally, the excitation signal may be a pre-set signal for triggering the physical unclonable function circuit to output an unpredictable response. The excitation signal may be sent by other modules set in the chip. After receiving the excitation signal, the control register 101 outputs a rising edge signal to the first input terminal of the NOR gate G0 to make the monostable trigger 102 enter a transient state, and the output terminal of the first NOR gate G1 outputs a high level, thereby triggering the ring oscillator 103 to start oscillating.

[0064] Optionally, the control register 101 is used to enable the counter 104 while outputting a rising edge signal to the first input terminal of the NOR gate G0, and control the counter 104 to be cleared and start counting the number of oscillations of the ring oscillator 103.

[0065] Optionally, the moment when the control register 101 outputs a rising edge signal to the first input terminal of the NOR gate G0 is the moment when the current transient period of the monostable trigger 102 starts. While outputting a rising edge signal to the first input terminal of the NOR gate G0, the control register 101 enables the counter 104, controls the counter 104 to be cleared and starts counting the number of oscillations of the ring oscillator 103, so that the counter 104 starts counting the number of oscillations of the ring oscillator 103 from 0 when the current transient period of the monostable trigger 102 starts, thereby the counter 104 counts the number of oscillations of the ring oscillator 103 in the current transient period of the monostable trigger 102.

[0066] Optionally, when the ring oscillator 103 outputs a high level at the output end of the first NOT gate G1, a pulse signal is generated, and the generated pulse signal is transmitted to the counter 104 through the output end of the fourth NOT gate G5. The counter 104 counts the pulse signal generated by the ring oscillator 103 to obtain the number of oscillations of the ring oscillator 103.

[0067] Optionally, when the output terminal of the first NOT gate G1 outputs a high level, the ring oscillator 103 continuously generates a pulse signal, and transmits the generated pulse signal to the counter 104 through the output terminal of the fourth NOT gate G5. Each time the counter 104 receives a pulse signal, the count value of the counter 104 is increased by 1. The count value of the counter 104 is the number of oscillations of the ring oscillator 103 in this transient period of the monostable trigger 102.

[0068] Optionally, the control register 101 is connected to the output end of the first NOT gate G1 , and is used to determine that the monostable trigger 102 recovers to a stable state after detecting that the level of the output end of the first NOT gate G1 recovers to a low level.

[0069] Optionally, the output terminal of the first NOT gate G1 outputs a high level transient state for a period of time and then returns to the original steady state where the output terminal of the first NOT gate G1 outputs a low level. The control register 101 can detect the level of the output terminal of the first NOT gate G1, and after detecting that the level of the output terminal of the first NOT gate G1 is restored to a low level, it can be determined that the monostable trigger 102 has restored to a steady state. After determining that the monostable trigger 102 has restored to a steady state, the control register 101 controls the counter 104 to stop counting, and determines the count value of the counter 104 as the number of oscillations of the ring oscillator 103 in this transient period of the monostable trigger 102.

[0070] Optionally, the control register 101 is used to determine the response data corresponding to the number of oscillations of the ring oscillator 103 in the current transient period of the monostable trigger 102 based on the number of oscillations of the ring oscillator 103 in the current transient period of the monostable trigger 102 and the correspondence between the preset number of oscillations and the response data; determine the response data corresponding to the number of oscillations of the ring oscillator 103 in the current transient period of the monostable trigger 102 as the response data corresponding to the excitation signal, and output the response data.

[0071] In the technical solution of the embodiment of the present invention, after receiving the excitation signal, the control register outputs a rising edge signal to the input end of the monostable trigger, so that the monostable trigger enters a transient state, and the output end of the monostable trigger outputs a high level, thereby triggering the ring oscillator to start oscillating, and controlling the counter to count the number of oscillations of the ring oscillator from 0; after determining that the monostable trigger has recovered to a steady state, the control register controls the counter to stop counting, and determines the count value of the counter as the number of oscillations of the ring oscillator in the current transient period of the monostable trigger; the control register determines the response data corresponding to the excitation signal according to the number of oscillations of the ring oscillator in the current transient period of the monostable trigger, and outputs the response data, which solves the problem that the physical unclonable function circuit in the related art is of high complexity and high cost, which limits the application of the physical unclonable function circuit, and can generate unpredictable data as a response to the excitation signal based on a monostable trigger and a ring oscillator, and output the response to the excitation signal, which has low complexity, low cost, and is easy to implement, thereby avoiding the limitation of the application of the physical unclonable function circuit.

[0072] Embodiment 3

[0073] Figure 3 The schematic diagram of the structure of a physical unclonable function circuit provided by an embodiment of the present invention. The embodiment of the present invention can be combined with each optional solution in one or more of the above embodiments. Figure 3As shown, the physical unclonable function circuit may specifically include: a control register 101, a monostable trigger 102, a ring oscillator 103 and a counter 104, and the structure and function thereof are described below.

[0074] Among them, the input end of the monostable trigger 102 is connected to the control register 101, the monostable trigger 102 includes an OR gate G0, a capacitor C, a resistor R and a first NOT gate G1, the output end of the monostable trigger 102 is connected to the input end of the ring oscillator 103, the ring oscillator 103 includes an AND gate G2, a second NOT gate G3, a third NOT gate G4, a fourth NOT gate G5, a fifth NOT gate G6 and a sixth NOT gate G7, and the counter 104 is connected to the control register 101 and the output end of the ring oscillator 103.

[0075] The counter 104 is used to count the number of oscillations of the ring oscillator 103 within the transient period of the monostable trigger 102 .

[0076] The control register 101 is used to output a rising edge signal to the input end of the monostable trigger 102 after receiving the excitation signal, so that the monostable trigger 102 enters a transient state, and the output end of the monostable trigger 102 outputs a high level, thereby triggering the ring oscillator 103 to start oscillating, and controlling the counter 104 to count the number of oscillations of the ring oscillator 103 from 0; after determining that the monostable trigger 102 recovers to a steady state, control the counter 104 to stop counting, and determine the count value of the counter 104 as the number of oscillations of the ring oscillator 103 in the current transient period of the monostable trigger 102; according to the number of oscillations of the ring oscillator 103 in the current transient period of the monostable trigger 102, determine the response data corresponding to the excitation signal, and output the response data.

[0077] Optionally, the first input end of the NOR gate G0 is connected to the control register 101, the second input end of the NOR gate G0 is connected to the output end of the first NOT gate G1 and the second input end of the AND gate G2, the output end of the NOR gate G0 is connected to one end of the capacitor C, the other end of the capacitor C is connected to one end of the resistor R and the input end of the first NOT gate G1, and the other end of the resistor R is connected to the power supply V DD connected.

[0078] Optionally, the first input terminal of the AND gate G2 is connected to the output terminal of the sixth NOT gate G7 and the counter 104, the output terminal of the AND gate G2 is connected to the input terminal of the second NOT gate G3, the output terminal of the second NOT gate G3 is connected to the input terminal of the third NOT gate G4, the output terminal of the third NOT gate G4 is connected to the input terminal of the fourth NOT gate G5, the output terminal of the fourth NOT gate G5 is connected to the input terminal of the fifth NOT gate G6, and the output terminal of the fifth NOT gate G6 is connected to the input terminal of the sixth NOT gate G7.

[0079] Optionally, the first input terminal of the NOR gate G0 is the input terminal of the monostable trigger 102, the output terminal of the first NOT gate G1 is the output terminal of the monostable trigger 102, the second input terminal of the AND gate G2 is the input terminal of the ring oscillator 103, and the output terminal of the sixth NOT gate G7 is the output terminal of the ring oscillator 103; the control register 101 is used to output a rising edge signal to the first input terminal of the NOR gate G0 after receiving the excitation signal, so that the monostable trigger 102 enters a transient state, and the output terminal of the first NOT gate G1 outputs a high level, thereby triggering the ring oscillator 103 to start oscillating.

[0080] The technical solution of the embodiment of the present invention can generate unpredictable data as a response to an excitation signal based on a monostable trigger and a ring oscillator, and output the response to the excitation signal. It has low complexity, low cost, and is easy to implement, avoiding limitations on the application of physical unclonable function circuits.

[0081] Embodiment 4

[0082] Figure 4 A schematic diagram of the structure of a chip provided by an embodiment of the present invention. Figure 4 As shown, the chip 201 includes a physical unclonable function circuit 202. The physical unclonable function circuit 202 is arranged in the chip 201. The chip 201 may be a vehicle-standard chip for vehicle control.

[0083] The physical unclonable function circuit 202 includes: a control register, a monostable trigger, a ring oscillator and a counter; wherein the input end of the monostable trigger is connected to the control register, the monostable trigger includes a NOR gate, a capacitor, a resistor and a NOT gate, the output end of the monostable trigger is connected to the input end of the ring oscillator, the ring oscillator includes an AND gate and an odd number of NOT gates, and the counter is connected to the control register and the output end of the ring oscillator.

[0084] The counter is used to count the number of oscillations of the ring oscillator within the transient period of the monostable trigger.

[0085] The control register is used to output a rising edge signal to the input end of the monostable trigger after receiving an excitation signal, so that the monostable trigger enters a transient state, and the output end of the monostable trigger outputs a high level, thereby triggering the ring oscillator to start oscillating, and controlling the counter to count the number of oscillations of the ring oscillator from 0; after determining that the monostable trigger has recovered to a steady state, controlling the counter to stop counting, and determining the count value of the counter as the number of oscillations of the ring oscillator in the current transient period of the monostable trigger; and determining the response data corresponding to the excitation signal according to the number of oscillations of the ring oscillator in the current transient period of the monostable trigger, and outputting the response data.

[0086] In the technical solution of the embodiment of the present invention, the physical unclonable function circuit set in the chip can generate unpredictable data as a response to the excitation signal based on a monostable trigger and a ring oscillator, and output the response to the excitation signal. It has low complexity, low cost, and is easy to implement, avoiding the limitation of the application of the physical unclonable function circuit.

[0087] Embodiment 5

[0088] Figure 5 FIG. 1 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Figure 5 As shown, the electronic device 301 includes a chip 302. The chip 302 includes a physical unclonable function circuit 303.

[0089] The physical unclonable function circuit 303 includes: a control register, a monostable trigger, a ring oscillator and a counter; wherein the input end of the monostable trigger is connected to the control register, the monostable trigger includes a NOR gate, a capacitor, a resistor and a NOT gate, the output end of the monostable trigger is connected to the input end of the ring oscillator, the ring oscillator includes an AND gate and an odd number of NOT gates, and the counter is connected to the control register and the output end of the ring oscillator.

[0090] The counter is used to count the number of oscillations of the ring oscillator within the transient period of the monostable trigger.

[0091] The control register is used to output a rising edge signal to the input end of the monostable trigger after receiving an excitation signal, so that the monostable trigger enters a transient state, and the output end of the monostable trigger outputs a high level, thereby triggering the ring oscillator to start oscillating, and controlling the counter to count the number of oscillations of the ring oscillator from 0; after determining that the monostable trigger has recovered to a steady state, controlling the counter to stop counting, and determining the count value of the counter as the number of oscillations of the ring oscillator in the current transient period of the monostable trigger; and determining the response data corresponding to the excitation signal according to the number of oscillations of the ring oscillator in the current transient period of the monostable trigger, and outputting the response data.

[0092] The electronic device may include at least one processor, and a memory connected to the at least one processor in communication, such as a read-only memory (ROM), a random access memory (RAM), etc., wherein the memory stores a computer program executed by at least one processor, and the processor can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) or the computer program built from the storage unit into the random access memory (RAM). In the random access memory (RAM), various programs and data required for the operation of the electronic device can also be stored. The processor, the read-only memory (ROM) and the random access memory (RAM) are connected to each other via a bus. The input / output (I / O) interface is also connected to the bus.

[0093] Many components in an electronic device are connected to an input / output (I / O) interface, including: input units, such as keyboards, mice, etc.; output units, such as various types of displays, speakers, etc.; storage units, such as disks, optical disks, etc.; and communication units, such as network cards, modems, wireless communication transceivers, etc. The communication unit allows the electronic device to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0094] The processor can be a variety of general and / or special processing components with processing and computing capabilities. Some examples of processors include, but are not limited to, central processing units (CPUs), graphics processing units (GPUs), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc.

[0095] In the technical solution of the embodiment of the present invention, a physical unclonable function circuit arranged in a chip included in an electronic device can generate unpredictable data as a response to an excitation signal based on a monostable trigger and a ring oscillator, and output a response to the excitation signal. It has low complexity, low cost, and is easy to implement, thus avoiding limitations on the application of the physical unclonable function circuit.

[0096] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0097] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A physically unclonable function circuit, It is characterized in that include: control registers, monostable flip-flops, ring oscillators, and counters; The input end of the monostable trigger is connected to the control register, the monostable trigger includes a NOR gate, a capacitor, a resistor and a NOT gate, the output end of the monostable trigger is connected to the input end of the ring oscillator, the ring oscillator includes an AND gate and an odd number of NOT gates, and the counter is connected to the control register and the output end of the ring oscillator; The counter is used to count the number of oscillations of the ring oscillator within the transient period of the monostable trigger; The control register is used to output a rising edge signal to the input end of the monostable trigger after receiving an excitation signal, so that the monostable trigger enters a transient state, and the output end of the monostable trigger outputs a high level, thereby triggering the ring oscillator to start oscillating, and controlling the counter to count the number of oscillations of the ring oscillator from 0; after determining that the monostable trigger has recovered to a steady state, controlling the counter to stop counting, and determining the count value of the counter as the number of oscillations of the ring oscillator in the current transient period of the monostable trigger; and determining the response data corresponding to the excitation signal according to the number of oscillations of the ring oscillator in the current transient period of the monostable trigger, and outputting the response data.

2. The physically unclonable function circuit according to claim 1, It is characterized in that The monostable trigger includes an NOR gate, a capacitor, a resistor and a first NOR gate, wherein the first input end of the NOR gate is connected to the control register, the second input end of the NOR gate is connected to the output end of the first NOR gate and the second input end of the AND gate, the output end of the NOR gate is connected to one end of the capacitor, the other end of the capacitor is connected to one end of the resistor and the input end of the first NOR gate, and the other end of the resistor is connected to a power supply.

3. The physical unclonable function circuit according to claim 2, It is characterized in that The ring oscillator includes an AND gate, a second NOT gate, a third NOT gate and a fourth NOT gate, wherein the first input end of the AND gate is connected to the output end of the fourth NOT gate and the counter, the output end of the AND gate is connected to the input end of the second NOT gate, the output end of the second NOT gate is connected to the input end of the third NOT gate, and the output end of the third NOT gate is connected to the input end of the fourth NOT gate.

4. The physically unclonable function circuit according to claim 3, It is characterized in that The first input end of the NOR gate is the input end of the monostable trigger, the output end of the first NOT gate is the output end of the monostable trigger, the second input end of the AND gate is the input end of the ring oscillator, and the output end of the fourth NOT gate is the output end of the ring oscillator; The control register is used to output a rising edge signal to the first input terminal of the NOR gate after receiving the excitation signal, so that the monostable trigger enters a transient state, and the output terminal of the first NOR gate outputs a high level, thereby triggering the ring oscillator to start oscillating.

5. The physical unclonable function circuit according to claim 4, It is characterized in that The control register is used to enable the counter while outputting a rising edge signal to the first input terminal of the NOR gate, control the counter to be cleared and start counting the number of oscillations of the ring oscillator.

6. The physical unclonable function circuit according to claim 4, It is characterized in that When the output end of the first NOT gate outputs a high level, the ring oscillator generates a pulse signal, and transmits the generated pulse signal to the counter through the output end of the fourth NOT gate. The counter counts the pulse signal generated by the ring oscillator to obtain the number of oscillations of the ring oscillator.

7. The physical unclonable function circuit according to claim 4, It is characterized in that The control register is connected to the output end of the first NOT gate, and is used to determine that the monostable trigger is restored to a stable state after detecting that the level of the output end of the first NOT gate is restored to a low level.

8. The physical unclonable function circuit according to claim 1, It is characterized in that The control register is used to determine the response data corresponding to the number of oscillations of the ring oscillator in the current transient period of the monostable trigger according to the number of oscillations of the ring oscillator in the current transient period of the monostable trigger and the corresponding relationship between the preset number of oscillations and the response data; determine the response data corresponding to the number of oscillations of the ring oscillator in the current transient period of the monostable trigger as the response data corresponding to the excitation signal, and output the response data.

9. A chip, It is characterized in that Comprising a physical unclonable function circuit as described in any one of claims 1-8.

10. An electronic device, It is characterized in that Comprising the chip as claimed in claim 9.

Citation Information

Cited By

  • PUF (Physical Unclonable Function) device, chip and PUF source language generation method

    CN122263182A

  • A PUF device, chip, and PUF source code generation method

    CN122263182B