Entropy Source Circuit
The entropy source circuit converts digital circuit delays into digital signals, addressing integration challenges of analog circuits in digital design flows, enhancing manufacturing efficiency.
Patent Information
- Application Number
- JP2023011449
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2022-08-04
- Filing Date
- 2023-01-30
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2043-01-30
AI Technical Summary
Current random number generators for security-related functions in electronic systems face challenges integrating inherently random analog circuits into all-digital design flows, leading to inefficiencies in manufacturing.
An entropy source circuit that utilizes a digital circuit, decision circuit, and time-to-digital converter (TDC) to convert operational delays of digital circuits into digital signals, generating randomness without requiring additional analog circuits like oscillators or thermal noise samplers, thus enabling integration into digital design flows.
The solution allows for efficient integration of entropy source circuits into digital design flows, improving manufacturing efficiency without increasing costs and avoiding side effects.
Smart Images

Figure 0007539008000005 
Figure 0007539008000004 
Figure 0007539008000006
Abstract
Description
[Technical field]
[0001] The present invention relates to generating entropy mechanisms, and more particularly to entropy source circuits for harvesting randomness from the operation of digital circuits. [Background technology]
[0002] In modern electronic systems, random number generators configured for use in security-related functions are typically required to generate random numbers. Related art random number generators generate high quality truly random numbers based on inherently random circuits such as oscillators and thermal noise samplers. However, because these circuits are analog circuits, it is difficult to integrate the design of these circuits into an all-digital design flow.
[0003] What is needed is a novel method and associated architecture that allows the task of collecting randomness to be performed in an all-digital circuit in order to effectively reduce the overall cost (e.g., human tasks, design schedule). Summary of the Invention [Problem to be solved by the invention]
[0004] It is an object of the present invention to provide an entropy source circuit and a method for harvesting randomness from the operation time of a digital circuit, allowing the design flow of the entropy source circuit to be integrated into an all-digital design flow, thereby improving overall manufacturing efficiency.
[0005] At least one embodiment of the present invention provides an entropy source circuit. The entropy source circuit includes a digital circuit, a decision circuit, and a time-to-digital converter (TDC), the decision circuit is coupled to the digital circuit, and the TDC is coupled to the decision circuit. The digital circuit is configured to generate result data at a second time point according to input data received at a first time point, and the decision circuit is configured to make a decision on reference data using a dynamic output generated by the digital circuit to generate a decision signal, the reference data being equal to the result data. In addition, the TDC is configured to perform a time-to-digital conversion with the help of the decision signal on a delay of the digital circuit for generating the result data according to the input data, and generate entropy data corresponding to the delay, and a time difference between the first time point and the second time point represents the delay.
[0006] At least one embodiment of the present invention provides an entropy source circuit. The entropy source circuit includes an input data control circuit, a digital circuit, a decision circuit, and a TDC. The input data control circuit is configured to output a start signal, input data, and reference data corresponding to the input data. The digital circuit has an input terminal and an output terminal, and the input terminal of the digital circuit can be configured to receive the input data. The decision circuit is coupled to the output terminal of the digital circuit and configured to receive the reference data, and when the output generated at the output terminal of the digital circuit is equal to the reference data, the decision circuit generates a decision signal. In addition, the TDC is coupled to the input data control circuit and the decision circuit, and can be configured to receive the start signal and generate entropy data according to the start signal and the decision signal.
[0007] The entropy source circuit provided by the embodiment of the present invention can convert the operation delay of a digital circuit into a digital signal. Since the delay has randomness, the digital signal can also have randomness. Compared with the related art, the present invention does not require additional analog circuits such as an oscillator or a thermal noise sampler. Therefore, the design of the entire circuit of the present invention can be integrated into the digital design flow, and the overall manufacturing efficiency can be effectively improved.
[0008] These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a diagram illustrating an entropy source circuit according to an embodiment of the present invention. [Diagram 2] FIG. 2 is a diagram illustrating the data and signals of FIG. 1 according to one embodiment of the present invention. [Diagram 3] FIG. 3 is a diagram illustrating a detailed implementation of an entropy source circuit coupled to a digital system in accordance with one embodiment of the present invention. [Figure 4] FIG. 4 is a diagram illustrating a detailed implementation of an entropy source circuit according to another embodiment of the present invention. [Diagram 5] FIG. 5 is a diagram illustrating a detailed implementation of a time-to-digital converter according to one embodiment of the present invention. [Figure 6] FIG. 6 is a diagram showing a detailed implementation of a time-to-digital converter according to another embodiment of the present invention. [Figure 7] FIG. 7 illustrates a flag signal generator according to one embodiment of the present invention. [Figure 8] FIG. 8 is a diagram illustrating an operational flow of a method for collecting randomness from the operating time of a digital circuit according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] 1 is a diagram illustrating an entropy source circuit 10 according to one embodiment of the present invention. As shown in FIG. 1, the entropy source circuit 10 may include an input data control circuit 110, an output data control circuit 120, a digital circuit such as a combinational logic circuit 130, a decision circuit such as a comparator 140, and a time-to-digital converter (TDC) 150. In this embodiment, the input data control circuit 110 controls the input data DIN ,0, Reference Data DANS ,0 , start signal VSTART ,0 Receives external control signals such as the system clock CLKSYS, and inputs data DIN ,0 , Reference Data DANS ,0 , start signal VSTART ,0 The timing control may be performed on the input data DIN and the start signal VSTART based on the timing of the system clock CLKSYS. Specifically, when the input data DIN is sent to the combinational logic circuit (e.g., when the system clock is raised), the start signal VSTART may be output. START is sent to the TDC150 at the same time, and the start signal V START The TDC 150 determines the start timing point according to the above.
[0011] In addition, the combinational logic circuit 130 may be configured to generate the result data DRE according to the input data DIN. For example, the combinational logic circuit 130 may IN A logical operation may be performed on one or more sets of sub-data in the input data D to generate result data DRES. IN Before being sent to the combinational logic circuit 130, the reference data D ANS Arrange in advance and use reference data D ANS makes the result data DRES equal, and the comparator 140 detects V STOP In order to generate a decision signal such as ANS If the combinational logic circuit 130 has not yet completed the aforementioned logical operation (e.g., the dynamic output of the combinational logic circuit 130 is not the result data DRES), the decision signal V STOP may have a first logical value (e.g., a logical value “0”). When the combinational logic circuit 130 completes the aforementioned logical operation (e.g., when the dynamic output of the combinational logic circuit 130 becomes the result data D RES ), the judgment signal V STOP may have a second logical value (e.g., a logical value of "1"). In another embodiment, the decision circuit may ANS and result data DRES This may be implemented by other circuit components having the functionality to determine "whether the inputs are the same."
[0012] A decision signal V is generated to indicate when the combinational logic circuit 130 has completed the above logic operation. STOP In some embodiments, the time when the logic value of the input data D IN is sent to the combinational logic circuit 130, and at the same time, the comparator 140 is supplied with the reference data D ANS However, the present invention is not limited to such a configuration. IN Before transmitting the reference signal D ANS can be sent to the comparator 140 or the input data D IN to the combinational logic circuit 130, the reference signal D ANS may be sent to the comparator 140, but the present invention is not limited to such a configuration. Note that the combinational logic circuit 130 may receive the correct result data D RES (before the time of outputting the reference data D ANS As long as the input data control circuit 110 can transmit the reference data D ANS to comparator 140 may vary.
[0013] Entropy data D corresponding to the delay TDC To generate this, the TDC150 uses the input data D IN According to the result data D RES For the delay of the combinational logic circuit 130 that generates the decision signal V STOP For example, the combinational logic circuit 130 may be configured to perform a time-to-digital conversion with the aid of a first time instant, the input data D IN Receives the judgment signal V STOP At the second time, the data output from the combinational logic circuit 130 is the result data D RESIn particular, the dynamic output of the combinational logic circuit 130 during the period between the first and second time points may be an invalid value or may be an output generated based on previous input data (e.g., D IN The dynamic output of the combinational logic circuit 130 during the period between the first and second time points may be the result data D ANS The judgment signal V output from the comparator 140 may differ from STOP The combinational logic circuit 130 outputs the correct result data D RES The dynamic output of the combinational logic circuit 130 may be a first logic value indicating that the combinational logic circuit 130 has not yet output the reference data D at the second time point. ANS (i.e., the combinational logic circuit 130 outputs the correct result data D RES When the comparator 140 detects that the comparator 140 is outputting a judgment signal V STOP is pulled to a second logic value, and the TDC 150 outputs the decision signal V STOP In addition, the TDC 150 may determine the stop timing point according to the entropy data D when the time-to-digital conversion is completed. TDC The output data control circuit 120 receives the system clock CLK and uses a flag signal VALID to indicate that the system clock CLK is valid, but the present invention is not limited to such a configuration. SYS Entropy data synchronized with D OUT and flag signal VALID OUT In order to output the system clock CLK SYS According to the entropy data D TDC For example, the output data control circuit 120 may control the timing of the system clock CLK SYS Entropy data D at the transition edge TDCand the entropy data DOUT and the flag signal VALIDOUT may be generated and output according to the flag signal VALID, but the present invention is not limited to such a configuration.
[0014] FIG. 2 illustrates a system clock CLK according to an embodiment of the present invention. SYS , input data D IN , Reference data D ANS , start signal V START , decision signal V STOP , flag signal VALID OUT , entropy data D TDC 2 shows the data and signals of FIG. 1, such as the start signal V START (which may be an example of the first time point described above), START When the input data DIN changes from a first logic value (e.g., logic value "0") to a second logic value (e.g., logic value "1"), the input data DIN IN [0] and reference data D ANS D ANS [0], which is the input data D IN [0] is received, and input data D IN After a delay T0, the combinational logic circuit 130 starts performing a logical operation on the result data D RES Reference data D ANS [0] for input data D IN The logical operation performed on [0] is completed, and the judgment signal V STOP is therefore pulled from a first logic value to a second logic value to produce the result data D RES is the reference data D ANS The decision signal V shown in FIG. STOP The first rising edge of the delay T0 may be an example of the second point in time described above. The TDC 150 receives the entropy data D TDC To generate [0], the start signal V START and the judgment signal V STOPWhen the TDC 150 completes the time-to-digital conversion, the flag signal VALID OUT can be pulled from a first logic value to a second logic value. Similarly, the start signal V START At the time of the second rising edge of (which may be another example of the first time point described above), the input data D IN D IN [1] and reference data D ANS D ANS [1], which means that the combinational logic circuit 130 converts the input data D IN [1] is received and input data D IN After a delay T1, the combinational logic circuit 130 starts a logic operation on the result data D RES Reference data D ANS [1] to make the input data D equal IN The logical operation performed on [1] is completed, and the judgment signal V STOP is the result data D RES is the reference data D ANS The decision signal V shown in FIG. STOP The second rising edge of the delay T1 may be another example of the second point in time described above. The TDC 150 receives the entropy data D TDC To generate the start signal V START and the judgment signal V STOP When the TDC 150 completes the time-to-digital conversion, the flag signal VALID OUT can be pulled from a first logic value to a second logic value.
[0015] In addition, the delay of any logic unit (or each logic unit) in the combinational logic circuit 130 may have randomness due to the influence of noise, and the period of the logic operation performed by the combinational logic circuit 130 on any input data (for example, delays T0 and T1) also has randomness. Therefore, the entropy data D TDC [0] and DTDC [1] may also have randomness.
[0016] 3 is a detailed implementation diagram of an entropy source circuit 30 coupled to a digital system 50 according to an embodiment of the present invention, which may be an example of the entropy source circuit 10 shown in FIG. 1. In this embodiment, the operation of the digital system 50 includes a plurality of signal paths, a critical path of the plurality of digital signal paths is a digital signal path with the longest delay among the plurality of digital signal paths, and a logic operation corresponding to the critical path is input data D IN 3, the input data D mentioned in the embodiment of FIG. 1 is provided by a critical path digital circuit 510 in the digital system 50. For example, the combination of logic gates in the combinational logic circuit 130 may be the same as the combination of logic gates in the critical path digital circuit 510. As shown in FIG. 3, the input data D IN,0 may be data obtained from the input terminal of the critical path digital circuit 510 (e.g., data transmitted from the flip-flop 520 to the critical path digital circuit 510), and may be the reference data D mentioned in the embodiment of FIG. ANS,0 is the data obtained from the output terminal of the critical path digital circuit 510 (for example, the input data D IN,0 5. The result data may be pre-generated by the critical path digital circuit 510 to the flip-flop 530 according to
[0017] 3, in addition to the combinational logic circuit 130, the comparator 140, and the TDC 150, the entropy source circuit 30 may further include a flip-flop 111, a flip-flop 112, and a selector 113. The two input terminals of the selector 113 (respectively labeled "0" and "1") are respectively coupled to the output terminal of the flip-flop 111 and the input terminal of the critical path digital circuit 510, and the output terminal of the selector 113 is coupled to the input terminal of the flip-flop 111. In addition, the entropy source circuit 30 may further include a flip-flop 114 and a selector 115. The two input terminals of the selector 115 (respectively labeled "0" and "1") are respectively coupled to the output terminal of the flip-flop 114 and the output terminal of the critical path digital circuit 510, and the output terminal of the selector 115 is coupled to the input terminal of the flip-flop 114. The portion including the flip-flop 111, the flip-flop 112, the selector 113, the flip-flop 114, and the selector 115 may be an example of the input data control circuit 110 of the embodiment in Fig. 1, but the present invention is not limited to such a configuration. In addition, the entropy source circuit 30 may further include flip-flops 121 and 122, and the portion including the flip-flops 121 and 122 may be an example of the output data control circuit 120 of the embodiment in Fig. 1, but the present invention is not limited to such a configuration.
[0018] In this embodiment, the selector 113 selects data from the input terminal of the critical path digital circuit 510 (e.g., input data D IN,0 ) to the start signal V START,0 The flip-flop 111 may be configured to control whether to transmit to the input terminal of the flip-flop 111 in accordance with the system clock CLK. SYS According to the input data D IN,0 to the combinational logic circuit 130 (for example, input data D IN The flip-flop 112 may be configured to control the timing of the system clock CLK. SYSAccording to the timing of sending the start signal VSTART,0 to the TDC 150 (for example, the start signal V START For example, the timing of the start signal V START,0 When the logical value of is "0", the selector 113 selects the input data D IN The input data D is sent to the input terminal of the flip-flop 111 so that the value of IN When the logic value of the start signal VSTART,0 is "1", the selector 113 selects the input data D IN Input data D is sent to the input terminal of flip-flop 111 so that the value of IN,0 In addition, the selector 115 may select the data of the output terminal of the critical path digital circuit 510 (for example, the reference data D ANS,0 ) to the input terminal of the flip-flop 114 in accordance with the start signal VSTART,0. The flip-flop 114 is configured to control whether the system clock CLK SYS According to the above, the comparator 140 receives the reference data D ANS,0 Timing of sending (e.g., reference data D ANS For example, the timing of the start signal V START,0 If the logical value of is "0", the selector 115 selects the reference data D ANS The reference data D is sent to the input terminal of the flip-flop 114 so as not to change the value of ANS The start signal V START,0 If the logical value of is "1", the selector 115 selects the reference data D ANS The reference data D is sent to the input terminal of the flip-flop 114 to update the value of ANS,0 may be selected.
[0019] 4 is a diagram showing a detailed implementation of an entropy source circuit 40 according to another embodiment of the present invention, which may be an example of the entropy source circuit 10 shown in FIG. 1. As shown in FIG. 4, in addition to the combinational logic circuit 130, the comparator 140, and the TDC 150, the entropy source circuit 40 may further include a flip-flop 116, an inverter 117, and an AND gate 118, where the input terminal of the inverter 117 is coupled to the output terminal of the flip-flop 116, and the output terminal of the inverter 117 is coupled to the input terminal of the flip-flop 116. The part including the AND gate 118, the flip-flop 116, and the inverter 117 may be an example of the input data control circuit 110 mentioned in the embodiment of FIG. 1, but the present invention is not limited to such a configuration. In this embodiment, the flip-flop 116 may be configured to update the values of the input data DIN and the reference data DANS according to the start signal VSTART,0 and the system clock CLKSYS. For example, the AND gate 118 may be configured to update the values of the input data DIN and the reference data DANS according to the start signal VSTART,0 and the system clock CLKSYS. START In order to generate timing control signals such as START,0 and system clock CLK SYS The flip-flop 116 may be configured to perform an AND logic operation on the start signal V START According to the input data D IN and reference data D ANS The logic value of the output terminal of the inverter 117 can be configured to update the value of the input data D IN and reference data D ANS Represents the value of .
[0020] In this embodiment, the combinational logic circuit 130 includes a number of delay units D1, D2, . . . , DN connected in series, and the input terminal of the delay unit D1 receives the input data D IN, and the output terminal of the delay unit DN may be an output terminal of the combinational logic circuit 130 coupled to the comparator 140. In this embodiment, the comparator 140 may include an exclusive-or (XOR) gate 141, a first input terminal of the XOR gate 141 is coupled to an output terminal of the combinational logic circuit 130 (e.g., the output terminal of the delay unit DN), a second input terminal of the XOR gate 141 is coupled to an output terminal of the inverter 117, and a logical value of the output terminal of the XOR gate 141 is the decision signal V STOP Represents.
[0021] In particular, the input and output terminals of the flip-flop 116 may have different logic values, so that the flip-flop 116 is START In response to the rising edge of the start signal V START The input data D IN and reference data D ANS (Change the input data D IN and reference data D ANS Assuming that both of the first and second logic values are initially set to a logic value, and the data at the output terminal of the combinational logic circuit 130 is also set to a first logic value, the decision signal V STOP The data at the output terminal of the combinational logic circuit 130 is the reference data D ANS It can be shown that the start signal V START The input data D IN and reference data D ANS is updated to the second logic value, the data at the output terminal of the combinational logic circuit 130 becomes the reference data D ANS The comparator 140 outputs a judgment signal V STOP After a certain delay, the logic value of the input data D IN In response to the change in the data at the output terminal of the combinational logic circuit 130, the data is updated to the second logical value. At this time, the decision signal V STOPThe logical value of is that the data at the output terminal of the combinational logic circuit 130 is the reference data D ANS Therefore, TDC150 can be modified again to show that it is the same as the entropy data D TDC To generate the start signal V START and the judgment signal V STOP The above-mentioned time-to-digital conversion can be performed according to the time point of the change in the logic value of . Therefore, the total delay of the delay unit is the entropy data D TDC It can correspond to.
[0022] In this embodiment, the data at the output terminal of the combinational logic circuit 130 is the reference data D ANS If different, the judgment signal V STOP The logical value of is "1", and the data at the output terminal of the combinational logic circuit 130 is the reference data D ANS If it is the same, the judgment signal V STOP The logical value of is "0", but the invention is not limited to such a configuration. In some embodiments, the comparator 140 may be implemented with other combinational logic circuits, and the data at the output terminal of the combinational logic circuit 130 may be reference data D ANS If different, the judgment signal V STOP The logical value of is "0", and the data at the output terminal of the combinational logic circuit 130 is the reference data D ANS If it is the same, the judgment signal V STOP The logical value of is "1".
[0023] 5 is a diagram illustrating a detailed implementation of a TDC 550 according to an embodiment of the present invention, which may be an example of the above-mentioned TDC 150. As shown in FIG. 5, the TDC 550 includes a plurality of delay units DS0, DS1, . . . , DS (M-1) and D.S. M where M is a positive integer, and delay units DS0, DS1, . . . , DS (M-1) and D.S. M The input terminal of the first delay unit, such as delay unit DS0, of the delay units 100, 102, 104, 106, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, START and configured to receive a start signal V STARTmay indicate the first time point mentioned above. The TDC 550 includes D-type flip-flops (DFFs) DFF0, DFF1, . . . , DFF (M-1) and D.F.F. M The flip-flop may further include a plurality of flip-flops DFF0, DFF1, . . . , DFF (M-1) and D.F.F. M The input terminals of the delay units DS0, DS1, . . . , DS (M-1) and D.S. M are connected to the output terminals of DFF0, DFF1, . . . , DFF (M-1) and D.F.F. M Each DFF in the input FET receives a decision signal V STOP According to the above, at the second time point mentioned above, the data of the input terminal of each DFF is sent to the output terminal of each DFF (denoted as “Q” in FIG. 5). For example, when the start signal V START is changed from logic "0" to logic "1" and the rising edge of the start signal VSTART can be forwarded to the next delay unit, starting with delay unit DS0. When the decision signal VSTOP is changed from logic "0" to logic "1", DFF0, DFF1, . . . , DFF (M-1) and D.F.F. M is the decision signal V STOP In this embodiment, the entropy data {TOUT[0], TOUT[1], . . . , TOUT[M-1], and TOUT[M]} are represented in the form of a thermometer code. In addition, delay units DS0, DS1, . . . , DS (M-1) and D.S. M The delay of each delay unit is T SLOW Assume that DFF0, DFF1, . . . , DFF (M-1) and D.F.F. M The judgment signal V STOP Buffers DF0, DF1, . . ., DF (M-1) and D.F. MThe delay of each buffer is T FAST Assume that the delay T SLOW is the delay T FAST The resolution of the TDC550 is (T SLOW -T FAST ), but the present invention is not limited to such a configuration.
[0024] 6 is a diagram illustrating a detailed implementation of a TDC 650 according to another embodiment of the present invention, which may be an example of the above-mentioned TDC 150. As shown in FIG. 6, the TDC 650 may include clock control logic such as an AND gate 651, a first input terminal of which receives the TDC clock f_clk and a second input terminal of which receives the decision signal V STOP In particular, the AND gate 651 receives the TDC clock f_clk and the decision signal V STOP The count clock is generated according to the determination signal V, and the count clock is valid only within the time interval between the first time point and the second time point. STOP The data at the output terminal of the combinational logic circuit 130 is the reference data D ANS A logical value of "0" is used to indicate that the data at the output terminal of the combinational logic circuit 130 is different from the reference data D ANS If we assume that a logical value of "1" is used to indicate that the count clock is the same as the falling edge of the determination signal VSTOP (or the start signal V START The time when the judgment signal V STOP The TDC clock f_clk and the decision signal V STOP, DFF0, DFF1, . . . , DFF2, DFF3, DFF4, DFF5, DFF6, DFF7, DFF8, DFF9, DFF10, DFF11, DFF12, DFF13, DFF14, DFF15, DFF16, DFF17, DFF18, DFF19, DFF20, DFF21, DFF22, DFF23, DFF24, DFF25, DFF26, DFF27, DFF28, DFF30, DFF31, DFF32, DFF33, DFF34, DFF35, DFF36, DFF37, DFF40, DFF41, DFF42, DFF50, DFF51, DFF62, DFF71, DFF82, DFF91, DFF10, DFF11, DFF12, DFF13, DFF14, DFF15, DFF16, DFF17, DFF18, DFF19, DFF20, DFF21, DFF22, DFF31, DFF32, DFF41, DFF51, DFF62, DFF71, DFF82, DFF91, DFF10, DFF11, DFF12, DFF13, DFF14, DFF15, DFF16, DFF17, DFF18, DFF19, DFF19, DFF10, DFF11, DFF11, DFF12, DFF13, DFF14, DFF15, DFF16, DFF17, DFF18, DFF19, DFF19, DFF21, DFF22, DFF23, DFF34, DFF35, DFF41, DFF51, DFF52, DFF62, DFF71, DFF82, DFF91, D (N-1) and D.F.F. N , DFF0, DFF1, . . . , DFF (N-1) and D.F.F. N Each DFF in may include a data input terminal (denoted as "D" in FIG. 6), a data output terminal (denoted as "Q" in FIG. 6), an inverted data output terminal (denoted as "QB" in FIG. 6), a clock terminal (denoted as a triangle in FIG. 6) and a reset terminal (denoted as "RST" in FIG. 6). As shown in FIG. 6, the clock terminal of DFF0 is coupled to the output terminal of AND gate 651, and the inverted data output terminal of DFF0 is coupled to the data input terminal of DFF0. The clock terminal of DFF1 is coupled to the inverted data output terminal of DFF0, and the inverted data output terminal of DFF1 is coupled to the data input terminal of DFF1. The rest may be deduced by analogy, and the DFFs N The clock pin is DFF. (N-1) The inverted data output terminal of the DFF N The inverted data output terminal is DFF. N In addition, DFF0, DFF1, . . . , DFF (N-1) and D.F.F. N The reset terminals of the DFFs may receive a flag signal VALID, and the DFFs may include DFF0, DFF1, . . . , DFF (N-1) and D.F.F. NThe data output terminals of may output the entropy data {BOUT[0], BOUT[1], . . . , BOUT[N-1], and BOUT[N]}, and the values of the entropy data {BOUT[0], BOUT[1], . . . , BOUT[N-1], and BOUT[N]} are represented in the form of binary code. In addition, the frequency of the TDC clock f_clk is equal to or greater than the frequency of the system clock CLK. SYS The frequency of the TDC clock f_clk may be greater than the frequency of the TDC clock f_clk, and the resolution of the TDC 650 may be determined by the frequency of the TDC clock f_clk.
[0025] 7 is a diagram of a flag signal generator 700 according to an embodiment of the present invention, in which any of the entropy source circuit 10 shown in FIG. 1, the entropy source circuit 30 shown in FIG. 3, and the entropy source circuit 40 shown in FIG. 4 may include the flag signal generator 700 (e.g., the TDC 150 may include the flag signal generator 700). In this embodiment, the flag signal generator 700 generates the entropy data D TDC (or entropy data D OUT ) is valid. SYS , start signal V START and the decision signal V STOP The flag signal VALID may be configured to generate a flag signal VALID according to the first logic value (e.g., logic value “0”) and the start signal V START is a first logic value and the decision signal is a second logic value (e.g., logic value "1"), the flag signal VALID is synchronized with the system clock CLK SYS When the flag signal VALID is at the second logic value and the decision signal V STOP is at a second logic value, the flag signal VALID is equal to or greater than the system clock CLK SYS The first logic value may be pulled to the first logic value upon the next rising edge of .
[0026] 7, the flag signal generator 700 may include an inverter 710, a first AND gate, such as AND gate 720, a first flip-flop, such as DFF 730, a second AND gate, such as AND gate 740, a second flip-flop, such as DFF 750, and an XOR gate 760. In this embodiment, the inverter 710 receives the start signal V START A first input terminal of the AND gate 720 is coupled to the output terminal of the inverter 710, and a second input terminal of the AND gate 720 is coupled to the decision signal V STOP The data input terminal of DFF730 (denoted as "D" in FIG. 7) is connected to the output terminal of the AND gate 720, and the clock terminal of DFF730 (denoted as a triangle in FIG. 7) is connected to the system clock CLK. SYS A first input terminal of the AND gate 740 is connected to the output terminal of the inverter 710, and a second input terminal of the AND gate 740 is connected to the data output terminal (denoted as "Q" in FIG. 7) of DFF730. A data input terminal (denoted as "D" in FIG. 7) of DFF750 is connected to the output terminal of the AND gate 740, and a clock terminal (denoted as a triangle in FIG. 7) of DFF750 is connected to the system clock CLK SYS The two input terminals of the XOR gate 760 are coupled to the data output terminals (denoted as "Q" in FIG. 7) of DFF730 and DFF750, respectively, and the XOR gate 760 can be configured to perform an XOR logic operation on the outputs of DFF730 and DFF750 to generate the flag signal VALID.
[0027] FIG. 8 illustrates an operational flow diagram of a method for collecting randomness from the operation time of a digital circuit according to an embodiment of the present invention, which is applicable to an entropy source circuit such as the entropy source circuit 10 shown in FIG. 1, the entropy source circuit 30 shown in FIG. 3, and the entropy source circuit 40 shown in FIG. 4, and the entropy source circuit may include a digital circuit. It should be noted that the operational flow illustrated in FIG. 8 is for illustrative purposes only and is not meant to limit the present invention. More specifically, one or more steps may be added, deleted, or modified in the operational flow illustrated in FIG. 8. In addition, the steps need not be performed in the exact order illustrated in FIG. 8 as long as the overall result is not adversely affected.
[0028] In step S810, the entropy source circuit may utilize a digital circuit (eg, the combinatorial logic circuit 130) to generate result data according to the input data.
[0029] In step S820, the entropy source circuit may utilize a decision circuit (eg, comparator 140) to make a decision on the reference data using the data output from the digital circuit to generate a decision signal. The reference data is equal to the result data.
[0030] In step S830, the entropy source circuit may utilize a TDC (e.g., TDC 150) to perform time-to-digital conversion on a delay of a digital circuit (e.g., a delay for generating result data according to input data consumed by the digital circuit) with the aid of a decision signal to generate entropy data, such as an entropy value corresponding to the delay.
[0031] In summary, the entropy source circuit and method provided by the embodiments of the present invention can generate entropy data by collecting randomness from the operation time of a combinational logic circuit, and the design of the entropy source circuit can be integrated into a digital design flow. Therefore, the efficiency of the entire design flow can be effectively improved. In addition, the embodiments of the present invention do not significantly increase additional costs. Therefore, the present invention can improve the efficiency of the entire design flow without introducing side effects or in a manner that is less likely to introduce side effects.
[0032] Those skilled in the art will readily appreciate that numerous modifications and variations can be made to the apparatus and method while retaining the teachings of the present invention. Accordingly, the above disclosure should be construed as limited only by the content and scope of the appended claims.
Claims
1. a digital circuit configured to generate result data at a second time in accordance with input data received at a first time; a decision circuit coupled to the digital circuit and configured to make a decision on a reference data using a dynamic output generated by the digital circuit to generate a decision signal, the reference data being equal to the result data; a time-to-digital converter (TDC) coupled to the decision circuit and configured to perform a time-to-digital conversion with the aid of the decision signal on a delay of the digital circuit for generating the result data according to the input data, and generate entropy data corresponding to the delay, wherein a time difference between the first time point and the second time point represents the delay; and a flip-flop configured to update the input data and the reference data according to a start signal and a system clock; an inverter, an input terminal of the inverter being coupled to an output terminal of the flip-flop and an output terminal of the inverter being coupled to an input terminal of the flip-flop and to the digital circuit; Including, An entropy source circuit, wherein the logical value of the output terminal of the inverter represents the input data and the reference data.
2. The determination circuit includes: an exclusive-or (XOR) gate, a first input terminal of the XOR gate being coupled to an output terminal of the digital circuit, a second input terminal of the XOR gate being coupled to an output terminal of the inverter, and a logic value of the output terminal of the XOR gate representing the decision signal; 2. The entropy source circuit of claim 1, comprising:
3. an AND gate configured to perform an AND logic operation on the start signal and the system clock to generate a timing control signal; The entropy source circuit of claim 1 , wherein the inverter updates the input data and the reference data according to the timing control signal.
4. A digital circuit configured to generate result data at a second time in accordance with input data received at a first time; a decision circuit coupled to the digital circuit and configured to make a decision on a reference data using a dynamic output generated by the digital circuit to generate a decision signal, the reference data being equal to the result data; a time-to-digital converter (TDC) coupled to the decision circuit and configured to perform a time-to-digital conversion with the aid of the decision signal on a delay of the digital circuit for generating the result data according to the input data, and generate entropy data corresponding to the delay, wherein a time difference between the first time point and the second time point represents the delay; and An entropy source circuit comprising: The entropy source circuit is coupled to a digital system, the digital system including a plurality of digital signal paths, a critical path among the plurality of digital signal paths being the digital signal path having the longest delay among the plurality of digital signal paths, and a logical operation corresponding to the critical path being equal to a logical operation performed on the input data by the digital circuit.
5. The entropy source circuit of claim 4 , wherein the digital circuit receives the input data from an input terminal of the critical path and receives the reference data from an output terminal of the critical path.
6. a first flip-flop configured to control a timing of transmitting the input data to the digital circuit according to a system clock; a second flip-flop configured to control the timing of sending a start signal to the TDC according to the system clock; a selector coupled to the first flip-flop and an input terminal of the critical path, and configured to control whether data of the input terminal of the critical path is transmitted to the input terminal of the first flip-flop according to the start signal; The entropy source circuit of claim 5 further comprising:
7. a flip-flop configured to control a timing of transmitting the reference data to the decision circuit according to a system clock; a selector coupled to the flip-flop and an output terminal of the critical path, and configured to control whether to transmit data of the output terminal of the critical path to the input terminal of the flip-flop according to a start signal; The entropy source circuit of claim 5 further comprising:
8. The TDC is a plurality of delay units connected in series, an input terminal of a first delay unit of the plurality of delay units configured to receive a start signal, the start signal being indicative of the first time point; a plurality of flip-flops, input terminals of which are respectively connected to output terminals of the plurality of delay units, and each of which transmits data of the input terminal of each of the flip-flops to the output terminal of each of the flip-flops at the second time point according to the determination signal; 2. The entropy source circuit of claim 1, comprising:
9. The TDC is a clock control logic configured to generate a count clock according to a time digital conversion clock and the determination signal, the count clock being enabled only within a time interval between the first time point and the second time point; a counter coupled to the clock control logic and configured to generate a count result according to the count clock, the count result indicating a number of toggles of the count clock within the time interval; 2. The entropy source circuit of claim 1, comprising:
10. The entropy source circuit comprises: a flag signal generator configured to generate a flag signal indicative of whether the entropy data is valid according to a system clock, a start signal, and a decision signal, the start signal indicating the first time point; Further comprising:
10. The entropy source circuit of claim 9, wherein under the condition that the flag signal is a first logical value, the start signal is a first logical value, and the decision signal is a second logical value, the flag signal is pulled to the second logical value at the next rising edge of the system clock, and under the condition that the flag signal is a second logical value and the decision signal is a second logical value, the flag signal is pulled to the first logical value at the next rising edge of the system clock.
11. The flag signal generator an inverter configured to receive the start signal; a first AND gate, a first input terminal of the first AND gate being coupled to an output terminal of the inverter and a second input terminal of the first AND gate being configured to receive the decision signal; a first flip-flop, a data input terminal of the first flip-flop coupled to an output terminal of the first AND gate and a clock terminal of the first flip-flop configured to receive the system clock; a second AND gate, a first input terminal of the second AND gate being coupled to the output terminal of the inverter and a second input terminal of the second AND gate being coupled to the data output terminal of the first flip-flop; a second flip-flop, a data input terminal of the second flip-flop coupled to the output terminal of the second AND gate and a clock terminal of the second flip-flop configured to receive the system clock; an XOR gate coupled to the first flip-flop and the second flip-flop and configured to perform an exclusive-or (XOR) operation on an output of the first flip-flop and an output of the second flip-flop to generate the flag signal; 11. The entropy source circuit of claim 10, comprising:
12. an input data control circuit configured to output a start signal, input data, and reference data corresponding to the input data; a digital circuit having an input terminal and an output terminal, the input terminal of the digital circuit being configured to receive the input data; a decision circuit coupled to an output terminal of the digital circuit and configured to receive the reference data, the decision circuit generating a decision signal when an output generated at the output terminal of the digital circuit is equal to the reference data; a time-to-digital converter (TDC) coupled to the input data control circuit and the decision circuit, configured to receive the start signal and generate entropy data according to the start signal and the decision signal; Including, The input data control circuit includes: an AND gate configured to perform an AND logic operation on an external control signal and a system clock to generate the start signal; a flip-flop configured to control a timing for updating the input data and the reference data according to the start signal; an inverter, an input terminal of the inverter being coupled to an output terminal of the flip-flop, and an output terminal of the inverter being coupled to an input terminal of the flip-flop and to the digital circuit; Including, An entropy source circuit, wherein the logical value of the output terminal of the inverter represents the input data and the reference data.
13. 13. The entropy source circuit of claim 12, wherein the digital circuit receives the input data at a first time point, and the decision signal indicates that an output generated at an output terminal of the digital circuit is equal to the reference data at a second time point, and a time difference between the first time point and the second time point corresponds to the entropy data.
14. The digital circuit includes: a plurality of delay units connected in series, an input terminal of a first delay unit of the plurality of delay units being coupled to the output terminal of the inverter, and an output terminal of a last delay unit of the plurality of delay units being coupled to the decision circuit; 13. The entropy source circuit of claim 12, comprising:
15. The determination circuit includes: an exclusive-or (XOR) gate, a first input terminal of the XOR gate being coupled to the output terminal of the last delay unit and a second input terminal of the XOR gate being coupled to the output terminal of the inverter; Including, 15. The entropy source circuit of claim 14, wherein the logical value of the output terminal of the XOR gate represents the decision signal.
16. An input data control circuit configured to output a start signal, input data, and reference data corresponding to the input data; a digital circuit having an input terminal and an output terminal, the input terminal of the digital circuit being configured to receive the input data; a decision circuit coupled to an output terminal of the digital circuit and configured to receive the reference data, the decision circuit generating a decision signal when an output generated at the output terminal of the digital circuit is equal to the reference data; a time-to-digital converter (TDC) coupled to the input data control circuit and the decision circuit, configured to receive the start signal and generate entropy data according to the start signal and the decision signal; An entropy source circuit comprising: The input data control circuit includes: a first flip-flop configured to control a timing of transmitting the input data to the digital circuit according to a system clock; a second flip-flop configured to control the timing of sending the start signal to the TDC according to the system clock; a first selector coupled to the first flip-flop and configured to control whether to transmit updated input data to an input terminal of the first flip-flop according to the start signal; a third flip-flop configured to control a timing of transmitting the reference data to the decision circuit according to the system clock; a second selector coupled to the third flip-flop and configured to control whether to send updated reference data to an input terminal of the third flip-flop according to the start signal; An entropy source circuit comprising:
17. 17. The entropy source circuit of claim 16, wherein the entropy source circuit is coupled to a digital system, the digital system including a critical path, an input terminal and an output terminal of the critical path are coupled to the first selector and the second selector, respectively, and a logical operation corresponding to the critical path is equal to a logical operation performed on the input data by the digital circuit.
18. 20. The entropy source circuit of claim 17, wherein the digital system includes a plurality of digital signal paths, and the critical path is the digital signal path of the plurality of digital signal paths that has the longest delay.
Citation Information
Patent Citations
Random number generator
JP2008097610A
random number generator
JP2009543242A
Methods and apparatuses for generating random numbers based on bit cell settling time
JP2018507468A
Digital modulator entropy source
JP2022002098A
