MULTIPLEXER STRUCTURE
Patent Information
- Application Number
- DE602016089089
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2016-05-04
- Filing Date
- 2016-11-15
- Publication Date
- 2024-08-28
- Estimated Expiration
- 2036-11-15
AI Technical Summary
Existing random number generators based on delay lines suffer from unpredictable stopping points due to imbalance between rise and fall times, making it difficult to ensure sufficient oscillations for randomness, particularly in noise environments.
The design incorporates symmetrical and asymmetrical delay lines with paired inverters to achieve balanced rise and fall times, allowing for controllable oscillation duration and improved randomness by using arithmetic sequences to determine the number of oscillations before the generator stops.
This approach ensures a determinable and sufficient number of oscillations, enhancing the reliability and predictability of random number generation, compatible with standard electronic technology and logic elements.
Description
Domaine
[0001] This description relates generally to electronic circuits and, more particularly, to electronic circuits or functions usable as in an electronic circuit or device. An example of application of the electronic circuits and functions of this description is the realization of a random number generator. Another example of application is the realization of a physical unclonable function (PUF), for example to generate unique identifiers or unique cryptographic keys. This description relates more particularly to random number generators in security applications such as encryption, authentication, etc. Exposé de l'art antérieur
[0002] In many applications, processing units, for example central processing units (CPUs) of microcontrollers, use randomly generated numbers.
[0003] Random number generation circuits use various circuits or subassemblies that may have other applications outside of random number generation. In particular, a random number generator uses circuits such as oscillators, multiplexers, etc., which, while particularly useful in random number generation, are not limited to these applications.
[0004] The number generators to which this description applies are based on the use of delay lines looped back on each other.
[0005] There is a need for improvements in random number generators or circuits providing unclonable physical functions.
[0006] More generally, there is a need for improved electronic logic functions, usable not only in random or reproducible number generation applications, but also in other applications where similar problems arise.
[0007] Document US-A-2011 / 131263 describes random number generators having metastable seed signal generators.
[0008] Document US-A-2011 / 0298491 describes a structure provided with several multiplexers in series.
[0009] Document US-A-2009 / 0106339 describes a random number generator structure. Résumé
[0010] One embodiment overcomes all or part of the drawbacks of the usual solutions for generating random numbers or physical functions for unique identifiers, cryptographic keys, etc.
[0011] An embodiment according to one aspect of the present disclosure provides a circuit whose behavior is modelable to provide an oscillation number generator for generating random numbers or an unclonable number.
[0012] An embodiment according to this aspect provides a generator whose behavior can be verified.
[0013] An embodiment according to this aspect provides a solution compatible with the use of standard cells of a given electronic technology.
[0014] An embodiment according to another aspect of the present description proposes a symmetrical multiplexer structure, i.e. having a similar temporal behavior for transiting a rising edge and for transiting a falling edge.
[0015] An embodiment according to this other aspect provides a multiplexer structure compatible with conventional multiplexer structures.
[0016] An embodiment according to yet another aspect of the present description provides a counter for changes of state (oscillations) of noisy signals.
[0017] An embodiment according to this yet other aspect proposes a solution more particularly adapted to counting an output of an oscillation generator.
[0018] Thus, an embodiment of a first aspect not forming part of the invention provides a circuit for generating a number of oscillations.
[0019] An embodiment of a second aspect as claimed by the invention provides a two-to-one logic multiplexer comprising: two input terminals; one output terminal; one control terminal; and a multiple of four identical, two-to-one, inverting-turn unit multiplexers connected in series, said multiple of four multiplexers comprising: a first unit multiplexer having its inputs connected to the input terminals, a last unit multiplexer having its output connected to the output terminal and wherein the last and the other unit multiplexers of said multiple have their respective inputs directly interconnected to the output of the preceding multiplexer in the series association of said multiple, and one half of the unit multiplexers are inversely controlled with respect to another half.
[0020] According to an embodiment of this second aspect, one half of said multiplexers has its control inputs connected to said control terminal.
[0021] According to an embodiment of this second aspect, the other half of the multiplexers has its control inputs connected to the output of an inverter, one input of which is connected to said control terminal.
[0022] An embodiment also provides a four-to-one multiplexer, comprising three two-to-one logic multiplexers.
[0023] An embodiment also provides a number generation circuit, comprising at least one multiplexer as above.
[0024] An embodiment of a third aspect not forming part of the invention provides a circuit for counting pulses supplied by a circuit having at least two terminals for supplying inverted pulse signals. Brève description des dessins
[0025] These and other features and advantages will be set forth in detail in the following description of particular embodiments given without limitation in relation to the attached figures, among which: there figure 1 represents, schematically and in block form, an unclaimed embodiment of an electronic circuit of the type to which the described embodiments apply; the figure 2 represents an example of a circuit for generating a number of oscillations for a random number generator or an unclonable number; the figures 3A, 3B, 3C, 3D et 3E illustrate, in the form of chronograms, a new interpretation of the operation of a generator of a number of oscillations; the figure 4 represents an unclaimed embodiment of an oscillation generator; the figure 5 represents, schematically and in the form of blocks, an unclaimed variant embodiment of a generator of a number of oscillations; the figure 6 schematically represents an unclaimed embodiment of delay lines for a oscillation number generator; the figure 7 schematically represents an embodiment of the invention of a two-to-one symmetrical multiplexer circuit; the figure 8 represents an embodiment of a four-to-one symmetric multiplexer; the figure 9 represents an unclaimed embodiment of a random number generator based on an oscillation number generator; the figure 10 represents an unclaimed embodiment of a circuit for shaping a pulse signal; and figures 11A, 11B, 11C et 11D illustrate, in the form of timing diagrams, the operation of the shaping circuit of the figure 10 . Description détaillée
[0026] The same elements have been designated by the same references in the different figures. In particular, the structural and / or functional elements common to the different embodiments may have the same references and may have identical structural, dimensional and material properties. For the sake of clarity, only the elements useful for understanding the described embodiments have been shown and will be detailed. In particular, the uses of the generated numbers (random or non-clonable) and the applications of the circuits integrating the described generator have not been detailed, the described embodiments being compatible with usual uses and applications. Arbitrarily, state 1 denotes the high state of a logic signal and state 0 its low state. When referring to the terms "about", "approximately" or "of the order of", this means to within 10%, preferably to within 5%.
[0027] The number generator that is the subject of this description is described below in relation to an example of an oscillation random number generator. Unless otherwise specified, everything described below applies to an oscillation number generator for a non-clonable physical function.
[0028] There figure 1 represents, very schematically, an electronic circuit 1 of the type to which the embodiments which will be described apply.
[0029] Circuit 1 includes, among other things: a calculation or processing entity 12 (PU), for example a state machine, a microprocessor, a programmable logic circuit, etc.; one or more volatile and / or non-volatile storage areas 14 (MEM) for storing all or part of the data and keys; one or more circuits 16 implementing various functions (FCT) related to the application for which the circuit 1 is intended, for example a crypto processor, a control circuit for a biometric sensor, etc.; one or more data, address and / or command buses 17 between the various elements internal to the circuit 1 and an input-output interface 19 (I / O) for communication with the outside of the circuit 1; and one or more circuits 2 (RNG) for generating random numbers.
[0030] There figure 2 represents an example of an electrical diagram of a usual generator 10 of a number of oscillations for a random number generator.
[0031] This generator 10 is based on two delay lines each composed of delay elements in series, looped back to each other, each delay element restoring the signal in the same state (1 or 0) as its input. The number of delay elements in each chain may be different or identical. In the example shown, a first line 11 comprises four delay elements 111, 112, 113 and 114 in series between an output terminal 131 of a first logic gate 13 of the NAND type and a first input terminal 153 of a second logic gate 15 of the NAND type. A second line 17 comprises three delay elements 171, 172 and 173 in series between an output terminal 151 of the second gate 15 and a first input 133 of the first gate 13. The respective second inputs 135 and 155 of the logic gates 13 and 15 constitute input terminals intended to receive the same CTRL control signal (triggering the generation of a number).The number of oscillations, which conditions the random number, is taken, for example, at the output of the first line, that is to say at the first input 153 of gate 15. Alternatively, the number of oscillations is taken at the input 133 of gate 13, at the output 131 of gate 13 or at the output 151 of gate 15.
[0032] The difference between the delays provided by the two lines determines the duty cycle of the signals present at terminals 133 and 153.
[0033] In theory, the generator of the figure 2 oscillates indefinitely with a duty cycle as long as the CTRL signal is at state 1. In practice, in the absence of noise but with delay elements (logic gates) having different times which end up distorting the duty cycle enough for the oscillator to stop, the generator ends up stopping after a fixed number of oscillations. In the presence of noise (phase jitter), the generator ends up stopping but after a number of oscillations whose value varies.
[0034] So, the fact that the generator stops is not in itself a problem, quite the contrary, but what is a problem is not being able to determine around what value (what number of oscillations) it will stop. Indeed, for the random number generator to work correctly, it must have accumulated enough noise, therefore a sufficient number of oscillations so that the result of counting the number of oscillations provides, when the counter stops, sufficient randomness at the level of its least significant bit or of a few (less than ten) least significant bits of the oscillation counter.
[0035] The embodiments described below originate from a novel analysis of the behavior of an oscillation number generator.
[0036] In particular, the inventors found that it was possible to link the behavior of the oscillation number generator to the intrinsic but quantifiable parameters of the elements that constitute it.
[0037] THE figures 3A, 3B, 3C, 3D et 3E illustrate, by means of timing diagrams, the theoretical operation of the circuit of the figure 2 . There figure 3A represents an example of the appearance of the CTRL signal. The figure 3B illustrates a corresponding example of the shape of the signal present at output 131 of gate 13. The figure 3C illustrates a corresponding example of the shape of the signal present on the output of the first line (input 133 of gate 13). The figure 3D illustrates a corresponding example of the shape of the signal present at output 151 of gate 15. The figure 3E illustrates a corresponding example of the shape of the signal present on the output of the first line (input 153 of gate 15).
[0038] We assume that the delay caused by each gate and by each delay element has a value td u , identical for all elements and gates.
[0039] When the CTRL signal is at state 0, outputs 131 and 151 are always at state 1. Therefore outputs 133 and 153 of lines 17 and 11 are stable at state 1.
[0040] At a time t30, the CTRL signal is switched to state 1 to activate generation. After a delay td u , outputs 131 and 151 switch to state 0 at a time t31. Lines 11 and 13 provide delays of 4*td u and 3*td u respectively to the rising and falling edges of the signals present at terminals 131 and 151. Consequently, signal 133 switches to state 0 at a time t32, 3*td u later than time t31 and signal 153 switches to state 0 at a time t33, 4*td u later than time t31.
[0041] Signals 131 and 151 then switch to state 0 with a delay td u relative to times t32 and t33 respectively, and so on.
[0042] The number of oscillations taken, preferably at output 153 (or 133), when the oscillation stops, is random. Note that this number of oscillations can be counted at any point in the loop.
[0043] The inventors consider that, in addition to phase noise, one of the factors that leads to the generator stopping comes in particular from an imbalance between the rise times and fall times of the signals, that is to say between the time taken by a delay element or a gate to switch from state 1 to state 0 and from state 0 to state 1. Indeed, the difference between the rise times and fall times of a branch of the generator (delay line plus NAND gate) means that there comes a time when the duration of a state becomes less than the delay provided by an element of the delay line.
[0044] One problem is that this "moment" is a function of the number of delay elements in the line (accumulation of time shifts). However, we would like to be able to make the time after which a generator stops controllable, so that, when designing a new circuit, we can guarantee that the number of oscillations before the generator stops is sufficient.
[0045] Using the notations from the example of the figure 2 , we will note subsequently: t1 n , the instant of an edge (rising or falling) of rank n of the signal of output 131; t2 n , the instant of an edge (rising or falling) of rank n of the signal of output 151; L1 n , the duration of the low level of rank n of the signal of output 131 (this duration is linked to the delay provided by the second line 17 plus the first gate 13); H2 n , the duration of the high level of rank n of the signal of output 151 (this duration is linked to the delay provided by the first line 11 plus the second gate 15); tr 1 and tf 1 , the respective rise and fall times of the signal of output 151 with respect to the switching instant of terminal 131; and tr 2 and tf 2 , the respective rise and fall times of the signal from output 131 relative to the switching time of terminal 151.
[0046] The behavior of the generator can be written from arithmetic sequences.
[0047] In particular, we can write: L1 n = t1 2n + 1 − t1 2n ; And H2 n = t2 2n + 2 − t2 2 n + 1 .
[0048] Moreover : t1 2n = t2 2n − 1 + tf 2 ; t1 2n + 1 = t2 2n + tr 2 ; t2 2n − 1 = t1 2n − 2 + tr 1 ; And t2 2n = t1 2n − 1 + tf 1 ;
[0049] We can deduce from this: L1 n = H2 n − 1 − Δ fr 2 , avec Δ fr 2 = tf 2 − tr 2 ; And H2 n − 1 = L1 n − 1 + Δ fr 1 , avec Δ fr 1 = tf 1 − tr 1 .
[0050] From these relationships, we can express the recurrences of the different durations simply as a function of the differences between the rise and fall times.
[0051] For example, for the duration L1n, we can write: L1 n + 1 = L1 n + Δ fr1 − Δ fr 2 .
[0052] Then, by expressing the sequence from the first term L1 0 (n=0): L1 n = L1 0 − n * r , avec r = Δ fr 2 − Δ fr 1 .
[0053] We therefore obtain an arithmetic sequence whose reason r can be determined, when designing the circuit, as a function of the number of basic cells (delay elements) chosen and their difference between rise time and fall time.
[0054] A similar relationship can be written for H2 durations, with: H 2 n = H 2 0 − n * r .
[0055] Similarly, noting: H1 n , the duration of the high level of rank n of the signal from output 131 (this duration is linked to the delay provided by the first line 11 plus the second gate 15); L2 n , the duration of the low level of rank n of the signal from output 151 (this duration is linked to the delay provided by the first line 11 plus the second gate 15); we can obtain the following relationships: H 1 n = H 1 0 + n * r ; And L 2 n = L 2 0 + n * r .
[0056] If the difference between the rise times and the fall times (the ratio r) is negative, the L1 and H2 durations increase while the L2 and H1 durations decrease. Conversely, if the ratio r is positive, the L2 and H1 durations decrease while the L1 and H2 durations increase.
[0057] There figure 4 represents an embodiment of an oscillation number generator taking advantage of this analysis.
[0058] In particular, we wish to be able to control (in order to respect the desired characteristics for the random generator) the temporal behavior of the oscillation generator, that is to say the duration from which it stops. This duration is not only a function of the delay provided by the delay lines but also of the rise and fall times of these lines.
[0059] Knowing the behavior of the basic cells (delay elements) of the technology in which we want to realize the random generator, we can deduce the number of oscillations after which the generator will stop. With a positive reason r, we can set a limit when the duration L1 n becomes zero, that is to say for n = L1 0 / r. In practice, the oscillations stop when the duration of the pulse becomes less than the delay of a delay element.
[0060] According to this embodiment, each branch is composed of a delay line 21, respectively 27, called symmetrical, that is to say having identical or very close rise and fall times (difference between the rise and fall time less than one tenth of the ratio r) in series with an element 22, respectively 24, called asymmetrical, whose rise and fall times are different from each other. An input terminal 231 of the first branch is connected to the output of a first logic gate 23 of the NAND type, a first input 235 of which receives a CTRL trigger signal and a second input 233 of which receives the output of the second branch. An output terminal 253 of the first branch is connected to a first input of a second gate 25 of the NAND type, a first input 255 of which receives the CTRL signal and the output 251 of which is connected to the input of the second branch.The output of the generator of a random number of oscillations is for example terminal 253 or terminal 233. As before, this output, therefore the counting of oscillations, can correspond alternatively to output 231 or 251 of gate 23, respectively 25, or more generally to any point of the loop. In practice, the output is connected to the output of an asynchronous counter of the number of oscillations which counts the number of oscillations between the activation of the generator by the CTRL signal and the stopping of the oscillations. This counter (not shown in . figure 4 ) is, for example, made up of one or more cascaded flip-flops, the clock input of the first flip-flop receiving the output signal from the generator. The output(s) of the flip-flops provide a number on one or more bits (depending on the number of flip-flops) of which generally only the bits or the least significant bit are kept to constitute the random number.
[0061] Where appropriate, multiple generators are used in parallel to increase the generated random bit rate.
[0062] To realize the symmetrical delay lines 21 and 27, paired inverters are preferably used, that is, an even number of inverters in each line. For example, line 21 has p pairs of inverters 3 in series while line 27 has q pairs of inverters 3 in series. The numbers p and q may be the same or different from each other.
[0063] By using pairs of inverters, not only is the signal not inverted at the output of each line, but above all each line has an identical or very close rise and fall time (deviation less than a tenth of the ratio divided by p or by q). Indeed, by using identical logic cells of the technology concerned, even if a 3 inverter made in this technology has a rise time different from its fall time, a pair of identical 3 inverters forms an element whose rise and fall times are identical. Noting tr and tf, the rise and fall times of a 3 inverter, the rise and fall time of a pair becomes tr+tf (tr+tf or tf+tr depending on the direction of the input edge). Thus, even if the times tf and tr are different from each other, their sum remains constant for all pairs of inverters.Lines 21 and 27 therefore provide a determinable and constant delay regardless of the transition (rising or falling).
[0064] Any inverter design can be used (for example, CMOS inverters made up of two transistors in series, NOR or NAND gates with interconnected inputs, etc.) provided that these inverters respect the condition of associating, when they are paired in series, successively rise time and fall time, or vice versa, so that these times are summed regardless of the edge present at the input.
[0065] To produce the asymmetric elements 22 and 24, a non-inverting logic amplifier (buffer) type element is used, excluding two identical inverters in series. For example, an OR type gate, an AND type gate whose two inputs are connected, or any logic function that can be reduced to an inverting function depending on only one input and whose rise and fall times are different, can be used. Each element 22 and 24 is chosen to have a rise time different from its fall time. In addition, elements 22 and 24 are chosen to have different differences between rise time and fall time. Thus, the differences that will condition the stopping of the generator are introduced. In practice, as can be seen from the formulas established above, gates 23 and 25 also provide a shift between the rise and fall times of each branch.This shift must be added to that introduced by element 24, respectively 22, to obtain the deviations, respectively Δfr 1 and Δfr 2 , therefore the reasons for the arithmetic sequences.
[0066] An advantage of the proposed implementation is that these numbers p and q of pairs of inverters of lines 21 and 27 do not influence the reason of the arithmetic sequences defining the oscillations. Indeed, they only condition the first terms of each sequence, that is to say the durations of the first pulses which follow the switching of the CTRL signal to activate the generation.
[0067] According to a simplified embodiment, a single element 22 or 24 is provided, the other branch having only the symmetrical delay line.
[0068] Lines 21 and 27 can be placed either upstream or downstream of elements 22 and 24 with which they are respectively associated. Alternatively, elements 22 and 24 are even interposed within lines 21 and 27, between inverters or pairs of inverters which constitute them.
[0069] An advantage of the described embodiments is that it is now easy to size an oscillation generator and to be able to characterize it. Thus, when designing an electronic circuit comprising a random number generator, knowing the differences between the rise and fall times in the technology, it becomes easy to comply with specifications.
[0070] The generated number is interpreted by counting the pulses on one of the outputs 233 and 253 and taking, as a random bit, for example, the least significant bit at the end of the counting period. The counting period is set by a clock signal.
[0071] There figure 5 schematically represents a variant of implementation according to which we seek to minimize the reason for the arithmetic sequence, while keeping it easily determinable.
[0072] According to this variant, in relation to the realization of the figure 4 , a second symmetrical delay line (SDL) 26, respectively 28, is provided in parallel with each element 22, 24 or asymmetrical delay line (ADL - Asymmétrie Delay Line). The inputs of the delay lines 22 and 26 are connected to the output of line 21. The inputs of lines 24 and 28 are connected to the output of line 27. The outputs of lines 22 and 26, respectively 24 and 28, are connected to inputs of a two-to-one multiplexer 51, respectively 52, the output of which is connected to input 253, respectively 233, of the logic gate 25, respectively 23. The multiplexer 51 is controlled by a signal resulting from a count (counter 53, CNTH) of the pulses of its output signal. In other words, the counter determines the number of pulses from which one switches from the asymmetrical line 22 to the symmetrical line 26.On the multiplexer 52 side, control can be provided by the same counter 53 or by a different counter which then counts the pulses from the output of multiplexer 52. In practice, if a single counter is used, it is placed on the branch with the longest delay so as not to switch the multiplexers before the end of the first pulses.
[0073] Such a variant makes it possible to make the reason for arithmetic sequences configurable and more particularly to reduce this reason in order to delay the stopping of the generator.
[0074] Indeed, by executing one loop (one pulse on each branch) asymmetrically and the rest of the loops only with the symmetrical elements (21, 26, 27 and 28), we minimize the reason for the sequence. Using the notations taken above, the reason r is divided by the number of loops. This allows, among other things, to increase the number of pulses circulating in the delay lines of the generator while reducing the size of these delay lines.
[0075] If applicable, counter 53 is the pulse counting counter whose least significant bit(s) are used, when the oscillations stop, to define the generated random number.
[0076] There figure 6 represents an embodiment of a delay line 6, configurable both in symmetrical delay and in asymmetrical delay.
[0077] The realization of the figure 6 may constitute, as a particular example in the preceding embodiments, an embodiment of the symmetrical delay line, for example 21, and of the asymmetrical delay element, for example 22, of a branch.
[0078] According to this embodiment, one or more (in the example three) symmetrical delay lines 212, 214 and 216, that is to say each having identical rise and fall times, are associated with one or more (in the example three) delay elements or asymmetrical delay lines 221, 223, 225, that is to say each having different rise and fall times, each asymmetrical or symmetrical line being short-circuitable using a multiplexer 61, 62, 63, 64, 65, 66 respectively. In other words, the inputs of lines 212, 214, 216, 221, 223 and 225 are respectively directly connected to a first input of multiplexers 61, 62, 63, 64, 65, 66, the other input of which is connected to the output of the corresponding delay line. The outputs of multiplexers 61, 62, 63, 64 and 65 are respectively connected to the inputs of lines 214, 216, 221, 223, 225 and the output of multiplexer 66 defines the output OUT of the parameterizable delay line.
[0079] Each multiplexer 61 to 66 is individually controllable, for example, by a different bit, respectively [5], [4], [3], [2], [1], [0] of a SEL_DLY word.
[0080] In an application to the realization of an oscillation number generator of the type illustrated by the figure 4 , the input terminal IN of line 6 is connected to the output (231 or 251, figures 4 And 5 ) of the branch concerned.
[0081] Each line 212, 214, 216 is preferably made up of one or more pairs of inverters, i.e., delay elements each having identical rise and fall times as described above. In the example shown, lines 212, 214 and 216 respectively comprise 32, 16 and 8 pairs of inverters, i.e., 32, 16 and 8 unitary symmetrical delay elements (sdelt).
[0082] The asymmetric lines 221, 223, 225 provide delays that are identical or different from each other. Preferably, the lines 221, 223 and 225 are made up of identical unit elements, i.e. providing the same shift between rise time and fall time. Different numbers of these unit elements are then provided in each of the lines, which makes the system easily configurable with optimal granularity. In the example shown, the lines 221, 223 and 225 comprise respectively 4, 2 and 1 unit asymmetric delay elements (adelt).
[0083] Thus, the delay line 6 is configurable both in terms of delay and in terms of difference between rise time and fall time. Taking the example of identical unit elements in lines 212, 214 and 216, and of identical unit elements in lines 221, 223 and 225, it is possible to choose a symmetrical delay of between 8 and 56 times the delay of the symmetrical unit element and a time difference between rising edge and falling edge of between 1 and 7 times the difference provided by the asymmetrical unit element.
[0084] The unit elements are, for example, made as described above in relation to the figure 4 .
[0085] The number of symmetrical and asymmetrical delay lines depends on the desired adjustment capability. Asymmetrical elements not only have different rise and fall times but also an intrinsic delay that contributes to the total delay of the delay line.
[0086] The realization of the figure 6 can be used, for example, to integrate the same generator architecture and to make this structure configurable, whether at design or in the application.
[0087] The realization of the figure 6 can be combined with that of the figure 5 by placing in parallel with each asymmetrical line 221, 223, 225, a symmetrical line of the same delay, thus eliminating the short circuit of the line attacking the upper inputs (in the orientation of the figure 6 ) multiplexers 64 to 66. Alternatively, 3 to 1 multiplexers are used, two of whose inputs receive the respective outputs of two parallel lines of the same delay, respectively symmetrical and asymmetrical, and the third input of which directly receives the output of the multiplexer of the previous rank.
[0088] In the realization of the figure 6 or its variants, in order to facilitate the configuration, it would be desirable for the multiplexers 61 to 66 to provide symmetrical delays. However, a usual multiplexer has an asymmetrical operation in terms of rise time and fall time.
[0089] There figure 7 represents an embodiment according to the invention of a multiplexer 7 having symmetrical operation, that is to say an identical rise time and fall time.
[0090] Multiplexer 7 of the figure 7 is a two-to-one multiplexer, i.e. it selects one of its two inputs A or B and provides the corresponding signal at output Z. The selection between input A or B is made by a control signal S.
[0091] The multiplexer 7 comprises four two-to-one multiplexing or selection elements. The multiplexer 7 can be considered to consist of four unitary multiplexers 72, 74, 76 and 78 connected in a chain. The multiplexers are inverting multiplexers. A first multiplexer 72 has its input terminals connected to inputs A and B respectively. A second multiplexer 74 has its two inputs connected together to the output of the first multiplexer 72. A third multiplexer 76 has its two inputs connected together to the output of the second multiplexer 74. A fourth multiplexer 78 has its two inputs connected together to the output of the third multiplexer 76 and its output provides the output Z. The signal S directly controls the multiplexers 72 and 74 and, after passing through an inverter 75, the multiplexers 76 and 78.
[0092] The fact that multiplexers 74, 76, and 78 have their inputs interconnected means that they do not actually perform any selection. However, assuming that all multiplexers 72, 74, 76, and 78 are identical, they all have identical rise and fall times. Furthermore, they all have similar behavior during an edge on their first input and all have similar behavior during an edge on their second input.
[0093] By noting tr the rise times, tf the fall times and by assigning these notations a first index A, respectively B, depending on whether the edge is on input A (the first input of the unitary multiplexer concerned) or B (the second input of the unitary multiplexer concerned) and a second index 72, 74, 76 or 78 depending on the unitary multiplexer concerned, we can write: tr A 72 = tr A 74 = tr A 76 = tr A 78 = tr A ; tf A 72 = tf A 74 = tf A 76 = tf A 78 = tf A ; tr B 72 = tr B 74 = tr B 76 = tr B 78 = tr B ; And tf B 72 = tf B 74 = tf B 76 = tf B 78 = tf B .
[0094] Due to the inversion of the control of the two multiplexers 76 and 78 with respect to that of the multiplexers 72 and 74, the rise and fall times of the multiplexer 7, from input A or B to output Z, can be written, depending on whether a rising edge r or falling edge f is present on input A or on input B: tr AZ = tr A 72 + tr A 74 + tr B 76 + tr B 78 ; tf AZ = tr A 72 + tf A 74 + tr B 76 + tf B 78 ; tr BZ = tf B 72 + tr B 74 + tf A 76 + tr A 78 ; And tf BZ = tr B72 + tf B74 + tr A76 + tf A78 .
[0095] Since the unit rise and fall times are identical for a given input, we deduce: tr AZ = tf AZ = tr BZ = tf BZ = tr A + tf A + tr B + tf B .
[0096] Therefore, the rise and fall times of the multiplexer 7 are identical regardless of the input considered. The multiplexer is therefore symmetrical with the definition given above.
[0097] Alternatively, provision may be made to invert the control at other locations provided that two multiplexers select their respective first inputs when the other two select their respective second inputs. In this case, however, care must be taken to ensure that the propagation delay introduced by the inverters is not greater than the minimum propagation time of a single multiplexer, otherwise the output is distorted. An advantage of the embodiment of the figure 7 is that it ensures that the selection of multiplexers 76 and 78 is active before the signal (the edge) has finished passing through multiplexers 72 and 74.
[0098] Although this does not provide any advantage in terms of symmetry, it is possible to use 8, 12, 16 and more generally any multiple of four unitary multiplexers provided that half are controlled inversely with respect to the other half. This makes it possible, for example, to increase the propagation time without harming the symmetry of operation.
[0099] An advantage of the embodiment of the figure 7 is that it is independent of the internal structure of the unitary multiplexers. Indeed, provided that identical unitary multiplexers are used, the operation described is respected.
[0100] A multiplexer as shown in figure 7 has multiple applications. In particular, it is often advantageous to have symmetrical operation.
[0101] As a particular example of application, the multiplexer of the figure 7 can be used to realize each of the multiplexers 61, 62, 63, 64, 65 and 66 of the realization of the figure 6 An advantage is that the reason for the number generator's pulse sequences remains solely linked to the asymmetric elements 221, 223 and 225, which makes dimensioning easier.
[0102] The structure of the multiplexer 7 of the figure 7 can be adapted to create multiplexers with more than two inputs.
[0103] There figure 8 represents an embodiment of a four-to-one symmetrical 8 multiplexer.
[0104] According to this embodiment, three two-to-one multiplexers of the type of the figure 7 . A first multiplexer 7a defines two inputs A and B. A second multiplexer 7b defines inputs C and D. The respective outputs of multiplexers 7a and 7b are connected to the two inputs of a third multiplexer 7c whose output defines the output Z' of the four-to-one multiplexer. Multiplexers 7a and 7b are respectively controlled by a signal S1 and by its inverse. Multiplexer 7c is controlled by a signal S2. For example, assuming a two-bit selection word, signal S2 is constituted by the most significant bit and signal S1 by the least significant bit.
[0105] In a random number generator of the type described above, interpreting the generator output requires counting the pulses present at the output. It is this counting that determines the number drawn. For example, the random bit generated by generator 20 is the least significant bit of the count of pulses present at the generator output between its triggering and a reading signal from the counter, subsequent to the cessation of oscillations. The time interval between the triggering of the generator and the reading signal is chosen according to the range of possible time intervals conditioned by the sizing of the generator's delay lines.
[0106] However, in a counter, there may be an imbalance between the counts of 1 states and 0 states, particularly if one of the states of the signal to be counted becomes too short compared to the other. This phenomenon is due to the fact that from a certain pulse duration (in the decreasing direction of duration), the counter is only able to take into account the pulse in one direction depending on the parity of the current count it contains. We then end up with an imbalance between the probability of drawing a 1 and drawing a 0. In other words, with a generator of the type of the one in figure 4 (but also with that of the figure 2 ), when the duty cycle becomes too distorted, using the generator output as a counting clock means that the pulse duration (low or high depending on the output concerned) is less than the minimum time for the flip-flop to take into account. However, this time differs for a high state and for a low state. Consequently, whatever output is used, the flip-flop will go out of its normal operation and it is not possible to determine in advance, during design, which output will be affected.
[0107] This problem is likely to arise not only when counting the number of oscillations in a generator as described in this description but more generally when counting short duration events in a signal, for example a transient disturbance detector (glitch).
[0108] Indeed, a counter, whether asynchronous or not, normally operates with a clock, called square, that is to say with a duty cycle close to 50%. However, in the case of the generator described above, the duty cycle of the asynchronous counter clock, which corresponds to output 231 or 251 (or 233, 253), decreases at each period until the oscillation stops, or on the contrary increases at each period until the oscillation stops. Consequently, one of the outputs stops at state 0 and the other stops at state 1. However, it is generally not possible to know with certainty in advance which of the outputs will stop in state 1 and which will stop in state 0.
[0109] On the counter side, flip-flops are used that require in their specifications a minimum duration of the clock in the high state (1) and a minimum duration of the clock signal in the low state (0), for example arbitrarily 110 ps for the minimum duration in the high state and 87 ps for the minimum duration in the low state. Therefore, when the counter input flip-flop receives a clock with a very low or very high duty cycle, it may end up operating outside the specifications and the clock signal pulse is then not taken into account.
[0110] There figure 9 represents an embodiment of a random number generator of the type described above with its pulse counting elements for shaping the generated number.
[0111] There figure 9 illustrates a variant in which the numbers of pulses generated are taken from the output of gates 231 and 251.
[0112] According to this embodiment, each output 251, 231 of the random oscillation number generator 20 (RONG), for example as described in figure 4 , is connected to the input of a counter, respectively 91 (CNTR), 93 (CNTL). Each counter 91, 93 counts the pulses of the corresponding output signal of the generator. Each counter is an asynchronous counter, for example of the D flip-flop type.
[0113] The reading of counters 91 and 93 is triggered by a READ signal which transfers the counts to a decision (DECIS) or combination circuit 95. Circuit 95 also receives output signals 231 and 251 in order to know, during the decision, the states of these signals at the end of the oscillations.
[0114] Functionally, oscillation count counters are used, one with one output from generator 20, the other with the other output from generator 20. As noted above, one of the counters will stop operating before the other, i.e., its input flip-flop will stop operating before the input flip-flop of the other, due to the fact that the minimum operating times of the flip-flops are different for the low state and for the high state. In fact, one of the counters will stop under the effect of an oscillation not respecting its minimum time in the low state while the other counter will stop under the effect of an oscillation not respecting its minimum time in the high state.
[0115] Depending on the applications, the selection criterion, by circuit 95 between the outputs of counters 91 and 93 according to the states provided by outputs 231 and 251, differs. This selection criterion can be conditioned by a simulation of the operation of the generator in order to determine whether the flip-flops stop because of the minimum time in the high state or because of the minimum time in the low state.
[0116] For example, if we attach importance to the parity of the counting result and assuming that the flip-flop of the counter that stops first stops due to a duration in the low state (state 0) that is too short, the value of the corresponding counter will be lower than the value of the other counter. If this effect is combined with an asymmetrical operation of the flip-flop, that is to say an easier switching from 0 to 1 than from 1 to 0 (or vice versa), this introduces a bias in the generation of the random number that is not desirable. We then select the counter that stopped on a switching from 1 to 0.
[0117] In yet another example where parity is less important than a high number of oscillations, the counter that stops last is selected.
[0118] In yet another example, the decision depends on the relationship between the counters. Thus, we keep the value: of the counter having the largest count if the two counts have the same parity; or of the counter having the largest count if this count is even and the smallest if the count is odd.
[0119] In yet another example, it is considered that the counter which continues to operate presents a high risk of operating asymmetrically because the other counter has already stopped. In this case, block 95 selects the result of the counter which stops first, that is to say the first which, during a change of state of output 231 or 251, does not change its least significant bit. This exemplary embodiment is preferred in the case where the cause of stopping of the flip-flops (minimum time in the low state or minimum time in the high state) has not been determined in simulation.
[0120] Counting both outputs and taking one or the other as appropriate ensures that no impulses are missed.
[0121] It will be noted that the counting circuit described in relation to the figure 9 applies more generally to any random number generator and not necessarily to that of the figure 4 . In particular, it can be implemented for any random number generator having delay lines looped back on each other (for example, figure 2 ).
[0122] According to another embodiment of this counting aspect, the signals provided by the outputs 253 and 233 are shaped before being counted in order to eliminate certain possible misses in the counting. For this, optional shaping circuits (SHAPER) 97 are interposed between the respective outputs 251 and 231 and the counters 91 and 93.
[0123] There figure 10 represents an embodiment of a circuit 97 for shaping a pulse signal.
[0124] Circuit 97 includes a D-type flip-flop 972 whose D input is forced to the high state (1) and whose non-inverted output Q defines the output S97 providing the shaped signal. The clock input CK of flip-flop 972 defines the input of the circuit receiving the pulse signal to be shaped. The inverted output NQ of flip-flop 972 is connected, via a non-inverting delay element 974 (DELAY), to a first input of an AND-type logic gate 976, one output of which is connected to the reset input RN (active on rising edge) of flip-flop 972. A second input of gate 976 is intended to receive an RSTN signal for activating circuit 97. When signal RSTN is at state 0, circuit 97 is not active and output S97 is permanently at state 0. Gate 976 is therefore optional if there is no need to deactivate circuit 97.
[0125] The value of the delay introduced by element 974 is chosen to be greater than the minimum pulse width that the D flip-flop can capture.
[0126] THE figures 11A, 11B, 11C et 11D illustrate, in the form of timing diagrams, the operation of the shaping circuit of the figure 10 . There figure 11A represents an example of the shape of the CK input signal to be shaped. The figure 11B represents an example of the corresponding shape of the signal of the Q output (S97). The figure 11C represents an example of a corresponding appearance of the NQ output. The figure 11D represents an example of the corresponding shape of the RN input signal.
[0127] We assume a pulse signal CK of positive pulses.
[0128] Initially, output Q (therefore output S97) is at state 0, output NQ is at state 1. Input RN is at state 1. We assume the RSTN signal is active (state 1).
[0129] At the appearance (time t90) of a rising edge on the clock signal CK, as the input D is at state 1 and the input RN is at state 1, this pulse is transmitted to the output Q which switches to state 1. On the other hand, the output NQ (inverse of the output Q) switches to state 0. This state is transmitted, with a delay DELAY on the input RN (considering the delay brought by the gate 976 included in the value DELAY). The switching of the input RN at the end of the delay DELAY causes the output Q to be forced to state 0 and, consequently, the output NQ to state 1, which causes, in turn, still at the end of the delay DELAY, the input RN to switch to state 0. The flip-flop is then ready to take a new state into account. The right part of the timing diagrams illustrates operation with a CK pulse of duration shorter than the DELAY delay. The DELAY delay sets the duration of the output signal pulses independently of the duration of the CK signal pulse.Therefore, even if the CK signal pulse is theoretically too short for its fall to be taken into account, it is still present on the Q output.
[0130] The DELAY duration sets the duration of the pulses of the S97 signal, therefore the input of the counters in the realization of the figure 10 .
[0131] To make a shaping circuit operating with a pulse signal of negative pulses, the output of gate 976 is connected to the set input of the flip-flop, the input is forced to state 0 and the delay element receives the non-inverted output Q while the output of the shaping circuit is defined by the inverted output NQ. The operation is easily transposed from the explanations given above.
[0132] An advantage of the embodiments that have been described is that they allow a random number generator to be designed or configured in a reliable and determinable manner. Thus, it is possible to meet the criteria set by a specification and validate that the generator meets these specifications.
[0133] Another advantage is that the described solution is compatible with the use of standard cells of a given technology.
[0134] Another advantage is that the entire generator is achievable with logic elements.
[0135] For a random number generator, the number is taken either after a fixed time interval, triggered by the activation of the generator (CTRL signal) and chosen to be greater than the maximum stop time of the generator), or by detecting the stop of the counter(s).
[0136] To create a non-clonable number generator of the identifier type of an integrated circuit, the delay lines and the reason of the arithmetic sequences are sized to fix the number of oscillations. The number is taken after stopping the generator as for a random number generator and preferably only a part of the bits (the most significant ones) are kept.
[0137] Various embodiments have been described. Various variants and modifications will be apparent to those skilled in the art. In particular, the choice of the delays provided by the symmetrical delay lines and the offsets provided by the asymmetrical delay elements depends on the application and the specifications of the generator. Finally, the practical implementation of the embodiments which have been described is within the reach of those skilled in the art from the functional indications given above.
Claims
1. A logic two-to-one multiplexer (7), comprising: two input terminals (A, B); one output terminal (Z); a control terminal (S); and a multiple of four series-connected two-to-one unitary multiplexers (72, 74, 76, 78), all inverting and identical, said multiple of four multiplexers comprising: a first unitary multiplexer (72) having its inputs connected to the input terminals; a last unitary multiplexer (78) having its output connected to the output terminal, and wherein the last and the other unitary multiplexers (74, 76) of said multiple have their respective inputs directly interconnected to the output of the previous multiplexer in the series association, and half of the unitary multiplexers of said multiple are controlled in reverse (75) with respect to another half.
2. The multiplexer of claim 1, wherein half of said multiplexers have their control inputs connected to said control terminal (S).
3. The multiplexer of claim 2, wherein the other half of said multiplexers have their control inputs connected to the output of a multiplexer (75) having an input connected to said control terminal (S).
4. A four-to-one multiplexer (8), comprising three multiplexers (7) of any of claims 1 to 3.
5. A number generation circuit, comprising at least one multiplexer (7, 8) of any of claims 1 to 4.
